code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
using System;
using NUnit.Framework;
namespace MyApp.Repository.Testing
{
internal class InMemoryRepositoryTests
{
//================================================================================
[Test]
public void Standard()
{
var repository = new InMemoryRepository<TestClass>(x => x.ID);
StandardTests.All(repository);
}
//===============================================================
[Test]
public void UpdateTest()
{
var repository = new InMemoryRepository<ComplexTestClass>(x => x.ID);
var obj = new ComplexTestClass() { IntValue = 1 };
repository.Insert(obj);
repository.SaveChanges();
repository.Update(new { IntValue = 2 }, obj.ID);
repository.SaveChanges();
var val = repository.Find(obj.ID).Object;
Assert.AreEqual(2, val.IntValue);
var updateObj = new { DateTimeValue = DateTime.MaxValue };
repository.Update(updateObj, x => x.ComplexProperty, obj.ID);
repository.SaveChanges();
Assert.AreEqual(val.ComplexProperty.DateTimeValue, DateTime.MaxValue);
}
//===============================================================
[Test]
public void ChangeTrackingTest()
{
var repo = new InMemoryRepository<TestClass>(x => x.ID);
var initialValue = "myValue";
var obj = new TestClass { StringValue = initialValue };
repo.Insert(obj);
repo.SaveChanges();
var storedObj = repo.Find(obj.ID);
storedObj.Object.StringValue = initialValue + 1;
repo.SaveChanges();
storedObj = repo.Find(obj.ID);
Assert.AreEqual(initialValue + 1, storedObj.Object.StringValue);
}
//===============================================================
[Test]
public void DetectsChangedKeys()
{
var repo = new InMemoryRepository<TestClass>(x => x.ID);
var initialValue = "myValue";
var obj = new TestClass { ID = "myKey", StringValue = initialValue };
repo.Insert(obj);
repo.SaveChanges();
var storedObj = repo.Find(obj.ID);
storedObj.Object.ID = "newKey";
Assert.Throws<RepositoryException>(repo.SaveChanges);
}
//===============================================================
}
}
| antanta/MyApp | MyApp.Repository/Testing/Tests.cs | C# | mit | 2,757 |
import {dispatchFakeEvent} from '../../cdk/testing/private';
import {ChangeDetectionStrategy, Component, DebugElement, Type} from '@angular/core';
import {
ComponentFixture,
fakeAsync,
flush,
flushMicrotasks,
TestBed,
} from '@angular/core/testing';
import {ThemePalette} from '@angular/material-experimental/mdc-core';
import {FormControl, FormsModule, NgModel, ReactiveFormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {
MatCheckbox,
MatCheckboxChange,
MatCheckboxModule
} from './index';
import {MatCheckboxDefaultOptions, MAT_CHECKBOX_DEFAULT_OPTIONS} from '@angular/material/checkbox';
describe('MDC-based MatCheckbox', () => {
let fixture: ComponentFixture<any>;
function createComponent<T>(componentType: Type<T>, extraDeclarations: Type<any>[] = []) {
TestBed
.configureTestingModule({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [componentType, ...extraDeclarations],
})
.compileComponents();
return TestBed.createComponent<T>(componentType);
}
describe('basic behaviors', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let checkboxInstance: MatCheckbox;
let testComponent: SingleCheckbox;
let inputElement: HTMLInputElement;
let labelElement: HTMLLabelElement;
let checkboxElement: HTMLElement;
beforeEach(() => {
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
labelElement = <HTMLLabelElement>checkboxNativeElement.querySelector('label');
checkboxElement = <HTMLLabelElement>checkboxNativeElement.querySelector('.mdc-checkbox');
});
it('should add and remove the checked state', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.checked).toBe(false);
testComponent.isChecked = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.checked).toBe(true);
testComponent.isChecked = false;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.checked).toBe(false);
}));
it('should expose the ripple instance', () => {
expect(checkboxInstance.ripple).toBeTruthy();
});
it('should hide the internal SVG', () => {
const svg = checkboxNativeElement.querySelector('svg')!;
expect(svg.getAttribute('aria-hidden')).toBe('true');
});
it('should toggle checkbox ripple disabledness correctly', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.mat-checkbox-persistent-ripple)';
testComponent.isDisabled = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.isDisabled = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should add and remove indeterminate state', fakeAsync(() => {
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria-checked to be false').toBe('false');
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria checked to be mixed for indeterminate checkbox').toBe('mixed');
testComponent.isIndeterminate = false;
fixture.detectChanges();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
}));
it('should set indeterminate to false when input clicked', fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the forms module updates the model state asynchronously.
flush();
// The checked property has been updated from the model and now the view needs
// to reflect the state change.
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(false);
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
expect(inputElement.getAttribute('aria-checked'))
.withContext('Expect aria checked to be true').toBe('true');
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the forms module updates the model state asynchronously.
flush();
// The checked property has been updated from the model and now the view needs
// to reflect the state change.
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.indeterminate).toBe(false);
expect(inputElement.checked).toBe(false);
expect(testComponent.isIndeterminate).toBe(false);
}));
it('should not set indeterminate to false when checked is set programmatically',
fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.indeterminate).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
testComponent.isChecked = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(true);
expect(testComponent.isIndeterminate).toBe(true);
testComponent.isChecked = false;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
expect(inputElement.checked).toBe(false);
expect(testComponent.isIndeterminate).toBe(true);
}));
it('should change native element checked when check programmatically', () => {
expect(inputElement.checked).toBe(false);
checkboxInstance.checked = true;
fixture.detectChanges();
expect(inputElement.checked).toBe(true);
});
it('should toggle checked state on click', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
labelElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
}));
it('should change from indeterminate to checked on click', fakeAsync(() => {
testComponent.isChecked = false;
testComponent.isIndeterminate = true;
fixture.detectChanges();
expect(checkboxInstance.checked).toBe(false);
expect(checkboxInstance.indeterminate).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
expect(checkboxInstance.indeterminate).toBe(false);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
expect(checkboxInstance.indeterminate).toBe(false);
}));
it('should add and remove disabled state', fakeAsync(() => {
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.tabIndex).toBe(0);
expect(inputElement.disabled).toBe(false);
testComponent.isDisabled = true;
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(true);
expect(inputElement.disabled).toBe(true);
testComponent.isDisabled = false;
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.tabIndex).toBe(0);
expect(inputElement.disabled).toBe(false);
}));
it('should not toggle `checked` state upon interation while disabled', fakeAsync(() => {
testComponent.isDisabled = true;
fixture.detectChanges();
checkboxNativeElement.click();
expect(checkboxInstance.checked).toBe(false);
}));
it('should overwrite indeterminate state when clicked', fakeAsync(() => {
testComponent.isIndeterminate = true;
fixture.detectChanges();
inputElement.click();
fixture.detectChanges();
// Flush the microtasks because the indeterminate state will be updated in the next tick.
flush();
expect(checkboxInstance.checked).toBe(true);
expect(checkboxInstance.indeterminate).toBe(false);
}));
it('should preserve the user-provided id', fakeAsync(() => {
expect(checkboxNativeElement.id).toBe('simple-check');
expect(inputElement.id).toBe('simple-check-input');
}));
it('should generate a unique id for the checkbox input if no id is set', fakeAsync(() => {
testComponent.checkboxId = null;
fixture.detectChanges();
expect(checkboxInstance.inputId).toMatch(/mat-mdc-checkbox-\d+/);
expect(inputElement.id).toBe(checkboxInstance.inputId);
}));
it('should project the checkbox content into the label element', fakeAsync(() => {
let label = <HTMLLabelElement>checkboxNativeElement.querySelector('label');
expect(label.textContent!.trim()).toBe('Simple checkbox');
}));
it('should make the host element a tab stop', fakeAsync(() => {
expect(inputElement.tabIndex).toBe(0);
}));
it('should add a css class to position the label before the checkbox', fakeAsync(() => {
testComponent.labelPos = 'before';
fixture.detectChanges();
expect(checkboxNativeElement.querySelector('.mdc-form-field')!.classList)
.toContain('mdc-form-field--align-end');
}));
it('should not trigger the click event multiple times', fakeAsync(() => {
// By default, when clicking on a label element, a generated click will be dispatched
// on the associated input element.
// Since we're using a label element and a visual hidden input, this behavior can led
// to an issue, where the click events on the checkbox are getting executed twice.
spyOn(testComponent, 'onCheckboxClick');
expect(inputElement.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxClick).toHaveBeenCalledTimes(1);
}));
it('should trigger a change event when the native input does', fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange');
expect(inputElement.checked).toBe(false);
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxChange).toHaveBeenCalledTimes(1);
}));
it('should not trigger the change event by changing the native value', fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange');
expect(inputElement.checked).toBe(false);
testComponent.isChecked = true;
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxChange).not.toHaveBeenCalled();
}));
it('should keep the view in sync if the `checked` value changes inside the `change` listener',
fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange').and.callFake(() => {
checkboxInstance.checked = false;
});
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
}));
it('should forward the required attribute', fakeAsync(() => {
testComponent.isRequired = true;
fixture.detectChanges();
expect(inputElement.required).toBe(true);
testComponent.isRequired = false;
fixture.detectChanges();
expect(inputElement.required).toBe(false);
}));
it('should focus on underlying input element when focus() is called', fakeAsync(() => {
expect(document.activeElement).not.toBe(inputElement);
checkboxInstance.focus();
fixture.detectChanges();
expect(document.activeElement).toBe(inputElement);
}));
it('should forward the value to input element', fakeAsync(() => {
testComponent.checkboxValue = 'basic_checkbox';
fixture.detectChanges();
expect(inputElement.value).toBe('basic_checkbox');
}));
it('should remove the SVG checkmark from the tab order', fakeAsync(() => {
expect(checkboxNativeElement.querySelector('svg')!.getAttribute('focusable'))
.toBe('false');
}));
describe('ripple elements', () => {
it('should show ripples on label mousedown', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.mat-checkbox-persistent-ripple)';
expect(checkboxNativeElement.querySelector(rippleSelector)).toBeFalsy();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should not show ripples when disabled', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.mat-checkbox-persistent-ripple)';
testComponent.isDisabled = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.isDisabled = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
it('should remove ripple if matRippleDisabled input is set', fakeAsync(() => {
const rippleSelector = '.mat-ripple-element:not(.mat-checkbox-persistent-ripple)';
testComponent.disableRipple = true;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(0);
flush();
testComponent.disableRipple = false;
fixture.detectChanges();
dispatchFakeEvent(checkboxElement, 'mousedown');
dispatchFakeEvent(checkboxElement, 'mouseup');
checkboxElement.click();
expect(checkboxNativeElement.querySelectorAll(rippleSelector).length).toBe(1);
flush();
}));
});
describe('color behaviour', () => {
it('should apply class based on color attribute', fakeAsync(() => {
testComponent.checkboxColor = 'primary';
fixture.detectChanges();
expect(checkboxNativeElement.classList.contains('mat-primary')).toBe(true);
testComponent.checkboxColor = 'accent';
fixture.detectChanges();
expect(checkboxNativeElement.classList.contains('mat-accent')).toBe(true);
}));
it('should not clear previous defined classes', fakeAsync(() => {
checkboxNativeElement.classList.add('custom-class');
testComponent.checkboxColor = 'primary';
fixture.detectChanges();
expect(checkboxNativeElement.classList.contains('mat-primary')).toBe(true);
expect(checkboxNativeElement.classList.contains('custom-class')).toBe(true);
testComponent.checkboxColor = 'accent';
fixture.detectChanges();
expect(checkboxNativeElement.classList.contains('mat-primary')).toBe(false);
expect(checkboxNativeElement.classList.contains('mat-accent')).toBe(true);
expect(checkboxNativeElement.classList.contains('custom-class')).toBe(true);
}));
it('should default to accent if no color is passed in', fakeAsync(() => {
testComponent.checkboxColor = undefined;
fixture.detectChanges();
expect(checkboxNativeElement.classList).toContain('mat-accent');
}));
});
describe(`when MAT_CHECKBOX_CLICK_ACTION is 'check'`, () => {
beforeEach(() => {
TestBed.resetTestingModule();
TestBed.configureTestingModule({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [SingleCheckbox],
providers: [
{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: {clickAction: 'check'}}
]
});
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = checkboxNativeElement.querySelector('input') as HTMLInputElement;
labelElement = checkboxNativeElement.querySelector('label') as HTMLLabelElement;
});
it('should not set `indeterminate` to false on click if check is set', fakeAsync(() => {
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
}));
});
describe(`when MAT_CHECKBOX_CLICK_ACTION is 'noop'`, () => {
beforeEach(() => {
TestBed.resetTestingModule();
TestBed.configureTestingModule({
imports: [MatCheckboxModule, FormsModule, ReactiveFormsModule],
declarations: [SingleCheckbox],
providers: [
{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: {clickAction: 'noop'}}
]
});
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = checkboxNativeElement.querySelector('input') as HTMLInputElement;
labelElement = checkboxNativeElement.querySelector('label') as HTMLLabelElement;
});
it('should not change `indeterminate` on click if noop is set', fakeAsync(() => {
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate).toBe(true);
}));
it(`should not change 'checked' or 'indeterminate' on click if noop is set`, fakeAsync(() => {
testComponent.isChecked = true;
testComponent.isIndeterminate = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(true);
expect(inputElement.indeterminate).toBe(true);
testComponent.isChecked = false;
inputElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
expect(inputElement.indeterminate)
.withContext('indeterminate should not change').toBe(true);
}));
});
it('should have a focus indicator', () => {
const checkboxRippleNativeElement =
checkboxNativeElement.querySelector('.mat-mdc-checkbox-ripple')!;
expect(checkboxRippleNativeElement.classList.contains('mat-mdc-focus-indicator')).toBe(true);
});
});
describe('with change event and no initial value', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let checkboxInstance: MatCheckbox;
let testComponent: CheckboxWithChangeEvent;
let inputElement: HTMLInputElement;
let labelElement: HTMLLabelElement;
beforeEach(() => {
fixture = createComponent(CheckboxWithChangeEvent);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
labelElement = <HTMLLabelElement>checkboxNativeElement.querySelector('label');
});
it('should emit the event to the change observable', fakeAsync(() => {
let changeSpy = jasmine.createSpy('onChangeObservable');
checkboxInstance.change.subscribe(changeSpy);
fixture.detectChanges();
expect(changeSpy).not.toHaveBeenCalled();
// When changing the native `checked` property the checkbox will not fire a change event,
// because the element is not focused and it's not the native behavior of the input
// element.
labelElement.click();
fixture.detectChanges();
flush();
expect(changeSpy).toHaveBeenCalledTimes(1);
}));
it('should not emit a DOM event to the change output', fakeAsync(() => {
fixture.detectChanges();
expect(testComponent.lastEvent).toBeUndefined();
// Trigger the click on the inputElement, because the input will probably
// emit a DOM event to the change output.
inputElement.click();
fixture.detectChanges();
flush();
// We're checking the arguments type / emitted value to be a boolean, because sometimes the
// emitted value can be a DOM Event, which is not valid.
// See angular/angular#4059
expect(testComponent.lastEvent.checked).toBe(true);
}));
});
describe('aria-label', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-label', fakeAsync(() => {
fixture = createComponent(CheckboxWithAriaLabel);
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-label')).toBe('Super effective');
}));
it('should not set the aria-label attribute if no value is provided', fakeAsync(() => {
fixture = createComponent(SingleCheckbox);
fixture.detectChanges();
expect(fixture.nativeElement.querySelector('input').hasAttribute('aria-label'))
.toBe(false);
}));
});
describe('with provided aria-labelledby ', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-labelledby', fakeAsync(() => {
fixture = createComponent(CheckboxWithAriaLabelledby);
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-labelledby')).toBe('some-id');
}));
it('should not assign aria-labelledby if none is provided', fakeAsync(() => {
fixture = createComponent(SingleCheckbox);
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-labelledby')).toBe(null);
}));
});
describe('with provided aria-describedby ', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let inputElement: HTMLInputElement;
it('should use the provided aria-describedby', () => {
fixture = createComponent(CheckboxWithAriaDescribedby);
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-describedby')).toBe('some-id');
});
it('should not assign aria-describedby if none is provided', () => {
fixture = createComponent(SingleCheckbox);
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
fixture.detectChanges();
expect(inputElement.getAttribute('aria-describedby')).toBe(null);
});
});
describe('with provided tabIndex', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let testComponent: CheckboxWithTabIndex;
let inputElement: HTMLInputElement;
beforeEach(() => {
fixture = createComponent(CheckboxWithTabIndex);
fixture.detectChanges();
testComponent = fixture.debugElement.componentInstance;
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
});
it('should preserve any given tabIndex', fakeAsync(() => {
expect(inputElement.tabIndex).toBe(7);
}));
it('should preserve given tabIndex when the checkbox is disabled then enabled',
fakeAsync(() => {
testComponent.isDisabled = true;
fixture.detectChanges();
testComponent.customTabIndex = 13;
fixture.detectChanges();
testComponent.isDisabled = false;
fixture.detectChanges();
expect(inputElement.tabIndex).toBe(13);
}));
});
describe('with native tabindex attribute', () => {
it('should properly detect native tabindex attribute', fakeAsync(() => {
fixture = createComponent(CheckboxWithTabindexAttr);
fixture.detectChanges();
const checkbox =
fixture.debugElement.query(By.directive(MatCheckbox))!
.componentInstance as MatCheckbox;
expect(checkbox.tabIndex)
.withContext('Expected tabIndex property to have been set based on the native attribute')
.toBe(5);
}));
it('should clear the tabindex attribute from the host element', fakeAsync(() => {
fixture = createComponent(CheckboxWithTabindexAttr);
fixture.detectChanges();
const checkbox = fixture.debugElement.query(By.directive(MatCheckbox))!.nativeElement;
expect(checkbox.getAttribute('tabindex')).toBeFalsy();
}));
});
describe('with multiple checkboxes', () => {
beforeEach(() => {
fixture = createComponent(MultipleCheckboxes);
fixture.detectChanges();
});
it('should assign a unique id to each checkbox', fakeAsync(() => {
let [firstId, secondId] =
fixture.debugElement.queryAll(By.directive(MatCheckbox))
.map(debugElement => debugElement.nativeElement.querySelector('input').id);
expect(firstId).toMatch(/mat-mdc-checkbox-\d+-input/);
expect(secondId).toMatch(/mat-mdc-checkbox-\d+-input/);
expect(firstId).not.toEqual(secondId);
}));
});
describe('with ngModel', () => {
let checkboxDebugElement: DebugElement;
let checkboxNativeElement: HTMLElement;
let checkboxInstance: MatCheckbox;
let inputElement: HTMLInputElement;
let ngModel: NgModel;
beforeEach(() => {
fixture = createComponent(CheckboxWithNgModel);
fixture.componentInstance.isRequired = false;
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
ngModel = checkboxDebugElement.injector.get<NgModel>(NgModel);
});
it('should be pristine, untouched, and valid initially', fakeAsync(() => {
expect(ngModel.valid).toBe(true);
expect(ngModel.pristine).toBe(true);
expect(ngModel.touched).toBe(false);
}));
it('should have correct control states after interaction', fakeAsync(() => {
inputElement.click();
fixture.detectChanges();
// Flush the timeout that is being created whenever a `click` event has been fired by
// the underlying input.
flush();
// After the value change through interaction, the control should be dirty, but remain
// untouched as long as the focus is still on the underlying input.
expect(ngModel.pristine).toBe(false);
expect(ngModel.touched).toBe(false);
// If the input element loses focus, the control should remain dirty but should
// also turn touched.
dispatchFakeEvent(inputElement, 'blur');
fixture.detectChanges();
flushMicrotasks();
expect(ngModel.pristine).toBe(false);
expect(ngModel.touched).toBe(true);
}));
it('should mark the element as touched on blur when inside an OnPush parent', fakeAsync(() => {
fixture.destroy();
TestBed.resetTestingModule();
fixture = createComponent(CheckboxWithNgModelAndOnPush);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxNativeElement = checkboxDebugElement.nativeElement;
checkboxInstance = checkboxDebugElement.componentInstance;
inputElement = <HTMLInputElement>checkboxNativeElement.querySelector('input');
ngModel = checkboxDebugElement.injector.get<NgModel>(NgModel);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxNativeElement.classList).not.toContain('ng-touched');
dispatchFakeEvent(inputElement, 'blur');
fixture.detectChanges();
flushMicrotasks();
fixture.detectChanges();
expect(checkboxNativeElement.classList).toContain('ng-touched');
}));
it('should not throw an error when disabling while focused', fakeAsync(() => {
expect(() => {
// Focus the input element because after disabling, the `blur` event should automatically
// fire and not result in a changed after checked exception. Related: #12323
inputElement.focus();
fixture.componentInstance.isDisabled = true;
fixture.detectChanges();
flushMicrotasks();
}).not.toThrow();
}));
it('should toggle checked state on click', fakeAsync(() => {
expect(checkboxInstance.checked).toBe(false);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
}));
it('should validate with RequiredTrue validator', fakeAsync(() => {
fixture.componentInstance.isRequired = true;
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(true);
expect(ngModel.valid).toBe(true);
inputElement.click();
fixture.detectChanges();
flush();
expect(checkboxInstance.checked).toBe(false);
expect(ngModel.valid).toBe(false);
}));
it('should update the ngModel value when using the `toggle` method', fakeAsync(() => {
const checkbox = fixture.debugElement.query(By.directive(MatCheckbox)).componentInstance;
expect(fixture.componentInstance.isGood).toBe(false);
checkbox.toggle();
fixture.detectChanges();
expect(fixture.componentInstance.isGood).toBe(true);
}));
});
describe('with name attribute', () => {
beforeEach(() => {
fixture = createComponent(CheckboxWithNameAttribute);
fixture.detectChanges();
});
it('should forward name value to input element', fakeAsync(() => {
let checkboxElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
let inputElement = <HTMLInputElement>checkboxElement.nativeElement.querySelector('input');
expect(inputElement.getAttribute('name')).toBe('test-name');
}));
});
describe('with form control', () => {
let checkboxDebugElement: DebugElement;
let checkboxInstance: MatCheckbox;
let testComponent: CheckboxWithFormControl;
let inputElement: HTMLInputElement;
beforeEach(() => {
fixture = createComponent(CheckboxWithFormControl);
fixture.detectChanges();
checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxInstance = checkboxDebugElement.componentInstance;
testComponent = fixture.debugElement.componentInstance;
inputElement = <HTMLInputElement>checkboxDebugElement.nativeElement.querySelector('input');
});
it('should toggle the disabled state', fakeAsync(() => {
expect(checkboxInstance.disabled).toBe(false);
testComponent.formControl.disable();
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(true);
expect(inputElement.disabled).toBe(true);
testComponent.formControl.enable();
fixture.detectChanges();
expect(checkboxInstance.disabled).toBe(false);
expect(inputElement.disabled).toBe(false);
}));
});
describe('without label', () => {
let checkboxInnerContainer: HTMLElement;
beforeEach(() => {
fixture = createComponent(CheckboxWithoutLabel);
const checkboxDebugEl = fixture.debugElement.query(By.directive(MatCheckbox))!;
checkboxInnerContainer = checkboxDebugEl.query(By.css('.mdc-form-field'))!.nativeElement;
});
it('should not add the "name" attribute if it is not passed in', fakeAsync(() => {
fixture.detectChanges();
expect(checkboxInnerContainer.querySelector('input')!.hasAttribute('name')).toBe(false);
}));
it('should not add the "value" attribute if it is not passed in', fakeAsync(() => {
fixture.detectChanges();
expect(checkboxInnerContainer.querySelector('input')!.hasAttribute('value')).toBe(false);
}));
});
});
describe('MatCheckboxDefaultOptions', () => {
describe('when MAT_CHECKBOX_DEFAULT_OPTIONS overridden', () => {
function configure(defaults: MatCheckboxDefaultOptions) {
TestBed.configureTestingModule({
imports: [MatCheckboxModule, FormsModule],
declarations: [SingleCheckbox, SingleCheckbox],
providers: [{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: defaults}]
});
TestBed.compileComponents();
}
it('should override default color in component', () => {
configure({color: 'primary'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.detectChanges();
const checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(checkboxDebugElement.nativeElement.classList).toContain('mat-primary');
});
it('should not override explicit input bindings', () => {
configure({color: 'primary'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.componentInstance.checkboxColor = 'warn';
fixture.detectChanges();
const checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(checkboxDebugElement.nativeElement.classList).not.toContain('mat-primary');
expect(checkboxDebugElement.nativeElement.classList).toContain('mat-warn');
expect(checkboxDebugElement.nativeElement.classList).toContain('mat-warn');
});
it('should default to accent if config does not specify color', () => {
configure({clickAction: 'noop'});
const fixture: ComponentFixture<SingleCheckbox> = TestBed.createComponent(SingleCheckbox);
fixture.componentInstance.checkboxColor = undefined;
fixture.detectChanges();
const checkboxDebugElement = fixture.debugElement.query(By.directive(MatCheckbox))!;
expect(checkboxDebugElement.nativeElement.classList).toContain('mat-accent');
});
});
});
/** Simple component for testing a single checkbox. */
@Component({
template: `
<div (click)="parentElementClicked = true" (keyup)="parentElementKeyedUp = true">
<mat-checkbox
[id]="checkboxId"
[required]="isRequired"
[labelPosition]="labelPos"
[checked]="isChecked"
[(indeterminate)]="isIndeterminate"
[disabled]="isDisabled"
[color]="checkboxColor"
[disableRipple]="disableRipple"
[value]="checkboxValue"
(click)="onCheckboxClick($event)"
(change)="onCheckboxChange($event)">
Simple checkbox
</mat-checkbox>
</div>`
})
class SingleCheckbox {
labelPos: 'before'|'after' = 'after';
isChecked: boolean = false;
isRequired: boolean = false;
isIndeterminate: boolean = false;
isDisabled: boolean = false;
disableRipple: boolean = false;
parentElementClicked: boolean = false;
parentElementKeyedUp: boolean = false;
checkboxId: string|null = 'simple-check';
checkboxColor: ThemePalette = 'primary';
checkboxValue: string = 'single_checkbox';
onCheckboxClick: (event?: Event) => void = () => {};
onCheckboxChange: (event?: MatCheckboxChange) => void = () => {};
}
/** Simple component for testing an MatCheckbox with required ngModel. */
@Component({
template: `<mat-checkbox [required]="isRequired" [(ngModel)]="isGood"
[disabled]="isDisabled">Be good</mat-checkbox>`,
})
class CheckboxWithNgModel {
isGood: boolean = false;
isRequired: boolean = true;
isDisabled: boolean = false;
}
@Component({
template: `<mat-checkbox [required]="isRequired" [(ngModel)]="isGood">Be good</mat-checkbox>`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
class CheckboxWithNgModelAndOnPush extends CheckboxWithNgModel {
}
/** Simple test component with multiple checkboxes. */
@Component(({
template: `
<mat-checkbox>Option 1</mat-checkbox>
<mat-checkbox>Option 2</mat-checkbox>
`
}))
class MultipleCheckboxes {
}
/** Simple test component with tabIndex */
@Component({
template: `
<mat-checkbox
[tabIndex]="customTabIndex"
[disabled]="isDisabled">
</mat-checkbox>`,
})
class CheckboxWithTabIndex {
customTabIndex: number = 7;
isDisabled: boolean = false;
}
/** Simple test component with an aria-label set. */
@Component({template: `<mat-checkbox aria-label="Super effective"></mat-checkbox>`})
class CheckboxWithAriaLabel {
}
/** Simple test component with an aria-label set. */
@Component({template: `<mat-checkbox aria-labelledby="some-id"></mat-checkbox>`})
class CheckboxWithAriaLabelledby {
}
/** Simple test component with an aria-describedby set. */
@Component({
template: `<mat-checkbox aria-describedby="some-id"></mat-checkbox>`
})
class CheckboxWithAriaDescribedby {}
/** Simple test component with name attribute */
@Component({template: `<mat-checkbox name="test-name"></mat-checkbox>`})
class CheckboxWithNameAttribute {
}
/** Simple test component with change event */
@Component({template: `<mat-checkbox (change)="lastEvent = $event"></mat-checkbox>`})
class CheckboxWithChangeEvent {
lastEvent: MatCheckboxChange;
}
/** Test component with reactive forms */
@Component({template: `<mat-checkbox [formControl]="formControl"></mat-checkbox>`})
class CheckboxWithFormControl {
formControl = new FormControl();
}
/** Test component without label */
@Component({template: `<mat-checkbox>{{ label }}</mat-checkbox>`})
class CheckboxWithoutLabel {
label: string;
}
/** Test component with the native tabindex attribute. */
@Component({template: `<mat-checkbox tabindex="5"></mat-checkbox>`})
class CheckboxWithTabindexAttr {
}
| josephperrott/material2 | src/material-experimental/mdc-checkbox/checkbox.spec.ts | TypeScript | mit | 43,213 |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>AngularWithDotnetCore</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root>Loading...</app-root>
</body>
</html>
| ProfessionalCSharp/ProfessionalCSharp7 | ASPNETCore/WebSampleApp/AngularWithDotnetCore/ClientApp/src/index.html | HTML | mit | 318 |
# frozen_string_literal: true
module Eve
class AllRegionsContractsImporter
def import
region_ids.each do |region_id|
Eve::RegionContractsJob.perform_later(region_id)
end
end
private
def region_ids
@region_ids ||= Eve::Region.pluck(:region_id).sort.uniq
end
end
end
| biow0lf/evemonk | app/importers/eve/all_regions_contracts_importer.rb | Ruby | mit | 318 |
#!/usr/bin/env node
let layouts = [
`# French
&é"'(-è_çà)=
azertyuiop^$*
qsdfghjklmù
wxcvbn,;:!
`,
`# German (German (IBM) is the same)
1234567890ß
qwertzuiopü+#
asdfghjklöä
yxcvbnm,.-
`,
`# Spanish
1234567890'¡
qwertyuiop+ç
asdfghjklñ
zxcvbnm,.-
## ESV
1234567890-
qwertyuiop÷
asdfghjklñç
zxcvbnm,.=
`,
`# Português
1234567890'«
qwertyuiop+´~
asdfghjklçº
zxcvbnm,.-
## PTB
1234567890-=
qwertyuiop´[]
asdfghjklç~~
zxcvbnm,.;
`,
`# Russian
1234567890-=
йцукенгшщзхъ\
фывапролджэ
ячсмитьбю.
`,
`# Cyrillic
1234567890'+
љњертзуиопшђж
асдфгхјклчћ
ѕџцвбнм,.-
`,
`# Arabic
1234567890-=
ضصثقفغعهخحجد\
شسيبلاتنمكط
ئءؤرلاىةوزظ
`,
`# Korean
1234567890-=
qwertyuiop[]\
asdfghjkl;'
zxcvbnm,./
# Turkish
1234567890*-
qwertyuıopğü,
asdfghjklşi
zxcvbnmöç.
!'^+%&/()=?_
QWERTYUIOPĞÜ;
ASDFGHJKLŞİ
ZXCVBNMÖÇ:
`
].join("\n").split("\n").filter(
line => !(line[0] === "#" || line[0] === "(" && line.slice(-1) === ")")
).join("");
const getRe = name => name instanceof RegExp ? name : new RegExp(`[\\p{${name}}]`, "ug");
const filter = (text, re) => [...new Set(text.match(re, ""))].sort();
const parse = arr => [
arr,
arr.map(i=>i.codePointAt()).filter(i => i >= 128),
arr.length
];
const print = (category, text) => console.log(`${category}:`, ...parse(filter(text, getRe(category))));
print("Ll", layouts);
print("Lo", layouts);
print("Lu", layouts);
print("Lt", layouts);
print("Lm", layouts);
const range = (start, end, conv=String.fromCharCode) => {
const arr = [];
for (let i = start, end2 = end || start + 1; i < end2; i++) { arr.push(i); }
return conv ? conv(...arr) : arr;
};
const hex = (start, end) => range(start, end, null).map(i => i.toString(16));
print("Ll", range(1070, 1120));
print("Lo", range(1569, 1614));
var hasConsole = 1;
// hasConsole = 0;
if (typeof require === "function" && hasConsole) {
Object.assign(require('repl').start("node> ").context, {
hex, range, print, filter, parse, getRe, layouts
});
}
| gdh1995/vimium-plus | tests/unit/keyboard-layouts.js | JavaScript | mit | 2,107 |
---
layout: page
title: Archive
---
### Blog Posts
{% for post in site.posts %}
* {{ post.date | date_to_string }} » [ {{ post.title }} ]({{ post.url }})
{% endfor %}
| epicoffee/epicoffee.github.io | archive.md | Markdown | mit | 177 |
import Ember from 'ember';
export default Ember.Component.extend({
tagName : '',
item : null,
isFollowing : false,
isLoggedIn : false,
init() {
this.set('isLoggedIn', !!this.get('application.user.login'));
if (this.get('application.places.length') > 0) {
this.set('isFollowing', !!this.get('application.places').findBy('id', this.get('item.id')));
}
}
});
| b37t1td/barapp-freecodecamp | client/app/components/user-following.js | JavaScript | mit | 389 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.2 / io - 3.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
io
<small>
3.3.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2021-03-31 05:27:10 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-03-31 05:27:10 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.10.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1 Official release 4.10.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/clarus/io"
dev-repo: "git+https://github.com/clarus/io.git"
bug-reports: "https://github.com/clarus/io/issues"
authors: ["Guillaume Claret"]
license: "MIT"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Io"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
]
synopsis: "A library for effects in Coq"
flags: light-uninstall
url {
src: "https://github.com/coq-io/io/archive/3.3.0.tar.gz"
checksum: "md5=0c5b884e9aabf39239fa42f8ae7ccda1"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-io.3.3.0 coq.8.11.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2).
The following dependencies couldn't be met:
- coq-io -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-io.3.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.2/io/3.3.0.html | HTML | mit | 6,313 |
class CB::Util::ServiceRescuer
def initialize instance
@instance = instance
end
def method_missing method, *args, &block
if @instance.respond_to? method
begin
@instance.public_send method, *args, &block
rescue => e
error_type = e.is_a?(ActiveRecord::RecordNotFound) ? :not_found : :exception
[false, {error: error_type, message: e.message}]
end
else
super
end
end
end | contentbird/contentbird | app/services/cb/util/service_rescuer.rb | Ruby | mit | 439 |
#ifndef TELEMETRY_H
#define TELEMETRY_H
#include <Arduino.h>
#include <HardwareSerial.h>
#include "common.h"
#include "queuelist.h"
static const unsigned WHEEL_EVENT_MIN_INTERVAL = 5;
class Telemetry
{
public:
Telemetry(HardwareSerial port, unsigned speed);
void serialPolling();
void wheelEvent(rot_one left, rot_one right);
void sonarEvent(packet *sonarPacket);
void sendPing(bool &ready, uint32_t &delay);
packet *getMainLoopPacket();
void freePacket(packet *p);
packet *getEmptyPacket();
void putMainLoopPacket(packet *p);
void errorCounter(uint32_t count, char const *name);
private:
enum receiveStates {
RS_BEGIN, //!< Waiting for framing 0x7e
RS_DATA, //!< Incoming data
RS_ESCAPE, //!< Received 0x7d - XOR next byte with 0x20
};
enum transmitStates {
TS_BEGIN, //!< Nothing sent yet, deliver 0x7e
TS_DATA, //!< Sending normal data
TS_ESCAPE, //!< Escape has been sent, escByte is next
TS_CHKSUM, //!< Last data byte sent, checksum is next
TS_CHECKSUM_ESC, //!< checksum needs escaping
TS_END, //!< Checksum sent, frame is next. Can be skipped if there is a next packet in queue
TS_IDLE, //!< No data to transmit.
};
HardwareSerial serialPort;
// Outgoing packet queues
queuelist priorityQueue; // allow for 4
queuelist rotationQueue; // allow for 2
queuelist sonarQueue[MAX_NO_OF_SONAR]; // allow for 6+2
// Free buffers
queuelist freeList;
// Internal processing queue
queuelist mainLoop;
// RX data housekeeping
packet *rxCurrentPacket; //!< Packet being received
receiveStates rxState; //!< state of packet reception
uint16_t rxCurrentOffset; //!< Bytes received so far
uint16_t rxChecksum; //!< Checksum so far
// Error counters
bool counterUpdate;
// TX data housekeeping
packet *txCurrentPacket; //!< The currently transmitting packet
uint16_t txTotalSize; //!< Total number of bytes (payload - note escaped) in bufefr
uint16_t txCurrentOffset; //!< Current offset for transmission
transmitStates txState; //!< State for packet transmission
byte txEscByte; //!< stuffed byte, i.e. value xor'ed with 0x20 to transmit.
uint16_t txChecksum; //!< TX checksum
// Protocol housekeeping
bool *pingReady;
uint32_t *pingDelay;
// Static array of packet buffers to flow around the queues
static const unsigned bufferCount = 32;
packet packetPool[bufferCount];
// Mechanism to cycle between available output queues
uint16_t sequenceIdx;
static const unsigned sequenceMax = MAX_NO_OF_SONAR+1; // sonars + wheels
queuelist* queueSequence[sequenceMax]; // This is used to cycle between queues
// Functions
void initQueues();
packet *txGetPacketFromQueues();
size_t getPacketLength(packet *p);
inline void crcUpdate(uint16_t &chksum, byte b);
bool rxGetBuffer();
void rxHandleUartByte(byte b);
void rxCalcChecksum(byte b);
bool rxEndOfPacketHandling();
void rxReInitPacket();
void rxSaveByte(byte b);
void rxPacketForwarding(packet *p);
bool txEndOfPacketHandling();
bool txGetPacketByte(byte &b);
};
#endif // TELEMETRY_H
| mox17/teensy-car-sensors | sensor-hub/telemetry.h | C | mit | 3,304 |
package com.nicolas.coding.common.photopick;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CursorAdapter;
import android.widget.ImageView;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nicolas.coding.MyApp;
import com.nicolas.coding.R;
import com.nicolas.coding.common.photopick.PhotoPickActivity.GridViewCheckTag;
/**
* Created by chenchao on 15/5/6.
*/
class GridPhotoAdapter extends CursorAdapter {
final int itemWidth;
LayoutInflater mInflater;
PhotoPickActivity mActivity;
//
// enum Mode { All, Folder }
// private Mode mMode = Mode.All;
//
// void setmMode(Mode mMode) {
// this.mMode = mMode;
// }
View.OnClickListener mClickItem = new View.OnClickListener() {
@Override
public void onClick(View v) {
mActivity.clickPhotoItem(v);
}
};
GridPhotoAdapter(Context context, Cursor c, boolean autoRequery, PhotoPickActivity activity) {
super(context, c, autoRequery);
mInflater = LayoutInflater.from(context);
mActivity = activity;
int spacePix = context.getResources().getDimensionPixelSize(R.dimen.pickimage_gridlist_item_space);
itemWidth = (MyApp.sWidthPix - spacePix * 4) / 3;
}
@Override
public View newView(Context context, Cursor cursor, ViewGroup parent) {
View convertView = mInflater.inflate(R.layout.photopick_gridlist_item, parent, false);
ViewGroup.LayoutParams layoutParams = convertView.getLayoutParams();
layoutParams.height = itemWidth;
layoutParams.width = itemWidth;
convertView.setLayoutParams(layoutParams);
GridViewHolder holder = new GridViewHolder();
holder.icon = (ImageView) convertView.findViewById(R.id.icon);
holder.iconFore = (ImageView) convertView.findViewById(R.id.iconFore);
holder.check = (CheckBox) convertView.findViewById(R.id.check);
GridViewCheckTag checkTag = new GridViewCheckTag(holder.iconFore);
holder.check.setTag(checkTag);
holder.check.setOnClickListener(mClickItem);
convertView.setTag(holder);
ViewGroup.LayoutParams iconParam = holder.icon.getLayoutParams();
iconParam.width = itemWidth;
iconParam.height = itemWidth;
holder.icon.setLayoutParams(iconParam);
return convertView;
}
@Override
public void bindView(View view, Context context, Cursor cursor) {
GridViewHolder holder;
holder = (GridViewHolder) view.getTag();
ImageLoader imageLoader = ImageLoader.getInstance();
String path = ImageInfo.pathAddPreFix(cursor.getString(1));
imageLoader.displayImage(path, holder.icon, PhotoPickActivity.optionsImage);
((GridViewCheckTag) holder.check.getTag()).path = path;
boolean picked = mActivity.isPicked(path);
holder.check.setChecked(picked);
holder.iconFore.setVisibility(picked ? View.VISIBLE : View.INVISIBLE);
}
static class GridViewHolder {
ImageView icon;
ImageView iconFore;
CheckBox check;
}
}
| liwangadd/Coding | app/src/main/java/com/nicolas/coding/common/photopick/GridPhotoAdapter.java | Java | mit | 3,262 |
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Idea.color'
db.add_column(u'brainstorming_idea', 'color',
self.gf('django.db.models.fields.CharField')(default='', max_length=100, blank=True),
keep_default=False)
def backwards(self, orm):
# Deleting field 'Idea.color'
db.delete_column(u'brainstorming_idea', 'color')
models = {
u'brainstorming.brainstorming': {
'Meta': {'ordering': "['-created']", 'object_name': 'Brainstorming'},
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'creator_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'creator_ip': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'details': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'id': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'question': ('django.db.models.fields.CharField', [], {'max_length': '200'})
},
u'brainstorming.brainstormingwatcher': {
'Meta': {'ordering': "['-created']", 'unique_together': "(('brainstorming', 'email'),)", 'object_name': 'BrainstormingWatcher'},
'brainstorming': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['brainstorming.Brainstorming']"}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'})
},
u'brainstorming.emailverification': {
'Meta': {'ordering': "['-created']", 'object_name': 'EmailVerification'},
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
'id': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'})
},
u'brainstorming.idea': {
'Meta': {'ordering': "['-created']", 'object_name': 'Idea'},
'brainstorming': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['brainstorming.Brainstorming']"}),
'color': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'creator_ip': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
'creator_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),
'ratings': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'text': ('django.db.models.fields.TextField', [], {}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
}
}
complete_apps = ['brainstorming'] | atizo/braindump | brainstorming/migrations/0005_auto__add_field_idea_color.py | Python | mit | 4,031 |
package com.sien.aimanager;
import android.content.Intent;
import android.os.Handler;
import com.sien.aimanager.services.MonitorServices;
import com.sien.lib.baseapp.BaseApplication;
import com.sien.lib.databmob.config.DatappConfig;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;
/**
* @author sien
* @date 2017/2/5
* @descript
*/
public class MainApp extends BaseApplication {
@Override
public void onCreate() {
super.onCreate();
//启动监听服务 并 延时触发创建检测机制
startMonitorServiceAndDelayInitialCheckMechanism();
initBmobConfig();
}
private void initBmobConfig(){
BmobConfig config =new BmobConfig.Builder(this)
//设置appkey
.setApplicationId(DatappConfig.BMOB_APPID)
//请求超时时间(单位为秒):默认15s
.setConnectTimeout(30)
//文件分片上传时每片的大小(单位字节),默认512*1024
.setUploadBlockSize(1024*1024)
//文件的过期时间(单位为秒):默认1800s
.setFileExpiration(2500)
.build();
Bmob.initialize(config);
}
/**
* 触发创建检测机制
*/
private void startMonitorServiceAndDelayInitialCheckMechanism(){
//启动监听定时创建检查机制(可放到监听服务启动时触发)
Handler tempHandler = new Handler();
tempHandler.postDelayed(new Runnable() {
@Override
public void run() {
startService(new Intent(MainApp.this, MonitorServices.class));
}
},200);
}
}
| eity0323/aimanager | app/src/main/java/com/sien/aimanager/MainApp.java | Java | mit | 1,651 |
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int ratio = 3; //per canny's suggestion
int canny_thresh = 12; //starts at 12, this is what we will be changing though
int hough_thresh = 27;
int angle_tracker = 20;
int max_thresh = 255;//max for both thresh variable
double angle_thresh = .14;
int frame_num = 0; //keeps track of the current frame
int max_frame = 0; //total frames in the video. this may fail for cameras?
int kernel_size = 5; //kernel for the guassian blur
int kernel_max = 256;
int num_bins = 30; // needs to divide image width cleanly (not really though)
int max_bins = 100;
VideoCapture cap;
//all the thresh variables are already assigned without us needing to do anything here, so the only thing we need to do is set the frame_num if it was changed
//the trackbars only do ints, so we need to calculate a ratio for the angle threshold
void threshCallback(int, void* )
{
angle_thresh = ((float) angle_tracker/ (float) max_thresh)*3.1415;
cap.set(CV_CAP_PROP_POS_FRAMES, frame_num);
}
void blurCallback(int, void* )
{
//the kernel for a guassian filter needs to be odd
kernel_size = (round(kernel_size / 2.0) * 2) -1; //round down to nearest odd integer
//make sure we don't have a negative number (error from round) or zero
if (kernel_size < 1){
kernel_size = 1;
}
//let the user know what the actual kernel being used is (kernel of one == no blur)
setTrackbarPos("Kernel size","parameters", kernel_size);
}
int main(int argc, char* argv[]){
//check for the input parameter correctness
if(argc != 2){
cerr <<"Incorrect input list, usage: rosrun vision gate_tuner <path_to_video_or_camera>" << endl;
exit(1);
}
//create and open the capture object
cap.open(argv[1]);
max_frame = cap.get(CV_CAP_PROP_FRAME_COUNT );
cout << max_frame << endl;
if(!cap.isOpened()){
//error in opening the video input
cerr << "Unable to open video file: " << argv[1] << endl;
exit(1);
}
//make some windows, place them at 20 pixels out because my window manager can't grab them in the corner..
namedWindow("current frame");
moveWindow("current frame", 20, 20);
namedWindow("after blur");
moveWindow("after blur", 220, 20);
namedWindow("parameters");
moveWindow("parameters", 420, 20);
createTrackbar( "Canny thresh", "parameters", &canny_thresh, max_thresh, threshCallback );
createTrackbar( "Hough thresh", "parameters", &hough_thresh, max_thresh, threshCallback );
createTrackbar( "Angle thresh", "parameters", &angle_tracker, max_thresh, threshCallback );
createTrackbar( "Num bins", "parameters", &num_bins, max_bins, threshCallback );
createTrackbar( "Kernel size", "parameters", &kernel_size, kernel_max, blurCallback);
createTrackbar( "Frame", "parameters", &frame_num, max_frame, threshCallback);
threshCallback( 0, 0 );
Mat cframe;
while(true){
cap >> cframe;
setTrackbarPos("Frame","parameters", cap.get(CV_CAP_PROP_POS_FRAMES));
//redundant matrices so that we can display intermediate steps at the end
Mat dst, cdst, gdst;
GaussianBlur(cframe, gdst, Size( kernel_size, kernel_size ), 0, 0 );
Canny(gdst, dst, canny_thresh, canny_thresh*ratio, 3);
cvtColor(dst, cdst, CV_GRAY2BGR);
vector<Vec4i> lines;
vector<Vec2f> also_lines;
HoughLinesP(dst, lines, 1, CV_PI/180, hough_thresh, 50, 10 );
HoughLines(dst, also_lines, 1, CV_PI/180, hough_thresh, 50, 10 );
vector<int> xbin_count; //TODO better name
for(int i = 0; i < num_bins; i++){
xbin_count.push_back(0);
}
// int bin_size = cap.get( CAP_PROP_FRAME_WIDTH )/num_bins; typo maybe?
int bin_size = cap.get( CV_CAP_PROP_FRAME_WIDTH )/num_bins;
cout << "bin size = " << bin_size << endl;
for( size_t i = 0; i < also_lines.size();i++) {
float rho = also_lines[i][0], theta = also_lines[i][1];
if (theta > 3.14 - angle_thresh && theta < 3.14 + angle_thresh){
//printf("line[%lu] = %f, %f \n", i, also_lines[i][0], also_lines[i][1]);
Point pt1, pt2;
double a = cos(theta), b = sin(theta);
double x0 = a*rho, y0 = b*rho;
cout << "x0 = " << x0 << " num bins = " << num_bins << " bin = " << (int) (x0/bin_size)+1 << endl;
int bin = (int) x0/bin_size;
if(bin > 0){
xbin_count[(int) ((x0/bin_size))]++;
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( cdst, pt1, pt2, Scalar(0,0,255), 3, CV_AA);
}
else {
pt1.x = cvRound(x0 + 1000*(-b));
pt1.y = cvRound(y0 + 1000*(a));
pt2.x = cvRound(x0 - 1000*(-b));
pt2.y = cvRound(y0 - 1000*(a));
line( cdst, pt1, pt2, Scalar(0,255,0), 3, CV_AA);
}
}
}
for(int i = 0; i < xbin_count.size(); i++){
cout << "bin" << i << "=" << " " << xbin_count[i] << endl;
}
//ok now xbin_count is populated, let's find which bin has the most lines
int max = 0;
int max_i = 0;
for( int i = 0; i < xbin_count.size(); i++){
if (xbin_count[i] > max ){
max = xbin_count[i];
max_i = i;
}
}
int max2 = 0;
int max2_i = 0;
//the two is arbitrary and there are probably better ways to go about this
for( int i = 0; i < xbin_count.size(); i++){
if (xbin_count[i] > max2 && ( i > (max_i + 2) || i < (max_i - 2 ))){
max2 = xbin_count[i];
max2_i = i;
}
}
cout << "max1 - " << max_i << endl;
cout << "max2 - " << max2_i << endl;
//great lets find the average of our two location
int average = ((bin_size*max_i + bin_size/2) + (bin_size*max2_i + bin_size/2))/2;
Point pt1, pt2;
pt1.x = (average);
pt1.y = (1000);
pt2.x = (average);
pt2.y = (-1000);
line( cdst, pt1, pt2, Scalar(255,0,0), 3, CV_AA);
// for( size_t i = 0; i < lines.size(); i++ )
// {
// Vec4i l = lines[i];
// printf("(%i, %i) (%i, %i) \n", l[0], l[1], l[2], l[3]);
// double theta = atan2((l[0] - l[2]), (l[1] - l[3]));
// cout << "theta" << theta << endl;
// // range is +- pi
// if ( (abs(theta) < angle_thresh && abs(theta) > -angle_thresh) || (abs(theta) < (3.14 + angle_thresh) && abs(theta)) > 3.14 - angle_thresh){
// line( cdst, Point(l[0], l[1]), Point(l[2], l[3]), Scalar(0,0,255), 3, CV_AA);
// }
// }
//imshow("source", cframe);
imshow("current frame" ,cframe);
imshow("after blur", gdst);
imshow("parameters", cdst);
waitKey();
}
}
| robotics-at-maryland/qubo | src/vision/src/tuners/gate_tuner.cpp | C++ | mit | 6,479 |
CSS.NLogExtensions
==================
NLog extension ImageTarget, useful for saving screenshots.
Download the latest release or from the NuGet "Package Manager Console", run ```Install-Package CSS.NLogExtensions```
| kfrancis/CSS.NLogExtensions | README.md | Markdown | mit | 217 |
const ircFramework = require('irc-framework')
const store = require('../store')
const attachEvents = require('./attachEvents')
const connect = connection => {
const state = store.getState()
let ircClient = state.ircClients[connection.id]
if (!ircClient) {
ircClient = new ircFramework.Client({
nick: connection.nick,
host: connection.host,
port: connection.port,
tls: connection.tls,
username: connection.username || connection.nick,
password: connection.password,
// "Not enough parameters" with empty gecos so a space is used.
gecos: connection.gecos || ' ',
// Custom auto reconnect mechanism is implemented, see events/connection.js.
auto_reconnect: false,
})
attachEvents(ircClient, connection.id)
store.dispatch({
type: 'SET_IRC_CLIENT',
payload: {
connectionId: connection.id,
ircClient,
},
})
}
ircClient.connect()
}
module.exports = connect
| daGrevis/msks | backend/src/irc/connect.js | JavaScript | mit | 982 |
const assert = require('assert')
const { unparse } = require('uuid-parse')
const supertest = require('supertest')
const createApp = require('../app')
const { createSetup, getAuthPassword } = require('./lib')
const { createPlayer, createKick } = require('./fixtures')
describe('Query player kick', () => {
let setup
let request
beforeAll(async () => {
setup = await createSetup()
const app = await createApp({ ...setup, disableUI: true })
request = supertest(app.callback())
}, 20000)
afterAll(async () => {
await setup.teardown()
}, 20000)
test('should resolve all fields', async () => {
const { config: server, pool } = setup.serversPool.values().next().value
const cookie = await getAuthPassword(request, '[email protected]')
const player = createPlayer()
const actor = createPlayer()
const kick = createKick(player, actor)
await pool('bm_players').insert([player, actor])
await pool('bm_player_kicks').insert(kick)
const { body, statusCode } = await request
.post('/graphql')
.set('Cookie', cookie)
.set('Accept', 'application/json')
.send({
query: `query playerKick {
playerKick(id:"1", serverId: "${server.id}") {
id
reason
created
actor {
id
name
}
acl {
update
delete
yours
}
}
}`
})
assert.strictEqual(statusCode, 200)
assert(body)
assert(body.data)
assert.deepStrictEqual(body.data.playerKick,
{
id: '1',
reason: kick.reason,
created: kick.created,
actor: { id: unparse(actor.id), name: actor.name },
acl: { delete: true, update: true, yours: false }
})
})
})
| BanManagement/BanManager-WebUI | server/test/playerKick.query.test.js | JavaScript | mit | 1,807 |
<?php
namespace Application\Success\CoreBundle\Twig;
//use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
class EventoExtension extends \Twig_Extension {
//private $container;
private $repository_evento;
private $templating;
public function __construct($repository_evento, $templating) {
//$this->container = $container;
$this->templating = $templating;
$this->repository_evento = $repository_evento;
}
public function getName() {
return 'core_utils';
}
public function getFunctions() {
return array(
'eventos_pasados' => new \Twig_Function_Method($this, 'eventosPasados', array('is_safe' => array('html'))),
'eventos_pasados_key' => new \Twig_Function_Method($this, 'eventosPasadosKey', array('is_safe' => array('html')))
);
}
public function eventosPasados($limit){
$eventos = $this->repository_evento->findPasadas($limit);
return $this->templating->render('WebBundle:Frontend/Evento:eventos_pasados.html.twig', array('eventos' => $eventos));
}
public function eventosPasadosKey($productora, $evento_id, $limit){
$eventos = $this->repository_evento->findByProductora($productora->getId(), $evento_id, $limit);
return $this->templating->render('WebBundle:Frontend/Evento:eventos_pasados_key.html.twig', array('eventos' => $eventos, 'productora' => $productora));
}
}
| chugas/symfony-without-vendors-2.1.9 | src/Application/Success/CoreBundle/Twig/EventoExtension.php | PHP | mit | 1,397 |
var assert = require('chai').assert
var sendgrid = require('../lib/sendgrid');
describe('test_access_settings_activity_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.method = 'GET'
request.path = '/v3/access_settings/activity'
request.headers['X-Mock'] = 200
it('test_access_settings_activity_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_access_settings_whitelist_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"ips": [
{
"ip": "192.168.1.1"
},
{
"ip": "192.*.*.*"
},
{
"ip": "192.168.1.3/32"
}
]
};
request.method = 'POST'
request.path = '/v3/access_settings/whitelist'
request.headers['X-Mock'] = 201
it('test_access_settings_whitelist_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_access_settings_whitelist_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/access_settings/whitelist'
request.headers['X-Mock'] = 200
it('test_access_settings_whitelist_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_access_settings_whitelist_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"ids": [
1,
2,
3
]
};
request.method = 'DELETE'
request.path = '/v3/access_settings/whitelist'
request.headers['X-Mock'] = 204
it('test_access_settings_whitelist_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_access_settings_whitelist__rule_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/access_settings/whitelist/{rule_id}'
request.headers['X-Mock'] = 200
it('test_access_settings_whitelist__rule_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_access_settings_whitelist__rule_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/access_settings/whitelist/{rule_id}'
request.headers['X-Mock'] = 204
it('test_access_settings_whitelist__rule_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_alerts_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email_to": "[email protected]",
"frequency": "daily",
"type": "stats_notification"
};
request.method = 'POST'
request.path = '/v3/alerts'
request.headers['X-Mock'] = 201
it('test_alerts_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_alerts_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/alerts'
request.headers['X-Mock'] = 200
it('test_alerts_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_alerts__alert_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email_to": "[email protected]"
};
request.method = 'PATCH'
request.path = '/v3/alerts/{alert_id}'
request.headers['X-Mock'] = 200
it('test_alerts__alert_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_alerts__alert_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/alerts/{alert_id}'
request.headers['X-Mock'] = 200
it('test_alerts__alert_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_alerts__alert_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/alerts/{alert_id}'
request.headers['X-Mock'] = 204
it('test_alerts__alert_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_api_keys_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "My API Key",
"sample": "data",
"scopes": [
"mail.send",
"alerts.create",
"alerts.read"
]
};
request.method = 'POST'
request.path = '/v3/api_keys'
request.headers['X-Mock'] = 201
it('test_api_keys_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_api_keys_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.method = 'GET'
request.path = '/v3/api_keys'
request.headers['X-Mock'] = 200
it('test_api_keys_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_api_keys__api_key_id__put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "A New Hope",
"scopes": [
"user.profile.read",
"user.profile.update"
]
};
request.method = 'PUT'
request.path = '/v3/api_keys/{api_key_id}'
request.headers['X-Mock'] = 200
it('test_api_keys__api_key_id__put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_api_keys__api_key_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "A New Hope"
};
request.method = 'PATCH'
request.path = '/v3/api_keys/{api_key_id}'
request.headers['X-Mock'] = 200
it('test_api_keys__api_key_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_api_keys__api_key_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/api_keys/{api_key_id}'
request.headers['X-Mock'] = 200
it('test_api_keys__api_key_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_api_keys__api_key_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/api_keys/{api_key_id}'
request.headers['X-Mock'] = 204
it('test_api_keys__api_key_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"description": "Suggestions for products our users might like.",
"is_default": true,
"name": "Product Suggestions"
};
request.method = 'POST'
request.path = '/v3/asm/groups'
request.headers['X-Mock'] = 201
it('test_asm_groups_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["id"] = '1'
request.method = 'GET'
request.path = '/v3/asm/groups'
request.headers['X-Mock'] = 200
it('test_asm_groups_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"description": "Suggestions for items our users might like.",
"id": 103,
"name": "Item Suggestions"
};
request.method = 'PATCH'
request.path = '/v3/asm/groups/{group_id}'
request.headers['X-Mock'] = 201
it('test_asm_groups__group_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/asm/groups/{group_id}'
request.headers['X-Mock'] = 200
it('test_asm_groups__group_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/asm/groups/{group_id}'
request.headers['X-Mock'] = 204
it('test_asm_groups__group_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__suppressions_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"recipient_emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'POST'
request.path = '/v3/asm/groups/{group_id}/suppressions'
request.headers['X-Mock'] = 201
it('test_asm_groups__group_id__suppressions_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__suppressions_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/asm/groups/{group_id}/suppressions'
request.headers['X-Mock'] = 200
it('test_asm_groups__group_id__suppressions_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__suppressions_search_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"recipient_emails": [
"[email protected]",
"[email protected]",
"[email protected]"
]
};
request.method = 'POST'
request.path = '/v3/asm/groups/{group_id}/suppressions/search'
request.headers['X-Mock'] = 200
it('test_asm_groups__group_id__suppressions_search_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_groups__group_id__suppressions__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/asm/groups/{group_id}/suppressions/{email}'
request.headers['X-Mock'] = 204
it('test_asm_groups__group_id__suppressions__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_asm_suppressions_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/asm/suppressions'
request.headers['X-Mock'] = 200
it('test_asm_suppressions_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_suppressions_global_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"recipient_emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'POST'
request.path = '/v3/asm/suppressions/global'
request.headers['X-Mock'] = 201
it('test_asm_suppressions_global_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_asm_suppressions_global__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/asm/suppressions/global/{email}'
request.headers['X-Mock'] = 200
it('test_asm_suppressions_global__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_asm_suppressions_global__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/asm/suppressions/global/{email}'
request.headers['X-Mock'] = 204
it('test_asm_suppressions_global__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_asm_suppressions__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/asm/suppressions/{email}'
request.headers['X-Mock'] = 200
it('test_asm_suppressions__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_browsers_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["browsers"] = 'test_string'
request.queryParams["limit"] = 'test_string'
request.queryParams["offset"] = 'test_string'
request.queryParams["start_date"] = '2016-01-01'
request.method = 'GET'
request.path = '/v3/browsers/stats'
request.headers['X-Mock'] = 200
it('test_browsers_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"categories": [
"spring line"
],
"custom_unsubscribe_url": "",
"html_content": "<html><head><title></title></head><body><p>Check out our spring line!</p></body></html>",
"ip_pool": "marketing",
"list_ids": [
110,
124
],
"plain_content": "Check out our spring line!",
"segment_ids": [
110
],
"sender_id": 124451,
"subject": "New Products for Spring!",
"suppression_group_id": 42,
"title": "March Newsletter"
};
request.method = 'POST'
request.path = '/v3/campaigns'
request.headers['X-Mock'] = 201
it('test_campaigns_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_campaigns_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/campaigns'
request.headers['X-Mock'] = 200
it('test_campaigns_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"categories": [
"summer line"
],
"html_content": "<html><head><title></title></head><body><p>Check out our summer line!</p></body></html>",
"plain_content": "Check out our summer line!",
"subject": "New Products for Summer!",
"title": "May Newsletter"
};
request.method = 'PATCH'
request.path = '/v3/campaigns/{campaign_id}'
request.headers['X-Mock'] = 200
it('test_campaigns__campaign_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/campaigns/{campaign_id}'
request.headers['X-Mock'] = 200
it('test_campaigns__campaign_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/campaigns/{campaign_id}'
request.headers['X-Mock'] = 204
it('test_campaigns__campaign_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"send_at": 1489451436
};
request.method = 'PATCH'
request.path = '/v3/campaigns/{campaign_id}/schedules'
request.headers['X-Mock'] = 200
it('test_campaigns__campaign_id__schedules_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"send_at": 1489771528
};
request.method = 'POST'
request.path = '/v3/campaigns/{campaign_id}/schedules'
request.headers['X-Mock'] = 201
it('test_campaigns__campaign_id__schedules_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/campaigns/{campaign_id}/schedules'
request.headers['X-Mock'] = 200
it('test_campaigns__campaign_id__schedules_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/campaigns/{campaign_id}/schedules'
request.headers['X-Mock'] = 204
it('test_campaigns__campaign_id__schedules_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_now_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/campaigns/{campaign_id}/schedules/now'
request.headers['X-Mock'] = 201
it('test_campaigns__campaign_id__schedules_now_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_campaigns__campaign_id__schedules_test_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"to": "[email protected]"
};
request.method = 'POST'
request.path = '/v3/campaigns/{campaign_id}/schedules/test'
request.headers['X-Mock'] = 204
it('test_campaigns__campaign_id__schedules_test_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_categories_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["category"] = 'test_string'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/categories'
request.headers['X-Mock'] = 200
it('test_categories_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_categories_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["categories"] = 'test_string'
request.method = 'GET'
request.path = '/v3/categories/stats'
request.headers['X-Mock'] = 200
it('test_categories_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_categories_stats_sums_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["sort_by_metric"] = 'test_string'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["sort_by_direction"] = 'asc'
request.method = 'GET'
request.path = '/v3/categories/stats/sums'
request.headers['X-Mock'] = 200
it('test_categories_stats_sums_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_clients_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["aggregated_by"] = 'day'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["end_date"] = '2016-04-01'
request.method = 'GET'
request.path = '/v3/clients/stats'
request.headers['X-Mock'] = 200
it('test_clients_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_clients__client_type__stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["aggregated_by"] = 'day'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["end_date"] = '2016-04-01'
request.method = 'GET'
request.path = '/v3/clients/{client_type}/stats'
request.headers['X-Mock'] = 200
it('test_clients__client_type__stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_custom_fields_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "pet",
"type": "text"
};
request.method = 'POST'
request.path = '/v3/contactdb/custom_fields'
request.headers['X-Mock'] = 201
it('test_contactdb_custom_fields_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_custom_fields_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/custom_fields'
request.headers['X-Mock'] = 200
it('test_contactdb_custom_fields_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_custom_fields__custom_field_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/custom_fields/{custom_field_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_custom_fields__custom_field_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_custom_fields__custom_field_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/contactdb/custom_fields/{custom_field_id}'
request.headers['X-Mock'] = 202
it('test_contactdb_custom_fields__custom_field_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 202, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "your list name"
};
request.method = 'POST'
request.path = '/v3/contactdb/lists'
request.headers['X-Mock'] = 201
it('test_contactdb_lists_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/lists'
request.headers['X-Mock'] = 200
it('test_contactdb_lists_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
1,
2,
3,
4
];
request.method = 'DELETE'
request.path = '/v3/contactdb/lists'
request.headers['X-Mock'] = 204
it('test_contactdb_lists_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "newlistname"
};
request.queryParams["list_id"] = '1'
request.method = 'PATCH'
request.path = '/v3/contactdb/lists/{list_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_lists__list_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["list_id"] = '1'
request.method = 'GET'
request.path = '/v3/contactdb/lists/{list_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_lists__list_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.queryParams["delete_contacts"] = 'true'
request.method = 'DELETE'
request.path = '/v3/contactdb/lists/{list_id}'
request.headers['X-Mock'] = 202
it('test_contactdb_lists__list_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 202, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__recipients_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
"recipient_id1",
"recipient_id2"
];
request.method = 'POST'
request.path = '/v3/contactdb/lists/{list_id}/recipients'
request.headers['X-Mock'] = 201
it('test_contactdb_lists__list_id__recipients_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__recipients_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["page"] = '1'
request.queryParams["page_size"] = '1'
request.queryParams["list_id"] = '1'
request.method = 'GET'
request.path = '/v3/contactdb/lists/{list_id}/recipients'
request.headers['X-Mock'] = 200
it('test_contactdb_lists__list_id__recipients_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__recipients__recipient_id__post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/contactdb/lists/{list_id}/recipients/{recipient_id}'
request.headers['X-Mock'] = 201
it('test_contactdb_lists__list_id__recipients__recipient_id__post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_lists__list_id__recipients__recipient_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.queryParams["recipient_id"] = '1'
request.queryParams["list_id"] = '1'
request.method = 'DELETE'
request.path = '/v3/contactdb/lists/{list_id}/recipients/{recipient_id}'
request.headers['X-Mock'] = 204
it('test_contactdb_lists__list_id__recipients__recipient_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
{
"email": "[email protected]",
"first_name": "Guy",
"last_name": "Jones"
}
];
request.method = 'PATCH'
request.path = '/v3/contactdb/recipients'
request.headers['X-Mock'] = 201
it('test_contactdb_recipients_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
{
"age": 25,
"email": "[email protected]",
"first_name": "",
"last_name": "User"
},
{
"age": 25,
"email": "[email protected]",
"first_name": "Example",
"last_name": "User"
}
];
request.method = 'POST'
request.path = '/v3/contactdb/recipients'
request.headers['X-Mock'] = 201
it('test_contactdb_recipients_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["page"] = '1'
request.queryParams["page_size"] = '1'
request.method = 'GET'
request.path = '/v3/contactdb/recipients'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
"recipient_id1",
"recipient_id2"
];
request.method = 'DELETE'
request.path = '/v3/contactdb/recipients'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_billable_count_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/recipients/billable_count'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients_billable_count_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_count_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/recipients/count'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients_count_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients_search_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["%7Bfield_name%7D"] = 'test_string'
request.queryParams["{field_name}"] = 'test_string'
request.method = 'GET'
request.path = '/v3/contactdb/recipients/search'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients_search_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients__recipient_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/recipients/{recipient_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients__recipient_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients__recipient_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/contactdb/recipients/{recipient_id}'
request.headers['X-Mock'] = 204
it('test_contactdb_recipients__recipient_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_recipients__recipient_id__lists_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/recipients/{recipient_id}/lists'
request.headers['X-Mock'] = 200
it('test_contactdb_recipients__recipient_id__lists_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_reserved_fields_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/reserved_fields'
request.headers['X-Mock'] = 200
it('test_contactdb_reserved_fields_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"conditions": [
{
"and_or": "",
"field": "last_name",
"operator": "eq",
"value": "Miller"
},
{
"and_or": "and",
"field": "last_clicked",
"operator": "gt",
"value": "01/02/2015"
},
{
"and_or": "or",
"field": "clicks.campaign_identifier",
"operator": "eq",
"value": "513"
}
],
"list_id": 4,
"name": "Last Name Miller"
};
request.method = 'POST'
request.path = '/v3/contactdb/segments'
request.headers['X-Mock'] = 200
it('test_contactdb_segments_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/contactdb/segments'
request.headers['X-Mock'] = 200
it('test_contactdb_segments_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments__segment_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"conditions": [
{
"and_or": "",
"field": "last_name",
"operator": "eq",
"value": "Miller"
}
],
"list_id": 5,
"name": "The Millers"
};
request.queryParams["segment_id"] = 'test_string'
request.method = 'PATCH'
request.path = '/v3/contactdb/segments/{segment_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_segments__segment_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments__segment_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["segment_id"] = '1'
request.method = 'GET'
request.path = '/v3/contactdb/segments/{segment_id}'
request.headers['X-Mock'] = 200
it('test_contactdb_segments__segment_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments__segment_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.queryParams["delete_contacts"] = 'true'
request.method = 'DELETE'
request.path = '/v3/contactdb/segments/{segment_id}'
request.headers['X-Mock'] = 204
it('test_contactdb_segments__segment_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_contactdb_segments__segment_id__recipients_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["page"] = '1'
request.queryParams["page_size"] = '1'
request.method = 'GET'
request.path = '/v3/contactdb/segments/{segment_id}/recipients'
request.headers['X-Mock'] = 200
it('test_contactdb_segments__segment_id__recipients_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_devices_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/devices/stats'
request.headers['X-Mock'] = 200
it('test_devices_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_geo_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["country"] = 'US'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.method = 'GET'
request.path = '/v3/geo/stats'
request.headers['X-Mock'] = 200
it('test_geo_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["subuser"] = 'test_string'
request.queryParams["ip"] = 'test_string'
request.queryParams["limit"] = '1'
request.queryParams["exclude_whitelabels"] = 'true'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/ips'
request.headers['X-Mock'] = 200
it('test_ips_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_assigned_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/assigned'
request.headers['X-Mock'] = 200
it('test_ips_assigned_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "marketing"
};
request.method = 'POST'
request.path = '/v3/ips/pools'
request.headers['X-Mock'] = 200
it('test_ips_pools_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/pools'
request.headers['X-Mock'] = 200
it('test_ips_pools_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools__pool_name__put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "new_pool_name"
};
request.method = 'PUT'
request.path = '/v3/ips/pools/{pool_name}'
request.headers['X-Mock'] = 200
it('test_ips_pools__pool_name__put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools__pool_name__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/pools/{pool_name}'
request.headers['X-Mock'] = 200
it('test_ips_pools__pool_name__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools__pool_name__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/ips/pools/{pool_name}'
request.headers['X-Mock'] = 204
it('test_ips_pools__pool_name__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools__pool_name__ips_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"ip": "0.0.0.0"
};
request.method = 'POST'
request.path = '/v3/ips/pools/{pool_name}/ips'
request.headers['X-Mock'] = 201
it('test_ips_pools__pool_name__ips_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_ips_pools__pool_name__ips__ip__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/ips/pools/{pool_name}/ips/{ip}'
request.headers['X-Mock'] = 204
it('test_ips_pools__pool_name__ips__ip__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_ips_warmup_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"ip": "0.0.0.0"
};
request.method = 'POST'
request.path = '/v3/ips/warmup'
request.headers['X-Mock'] = 200
it('test_ips_warmup_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_warmup_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/warmup'
request.headers['X-Mock'] = 200
it('test_ips_warmup_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_warmup__ip_address__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/warmup/{ip_address}'
request.headers['X-Mock'] = 200
it('test_ips_warmup__ip_address__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_ips_warmup__ip_address__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/ips/warmup/{ip_address}'
request.headers['X-Mock'] = 204
it('test_ips_warmup__ip_address__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_ips__ip_address__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/ips/{ip_address}'
request.headers['X-Mock'] = 200
it('test_ips__ip_address__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_batch_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/mail/batch'
request.headers['X-Mock'] = 201
it('test_mail_batch_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_mail_batch__batch_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail/batch/{batch_id}'
request.headers['X-Mock'] = 200
it('test_mail_batch__batch_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_send_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"asm": {
"group_id": 1,
"groups_to_display": [
1,
2,
3
]
},
"attachments": [
{
"content": "[BASE64 encoded content block here]",
"content_id": "ii_139db99fdb5c3704",
"disposition": "inline",
"filename": "file1.jpg",
"name": "file1",
"type": "jpg"
}
],
"batch_id": "[YOUR BATCH ID GOES HERE]",
"categories": [
"category1",
"category2"
],
"content": [
{
"type": "text/html",
"value": "<html><p>Hello, world!</p><img src=[CID GOES HERE]></img></html>"
}
],
"custom_args": {
"New Argument 1": "New Value 1",
"activationAttempt": "1",
"customerAccountNumber": "[CUSTOMER ACCOUNT NUMBER GOES HERE]"
},
"from": {
"email": "[email protected]",
"name": "Sam Smith"
},
"headers": {},
"ip_pool_name": "[YOUR POOL NAME GOES HERE]",
"mail_settings": {
"bcc": {
"email": "[email protected]",
"enable": true
},
"bypass_list_management": {
"enable": true
},
"footer": {
"enable": true,
"html": "<p>Thanks</br>The SendGrid Team</p>",
"text": "Thanks,/n The SendGrid Team"
},
"sandbox_mode": {
"enable": false
},
"spam_check": {
"enable": true,
"post_to_url": "http://example.com/compliance",
"threshold": 3
}
},
"personalizations": [
{
"bcc": [
{
"email": "[email protected]",
"name": "Sam Doe"
}
],
"cc": [
{
"email": "[email protected]",
"name": "Jane Doe"
}
],
"custom_args": {
"New Argument 1": "New Value 1",
"activationAttempt": "1",
"customerAccountNumber": "[CUSTOMER ACCOUNT NUMBER GOES HERE]"
},
"headers": {
"X-Accept-Language": "en",
"X-Mailer": "MyApp"
},
"send_at": 1409348513,
"subject": "Hello, World!",
"substitutions": {
"id": "substitutions",
"type": "object"
},
"to": [
{
"email": "[email protected]",
"name": "John Doe"
}
]
}
],
"reply_to": {
"email": "[email protected]",
"name": "Sam Smith"
},
"sections": {
"section": {
":sectionName1": "section 1 text",
":sectionName2": "section 2 text"
}
},
"send_at": 1409348513,
"subject": "Hello, World!",
"template_id": "[YOUR TEMPLATE ID GOES HERE]",
"tracking_settings": {
"click_tracking": {
"enable": true,
"enable_text": true
},
"ganalytics": {
"enable": true,
"utm_campaign": "[NAME OF YOUR REFERRER SOURCE]",
"utm_content": "[USE THIS SPACE TO DIFFERENTIATE YOUR EMAIL FROM ADS]",
"utm_medium": "[NAME OF YOUR MARKETING MEDIUM e.g. email]",
"utm_name": "[NAME OF YOUR CAMPAIGN]",
"utm_term": "[IDENTIFY PAID KEYWORDS HERE]"
},
"open_tracking": {
"enable": true,
"substitution_tag": "%opentrack"
},
"subscription_tracking": {
"enable": true,
"html": "If you would like to unsubscribe and stop receiving these emails <% clickhere %>.",
"substitution_tag": "<%click here%>",
"text": "If you would like to unsubscribe and stop receiveing these emails <% click here %>."
}
}
};
request.method = 'POST'
request.path = '/v3/mail/send'
request.headers['X-Mock'] = 202
it('test_mail_send_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 202, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/mail_settings'
request.headers['X-Mock'] = 200
it('test_mail_settings_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_address_whitelist_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"list": [
"[email protected]",
"example.com"
]
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/address_whitelist'
request.headers['X-Mock'] = 200
it('test_mail_settings_address_whitelist_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_address_whitelist_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/address_whitelist'
request.headers['X-Mock'] = 200
it('test_mail_settings_address_whitelist_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_bcc_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]",
"enabled": false
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/bcc'
request.headers['X-Mock'] = 200
it('test_mail_settings_bcc_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_bcc_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/bcc'
request.headers['X-Mock'] = 200
it('test_mail_settings_bcc_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_bounce_purge_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"hard_bounces": 5,
"soft_bounces": 5
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/bounce_purge'
request.headers['X-Mock'] = 200
it('test_mail_settings_bounce_purge_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_bounce_purge_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/bounce_purge'
request.headers['X-Mock'] = 200
it('test_mail_settings_bounce_purge_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_footer_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"html_content": "...",
"plain_content": "..."
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/footer'
request.headers['X-Mock'] = 200
it('test_mail_settings_footer_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_footer_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/footer'
request.headers['X-Mock'] = 200
it('test_mail_settings_footer_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_forward_bounce_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]",
"enabled": true
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/forward_bounce'
request.headers['X-Mock'] = 200
it('test_mail_settings_forward_bounce_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_forward_bounce_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/forward_bounce'
request.headers['X-Mock'] = 200
it('test_mail_settings_forward_bounce_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_forward_spam_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "",
"enabled": false
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/forward_spam'
request.headers['X-Mock'] = 200
it('test_mail_settings_forward_spam_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_forward_spam_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/forward_spam'
request.headers['X-Mock'] = 200
it('test_mail_settings_forward_spam_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_plain_content_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": false
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/plain_content'
request.headers['X-Mock'] = 200
it('test_mail_settings_plain_content_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_plain_content_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/plain_content'
request.headers['X-Mock'] = 200
it('test_mail_settings_plain_content_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_spam_check_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"max_score": 5,
"url": "url"
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/spam_check'
request.headers['X-Mock'] = 200
it('test_mail_settings_spam_check_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_spam_check_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/spam_check'
request.headers['X-Mock'] = 200
it('test_mail_settings_spam_check_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_template_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"html_content": "<% body %>"
};
request.method = 'PATCH'
request.path = '/v3/mail_settings/template'
request.headers['X-Mock'] = 200
it('test_mail_settings_template_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mail_settings_template_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/mail_settings/template'
request.headers['X-Mock'] = 200
it('test_mail_settings_template_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_mailbox_providers_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["mailbox_providers"] = 'test_string'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.method = 'GET'
request.path = '/v3/mailbox_providers/stats'
request.headers['X-Mock'] = 200
it('test_mailbox_providers_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_partner_settings_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/partner_settings'
request.headers['X-Mock'] = 200
it('test_partner_settings_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_partner_settings_new_relic_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enable_subuser_statistics": true,
"enabled": true,
"license_key": ""
};
request.method = 'PATCH'
request.path = '/v3/partner_settings/new_relic'
request.headers['X-Mock'] = 200
it('test_partner_settings_new_relic_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_partner_settings_new_relic_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/partner_settings/new_relic'
request.headers['X-Mock'] = 200
it('test_partner_settings_new_relic_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_scopes_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/scopes'
request.headers['X-Mock'] = 200
it('test_scopes_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/stats'
request.headers['X-Mock'] = 200
it('test_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]",
"ips": [
"1.1.1.1",
"2.2.2.2"
],
"password": "johns_password",
"username": "[email protected]"
};
request.method = 'POST'
request.path = '/v3/subusers'
request.headers['X-Mock'] = 200
it('test_subusers_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["username"] = 'test_string'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/subusers'
request.headers['X-Mock'] = 200
it('test_subusers_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_reputations_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["usernames"] = 'test_string'
request.method = 'GET'
request.path = '/v3/subusers/reputations'
request.headers['X-Mock'] = 200
it('test_subusers_reputations_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["subusers"] = 'test_string'
request.method = 'GET'
request.path = '/v3/subusers/stats'
request.headers['X-Mock'] = 200
it('test_subusers_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_stats_monthly_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["subuser"] = 'test_string'
request.queryParams["limit"] = '1'
request.queryParams["sort_by_metric"] = 'test_string'
request.queryParams["offset"] = '1'
request.queryParams["date"] = 'test_string'
request.queryParams["sort_by_direction"] = 'asc'
request.method = 'GET'
request.path = '/v3/subusers/stats/monthly'
request.headers['X-Mock'] = 200
it('test_subusers_stats_monthly_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers_stats_sums_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = '1'
request.queryParams["sort_by_metric"] = 'test_string'
request.queryParams["offset"] = '1'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["sort_by_direction"] = 'asc'
request.method = 'GET'
request.path = '/v3/subusers/stats/sums'
request.headers['X-Mock'] = 200
it('test_subusers_stats_sums_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"disabled": false
};
request.method = 'PATCH'
request.path = '/v3/subusers/{subuser_name}'
request.headers['X-Mock'] = 204
it('test_subusers__subuser_name__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/subusers/{subuser_name}'
request.headers['X-Mock'] = 204
it('test_subusers__subuser_name__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__ips_put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = [
"127.0.0.1"
];
request.method = 'PUT'
request.path = '/v3/subusers/{subuser_name}/ips'
request.headers['X-Mock'] = 200
it('test_subusers__subuser_name__ips_put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__monitor_put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]",
"frequency": 500
};
request.method = 'PUT'
request.path = '/v3/subusers/{subuser_name}/monitor'
request.headers['X-Mock'] = 200
it('test_subusers__subuser_name__monitor_put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__monitor_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]",
"frequency": 50000
};
request.method = 'POST'
request.path = '/v3/subusers/{subuser_name}/monitor'
request.headers['X-Mock'] = 200
it('test_subusers__subuser_name__monitor_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__monitor_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/subusers/{subuser_name}/monitor'
request.headers['X-Mock'] = 200
it('test_subusers__subuser_name__monitor_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__monitor_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/subusers/{subuser_name}/monitor'
request.headers['X-Mock'] = 204
it('test_subusers__subuser_name__monitor_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_subusers__subuser_name__stats_monthly_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["date"] = 'test_string'
request.queryParams["sort_by_direction"] = 'asc'
request.queryParams["limit"] = '1'
request.queryParams["sort_by_metric"] = 'test_string'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/subusers/{subuser_name}/stats/monthly'
request.headers['X-Mock'] = 200
it('test_subusers__subuser_name__stats_monthly_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_blocks_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["start_time"] = '1'
request.queryParams["limit"] = '1'
request.queryParams["end_time"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/suppression/blocks'
request.headers['X-Mock'] = 200
it('test_suppression_blocks_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_blocks_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"delete_all": false,
"emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'DELETE'
request.path = '/v3/suppression/blocks'
request.headers['X-Mock'] = 204
it('test_suppression_blocks_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_blocks__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/suppression/blocks/{email}'
request.headers['X-Mock'] = 200
it('test_suppression_blocks__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_blocks__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/suppression/blocks/{email}'
request.headers['X-Mock'] = 204
it('test_suppression_blocks__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_bounces_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["start_time"] = '1'
request.queryParams["end_time"] = '1'
request.method = 'GET'
request.path = '/v3/suppression/bounces'
request.headers['X-Mock'] = 200
it('test_suppression_bounces_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_bounces_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"delete_all": true,
"emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'DELETE'
request.path = '/v3/suppression/bounces'
request.headers['X-Mock'] = 204
it('test_suppression_bounces_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_bounces__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/suppression/bounces/{email}'
request.headers['X-Mock'] = 200
it('test_suppression_bounces__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_bounces__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.queryParams["email_address"] = '[email protected]'
request.method = 'DELETE'
request.path = '/v3/suppression/bounces/{email}'
request.headers['X-Mock'] = 204
it('test_suppression_bounces__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_invalid_emails_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["start_time"] = '1'
request.queryParams["limit"] = '1'
request.queryParams["end_time"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/suppression/invalid_emails'
request.headers['X-Mock'] = 200
it('test_suppression_invalid_emails_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_invalid_emails_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"delete_all": false,
"emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'DELETE'
request.path = '/v3/suppression/invalid_emails'
request.headers['X-Mock'] = 204
it('test_suppression_invalid_emails_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_invalid_emails__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/suppression/invalid_emails/{email}'
request.headers['X-Mock'] = 200
it('test_suppression_invalid_emails__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_invalid_emails__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/suppression/invalid_emails/{email}'
request.headers['X-Mock'] = 204
it('test_suppression_invalid_emails__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_spam_reports__email__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/suppression/spam_reports/{email}'
request.headers['X-Mock'] = 200
it('test_suppression_spam_reports__email__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_spam_report__email__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/suppression/spam_report/{email}'
request.headers['X-Mock'] = 204
it('test_suppression_spam_report__email__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_spam_reports_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["start_time"] = '1'
request.queryParams["limit"] = '1'
request.queryParams["end_time"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/suppression/spam_reports'
request.headers['X-Mock'] = 200
it('test_suppression_spam_reports_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_suppression_spam_reports_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"delete_all": false,
"emails": [
"[email protected]",
"[email protected]"
]
};
request.method = 'DELETE'
request.path = '/v3/suppression/spam_reports'
request.headers['X-Mock'] = 204
it('test_suppression_spam_reports_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_suppression_unsubscribes_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["start_time"] = '1'
request.queryParams["limit"] = '1'
request.queryParams["end_time"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/suppression/unsubscribes'
request.headers['X-Mock'] = 200
it('test_suppression_unsubscribes_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "example_name"
};
request.method = 'POST'
request.path = '/v3/templates'
request.headers['X-Mock'] = 201
it('test_templates_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_templates_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/templates'
request.headers['X-Mock'] = 200
it('test_templates_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"name": "new_example_name"
};
request.method = 'PATCH'
request.path = '/v3/templates/{template_id}'
request.headers['X-Mock'] = 200
it('test_templates__template_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/templates/{template_id}'
request.headers['X-Mock'] = 200
it('test_templates__template_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/templates/{template_id}'
request.headers['X-Mock'] = 204
it('test_templates__template_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__versions_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"active": 1,
"html_content": "<%body%>",
"name": "example_version_name",
"plain_content": "<%body%>",
"subject": "<%subject%>",
"template_id": "ddb96bbc-9b92-425e-8979-99464621b543"
};
request.method = 'POST'
request.path = '/v3/templates/{template_id}/versions'
request.headers['X-Mock'] = 201
it('test_templates__template_id__versions_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__versions__version_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"active": 1,
"html_content": "<%body%>",
"name": "updated_example_name",
"plain_content": "<%body%>",
"subject": "<%subject%>"
};
request.method = 'PATCH'
request.path = '/v3/templates/{template_id}/versions/{version_id}'
request.headers['X-Mock'] = 200
it('test_templates__template_id__versions__version_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__versions__version_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/templates/{template_id}/versions/{version_id}'
request.headers['X-Mock'] = 200
it('test_templates__template_id__versions__version_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__versions__version_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/templates/{template_id}/versions/{version_id}'
request.headers['X-Mock'] = 204
it('test_templates__template_id__versions__version_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_templates__template_id__versions__version_id__activate_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/templates/{template_id}/versions/{version_id}/activate'
request.headers['X-Mock'] = 200
it('test_templates__template_id__versions__version_id__activate_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/tracking_settings'
request.headers['X-Mock'] = 200
it('test_tracking_settings_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_click_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true
};
request.method = 'PATCH'
request.path = '/v3/tracking_settings/click'
request.headers['X-Mock'] = 200
it('test_tracking_settings_click_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_click_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/tracking_settings/click'
request.headers['X-Mock'] = 200
it('test_tracking_settings_click_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_google_analytics_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"utm_campaign": "website",
"utm_content": "",
"utm_medium": "email",
"utm_source": "sendgrid.com",
"utm_term": ""
};
request.method = 'PATCH'
request.path = '/v3/tracking_settings/google_analytics'
request.headers['X-Mock'] = 200
it('test_tracking_settings_google_analytics_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_google_analytics_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/tracking_settings/google_analytics'
request.headers['X-Mock'] = 200
it('test_tracking_settings_google_analytics_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_open_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true
};
request.method = 'PATCH'
request.path = '/v3/tracking_settings/open'
request.headers['X-Mock'] = 200
it('test_tracking_settings_open_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_open_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/tracking_settings/open'
request.headers['X-Mock'] = 200
it('test_tracking_settings_open_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_subscription_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"enabled": true,
"html_content": "html content",
"landing": "landing page html",
"plain_content": "text content",
"replace": "replacement tag",
"url": "url"
};
request.method = 'PATCH'
request.path = '/v3/tracking_settings/subscription'
request.headers['X-Mock'] = 200
it('test_tracking_settings_subscription_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_tracking_settings_subscription_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/tracking_settings/subscription'
request.headers['X-Mock'] = 200
it('test_tracking_settings_subscription_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_account_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/account'
request.headers['X-Mock'] = 200
it('test_user_account_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_credits_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/credits'
request.headers['X-Mock'] = 200
it('test_user_credits_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_email_put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"email": "[email protected]"
};
request.method = 'PUT'
request.path = '/v3/user/email'
request.headers['X-Mock'] = 200
it('test_user_email_put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_email_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/email'
request.headers['X-Mock'] = 200
it('test_user_email_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_password_put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"new_password": "new_password",
"old_password": "old_password"
};
request.method = 'PUT'
request.path = '/v3/user/password'
request.headers['X-Mock'] = 200
it('test_user_password_put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_profile_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"city": "Orange",
"first_name": "Example",
"last_name": "User"
};
request.method = 'PATCH'
request.path = '/v3/user/profile'
request.headers['X-Mock'] = 200
it('test_user_profile_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_profile_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/profile'
request.headers['X-Mock'] = 200
it('test_user_profile_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_scheduled_sends_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"batch_id": "YOUR_BATCH_ID",
"status": "pause"
};
request.method = 'POST'
request.path = '/v3/user/scheduled_sends'
request.headers['X-Mock'] = 201
it('test_user_scheduled_sends_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_user_scheduled_sends_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/scheduled_sends'
request.headers['X-Mock'] = 200
it('test_user_scheduled_sends_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_scheduled_sends__batch_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"status": "pause"
};
request.method = 'PATCH'
request.path = '/v3/user/scheduled_sends/{batch_id}'
request.headers['X-Mock'] = 204
it('test_user_scheduled_sends__batch_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_user_scheduled_sends__batch_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/scheduled_sends/{batch_id}'
request.headers['X-Mock'] = 200
it('test_user_scheduled_sends__batch_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_scheduled_sends__batch_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/user/scheduled_sends/{batch_id}'
request.headers['X-Mock'] = 204
it('test_user_scheduled_sends__batch_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_user_settings_enforced_tls_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"require_tls": true,
"require_valid_cert": false
};
request.method = 'PATCH'
request.path = '/v3/user/settings/enforced_tls'
request.headers['X-Mock'] = 200
it('test_user_settings_enforced_tls_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_settings_enforced_tls_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/settings/enforced_tls'
request.headers['X-Mock'] = 200
it('test_user_settings_enforced_tls_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_username_put', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"username": "test_username"
};
request.method = 'PUT'
request.path = '/v3/user/username'
request.headers['X-Mock'] = 200
it('test_user_username_put had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_username_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/username'
request.headers['X-Mock'] = 200
it('test_user_username_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_event_settings_patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"bounce": true,
"click": true,
"deferred": true,
"delivered": true,
"dropped": true,
"enabled": true,
"group_resubscribe": true,
"group_unsubscribe": true,
"open": true,
"processed": true,
"spam_report": true,
"unsubscribe": true,
"url": "url"
};
request.method = 'PATCH'
request.path = '/v3/user/webhooks/event/settings'
request.headers['X-Mock'] = 200
it('test_user_webhooks_event_settings_patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_event_settings_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/webhooks/event/settings'
request.headers['X-Mock'] = 200
it('test_user_webhooks_event_settings_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_event_test_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"url": "url"
};
request.method = 'POST'
request.path = '/v3/user/webhooks/event/test'
request.headers['X-Mock'] = 204
it('test_user_webhooks_event_test_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_settings_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"hostname": "myhostname.com",
"send_raw": false,
"spam_check": true,
"url": "http://email.myhosthame.com"
};
request.method = 'POST'
request.path = '/v3/user/webhooks/parse/settings'
request.headers['X-Mock'] = 201
it('test_user_webhooks_parse_settings_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_settings_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/webhooks/parse/settings'
request.headers['X-Mock'] = 200
it('test_user_webhooks_parse_settings_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_settings__hostname__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"send_raw": true,
"spam_check": false,
"url": "http://newdomain.com/parse"
};
request.method = 'PATCH'
request.path = '/v3/user/webhooks/parse/settings/{hostname}'
request.headers['X-Mock'] = 200
it('test_user_webhooks_parse_settings__hostname__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_settings__hostname__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/user/webhooks/parse/settings/{hostname}'
request.headers['X-Mock'] = 200
it('test_user_webhooks_parse_settings__hostname__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_settings__hostname__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/user/webhooks/parse/settings/{hostname}'
request.headers['X-Mock'] = 204
it('test_user_webhooks_parse_settings__hostname__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_user_webhooks_parse_stats_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["aggregated_by"] = 'day'
request.queryParams["limit"] = 'test_string'
request.queryParams["start_date"] = '2016-01-01'
request.queryParams["end_date"] = '2016-04-01'
request.queryParams["offset"] = 'test_string'
request.method = 'GET'
request.path = '/v3/user/webhooks/parse/stats'
request.headers['X-Mock'] = 200
it('test_user_webhooks_parse_stats_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"automatic_security": false,
"custom_spf": true,
"default": true,
"domain": "example.com",
"ips": [
"192.168.1.1",
"192.168.1.2"
],
"subdomain": "news",
"username": "[email protected]"
};
request.method = 'POST'
request.path = '/v3/whitelabel/domains'
request.headers['X-Mock'] = 201
it('test_whitelabel_domains_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["username"] = 'test_string'
request.queryParams["domain"] = 'test_string'
request.queryParams["exclude_subusers"] = 'true'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/whitelabel/domains'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains_default_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/whitelabel/domains/default'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains_default_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains_subuser_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/whitelabel/domains/subuser'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains_subuser_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains_subuser_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/whitelabel/domains/subuser'
request.headers['X-Mock'] = 204
it('test_whitelabel_domains_subuser_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__domain_id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"custom_spf": true,
"default": false
};
request.method = 'PATCH'
request.path = '/v3/whitelabel/domains/{domain_id}'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains__domain_id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__domain_id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/whitelabel/domains/{domain_id}'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains__domain_id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__domain_id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/whitelabel/domains/{domain_id}'
request.headers['X-Mock'] = 204
it('test_whitelabel_domains__domain_id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__domain_id__subuser_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"username": "[email protected]"
};
request.method = 'POST'
request.path = '/v3/whitelabel/domains/{domain_id}/subuser'
request.headers['X-Mock'] = 201
it('test_whitelabel_domains__domain_id__subuser_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__id__ips_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"ip": "192.168.0.1"
};
request.method = 'POST'
request.path = '/v3/whitelabel/domains/{id}/ips'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains__id__ips_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__id__ips__ip__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/whitelabel/domains/{id}/ips/{ip}'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains__id__ips__ip__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_domains__id__validate_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/whitelabel/domains/{id}/validate'
request.headers['X-Mock'] = 200
it('test_whitelabel_domains__id__validate_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_ips_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"domain": "example.com",
"ip": "192.168.1.1",
"subdomain": "email"
};
request.method = 'POST'
request.path = '/v3/whitelabel/ips'
request.headers['X-Mock'] = 201
it('test_whitelabel_ips_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_ips_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["ip"] = 'test_string'
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'GET'
request.path = '/v3/whitelabel/ips'
request.headers['X-Mock'] = 200
it('test_whitelabel_ips_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_ips__id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/whitelabel/ips/{id}'
request.headers['X-Mock'] = 200
it('test_whitelabel_ips__id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_ips__id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/whitelabel/ips/{id}'
request.headers['X-Mock'] = 204
it('test_whitelabel_ips__id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_ips__id__validate_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/whitelabel/ips/{id}/validate'
request.headers['X-Mock'] = 200
it('test_whitelabel_ips__id__validate_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"default": true,
"domain": "example.com",
"subdomain": "mail"
};
request.queryParams["limit"] = '1'
request.queryParams["offset"] = '1'
request.method = 'POST'
request.path = '/v3/whitelabel/links'
request.headers['X-Mock'] = 201
it('test_whitelabel_links_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 201, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["limit"] = '1'
request.method = 'GET'
request.path = '/v3/whitelabel/links'
request.headers['X-Mock'] = 200
it('test_whitelabel_links_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links_default_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["domain"] = 'test_string'
request.method = 'GET'
request.path = '/v3/whitelabel/links/default'
request.headers['X-Mock'] = 200
it('test_whitelabel_links_default_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links_subuser_get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.queryParams["username"] = 'test_string'
request.method = 'GET'
request.path = '/v3/whitelabel/links/subuser'
request.headers['X-Mock'] = 200
it('test_whitelabel_links_subuser_get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links_subuser_delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.queryParams["username"] = 'test_string'
request.method = 'DELETE'
request.path = '/v3/whitelabel/links/subuser'
request.headers['X-Mock'] = 204
it('test_whitelabel_links_subuser_delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links__id__patch', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"default": true
};
request.method = 'PATCH'
request.path = '/v3/whitelabel/links/{id}'
request.headers['X-Mock'] = 200
it('test_whitelabel_links__id__patch had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links__id__get', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.method = 'GET'
request.path = '/v3/whitelabel/links/{id}'
request.headers['X-Mock'] = 200
it('test_whitelabel_links__id__get had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links__id__delete', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'DELETE'
request.path = '/v3/whitelabel/links/{id}'
request.headers['X-Mock'] = 204
it('test_whitelabel_links__id__delete had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 204, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links__id__validate_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = null;
request.method = 'POST'
request.path = '/v3/whitelabel/links/{id}/validate'
request.headers['X-Mock'] = 200
it('test_whitelabel_links__id__validate_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
describe('test_whitelabel_links__link_id__subuser_post', function () {
this.timeout(30000);
var API_KEY = 'SendGrid API Key'
if(process.env.TRAVIS) {
var TEST_HOST = process.env.MOCK_HOST
} else {
var TEST_HOST = 'localhost'
}
var sg = sendgrid(API_KEY, TEST_HOST)
var request = sg.emptyRequest()
if(TEST_HOST == 'localhost') {
request.test = true
request.port = 4010
}
request.body = {
"username": "[email protected]"
};
request.method = 'POST'
request.path = '/v3/whitelabel/links/{link_id}/subuser'
request.headers['X-Mock'] = 200
it('test_whitelabel_links__link_id__subuser_post had the correct response code', function(done) {
sg.API(request, function (error, response) {
assert.equal(response.statusCode, 200, 'response code is not correct')
done();
})
});
})
| instapapas/instapapas | node_modules/sendgrid/test/test.js | JavaScript | mit | 187,714 |
#!/bin/bash
mkdir $PREFIX/share
mkdir $PREFIX/share/gdal
cp data/* $PREFIX/share/gdal
cp LICENSE.TXT $PREFIX/share/gdal
mkdir $PREFIX/bin # HACK to get post-link script to copy.
| jjhelmus/conda_recipes_testing | gdal/gdal-data_1.10.1/build.sh | Shell | mit | 182 |
<?php
namespace EntityManager5230d19111d8e_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM;
/**
* CG library enhanced proxy class.
*
* This code was generated automatically by the CG library, manual changes to it
* will be lost upon next generation.
*/
class EntityManager extends \Doctrine\ORM\EntityManager
{
private $delegate;
private $container;
/**
* Executes a function in a transaction.
*
* The function gets passed this EntityManager instance as an (optional) parameter.
*
* {@link flush} is invoked prior to transaction commit.
*
* If an exception occurs during execution of the function or flushing or transaction commit,
* the transaction is rolled back, the EntityManager closed and the exception re-thrown.
*
* @param callable $func The function to execute transactionally.
* @return mixed Returns the non-empty value returned from the closure or true instead
*/
public function transactional($func)
{
return $this->delegate->transactional($func);
}
/**
* Performs a rollback on the underlying database connection.
*/
public function rollback()
{
return $this->delegate->rollback();
}
/**
* Removes an entity instance.
*
* A removed entity will be removed from the database at or before transaction commit
* or as a result of the flush operation.
*
* @param object $entity The entity instance to remove.
*/
public function remove($entity)
{
return $this->delegate->remove($entity);
}
/**
* Refreshes the persistent state of an entity from the database,
* overriding any local changes that have not yet been persisted.
*
* @param object $entity The entity to refresh.
*/
public function refresh($entity)
{
return $this->delegate->refresh($entity);
}
/**
* Tells the EntityManager to make an instance managed and persistent.
*
* The entity will be entered into the database at or before transaction
* commit or as a result of the flush operation.
*
* NOTE: The persist operation always considers entities that are not yet known to
* this EntityManager as NEW. Do not pass detached entities to the persist operation.
*
* @param object $object The instance to make managed and persistent.
*/
public function persist($entity)
{
return $this->delegate->persist($entity);
}
/**
* Create a new instance for the given hydration mode.
*
* @param int $hydrationMode
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function newHydrator($hydrationMode)
{
return $this->delegate->newHydrator($hydrationMode);
}
/**
* Merges the state of a detached entity into the persistence context
* of this EntityManager and returns the managed copy of the entity.
* The entity passed to merge will not become associated/managed with this EntityManager.
*
* @param object $entity The detached entity to merge into the persistence context.
* @return object The managed copy of the entity.
*/
public function merge($entity)
{
return $this->delegate->merge($entity);
}
/**
* Acquire a lock on the given entity.
*
* @param object $entity
* @param int $lockMode
* @param int $lockVersion
* @throws OptimisticLockException
* @throws PessimisticLockException
*/
public function lock($entity, $lockMode, $lockVersion = NULL)
{
return $this->delegate->lock($entity, $lockMode, $lockVersion);
}
/**
* Check if the Entity manager is open or closed.
*
* @return bool
*/
public function isOpen()
{
return $this->delegate->isOpen();
}
/**
* Checks whether the state of the filter collection is clean.
*
* @return boolean True, if the filter collection is clean.
*/
public function isFiltersStateClean()
{
return $this->delegate->isFiltersStateClean();
}
/**
* Helper method to initialize a lazy loading proxy or persistent collection.
*
* This method is a no-op for other objects
*
* @param object $obj
*/
public function initializeObject($obj)
{
return $this->delegate->initializeObject($obj);
}
/**
* Checks whether the Entity Manager has filters.
*
* @return True, if the EM has a filter collection.
*/
public function hasFilters()
{
return $this->delegate->hasFilters();
}
/**
* Gets the UnitOfWork used by the EntityManager to coordinate operations.
*
* @return \Doctrine\ORM\UnitOfWork
*/
public function getUnitOfWork()
{
return $this->delegate->getUnitOfWork();
}
/**
* Gets the repository for an entity class.
*
* @param string $entityName The name of the entity.
* @return EntityRepository The repository class.
*/
public function getRepository($className)
{
$repository = $this->delegate->getRepository($className);
if ($repository instanceof \Symfony\Component\DependencyInjection\ContainerAwareInterface) {
$repository->setContainer($this->container);
return $repository;
}
if (null !== $metadata = $this->container->get("jms_di_extra.metadata.metadata_factory")->getMetadataForClass(get_class($repository))) {
foreach ($metadata->classMetadata as $classMetadata) {
foreach ($classMetadata->methodCalls as $call) {
list($method, $arguments) = $call;
call_user_func_array(array($repository, $method), $this->prepareArguments($arguments));
}
}
}
return $repository;
}
/**
* Gets a reference to the entity identified by the given type and identifier
* without actually loading it, if the entity is not yet loaded.
*
* @param string $entityName The name of the entity type.
* @param mixed $id The entity identifier.
* @return object The entity reference.
*/
public function getReference($entityName, $id)
{
return $this->delegate->getReference($entityName, $id);
}
/**
* Gets the proxy factory used by the EntityManager to create entity proxies.
*
* @return ProxyFactory
*/
public function getProxyFactory()
{
return $this->delegate->getProxyFactory();
}
/**
* Gets a partial reference to the entity identified by the given type and identifier
* without actually loading it, if the entity is not yet loaded.
*
* The returned reference may be a partial object if the entity is not yet loaded/managed.
* If it is a partial object it will not initialize the rest of the entity state on access.
* Thus you can only ever safely access the identifier of an entity obtained through
* this method.
*
* The use-cases for partial references involve maintaining bidirectional associations
* without loading one side of the association or to update an entity without loading it.
* Note, however, that in the latter case the original (persistent) entity data will
* never be visible to the application (especially not event listeners) as it will
* never be loaded in the first place.
*
* @param string $entityName The name of the entity type.
* @param mixed $identifier The entity identifier.
* @return object The (partial) entity reference.
*/
public function getPartialReference($entityName, $identifier)
{
return $this->delegate->getPartialReference($entityName, $identifier);
}
/**
* Gets the metadata factory used to gather the metadata of classes.
*
* @return \Doctrine\ORM\Mapping\ClassMetadataFactory
*/
public function getMetadataFactory()
{
return $this->delegate->getMetadataFactory();
}
/**
* Gets a hydrator for the given hydration mode.
*
* This method caches the hydrator instances which is used for all queries that don't
* selectively iterate over the result.
*
* @param int $hydrationMode
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function getHydrator($hydrationMode)
{
return $this->delegate->getHydrator($hydrationMode);
}
/**
* Gets the enabled filters.
*
* @return FilterCollection The active filter collection.
*/
public function getFilters()
{
return $this->delegate->getFilters();
}
/**
* Gets an ExpressionBuilder used for object-oriented construction of query expressions.
*
* Example:
*
* <code>
* $qb = $em->createQueryBuilder();
* $expr = $em->getExpressionBuilder();
* $qb->select('u')->from('User', 'u')
* ->where($expr->orX($expr->eq('u.id', 1), $expr->eq('u.id', 2)));
* </code>
*
* @return \Doctrine\ORM\Query\Expr
*/
public function getExpressionBuilder()
{
return $this->delegate->getExpressionBuilder();
}
/**
* Gets the EventManager used by the EntityManager.
*
* @return \Doctrine\Common\EventManager
*/
public function getEventManager()
{
return $this->delegate->getEventManager();
}
/**
* Gets the database connection object used by the EntityManager.
*
* @return \Doctrine\DBAL\Connection
*/
public function getConnection()
{
return $this->delegate->getConnection();
}
/**
* Gets the Configuration used by the EntityManager.
*
* @return \Doctrine\ORM\Configuration
*/
public function getConfiguration()
{
return $this->delegate->getConfiguration();
}
/**
* Returns the ORM metadata descriptor for a class.
*
* The class name must be the fully-qualified class name without a leading backslash
* (as it is returned by get_class($obj)) or an aliased class name.
*
* Examples:
* MyProject\Domain\User
* sales:PriceRequest
*
* @return \Doctrine\ORM\Mapping\ClassMetadata
* @internal Performance-sensitive method.
*/
public function getClassMetadata($className)
{
return $this->delegate->getClassMetadata($className);
}
/**
* Flushes all changes to objects that have been queued up to now to the database.
* This effectively synchronizes the in-memory state of managed objects with the
* database.
*
* If an entity is explicitly passed to this method only this entity and
* the cascade-persist semantics + scheduled inserts/removals are synchronized.
*
* @param object $entity
* @throws \Doctrine\ORM\OptimisticLockException If a version check on an entity that
* makes use of optimistic locking fails.
*/
public function flush($entity = NULL)
{
return $this->delegate->flush($entity);
}
/**
* Finds an Entity by its identifier.
*
* @param string $entityName
* @param mixed $id
* @param integer $lockMode
* @param integer $lockVersion
*
* @return object
*/
public function find($entityName, $id, $lockMode = 0, $lockVersion = NULL)
{
return $this->delegate->find($entityName, $id, $lockMode, $lockVersion);
}
/**
* Detaches an entity from the EntityManager, causing a managed entity to
* become detached. Unflushed changes made to the entity if any
* (including removal of the entity), will not be synchronized to the database.
* Entities which previously referenced the detached entity will continue to
* reference it.
*
* @param object $entity The entity to detach.
*/
public function detach($entity)
{
return $this->delegate->detach($entity);
}
/**
* Create a QueryBuilder instance
*
* @return QueryBuilder $qb
*/
public function createQueryBuilder()
{
return $this->delegate->createQueryBuilder();
}
/**
* Creates a new Query object.
*
* @param string $dql The DQL string.
* @return \Doctrine\ORM\Query
*/
public function createQuery($dql = '')
{
return $this->delegate->createQuery($dql);
}
/**
* Creates a native SQL query.
*
* @param string $sql
* @param ResultSetMapping $rsm The ResultSetMapping to use.
* @return NativeQuery
*/
public function createNativeQuery($sql, \Doctrine\ORM\Query\ResultSetMapping $rsm)
{
return $this->delegate->createNativeQuery($sql, $rsm);
}
/**
* Creates a Query from a named query.
*
* @param string $name
* @return \Doctrine\ORM\Query
*/
public function createNamedQuery($name)
{
return $this->delegate->createNamedQuery($name);
}
/**
* Creates a NativeQuery from a named native query.
*
* @param string $name
* @return \Doctrine\ORM\NativeQuery
*/
public function createNamedNativeQuery($name)
{
return $this->delegate->createNamedNativeQuery($name);
}
/**
* Creates a copy of the given entity. Can create a shallow or a deep copy.
*
* @param object $entity The entity to copy.
* @return object The new entity.
* @todo Implementation need. This is necessary since $e2 = clone $e1; throws an E_FATAL when access anything on $e:
* Fatal error: Maximum function nesting level of '100' reached, aborting!
*/
public function copy($entity, $deep = false)
{
return $this->delegate->copy($entity, $deep);
}
/**
* Determines whether an entity instance is managed in this EntityManager.
*
* @param object $entity
* @return boolean TRUE if this EntityManager currently manages the given entity, FALSE otherwise.
*/
public function contains($entity)
{
return $this->delegate->contains($entity);
}
/**
* Commits a transaction on the underlying database connection.
*/
public function commit()
{
return $this->delegate->commit();
}
/**
* Closes the EntityManager. All entities that are currently managed
* by this EntityManager become detached. The EntityManager may no longer
* be used after it is closed.
*/
public function close()
{
return $this->delegate->close();
}
/**
* Clears the EntityManager. All entities that are currently managed
* by this EntityManager become detached.
*
* @param string $entityName if given, only entities of this type will get detached
*/
public function clear($entityName = NULL)
{
return $this->delegate->clear($entityName);
}
/**
* Starts a transaction on the underlying database connection.
*/
public function beginTransaction()
{
return $this->delegate->beginTransaction();
}
public function __construct($objectManager, \Symfony\Component\DependencyInjection\ContainerInterface $container)
{
$this->delegate = $objectManager;
$this->container = $container;
}
private function prepareArguments(array $arguments)
{
$processed = array();
foreach ($arguments as $arg) {
if ($arg instanceof \Symfony\Component\DependencyInjection\Reference) {
$processed[] = $this->container->get((string) $arg, $arg->getInvalidBehavior());
} else if ($arg instanceof \Symfony\Component\DependencyInjection\Parameter) {
$processed[] = $this->container->getParameter((string) $arg);
} else {
$processed[] = $arg;
}
}
return $processed;
}
} | vistorr/panel | app/cache/dev/jms_diextra/doctrine/EntityManager_5230d19111d8e.php | PHP | mit | 16,022 |
/*-----------*\
/* RESET \___________________________________________________ */
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,b, u, i, center,dl, dt, dd, ol, ul, li,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,time, mark, audio, video {margin: 0;padding: 0;border: 0;font-size: 100%;font: inherit;vertical-align: baseline;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after,q:before, q:after {content: '';content: none;}
table {border-collapse: collapse;border-spacing: 0;}
* { -webkit-tap-highlight-color: rgba(0,0,0,0); box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; }
.input-box { background: #7F8C8D; padding: 18px; }
.output { text-align:center; width: 50%; margin: 0 auto; height: 48px; border: none; padding: 0 15px; font: 400 16px/48px 'Open Sans',sans-serif; color: #ffffff; background: rgba(0,0,0,.45); }
/*-----------*\
/* SLIDER \___________________________________________________ */
span.slider-tut { width: 100%; display: block; text-align: center; font: 400 10px/16px 'Open Sans',sans-serif; color: #ffffff; margin-bottom: -10px; margin-top: 14px; }
.slider,
.grip,
.grip-ridges,
.grip-ridges li,
.track,
.track-division { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; }
.slider { background: #95A5A6; width: 100%; height: 52px; position: relative; overflow: hidden; }
.grip { z-index: 9; height: 52px; background: #c0392b; background: -moz-linear-gradient(left, #c0392b 0%, #c0392b 50%, #e74c3c 51%, #e74c3c 100%); background: -webkit-gradient(linear, left top, right top, color-stop(0%,#c0392b), color-stop(50%,#c0392b), color-stop(51%,#e74c3c), color-stop(100%,#e74c3c)); background: -webkit-linear-gradient(left, #c0392b 0%,#c0392b 50%,#e74c3c 51%,#e74c3c 100%); background: -o-linear-gradient(left, #c0392b 0%,#c0392b 50%,#e74c3c 51%,#e74c3c 100%); background: -ms-linear-gradient(left, #c0392b 0%,#c0392b 50%,#e74c3c 51%,#e74c3c 100%); background: linear-gradient(to right, #c0392b 0%,#c0392b 50%,#e74c3c 51%,#e74c3c 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c0392b', endColorstr='#e74c3c',GradientType=1 ); position: absolute; cursor: pointer; left: 0; }
.grip:before { z-index: 3; content: ''; height: 0; position: absolute; width: 0; border: 10px solid transparent; border-left-color: #e74c3c; right: -20px; top: 50%; margin-top: -10px; }
.grip:after { z-index: 3; content: ''; height: 0; position: absolute; width: 0; border: 10px solid transparent; border-right-color: #c0392b; left: -20px; top: 50%; margin-top: -10px; }
.grip-ridges { width: 30px; height: 60%; position: relative; top: 20%; left: 50%; margin-left: -15px; overflow: hidden; }
.grip-ridges li { width: 4px; height: 100%; margin: 0 3px; background: #A11F13; float: left; }
.track { overflow: hidden; height: 100%; }
.track-division { float: left; height: 100%; border-right: 1px solid #7F8C8D; }
.track-division:first-child { border-left: none; } | Sina72/CourseWork | css/stylesl.css | CSS | mit | 3,657 |
import os
import webapp2
from actions import cronActions
from views import views
import secrets
SECS_PER_WEEK = 60 * 60 * 24 * 7
# Enable ctypes -> Jinja2 tracebacks
PRODUCTION_MODE = not os.environ.get(
'SERVER_SOFTWARE', 'Development').startswith('Development')
ROOT_DIRECTORY = os.path.dirname(__file__)
if not PRODUCTION_MODE:
from google.appengine.tools.devappserver2.python import sandbox
sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']
TEMPLATE_DIRECTORY = os.path.join(ROOT_DIRECTORY, 'src')
else:
TEMPLATE_DIRECTORY = os.path.join(ROOT_DIRECTORY, 'dist')
curr_path = os.path.abspath(os.path.dirname(__file__))
config = {
'webapp2_extras.sessions': {
'secret_key': secrets.COOKIE_KEY,
'session_max_age': SECS_PER_WEEK,
'cookie_args': {'max_age': SECS_PER_WEEK},
'cookie_name': 'echo_sense_session'
},
'webapp2_extras.jinja2': {
'template_path': TEMPLATE_DIRECTORY
}
}
app = webapp2.WSGIApplication(
[
# Cron jobs (see cron.yaml)
webapp2.Route('/cron/monthly', handler=cronActions.Monthly),
webapp2.Route(r'/<:.*>', handler=views.ActionPotentialApp, name="ActionPotentialApp"),
], debug=True, config=config)
| onejgordon/action-potential | actionpotential.py | Python | mit | 1,267 |
module Test
PI = 3.14
class Test2
def what_is_pi
puts PI
end
end
end
Test::Test2.new.what_is_pi # => 3.14
module MyModule
MyConstant = 'Outer Constant'
class MyClass
puts MyConstant # => Outer Constant
MyConstant = 'Inner Constant'
puts MyConstant # => Inner Constant
end
puts MyConstant # => Outer Constant
end
| rbaladron/rails-coursera | intro_rails/modulo2/Ejemplos/Lecture13-Scope/constants_scope.rb | Ruby | mit | 371 |
//
// parser.h
// homework_4
//
// Created by Asen Lekov on 12/29/14.
// Copyright (c) 2014 fmi. All rights reserved.
//
#ifndef __homework_4__parser__
#define __homework_4__parser__
#include <string>
class XMLParser {
public:
//private:
bool is_open_tag(const std::string& tag) const;
bool is_close_tag(const std::string& tag) const;
bool is_tag(const std::string& tag) const;
std::string get_tag_name(const std::string& tag) const;
};
#endif /* defined(__homework_4__parser__) */
| L3K0V/fmi-data-structures | 2014/homework_4/homework_4/parser.h | C | mit | 511 |
<?php
class SV_WarningImprovements_XenForo_ControllerPublic_Member extends XFCP_SV_WarningImprovements_XenForo_ControllerPublic_Member
{
public function actionMember()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
$response = parent::actionMember();
if ($response instanceof XenForo_ControllerResponse_View)
{
$warningActionModel = $this->_getWarningActionModel();
$user = $response->params['user'];
if ($warningActionModel->canViewUserWarningActions($user))
{
$showAll = $warningActionModel->canViewNonSummaryUserWarningActions($user);
$showDiscouraged = $warningActionModel->canViewDiscouragedWarningActions($user);
$response->params['warningActionsCount'] = $warningActionModel->countWarningActionsByUser($user['user_id'], $showAll, $showDiscouraged);
$response->params['canViewWarningActions'] = true;
}
}
return $response;
}
public function actionWarningActions()
{
$userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
/** @var XenForo_ControllerHelper_UserProfile $userProfileHelper */
$userProfileHelper = $this->getHelper('UserProfile');
$user = $userProfileHelper->assertUserProfileValidAndViewable($userId);
$warningActionModel = $this->_getWarningActionModel();
if (!$warningActionModel->canViewUserWarningActions($user))
{
return $this->responseNoPermission();
}
$showAll = $warningActionModel->canViewNonSummaryUserWarningActions($user);
$showDiscouraged = $warningActionModel->canViewDiscouragedWarningActions($user);
$warningActions = $warningActionModel->getWarningActionsByUser($user['user_id'], $showAll, $showDiscouraged);
if (!$warningActions)
{
return $this->responseMessage(new XenForo_Phrase('sv_this_user_has_no_warning_actions'));
}
$warningActions = $warningActionModel->prepareWarningActions($warningActions);
$viewParams = array
(
'user' => $user,
'warningActions' => $warningActions
);
return $this->responseView('SV_WarningImprovements_ViewPublic_Member_WarningActions', 'sv_member_warning_actions', $viewParams);
}
public function actionWarn()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
SV_WarningImprovements_Globals::$SendWarningAlert = $this->_input->filterSingle('send_warning_alert', XenForo_Input::BOOLEAN);
SV_WarningImprovements_Globals::$warningInput = $this->_input->filter([
'title' => XenForo_Input::STRING,
]);
SV_WarningImprovements_Globals::$scaleWarningExpiry = true;
SV_WarningImprovements_Globals::$NotifyOnWarningAction = true;
$response = parent::actionWarn();
if (!$response instanceof XenForo_ControllerResponse_View)
{
if ($response instanceof XenForo_ControllerResponse_Redirect)
{
if ($response->redirectMessage === null)
{
$response->redirectMessage = new XenForo_Phrase('sv_issued_warning');
}
return $response;
}
if ($response instanceof XenForo_ControllerResponse_Reroute &&
$response->controllerName === 'XenForo_ControllerPublic_Error' &&
$response->action === 'noPermission')
{
$userId = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
/** @var XenForo_ControllerHelper_UserProfile $userHelper */
$userHelper = $this->getHelper('UserProfile');
$user = $userHelper->getUserOrError($userId);
// this happens if the warning already exists
$contentInput = $this->_input->filter(
[
'content_type' => XenForo_Input::STRING,
'content_id' => XenForo_Input::UINT
]
);
if (!$contentInput['content_type'])
{
$contentInput['content_type'] = 'user';
$contentInput['content_id'] = $userId;
}
/* @var $warningModel XenForo_Model_Warning */
$warningModel = $this->getModelFromCache('XenForo_Model_Warning');
$warningHandler = $warningModel->getWarningHandler($contentInput['content_type']);
if (!$warningHandler)
{
return $response;
}
/** @var array|bool $content */
$content = $warningHandler->getContent($contentInput['content_id']);
if ($content && $warningHandler->canView($content) && !empty($content['warning_id']))
{
$url = $warningHandler->getContentUrl($content);
if ($url)
{
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::RESOURCE_UPDATED,
$url,
new XenForo_Phrase('sv_content_already_warned')
);
}
}
}
return $response;
}
$viewParams = &$response->params;
/** @var SV_WarningImprovements_XenForo_Model_Warning $warningModel */
$warningModel = $this->getModelFromCache('XenForo_Model_Warning');
$warningItems = $warningModel->getWarningItems(true);
if (empty($warningItems))
{
return $this->responseError(new XenForo_Phrase('sv_no_permission_to_give_warnings'), 403);
}
$warningCategories = $warningModel->groupWarningItemsByWarningCategory(
$warningItems
);
$rootWarningCategories = $warningModel
->groupWarningItemsByRootWarningCategory($warningItems);
$viewParams['warningCategories'] = $warningCategories;
$viewParams['rootWarningCategories'] = $rootWarningCategories;
return $response;
}
public function actionWarnings()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
return parent::actionWarnings();
}
public function actionCard()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
return parent::actionCard();
}
/**
* @return XenForo_Model|XenForo_Model_UserChangeTemp|SV_WarningImprovements_XenForo_Model_UserChangeTemp
*/
protected function _getWarningActionModel()
{
return $this->getModelFromCache('XenForo_Model_UserChangeTemp');
}
}
| Xon/XenForo-WarningImprovements | upload/library/SV/WarningImprovements/XenForo/ControllerPublic/Member.php | PHP | mit | 7,086 |
#include <stdint.h>
const uint8_t
#if defined __GNUC__
__attribute__((aligned(4)))
#elif defined _MSC_VER
__declspec(align(4))
#endif
mrblib_extman_irep[] = {
0x45,0x54,0x49,0x52,0x30,0x30,0x30,0x33,0x5a,0x89,0x00,0x00,0x44,0xcb,0x4d,0x41,
0x54,0x5a,0x30,0x30,0x30,0x30,0x49,0x52,0x45,0x50,0x00,0x00,0x32,0x2d,0x30,0x30,
0x30,0x30,0x00,0x00,0x02,0x36,0x00,0x01,0x00,0x06,0x00,0x11,0x00,0x00,0x00,0x39,
0x05,0x00,0x80,0x00,0x44,0x00,0x80,0x00,0x45,0x00,0x80,0x00,0x48,0x00,0x80,0x00,
0xc0,0x02,0x00,0x01,0x46,0x40,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x04,0x00,0x01,
0x46,0x80,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x06,0x00,0x01,0x46,0xc0,0x80,0x00,
0x48,0x00,0x80,0x00,0xc0,0x08,0x00,0x01,0x46,0x00,0x81,0x00,0x48,0x00,0x80,0x00,
0xc0,0x0a,0x00,0x01,0x46,0x40,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0c,0x00,0x01,
0x46,0x80,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0e,0x00,0x01,0x46,0xc0,0x81,0x00,
0x48,0x00,0x80,0x00,0xc0,0x10,0x00,0x01,0x46,0x00,0x82,0x00,0x48,0x00,0x80,0x00,
0xc0,0x12,0x00,0x01,0x46,0x40,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x14,0x00,0x01,
0x46,0x80,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x16,0x00,0x01,0x46,0xc0,0x82,0x00,
0x48,0x00,0x80,0x00,0xc0,0x18,0x00,0x01,0x46,0x00,0x83,0x00,0x48,0x00,0x80,0x00,
0xc0,0x1a,0x00,0x01,0x46,0x40,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1c,0x00,0x01,
0x46,0x80,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1e,0x00,0x01,0x46,0xc0,0x83,0x00,
0x11,0x00,0x80,0x00,0x20,0x00,0x84,0x00,0x11,0x00,0x80,0x00,0x3d,0x00,0x00,0x01,
0xbd,0x00,0x80,0x01,0x3d,0x01,0x00,0x02,0x40,0x21,0x80,0x02,0xa1,0x41,0x84,0x00,
0x4a,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x13,0x52,0x75,0x6e,0x20,0x61,
0x73,0x20,0x6d,0x72,0x75,0x62,0x79,0x20,0x73,0x63,0x72,0x69,0x70,0x74,0x00,0x00,
0x01,0x2a,0x00,0x00,0x0a,0x41,0x6c,0x74,0x2b,0x43,0x74,0x72,0x6c,0x2b,0x52,0x00,
0x00,0x00,0x12,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0f,0x6f,0x6e,0x5f,
0x6d,0x61,0x72,0x67,0x69,0x6e,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,0x0f,0x6f,
0x6e,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,
0x12,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,0x69,0x6e,0x74,0x5f,0x6c,
0x65,0x66,0x74,0x00,0x00,0x15,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,
0x69,0x6e,0x74,0x5f,0x72,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x07,0x6f,0x6e,
0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x00,
0x00,0x0e,0x6f,0x6e,0x5f,0x62,0x65,0x66,0x6f,0x72,0x65,0x5f,0x73,0x61,0x76,0x65,
0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,
0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0c,0x6f,0x6e,
0x5f,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,0x75,0x69,0x00,0x00,0x06,0x6f,0x6e,0x5f,
0x6b,0x65,0x79,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x64,0x77,0x65,0x6c,0x6c,0x5f,0x73,
0x74,0x61,0x72,0x74,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x63,0x6c,0x6f,0x73,0x65,0x00,
0x00,0x16,0x6f,0x6e,0x5f,0x75,0x73,0x65,0x72,0x5f,0x6c,0x69,0x73,0x74,0x5f,0x73,
0x65,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x73,0x74,
0x72,0x69,0x70,0x00,0x00,0x0c,0x6c,0x6f,0x61,0x64,0x5f,0x73,0x63,0x72,0x69,0x70,
0x74,0x73,0x00,0x00,0x0e,0x64,0x65,0x66,0x69,0x6e,0x65,0x5f,0x63,0x6f,0x6d,0x6d,
0x61,0x6e,0x64,0x00,0x00,0x00,0x02,0xd2,0x00,0x01,0x00,0x03,0x00,0x05,0x00,0x00,
0x00,0x3d,0x00,0x00,0x83,0xff,0xbf,0x00,0x12,0x00,0x80,0x00,0x03,0x00,0xc0,0x00,
0x92,0x00,0x80,0x00,0x83,0x00,0xc0,0x00,0x12,0x01,0x80,0x00,0x03,0x01,0xc0,0x00,
0x92,0x01,0x80,0x00,0x83,0x01,0xc0,0x00,0x12,0x02,0x80,0x00,0x03,0x02,0xc0,0x00,
0x92,0x02,0x80,0x00,0x83,0x02,0xc0,0x00,0x12,0x03,0x80,0x00,0x03,0x03,0xc0,0x00,
0x92,0x03,0x80,0x00,0x83,0x03,0xc0,0x00,0x12,0x04,0x80,0x00,0x03,0x04,0xc0,0x00,
0x92,0x04,0x80,0x00,0x83,0x04,0xc0,0x00,0x12,0x05,0x80,0x00,0x03,0x05,0xc0,0x00,
0x92,0x05,0x80,0x00,0x83,0x05,0xc0,0x00,0x12,0x06,0x80,0x00,0x03,0x06,0xc0,0x00,
0x92,0x06,0x80,0x00,0x83,0x06,0xc0,0x00,0x12,0x07,0x80,0x00,0x03,0x07,0xc0,0x00,
0x92,0x07,0x80,0x00,0x83,0x07,0xc0,0x00,0x12,0x08,0x80,0x00,0x03,0x08,0xc0,0x00,
0x92,0x08,0x80,0x00,0x37,0x40,0x80,0x00,0x0e,0x09,0x80,0x00,0x83,0x04,0xc0,0x00,
0x8e,0x09,0x80,0x00,0x3f,0x40,0x80,0x00,0x0e,0x0a,0x80,0x00,0x3f,0x40,0x80,0x00,
0x8e,0x0a,0x80,0x00,0x06,0x00,0x80,0x00,0x47,0x40,0x80,0x00,0x45,0x00,0x80,0x00,
0x05,0x00,0x80,0x00,0x05,0x00,0x00,0x01,0x43,0x80,0x85,0x00,0xc5,0x00,0x80,0x00,
0x06,0x00,0x80,0x00,0x40,0x05,0x00,0x01,0x21,0xc0,0x85,0x00,0x06,0x00,0x80,0x00,
0x40,0x07,0x00,0x01,0x21,0x00,0x86,0x00,0x06,0x00,0x80,0x00,0x40,0x09,0x00,0x01,
0x21,0x40,0x86,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1a,
0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,0x49,0x4e,0x5f,0x43,
0x4c,0x49,0x43,0x4b,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,
0x42,0x4c,0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x15,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x4c,0x45,0x46,
0x54,0x00,0x00,0x18,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,
0x4f,0x49,0x4e,0x54,0x5f,0x52,0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x0a,0x45,
0x56,0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x42,
0x45,0x46,0x4f,0x52,0x45,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x11,0x45,0x56,0x45,
0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,0x49,0x4c,0x45,0x00,0x00,
0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x00,0x00,0x0f,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,0x41,0x54,0x45,0x5f,0x55,0x49,0x00,0x00,0x09,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,
0x54,0x5f,0x44,0x57,0x45,0x4c,0x4c,0x5f,0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x0b,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,0x4f,0x52,0x5f,0x4c,0x49,0x4e,0x45,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x55,0x54,0x50,0x55,0x54,0x5f,0x4c,
0x49,0x4e,0x45,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,
0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,
0x55,0x53,0x45,0x52,0x5f,0x4c,0x49,0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,
0x49,0x4f,0x4e,0x00,0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,
0x50,0x00,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,
0x65,0x72,0x73,0x00,0x00,0x09,0x40,0x6d,0x65,0x6e,0x75,0x5f,0x69,0x64,0x78,0x00,
0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x73,0x00,0x00,0x0f,0x40,0x73,
0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x00,0x00,0x0e,
0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x43,0x6f,0x6e,0x74,0x65,0x78,0x74,0x00,0x00,
0x07,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,
0x69,0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x63,
0x68,0x61,0x72,0x00,0x00,0x00,0x07,0x2e,0x00,0x01,0x00,0x05,0x00,0x1d,0x00,0x00,
0x00,0xcb,0x00,0x00,0x48,0x00,0x80,0x00,0xc0,0x00,0x00,0x01,0x46,0x00,0x80,0x00,
0x48,0x00,0x80,0x00,0xc0,0x02,0x00,0x01,0x46,0x40,0x80,0x00,0x48,0x00,0x80,0x00,
0xc0,0x04,0x00,0x01,0x46,0x80,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x06,0x00,0x01,
0x46,0xc0,0x80,0x00,0x48,0x00,0x80,0x00,0xc0,0x08,0x00,0x01,0x46,0x00,0x81,0x00,
0x48,0x00,0x80,0x00,0xc0,0x0a,0x00,0x01,0x46,0x40,0x81,0x00,0x48,0x00,0x80,0x00,
0xc0,0x0c,0x00,0x01,0x46,0x80,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x0e,0x00,0x01,
0x46,0xc0,0x81,0x00,0x48,0x00,0x80,0x00,0xc0,0x10,0x00,0x01,0x46,0x00,0x82,0x00,
0x48,0x00,0x80,0x00,0xc0,0x12,0x00,0x01,0x46,0x40,0x82,0x00,0x48,0x00,0x80,0x00,
0xc0,0x14,0x00,0x01,0x46,0x80,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x16,0x00,0x01,
0x46,0xc0,0x82,0x00,0x48,0x00,0x80,0x00,0xc0,0x18,0x00,0x01,0x46,0x00,0x83,0x00,
0x48,0x00,0x80,0x00,0xc0,0x1a,0x00,0x01,0x46,0x40,0x83,0x00,0x48,0x00,0x80,0x00,
0xc0,0x1c,0x00,0x01,0x46,0x80,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x1e,0x00,0x01,
0x46,0xc0,0x83,0x00,0x48,0x00,0x80,0x00,0xc0,0x20,0x00,0x01,0x46,0x00,0x84,0x00,
0x48,0x00,0x80,0x00,0xc0,0x22,0x00,0x01,0x46,0x40,0x84,0x00,0x48,0x00,0x80,0x00,
0xc0,0x24,0x00,0x01,0x46,0x80,0x84,0x00,0x48,0x00,0x80,0x00,0xc0,0x26,0x00,0x01,
0x46,0xc0,0x84,0x00,0x48,0x00,0x80,0x00,0xc0,0x28,0x00,0x01,0x46,0x00,0x85,0x00,
0x48,0x00,0x80,0x00,0xc0,0x2a,0x00,0x01,0x46,0x40,0x85,0x00,0x48,0x00,0x80,0x00,
0xc0,0x2c,0x00,0x01,0x46,0x80,0x85,0x00,0x48,0x00,0x80,0x00,0xc0,0x2e,0x00,0x01,
0x46,0xc0,0x85,0x00,0x48,0x00,0x80,0x00,0xc0,0x30,0x00,0x01,0x46,0x00,0x86,0x00,
0x48,0x00,0x80,0x00,0xc0,0x32,0x00,0x01,0x46,0x40,0x86,0x00,0x48,0x00,0x80,0x00,
0xc0,0x34,0x00,0x01,0x46,0x80,0x86,0x00,0x48,0x00,0x80,0x00,0xc0,0x36,0x00,0x01,
0x46,0xc0,0x86,0x00,0x48,0x00,0x80,0x00,0xc0,0x38,0x00,0x01,0x46,0x00,0x87,0x00,
0x06,0x00,0x80,0x00,0x04,0x0f,0x00,0x01,0xa0,0x40,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x10,0x00,0x01,0x84,0x10,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x11,0x00,0x01,0x84,0x11,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x12,0x00,0x01,0x84,0x12,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x13,0x00,0x01,0x84,0x13,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x14,0x00,0x01,0x84,0x14,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x15,0x00,0x01,0x04,0x0b,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x15,0x00,0x01,0x04,0x16,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x16,0x00,0x01,0x04,0x17,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x17,0x00,0x01,0x04,0x18,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x18,0x00,0x01,0x84,0x0c,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x19,0x00,0x01,0x04,0x0c,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x19,0x00,0x01,0x84,0x0b,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1a,0x00,0x01,0x04,0x03,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1a,0x00,0x01,0x84,0x03,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1b,0x00,0x01,0x04,0x04,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1b,0x00,0x01,0x84,0x04,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1c,0x00,0x01,0x04,0x05,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1c,0x00,0x01,0x84,0x05,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1d,0x00,0x01,0x04,0x06,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1d,0x00,0x01,0x84,0x06,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1e,0x00,0x01,0x04,0x07,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1e,0x00,0x01,0x84,0x07,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x1f,0x00,0x01,0x04,0x08,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x1f,0x00,0x01,0x84,0x08,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x20,0x00,0x01,0x04,0x09,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x20,0x00,0x01,0x84,0x09,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x04,0x21,0x00,0x01,0x04,0x0a,0x80,0x01,0x20,0xc1,0x87,0x00,0x06,0x00,0x80,0x00,
0x84,0x21,0x00,0x01,0x84,0x0a,0x80,0x01,0x20,0xc1,0x87,0x00,0x29,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x44,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,
0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0c,0x63,0x61,0x6c,0x6c,0x5f,0x63,0x6f,
0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0e,0x64,0x65,0x66,0x69,0x6e,0x65,0x5f,0x63,
0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x05,0x73,0x65,0x6e,0x64,0x32,0x00,0x00,
0x07,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x0f,0x6f,
0x6e,0x5f,0x6d,0x61,0x72,0x67,0x69,0x6e,0x5f,0x63,0x6c,0x69,0x63,0x6b,0x00,0x00,
0x0f,0x6f,0x6e,0x5f,0x64,0x6f,0x75,0x62,0x6c,0x65,0x5f,0x63,0x6c,0x69,0x63,0x6b,
0x00,0x00,0x12,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,0x70,0x6f,0x69,0x6e,0x74,
0x5f,0x6c,0x65,0x66,0x74,0x00,0x00,0x15,0x6f,0x6e,0x5f,0x73,0x61,0x76,0x65,0x5f,
0x70,0x6f,0x69,0x6e,0x74,0x5f,0x72,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x07,
0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x77,0x69,
0x74,0x63,0x68,0x5f,0x66,0x69,0x6c,0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x73,0x61,
0x76,0x65,0x5f,0x62,0x65,0x66,0x6f,0x72,0x65,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x73,
0x61,0x76,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x5f,0x75,0x70,0x64,0x61,0x74,0x65,0x5f,
0x75,0x69,0x00,0x00,0x07,0x6f,0x6e,0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x06,0x6f,
0x6e,0x5f,0x6b,0x65,0x79,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x64,0x77,0x65,0x6c,0x6c,
0x5f,0x73,0x74,0x61,0x72,0x74,0x00,0x00,0x08,0x6f,0x6e,0x5f,0x63,0x6c,0x6f,0x73,
0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x6f,0x70,0x65,0x6e,0x5f,0x73,0x77,0x69,0x74,
0x63,0x68,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f,0x6c,
0x69,0x6e,0x65,0x00,0x00,0x0e,0x6f,0x6e,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x5f,
0x6c,0x69,0x6e,0x65,0x00,0x00,0x0a,0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x68,0x6f,
0x77,0x00,0x00,0x0e,0x75,0x73,0x65,0x72,0x5f,0x6c,0x69,0x73,0x74,0x5f,0x73,0x68,
0x6f,0x77,0x00,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,
0x65,0x00,0x00,0x0c,0x6c,0x6f,0x61,0x64,0x5f,0x73,0x63,0x72,0x69,0x70,0x74,0x73,
0x00,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,0x66,0x65,0x72,0x5f,0x73,0x77,0x69,
0x74,0x63,0x68,0x00,0x00,0x0e,0x67,0x72,0x61,0x62,0x5f,0x6c,0x69,0x6e,0x65,0x5f,
0x66,0x72,0x6f,0x6d,0x00,0x00,0x0c,0x6f,0x6e,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x63,
0x68,0x61,0x72,0x00,0x00,0x0d,0x61,0x74,0x74,0x72,0x5f,0x61,0x63,0x63,0x65,0x73,
0x73,0x6f,0x72,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x73,0x00,0x00,0x0c,0x61,0x6c,0x69,0x61,0x73,0x5f,0x6d,0x65,0x74,
0x68,0x6f,0x64,0x00,0x00,0x0a,0x73,0x65,0x6e,0x64,0x45,0x64,0x69,0x74,0x6f,0x72,
0x00,0x00,0x0b,0x73,0x65,0x6e,0x64,0x5f,0x65,0x64,0x69,0x74,0x6f,0x72,0x00,0x00,
0x0a,0x73,0x65,0x6e,0x64,0x4f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x0b,0x73,0x65,
0x6e,0x64,0x5f,0x6f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x0c,0x63,0x6f,0x6e,0x73,
0x74,0x61,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x00,0x0d,0x63,0x6f,0x6e,0x73,0x74,
0x61,0x6e,0x74,0x5f,0x6e,0x61,0x6d,0x65,0x00,0x00,0x0b,0x6d,0x65,0x6e,0x75,0x43,
0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0c,0x6d,0x65,0x6e,0x75,0x5f,0x63,0x6f,
0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x0f,0x75,0x70,0x64,0x61,0x74,0x65,0x53,0x74,
0x61,0x74,0x75,0x73,0x42,0x61,0x72,0x00,0x00,0x11,0x75,0x70,0x64,0x61,0x74,0x65,
0x5f,0x73,0x74,0x61,0x74,0x75,0x73,0x5f,0x62,0x61,0x72,0x00,0x00,0x09,0x73,0x74,
0x72,0x69,0x70,0x53,0x68,0x6f,0x77,0x00,0x00,0x08,0x73,0x74,0x72,0x69,0x70,0x53,
0x65,0x74,0x00,0x00,0x09,0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x65,0x74,0x00,0x00,
0x0c,0x73,0x74,0x72,0x69,0x70,0x53,0x65,0x74,0x4c,0x69,0x73,0x74,0x00,0x00,0x0e,
0x73,0x74,0x72,0x69,0x70,0x5f,0x73,0x65,0x74,0x5f,0x6c,0x69,0x73,0x74,0x00,0x00,
0x0a,0x73,0x74,0x72,0x69,0x70,0x56,0x61,0x6c,0x75,0x65,0x00,0x00,0x0b,0x73,0x74,
0x72,0x69,0x70,0x5f,0x76,0x61,0x6c,0x75,0x65,0x00,0x00,0x0b,0x6c,0x6f,0x61,0x64,
0x53,0x63,0x72,0x69,0x70,0x74,0x73,0x00,0x00,0x0b,0x63,0x75,0x72,0x72,0x65,0x6e,
0x74,0x46,0x69,0x6c,0x65,0x00,0x00,0x0c,0x75,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,
0x53,0x68,0x6f,0x77,0x00,0x00,0x0d,0x6f,0x6e,0x4d,0x61,0x72,0x67,0x69,0x6e,0x43,
0x6c,0x69,0x63,0x6b,0x00,0x00,0x0d,0x6f,0x6e,0x44,0x6f,0x75,0x62,0x6c,0x65,0x43,
0x6c,0x69,0x63,0x6b,0x00,0x00,0x0f,0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,0x6f,0x69,
0x6e,0x74,0x4c,0x65,0x66,0x74,0x00,0x00,0x12,0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,
0x6f,0x69,0x6e,0x74,0x52,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,0x06,0x6f,0x6e,
0x4f,0x70,0x65,0x6e,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x77,0x69,0x74,0x63,0x68,0x46,
0x69,0x6c,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x61,0x76,0x65,0x42,0x65,0x66,0x6f,
0x72,0x65,0x00,0x00,0x06,0x6f,0x6e,0x53,0x61,0x76,0x65,0x00,0x00,0x0a,0x6f,0x6e,
0x55,0x70,0x64,0x61,0x74,0x65,0x55,0x49,0x00,0x00,0x06,0x6f,0x6e,0x43,0x68,0x61,
0x72,0x00,0x00,0x05,0x6f,0x6e,0x4b,0x65,0x79,0x00,0x00,0x0c,0x6f,0x6e,0x44,0x77,
0x65,0x6c,0x6c,0x53,0x74,0x61,0x72,0x74,0x00,0x00,0x07,0x6f,0x6e,0x43,0x6c,0x6f,
0x73,0x65,0x00,0x00,0x0c,0x6f,0x6e,0x4f,0x70,0x65,0x6e,0x53,0x77,0x69,0x74,0x63,
0x68,0x00,0x00,0x0c,0x6f,0x6e,0x45,0x64,0x69,0x74,0x6f,0x72,0x4c,0x69,0x6e,0x65,
0x00,0x00,0x0c,0x6f,0x6e,0x4f,0x75,0x74,0x70,0x75,0x74,0x4c,0x69,0x6e,0x65,0x00,
0x00,0x00,0x00,0x43,0x00,0x05,0x00,0x07,0x00,0x01,0x00,0x00,0x00,0x07,0x00,0x00,
0x26,0x00,0x08,0x02,0x08,0x00,0x00,0x02,0x99,0x01,0xc0,0x00,0x01,0x40,0x80,0x02,
0x40,0x01,0x00,0x03,0x21,0x00,0x80,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x0a,0x65,0x61,0x63,0x68,0x5f,0x69,0x6e,0x64,0x65,0x78,
0x00,0x00,0x00,0x00,0xab,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x1a,0x00,
0x26,0x00,0x00,0x02,0x15,0x40,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x37,0x00,0x01,0x02,0x15,0x80,0x80,0x02,
0x38,0x40,0x01,0x02,0xa0,0xbf,0x80,0x01,0x16,0x00,0x81,0x01,0x15,0x40,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x84,0x01,0x00,0x02,0xa0,0x00,0x80,0x01,
0x99,0x01,0xc0,0x01,0x15,0x40,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x81,0x01,
0x15,0x00,0x81,0x01,0x19,0x01,0xc0,0x01,0x29,0x40,0x80,0x01,0x97,0x00,0x40,0x00,
0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x00,0x04,0x63,
0x61,0x6c,0x6c,0x00,0x00,0x06,0x72,0x65,0x6d,0x6f,0x76,0x65,0x00,0x00,0x09,0x64,
0x65,0x6c,0x65,0x74,0x65,0x5f,0x61,0x74,0x00,0x00,0x00,0x00,0x5a,0x00,0x04,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x26,0x00,0x10,0x02,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0xa0,0x40,0x00,0x02,0x01,0x80,0x80,0x02,0xa0,0x80,0x00,0x02,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,
0x6e,0x64,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x63,0x61,0x6c,0x6c,0x00,
0x00,0x00,0x02,0xe7,0x00,0x0a,0x00,0x0f,0x00,0x01,0x00,0x00,0x00,0x6b,0x00,0x00,
0xa6,0x00,0x30,0x02,0x97,0x01,0x40,0x00,0x97,0x01,0x40,0x00,0x97,0x01,0x40,0x00,
0x97,0x01,0x40,0x00,0x3d,0x00,0x00,0x01,0x05,0x00,0x80,0x01,0x05,0x00,0x00,0x02,
0x0d,0x00,0x00,0x03,0x83,0x04,0x40,0x05,0x0d,0x00,0x80,0x05,0x41,0x80,0x02,0x05,
0x40,0x01,0x80,0x05,0x21,0x40,0x00,0x05,0xbd,0x00,0x00,0x05,0x01,0x80,0x81,0x05,
0x3e,0xc0,0x02,0x05,0x3d,0x01,0x80,0x05,0x3e,0xc0,0x02,0x05,0x01,0x80,0x80,0x05,
0x3e,0xc0,0x02,0x05,0x01,0x80,0x02,0x04,0x19,0x0e,0xc0,0x01,0x0d,0x01,0x00,0x05,
0x01,0xc0,0x80,0x05,0xa0,0xc0,0x00,0x05,0x01,0x80,0x82,0x04,0x99,0x01,0x40,0x05,
0x01,0x40,0x02,0x05,0x01,0x40,0x80,0x05,0xa0,0x00,0x01,0x05,0x99,0x03,0x40,0x05,
0x06,0x00,0x00,0x05,0xbd,0x01,0x80,0x05,0x01,0x40,0x02,0x06,0x3e,0x00,0x83,0x05,
0x3d,0x02,0x00,0x06,0x3e,0x00,0x83,0x05,0xa0,0x40,0x01,0x05,0x01,0xc0,0x00,0x05,
0x11,0x03,0x80,0x05,0xbd,0x02,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0x01,0x40,0x00,0x05,0x0d,0x01,0x80,0x05,
0x01,0xc0,0x00,0x06,0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0x01,0x40,0x00,0x05,
0x11,0x03,0x80,0x05,0x3d,0x03,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0xbd,0x03,0x00,0x05,0x01,0x40,0x80,0x05,
0x3e,0xc0,0x02,0x05,0x3d,0x04,0x80,0x05,0x3e,0xc0,0x02,0x05,0x19,0x03,0x40,0x02,
0xbd,0x04,0x80,0x05,0x01,0x00,0x01,0x06,0x3e,0x00,0x83,0x05,0x3d,0x04,0x00,0x06,
0x3e,0x00,0x83,0x05,0x97,0x00,0x40,0x00,0xbd,0x00,0x80,0x05,0xac,0x00,0x02,0x05,
0x11,0x03,0x80,0x05,0x3d,0x05,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,
0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,0xbd,0x05,0x00,0x05,0x11,0x03,0x80,0x05,
0x3d,0x06,0x00,0x06,0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,0x01,0x80,0x82,0x06,
0x20,0xc1,0x81,0x05,0xbd,0x06,0x00,0x05,0x11,0x03,0x80,0x05,0x3d,0x07,0x00,0x06,
0x01,0x00,0x82,0x06,0x3e,0x40,0x03,0x06,0x01,0x80,0x82,0x06,0x20,0xc1,0x81,0x05,
0x01,0x40,0x01,0x05,0x8d,0x04,0x80,0x05,0x01,0x40,0x00,0x06,0x01,0x80,0x82,0x06,
0x20,0xc1,0x81,0x05,0x01,0x80,0x01,0x05,0x0d,0x00,0x80,0x05,0xb2,0x80,0x02,0x05,
0x19,0x02,0x40,0x05,0x0d,0x00,0x00,0x05,0xad,0x00,0x02,0x05,0x0e,0x00,0x00,0x05,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x05,0x29,0x00,0x00,0x05,0x00,0x00,0x00,0x0f,
0x00,0x00,0x01,0x2a,0x00,0x00,0x00,0x00,0x00,0x01,0x2e,0x00,0x00,0x21,0x45,0x72,
0x72,0x6f,0x72,0x3a,0x20,0x73,0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x20,0x61,0x6c,
0x72,0x65,0x61,0x64,0x79,0x20,0x75,0x73,0x65,0x64,0x20,0x69,0x6e,0x20,0x22,0x00,
0x00,0x01,0x22,0x00,0x00,0x11,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x73,0x68,
0x6f,0x72,0x74,0x63,0x75,0x74,0x2e,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,
0x64,0x2e,0x6e,0x61,0x6d,0x65,0x2e,0x00,0x00,0x1f,0x6d,0x72,0x75,0x62,0x79,0x3a,
0x65,0x76,0x61,0x6c,0x20,0x53,0x63,0x69,0x54,0x45,0x2e,0x63,0x61,0x6c,0x6c,0x5f,
0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x20,0x27,0x00,0x00,0x01,0x27,0x00,0x00,0x03,
0x2c,0x20,0x27,0x00,0x00,0x08,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x00,0x00,
0x01,0x33,0x00,0x00,0x12,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x73,0x75,0x62,
0x73,0x79,0x73,0x74,0x65,0x6d,0x2e,0x00,0x00,0x0d,0x73,0x61,0x76,0x65,0x62,0x65,
0x66,0x6f,0x72,0x65,0x3a,0x6e,0x6f,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,
0x64,0x2e,0x6d,0x6f,0x64,0x65,0x2e,0x00,0x00,0x00,0x0b,0x00,0x09,0x40,0x6d,0x65,
0x6e,0x75,0x5f,0x69,0x64,0x78,0x00,0x00,0x04,0x65,0x61,0x63,0x68,0x00,0x00,0x0f,
0x40,0x73,0x68,0x6f,0x72,0x74,0x63,0x75,0x74,0x73,0x5f,0x75,0x73,0x65,0x64,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x05,0x72,0x61,0x69,0x73,
0x65,0x00,0x00,0x05,0x50,0x72,0x6f,0x70,0x73,0x00,0x00,0x03,0x5b,0x5d,0x3d,0x00,
0x00,0x01,0x2b,0x00,0x00,0x09,0x40,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x73,0x00,
0x00,0x02,0x3d,0x3d,0x00,0x00,0x00,0x00,0x8f,0x00,0x01,0x00,0x05,0x00,0x00,0x00,
0x00,0x00,0x13,0x00,0x26,0x00,0x00,0x02,0x16,0xc0,0x81,0x00,0x11,0x00,0x00,0x01,
0x3d,0x00,0x80,0x01,0x15,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x00,0x00,0x02,
0x3e,0x00,0x81,0x01,0x15,0x80,0x00,0x02,0x3e,0x00,0x81,0x01,0xa0,0x40,0x00,0x01,
0x15,0x40,0x80,0x01,0xb2,0x80,0x00,0x01,0x99,0x01,0x40,0x01,0x15,0xc0,0x01,0x01,
0x16,0x80,0x01,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,0x29,0x00,0x00,0x01,
0x00,0x00,0x00,0x03,0x00,0x00,0x0d,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x2e,0x6e,
0x61,0x6d,0x65,0x2e,0x00,0x00,0x01,0x2e,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,
0x05,0x50,0x72,0x6f,0x70,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,
0x00,0x00,0x00,0x00,0xaf,0x00,0x06,0x00,0x0a,0x00,0x01,0x00,0x00,0x00,0x1a,0x00,
0x26,0x00,0x00,0x04,0x11,0x00,0x00,0x02,0x01,0x40,0x00,0x03,0x3d,0x00,0x80,0x03,
0xa0,0x40,0x00,0x03,0x01,0x80,0x81,0x02,0x83,0xff,0xbf,0x03,0x83,0xfe,0x3f,0x04,
0x41,0xc0,0x81,0x03,0xa0,0x80,0x00,0x03,0x40,0x01,0x80,0x03,0x21,0xc0,0x00,0x03,
0x99,0x03,0x40,0x01,0x01,0x00,0x01,0x03,0x01,0x40,0x81,0x03,0x03,0xff,0x3f,0x04,
0xa0,0x80,0x80,0x03,0x01,0x80,0x00,0x04,0x20,0x01,0x01,0x03,0x97,0x02,0x40,0x00,
0x01,0x00,0x01,0x03,0x01,0x40,0x81,0x03,0x03,0xff,0x3f,0x04,0xa0,0x80,0x80,0x03,
0xa0,0x00,0x01,0x03,0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x01,0x00,0x00,0x02,0x3a,
0x3a,0x00,0x00,0x00,0x05,0x00,0x06,0x4f,0x62,0x6a,0x65,0x63,0x74,0x00,0x00,0x05,
0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x65,0x61,0x63,
0x68,0x00,0x00,0x08,0x5f,0x5f,0x73,0x65,0x6e,0x64,0x5f,0x5f,0x00,0x00,0x00,0x00,
0x3e,0x00,0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x26,0x00,0x00,0x02,
0x15,0x00,0x81,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x16,0x00,0x81,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x09,0x63,0x6f,
0x6e,0x73,0x74,0x5f,0x67,0x65,0x74,0x00,0x00,0x00,0x00,0x61,0x00,0x03,0x00,0x06,
0x00,0x01,0x00,0x00,0x00,0x0b,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x01,
0x91,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x01,0xc0,0x01,0x01,0x40,0x80,0x01,
0xb7,0xc0,0x80,0x00,0x01,0x40,0x80,0x01,0x40,0x01,0x00,0x02,0x21,0x80,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x08,0x6b,0x69,
0x6e,0x64,0x5f,0x6f,0x66,0x3f,0x00,0x00,0x06,0x53,0x74,0x72,0x69,0x6e,0x67,0x00,
0x00,0x04,0x65,0x61,0x63,0x68,0x00,0x00,0x00,0x00,0x9c,0x00,0x07,0x00,0x0e,0x00,
0x01,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x03,
0x3d,0x00,0x00,0x04,0xa0,0x00,0x80,0x03,0x3a,0xc0,0x81,0x01,0xba,0xc0,0x01,0x02,
0x3a,0xc1,0x81,0x02,0xba,0xc1,0x01,0x03,0x99,0x00,0x40,0x03,0x17,0x01,0x40,0x00,
0x01,0x40,0x01,0x03,0xbd,0x00,0x80,0x02,0x06,0x00,0x80,0x03,0x01,0xc0,0x00,0x04,
0x01,0x40,0x81,0x04,0x01,0x80,0x01,0x05,0x01,0x00,0x81,0x05,0x20,0x00,0x80,0x05,
0x03,0x00,0x40,0x06,0xa0,0x80,0x80,0x05,0x40,0x01,0x00,0x06,0x21,0x42,0x80,0x03,
0x29,0x00,0x80,0x03,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x7c,0x00,0x00,0x01,0x2a,
0x00,0x00,0x00,0x03,0x00,0x05,0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x0e,0x64,0x65,
0x66,0x69,0x6e,0x65,0x5f,0x63,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x00,0x00,0x53,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x09,
0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x15,0x00,0x01,0x02,0x20,0x40,0x00,0x02,
0x83,0xff,0xbf,0x02,0xa0,0x80,0x00,0x02,0x01,0x40,0x80,0x02,0x20,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x05,0x73,0x65,
0x6e,0x64,0x32,0x00,0x00,0x05,0x73,0x70,0x6c,0x69,0x74,0x00,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x00,0x00,0xc1,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,
0xa6,0x00,0x10,0x02,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x00,0x01,
0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xa0,0x40,0x00,0x02,0x98,0x02,0x40,0x02,
0x37,0x00,0x01,0x02,0x0d,0x00,0x80,0x02,0x01,0x40,0x00,0x03,0x01,0x00,0x81,0x03,
0x20,0x81,0x80,0x02,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xa0,0x40,0x00,0x02,
0x04,0x02,0x80,0x02,0x01,0xc0,0x00,0x03,0x84,0x02,0x80,0x03,0x01,0x80,0x00,0x04,
0x3f,0x41,0x81,0x02,0xa0,0xc0,0x00,0x02,0x0d,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0xa0,0x40,0x00,0x02,0x20,0x80,0x01,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x03,0x5b,0x5d,0x3d,
0x00,0x00,0x02,0x3c,0x3c,0x00,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x00,0x06,
0x72,0x65,0x6d,0x6f,0x76,0x65,0x00,0x00,0x05,0x75,0x6e,0x69,0x71,0x21,0x00,0x00,
0x00,0x00,0x6b,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,
0x49,0x4e,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x00,0x00,0x6b,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x12,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,0x42,0x4c,0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,
0x00,0x00,0x00,0x00,0x6e,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x15,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,
0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x4c,0x45,0x46,0x54,0x00,0x00,0x00,0x00,0x71,
0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x18,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,
0x4e,0x54,0x5f,0x52,0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x00,0x00,0x63,0x00,
0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x00,0x00,0x00,0x00,
0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,
0x49,0x4c,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,
0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,
0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,
0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,
0x53,0x41,0x56,0x45,0x5f,0x42,0x45,0x46,0x4f,0x52,0x45,0x00,0x00,0x00,0x00,0x63,
0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,
0x68,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0xa6,0x00,0x10,0x00,
0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,
0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,
0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,
0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,
0x00,0x0f,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,0x41,0x54,0x45,0x5f,0x55,
0x49,0x00,0x00,0x00,0x00,0x63,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,
0x00,0x00,0x00,0x00,0x62,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x09,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,
0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x57,0x45,0x4c,
0x4c,0x5f,0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x00,0x00,0x64,0x00,0x03,0x00,0x07,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x0b,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,
0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,
0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,
0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,
0x4f,0x52,0x5f,0x4c,0x49,0x4e,0x45,0x00,0x00,0x00,0x00,0x6a,0x00,0x03,0x00,0x07,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0xa6,0x00,0x10,0x00,0x97,0x00,0x40,0x00,
0x97,0x00,0x40,0x00,0x08,0x00,0x80,0x00,0x06,0x00,0x80,0x01,0x91,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0x01,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x00,0x00,0x11,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x4f,0x55,0x54,0x50,0x55,0x54,0x5f,0x4c,0x49,0x4e,0x45,0x00,
0x00,0x00,0x00,0xb0,0x00,0x03,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0xa6,0x00,0x00,0x02,0x37,0xc0,0x80,0x01,0x0d,0x00,0x00,0x02,0x11,0x01,0x80,0x02,
0x01,0xc0,0x00,0x03,0x20,0x41,0x00,0x02,0x99,0x02,0x40,0x01,0x06,0x00,0x80,0x01,
0x11,0x01,0x00,0x02,0x08,0x00,0x80,0x02,0x01,0x80,0x00,0x03,0x21,0xc1,0x80,0x01,
0x11,0x02,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x40,0x81,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x0f,0x40,0x65,0x76,0x65,0x6e,0x74,
0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x03,0x5b,0x5d,0x3d,0x00,
0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,0x50,0x00,0x00,0x11,
0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,
0x72,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x11,0x73,0x74,0x72,0x69,
0x70,0x5f,0x73,0x68,0x6f,0x77,0x5f,0x69,0x6e,0x74,0x65,0x72,0x6e,0x00,0x00,0x00,
0x01,0x59,0x00,0x08,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x2e,0xa6,0x00,0x20,0x02,
0x17,0x01,0x40,0x00,0x17,0x01,0x40,0x00,0x17,0x01,0x40,0x00,0x83,0xff,0x3f,0x01,
0x03,0x06,0xc0,0x01,0x3d,0x00,0x80,0x02,0x01,0x40,0x00,0x04,0x01,0x80,0x80,0x04,
0x03,0xff,0x3f,0x05,0x41,0x40,0x82,0x04,0xa0,0x00,0x00,0x04,0x01,0x40,0x81,0x04,
0xa0,0x40,0x00,0x04,0x01,0x00,0x02,0x03,0x06,0x00,0x00,0x04,0x91,0x01,0x80,0x04,
0x07,0x00,0x00,0x05,0x01,0x00,0x81,0x05,0x21,0x81,0x00,0x04,0x11,0x02,0x00,0x04,
0x20,0x40,0x01,0x04,0x19,0x01,0x40,0x04,0x11,0x02,0x00,0x04,0x97,0x00,0x40,0x00,
0x11,0x03,0x00,0x04,0x01,0x00,0x82,0x03,0x01,0x40,0x01,0x04,0x20,0xc0,0x01,0x04,
0x83,0xff,0xbf,0x04,0xa0,0x00,0x00,0x04,0x01,0xc0,0x81,0x04,0x01,0x00,0x02,0x05,
0xa0,0x00,0x82,0x04,0x01,0xc0,0x01,0x04,0x01,0xc0,0x80,0x04,0x01,0x80,0x01,0x05,
0x20,0x41,0x02,0x04,0xbd,0x00,0x00,0x04,0x20,0xc0,0x01,0x04,0x83,0xff,0xbf,0x04,
0xa0,0x00,0x00,0x04,0x01,0xc0,0x81,0x04,0x01,0x00,0x02,0x05,0xa0,0x00,0x82,0x04,
0x29,0x00,0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,0x01,0x3b,0x00,0x00,0x01,0x20,
0x00,0x00,0x00,0x0a,0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x6a,0x6f,0x69,0x6e,0x00,
0x00,0x11,0x61,0x64,0x64,0x5f,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,
0x6c,0x65,0x72,0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x53,0x45,0x52,
0x5f,0x4c,0x49,0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,0x49,0x4f,0x4e,0x00,
0x00,0x06,0x45,0x64,0x69,0x74,0x6f,0x72,0x00,0x00,0x05,0x66,0x6f,0x63,0x75,0x73,
0x00,0x00,0x06,0x4f,0x75,0x74,0x70,0x75,0x74,0x00,0x00,0x05,0x62,0x79,0x74,0x65,
0x73,0x00,0x00,0x0f,0x61,0x75,0x74,0x6f,0x43,0x53,0x65,0x70,0x61,0x72,0x61,0x74,
0x6f,0x72,0x3d,0x00,0x00,0x0c,0x75,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,0x53,0x68,
0x6f,0x77,0x00,0x00,0x00,0x00,0x46,0x00,0x02,0x00,0x05,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x11,0x00,0x00,0x01,0x3d,0x00,0x80,0x01,
0xa0,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x08,0x46,
0x69,0x6c,0x65,0x50,0x61,0x74,0x68,0x00,0x00,0x00,0x02,0x00,0x05,0x50,0x72,0x6f,
0x70,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x00,0x01,0xd5,0x00,0x03,0x00,0x07,
0x00,0x02,0x00,0x00,0x00,0x3d,0x00,0x00,0x26,0x00,0x00,0x00,0x11,0x00,0x80,0x01,
0x04,0x01,0x00,0x02,0xa0,0x40,0x80,0x01,0x99,0x01,0xc0,0x01,0x91,0x01,0x80,0x01,
0x84,0x02,0x00,0x02,0xa0,0x00,0x81,0x01,0x19,0x19,0xc0,0x01,0x11,0x03,0x80,0x01,
0x3d,0x00,0x00,0x02,0xa0,0xc0,0x81,0x01,0x20,0x00,0x82,0x01,0x03,0x00,0x40,0x02,
0xb2,0x40,0x82,0x01,0x19,0x08,0xc0,0x01,0xbd,0x00,0x80,0x01,0x11,0x03,0x00,0x02,
0x3d,0x01,0x80,0x02,0xa0,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x01,0x00,0x02,
0x3e,0x00,0x81,0x01,0x01,0xc0,0x00,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0xa0,0x80,0x82,0x01,0x19,0x02,0xc0,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0x40,0x01,0x80,0x02,0xa1,0xc0,0x82,0x01,0x11,0x03,0x80,0x01,0x3d,0x02,0x00,0x02,
0xa0,0xc0,0x81,0x01,0x01,0xc0,0x00,0x01,0x20,0x00,0x83,0x01,0xbd,0x00,0x00,0x02,
0xb2,0x40,0x82,0x01,0x19,0x04,0xc0,0x01,0xbd,0x00,0x80,0x01,0x11,0x03,0x00,0x02,
0xbd,0x02,0x80,0x02,0xa0,0xc0,0x01,0x02,0x3e,0x00,0x81,0x01,0xbd,0x01,0x00,0x02,
0x3e,0x00,0x81,0x01,0x01,0xc0,0x00,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0xa0,0x80,0x82,0x01,0x99,0x02,0xc0,0x01,0x11,0x01,0x80,0x01,0x01,0x80,0x00,0x02,
0x40,0x03,0x80,0x02,0xa1,0xc0,0x82,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x80,0x01,
0x97,0x00,0x40,0x00,0x05,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x06,
0x00,0x00,0x08,0x50,0x4c,0x41,0x54,0x5f,0x57,0x49,0x4e,0x00,0x00,0x00,0x00,0x00,
0x10,0x53,0x63,0x69,0x74,0x65,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x48,0x6f,0x6d,
0x65,0x00,0x00,0x0c,0x2f,0x73,0x63,0x69,0x74,0x65,0x5f,0x6d,0x72,0x75,0x62,0x79,
0x00,0x00,0x13,0x65,0x78,0x74,0x2e,0x6d,0x72,0x75,0x62,0x79,0x2e,0x64,0x69,0x72,
0x65,0x63,0x74,0x6f,0x72,0x79,0x00,0x00,0x0d,0x53,0x63,0x69,0x74,0x65,0x55,0x73,
0x65,0x72,0x48,0x6f,0x6d,0x65,0x00,0x00,0x00,0x0d,0x00,0x06,0x4d,0x6f,0x64,0x75,
0x6c,0x65,0x00,0x00,0x0e,0x63,0x6f,0x6e,0x73,0x74,0x5f,0x64,0x65,0x66,0x69,0x6e,
0x65,0x64,0x3f,0x00,0x00,0x03,0x44,0x69,0x72,0x00,0x00,0x06,0x4b,0x65,0x72,0x6e,
0x65,0x6c,0x00,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,
0x00,0x00,0x04,0x6c,0x6f,0x61,0x64,0x00,0x00,0x05,0x50,0x72,0x6f,0x70,0x73,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x04,0x74,0x6f,0x5f,0x69,0x00,0x00,0x02,0x3d,0x3d,
0x00,0x00,0x06,0x65,0x78,0x69,0x73,0x74,0x3f,0x00,0x00,0x07,0x66,0x6f,0x72,0x65,
0x61,0x63,0x68,0x00,0x00,0x04,0x74,0x6f,0x5f,0x73,0x00,0x00,0x00,0x00,0xde,0x00,
0x04,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x1a,0x09,0x40,0x00,0x01,0x40,0x00,0x02,0x03,0xfe,0xbf,0x02,0x03,0xff,0x3f,0x03,
0x41,0x40,0x81,0x02,0xa0,0x00,0x00,0x02,0x3d,0x00,0x80,0x02,0xb2,0x40,0x00,0x02,
0x19,0x04,0x40,0x02,0x06,0x00,0x00,0x02,0x15,0x80,0x80,0x02,0xbd,0x00,0x00,0x03,
0xac,0xc0,0x80,0x02,0x01,0x40,0x00,0x03,0xac,0xc0,0x80,0x02,0xa0,0x80,0x00,0x02,
0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x02,0x17,0x06,0x40,0x00,0x1b,0x00,0x00,0x02,
0x11,0x02,0x80,0x02,0x01,0x00,0x01,0x03,0xa0,0x40,0x81,0x02,0x98,0x00,0xc0,0x02,
0x97,0x02,0x40,0x00,0x01,0x00,0x81,0x01,0x06,0x00,0x00,0x02,0x01,0xc0,0x80,0x02,
0xa0,0x80,0x01,0x02,0x17,0x01,0x40,0x00,0x1d,0x00,0x00,0x02,0x1c,0x00,0x80,0x00,
0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x03,0x2e,0x72,0x62,0x00,0x00,
0x01,0x2f,0x00,0x00,0x00,0x07,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,0x00,
0x00,0x04,0x6c,0x6f,0x61,0x64,0x00,0x00,0x01,0x2b,0x00,0x00,0x0d,0x53,0x74,0x61,
0x6e,0x64,0x61,0x72,0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,
0x00,0x00,0x04,0x70,0x75,0x74,0x73,0x00,0x00,0x00,0x00,0xde,0x00,0x04,0x00,0x08,
0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0x26,0x00,0x00,0x02,0x1a,0x09,0x40,0x00,
0x01,0x40,0x00,0x02,0x03,0xfe,0xbf,0x02,0x03,0xff,0x3f,0x03,0x41,0x40,0x81,0x02,
0xa0,0x00,0x00,0x02,0x3d,0x00,0x80,0x02,0xb2,0x40,0x00,0x02,0x19,0x04,0x40,0x02,
0x06,0x00,0x00,0x02,0x15,0x80,0x80,0x02,0xbd,0x00,0x00,0x03,0xac,0xc0,0x80,0x02,
0x01,0x40,0x00,0x03,0xac,0xc0,0x80,0x02,0xa0,0x80,0x00,0x02,0x97,0x00,0x40,0x00,
0x05,0x00,0x00,0x02,0x17,0x06,0x40,0x00,0x1b,0x00,0x00,0x02,0x11,0x02,0x80,0x02,
0x01,0x00,0x01,0x03,0xa0,0x40,0x81,0x02,0x98,0x00,0xc0,0x02,0x97,0x02,0x40,0x00,
0x01,0x00,0x81,0x01,0x06,0x00,0x00,0x02,0x01,0xc0,0x80,0x02,0xa0,0x80,0x01,0x02,
0x17,0x01,0x40,0x00,0x1d,0x00,0x00,0x02,0x1c,0x00,0x80,0x00,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x02,0x00,0x00,0x03,0x2e,0x72,0x62,0x00,0x00,0x01,0x2f,0x00,0x00,
0x00,0x07,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,0x04,0x6c,0x6f,
0x61,0x64,0x00,0x00,0x01,0x2b,0x00,0x00,0x0d,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,
0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,0x00,0x00,0x04,0x70,
0x75,0x74,0x73,0x00,0x00,0x00,0x00,0xb8,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,
0x00,0x16,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x80,0x01,0x03,0xff,0x3f,0x02,
0xa0,0x00,0x80,0x01,0x3d,0x00,0x00,0x02,0xa0,0x40,0x80,0x01,0x99,0x02,0xc0,0x01,
0x01,0x40,0x80,0x01,0x03,0xff,0x3f,0x02,0xa0,0x00,0x80,0x01,0xbd,0x00,0x00,0x02,
0xa0,0x40,0x80,0x01,0x99,0x03,0xc0,0x01,0x06,0x00,0x80,0x01,0x06,0x00,0x00,0x02,
0x20,0xc0,0x00,0x02,0x11,0x02,0x80,0x02,0xa0,0x00,0x00,0x02,0x01,0x40,0x80,0x02,
0x20,0x81,0x80,0x01,0x08,0x00,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x02,
0x00,0x00,0x01,0x5c,0x00,0x00,0x01,0x2f,0x00,0x00,0x00,0x05,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,
0x45,0x4e,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x00,0x00,0x00,0x00,0xcd,0x00,0x06,
0x00,0x0a,0x00,0x00,0x00,0x00,0x00,0x1b,0x26,0x00,0x00,0x02,0x01,0x40,0x00,0x03,
0x20,0x00,0x00,0x03,0x01,0x80,0x81,0x01,0x01,0x40,0x00,0x03,0x01,0xc0,0x80,0x03,
0xa0,0x40,0x00,0x03,0xaf,0x80,0x00,0x03,0x01,0x80,0x01,0x02,0x01,0x40,0x00,0x03,
0x20,0xc0,0x00,0x03,0x83,0xff,0xbf,0x03,0xb2,0x00,0x01,0x03,0x19,0x01,0x40,0x03,
0x03,0x01,0x40,0x03,0x97,0x00,0x40,0x00,0x83,0x00,0x40,0x03,0x01,0x80,0x81,0x02,
0x01,0x40,0x00,0x03,0x01,0x00,0x81,0x03,0xa0,0x40,0x01,0x03,0x83,0xff,0xbf,0x03,
0x01,0x40,0x01,0x04,0x20,0xc0,0x01,0x04,0x41,0xc0,0x81,0x03,0xa0,0x80,0x01,0x03,
0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x0a,0x63,0x75,
0x72,0x72,0x65,0x6e,0x74,0x50,0x6f,0x73,0x00,0x00,0x10,0x6c,0x69,0x6e,0x65,0x46,
0x72,0x6f,0x6d,0x50,0x6f,0x73,0x69,0x74,0x69,0x6f,0x6e,0x00,0x00,0x01,0x2d,0x00,
0x00,0x07,0x45,0x4f,0x4c,0x4d,0x6f,0x64,0x65,0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,
0x07,0x67,0x65,0x74,0x4c,0x69,0x6e,0x65,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x02,
0x2d,0x40,0x00,0x00,0x00,0x01,0xb1,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,
0x41,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x01,0x40,0x00,0x02,0x3d,0x00,0x80,0x02,
0xa0,0x00,0x00,0x02,0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,
0x91,0x00,0x00,0x02,0x20,0x80,0x00,0x02,0x01,0x00,0x81,0x01,0x99,0x0d,0x40,0x02,
0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,0x91,0x02,0x80,0x02,0xa0,0x00,0x01,0x02,
0x20,0x80,0x01,0x02,0x98,0x03,0x40,0x02,0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,
0x91,0x02,0x80,0x02,0xa0,0x00,0x01,0x02,0x20,0xc0,0x01,0x02,0x83,0xff,0xbf,0x02,
0xb2,0x00,0x02,0x02,0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,
0x06,0x00,0x00,0x02,0x06,0x00,0x80,0x02,0x20,0xc0,0x80,0x02,0x91,0x02,0x00,0x03,
0xa0,0x00,0x81,0x02,0x06,0x00,0x00,0x03,0x91,0x00,0x80,0x03,0xa0,0x80,0x02,0x03,
0x20,0x41,0x02,0x02,0x08,0x00,0x00,0x02,0x17,0x0d,0x40,0x00,0x06,0x00,0x00,0x02,
0x20,0xc0,0x00,0x02,0x91,0x05,0x80,0x02,0xa0,0x00,0x01,0x02,0x20,0x80,0x01,0x02,
0x98,0x03,0x40,0x02,0x06,0x00,0x00,0x02,0x20,0xc0,0x00,0x02,0x91,0x05,0x80,0x02,
0xa0,0x00,0x01,0x02,0x20,0xc0,0x01,0x02,0x83,0xff,0xbf,0x02,0xb2,0x00,0x02,0x02,
0x19,0x01,0x40,0x02,0x08,0x00,0x00,0x02,0x29,0x00,0x00,0x02,0x06,0x00,0x00,0x02,
0x06,0x00,0x80,0x02,0x20,0xc0,0x80,0x02,0x91,0x05,0x00,0x03,0xa0,0x00,0x81,0x02,
0x06,0x00,0x00,0x03,0x11,0x06,0x80,0x03,0xa0,0x80,0x02,0x03,0x20,0x41,0x02,0x02,
0x07,0x00,0x00,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x01,0x00,0x00,0x01,0x0a,
0x00,0x00,0x00,0x0d,0x00,0x02,0x21,0x3d,0x00,0x00,0x06,0x45,0x64,0x69,0x74,0x6f,
0x72,0x00,0x00,0x05,0x66,0x6f,0x63,0x75,0x73,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,
0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,
0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x45,0x44,0x49,0x54,0x4f,0x52,0x5f,0x4c,
0x49,0x4e,0x45,0x00,0x00,0x01,0x21,0x00,0x00,0x06,0x6c,0x65,0x6e,0x67,0x74,0x68,
0x00,0x00,0x02,0x3d,0x3d,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x67,0x72,0x61,0x62,0x5f,0x6c,0x69,0x6e,0x65,
0x5f,0x66,0x72,0x6f,0x6d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x55,
0x54,0x50,0x55,0x54,0x5f,0x4c,0x49,0x4e,0x45,0x00,0x00,0x06,0x4f,0x75,0x74,0x70,
0x75,0x74,0x00,0x00,0x00,0x01,0x69,0x00,0x01,0x00,0x05,0x00,0x00,0x00,0x00,0x00,
0x1d,0x00,0x00,0x00,0x06,0x00,0x80,0x00,0x84,0x00,0x00,0x01,0x04,0x01,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x01,0x00,0x01,0x04,0x02,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x02,0x00,0x01,0x04,0x03,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x03,0x00,0x01,0x04,0x04,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x04,0x00,0x01,0x04,0x05,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x05,0x00,0x01,0x04,0x06,0x80,0x01,
0x20,0x01,0x80,0x00,0x06,0x00,0x80,0x00,0x84,0x06,0x00,0x01,0x04,0x07,0x80,0x01,
0x20,0x01,0x80,0x00,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,
0x00,0x0c,0x61,0x6c,0x69,0x61,0x73,0x5f,0x6d,0x65,0x74,0x68,0x6f,0x64,0x00,0x00,
0x0c,0x73,0x74,0x61,0x72,0x74,0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0d,
0x73,0x74,0x61,0x72,0x74,0x5f,0x73,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0a,
0x65,0x6e,0x64,0x53,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0b,0x65,0x6e,0x64,
0x5f,0x73,0x74,0x79,0x6c,0x69,0x6e,0x67,0x00,0x00,0x0b,0x61,0x74,0x4c,0x69,0x6e,
0x65,0x53,0x74,0x61,0x72,0x74,0x00,0x00,0x0d,0x61,0x74,0x5f,0x6c,0x69,0x6e,0x65,
0x5f,0x73,0x74,0x61,0x72,0x74,0x00,0x00,0x09,0x61,0x74,0x4c,0x69,0x6e,0x65,0x45,
0x6e,0x64,0x00,0x00,0x0b,0x61,0x74,0x5f,0x6c,0x69,0x6e,0x65,0x5f,0x65,0x6e,0x64,
0x00,0x00,0x08,0x73,0x65,0x74,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x09,0x73,0x65,
0x74,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x0f,0x66,0x6f,0x72,0x77,0x61,0x72,
0x64,0x53,0x65,0x74,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x11,0x66,0x6f,0x72,0x77,
0x61,0x72,0x64,0x5f,0x73,0x65,0x74,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x0b,
0x63,0x68,0x61,0x6e,0x67,0x65,0x53,0x74,0x61,0x74,0x65,0x00,0x00,0x0c,0x63,0x68,
0x61,0x6e,0x67,0x65,0x5f,0x73,0x74,0x61,0x74,0x65,0x00,0x00,0x00,0x00,0x41,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,
0x66,0x65,0x72,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x00,0x00,0x00,0x00,0x41,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x10,0x6f,0x6e,0x5f,0x62,0x75,0x66,
0x66,0x65,0x72,0x5f,0x73,0x77,0x69,0x74,0x63,0x68,0x00,0x00,0x00,0x00,0x3d,0x00,
0x03,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x00,0x00,0x26,0x00,0x00,0x02,
0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x00,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x0c,0x6f,0x6e,0x5f,0x6c,0x69,0x6e,
0x65,0x5f,0x63,0x68,0x61,0x72,0x00,0x00,0x00,0x00,0xba,0x00,0x02,0x00,0x06,0x00,
0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,
0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,
0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,
0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,
0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0d,
0x6f,0x6e,0x4d,0x61,0x72,0x67,0x69,0x6e,0x43,0x6c,0x69,0x63,0x6b,0x00,0x00,0x05,
0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,
0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,
0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x12,0x45,0x56,0x45,
0x4e,0x54,0x5f,0x4d,0x41,0x52,0x47,0x49,0x4e,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,
0x00,0x00,0x00,0xba,0x00,0x02,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,
0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,
0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,
0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0d,0x6f,0x6e,0x44,0x6f,0x75,0x62,0x6c,0x65,
0x43,0x6c,0x69,0x63,0x6b,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,
0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,
0x5b,0x5d,0x00,0x00,0x12,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x4f,0x55,0x42,0x4c,
0x45,0x5f,0x43,0x4c,0x49,0x43,0x4b,0x00,0x00,0x00,0x00,0xbf,0x00,0x02,0x00,0x06,
0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,
0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,
0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,
0x20,0x00,0x81,0x01,0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,
0xa0,0xc0,0x00,0x01,0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0f,
0x6f,0x6e,0x53,0x61,0x76,0x65,0x50,0x6f,0x69,0x6e,0x74,0x4c,0x65,0x66,0x74,0x00,
0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,
0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,
0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x15,0x45,
0x56,0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,
0x4c,0x45,0x46,0x54,0x00,0x00,0x00,0x00,0xc5,0x00,0x02,0x00,0x06,0x00,0x00,0x00,
0x00,0x00,0x10,0x00,0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,
0xa0,0x00,0x00,0x01,0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,
0x29,0x00,0x00,0x01,0x11,0x01,0x00,0x01,0x11,0x01,0x80,0x01,0x20,0x00,0x81,0x01,
0x11,0x01,0x00,0x02,0x13,0x03,0x00,0x02,0xa0,0x40,0x81,0x01,0xa0,0xc0,0x00,0x01,
0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x12,0x6f,0x6e,0x53,0x61,
0x76,0x65,0x50,0x6f,0x69,0x6e,0x74,0x52,0x65,0x61,0x63,0x68,0x65,0x64,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x18,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x5f,0x50,0x4f,0x49,0x4e,0x54,0x5f,0x52,
0x45,0x41,0x43,0x48,0x45,0x44,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,0x07,0x00,
0x00,0x00,0x00,0x00,0x12,0x00,0x00,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,0x6f,0x6e,0x43,0x68,0x61,0x72,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x43,0x48,0x41,0x52,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,0x6f,0x6e,0x53,0x61,0x76,0x65,0x00,0x00,
0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,
0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,
0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,
0x45,0x4e,0x54,0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,0xc0,0x00,0x03,0x00,
0x07,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,
0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,
0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,
0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,
0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x42,0x65,0x66,0x6f,0x72,0x65,
0x53,0x61,0x76,0x65,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,
0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x42,0x45,0x46,0x4f,0x52,0x45,
0x5f,0x53,0x41,0x56,0x45,0x00,0x00,0x00,0x00,0xc0,0x00,0x03,0x00,0x07,0x00,0x00,
0x00,0x00,0x00,0x12,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,
0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,
0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,
0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,
0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x53,0x77,0x69,0x74,0x63,0x68,0x46,0x69,0x6c,0x65,
0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,
0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,
0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x11,
0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x57,0x49,0x54,0x43,0x48,0x5f,0x46,0x49,0x4c,
0x45,0x00,0x00,0x00,0x00,0xb3,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x12,
0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,0xa0,0x00,0x80,0x01,
0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0x40,0x80,0x01,
0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,0x20,0x00,0x01,0x02,
0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,0x01,0x40,0x80,0x02,
0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x06,
0x6f,0x6e,0x4f,0x70,0x65,0x6e,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,
0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,
0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,
0x02,0x5b,0x5d,0x00,0x00,0x0a,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4f,0x50,0x45,0x4e,
0x00,0x00,0x00,0x00,0xd9,0x00,0x02,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x15,0x00,
0x26,0x00,0x00,0x00,0x06,0x00,0x00,0x01,0x84,0x00,0x80,0x01,0xa0,0x00,0x00,0x01,
0x99,0x01,0x40,0x01,0x06,0x00,0x00,0x01,0x20,0x40,0x00,0x01,0x29,0x00,0x00,0x01,
0x11,0x01,0x00,0x01,0x20,0xc0,0x00,0x01,0x19,0x04,0x40,0x01,0x11,0x02,0x00,0x01,
0x11,0x02,0x80,0x01,0x20,0x80,0x81,0x01,0x11,0x02,0x00,0x02,0x13,0x04,0x00,0x02,
0xa0,0xc0,0x81,0x01,0xa0,0x40,0x01,0x01,0x97,0x00,0x40,0x00,0x05,0x00,0x00,0x01,
0x29,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0a,0x6f,0x6e,0x55,0x70,
0x64,0x61,0x74,0x65,0x55,0x49,0x00,0x00,0x06,0x45,0x64,0x69,0x74,0x6f,0x72,0x00,
0x00,0x05,0x66,0x6f,0x63,0x75,0x73,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,
0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,
0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,
0x00,0x02,0x5b,0x5d,0x00,0x00,0x0f,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x50,0x44,
0x41,0x54,0x45,0x5f,0x55,0x49,0x00,0x00,0x00,0x00,0xc9,0x00,0x06,0x00,0x0d,0x00,
0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x26,0x00,0x00,0x08,0x06,0x00,0x00,0x03,
0x84,0x00,0x80,0x03,0xa0,0x00,0x00,0x03,0x99,0x03,0x40,0x03,0x06,0x00,0x00,0x03,
0x01,0x40,0x80,0x03,0x01,0x80,0x00,0x04,0x01,0xc0,0x80,0x04,0x01,0x00,0x01,0x05,
0x20,0x42,0x00,0x03,0x29,0x00,0x00,0x03,0x11,0x01,0x00,0x03,0x11,0x01,0x80,0x03,
0x20,0x00,0x81,0x03,0x11,0x01,0x00,0x04,0x13,0x03,0x00,0x04,0xa0,0x40,0x81,0x03,
0x01,0x40,0x00,0x04,0x01,0x80,0x80,0x04,0x01,0xc0,0x00,0x05,0x01,0x00,0x81,0x05,
0xa0,0xc2,0x00,0x03,0x29,0x00,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x05,
0x6f,0x6e,0x4b,0x65,0x79,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,
0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,
0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,
0x5b,0x5d,0x00,0x00,0x09,0x45,0x56,0x45,0x4e,0x54,0x5f,0x4b,0x45,0x59,0x00,0x00,
0x00,0x00,0xc8,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,
0x26,0x00,0x00,0x04,0x06,0x00,0x00,0x02,0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,
0x99,0x02,0x40,0x02,0x06,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,
0x20,0x41,0x00,0x02,0x29,0x00,0x00,0x02,0x11,0x01,0x00,0x02,0x11,0x01,0x80,0x02,
0x20,0x00,0x81,0x02,0x11,0x01,0x00,0x03,0x13,0x03,0x00,0x03,0xa0,0x40,0x81,0x02,
0x01,0x40,0x00,0x03,0x01,0x80,0x80,0x03,0xa0,0xc1,0x00,0x02,0x29,0x00,0x00,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,
0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x0c,0x6f,0x6e,0x44,0x77,0x65,0x6c,0x6c,0x53,
0x74,0x61,0x72,0x74,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,
0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,
0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,
0x5d,0x00,0x00,0x11,0x45,0x56,0x45,0x4e,0x54,0x5f,0x44,0x57,0x45,0x4c,0x4c,0x5f,
0x53,0x54,0x41,0x52,0x54,0x00,0x00,0x00,0x00,0xb5,0x00,0x03,0x00,0x07,0x00,0x00,
0x00,0x00,0x00,0x12,0x26,0x00,0x00,0x02,0x06,0x00,0x80,0x01,0x84,0x00,0x00,0x02,
0xa0,0x00,0x80,0x01,0x19,0x02,0xc0,0x01,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,
0xa0,0x40,0x80,0x01,0x29,0x00,0x80,0x01,0x11,0x01,0x80,0x01,0x11,0x01,0x00,0x02,
0x20,0x00,0x01,0x02,0x11,0x01,0x80,0x02,0x13,0x03,0x80,0x02,0xa0,0x40,0x01,0x02,
0x01,0x40,0x80,0x02,0x20,0xc1,0x80,0x01,0x29,0x00,0x80,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x07,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x07,0x6f,0x6e,0x43,0x6c,0x6f,0x73,0x65,0x00,0x00,0x05,0x53,0x63,
0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,
0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,
0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,
0x5f,0x43,0x4c,0x4f,0x53,0x45,0x00,0x00,0x00,0x00,0xd7,0x00,0x04,0x00,0x09,0x00,
0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x26,0x00,0x00,0x04,0x06,0x00,0x00,0x02,
0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,0x99,0x02,0x40,0x02,0x06,0x00,0x00,0x02,
0x01,0x40,0x80,0x02,0x01,0x80,0x00,0x03,0x20,0x41,0x00,0x02,0x29,0x00,0x00,0x02,
0x11,0x01,0x00,0x02,0x11,0x01,0x80,0x02,0x20,0x00,0x81,0x02,0x11,0x01,0x00,0x03,
0x13,0x03,0x00,0x03,0xa0,0x40,0x81,0x02,0x01,0x80,0x00,0x03,0x01,0x40,0x80,0x03,
0xa0,0xc1,0x00,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,
0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x13,
0x6f,0x6e,0x55,0x73,0x65,0x72,0x4c,0x69,0x73,0x74,0x53,0x65,0x6c,0x65,0x63,0x74,
0x69,0x6f,0x6e,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,
0x73,0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,
0x6e,0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,
0x00,0x00,0x19,0x45,0x56,0x45,0x4e,0x54,0x5f,0x55,0x53,0x45,0x52,0x5f,0x4c,0x49,
0x53,0x54,0x5f,0x53,0x45,0x4c,0x45,0x43,0x54,0x49,0x4f,0x4e,0x00,0x00,0x00,0x00,
0xc4,0x00,0x04,0x00,0x09,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x26,0x00,0x00,0x04,
0x06,0x00,0x00,0x02,0x84,0x00,0x80,0x02,0xa0,0x00,0x00,0x02,0x99,0x02,0x40,0x02,
0x06,0x00,0x00,0x02,0x06,0x00,0x80,0x02,0x20,0x80,0x80,0x02,0xa0,0x40,0x00,0x02,
0x29,0x00,0x00,0x02,0x91,0x01,0x00,0x02,0x91,0x01,0x80,0x02,0x20,0x40,0x81,0x02,
0x91,0x01,0x00,0x03,0x93,0x03,0x00,0x03,0xa0,0x80,0x81,0x02,0x01,0x40,0x00,0x03,
0x01,0x80,0x80,0x03,0xa0,0x01,0x01,0x02,0x29,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x0b,0x72,0x65,0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,
0x3f,0x00,0x00,0x07,0x6f,0x6e,0x53,0x74,0x72,0x69,0x70,0x00,0x00,0x04,0x66,0x69,
0x6c,0x65,0x00,0x00,0x05,0x53,0x63,0x69,0x54,0x45,0x00,0x00,0x0c,0x64,0x69,0x73,
0x70,0x61,0x74,0x63,0x68,0x5f,0x6f,0x6e,0x65,0x00,0x00,0x0e,0x65,0x76,0x65,0x6e,
0x74,0x5f,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x00,0x02,0x5b,0x5d,0x00,
0x00,0x0b,0x45,0x56,0x45,0x4e,0x54,0x5f,0x53,0x54,0x52,0x49,0x50,0x00,0x00,0x00,
0x01,0xa9,0x00,0x03,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x31,0x11,0x00,0x80,0x01,
0x20,0x40,0x80,0x01,0x3d,0x00,0x00,0x02,0xa0,0x80,0x80,0x01,0x19,0x02,0xc0,0x01,
0x91,0x01,0x80,0x01,0x91,0x02,0x00,0x02,0xad,0x8b,0x01,0x02,0xa0,0x00,0x81,0x01,
0x11,0x00,0x80,0x01,0x20,0xc0,0x81,0x01,0x20,0x00,0x82,0x01,0x99,0x01,0xc0,0x01,
0x91,0x04,0x80,0x01,0x84,0x05,0x00,0x02,0xa0,0x80,0x82,0x01,0x99,0x0d,0xc0,0x01,
0x91,0x01,0x80,0x01,0x20,0x00,0x83,0x01,0x01,0xc0,0x80,0x00,0x06,0x00,0x80,0x01,
0xbd,0x00,0x00,0x02,0x01,0x40,0x80,0x02,0xac,0x80,0x01,0x02,0xa0,0x40,0x83,0x01,
0x1a,0x02,0x40,0x00,0x06,0x00,0x80,0x01,0x01,0x40,0x00,0x02,0xa0,0xc0,0x82,0x01,
0x17,0x06,0x40,0x00,0x1b,0x00,0x80,0x01,0x11,0x07,0x00,0x02,0x01,0xc0,0x80,0x02,
0xa0,0xc0,0x03,0x02,0x98,0x00,0x40,0x02,0x97,0x02,0x40,0x00,0x01,0xc0,0x00,0x01,
0x06,0x00,0x80,0x01,0x01,0x80,0x00,0x02,0xa0,0x00,0x84,0x01,0x17,0x01,0x40,0x00,
0x1d,0x00,0x80,0x01,0x1c,0x00,0x80,0x00,0x17,0x02,0x40,0x00,0x06,0x00,0x80,0x01,
0x11,0x00,0x00,0x02,0x20,0x80,0x04,0x02,0xa0,0x40,0x84,0x01,0x29,0x00,0x80,0x01,
0x00,0x00,0x00,0x02,0x00,0x00,0x04,0x72,0x75,0x62,0x79,0x00,0x00,0x0b,0x4c,0x6f,
0x61,0x64,0x69,0x6e,0x67,0x2e,0x2e,0x2e,0x20,0x00,0x00,0x00,0x13,0x00,0x06,0x45,
0x64,0x69,0x74,0x6f,0x72,0x00,0x00,0x0e,0x6c,0x65,0x78,0x65,0x72,0x5f,0x6c,0x61,
0x6e,0x67,0x75,0x61,0x67,0x65,0x00,0x00,0x02,0x21,0x3d,0x00,0x00,0x05,0x53,0x63,
0x69,0x54,0x45,0x00,0x00,0x0c,0x6d,0x65,0x6e,0x75,0x5f,0x63,0x6f,0x6d,0x6d,0x61,
0x6e,0x64,0x00,0x00,0x0c,0x49,0x44,0x4d,0x5f,0x4c,0x41,0x4e,0x47,0x55,0x41,0x47,
0x45,0x00,0x00,0x01,0x2b,0x00,0x00,0x06,0x6d,0x6f,0x64,0x69,0x66,0x79,0x00,0x00,
0x01,0x21,0x00,0x00,0x06,0x4b,0x65,0x72,0x6e,0x65,0x6c,0x00,0x00,0x0b,0x72,0x65,
0x73,0x70,0x6f,0x6e,0x64,0x5f,0x74,0x6f,0x3f,0x00,0x00,0x04,0x6c,0x6f,0x61,0x64,
0x00,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,0x65,0x00,
0x00,0x04,0x70,0x75,0x74,0x73,0x00,0x00,0x0d,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,
0x64,0x45,0x72,0x72,0x6f,0x72,0x00,0x00,0x03,0x3d,0x3d,0x3d,0x00,0x00,0x01,0x70,
0x00,0x00,0x04,0x65,0x76,0x61,0x6c,0x00,0x00,0x08,0x67,0x65,0x74,0x5f,0x74,0x65,
0x78,0x74,0x00,0x44,0x42,0x47,0x00,0x00,0x00,0x0f,0x30,0x00,0x01,0x00,0x09,0x65,
0x78,0x74,0x6d,0x61,0x6e,0x2e,0x72,0x62,0x00,0x00,0x00,0x83,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x01,
0x16,0x01,0x16,0x01,0x16,0x01,0x1a,0x01,0x1a,0x01,0x1a,0x01,0x1e,0x01,0x1e,0x01,
0x1e,0x01,0x22,0x01,0x22,0x01,0x22,0x01,0x26,0x01,0x26,0x01,0x26,0x01,0x2a,0x01,
0x2a,0x01,0x2a,0x01,0x2e,0x01,0x2e,0x01,0x2e,0x01,0x32,0x01,0x32,0x01,0x32,0x01,
0x36,0x01,0x36,0x01,0x36,0x01,0x3a,0x01,0x3a,0x01,0x3a,0x01,0x40,0x01,0x40,0x01,
0x40,0x01,0x44,0x01,0x44,0x01,0x44,0x01,0x48,0x01,0x48,0x01,0x48,0x01,0x4c,0x01,
0x4c,0x01,0x4c,0x01,0x50,0x01,0x50,0x01,0x50,0x01,0x55,0x01,0x55,0x01,0x57,0x01,
0x57,0x01,0x57,0x01,0x57,0x01,0x66,0x01,0x66,0x01,0x66,0x00,0x00,0x00,0x8b,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,0x00,0x04,0x00,0x04,
0x00,0x05,0x00,0x05,0x00,0x06,0x00,0x06,0x00,0x07,0x00,0x07,0x00,0x08,0x00,0x08,
0x00,0x09,0x00,0x09,0x00,0x0a,0x00,0x0a,0x00,0x0b,0x00,0x0b,0x00,0x0c,0x00,0x0c,
0x00,0x0d,0x00,0x0d,0x00,0x0e,0x00,0x0e,0x00,0x0f,0x00,0x0f,0x00,0x10,0x00,0x10,
0x00,0x11,0x00,0x11,0x00,0x12,0x00,0x12,0x00,0x13,0x00,0x13,0x00,0x14,0x00,0x14,
0x00,0x15,0x00,0x15,0x00,0x17,0x00,0x17,0x00,0x18,0x00,0x18,0x00,0x19,0x00,0x19,
0x00,0x1a,0x00,0x1a,0x00,0x1c,0x00,0x1c,0x00,0x1c,0x01,0x06,0x01,0x06,0x01,0x06,
0x01,0x06,0x01,0x10,0x01,0x10,0x01,0x10,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x12,
0x01,0x12,0x01,0x12,0x01,0x12,0x00,0x00,0x01,0xa7,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0xcb,0x00,0x00,0x1e,0x00,0x1e,0x00,0x1e,0x00,0x2a,0x00,
0x2a,0x00,0x2a,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x44,0x00,0x44,0x00,0x44,0x00,
0x4f,0x00,0x4f,0x00,0x4f,0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x63,0x00,0x63,0x00,
0x63,0x00,0x66,0x00,0x66,0x00,0x66,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x6c,0x00,
0x6c,0x00,0x6c,0x00,0x6f,0x00,0x6f,0x00,0x6f,0x00,0x72,0x00,0x72,0x00,0x72,0x00,
0x75,0x00,0x75,0x00,0x75,0x00,0x78,0x00,0x78,0x00,0x78,0x00,0x7b,0x00,0x7b,0x00,
0x7b,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x81,0x00,0x81,0x00,0x81,0x00,0x84,0x00,
0x84,0x00,0x84,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x8a,0x00,0x8a,0x00,0x8a,0x00,
0x8d,0x00,0x8d,0x00,0x8d,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x93,0x00,0x93,0x00,
0x93,0x00,0x9a,0x00,0x9a,0x00,0x9a,0x00,0xa4,0x00,0xa4,0x00,0xa4,0x00,0xa8,0x00,
0xa8,0x00,0xa8,0x00,0xc6,0x00,0xc6,0x00,0xc6,0x00,0xcd,0x00,0xcd,0x00,0xcd,0x00,
0xd5,0x00,0xd5,0x00,0xd5,0x00,0xe3,0x00,0xe3,0x00,0xe3,0x00,0xe5,0x00,0xe5,0x00,
0xe5,0x00,0xe5,0x00,0xe6,0x00,0xe6,0x00,0xe6,0x00,0xe6,0x00,0xe7,0x00,0xe7,0x00,
0xe7,0x00,0xe7,0x00,0xe8,0x00,0xe8,0x00,0xe8,0x00,0xe8,0x00,0xe9,0x00,0xe9,0x00,
0xe9,0x00,0xe9,0x00,0xea,0x00,0xea,0x00,0xea,0x00,0xea,0x00,0xeb,0x00,0xeb,0x00,
0xeb,0x00,0xeb,0x00,0xec,0x00,0xec,0x00,0xec,0x00,0xec,0x00,0xed,0x00,0xed,0x00,
0xed,0x00,0xed,0x00,0xef,0x00,0xef,0x00,0xef,0x00,0xef,0x00,0xf0,0x00,0xf0,0x00,
0xf0,0x00,0xf0,0x00,0xf1,0x00,0xf1,0x00,0xf1,0x00,0xf1,0x00,0xf3,0x00,0xf3,0x00,
0xf3,0x00,0xf3,0x00,0xf4,0x00,0xf4,0x00,0xf4,0x00,0xf4,0x00,0xf5,0x00,0xf5,0x00,
0xf5,0x00,0xf5,0x00,0xf6,0x00,0xf6,0x00,0xf6,0x00,0xf6,0x00,0xf7,0x00,0xf7,0x00,
0xf7,0x00,0xf7,0x00,0xf8,0x00,0xf8,0x00,0xf8,0x00,0xf8,0x00,0xf9,0x00,0xf9,0x00,
0xf9,0x00,0xf9,0x00,0xfa,0x00,0xfa,0x00,0xfa,0x00,0xfa,0x00,0xfb,0x00,0xfb,0x00,
0xfb,0x00,0xfb,0x00,0xfc,0x00,0xfc,0x00,0xfc,0x00,0xfc,0x00,0xfd,0x00,0xfd,0x00,
0xfd,0x00,0xfd,0x00,0xfe,0x00,0xfe,0x00,0xfe,0x00,0xfe,0x00,0xff,0x00,0xff,0x00,
0xff,0x00,0xff,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x01,0x01,0x01,0x01,
0x01,0x01,0x01,0x01,0x02,0x01,0x02,0x01,0x02,0x01,0x02,0x01,0x02,0x00,0x00,0x00,
0x1f,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x1e,
0x00,0x1f,0x00,0x20,0x00,0x21,0x00,0x21,0x00,0x21,0x00,0x27,0x00,0x00,0x00,0x45,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1a,0x00,0x00,0x21,0x00,
0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,
0x22,0x00,0x22,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x23,0x00,
0x23,0x00,0x23,0x00,0x23,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,
0x24,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0a,0x00,0x00,0x2a,0x00,0x2a,0x00,0x2a,0x00,0x2a,0x00,0x2b,0x00,0x2b,0x00,0x2b,
0x00,0x2b,0x00,0x2b,0x00,0x2b,0x00,0x00,0x00,0xe7,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x6b,0x00,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,
0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2e,0x00,0x2f,0x00,0x30,0x00,0x30,0x00,0x30,0x00,
0x30,0x00,0x30,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,0x33,0x00,
0x33,0x00,0x33,0x00,0x34,0x00,0x35,0x00,0x35,0x00,0x35,0x00,0x35,0x00,0x36,0x00,
0x36,0x00,0x36,0x00,0x36,0x00,0x36,0x00,0x37,0x00,0x37,0x00,0x37,0x00,0x37,0x00,
0x37,0x00,0x37,0x00,0x37,0x00,0x39,0x00,0x39,0x00,0x39,0x00,0x39,0x00,0x39,0x00,
0x39,0x00,0x39,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3a,0x00,0x3c,0x00,
0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3c,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,0x3d,0x00,
0x3d,0x00,0x3d,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,0x3e,0x00,
0x3e,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,0x3f,0x00,
0x40,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x40,0x00,0x41,0x00,0x41,0x00,0x41,0x00,
0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x00,0x00,
0x37,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x00,0x00,0x30,
0x00,0x30,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,
0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,0x00,0x31,
0x00,0x31,0x00,0x31,0x00,0x00,0x00,0x45,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x1a,0x00,0x00,0x44,0x00,0x45,0x00,0x46,0x00,0x46,0x00,0x46,0x00,
0x46,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x48,0x00,
0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x49,0x00,0x4b,0x00,
0x4b,0x00,0x4b,0x00,0x4b,0x00,0x4b,0x00,0x4b,0x00,0x00,0x00,0x1d,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x47,0x00,0x47,0x00,0x47,
0x00,0x47,0x00,0x47,0x00,0x47,0x00,0x00,0x00,0x27,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0b,0x00,0x00,0x4f,0x00,0x50,0x00,0x50,0x00,0x50,0x00,
0x50,0x00,0x51,0x00,0x51,0x00,0x53,0x00,0x53,0x00,0x53,0x00,0x53,0x00,0x00,0x00,
0x3f,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x00,0x00,0x53,
0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x55,
0x00,0x55,0x00,0x56,0x00,0x57,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,
0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x00,0x00,0x23,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x00,0x59,0x00,
0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,0x59,0x00,
0x00,0x00,0x47,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1b,0x00,
0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x5d,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,
0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5e,0x00,0x5f,0x00,0x5f,0x00,0x5f,
0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x5f,0x00,0x60,0x00,0x60,
0x00,0x60,0x00,0x60,0x00,0x60,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x63,0x00,0x63,0x00,0x63,0x00,0x63,0x00,
0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x64,0x00,0x00,0x00,0x25,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x66,0x00,0x66,
0x00,0x66,0x00,0x66,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,0x00,0x67,
0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,
0x00,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x69,0x00,0x6a,0x00,0x6a,0x00,0x6a,0x00,
0x6a,0x00,0x6a,0x00,0x6a,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x6c,0x00,0x6c,0x00,0x6c,0x00,0x6c,0x00,0x6d,
0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x6d,0x00,0x00,0x00,0x25,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x6f,0x00,0x6f,0x00,
0x6f,0x00,0x6f,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,0x70,0x00,
0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,
0x00,0x72,0x00,0x72,0x00,0x72,0x00,0x72,0x00,0x73,0x00,0x73,0x00,0x73,0x00,0x73,
0x00,0x73,0x00,0x73,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x0a,0x00,0x00,0x75,0x00,0x75,0x00,0x75,0x00,0x75,0x00,0x76,0x00,
0x76,0x00,0x76,0x00,0x76,0x00,0x76,0x00,0x76,0x00,0x00,0x00,0x25,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x78,0x00,0x78,0x00,0x78,
0x00,0x78,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x79,0x00,0x00,
0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,
0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7b,0x00,0x7c,0x00,0x7c,0x00,0x7c,0x00,0x7c,0x00,
0x7c,0x00,0x7c,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x0a,0x00,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7e,0x00,0x7f,0x00,0x7f,
0x00,0x7f,0x00,0x7f,0x00,0x7f,0x00,0x7f,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x81,0x00,0x81,0x00,0x81,0x00,
0x81,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x00,0x00,
0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x84,
0x00,0x84,0x00,0x84,0x00,0x84,0x00,0x85,0x00,0x85,0x00,0x85,0x00,0x85,0x00,0x85,
0x00,0x85,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x0a,0x00,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x87,0x00,0x88,0x00,0x88,0x00,
0x88,0x00,0x88,0x00,0x88,0x00,0x88,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x8a,0x00,0x8a,0x00,0x8a,0x00,0x8a,
0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x8b,0x00,0x00,0x00,0x25,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x8d,0x00,
0x8d,0x00,0x8d,0x00,0x8d,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,0x8e,0x00,
0x8e,0x00,0x00,0x00,0x25,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x0a,0x00,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x90,0x00,0x91,0x00,0x91,0x00,0x91,
0x00,0x91,0x00,0x91,0x00,0x91,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x93,0x00,0x94,0x00,0x94,0x00,0x94,0x00,
0x94,0x00,0x94,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,0x95,0x00,
0x96,0x00,0x96,0x00,0x96,0x00,0x96,0x00,0x00,0x00,0x6d,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x00,0x00,0x9a,0x00,0x9a,0x00,0x9a,0x00,0x9a,
0x00,0x9a,0x00,0x9a,0x00,0x9b,0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9c,
0x00,0x9c,0x00,0x9c,0x00,0x9c,0x00,0x9d,0x00,0x9d,0x00,0x9d,0x00,0x9d,0x00,0x9d,
0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9e,0x00,0x9f,
0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0x9f,0x00,0xa0,0x00,0xa0,
0x00,0xa0,0x00,0xa0,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,0x00,0xa1,
0x00,0xa1,0x00,0xa1,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x05,0x00,0x00,0xa4,0x00,0xa5,0x00,0xa5,0x00,0xa5,0x00,0xa5,0x00,
0x00,0x00,0x8b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0x00,
0x00,0xa8,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,0x00,0xa9,
0x00,0xa9,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,
0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,0x00,0xab,
0x00,0xac,0x00,0xac,0x00,0xac,0x00,0xac,0x00,0xad,0x00,0xad,0x00,0xad,0x00,0xad,
0x00,0xb6,0x00,0xb6,0x00,0xb6,0x00,0xb6,0x00,0xb7,0x00,0xb7,0x00,0xb7,0x00,0xb7,
0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,0x00,0xb8,
0x00,0xba,0x00,0xba,0x00,0xba,0x00,0xba,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,
0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0xbb,0x00,0x00,0x00,0x55,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,0x00,0xad,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,0xaf,0x00,
0xaf,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,0xb1,0x00,
0x00,0x00,0x55,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x00,
0x00,0xbb,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbd,
0x00,0xbd,0x00,0xbd,0x00,0xbd,0x00,0xbf,0x00,0xbf,0x00,0xbf,0x00,0xbf,0x00,0xbf,
0x00,0xbf,0x00,0xbf,0x00,0x00,0x00,0x3d,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x16,0x00,0x00,0xc6,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,
0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,0xc7,0x00,
0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xc8,0x00,0xca,0x00,
0xca,0x00,0x00,0x00,0x47,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1b,0x00,0x00,0xcd,0x00,0xce,0x00,0xce,0x00,0xce,0x00,0xcf,0x00,0xcf,0x00,0xcf,
0x00,0xcf,0x00,0xcf,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd1,
0x00,0xd1,0x00,0xd1,0x00,0xd1,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,
0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0xd2,0x00,0x00,0x00,0x93,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x41,0x00,0x00,0xd5,0x00,0xd6,0x00,0xd6,0x00,
0xd6,0x00,0xd6,0x00,0xd6,0x00,0xd6,0x00,0xd7,0x00,0xd7,0x00,0xd7,0x00,0xd8,0x00,
0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,
0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,0xd9,0x00,
0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,0xda,0x00,
0xda,0x00,0xdb,0x00,0xdb,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,
0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,0xdd,0x00,
0xdd,0x00,0xdd,0x00,0xdd,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,
0xde,0x00,0xde,0x00,0xde,0x00,0xde,0x00,0xdf,0x00,0xdf,0x00,0x00,0x00,0x4b,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1d,0x00,0x01,0x07,0x01,0x07,
0x01,0x07,0x01,0x07,0x01,0x08,0x01,0x08,0x01,0x08,0x01,0x08,0x01,0x09,0x01,0x09,
0x01,0x09,0x01,0x09,0x01,0x0a,0x01,0x0a,0x01,0x0a,0x01,0x0a,0x01,0x0b,0x01,0x0b,
0x01,0x0b,0x01,0x0b,0x01,0x0c,0x01,0x0c,0x01,0x0c,0x01,0x0c,0x01,0x0d,0x01,0x0d,
0x01,0x0d,0x01,0x0d,0x01,0x0d,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x01,0x10,0x01,0x10,0x01,0x10,0x01,0x10,0x01,
0x10,0x00,0x00,0x00,0x1b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x05,0x00,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x11,0x01,0x11,0x00,0x00,0x00,0x1b,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x01,0x12,0x01,
0x12,0x01,0x12,0x01,0x12,0x01,0x12,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x16,0x01,0x17,0x01,0x17,0x01,0x17,
0x01,0x17,0x01,0x17,0x01,0x17,0x01,0x17,0x01,0x18,0x01,0x18,0x01,0x18,0x01,0x18,
0x01,0x18,0x01,0x18,0x01,0x18,0x01,0x18,0x00,0x00,0x00,0x31,0x00,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x1a,0x01,0x1b,0x01,0x1b,0x01,
0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1b,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x01,
0x1c,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x01,0x1c,0x00,0x00,0x00,0x31,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x1e,0x01,0x1f,0x01,0x1f,
0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x1f,0x01,0x20,0x01,0x20,0x01,0x20,
0x01,0x20,0x01,0x20,0x01,0x20,0x01,0x20,0x01,0x20,0x00,0x00,0x00,0x31,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x01,0x22,0x01,0x23,0x01,
0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x23,0x01,0x24,0x01,0x24,0x01,
0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x01,0x24,0x00,0x00,0x00,0x35,0x00,
0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x26,0x01,0x27,
0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x27,0x01,0x28,
0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,0x01,0x28,
0x00,0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,
0x00,0x01,0x2a,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,0x2b,0x01,
0x2b,0x01,0x2b,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,0x2c,0x01,
0x2c,0x01,0x2c,0x01,0x2c,0x00,0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x2e,0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x2f,
0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x2f,0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,
0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,0x01,0x30,0x00,0x00,0x00,0x35,0x00,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x32,0x01,0x33,0x01,
0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x33,0x01,0x34,0x01,
0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x01,0x34,0x00,
0x00,0x00,0x35,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,
0x01,0x36,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,0x01,0x37,
0x01,0x37,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,0x01,0x38,
0x01,0x38,0x01,0x38,0x00,0x00,0x00,0x3b,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x15,0x00,0x01,0x3a,0x01,0x3b,0x01,0x3b,0x01,0x3b,0x01,0x3b,0x01,
0x3b,0x01,0x3b,0x01,0x3b,0x01,0x3c,0x01,0x3c,0x01,0x3c,0x01,0x3d,0x01,0x3d,0x01,
0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x01,0x3d,0x00,
0x00,0x00,0x41,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,
0x01,0x40,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,
0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x41,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,
0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,0x01,0x42,
0x00,0x00,0x00,0x39,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,
0x00,0x01,0x44,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,0x45,0x01,
0x45,0x01,0x45,0x01,0x45,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,
0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x01,0x46,0x00,0x00,0x00,0x35,0x00,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x00,0x01,0x48,0x01,0x49,0x01,0x49,
0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x49,0x01,0x4a,0x01,0x4a,
0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x01,0x4a,0x00,0x00,
0x00,0x39,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x01,
0x4c,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,0x4d,0x01,
0x4d,0x01,0x4d,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x01,
0x4e,0x01,0x4e,0x01,0x4e,0x01,0x4e,0x00,0x00,0x00,0x39,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x01,0x50,0x01,0x51,0x01,0x51,0x01,0x51,
0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x51,0x01,0x52,0x01,0x52,
0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,0x01,0x52,
0x00,0x00,0x00,0x73,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x31,
0x00,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x58,0x01,0x59,0x01,0x59,0x01,
0x59,0x01,0x59,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,0x5b,0x01,
0x5b,0x01,0x5b,0x01,0x5c,0x01,0x5c,0x01,0x5c,0x01,0x5d,0x01,0x5d,0x01,0x5d,0x01,
0x5d,0x01,0x5d,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,
0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x5f,0x01,0x61,0x01,0x61,0x01,
0x61,0x01,0x61,0x01,0x61,0x01,0x61,0x01,0x61,0x01,0x64,0x01,0x64,0x01,0x64,0x01,
0x64,0x01,0x64,0x4c,0x56,0x41,0x52,0x00,0x00,0x03,0x50,0x00,0x00,0x00,0x2d,0x00,
0x08,0x68,0x61,0x6e,0x64,0x6c,0x65,0x72,0x73,0x00,0x04,0x61,0x72,0x67,0x73,0x00,
0x03,0x72,0x65,0x74,0x00,0x01,0x69,0x00,0x04,0x6e,0x61,0x6d,0x65,0x00,0x05,0x70,
0x61,0x72,0x61,0x6d,0x00,0x04,0x6d,0x6f,0x64,0x65,0x00,0x08,0x73,0x68,0x6f,0x72,
0x74,0x63,0x75,0x74,0x00,0x05,0x62,0x6c,0x6f,0x63,0x6b,0x00,0x03,0x69,0x64,0x78,
0x00,0x02,0x69,0x69,0x00,0x05,0x77,0x68,0x69,0x63,0x68,0x00,0x03,0x63,0x6d,0x64,
0x00,0x06,0x6d,0x65,0x74,0x68,0x6f,0x64,0x00,0x03,0x61,0x72,0x67,0x00,0x03,0x6f,
0x62,0x6a,0x00,0x05,0x6e,0x61,0x6d,0x65,0x73,0x00,0x03,0x74,0x62,0x6c,0x00,0x01,
0x76,0x00,0x05,0x65,0x76,0x65,0x6e,0x74,0x00,0x06,0x72,0x65,0x6d,0x6f,0x76,0x65,
0x00,0x03,0x62,0x6c,0x6b,0x00,0x01,0x73,0x00,0x04,0x6c,0x69,0x73,0x74,0x00,0x05,
0x73,0x74,0x61,0x72,0x74,0x00,0x02,0x74,0x70,0x00,0x03,0x73,0x65,0x70,0x00,0x04,
0x70,0x61,0x6e,0x65,0x00,0x04,0x70,0x61,0x74,0x68,0x00,0x04,0x66,0x69,0x6c,0x65,
0x00,0x01,0x65,0x00,0x08,0x6c,0x69,0x6e,0x65,0x5f,0x70,0x6f,0x73,0x00,0x06,0x6c,
0x69,0x6e,0x65,0x6e,0x6f,0x00,0x04,0x65,0x6e,0x64,0x6c,0x00,0x02,0x63,0x68,0x00,
0x0e,0x65,0x64,0x69,0x74,0x6f,0x72,0x5f,0x66,0x6f,0x63,0x75,0x73,0x65,0x64,0x00,
0x03,0x6b,0x65,0x79,0x00,0x05,0x73,0x68,0x69,0x66,0x74,0x00,0x04,0x63,0x74,0x72,
0x6c,0x00,0x03,0x61,0x6c,0x74,0x00,0x03,0x70,0x6f,0x73,0x00,0x03,0x73,0x74,0x72,
0x00,0x07,0x63,0x6f,0x6e,0x74,0x72,0x6f,0x6c,0x00,0x06,0x63,0x68,0x61,0x6e,0x67,
0x65,0x00,0x0c,0x63,0x75,0x72,0x72,0x65,0x6e,0x74,0x5f,0x66,0x69,0x6c,0x65,0x00,
0x00,0x00,0x01,0x00,0x01,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x02,0x00,0x04,0x00,
0x03,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x04,0x00,0x01,0x00,0x05,0x00,0x02,0xff,
0xff,0x00,0x00,0x00,0x04,0x00,0x01,0x00,0x06,0x00,0x02,0x00,0x07,0x00,0x03,0x00,
0x05,0x00,0x04,0x00,0x08,0x00,0x05,0x00,0x09,0x00,0x06,0x00,0x0a,0x00,0x07,0x00,
0x0b,0x00,0x08,0x00,0x0c,0x00,0x09,0x00,0x0d,0x00,0x01,0x00,0x0e,0x00,0x02,0xff,
0xff,0x00,0x00,0x00,0x0f,0x00,0x04,0x00,0x10,0x00,0x05,0x00,0x04,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x11,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x12,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x04,0x00,0x03,0x00,0x0c,0x00,0x04,0x00,0x06,0x00,0x05,0x00,
0x07,0x00,0x06,0x00,0x0e,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x13,0x00,0x01,0x00,
0x14,0x00,0x02,0x00,0x15,0x00,0x03,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x14,0x00,0x01,0x00,0x15,0x00,0x02,0x00,0x16,0x00,0x01,0x00,0x15,0x00,0x02,0x00,
0x17,0x00,0x01,0x00,0x18,0x00,0x02,0x00,0x19,0x00,0x03,0x00,0x15,0x00,0x04,0x00,
0x1a,0x00,0x05,0x00,0x16,0x00,0x06,0x00,0x1b,0x00,0x07,0xff,0xff,0x00,0x00,0xff,
0xff,0x00,0x00,0x00,0x1c,0x00,0x02,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1e,0x00,0x03,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1e,0x00,0x03,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1b,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1f,0x00,0x03,0x00,0x20,0x00,0x04,0x00,0x21,0x00,0x05,0x00,0x22,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x23,0x00,0x03,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0xff,
0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
0x22,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0x00,
0x1d,0x00,0x01,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x24,0x00,0x01,0x00,
0x25,0x00,0x02,0x00,0x26,0x00,0x03,0x00,0x27,0x00,0x04,0xff,0xff,0x00,0x00,0x00,
0x28,0x00,0x01,0x00,0x16,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x1d,0x00,0x01,0xff,
0xff,0x00,0x00,0x00,0x19,0x00,0x01,0x00,0x29,0x00,0x02,0xff,0xff,0x00,0x00,0x00,
0x2a,0x00,0x01,0x00,0x2b,0x00,0x02,0xff,0xff,0x00,0x00,0x00,0x2c,0x00,0x01,0x00,
0x1e,0x00,0x02,0x45,0x4e,0x44,0x00,0x00,0x00,0x00,0x08,
};
| sdottaka/mruby-bin-scite-mruby | tools/scite/mrblib/mrblib_extman.c | C | mit | 89,318 |
# this is the interface for `python archiver`
import archiver
import appdirs
import os
import sys
import pickle
import json
from archiver.archiver import Archiver
from archiver.parser import parseArgs
args = parseArgs()
from edit import edit
# ==============================================
print args
# TODO: see http://stackoverflow.com/questions/13168083/python-raw-input-replacement-that-uses-a-configurable-text-editor
#-- import pdb
#-- pdb.set_trace()
# ------------------------------------------------------------
# load the user data
# ------------------------------------------------------------
# get the user data directory
user_data_dir = appdirs.user_data_dir('FileArchiver', 'jdthorpe')
if not os.path.exists(user_data_dir) :
os.makedirs(user_data_dir)
# LOAD THE INDEX NAMES AND ACTIVE INDEX
indexes_path = os.path.join(user_data_dir,'INDEXES.json')
if os.path.exists(indexes_path):
with open(indexes_path,'rb') as fh:
indexes = json.load(fh)
else:
indexes= {'active':None,'names':[]}
if not os.path.exists(user_data_dir):
os.makedirs(user_data_dir)
def dumpIndexes():
with open(indexes_path,'wb') as fh:
json.dump(indexes,fh)
# ------------------------------------------------------------
# ------------------------------------------------------------
def getActiveName():
# ACTIVE INDEX NUMER
activeIndex = indexes['active']
if activeIndex is None:
print "No active index. Use 'list -i' to list available indexies and 'use' to set an active index."
sys.exit()
# GET THE NAME OF THE INDEX
try:
activeIndexName = indexes['names'][indexes['active']]
except:
print "Invalid index number"
sys.exit()
return activeIndexName
# ------------------------------------------------------------
# READ-WRITE UTILITY FUNCTIONS
# ------------------------------------------------------------
# TODO: catch specific excepitons:
# except IOError:
# # no such file
# except ValueError as e:
# # invalid json file
def readSettings(name):
""" A utility function which loads the index settings from file
"""
try:
with open(os.path.join(user_data_dir,name+".settings"),'rb') as fh:
settings = json.load(fh)
except Exception as e:
print "Error reading index settings"
import pdb
pdb.set_trace()
sys.exit()
return settings
def readData(name):
""" A utility function which loads the index data from file
"""
try:
with open(os.path.join(user_data_dir,name+".data"),'rb') as fh: data = pickle.load(fh)
except Exception as e:
print "Error reading index data"
import pdb
pdb.set_trace()
sys.exit()
return data
def dumpSettings(settings,name):
""" A utility function which saves the index settings to file
"""
try:
with open(os.path.join(user_data_dir,name+".settings"),'wb') as fh:
json.dump(settings,fh)
except Exception as e:
print "Error writing index settings"
import pdb
pdb.set_trace()
sys.exit()
def dumpData(data,name):
""" A utility function which saves the index settings to file
"""
try:
with open(os.path.join(user_data_dir,name+".data"),'wb') as fh:
pickle.dump(data,fh)
except:
print "Error writing index data"
import pdb
pdb.set_trace()
sys.exit()
# ------------------------------------------------------------
# ------------------------------------------------------------
if args.command == 'add':
activeName = getActiveName()
settings = readSettings(activeName)
if args.source is not None:
source = os.path.abspath(args.source)
if not os.path.exists(source):
print 'WARNING: no such directory "%s"'%(source)
elif not os.path.isdir(source):
print 'ERROR: "%s" is not a directory'%(source)
sys.exit()
print 'Adding source directory: %s'%(source)
if not any(samefile(source,f) for f in settings['sourceDirectories']):
settings['sourceDirectories'].append(source)
elif args.exclusions is not None:
import re
try:
re.compile(args.exclusion)
except re.error:
print 'Invalid regular expression "%s"'%(args.exclusion)
sys.exit()
if args.noic:
settings['directoryExclusionPatterns'].append(args.exclusion)
else:
settings['directoryExclusionPatterns'].append((args.exclusion,2)) # re.I == 2
elif args.archive is not None:
raise NotImplementedError
if settings['archiveDirectory'] is not None:
print "Archive path has already been set use 'remove' to delete the archive path before setting a new archive path"
archiveDirectory = os.path.abspath(args.archive)
if not os.path.exists(archiveDirectory):
if args.create :
os.makedirs(archiveDirectory)
else:
print 'ERROR: no such directory "%s"'%(archiveDirectory)
sys.exit()
elif not os.path.isdir(archiveDirectory):
print '"%s" is not a directory'%(archiveDirectory)
sys.exit()
print 'Setting archive directory to: %s'%(archiveDirectory)
settings['archiveDirectory'] = args.archive
else:
raise NotImplementedError
print 'Error in Arg Parser'
sys.exit()
dumpSettings(settings,activeName)
elif args.command == 'list':
if args.sources:
for f in readSettings(getActiveName())['sourceDirectories']:
print f
elif args.exclusions:
for f in readSettings(getActiveName())['directoryExclusionPatterns']:
print f
elif args.archive:
print readSettings(getActiveName())['archiveDirectory']
elif args.files:
archiver = Archiver()
archiver.data = readData(getActiveName())
for f in archiver:
print f
elif args.indexes:
print 'Active Index: %s (*)'%(getActiveName())
print 'Index Names: '
for i,name in enumerate(indexes['names']):
print ' %s %i: %s'%(
(' ','*')[(i == indexes['active'])+0],
i+1,
name,
)
else:
print 'Error in Arg Parser'
elif args.command == 'remove':
activeName = getActiveName()
settings = readSettings(activeName)
if args.source is not None:
if not (1 <= args.source <= len(settings['sourceDirectories'])):
print 'Invalid index %i'%(args.source)
del settings['sourceDirectories'][args.source - 1]
elif args.exclusion is not None:
raise NotImplementedError
if not (1 <= args.exclusion <= len(settings['directoryExclusionPatterns'])):
print 'Invalid index %i'%(args.exclusion)
del settings['directoryExclusionPatterns'][args.exclusion - 1]
elif args.archive is not None:
raise NotImplementedError
settings['archiveDirectory'] = None
else:
raise NotImplementedError
print 'Error in Arg Parser'
sys.exit()
dumpSettings(settings,activeName)
elif args.command == 'update':
activeName = getActiveName()
settings = readSettings(activeName)
if not len(settings['sourceDirectories']):
print "Error: no source directories in the active index. Please add a source directory via 'add -s'"
archiver = Archiver(
settings = readSettings(activeName),
data = readData(activeName))
archiver.update()
dumpSettings(archiver.settings,activeName)
dumpData(archiver.data,activeName)
elif args.command == 'clean':
raise NotImplementedError
activeName = getActiveName()
archiver = Archiver(
settings = readSettings(activeName),
data = readData(activeName))
archiver.clean()
dumpSettings(archiver.settings,activeName)
dumpData(archiver.data,activeName)
elif args.command == 'copy':
raise NotImplementedError
activeName = getActiveName()
settings = readSettings(activeName),
if settings['archiveDirectory'] is None:
print "ERROR Archive directory not set. Use 'add -a' to set the archive directory."
sys.exit()
Index(
settings = settings,
data = readData(activeName)).copy()
elif args.command == 'diskimages':
raise NotImplementedError
if args.size is None or args.size == "DVD":
size = 4.65*1<<20
elif args.size == "CD":
size = 645*1<<20
elif args.size == "DVD":
size = 4.65*1<<20
elif args.size == "DVD-dual":
size = 8.5*1<<30
elif args.size == "BD":
size = 25*1<<30
elif args.size == "BD-dual":
size = 50*1<<30
elif args.size == "BD-tripple":
size = 75*1<<30
elif args.size == "BD-xl":
size = 100*1<<30
else:
try:
size = int(float(args.size))
except:
print 'ERROR: unable to coerce "%s" to float or int'%(args.size)
sys.exit()
activeName = getActiveName()
settings = readSettings(activeName),
# GET THE DIRECTORY ARGUMENT
if args.directory is not None:
directory = args.directory
else:
if settings['archiveDirectory'] is None:
print "ERROR Archive directory not set and no directory specified. Use 'diskimages -d' to specifiy the disk image directory or 'add -a' to set the archive directory."
sys.exit()
else:
directory = os.path.join(settings['archiveDirectory'],'Disk Images')
# VALIDATE THE DIRECTORY
if not os.path.exists(directory):
if args.create :
os.makedirs(directory)
else:
print 'ERROR: no such directory "%s"'%(directory)
sys.exit()
elif not os.path.isdir(directory):
print '"%s" is not a directory'%(directory)
sys.exit()
# get the FPBF argument
if args.fpbf is not None:
FPBF = True
elif args.nofpbf is not None:
FPBF = False
else:
FPBF = sys.platform == 'darwin'
Index( settings = settings,
data = readData(activeName)).diskimages(directory,size,FPBF)
elif args.command == 'settings':
activeName = getActiveName()
if args.export is not None:
raise NotImplementedError
with open(args.export,'rb') as fh:
json.dump(readSettings(activeName),fh,indent=2,separators=(',', ': '))
elif args.load is not None:
raise NotImplementedError
with open(args.export,'wb') as fh:
settings = json.load(fh)
# give a chance for the settings to be validated
try:
archiver = Archiver(settings=settings)
except:
print "ERROR: invalid settings file"
dumpSettings(archiver.settings,args.name)
elif args.edit is not None:
settings = readSettings(activeName)
old = settings['identifierSettings'][args.edit]
new = edit(json.dumps(old,indent=2,separators=(',', ': ')))
settings['identifierSettings'][args.edit]= json.loads(new)
dumpSettings(settings,activeName)
else :
print json.dumps(readSettings(activeName),indent=2,separators=(',', ': '))
elif args.command == 'create':
if args.name in indexes['names']:
print "An index by the name '%s' already exists"%(args.name)
sys.exit()
import re
validater = re.compile(r'^[-() _a-zA-Z0-9](?:[-() _.a-zA-Z0-9]+[-() _a-zA-Z0-9])$')
if validater.match(args.name) is None:
print "ERROR: names must be composed of letters, numbers, hypen, underscore, space and dot charactes an not end or begin with a dot"
sys.exit()
archiver = Index()
dumpSettings(archiver.settings,args.name)
dumpData(archiver.data,args.name)
indexes['names'].append(args.name)
dumpIndexes()
# TODO: check if there are no other indexies. if so, make the new one active.
print "Created index '%s'"%(args.name)
elif args.command == 'save':
raise NotImplementedError
Index( settings = readSettings(getActiveName()),
data = readData(getActiveName())).save(args.filename)
elif args.command == 'use':
print indexes['names']
if not args.name in indexes['names']:
print "ERROR: No such index named '%s'"%(args.name)
sys.exit()
indexes['active'] =indexes['names'].index(args.name)
dumpIndexes()
elif args.command == 'delete':
if not args.name in indexes['names']:
print "ERROR: No such index named '%s'"%(args.name)
sys.exit()
nameIindex = indexes['names'].index(args.name)
if indexes['active'] == nameIindex:
print 'WARNING: deleting active index'
indexes['active'] = None
del indexes['names'][nameIindex]
dumpIndexes()
else :
print "unknown command %s"%(args.command)
| jdthorpe/archiver | __main__.py | Python | mit | 13,106 |
/*
* The MIT License
*
* Copyright (c) 2016 Marcelo "Ataxexe" Guimarães <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package tools.devnull.boteco.predicates;
import org.junit.Before;
import org.junit.Test;
import tools.devnull.boteco.message.IncomeMessage;
import tools.devnull.boteco.Predicates;
import tools.devnull.kodo.Spec;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static tools.devnull.boteco.TestHelper.accept;
import static tools.devnull.boteco.TestHelper.notAccept;
import static tools.devnull.kodo.Expectation.it;
import static tools.devnull.kodo.Expectation.to;
public class TargetPredicateTest {
private IncomeMessage messageFromTarget;
private IncomeMessage messageFromOtherTarget;
private IncomeMessage messageFromUnknownTarget;
@Before
public void initialize() {
messageFromTarget = mock(IncomeMessage.class);
when(messageFromTarget.target()).thenReturn("target");
messageFromOtherTarget = mock(IncomeMessage.class);
when(messageFromOtherTarget.target()).thenReturn("other-target");
messageFromUnknownTarget = mock(IncomeMessage.class);
when(messageFromUnknownTarget.target()).thenReturn("unknown-target");
}
@Test
public void test() {
Spec.given(Predicates.target("target"))
.expect(it(), to(accept(messageFromTarget)))
.expect(it(), to(notAccept(messageFromOtherTarget)))
.expect(it(), to(notAccept(messageFromUnknownTarget)));
}
}
| devnull-tools/boteco | main/boteco/src/test/java/tools/devnull/boteco/predicates/TargetPredicateTest.java | Java | mit | 2,605 |
using System;
using System.Collections.Generic;
using System.Text;
using Icy.Util;
namespace Icy.Database.Query
{
public class JoinClauseOptions{
public object first;
public string operator1;
public object second;
public string boolean;
public bool where;
public bool nested;
public JoinClause join;
}
// 4d8e4bb Dec 28, 2015
public class JoinClause
{
/**
* The type of join being performed.
*
* @var string
*/
public string _type;
/**
* The table the join clause is joining to.
*
* @var string
*/
public string _table;
/**
* The "on" clauses for the join.
*
* @var array
*/
public JoinClauseOptions[] _clauses = new JoinClauseOptions[0];
/**
* The "on" bindings for the join.
*
* @var array
*/
public object[] _bindings = new object[0];
/**
* Create a new join clause instance.
*
* @param string type
* @param string table
* @return void
*/
public JoinClause(string type, string table)
{
this._type = type;
this._table = table;
}
/**
* Add an "on" clause to the join.
*
* On clauses can be chained, e.g.
*
* join.on('contacts.user_id', '=', 'users.id')
* .on('contacts.info_id', '=', 'info.id')
*
* will produce the following SQL:
*
* on `contacts`.`user_id` = `users`.`id` and `contacts`.`info_id` = `info`.`id`
*
* @param string first
* @param string|null operator
* @param string|null second
* @param string boolean
* @param bool where
* @return this
*/
public JoinClause on(Action<JoinClause> first, string operator1 = null, object second = null, string boolean = "and", bool where = false)
{
return this.nest(first, boolean);
}
public JoinClause on(object first, string operator1 = null, object second = null, string boolean = "and", bool where = false)
{
if (where)
{
this._bindings = ArrayUtil.push(this._bindings, second);
}
if(where && (operator1 == "in" || operator1 == "not in") && (second is IList<object> || second is object[])){
second = ((IList<object>)second).Count;
}
JoinClauseOptions options = new JoinClauseOptions();
options.first = first;
options.operator1 = operator1;
options.second = second;
options.boolean = boolean;
options.where = where;
options.nested = false;
this._clauses = ArrayUtil.push(this._clauses, options);
return this;
}
/**
* Add an "or on" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orOn(object first, string operator1 = null, object second = null)
{
return this.on(first, operator1, second, "or");
}
/**
* Add an "on where" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause where(object first, string operator1 = null, object second = null, string boolean = "and")
{
return this.on(first, operator1, second, boolean, true);
}
/**
* Add an "or on where" clause to the join.
*
* @param string first
* @param string|null operator
* @param string|null second
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhere(object first, string operator1 = null, object second = null)
{
return this.on(first, operator1, second, "or", true);
}
/**
* Add an "on where is null" clause to the join.
*
* @param string column
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNull(object column, string boolean = "and")
{
return this.on(column, "is", new Expression("null"), boolean, false);
}
/**
* Add an "or on where is null" clause to the join.
*
* @param string column
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNull(object column)
{
return this.whereNull(column, "or");
}
/**
* Add an "on where is not null" clause to the join.
*
* @param string column
* @param string boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNotNull(object column, string boolean = "and")
{
return this.on(column, "is", new Expression("not null"), boolean, false);
}
/**
* Add an "or on where is not null" clause to the join.
*
* @param string column
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNotNull(object column)
{
return this.whereNotNull(column, "or");
}
/**
* Add an "on where in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereIn(object column, object[] values)
{
return this.on(column, "in", values, "and", true);
}
/**
* Add an "on where not in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause whereNotIn(object column, object[] values)
{
return this.on(column, "not in", values, "and", true);
}
/**
* Add an "or on where in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereIn(object column, object[] values)
{
return this.on(column, "in", values, "or", true);
}
/**
* Add an "or on where not in (...)" clause to the join.
*
* @param string column
* @param array values
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause orWhereNotIn(object column, object[] values)
{
return this.on(column, "not in", values, "or", true);
}
/**
* Add a nested where statement to the query.
*
* @param \Closure $callback
* @param string $boolean
* @return \Illuminate\Database\Query\JoinClause
*/
public JoinClause nest(Action<JoinClause> callback, string boolean = "and")
{
JoinClause join = new JoinClause(this._type, this._table);
callback(join);
if (join._clauses.Length > 0) {
JoinClauseOptions options = new JoinClauseOptions();
options.nested = true;
options.join = join;
options.boolean = boolean;
this._clauses = ArrayUtil.push(this._clauses, options);
this._bindings = ArrayUtil.concat(this._bindings, join._bindings);
}
return this;
}
}
}
| mattiamanzati/Icy | Icy/Database/Query/JoinClause.cs | C# | mit | 8,200 |
<?php
namespace YaoiTests\PHPUnit\Storage;
use Yaoi\Storage;
use Yaoi\Storage\Contract\Expire;
use Yaoi\Storage\Contract\ExportImportArray;
use Yaoi\Test\PHPUnit\TestCase;
abstract class TestStorageBasic extends TestCase
{
/**
* @var Storage
*/
protected $storage;
public function testTtl()
{
if (!$this->storage->getDriver() instanceof Expire) {
return;
}
$key = 'test-key';
$value = 'the-value';
$this->storage->set($key, $value, 10);
$this->assertSame($value, $this->storage->get($key));
$this->storage->set($key, $value, 10);
$this->assertSame(true, $this->storage->keyExists($key));
$this->storage->set($key, $value, -1);
$this->assertSame(null, $this->storage->get($key));
$this->storage->set($key, $value, -1);
$this->assertSame(false, $this->storage->keyExists($key));
}
public function testScalar()
{
$key = 'test-key';
$key2 = array('test-key2', 'sub1', 'sub2');
$value = 'the-value';
$value2 = 'the-value-2';
$this->storage->set($key, $value);
$this->assertSame($value, $this->storage->get($key));
$this->storage->set($key, $value2);
$this->assertSame($value2, $this->storage->get($key));
$this->storage->delete($key);
$this->assertSame(null, $this->storage->get($key));
$this->storage->set($key, $value);
$this->storage->set($key2, $value);
$this->assertSame($value, $this->storage->get($key));
$this->assertSame($value, $this->storage->get($key2));
$this->storage->deleteAll();
$this->assertSame(null, $this->storage->get($key));
$this->assertSame(null, $this->storage->get($key2));
}
public function testStrictNumeric()
{
$this->storage->set('test', 123123);
$this->assertSame(123123, $this->storage->get('test'));
$this->storage->set('test', '123123');
$this->assertSame('123123', $this->storage->get('test'));
}
public function testArrayIO()
{
if (!$this->storage->getDriver() instanceof ExportImportArray) {
return;
}
$this->storage->importArray(array('a' => 1, 'b' => 2, 'c' => 3));
$this->storage->set('d', 4);
$this->assertSame(array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4), $this->storage->exportArray());
}
} | php-yaoi/php-yaoi | tests/src/PHPUnit/Storage/TestStorageBasic.php | PHP | mit | 2,450 |
/********************************************************************
Software License Agreement:
The software supplied herewith by Microchip Technology Incorporated
(the "Company") for its PIC(R) Microcontroller is intended and
supplied to you, the Company's customer, for use solely and
exclusively on Microchip PIC Microcontroller products. The
software is owned by the Company and/or its supplier, and is
protected under applicable copyright laws. All rights are reserved.
Any use in violation of the foregoing restrictions may subject the
user to criminal sanctions under applicable laws, as well as to
civil liability for the breach of the terms and conditions of this
license.
THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*******************************************************************/
#include <xc.h>
#include <system.h>
#include <system_config.h>
#include <usb/usb.h>
// PIC24FJ64GB002 Configuration Bit Settings
#include <xc.h>
// CONFIG4
#pragma config DSWDTPS = DSWDTPS3 // DSWDT Postscale Select (1:128 (132 ms))
#pragma config DSWDTOSC = LPRC // Deep Sleep Watchdog Timer Oscillator Select (DSWDT uses Low Power RC Oscillator (LPRC))
#pragma config RTCOSC = SOSC // RTCC Reference Oscillator Select (RTCC uses Secondary Oscillator (SOSC))
#pragma config DSBOREN = OFF // Deep Sleep BOR Enable bit (BOR disabled in Deep Sleep)
#pragma config DSWDTEN = OFF // Deep Sleep Watchdog Timer (DSWDT disabled)
// CONFIG3
#pragma config WPFP = WPFP0 // Write Protection Flash Page Segment Boundary (Page 0 (0x0))
#pragma config SOSCSEL = IO // Secondary Oscillator Pin Mode Select (SOSC pins have digital I/O functions (RA4, RB4))
#pragma config WUTSEL = LEG // Voltage Regulator Wake-up Time Select (Default regulator start-up time used)
#pragma config WPDIS = WPDIS // Segment Write Protection Disable (Segmented code protection disabled)
#pragma config WPCFG = WPCFGDIS // Write Protect Configuration Page Select (Last page and Flash Configuration words are unprotected)
#pragma config WPEND = WPENDMEM // Segment Write Protection End Page Select (Write Protect from WPFP to the last page of memory)
// CONFIG2
#pragma config POSCMOD = XT // Primary Oscillator Select (XT Oscillator mode selected)
#pragma config I2C1SEL = PRI // I2C1 Pin Select bit (Use default SCL1/SDA1 pins for I2C1 )
#pragma config IOL1WAY = OFF // IOLOCK One-Way Set Enable (The IOLOCK bit can be set and cleared using the unlock sequence)
#pragma config OSCIOFNC = ON // OSCO Pin Configuration (OSCO pin functions as port I/O (RA3))
#pragma config FCKSM = CSDCMD // Clock Switching and Fail-Safe Clock Monitor (Sw Disabled, Mon Disabled)
#pragma config FNOSC = PRIPLL // Initial Oscillator Select (Primary Oscillator with PLL module (XTPLL, HSPLL, ECPLL))
#pragma config PLL96MHZ = ON // 96MHz PLL Startup Select (96 MHz PLL Startup is enabled automatically on start-up)
#pragma config PLLDIV = DIV2 // USB 96 MHz PLL Prescaler Select (Oscillator input divided by 2 (8 MHz input))
#pragma config IESO = OFF // Internal External Switchover (IESO mode (Two-Speed Start-up) disabled)
// CONFIG1
#pragma config WDTPS = PS1 // Watchdog Timer Postscaler (1:1)
#pragma config FWPSA = PR32 // WDT Prescaler (Prescaler ratio of 1:32)
#pragma config WINDIS = OFF // Windowed WDT (Standard Watchdog Timer enabled,(Windowed-mode is disabled))
#pragma config FWDTEN = OFF // Watchdog Timer (Watchdog Timer is disabled)
#pragma config ICS = PGx1 // Emulator Pin Placement Select bits (Emulator functions are shared with PGEC1/PGED1)
#pragma config GWRP = OFF // General Segment Write Protect (Writes to program memory are allowed)
#pragma config GCP = OFF // General Segment Code Protect (Code protection is disabled)
#pragma config JTAGEN = OFF // JTAG Port Enable (JTAG port is disabled)
/*********************************************************************
* Function: void SYSTEM_Initialize( SYSTEM_STATE state )
*
* Overview: Initializes the system.
*
* PreCondition: None
*
* Input: SYSTEM_STATE - the state to initialize the system into
*
* Output: None
*
********************************************************************/
void SYSTEM_Initialize( SYSTEM_STATE state )
{
//On the PIC24FJ64GB004 Family of USB microcontrollers, the PLL will not power up and be enabled
//by default, even if a PLL enabled oscillator configuration is selected (such as HS+PLL).
//This allows the device to power up at a lower initial operating frequency, which can be
//advantageous when powered from a source which is not gauranteed to be adequate for 32MHz
//operation. On these devices, user firmware needs to manually set the CLKDIV<PLLEN> bit to
//power up the PLL.
{
unsigned int pll_startup_counter = 600;
CLKDIVbits.PLLEN = 1;
while(pll_startup_counter--);
}
switch(state)
{
case SYSTEM_STATE_USB_HOST:
PRINT_SetConfiguration(PRINT_CONFIGURATION_UART);
break;
case SYSTEM_STATE_USB_HOST_HID_KEYBOARD:
LED_Enable(LED_USB_HOST_HID_KEYBOARD_DEVICE_READY);
//also setup UART here
PRINT_SetConfiguration(PRINT_CONFIGURATION_UART);
//timwuu 2015.04.11 LCD_CursorEnable(true);
TIMER_SetConfiguration(TIMER_CONFIGURATION_1MS);
break;
}
}
void __attribute__((interrupt,auto_psv)) _USB1Interrupt()
{
USB_HostInterruptHandler();
}
| timwuu/PK3SP24 | v2014_07_22/apps/usb/host/hid_bridgeHost/firmware/src/system_config/exp16/pic24fj64gb002_pim/system.c | C | mit | 6,072 |
// All code points in the Khmer Symbols block as per Unicode v5.0.0:
[
0x19E0,
0x19E1,
0x19E2,
0x19E3,
0x19E4,
0x19E5,
0x19E6,
0x19E7,
0x19E8,
0x19E9,
0x19EA,
0x19EB,
0x19EC,
0x19ED,
0x19EE,
0x19EF,
0x19F0,
0x19F1,
0x19F2,
0x19F3,
0x19F4,
0x19F5,
0x19F6,
0x19F7,
0x19F8,
0x19F9,
0x19FA,
0x19FB,
0x19FC,
0x19FD,
0x19FE,
0x19FF
]; | mathiasbynens/unicode-data | 5.0.0/blocks/Khmer-Symbols-code-points.js | JavaScript | mit | 360 |
jQuery(document).ready(function() {
$('.alert-close').bind('click', function() {
$(this).parent().fadeOut(100);
});
function createAutoClosingAlert(selector, delay) {
var alert = $(selector).alert();
window.setTimeout(function() { alert.alert('close') }, delay);
}
createAutoClosingAlert(".alert", 20000);
}); | scr-be/mantle-bundle | src/Resources/public/js/scribe/alert.js | JavaScript | mit | 337 |
CucumberJsBrowserRunner.StepDefinitions.test3(function () {
var And = Given = When = Then = this.defineStep,
runner;
Given(/^test3$/, function(callback) {
callback();
});
When(/^test3$/, function(callback) {
callback();
});
Then(/^test3$/, function(callback) {
callback();
});
}); | akania/cucumberjs-browserRunner | tests/features/step_definitions/test3_steps.js | JavaScript | mit | 356 |
.styleSans721.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 721.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 12pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans204.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 204.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 1.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans67.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 67.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans48.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 48.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans56.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 56.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans38.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 38.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans722.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 722.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans31.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 31.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans789.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 789.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans199.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 199.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 2.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans22.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 22.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans13.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 13.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans59.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 59.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans240.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 240.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans7.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 7.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans6.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 6.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 8.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans5.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 5.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans4.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 4.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 11.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans558.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 558.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
| datamade/elpc_bakken | ocr_extracted/W24890_text/style.css | CSS | mit | 6,596 |
'use strict';
var run = require('./helpers').runMochaJSON;
var assert = require('assert');
describe('.only()', function() {
describe('bdd', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/bdd.fixture.js', ['--ui', 'bdd'], function(err, res) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 11);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
describe('tdd', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/tdd.fixture.js', ['--ui', 'tdd'], function(err, res) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 8);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
describe('qunit', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/qunit.fixture.js', ['--ui', 'qunit'], function(
err,
res
) {
if (err) {
done(err);
return;
}
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 5);
assert.equal(res.stats.failures, 0);
assert.equal(res.code, 0);
done();
});
});
});
});
| boneskull/mocha | test/integration/only.spec.js | JavaScript | mit | 1,531 |
# Linux Kernel Module
This is simple kernel linux module:
To compile this module:
***make -C /lib/modules/$(uname -r)/build M=$PWD***
Load module:
***insmod modulo.ko***
Unload module:
***rmmod modulo.ko***
You can run the follow command to see the log messages:
***dmesg***
| joeloliveira/embedded-linux | device-drivers/simple-module/README.md | Markdown | mit | 279 |
import { ComponentRef, DebugElement } from '@angular/core';
import { ComponentFixture } from '@angular/core/testing';
export function doClassesMatch(resultClasses: DOMTokenList, expectedClasses: string[]): boolean {
let classesMatch = true;
let currentClass: string = null;
for (let i = 0; i < expectedClasses.length; i++) {
currentClass = expectedClasses[i];
classesMatch = resultClasses.contains(currentClass);
if (!classesMatch) {
break;
}
}
return classesMatch;
}
| testing-angular-applications/contacts-app-starter | website/src/app/contacts/testing/do-classes-match.ts | TypeScript | mit | 504 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Amigoo Secreto - Sorteio</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/principal.css">
<script type="text/javascript" src="js/angular.js"></script>
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/sorteio.js"></script>
</head>
<body ng-app="sorteio">
<div id="container" ng-controller="SorteioController as controller">
<h1>Sorteio</h1>
<a href="{{path}}/static/index.html">Página Inicial</a>
<br><br>
<div id="messages"></div>
<ul>
<li ng-repeat="person in persons">
{{person.name}} saiu com {{person.friendName}}
</li>
</ul>
</div>
</body>
</html> | tiagoassissantos/amigo_secreto | src/main/webapp/static/sorteio.html | HTML | mit | 981 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Craig McClellan" name="author">
<title>Craig McClellan - T13203775423 </title>
<link href="/assets/css/style.css" rel="stylesheet">
<link href="/assets/css/highlight.css" rel="stylesheet">
<link rel="stylesheet" href="/custom.css">
<link rel="shortcut icon" href="https://micro.blog/craigmcclellan/favicon.png" type="image/x-icon" />
<link rel="alternate" type="application/rss+xml" title="Craig McClellan" href="http://craigmcclellan.com/feed.xml" />
<link rel="alternate" type="application/json" title="Craig McClellan" href="http://craigmcclellan.com/feed.json" />
<link rel="EditURI" type="application/rsd+xml" href="/rsd.xml" />
<link rel="me" href="https://micro.blog/craigmcclellan" />
<link rel="me" href="https://twitter.com/craigmcclellan" />
<link rel="me" href="https://github.com/craigwmcclellan" />
<link rel="authorization_endpoint" href="https://micro.blog/indieauth/auth" />
<link rel="token_endpoint" href="https://micro.blog/indieauth/token" />
<link rel="micropub" href="https://micro.blog/micropub" />
<link rel="webmention" href="https://micro.blog/webmention" />
<link rel="subscribe" href="https://micro.blog/users/follow" />
</head>
<body>
<nav class="main-nav">
<a class="normal" href="/"> <span class="arrow">←</span> Home</a>
<a href="/archive/">Archive</a>
<a href="/about/">About</a>
<a href="/tools-of-choice/">Tools of Choice</a>
<a class="cta" href="https://micro.blog/craigmcclellan" rel="me">Also on Micro.blog</a>
</nav>
<section id="wrapper">
<article class="h-entry post">
<header>
<h2 class="headline">
<time class="dt-published" datetime="2010-04-30 19:00:00 -0500">
<a class="u-url dates" href="/2010/04/30/t13203775423.html">April 30, 2010</a>
</time>
</h2>
</header>
<section class="e-content post-body">
<p>Life’s tough when you’re 8 months old. <a href="http://yfrog.com/5878fj">yfrog.com/5878fj</a></p>
</section>
</article>
<section id="post-meta" class="clearfix">
<a href="/">
<img class="u-photo avatar" src="https://micro.blog/craigmcclellan/avatar.jpg">
<div>
<span class="p-author h-card dark">Craig McClellan</span>
<span><a href="https://micro.blog/craigmcclellan">@craigmcclellan</a></span>
</div>
</a>
</section>
</section>
<footer id="footer">
<section id="wrapper">
<ul>
<li><a href="/feed.xml">RSS</a></li>
<li><a href="/feed.json">JSON Feed</a></li>
<li><a href="https://micro.blog/craigmcclellan" rel="me">Micro.blog</a></li>
<!-- <li><a class="u-email" href="mailto:" rel="me">Email</a></li> -->
</ul>
<form method="get" id="search" action="https://duckduckgo.com/">
<input type="hidden" name="sites" value="http://craigmcclellan.com"/>
<input type="hidden" name="k8" value="#444444"/>
<input type="hidden" name="k9" value="#ee4792"/>
<input type="hidden" name="kt" value="h"/>
<input class="field" type="text" name="q" maxlength="255" placeholder="To search, type and hit Enter…"/>
<input type="submit" value="Search" style="display: none;" />
</form>
</section>
</footer>
</body>
</html>
| craigwmcclellan/craigwmcclellan.github.io | _site/2010/04/30/t13203775423.html | HTML | mit | 4,845 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<meta name="collection" content="api">
<!-- Generated by javadoc (build 1.5.0-rc) on Wed Aug 11 07:22:17 PDT 2004 -->
<TITLE>
MenuComponent (Java 2 Platform SE 5.0)
</TITLE>
<META NAME="keywords" CONTENT="java.awt.MenuComponent class">
<META NAME="keywords" CONTENT="getName()">
<META NAME="keywords" CONTENT="setName()">
<META NAME="keywords" CONTENT="getParent()">
<META NAME="keywords" CONTENT="getPeer()">
<META NAME="keywords" CONTENT="getFont()">
<META NAME="keywords" CONTENT="setFont()">
<META NAME="keywords" CONTENT="removeNotify()">
<META NAME="keywords" CONTENT="postEvent()">
<META NAME="keywords" CONTENT="dispatchEvent()">
<META NAME="keywords" CONTENT="processEvent()">
<META NAME="keywords" CONTENT="paramString()">
<META NAME="keywords" CONTENT="toString()">
<META NAME="keywords" CONTENT="getTreeLock()">
<META NAME="keywords" CONTENT="getAccessibleContext()">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="MenuComponent (Java 2 Platform SE 5.0)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MenuComponent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Standard Ed. 5.0</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../java/awt/MenuBar.AccessibleAWTMenuBar.html" title="class in java.awt"><B>PREV CLASS</B></A>
<A HREF="../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html" title="class in java.awt"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?java/awt/MenuComponent.html" target="_top"><B>FRAMES</B></A>
<A HREF="MenuComponent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
java.awt</FONT>
<BR>
Class MenuComponent</H2>
<PRE>
<A HREF="../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>java.awt.MenuComponent</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../java/io/Serializable.html" title="interface in java.io">Serializable</A></DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../java/awt/MenuBar.html" title="class in java.awt">MenuBar</A>, <A HREF="../../java/awt/MenuItem.html" title="class in java.awt">MenuItem</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>MenuComponent</B><DT>extends <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A><DT>implements <A HREF="../../java/io/Serializable.html" title="interface in java.io">Serializable</A></DL>
</PRE>
<P>
The abstract class <code>MenuComponent</code> is the superclass
of all menu-related components. In this respect, the class
<code>MenuComponent</code> is analogous to the abstract superclass
<code>Component</code> for AWT components.
<p>
Menu components receive and process AWT events, just as components do,
through the method <code>processEvent</code>.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>JDK1.0</DD>
<DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#java.awt.MenuComponent">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html" title="class in java.awt">MenuComponent.AccessibleAWTMenuComponent</A></B></CODE>
<BR>
Inner class of <code>MenuComponent</code> used to provide
default support for accessibility.</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#MenuComponent()">MenuComponent</A></B>()</CODE>
<BR>
Creates a <code>MenuComponent</code>.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#dispatchEvent(java.awt.AWTEvent)">dispatchEvent</A></B>(<A HREF="../../java/awt/AWTEvent.html" title="class in java.awt">AWTEvent</A> e)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../javax/accessibility/AccessibleContext.html" title="class in javax.accessibility">AccessibleContext</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE>
<BR>
Gets the <code>AccessibleContext</code> associated with
this <code>MenuComponent</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../java/awt/Font.html" title="class in java.awt">Font</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getFont()">getFont</A></B>()</CODE>
<BR>
Gets the font used for this menu component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getName()">getName</A></B>()</CODE>
<BR>
Gets the name of the menu component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../java/awt/MenuContainer.html" title="interface in java.awt">MenuContainer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getParent()">getParent</A></B>()</CODE>
<BR>
Returns the parent container for this menu component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.awt.peer.MenuComponentPeer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getPeer()">getPeer</A></B>()</CODE>
<BR>
<B>Deprecated.</B> <I>As of JDK version 1.1,
programs should not directly manipulate peers.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#getTreeLock()">getTreeLock</A></B>()</CODE>
<BR>
Gets this component's locking object (the object that owns the thread
sychronization monitor) for AWT component-tree and layout
operations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#paramString()">paramString</A></B>()</CODE>
<BR>
Returns a string representing the state of this
<code>MenuComponent</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#postEvent(java.awt.Event)">postEvent</A></B>(<A HREF="../../java/awt/Event.html" title="class in java.awt">Event</A> evt)</CODE>
<BR>
<B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <A HREF="../../java/awt/MenuComponent.html#dispatchEvent(java.awt.AWTEvent)"><CODE>dispatchEvent</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#processEvent(java.awt.AWTEvent)">processEvent</A></B>(<A HREF="../../java/awt/AWTEvent.html" title="class in java.awt">AWTEvent</A> e)</CODE>
<BR>
Processes events occurring on this menu component.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#removeNotify()">removeNotify</A></B>()</CODE>
<BR>
Removes the menu component's peer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../java/awt/Font.html" title="class in java.awt">Font</A> f)</CODE>
<BR>
Sets the font to be used for this menu component to the specified
font.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#setName(java.lang.String)">setName</A></B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A> name)</CODE>
<BR>
Sets the name of the component to the specified string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../java/lang/String.html" title="class in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../java/awt/MenuComponent.html#toString()">toString</A></B>()</CODE>
<BR>
Returns a representation of this menu component as a string.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="MenuComponent()"><!-- --></A><H3>
MenuComponent</H3>
<PRE>
public <B>MenuComponent</B>()
throws <A HREF="../../java/awt/HeadlessException.html" title="class in java.awt">HeadlessException</A></PRE>
<DL>
<DD>Creates a <code>MenuComponent</code>.
<P>
<DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../java/awt/HeadlessException.html" title="class in java.awt">HeadlessException</A></CODE> - if
<code>GraphicsEnvironment.isHeadless</code>
returns <code>true</code><DT><B>See Also:</B><DD><A HREF="../../java/awt/GraphicsEnvironment.html#isHeadless()"><CODE>GraphicsEnvironment.isHeadless()</CODE></A></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public <A HREF="../../java/lang/String.html" title="class in java.lang">String</A> <B>getName</B>()</PRE>
<DL>
<DD>Gets the name of the menu component.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the name of the menu component<DT><B>Since:</B></DT>
<DD>JDK1.1</DD>
<DT><B>See Also:</B><DD><A HREF="../../java/awt/MenuComponent.html#setName(java.lang.String)"><CODE>setName(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(<A HREF="../../java/lang/String.html" title="class in java.lang">String</A> name)</PRE>
<DL>
<DD>Sets the name of the component to the specified string.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the menu component<DT><B>Since:</B></DT>
<DD>JDK1.1</DD>
<DT><B>See Also:</B><DD><A HREF="../../java/awt/MenuComponent.html#getName()"><CODE>getName()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../java/awt/MenuContainer.html" title="interface in java.awt">MenuContainer</A> <B>getParent</B>()</PRE>
<DL>
<DD>Returns the parent container for this menu component.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the menu component containing this menu component,
or <code>null</code> if this menu component
is the outermost component, the menu bar itself</DL>
</DD>
</DL>
<HR>
<A NAME="getPeer()"><!-- --></A><H3>
getPeer</H3>
<PRE>
<FONT SIZE="-1"><A HREF="../../java/lang/Deprecated.html" title="annotation in java.lang">@Deprecated</A>
</FONT>public java.awt.peer.MenuComponentPeer <B>getPeer</B>()</PRE>
<DL>
<DD><B>Deprecated.</B> <I>As of JDK version 1.1,
programs should not directly manipulate peers.</I>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getFont()"><!-- --></A><H3>
getFont</H3>
<PRE>
public <A HREF="../../java/awt/Font.html" title="class in java.awt">Font</A> <B>getFont</B>()</PRE>
<DL>
<DD>Gets the font used for this menu component.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the font used in this menu component, if there is one;
<code>null</code> otherwise<DT><B>See Also:</B><DD><A HREF="../../java/awt/MenuComponent.html#setFont(java.awt.Font)"><CODE>setFont(java.awt.Font)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setFont(java.awt.Font)"><!-- --></A><H3>
setFont</H3>
<PRE>
public void <B>setFont</B>(<A HREF="../../java/awt/Font.html" title="class in java.awt">Font</A> f)</PRE>
<DL>
<DD>Sets the font to be used for this menu component to the specified
font. This font is also used by all subcomponents of this menu
component, unless those subcomponents specify a different font.
<p>
Some platforms may not support setting of all font attributes
of a menu component; in such cases, calling <code>setFont</code>
will have no effect on the unsupported font attributes of this
menu component. Unless subcomponents of this menu component
specify a different font, this font will be used by those
subcomponents if supported by the underlying platform.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>f</CODE> - the font to be set<DT><B>See Also:</B><DD><A HREF="../../java/awt/MenuComponent.html#getFont()"><CODE>getFont()</CODE></A>,
<A HREF="../../java/awt/Font.html#getAttributes()"><CODE>Font.getAttributes()</CODE></A>,
<A HREF="../../java/awt/font/TextAttribute.html" title="class in java.awt.font"><CODE>TextAttribute</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="removeNotify()"><!-- --></A><H3>
removeNotify</H3>
<PRE>
public void <B>removeNotify</B>()</PRE>
<DL>
<DD>Removes the menu component's peer. The peer allows us to modify the
appearance of the menu component without changing the functionality of
the menu component.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="postEvent(java.awt.Event)"><!-- --></A><H3>
postEvent</H3>
<PRE>
<FONT SIZE="-1"><A HREF="../../java/lang/Deprecated.html" title="annotation in java.lang">@Deprecated</A>
</FONT>public boolean <B>postEvent</B>(<A HREF="../../java/awt/Event.html" title="class in java.awt">Event</A> evt)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <A HREF="../../java/awt/MenuComponent.html#dispatchEvent(java.awt.AWTEvent)"><CODE>dispatchEvent</CODE></A>.</I>
<P>
<DD>Posts the specified event to the menu.
This method is part of the Java 1.0 event system
and it is maintained only for backwards compatibility.
Its use is discouraged, and it may not be supported
in the future.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>evt</CODE> - the event which is to take place</DL>
</DD>
</DL>
<HR>
<A NAME="dispatchEvent(java.awt.AWTEvent)"><!-- --></A><H3>
dispatchEvent</H3>
<PRE>
public final void <B>dispatchEvent</B>(<A HREF="../../java/awt/AWTEvent.html" title="class in java.awt">AWTEvent</A> e)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="processEvent(java.awt.AWTEvent)"><!-- --></A><H3>
processEvent</H3>
<PRE>
protected void <B>processEvent</B>(<A HREF="../../java/awt/AWTEvent.html" title="class in java.awt">AWTEvent</A> e)</PRE>
<DL>
<DD>Processes events occurring on this menu component.
<p>Note that if the event parameter is <code>null</code>
the behavior is unspecified and may result in an
exception.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>e</CODE> - the event<DT><B>Since:</B></DT>
<DD>JDK1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="paramString()"><!-- --></A><H3>
paramString</H3>
<PRE>
protected <A HREF="../../java/lang/String.html" title="class in java.lang">String</A> <B>paramString</B>()</PRE>
<DL>
<DD>Returns a string representing the state of this
<code>MenuComponent</code>. This method is intended to be used
only for debugging purposes, and the content and format of the
returned string may vary between implementations. The returned
string may be empty but may not be <code>null</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the parameter string of this menu component</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public <A HREF="../../java/lang/String.html" title="class in java.lang">String</A> <B>toString</B>()</PRE>
<DL>
<DD>Returns a representation of this menu component as a string.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this menu component</DL>
</DD>
</DL>
<HR>
<A NAME="getTreeLock()"><!-- --></A><H3>
getTreeLock</H3>
<PRE>
protected final <A HREF="../../java/lang/Object.html" title="class in java.lang">Object</A> <B>getTreeLock</B>()</PRE>
<DL>
<DD>Gets this component's locking object (the object that owns the thread
sychronization monitor) for AWT component-tree and layout
operations.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>this component's locking object</DL>
</DD>
</DL>
<HR>
<A NAME="getAccessibleContext()"><!-- --></A><H3>
getAccessibleContext</H3>
<PRE>
public <A HREF="../../javax/accessibility/AccessibleContext.html" title="class in javax.accessibility">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE>
<DL>
<DD>Gets the <code>AccessibleContext</code> associated with
this <code>MenuComponent</code>.
The method implemented by this base class returns <code>null</code>.
Classes that extend <code>MenuComponent</code>
should implement this method to return the
<code>AccessibleContext</code> associated with the subclass.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the <code>AccessibleContext</code> of this
<code>MenuComponent</code></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MenuComponent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Standard Ed. 5.0</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../java/awt/MenuBar.AccessibleAWTMenuBar.html" title="class in java.awt"><B>PREV CLASS</B></A>
<A HREF="../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html" title="class in java.awt"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?java/awt/MenuComponent.html" target="_top"><B>FRAMES</B></A>
<A HREF="MenuComponent.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="../../../relnotes/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to <a href="../../../relnotes/license.html">license terms</a>. Also see the <a href="http://java.sun.com/docs/redist.html">documentation redistribution policy</a>.</font>
<!-- Start SiteCatalyst code -->
<script language="JavaScript" src="http://www.oracle.com/ocom/groups/systemobject/@mktg_admin/documents/systemobject/s_code_download.js"></script>
<script language="JavaScript" src="http://www.oracle.com/ocom/groups/systemobject/@mktg_admin/documents/systemobject/s_code.js"></script>
<!-- ********** DO NOT ALTER ANYTHING BELOW THIS LINE ! *********** -->
<!-- Below code will send the info to Omniture server -->
<script language="javascript">var s_code=s.t();if(s_code)document.write(s_code)</script>
<!-- End SiteCatalyst code -->
</body>
</HTML>
| Smolations/more-dash-docsets | docsets/Java 5.docset/Contents/Resources/Documents/java/awt/MenuComponent.html | HTML | mit | 28,810 |
# Configure SSO Integration for Dropbox
The Dropbox [Single Sign-on (SSO)](https://auth0.com/docs/sso) Integration creates a client application that uses Auth0 for authentication and provides SSO capabilities for Dropbox. Your users log in to Dropbox with Auth0 [identity providers](https://auth0.com/docs/identityproviders), which means the identity provider performs the identity credentials verification.
| auth0/docs | snippets/sso-integrations/dropbox/0.md | Markdown | mit | 409 |
Compiling/running fishcoind unit tests
------------------------------------
fishcoind unit tests are in the `src/test/` directory; they
use the Boost::Test unit-testing framework.
To compile and run the tests:
cd src
make -f makefile.unix test_fishcoin # Replace makefile.unix if you're not on unix
./test_fishcoin # Runs the unit tests
If all tests succeed the last line of output will be:
`*** No errors detected`
To add more tests, add `BOOST_AUTO_TEST_CASE` functions to the existing
.cpp files in the test/ directory or add new .cpp files that
implement new BOOST_AUTO_TEST_SUITE sections (the makefiles are
set up to add test/*.cpp to test_fishcoin automatically).
Compiling/running Fishcoin-Qt unit tests
---------------------------------------
Bitcoin-Qt unit tests are in the src/qt/test/ directory; they
use the Qt unit-testing framework.
To compile and run the tests:
qmake bitcoin-qt.pro BITCOIN_QT_TEST=1
make
./fishcoin-qt_test
To add more tests, add them to the `src/qt/test/` directory,
the `src/qt/test/test_main.cpp` file, and bitcoin-qt.pro.
| fishcoin/fishcoin | doc/unit-tests.md | Markdown | mit | 1,081 |
package com.rrajath.orange;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
| rrajath/Orange | app/src/main/java/com/rrajath/orange/MainActivity.java | Java | mit | 1,118 |
### Oct 18, 2013
- Use the default Redis maxmemory policy, volatile-lru instead of volatile-ttl
- Create user activity if failed password match occurs for Basic auth
### Oct 17, 2013
- Increment task ID using Redis incr command
### Oct 16, 2013
- Basic and Token authentication comply with rfc dealing with realm param.
### Oct 13, 2013
- Add categories to tasks
### Oct 12, 2013
- Requests now use a Redis connection pool
- Expose server config as global
- Add time to uuid when generating tokens
### Oct 09, 2013
- Add device set retrieval handler
- Add activities retrieval handler
- Add handlers to retrieve tasks
- Complete task removal handler
- When removing user remove tasks
- Complete task creation handler
- Complete update task handler
### Oct 06, 2013
- Complete remove user handler
- Implement user and device removal
- Complete all device handlers
- Complete user activity logging
### Oct 05, 2013
- Complete user create handler
- Complete update user handler
- Complete get user handler
- Token struct to manage tokens
- Remove option to authenticate with query param
- Implement Basic and Token authentications
- Implement user and device retrieval
### Oct 04, 2013
- Replace Validate with Validations and add HandlerValidations to manage HTTP
- Add db code to validate and save user data
### Oct 03, 2013
- Add code to connect to the Redis db
### Sep 24, 2013
- Create routing mechanisms
- Add validation errors
- Add validation function
- Add user create handler that validates data
### Sep 21, 2013
- Create upstart scripts for moln and redis
- db directory now data
- log files have .log
- add dev script replacing setup
- add deploy script
- move not found handler calls to main server handler
### Sep 19, 2013
- Refactor configurations
- Use Procfiles to run servers
- Setup script should only create log dir if superuser
- Get server config depending on environment
- Add router and basic http server
| larzconwell/moln | CHANGELOG.md | Markdown | mit | 1,937 |
package org.zezutom.schematic.model.json;
import org.zezutom.schematic.service.generator.json.StringGenerator;
public class StringNodeTest extends NodeTestCase<String, StringGenerator, StringNode> {
@Override
StringNode newInstance(String name, StringGenerator generator) {
return new StringNode(name, generator);
}
@Override
Class<StringGenerator> getGeneratorClass() {
return StringGenerator.class;
}
@Override
String getTestValue() {
return "test";
}
}
| zezutom/schematic | src/test/java/org/zezutom/schematic/model/json/StringNodeTest.java | Java | mit | 521 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SassApp</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for "head"}}
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/sass-app.css">
{{content-for "head-footer"}}
</head>
<body>
{{content-for "body"}}
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/sass-app.js"></script>
{{content-for "body-footer"}}
</body>
</html>
| salsify/ember-css-modules | test-packages/sass-app/app/index.html | HTML | mit | 692 |
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Reservation's</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="row">
<div class="col-lg-12">
<?php if($this->session->flashdata('approved_success')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("approved_success"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('approved_failed')): ?>
<?= "<div class='alert alert-danger'>". $this->session->flashdata("approved_failed"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('reject_success')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("reject_success"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('invoice_ok')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("invoice_ok"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('invoice_cancel')): ?>
<?= "<div class='alert alert-success'>". $this->session->flashdata("invoice_cancel"). "</div>"; ?>
<?php endif; ?>
<?php if($this->session->flashdata('reject_failed')): ?>
<?= "<div class='alert alert-danger'>". $this->session->flashdata("reject_failed"). "</div>"; ?>
<?php endif; ?>
</div>
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
User Appointement's
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<th>SNo</th>
<th>Invoice</th>
<th>Appartment</th>
<th>Owner</th>
<th>Buy User</th>
<th>Appointment Ok</th>
<th>Appointemnt Cencel</th>
<th>Invoice Date</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php foreach($book as $app): ?>
<?php $app->invoice_date;
?>
<?php
$current = strtotime(date('m/d/Y'));
$invoice_date = strtotime($app->invoice_date);
$sub = $invoice_date-$current;
$days = floor($sub/(60*60*24));
$result = explode("-",$days);
?>
<tr>
<td><?php echo $i++; ?></td>
<td><?= $app->invoice; ?></td>
<td><a href="<?php echo base_url('admin/admin_controller/appartment_details/'.$app->appartement_id.'');?>">Appartment Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/user_details/'.$app->owner_id.'');?>">Owner Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/user_details/'.$app->buy_user_id.'');?>">Buy User Details</a></td>
<td><a href="<?php echo base_url('admin/admin_controller/invoice_ok/'.$app->appartement_id.'');?>" class="btn btn-success"><span class="glyphicon glyphicon-ok"></span></a></td>
<td><a href="<?php echo base_url('admin/admin_controller/invoice_cancel/'.$app->appartement_id.'');?>" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span></a></td>
<?php if($days == 1): ?>
<td><?php echo "Today"; ?></td>
<?php else: ?>
<td><?php echo $result[1]." Days"; ?></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<!-- /.table-responsive -->
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div> | shakilkhan12/Rent_Room | application/views/admin/parts/book.php | PHP | mit | 5,242 |
module.exports = require('eden-class').extend(function() {
/* Require
-------------------------------*/
/* Constants
-------------------------------*/
/* Public.Properties
-------------------------------*/
/* Protected Properties
-------------------------------*/
this._table = null;
this._where = [];
/* Private Properties
-------------------------------*/
/* Magic
-------------------------------*/
this.___construct = function(table) {
this.argument().test(1, 'string', 'undef');
if(typeof table === 'string') {
this.setTable(table);
}
};
/* Public.Methods
-------------------------------*/
/**
* Set the table name in which you want to delete from
*
* @param string name
* @return this
*/
this.setTable = function(table) {
//argument test
this.argument().test(1, 'string');
this._table = table;
return this;
};
/**
* Returns the string version of the query
*
* @param bool
* @return string
* @notes returns the query based on the registry
*/
this.getQuery = function() {
return 'DELETE FROM {TABLE} WHERE {WHERE};'
.replace('{TABLE}' , this._table)
.replace('{WHERE}' , this._where.join(' AND '));
};
/**
* Where clause
*
* @param array|string where
* @return this
* @notes loads a where phrase into registry
*/
this.where = function(where) {
//Argument 1 must be a string or array
this.argument().test(1, 'string', 'array');
if(typeof where === 'string') {
where = [where];
}
this._where = this._where.concat(where);
return this;
};
/* Protected Methods
-------------------------------*/
/* Private Methods
-------------------------------*/
}).register('eden/mysql/delete'); | edenjs/mysql | mysql/delete.js | JavaScript | mit | 1,715 |
# A short history
## < v0.2
- node was event based
| thomaspeklak/nodejs-vienna-streams-presentation | presentation02.md | Markdown | mit | 55 |
<HTML><HEAD>
<TITLE>Review for Ed Wood (1994)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0109707">Ed Wood (1994)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Eric+Grossman">Eric Grossman</A></H3><HR WIDTH="40%" SIZE="4">
<PRE> ED WOOD
A film review by Eric Grossman
Copyright 1994 LOS ANGELES INDEPENDENT</PRE>
<P> Transvestites, flying-saucers, and alien grave-robbers, how could
anyone ask for more? Director Tim Burton's latest effort, ED WOOD
offers all of this and yes, far, far more. Burton (BATMAN, EDWARD
SCISSORHANDS) has always been a director who is long on mood and
atmosphere but short on story skills. For ED WOOD, Burton comes in
swinging not only with his usual arsenal of visuals but also with a
strong narrative to tell this story of a cross-dressing B, or make that
C-movie filmmaker.</P>
<P> Johnny Depp, a good actor who does not mind risky roles, plays Ed
Wood, the director who is remembered for making one of the best, worst
films of all time, PLAN 9 FROM OUTER SPACE. Depp's performance is a
caricature but he is successful in bringing out a deeper emotionalism
that makes us genuinely like Ed. Struggling to make it in Hollywood as
an actor/writer and director, just like his idol Orson Wells, Ed is
able to convince a B-movie producer to allow him to make a film about
a man who becomes a woman. Ed believes he is the best for the job
because he himself likes to wear women's clothing, especially angora
sweaters. Ed makes his first film, GLEN OR GLENDA?, in which he
stars with his girlfriend Dolores Fuller (Sara Jessica Parker). After
giving Dolores the script, Ed confesses to her that he has an affinity
for wearing women's garments. Shocked and confused, Dolores is at
least comforted when she learns why her angora sweaters always seemed
to be mysteriously stretched out. As much as she tries, Dolores can
never accept Ed's non-conformist behavior and ultimately their
relationship does not survive. However, Ed does meet Kathy O'Hara
(Patricia Arquette), a quiet, sweet woman who understands that Ed's
desire to cross-dress is not a perversion, but is instead a way for him
to express his deep love for women.</P>
<P> The true treat of the film is Martin Landau who plays famous
DRACULA star, Bela Lugosi. Delivering a performance full of warmth,
humor and sorrow, Landau once again proves that he is one of the best
character actors working today. Long forgotten by the Hollywood
machine that "chews you up and spits you out," Lugosi's career and life
is on the rocks. In a chance encounter, Ed meets Lugosi and a deep
friendship begins. Their relationship is the backbone of the story as
they inspire and aid each other in times of need. In addition to his
charm and other endearing qualities, screenwriters Scott Alexander and
Larry Karaszewski do not gloss over the fact that Lugosi was hooked on
morphine. It is more than once that he calls Ed up in the middle of
the night, in a semi-conscious voice, begging for help. For Ed, Lugosi
validates his "art" as well as being an important element in getting
his pictures made. The friendship is a father/son relationship where
they each take turns being the father and the son.</P>
<P> As we watch Ed try desperately to get his films made, we find
ourselves both laughing at him and admiring him for his courage.
It takes guts to make "your" film, especially when everyone thinks
it is garbage. As bizarre and funny as it is, it takes guts to
admit you like to wear women's clothing and then walk out on the
set in a skirt, heels, and a wig while yelling "okay, everyone,
let's make this movie." Finally, Ed is a portrait of pure
determination. He is able to get PLAN 9 made by promising a Beverly
Hills Baptist church that their investment in a sci-fi/horror film
would bring enough profits to finance religious films. As Bill
Murray's silly Bunny Beckinridge asks Ed, "How do you do it? How do
you convince all your friends to get baptized just so you can make a
monster movie?" The answer, charm and persistence.</P>
<P> Like all of Burton's films, ED WOOD is pure eye-candy. The
black-and-white cinematography is by Stefan Czapsky and the atmospheric
production design was created by Tom Duffield. The serio-comic score
was composed by Howard Shore and the film was edited by Chris
Lebenzon. Ed's angora sweaters and pumps as well as the other
character's outfits were put together by costume designer Colleen
Atwood. Other cast members include Jeffrey Jones and Vincent D'Onofrio
in a small part as Orson Wells.</P>
<P> As endearing as it is bizarre, ED WOOD is a very entertaining
movie that achieves what it aspires to be, an unconventional film about
an unconventional man.</P>
<PRE>.
</PRE>
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
| xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/2932.html | HTML | mit | 5,831 |
<?php
/*
* This file is part of PHPExifTool.
*
* (c) 2012 Romain Neutron <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\Olympus;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class WBGLevel extends AbstractTag
{
protected $Id = 287;
protected $Name = 'WB_GLevel';
protected $FullName = 'Olympus::ImageProcessing';
protected $GroupName = 'Olympus';
protected $g0 = 'MakerNotes';
protected $g1 = 'Olympus';
protected $g2 = 'Camera';
protected $Type = 'int16u';
protected $Writable = true;
protected $Description = 'WB G Level';
protected $flag_Permanent = true;
}
| romainneutron/PHPExiftool | lib/PHPExiftool/Driver/Tag/Olympus/WBGLevel.php | PHP | mit | 835 |
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=python -msphinx
)
set SOURCEDIR=.
set BUILDDIR=_build
set SPHINXPROJ=Bot-Chucky
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
echo.then set the SPHINXBUILD environment variable to point to the full
echo.path of the 'sphinx-build' executable. Alternatively you may add the
echo.Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
:end
popd
| MichaelYusko/Bot-Chucky | docs/make.bat | Batchfile | mit | 808 |
const path = require('path');
const { expect } = require('chai');
const delay = require('../../../../lib/utils/delay');
describe('Compiler service', () => {
it('Should execute a basic test', async () => {
await runTests('testcafe-fixtures/basic-test.js', 'Basic test');
});
it('Should handle an error', async () => {
try {
await runTests('testcafe-fixtures/error-test.js', 'Throw an error', { shouldFail: true });
}
catch (err) {
expect(err[0].startsWith([
`The specified selector does not match any element in the DOM tree. ` +
` > | Selector('#not-exists') ` +
` [[user-agent]] ` +
` 1 |fixture \`Compiler service\`;` +
` 2 |` +
` 3 |test(\`Throw an error\`, async t => {` +
` > 4 | await t.click('#not-exists');` +
` 5 |});` +
` 6 | at <anonymous> (${path.join(__dirname, 'testcafe-fixtures/error-test.js')}:4:13)`
])).to.be.true;
}
});
it('Should allow using ClientFunction in assertions', async () => {
await runTests('testcafe-fixtures/client-function-in-assertions.js', 'ClientFunction in assertions');
});
it('Should execute Selectors in sync mode', async () => {
await runTests('testcafe-fixtures/synchronous-selectors.js');
});
it('debug', async () => {
let resolver = null;
const result = new Promise(resolve => {
resolver = resolve;
});
runTests('testcafe-fixtures/debug.js')
.then(() => resolver());
setTimeout(async () => {
const client = global.testCafe.runner.compilerService.cdp;
await client.Debugger.resume();
await delay(1000);
await client.Debugger.resume();
}, 10000);
return result;
});
});
| AndreyBelym/testcafe | test/functional/fixtures/compiler-service/test.js | JavaScript | mit | 1,948 |
package rd2wgs84
import (
"testing"
)
var parseTests = []struct {
in RD
out *WGS84
}{
{RD{163835.370083, 446830.763585}, &WGS84{52.00977421758342, 5.515894213047998}},
}
func TestConvert(t *testing.T) {
for i, tt := range parseTests {
wgs := Convert(tt.in.X, tt.in.Y)
if wgs.Latitude != tt.out.Latitude || wgs.Longitude != tt.out.Longitude {
t.Errorf("%d. Convert(%f, %f) => %+v returned, expected %+v", i, tt.in.X, tt.in.Y, wgs, tt.out)
}
}
}
| mvmaasakkers/go-rd2wgs84 | rd2wgs84_test.go | GO | mit | 463 |
body,html,p{
padding:0px;
margin:0px;
overflow:hidden;
}
a{
color:white;
}
.infoBox{
position:absolute;
top: 10px;
left: 10px;
}
.play,.stop{
margin:5px;
color:black;
width:100px;
height:50px;
background-color:white;
}
.title{
font-family:arial;
color:white;
}
.debug{
font-family:arial;
color:white;
}
.small{
font-size:8px;
} | JakeSiegers/JavascriptMusicVisualizer | css/style.css | CSS | mit | 344 |
FRTMProDesigner
===============
3D Surveillance Designer
========================
- 3D rendering developed with modern OpenGL including vertex & fragment shaders
- Makes use of projective texture mapping
- Developed software using OOP principles and design patterns
- Doxygen documentation: http://jaybird19.github.io/FRTMProDesign/
- Technologies: Qt, C++11, STL, OpenGL, GLSL, GLM
- Demo video: https://www.youtube.com/watch?v=G1GyezFv3XE
-
Usage
=====
- Run FRTM3DProDesign
- Load the .obj file: File --> Load OBJ Model or Ctrl+N
- Open the sample model found in ./assets/models/OfficeModel.obj
- Move around the 3D model using your mouse and WASD keys
- Drag and Drop the Camera logo into the desired location in the 3D world
- The green frustum represents the camera's field of coverage
- Provide a more relevant name for the Camera on the left pane
- On the left pane you can modify the Camera's FOVx (default 60) and Aspect Ratio (default 1.33)
- Toggle the Show Full Coverage on the left pane to see the full view of a PTZ camera
- The bottom left window displays the Camera's view, use the mouse to adjust the selected camera's angle
- The Camera View Window can be popped by double-clicking its top bar
- Right click and use the mouse to move the slected camera around the 3D model
- Double-click the camera's name or click the camera's logo in the 3D world to select a camera and display its view in the Camera View Window
- Undo button is provided to undo any changes made to the state of the world
- Use the Delete button to delete the selected camera from the world
Screenshots
===========
Main Window (Drag and Drop Cameras)

Enhanced Camera View

Tested Platforms
================
- Windows 7 (x86-64)
- Windows 10 (x86-64)
- Ubuntu 15.10 (x86-64) (TODO: Not complete yet)
Dependencies
============
- Minimum supported OpenGL version 3.3
- Qt5 (Open Source and freely available http://www.qt.io/)
- MSVC/nmake for Windows
- make/gcc for Linux
- libglew for Linux (sudo apt-get install libglew-dev)
Building Instructions
=====================
- Windows
```bash
git clone https://github.com/jaybird19/FRTMProDesign.git
cd FRTMProDesign
qmake
nmake release
nmake debug
nmake install
```
- To generate a Visual Studio Solution:
```bash
qmake -r -tp vc
```
- Linux (Port to Linux is still not complete)
```bash
git clone https://github.com/jaybird19/FRTMProDesign.git
cd FRTMProDesign
qmake
make release
make debug
```
| jaybird19/FRTMProDesign | README.md | Markdown | mit | 2,589 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>color: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.0 / color - 1.3.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
color
<small>
1.3.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-08 16:59:48 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-08 16:59:48 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.5.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Frédéric Blanqui"
"Adam Koprowski"
"Sébastien Hinderer"
"Pierre-Yves Strub"
"Sidi Ould Biha"
"Solange Coupet-Grimal"
"William Delobel"
"Hans Zantema"
"Stéphane Leroux"
"Léo Ducas"
"Johannes Waldmann"
"Qiand Wang"
"Lianyi Zhang"
"Sorin Stratulat"
]
license: "CeCILL"
homepage: "http://color.inria.fr/"
bug-reports: "[email protected]"
build: [
[make "-j%{jobs}%"]
]
install: [make "-f" "Makefile.coq" "install"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [
"date:2017-01-11"
"logpath:CoLoR"
"category:Computer Science/Algorithms/Correctness proofs of algorithms"
"category:Computer Science/Data Types and Data Structures"
"category:Computer Science/Lambda Calculi"
"category:Mathematics/Algebra"
"category:Mathematics/Combinatorics and Graph Theory"
"category:Mathematics/Logic/Type theory"
"category:Miscellaneous/Extracted Programs/Type checking unification and normalization"
"keyword:rewriting"
"keyword:termination"
"keyword:lambda calculus"
"keyword:list"
"keyword:multiset"
"keyword:polynomial"
"keyword:vectors"
"keyword:matrices"
"keyword:FSet"
"keyword:FMap"
"keyword:term"
"keyword:context"
"keyword:substitution"
"keyword:universal algebra"
"keyword:varyadic term"
"keyword:string"
"keyword:alpha-equivalence"
"keyword:de Bruijn indices"
"keyword:simple types"
"keyword:matching"
"keyword:unification"
"keyword:relation"
"keyword:ordering"
"keyword:quasi-ordering"
"keyword:lexicographic ordering"
"keyword:ring"
"keyword:semiring"
"keyword:well-foundedness"
"keyword:noetherian"
"keyword:finitely branching"
"keyword:dependent choice"
"keyword:infinite sequences"
"keyword:non-termination"
"keyword:loop"
"keyword:graph"
"keyword:path"
"keyword:transitive closure"
"keyword:strongly connected component"
"keyword:topological ordering"
"keyword:rpo"
"keyword:horpo"
"keyword:dependency pair"
"keyword:dependency graph"
"keyword:semantic labeling"
"keyword:reducibility"
"keyword:Girard"
"keyword:fixpoint theorem"
"keyword:Tarski"
"keyword:pigeon-hole principle"
"keyword:Ramsey theorem"
]
synopsis: "A library on rewriting theory and termination"
url {
src: "http://files.inria.fr/blanqui/color/color.1.3.0.tar.gz"
checksum: "md5=f02aa2ff0545df6884f0ad71de7c2a21"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-color.1.3.0 coq.8.5.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.0).
The following dependencies couldn't be met:
- coq-color -> coq >= 8.6 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-color.1.3.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.0/color/1.3.0.html | HTML | mit | 9,196 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lemma-overloading: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / lemma-overloading - 8.11.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
lemma-overloading
<small>
8.11.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-02 19:48:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-02 19:48:15 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.12 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.7.1+2 Formal proof management system.
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-community/lemma-overloading"
dev-repo: "git+https://github.com/coq-community/lemma-overloading.git"
bug-reports: "https://github.com/coq-community/lemma-overloading/issues"
doc: "https://coq-community.github.io/lemma-overloading/"
license: "GPL-3.0-or-later"
synopsis: "Libraries demonstrating design patterns for programming and proving with canonical structures in Coq"
description: """
This project contains Hoare Type Theory libraries which
demonstrate a series of design patterns for programming
with canonical structures that enable one to carefully
and predictably coax Coq's type inference engine into triggering
the execution of user-supplied algorithms during unification, and
illustrates these patterns through several realistic examples drawn
from Hoare Type Theory. The project also contains typeclass-based
re-implementations for comparison."""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"coq" {(>= "8.10" & < "8.12~") | (= "dev")}
"coq-mathcomp-ssreflect" {(>= "1.7" & < "1.12~") | (= "dev")}
]
tags: [
"category:Computer Science/Data Types and Data Structures"
"keyword:canonical structures"
"keyword:proof automation"
"keyword:hoare type theory"
"keyword:lemma overloading"
"logpath:LemmaOverloading"
"date:2020-02-01"
]
authors: [
"Georges Gonthier"
"Beta Ziliani"
"Aleksandar Nanevski"
"Derek Dreyer"
]
url {
src: "https://github.com/coq-community/lemma-overloading/archive/v8.11.0.tar.gz"
checksum: "sha512=58df76ccd7a76da1ca5460d6fc6f8a99fa7f450678098fa45c2e2b92c2cb658586b9abd6c0e3c56177578a28343c287b232ebc07448078f2a218c37db130b3d7"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-lemma-overloading.8.11.0 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-lemma-overloading -> coq >= dev
no matching version
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lemma-overloading.8.11.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.7.1+2/lemma-overloading/8.11.0.html | HTML | mit | 7,897 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ltac2: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.10.2 / ltac2 - 0.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ltac2
<small>
0.1
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-07-11 07:20:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-11 07:20:54 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
name: "coq-ltac2"
maintainer: "Pierre-Marie Pédrot <[email protected]>"
license: "LGPL 2.1"
homepage: "https://github.com/coq/ltac2"
dev-repo: "git+https://github.com/coq/ltac2.git"
bug-reports: "https://github.com/coq/ltac2/issues"
build: [
[make "COQBIN=\"\"" "-j%{jobs}%"]
]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
synopsis: "A tactic language for Coq"
authors: "Pierre-Marie Pédrot <[email protected]>"
url {
src: "https://github.com/coq/ltac2/archive/0.1.tar.gz"
checksum: "sha256=f03d81d0cf9f28bfb82bbf3c371fbab5878d0923952459739282f173dea816a8"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ltac2.0.1 coq.8.10.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.2).
The following dependencies couldn't be met:
- coq-ltac2 -> coq < 8.9~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ltac2.0.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.10.2/ltac2/0.1.html | HTML | mit | 6,591 |
<?php
return array (
'id' => 'mot_v3i_ver1_sub080305r',
'fallback' => 'mot_v3i_ver1',
'capabilities' =>
array (
),
);
| cuckata23/wurfl-data | data/mot_v3i_ver1_sub080305r.php | PHP | mit | 129 |
---
layout: page
title: Orr Dart Tech Conference
date: 2016-05-24
author: Jack Blankenship
tags: weekly links, java
status: published
summary: Sed molestie molestie dignissim. Pellentesque hendrerit ac.
banner: images/banner/meeting-01.jpg
booking:
startDate: 09/07/2016
endDate: 09/09/2016
ctyhocn: ONTNPHX
groupCode: ODTC
published: true
---
Morbi ipsum metus, porttitor a felis et, porta porta sem. Pellentesque sit amet nulla ullamcorper, suscipit risus ac, feugiat nunc. Nunc ornare odio at orci gravida maximus. Vestibulum sed sapien velit. Suspendisse justo orci, porta non ex mollis, dictum porta dolor. Suspendisse potenti. Mauris tristique, ipsum sit amet porta dignissim, urna nunc faucibus quam, a dapibus nunc urna eu ante. Duis porta mi in lectus feugiat venenatis. Aliquam arcu lacus, dictum at rutrum ac, elementum ac elit. Nulla at efficitur velit, quis ornare felis. Quisque ullamcorper mi arcu, ac aliquam enim efficitur eget. Ut eros nibh, congue et rutrum non, pretium at ipsum. Nullam ultrices augue tristique, rhoncus odio vitae, ullamcorper sapien.
* Maecenas vehicula ipsum in orci consectetur sodales
* Nam blandit quam at tempus tristique
* Ut in quam a nisi rhoncus ultricies ut sed risus.
Vestibulum aliquet metus elit. Cras condimentum ante ac est volutpat rhoncus. Etiam pulvinar ac justo sed pretium. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent dictum ultricies libero, eu porta diam porttitor quis. Duis sed purus euismod, varius sem nec, suscipit ante. Vestibulum malesuada eu metus in elementum. Vestibulum leo nisi, pellentesque sit amet iaculis vitae, dignissim ac ligula. Pellentesque venenatis rhoncus orci ut pellentesque. Proin ac imperdiet quam. Aliquam condimentum non enim ut bibendum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
| KlishGroup/prose-pogs | pogs/O/ONTNPHX/ODTC/index.md | Markdown | mit | 1,883 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GoobyCoin</source>
<translation>Про GoobyCoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>GoobyCoin</b> version</source>
<translation>Версія <b>GoobyCoin'a<b></translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
Це програмне забезпечення є експериментальним.
Поширюється за ліцензією MIT/X11, додаткова інформація міститься у файлі COPYING, а також за адресою http://www.opensource.org/licenses/mit-license.php.
Цей продукт включає в себе програмне забезпечення, розроблене в рамках проекту OpenSSL (http://www.openssl.org/), криптографічне програмне забезпечення, написане Еріком Янгом ([email protected]), та функції для роботи з UPnP, написані Томасом Бернардом.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>Авторське право</translation>
</message>
<message>
<location line="+0"/>
<source>The GoobyCoin developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Адресна книга</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Двічі клікніть на адресу чи назву для їх зміни</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Створити нову адресу</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Копіювати виділену адресу в буфер обміну</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Створити адресу</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your GoobyCoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation>Це ваші адреси для отримання платежів. Ви можете давати різні адреси різним людям, таким чином маючи можливість відслідкувати хто конкретно і скільки вам заплатив.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Скопіювати адресу</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Показати QR-&Код</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a GoobyCoin address</source>
<translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>&Підписати повідомлення</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Вилучити вибрані адреси з переліку</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>Експортувати дані з поточної вкладки в файл</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified GoobyCoin address</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>Перевірити повідомлення</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Видалити</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your GoobyCoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>Скопіювати &мітку</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Редагувати</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+265"/>
<source>Export Address Book Data</source>
<translation>Експортувати адресну книгу</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Файли відділені комами (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Помилка при експортуванні</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Неможливо записати у файл %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Назва</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адреса</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(немає назви)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Діалог введення паролю</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Введіть пароль</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Новий пароль</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Повторіть пароль</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Введіть новий пароль для гаманця.<br/>Будь ласка, використовуйте паролі що містять <b>як мінімум 10 випадкових символів</b>, або <b>як мінімум 8 слів</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Зашифрувати гаманець</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Ця операція потребує пароль для розблокування гаманця.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Розблокувати гаманець</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Ця операція потребує пароль для дешифрування гаманця.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Дешифрувати гаманець</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Змінити пароль</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Ввести старий та новий паролі для гаманця.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Підтвердити шифрування гаманця</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>!</source>
<translation>УВАГА: Якщо ви зашифруєте гаманець і забудете пароль, ви <b>ВТРАТИТЕ ВСІ СВОЇ БІТКОІНИ</b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Ви дійсно хочете зашифрувати свій гаманець?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Увага: Ввімкнено Caps Lock!</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Гаманець зашифровано</translation>
</message>
<message>
<location line="-56"/>
<source>GoobyCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your goobycoins from being stolen by malware infecting your computer.</source>
<translation>Біткоін-клієнт буде закрито для завершення процесу шифрування. Пам'ятайте, що шифрування гаманця не може повністю захистити ваші біткоіни від крадіжки, у випадку якщо ваш комп'ютер буде інфіковано шкідливими програмами.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Не вдалося зашифрувати гаманець</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Виникла помилка під час шифрування гаманця. Ваш гаманець не було зашифровано.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Введені паролі не співпадають.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Не вдалося розблокувати гаманець</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Введений пароль є невірним.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Не вдалося розшифрувати гаманець</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Пароль було успішно змінено.</translation>
</message>
</context>
<context>
<name>GoobyCoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+254"/>
<source>Sign &message...</source>
<translation>&Підписати повідомлення...</translation>
</message>
<message>
<location line="+246"/>
<source>Synchronizing with network...</source>
<translation>Синхронізація з мережею...</translation>
</message>
<message>
<location line="-321"/>
<source>&Overview</source>
<translation>&Огляд</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Показати загальний огляд гаманця</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>Транзакції</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Переглянути історію транзакцій</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Редагувати список збережених адрес та міток</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Показати список адрес для отримання платежів</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>&Вихід</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Вийти</translation>
</message>
<message>
<location line="+7"/>
<source>Show information about GoobyCoin</source>
<translation>Показати інформацію про GoobyCoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>&Про Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Показати інформацію про Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Параметри...</translation>
</message>
<message>
<location line="+9"/>
<source>&Encrypt Wallet...</source>
<translation>&Шифрування гаманця...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Резервне копіювання гаманця...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Змінити парол&ь...</translation>
</message>
<message>
<location line="+251"/>
<source>Importing blocks from disk...</source>
<translation>Імпорт блоків з диску...</translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-319"/>
<source>Send coins to a GoobyCoin address</source>
<translation>Відправити монети на вказану адресу</translation>
</message>
<message>
<location line="+52"/>
<source>Modify configuration options for GoobyCoin</source>
<translation>Редагувати параметри</translation>
</message>
<message>
<location line="+12"/>
<source>Backup wallet to another location</source>
<translation>Резервне копіювання гаманця в інше місце</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Змінити пароль, який використовується для шифрування гаманця</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>Вікно зневадження</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Відкрити консоль зневадження і діагностики</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>Перевірити повідомлення...</translation>
</message>
<message>
<location line="-183"/>
<location line="+6"/>
<location line="+508"/>
<source>GoobyCoin</source>
<translation>GoobyCoin</translation>
</message>
<message>
<location line="-514"/>
<location line="+6"/>
<source>Wallet</source>
<translation>Гаманець</translation>
</message>
<message>
<location line="+107"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<location line="+2"/>
<source>&About GoobyCoin</source>
<translation>&Про GoobyCoin</translation>
</message>
<message>
<location line="+10"/>
<location line="+2"/>
<source>&Show / Hide</source>
<translation>Показати / Приховати</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>Показує або приховує головне вікно</translation>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your GoobyCoin addresses to prove you own them</source>
<translation>Підтвердіть, що Ви є власником повідомлення підписавши його Вашою GoobyCoin-адресою </translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified GoobyCoin addresses</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</translation>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Налаштування</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Довідка</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Панель вкладок</translation>
</message>
<message>
<location line="-228"/>
<location line="+288"/>
<source>[testnet]</source>
<translation>[тестова мережа]</translation>
</message>
<message>
<location line="-5"/>
<location line="+5"/>
<source>GoobyCoin client</source>
<translation>GoobyCoin-клієнт</translation>
</message>
<message numerus="yes">
<location line="+121"/>
<source>%n active connection(s) to GoobyCoin network</source>
<translation><numerusform>%n активне з'єднання з мережею</numerusform><numerusform>%n активні з'єднання з мережею</numerusform><numerusform>%n активних з'єднань з мережею</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation>Оброблено %1 блоків історії транзакцій.</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>Помилка</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Увага</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Інформація</translation>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Синхронізовано</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Синхронізується...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Підтвердити комісію</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Надіслані транзакції</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Отримані перекази</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Дата: %1
Кількість: %2
Тип: %3
Адреса: %4
</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>Обробка URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid GoobyCoin address or malformed URI parameters.</source>
<translation>Неможливо обробити URI! Це може бути викликано неправильною GoobyCoin-адресою, чи невірними параметрами URI.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation><b>Зашифрований</b> гаманець <b>розблоковано</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation><b>Зашифрований</b> гаманець <b>заблоковано</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+110"/>
<source>A fatal error occurred. GoobyCoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+105"/>
<source>Network Alert</source>
<translation>Сповіщення мережі</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Редагувати адресу</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Мітка</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Мітка, пов'язана з цим записом адресної книги</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Адреса</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Адреса, пов'язана з цим записом адресної книги. Може бути змінено тільки для адреси відправника.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Нова адреса для отримання</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Нова адреса для відправлення</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Редагувати адресу для отримання</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Редагувати адресу для відправлення</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Введена адреса «%1» вже присутня в адресній книзі.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid GoobyCoin address.</source>
<translation>Введена адреса «%1» не є коректною адресою в мережі GoobyCoin.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Неможливо розблокувати гаманець.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Не вдалося згенерувати нові ключі.</translation>
</message>
</context>
<context>
<name>FreespaceChecker</name>
<message>
<location filename="../intro.cpp" line="+61"/>
<source>A new data directory will be created.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Directory already exists. Add %1 if you intend to create a new directory here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Path already exists, and is not a directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Cannot create data directory here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+517"/>
<location line="+13"/>
<source>GoobyCoin-Qt</source>
<translation>GoobyCoin-Qt</translation>
</message>
<message>
<location line="-13"/>
<source>version</source>
<translation>версія</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Використання:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>параметри командного рядка</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>Параметри інтерфейсу</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Встановлення мови, наприклад "de_DE" (типово: системна)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Запускати згорнутим</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Показувати заставку під час запуску (типово: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Choose data directory on startup (default: 0)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Intro</name>
<message>
<location filename="../forms/intro.ui" line="+14"/>
<source>Welcome</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Welcome to GoobyCoin-Qt.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>As this is the first time the program is launched, you can choose where GoobyCoin-Qt will store its data.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>GoobyCoin-Qt will download and store a copy of the GoobyCoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Use the default data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use a custom data directory:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../intro.cpp" line="+100"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>GB of free space available</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>(of %1GB needed)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Параметри</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Головні</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Заплатити комісі&ю</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start GoobyCoin after logging in to the system.</source>
<translation>Автоматично запускати гаманець при вході до системи.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start GoobyCoin on system login</source>
<translation>&Запускати гаманець при вході в систему</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>Скинути всі параметри клієнта на типові.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>Скинути параметри</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Мережа</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the GoobyCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Автоматично відкривати порт для клієнту біткоін на роутері. Працює лише якщо ваш роутер підтримує UPnP і ця функція увімкнена.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Відображення порту через &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the GoobyCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Підключатись до мережі GoobyCoin через SOCKS-проксі (наприклад при використанні Tor).</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>Підключатись через &SOCKS-проксі:</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP проксі:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>IP-адреса проксі-сервера (наприклад 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Порт:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Порт проксі-сервера (наприклад 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS версії:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Версія SOCKS-проксі (наприклад 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Вікно</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Показувати лише іконку в треї після згортання вікна.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>Мінімізувати &у трей</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Згортати замість закриття. Якщо ця опція включена, програма закриється лише після вибору відповідного пункту в меню.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>Згортати замість закритт&я</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Відображення</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Мова інтерфейсу користувача:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting GoobyCoin.</source>
<translation>Встановлює мову інтерфейсу. Зміни набудуть чинності після перезапуску GoobyCoin.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>В&имірювати монети в:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Виберіть одиницю вимірювання монет, яка буде відображатись в гаманці та при відправленні.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show GoobyCoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Відображати адресу в списку транзакцій</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&Гаразд</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Скасувати</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>&Застосувати</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+54"/>
<source>default</source>
<translation>типово</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>Підтвердження скидання параметрів</translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>Деякі параметри потребують перезапуск клієнта для набуття чинності.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>Продовжувати?</translation>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>Увага</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting GoobyCoin.</source>
<translation>Цей параметр набуде чинності після перезапуску GoobyCoin.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Невірно вказано адресу проксі.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Форма</translation>
</message>
<message>
<location line="+50"/>
<location line="+202"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the GoobyCoin network after a connection is established, but this process has not completed yet.</source>
<translation>Показана інформація вже може бути застарілою. Ваш гаманець буде автоматично синхронізовано з мережею GoobyCoin після встановлення підключення, але цей процес ще не завершено.</translation>
</message>
<message>
<location line="-131"/>
<source>Unconfirmed:</source>
<translation>Непідтверджені:</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Гаманець</translation>
</message>
<message>
<location line="+49"/>
<source>Confirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source><b>Recent transactions</b></source>
<translation><b>Недавні транзакції</b></translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>не синхронізовано</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+108"/>
<source>Cannot start goobycoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="../bitcoin.cpp" line="+92"/>
<location filename="../intro.cpp" line="-32"/>
<source>GoobyCoin</source>
<translation>GoobyCoin</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Specified data directory "%1" does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../intro.cpp" line="+1"/>
<source>Error: Specified data directory "%1" can not be created.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>Діалог QR-коду</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Запросити Платіж</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Кількість:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Мітка:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Повідомлення:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Зберегти як...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+64"/>
<source>Error encoding URI into QR Code.</source>
<translation>Помилка при кодуванні URI в QR-код.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>Невірно введено кількість, будь ласка, перевірте.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>Кінцевий URI занадто довгий, спробуйте зменшити текст для мітки / повідомлення.</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Зберегти QR-код</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>PNG-зображення (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Назва клієнту</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+345"/>
<source>N/A</source>
<translation>Н/Д</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Версія клієнту</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Інформація</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Використовується OpenSSL версії</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Мережа</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Кількість підключень</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>В тестовій мережі</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Поточне число блоків</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>Відкрити</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>Параметри командного рядка</translation>
</message>
<message>
<location line="+7"/>
<source>Show the GoobyCoin-Qt help message to get a list with possible GoobyCoin command-line options.</source>
<translation>Показати довідку GoobyCoin-Qt для отримання переліку можливих параметрів командного рядка.</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>Показати</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>Консоль</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Дата збирання</translation>
</message>
<message>
<location line="-104"/>
<source>GoobyCoin - Debug window</source>
<translation>GoobyCoin - Вікно зневадження</translation>
</message>
<message>
<location line="+25"/>
<source>GoobyCoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Файл звіту зневадження</translation>
</message>
<message>
<location line="+7"/>
<source>Open the GoobyCoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Очистити консоль</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the GoobyCoin RPC console.</source>
<translation>Вітаємо у консолі GoobyCoin RPC.</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Використовуйте стрілки вгору вниз для навігації по історії, і <b>Ctrl-L</b> для очищення екрана.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Наберіть <b>help</b> для перегляду доступних команд.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+128"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Відправити</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Відправити на декілька адрес</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Дод&ати одержувача</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Видалити всі поля транзакції</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Очистити &все</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Баланс:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 ABC</source>
<translation>123.456 ABC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Підтвердити відправлення</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Відправити</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-62"/>
<location line="+2"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> адресату %2 (%3)</translation>
</message>
<message>
<location line="+6"/>
<source>Confirm send coins</source>
<translation>Підтвердіть відправлення</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Ви впевнені що хочете відправити %1?</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation> і </translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Адреса отримувача невірна, будь ласка перепровірте.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Кількість монет для відправлення повинна бути більшою 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Кількість монет для відправлення перевищує ваш баланс.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Сума перевищить ваш баланс, якщо комісія %1 буде додана до вашої транзакції.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Знайдено адресу що дублюється. Відправлення на кожну адресу дозволяється лише один раз на кожну операцію переказу.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation>Помилка: Не вдалося створити транзакцію!</translation>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Помилка: транзакцію було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Форма</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Кількість:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Отримувач:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Введіть мітку для цієї адреси для додавання її в адресну книгу</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Мітка:</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Вибрати адресу з адресної книги</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Вставити адресу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation>Видалити цього отримувача</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a GoobyCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Підписи - Підпис / Перевірка повідомлення</translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Підписати повідомлення</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Вибрати адресу з адресної книги</translation>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation>Вставити адресу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Введіть повідомлення, яке ви хочете підписати тут</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Підпис</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Копіювати поточну сигнатуру до системного буферу обміну</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this GoobyCoin address</source>
<translation>Підпишіть повідомлення щоб довести, що ви є власником цієї адреси</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>&Підписати повідомлення</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>Скинути всі поля підпису повідомлення</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Очистити &все</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>Перевірити повідомлення</translation>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified GoobyCoin address</source>
<translation>Перевірте повідомлення для впевненості, що воно підписано вказаною GoobyCoin-адресою</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>Перевірити повідомлення</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>Скинути всі поля перевірки повідомлення</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a GoobyCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation>Введіть адресу GoobyCoin (наприклад 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Натисніть кнопку «Підписати повідомлення», для отримання підпису</translation>
</message>
<message>
<location line="+3"/>
<source>Enter GoobyCoin signature</source>
<translation>Введіть сигнатуру GoobyCoin</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Введена нечинна адреса.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Будь ласка, перевірте адресу та спробуйте ще.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Не вдалося підписати повідомлення.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Повідомлення підписано.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Підпис не можливо декодувати.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Будь ласка, перевірте підпис та спробуйте ще.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Не вдалося перевірити повідомлення.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Повідомлення перевірено.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The GoobyCoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>[тестова мережа]</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Відкрити до %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/поза інтернетом</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/не підтверджено</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 підтверджень</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Статус</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Згенеровано</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Відправник</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Отримувач</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>Мітка</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Кредит</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>не прийнято</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Дебет</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Комісія за транзакцію</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Загальна сума</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Повідомлення</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Коментар</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID транзакції</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 10 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Після генерації монет, потрібно зачекати 10 блоків, перш ніж їх можна буде використати. Коли ви згенерували цей блок, його було відправлено в мережу для того, щоб він був доданий до ланцюжка блоків. Якщо ця процедура не вдасться, статус буде змінено на «не підтверджено» і ви не зможете потратити згенеровані монету. Таке може статись, якщо хтось інший згенерував блок на декілька секунд раніше.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Транзакція</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Кількість</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>true</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>false</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ще не було успішно розіслано</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>невідомий</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Деталі транзакції</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Даний діалог показує детальну статистику по вибраній транзакції</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Адреса</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Кількість</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Відкрити до %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Поза інтернетом (%1 підтверджень)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Непідтверджено (%1 із %2 підтверджень)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Підтверджено (%1 підтверджень)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Цей блок не був отриманий жодними іншими вузлами і, ймовірно, не буде прийнятий!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Згенеровано, але не підтверджено</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Отримано</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Отримано від</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Відправлено</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Відправлено собі</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Добуто</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(недоступно)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Статус транзакції. Наведіть вказівник на це поле, щоб показати кількість підтверджень.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Дата і час, коли транзакцію було отримано.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Тип транзакції.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Адреса отримувача транзакції.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Сума, додана чи знята з балансу.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Всі</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Сьогодні</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>На цьому тижні</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>На цьому місяці</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Минулого місяця</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Цього року</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Проміжок...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Отримані на</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Відправлені на</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Відправлені собі</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Добуті</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Інше</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Введіть адресу чи мітку для пошуку</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Мінімальна сума</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Скопіювати адресу</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Скопіювати мітку</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Копіювати кількість</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Редагувати мітку</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Показати деталі транзакції</translation>
</message>
<message>
<location line="+143"/>
<source>Export Transaction Data</source>
<translation>Експортувати дані транзакцій</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Файли, розділені комою (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Підтверджені</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Тип</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Мітка</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Адреса</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Кількість</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>Ідентифікатор</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Помилка експорту</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Неможливо записати у файл %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Діапазон від:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>до</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>Відправити</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+46"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>Експортувати дані з поточної вкладки в файл</translation>
</message>
<message>
<location line="+197"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Виникла помилка при спробі зберегти гаманець в новому місці.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>Успішне створення резервної копії</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>Данні гаманця успішно збережено в новому місці призначення.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+98"/>
<source>GoobyCoin version</source>
<translation>Версія</translation>
</message>
<message>
<location line="+104"/>
<source>Usage:</source>
<translation>Використання:</translation>
</message>
<message>
<location line="-30"/>
<source>Send command to -server or goobycoind</source>
<translation>Відправити команду серверу -server чи демону</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Список команд</translation>
</message>
<message>
<location line="-13"/>
<source>Get help for a command</source>
<translation>Отримати довідку по команді</translation>
</message>
<message>
<location line="+25"/>
<source>Options:</source>
<translation>Параметри:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: goobycoin.conf)</source>
<translation>Вкажіть файл конфігурації (типово: goobycoin.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: goobycoind.pid)</source>
<translation>Вкажіть pid-файл (типово: goobycoind.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Вкажіть робочий каталог</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Встановити розмір кешу бази даних в мегабайтах (типово: 25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 10221 or testnet: 20221)</source>
<translation>Чекати на з'єднання на <port> (типово: 10221 або тестова мережа: 20221)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Підтримувати не більше <n> зв'язків з колегами (типово: 125)</translation>
</message>
<message>
<location line="-49"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+84"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Поріг відключення неправильно під'єднаних пірів (типово: 100)</translation>
</message>
<message>
<location line="-136"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Максимальній розмір вхідного буферу на одне з'єднання (типово: 86400)</translation>
</message>
<message>
<location line="-33"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Listen for JSON-RPC connections on <port> (default: 10222 or testnet: 20222)</source>
<translation>Прослуховувати <port> для JSON-RPC-з'єднань (типово: 10222 або тестова мережа: 20222)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Приймати команди із командного рядка та команди JSON-RPC</translation>
</message>
<message>
<location line="+77"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Запустити в фоновому режимі (як демон) та приймати команди</translation>
</message>
<message>
<location line="+38"/>
<source>Use the test network</source>
<translation>Використовувати тестову мережу</translation>
</message>
<message>
<location line="-114"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=goobycoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "GoobyCoin Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. GoobyCoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation>Помилка: транзакцію було відхилено. Це може статись, якщо декілька монет з вашого гаманця вже використані, наприклад, якщо ви використовуєте одну копію гаманця (wallet.dat), а монети були використані з іншої копії, але не позначені як використані в цій.</translation>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Увага: встановлено занадто велику комісію (-paytxfee). Комісія зніматиметься кожен раз коли ви проводитимете транзакції.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong GoobyCoin will not work properly.</source>
<translation>Увага: будь ласка, перевірте дату і час на своєму комп'ютері. Якщо ваш годинник йде неправильно, GoobyCoin може працювати некоректно.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Увага: помилка читання wallet.dat! Всі ключі прочитано коректно, але дані транзакцій чи записи адресної книги можуть бути пропущені, або пошкоджені.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Увага: файл wallet.dat пошкоджено, дані врятовано! Оригінальний wallet.dat збережено як wallet.{timestamp}.bak до %s; якщо Ваш баланс чи транзакції неправильні, Ви можете відновити їх з резервної копії. </translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Спроба відновити закриті ключі з пошкодженого wallet.dat</translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>Підключитись лише до вказаного вузла</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation>Помилка ініціалізації бази даних блоків</translation>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation>Помилка завантаження бази даних блоків</translation>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>Помилка: Мало вільного місця на диску!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>Помилка: Гаманець заблокований, неможливо створити транзакцію!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>Помилка: системна помилка: </translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation>Скільки блоків перевіряти під час запуску (типово: 288, 0 = всі)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet %s resides outside data directory %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>You need to rebuild the database using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>Імпорт блоків з зовнішнього файлу blk000??.dat</translation>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+78"/>
<source>Information</source>
<translation>Інформація</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Помилка в адресі -tor: «%s»</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Максимальний буфер, <n>*1000 байт (типово: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Максимальній розмір вихідного буферу на одне з'єднання, <n>*1000 байт (типово: 1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>Виводити більше налагоджувальної інформації. Мається на увазі всі шнші -debug* параметри</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>Доповнювати налагоджувальний вивід відміткою часу</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the GoobyCoin Wiki for SSL setup instructions)</source>
<translation>Параметри SSL: (див. GoobyCoin Wiki для налаштування SSL)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Вибір версії socks-проксі для використання (4-5, типово: 5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Відсилати налагоджувальну інформацію на консоль, а не у файл debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Відсилати налагоджувальну інформацію до налагоджувача</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>Встановити максимальний розмір блоку у байтах (типово: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Встановити мінімальний розмір блоку у байтах (типово: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Стискати файл debug.log під час старту клієнта (типово: 1 коли відсутутній параметр -debug)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Вказати тайм-аут підключення у мілісекундах (типово: 5000)</translation>
</message>
<message>
<location line="+5"/>
<source>System error: </source>
<translation>Системна помилка: </translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Намагатись використовувати UPnP для відображення порту, що прослуховується на роутері (default: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Намагатись використовувати UPnP для відображення порту, що прослуховується на роутері (default: 1 when listening)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>Ім'я користувача для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="+5"/>
<source>Warning</source>
<translation>Попередження</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Увага: Поточна версія застаріла, необхідне оновлення!</translation>
</message>
<message>
<location line="+2"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat пошкоджено, відновлення не вдалося</translation>
</message>
<message>
<location line="-52"/>
<source>Password for JSON-RPC connections</source>
<translation>Пароль для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="-68"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Дозволити JSON-RPC-з'єднання з вказаної IP-адреси</translation>
</message>
<message>
<location line="+77"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Відправляти команди на вузол, запущений на <ip> (типово: 127.0.0.1)</translation>
</message>
<message>
<location line="-121"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+149"/>
<source>Upgrade wallet to latest format</source>
<translation>Модернізувати гаманець до останнього формату</translation>
</message>
<message>
<location line="-22"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Встановити розмір пулу ключів <n> (типово: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Пересканувати ланцюжок блоків, в пошуку втрачених транзакцій</translation>
</message>
<message>
<location line="+36"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Використовувати OpenSSL (https) для JSON-RPC-з'єднань</translation>
</message>
<message>
<location line="-27"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Файл сертифіката сервера (типово: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Закритий ключ сервера (типово: server.pem)</translation>
</message>
<message>
<location line="-156"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Допустимі шифри (типово: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+171"/>
<source>This help message</source>
<translation>Дана довідка</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Неможливо прив'язати до порту %s на цьому комп'ютері (bind returned error %d, %s)</translation>
</message>
<message>
<location line="-93"/>
<source>Connect through socks proxy</source>
<translation>Підключитись через SOCKS-проксі</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Дозволити пошук в DNS для команд -addnode, -seednode та -connect</translation>
</message>
<message>
<location line="+56"/>
<source>Loading addresses...</source>
<translation>Завантаження адрес...</translation>
</message>
<message>
<location line="-36"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Помилка при завантаженні wallet.dat: Гаманець пошкоджено</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of GoobyCoin</source>
<translation>Помилка при завантаженні wallet.dat: Гаманець потребує новішої версії Біткоін-клієнта</translation>
</message>
<message>
<location line="+96"/>
<source>Wallet needed to be rewritten: restart GoobyCoin to complete</source>
<translation>Потрібно перезаписати гаманець: перезапустіть Біткоін-клієнт для завершення</translation>
</message>
<message>
<location line="-98"/>
<source>Error loading wallet.dat</source>
<translation>Помилка при завантаженні wallet.dat</translation>
</message>
<message>
<location line="+29"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Помилка в адресі проксі-сервера: «%s»</translation>
</message>
<message>
<location line="+57"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Невідома мережа вказана в -onlynet: «%s»</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Помилка у величині комісії -paytxfee=<amount>: «%s»</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>Некоректна кількість</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>Недостатньо коштів</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Завантаження індексу блоків...</translation>
</message>
<message>
<location line="-58"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Додати вузол до підключення і лишити його відкритим</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. GoobyCoin is probably already running.</source>
<translation>Неможливо прив'язати до порту %s на цьому комп'ютері. Можливо гаманець вже запущено.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Комісія за КБ</translation>
</message>
<message>
<location line="+20"/>
<source>Loading wallet...</source>
<translation>Завантаження гаманця...</translation>
</message>
<message>
<location line="-53"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Неможливо записати типову адресу</translation>
</message>
<message>
<location line="+65"/>
<source>Rescanning...</source>
<translation>Сканування...</translation>
</message>
<message>
<location line="-58"/>
<source>Done loading</source>
<translation>Завантаження завершене</translation>
</message>
<message>
<location line="+84"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Error</source>
<translation>Помилка</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Ви мусите встановити rpcpassword=<password> в файлі конфігурації:
%s
Якщо файл не існує, створіть його із правами тільки для читання власником (owner-readable-only).</translation>
</message>
</context>
</TS> | GoobyCoin/GoobyCoin | src/qt/locale/bitcoin_uk.ts | TypeScript | mit | 127,958 |
package bimg
import (
"io/ioutil"
"os"
"path"
"testing"
)
func TestSize(t *testing.T) {
files := []struct {
name string
width int
height int
}{
{"test.jpg", 1680, 1050},
{"test.png", 400, 300},
{"test.webp", 550, 368},
}
for _, file := range files {
size, err := Size(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %#v", err)
}
if size.Width != file.width || size.Height != file.height {
t.Fatalf("Unexpected image size: %dx%d", size.Width, size.Height)
}
}
}
func TestMetadata(t *testing.T) {
files := []struct {
name string
format string
orientation int
alpha bool
profile bool
space string
}{
{"test.jpg", "jpeg", 0, false, false, "srgb"},
{"test_icc_prophoto.jpg", "jpeg", 0, false, true, "srgb"},
{"test.png", "png", 0, true, false, "srgb"},
{"test.webp", "webp", 0, false, false, "srgb"},
{"test.avif", "avif", 0, false, false, "srgb"},
}
for _, file := range files {
metadata, err := Metadata(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if metadata.Type != file.format {
t.Fatalf("Unexpected image format: %s", file.format)
}
if metadata.Orientation != file.orientation {
t.Fatalf("Unexpected image orientation: %d != %d", metadata.Orientation, file.orientation)
}
if metadata.Alpha != file.alpha {
t.Fatalf("Unexpected image alpha: %t != %t", metadata.Alpha, file.alpha)
}
if metadata.Profile != file.profile {
t.Fatalf("Unexpected image profile: %t != %t", metadata.Profile, file.profile)
}
if metadata.Space != file.space {
t.Fatalf("Unexpected image profile: %t != %t", metadata.Profile, file.profile)
}
}
}
func TestImageInterpretation(t *testing.T) {
files := []struct {
name string
interpretation Interpretation
}{
{"test.jpg", InterpretationSRGB},
{"test.png", InterpretationSRGB},
{"test.webp", InterpretationSRGB},
}
for _, file := range files {
interpretation, err := ImageInterpretation(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if interpretation != file.interpretation {
t.Fatalf("Unexpected image interpretation")
}
}
}
func TestEXIF(t *testing.T) {
if VipsMajorVersion <= 8 && VipsMinorVersion < 10 {
t.Skip("Skip test in libvips < 8.10")
return
}
files := map[string]EXIF{
"test.jpg": {},
"exif/Landscape_1.jpg": {
Orientation: 1,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
YCbCrPositioning: 1,
ExifVersion: "Exif Version 2.1",
ColorSpace: 65535,
},
"test_exif.jpg": {
Make: "Jolla",
Model: "Jolla",
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Orientation: 1,
Datetime: "2014:09:21 16:00:56",
ExposureTime: "1/25",
FNumber: "12/5",
ISOSpeedRatings: 320,
ExifVersion: "Exif Version 2.3",
DateTimeOriginal: "2014:09:21 16:00:56",
ShutterSpeedValue: "205447286/44240665",
ApertureValue: "334328577/132351334",
ExposureBiasValue: "0/1",
MeteringMode: 1,
Flash: 0,
FocalLength: "4/1",
WhiteBalance: 1,
ColorSpace: 65535,
},
"test_exif_canon.jpg": {
Make: "Canon",
Model: "Canon EOS 40D",
Orientation: 1,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Software: "GIMP 2.4.5",
Datetime: "2008:07:31 10:38:11",
YCbCrPositioning: 2,
Compression: 6,
ExposureTime: "1/160",
FNumber: "71/10",
ExposureProgram: 1,
ISOSpeedRatings: 100,
ExifVersion: "Exif Version 2.21",
DateTimeOriginal: "2008:05:30 15:56:01",
DateTimeDigitized: "2008:05:30 15:56:01",
ComponentsConfiguration: "Y Cb Cr -",
ShutterSpeedValue: "483328/65536",
ApertureValue: "368640/65536",
ExposureBiasValue: "0/1",
MeteringMode: 5,
Flash: 9,
FocalLength: "135/1",
SubSecTimeOriginal: "00",
SubSecTimeDigitized: "00",
ColorSpace: 1,
PixelXDimension: 100,
PixelYDimension: 68,
ExposureMode: 1,
WhiteBalance: 0,
SceneCaptureType: 0,
},
"test_exif_full.jpg": {
Make: "Apple",
Model: "iPhone XS",
Orientation: 6,
XResolution: "72/1",
YResolution: "72/1",
ResolutionUnit: 2,
Software: "13.3.1",
Datetime: "2020:07:28 19:18:49",
YCbCrPositioning: 1,
Compression: 6,
ExposureTime: "1/835",
FNumber: "9/5",
ExposureProgram: 2,
ISOSpeedRatings: 25,
ExifVersion: "Unknown Exif Version",
DateTimeOriginal: "2020:07:28 19:18:49",
DateTimeDigitized: "2020:07:28 19:18:49",
ComponentsConfiguration: "Y Cb Cr -",
ShutterSpeedValue: "77515/7986",
ApertureValue: "54823/32325",
BrightnessValue: "77160/8623",
ExposureBiasValue: "0/1",
MeteringMode: 5,
Flash: 16,
FocalLength: "17/4",
SubjectArea: "2013 1511 2217 1330",
MakerNote: "1110 bytes undefined data",
SubSecTimeOriginal: "777",
SubSecTimeDigitized: "777",
ColorSpace: 65535,
PixelXDimension: 4032,
PixelYDimension: 3024,
SensingMethod: 2,
SceneType: "Directly photographed",
ExposureMode: 0,
WhiteBalance: 0,
FocalLengthIn35mmFilm: 26,
SceneCaptureType: 0,
GPSLatitudeRef: "N",
GPSLatitude: "55/1 43/1 5287/100",
GPSLongitudeRef: "E",
GPSLongitude: "37/1 35/1 5571/100",
GPSAltitudeRef: "Sea level",
GPSAltitude: "90514/693",
GPSSpeedRef: "K",
GPSSpeed: "114272/41081",
GPSImgDirectionRef: "M",
GPSImgDirection: "192127/921",
GPSDestBearingRef: "M",
GPSDestBearing: "192127/921",
GPSDateStamp: "2020:07:28",
},
}
for name, file := range files {
metadata, err := Metadata(readFile(name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", name, err)
}
if metadata.EXIF.Make != file.Make {
t.Fatalf("Unexpected image exif Make: %s != %s", metadata.EXIF.Make, file.Make)
}
if metadata.EXIF.Model != file.Model {
t.Fatalf("Unexpected image exif Model: %s != %s", metadata.EXIF.Model, file.Model)
}
if metadata.EXIF.Orientation != file.Orientation {
t.Fatalf("Unexpected image exif Orientation: %d != %d", metadata.EXIF.Orientation, file.Orientation)
}
if metadata.EXIF.XResolution != file.XResolution {
t.Fatalf("Unexpected image exif XResolution: %s != %s", metadata.EXIF.XResolution, file.XResolution)
}
if metadata.EXIF.YResolution != file.YResolution {
t.Fatalf("Unexpected image exif YResolution: %s != %s", metadata.EXIF.YResolution, file.YResolution)
}
if metadata.EXIF.ResolutionUnit != file.ResolutionUnit {
t.Fatalf("Unexpected image exif ResolutionUnit: %d != %d", metadata.EXIF.ResolutionUnit, file.ResolutionUnit)
}
if metadata.EXIF.Software != file.Software {
t.Fatalf("Unexpected image exif Software: %s != %s", metadata.EXIF.Software, file.Software)
}
if metadata.EXIF.Datetime != file.Datetime {
t.Fatalf("Unexpected image exif Datetime: %s != %s", metadata.EXIF.Datetime, file.Datetime)
}
if metadata.EXIF.YCbCrPositioning != file.YCbCrPositioning {
t.Fatalf("Unexpected image exif YCbCrPositioning: %d != %d", metadata.EXIF.YCbCrPositioning, file.YCbCrPositioning)
}
if metadata.EXIF.Compression != file.Compression {
t.Fatalf("Unexpected image exif Compression: %d != %d", metadata.EXIF.Compression, file.Compression)
}
if metadata.EXIF.ExposureTime != file.ExposureTime {
t.Fatalf("Unexpected image exif ExposureTime: %s != %s", metadata.EXIF.ExposureTime, file.ExposureTime)
}
if metadata.EXIF.FNumber != file.FNumber {
t.Fatalf("Unexpected image exif FNumber: %s != %s", metadata.EXIF.FNumber, file.FNumber)
}
if metadata.EXIF.ExposureProgram != file.ExposureProgram {
t.Fatalf("Unexpected image exif ExposureProgram: %d != %d", metadata.EXIF.ExposureProgram, file.ExposureProgram)
}
if metadata.EXIF.ISOSpeedRatings != file.ISOSpeedRatings {
t.Fatalf("Unexpected image exif ISOSpeedRatings: %d != %d", metadata.EXIF.ISOSpeedRatings, file.ISOSpeedRatings)
}
if metadata.EXIF.ExifVersion != file.ExifVersion {
t.Fatalf("Unexpected image exif ExifVersion: %s != %s", metadata.EXIF.ExifVersion, file.ExifVersion)
}
if metadata.EXIF.DateTimeOriginal != file.DateTimeOriginal {
t.Fatalf("Unexpected image exif DateTimeOriginal: %s != %s", metadata.EXIF.DateTimeOriginal, file.DateTimeOriginal)
}
if metadata.EXIF.DateTimeDigitized != file.DateTimeDigitized {
t.Fatalf("Unexpected image exif DateTimeDigitized: %s != %s", metadata.EXIF.DateTimeDigitized, file.DateTimeDigitized)
}
if metadata.EXIF.ComponentsConfiguration != file.ComponentsConfiguration {
t.Fatalf("Unexpected image exif ComponentsConfiguration: %s != %s", metadata.EXIF.ComponentsConfiguration, file.ComponentsConfiguration)
}
if metadata.EXIF.ShutterSpeedValue != file.ShutterSpeedValue {
t.Fatalf("Unexpected image exif ShutterSpeedValue: %s != %s", metadata.EXIF.ShutterSpeedValue, file.ShutterSpeedValue)
}
if metadata.EXIF.ApertureValue != file.ApertureValue {
t.Fatalf("Unexpected image exif ApertureValue: %s != %s", metadata.EXIF.ApertureValue, file.ApertureValue)
}
if metadata.EXIF.BrightnessValue != file.BrightnessValue {
t.Fatalf("Unexpected image exif BrightnessValue: %s != %s", metadata.EXIF.BrightnessValue, file.BrightnessValue)
}
if metadata.EXIF.ExposureBiasValue != file.ExposureBiasValue {
t.Fatalf("Unexpected image exif ExposureBiasValue: %s != %s", metadata.EXIF.ExposureBiasValue, file.ExposureBiasValue)
}
if metadata.EXIF.MeteringMode != file.MeteringMode {
t.Fatalf("Unexpected image exif MeteringMode: %d != %d", metadata.EXIF.MeteringMode, file.MeteringMode)
}
if metadata.EXIF.Flash != file.Flash {
t.Fatalf("Unexpected image exif Flash: %d != %d", metadata.EXIF.Flash, file.Flash)
}
if metadata.EXIF.FocalLength != file.FocalLength {
t.Fatalf("Unexpected image exif FocalLength: %s != %s", metadata.EXIF.FocalLength, file.FocalLength)
}
if metadata.EXIF.SubjectArea != file.SubjectArea {
t.Fatalf("Unexpected image exif SubjectArea: %s != %s", metadata.EXIF.SubjectArea, file.SubjectArea)
}
if metadata.EXIF.MakerNote != file.MakerNote {
t.Fatalf("Unexpected image exif MakerNote: %s != %s", metadata.EXIF.MakerNote, file.MakerNote)
}
if metadata.EXIF.SubSecTimeOriginal != file.SubSecTimeOriginal {
t.Fatalf("Unexpected image exif SubSecTimeOriginal: %s != %s", metadata.EXIF.SubSecTimeOriginal, file.SubSecTimeOriginal)
}
if metadata.EXIF.SubSecTimeDigitized != file.SubSecTimeDigitized {
t.Fatalf("Unexpected image exif SubSecTimeDigitized: %s != %s", metadata.EXIF.SubSecTimeDigitized, file.SubSecTimeDigitized)
}
if metadata.EXIF.ColorSpace != file.ColorSpace {
t.Fatalf("Unexpected image exif ColorSpace: %d != %d", metadata.EXIF.ColorSpace, file.ColorSpace)
}
if metadata.EXIF.PixelXDimension != file.PixelXDimension {
t.Fatalf("Unexpected image exif PixelXDimension: %d != %d", metadata.EXIF.PixelXDimension, file.PixelXDimension)
}
if metadata.EXIF.PixelYDimension != file.PixelYDimension {
t.Fatalf("Unexpected image exif PixelYDimension: %d != %d", metadata.EXIF.PixelYDimension, file.PixelYDimension)
}
if metadata.EXIF.SensingMethod != file.SensingMethod {
t.Fatalf("Unexpected image exif SensingMethod: %d != %d", metadata.EXIF.SensingMethod, file.SensingMethod)
}
if metadata.EXIF.SceneType != file.SceneType {
t.Fatalf("Unexpected image exif SceneType: %s != %s", metadata.EXIF.SceneType, file.SceneType)
}
if metadata.EXIF.ExposureMode != file.ExposureMode {
t.Fatalf("Unexpected image exif ExposureMode: %d != %d", metadata.EXIF.ExposureMode, file.ExposureMode)
}
if metadata.EXIF.WhiteBalance != file.WhiteBalance {
t.Fatalf("Unexpected image exif WhiteBalance: %d != %d", metadata.EXIF.WhiteBalance, file.WhiteBalance)
}
if metadata.EXIF.FocalLengthIn35mmFilm != file.FocalLengthIn35mmFilm {
t.Fatalf("Unexpected image exif FocalLengthIn35mmFilm: %d != %d", metadata.EXIF.FocalLengthIn35mmFilm, file.FocalLengthIn35mmFilm)
}
if metadata.EXIF.SceneCaptureType != file.SceneCaptureType {
t.Fatalf("Unexpected image exif SceneCaptureType: %d != %d", metadata.EXIF.SceneCaptureType, file.SceneCaptureType)
}
if metadata.EXIF.GPSLongitudeRef != file.GPSLongitudeRef {
t.Fatalf("Unexpected image exif GPSLongitudeRef: %s != %s", metadata.EXIF.GPSLongitudeRef, file.GPSLongitudeRef)
}
if metadata.EXIF.GPSLongitude != file.GPSLongitude {
t.Fatalf("Unexpected image exif GPSLongitude: %s != %s", metadata.EXIF.GPSLongitude, file.GPSLongitude)
}
if metadata.EXIF.GPSAltitudeRef != file.GPSAltitudeRef {
t.Fatalf("Unexpected image exif GPSAltitudeRef: %s != %s", metadata.EXIF.GPSAltitudeRef, file.GPSAltitudeRef)
}
if metadata.EXIF.GPSAltitude != file.GPSAltitude {
t.Fatalf("Unexpected image exif GPSAltitude: %s != %s", metadata.EXIF.GPSAltitude, file.GPSAltitude)
}
if metadata.EXIF.GPSSpeedRef != file.GPSSpeedRef {
t.Fatalf("Unexpected image exif GPSSpeedRef: %s != %s", metadata.EXIF.GPSSpeedRef, file.GPSSpeedRef)
}
if metadata.EXIF.GPSSpeed != file.GPSSpeed {
t.Fatalf("Unexpected image exif GPSSpeed: %s != %s", metadata.EXIF.GPSSpeed, file.GPSSpeed)
}
if metadata.EXIF.GPSImgDirectionRef != file.GPSImgDirectionRef {
t.Fatalf("Unexpected image exif GPSImgDirectionRef: %s != %s", metadata.EXIF.GPSImgDirectionRef, file.GPSImgDirectionRef)
}
if metadata.EXIF.GPSImgDirection != file.GPSImgDirection {
t.Fatalf("Unexpected image exif GPSImgDirection: %s != %s", metadata.EXIF.GPSImgDirection, file.GPSImgDirection)
}
if metadata.EXIF.GPSDestBearingRef != file.GPSDestBearingRef {
t.Fatalf("Unexpected image exif GPSDestBearingRef: %s != %s", metadata.EXIF.GPSDestBearingRef, file.GPSDestBearingRef)
}
if metadata.EXIF.GPSDestBearing != file.GPSDestBearing {
t.Fatalf("Unexpected image exif GPSDestBearing: %s != %s", metadata.EXIF.GPSDestBearing, file.GPSDestBearing)
}
if metadata.EXIF.GPSDateStamp != file.GPSDateStamp {
t.Fatalf("Unexpected image exif GPSDateStamp: %s != %s", metadata.EXIF.GPSDateStamp, file.GPSDateStamp)
}
}
}
func TestColourspaceIsSupported(t *testing.T) {
files := []struct {
name string
}{
{"test.jpg"},
{"test.png"},
{"test.webp"},
}
for _, file := range files {
supported, err := ColourspaceIsSupported(readFile(file.name))
if err != nil {
t.Fatalf("Cannot read the image: %s -> %s", file.name, err)
}
if supported != true {
t.Fatalf("Unsupported image colourspace")
}
}
supported, err := initImage("test.jpg").ColourspaceIsSupported()
if err != nil {
t.Errorf("Cannot process the image: %#v", err)
}
if supported != true {
t.Errorf("Non-supported colourspace")
}
}
func readFile(file string) []byte {
data, _ := os.Open(path.Join("testdata", file))
buf, _ := ioutil.ReadAll(data)
return buf
}
| h2non/bimg | metadata_test.go | GO | mit | 15,803 |
// ===========================================================================
//
// PUBLIC DOMAIN NOTICE
// Agricultural Research Service
// United States Department of Agriculture
//
// This software/database is a "United States Government Work" under the
// terms of the United States Copyright Act. It was written as part of
// the author's official duties as a United States Government employee
// and thus cannot be copyrighted. This software/database is freely
// available to the public for use. The Department of Agriculture (USDA)
// and the U.S. Government have not placed any restriction on its use or
// reproduction.
//
// Although all reasonable efforts have been taken to ensure the accuracy
// and reliability of the software and data, the USDA and the U.S.
// Government do not and cannot warrant the performance or results that
// may be obtained by using this software or data. The USDA and the U.S.
// Government disclaim all warranties, express or implied, including
// warranties of performance, merchantability or fitness for any
// particular purpose.
//
// Please cite the author in any work or product based on this material.
//
// =========================================================================
#ifndef _PARTIAL_CORE_MATRIX_H_
#define _PARTIAL_CORE_MATRIX_H_ 1
#include <memory>
#include <map>
#include <exception>
#include "logging.hpp"
#include "distributions.hpp"
#include "continuous_dynamics.hpp"
namespace afidd
{
namespace smv
{
template<typename GSPN, typename State, typename RNG>
class PartialCoreMatrix
{
public:
// Re-advertise the transition key.
typedef typename GSPN::TransitionKey TransitionKey;
typedef ContinuousPropagator<TransitionKey,RNG> Propagator;
using PropagatorVector=std::vector<Propagator*>;
typedef GSPN PetriNet;
PartialCoreMatrix(GSPN& gspn, PropagatorVector pv)
: gspn_(gspn), propagator_{pv} {}
void set_state(State* s) {
state_=s;
}
void MakeCurrent(RNG& rng) {
if (state_->marking.Modified().size()==0) return;
// Check all neighbors of a place to see if they were enabled.
auto lm=state_->marking.GetLocalMarking();
NeighborsOfPlaces(gspn_, state_->marking.Modified(),
[&] (TransitionKey neighbor_id) {
// Was this transition enabled? When?
double enabling_time=0.0;
Propagator* previous_propagator=nullptr;
for (const auto& enable_prop : propagator_) {
double previously_enabled=false;
std::tie(previously_enabled, enabling_time)
=enable_prop->Enabled(neighbor_id);
if (previously_enabled) {
previous_propagator=enable_prop;
break;
}
}
if (previous_propagator==nullptr) enabling_time=state_->CurrentTime();
// Set up the local marking.
auto neighboring_places=
InputsOfTransition(gspn_, neighbor_id);
state_->marking.InitLocal(lm, neighboring_places);
bool isEnabled=false;
std::unique_ptr<TransitionDistribution<RNG>> dist;
try {
std::tie(isEnabled, dist)=
Enabled(gspn_, neighbor_id, state_->user, lm,
enabling_time, state_->CurrentTime(), rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enabled new of "
<< neighbor_id <<": " << e.what();
throw;
}
if (isEnabled) {
Propagator* appropriate=nullptr;
for (const auto& prop_ptr : propagator_) {
if (prop_ptr->Include(*dist)) {
appropriate=prop_ptr;
}
}
BOOST_ASSERT_MSG(appropriate!=nullptr, "No propagator willing to "
"accept this distribution");
// Even if it was already enabled, take the new distribution
// in case it has changed.
if (dist!=nullptr) {
bool was_enabled=previous_propagator!=nullptr;
if (was_enabled) {
if (previous_propagator==appropriate) {
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enabled previous of "
<< neighbor_id <<": " << e.what();
throw;
}
} else {
try {
previous_propagator->Disable(neighbor_id,
state_->CurrentTime());
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Disable of "
<< neighbor_id <<": " << e.what();
throw;
}
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enable wasn't "
<< "noprev of " << neighbor_id <<": " << e.what();
throw;
}
}
} else {
try {
appropriate->Enable(neighbor_id, dist, state_->CurrentTime(),
was_enabled, rng);
} catch (const std::exception& e) {
BOOST_LOG_TRIVIAL(error)<<"Exception in Enable wasn't of "
<< neighbor_id <<": " << e.what();
throw;
}
}
} else {
BOOST_ASSERT_MSG(previous_propagator!=nullptr, "Transition didn't "
"return a distribution, so it thinks it was enabled, but it "
"isn't listed as enabled in any propagator");
}
} else if (!isEnabled && previous_propagator!=nullptr) {
previous_propagator->Disable(neighbor_id, state_->CurrentTime());
} else {
; // not enabled, not becoming enabled.
}
});
SMVLOG(BOOST_LOG_TRIVIAL(trace) << "Marking modified cnt: "<<
state_->marking.Modified().size());
state_->marking.Clear();
}
void Trigger(TransitionKey trans_id, double when, RNG& rng) {
if (when-state_->CurrentTime()<-1e-4) {
BOOST_LOG_TRIVIAL(error) << "Firing negative time "<<when <<
" given current time "<<state_->CurrentTime() <<" for transition "
<<trans_id;
}
auto neighboring_places=NeighborsOfTransition(gspn_, trans_id);
auto lm=state_->marking.GetLocalMarking();
state_->marking.InitLocal(lm, neighboring_places);
Fire(gspn_, trans_id, state_->user, lm, when, rng);
state_->marking.ReadLocal(lm, neighboring_places);
SMVLOG(BOOST_LOG_TRIVIAL(trace) << "Fire "<<trans_id <<" neighbors: "<<
neighboring_places.size() << " modifies "
<< state_->marking.Modified().size() << " places.");
state_->SetTime(when);
bool enabled=false;
double previous_when;
for (auto& prop_ptr : propagator_) {
std::tie(enabled, previous_when)=prop_ptr->Enabled(trans_id);
if (enabled) {
prop_ptr->Fire(trans_id, state_->CurrentTime(), rng);
break;
}
}
BOOST_ASSERT_MSG(enabled, "The transition that fired wasn't enabled?");
}
PropagatorVector& Propagators() { return propagator_; }
private:
GSPN& gspn_;
State* state_;
PropagatorVector propagator_;
};
} // smv
} // afidd
#endif // _PARTIAL_CORE_MATRIX_H_
| adolgert/hop-skip-bite | hopskip/src/semimarkov-0.1/partial_core_matrix.hpp | C++ | mit | 7,601 |
using System;
using Xamarin.Forms;
namespace TextSpeaker.Views
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
private async void Button_OnClicked(object sender, EventArgs e)
{
var result = await DisplayAlert("確認", "Text Speech画面へ遷移しますか?", "OK", "Cancel");
if (result)
{
await Navigation.PushAsync(new TextSpeechPage());
}
}
}
}
| jxug/PrismAndMoqHansOn | before/TextSpeaker/TextSpeaker/TextSpeaker/Views/MainPage.xaml.cs | C# | mit | 539 |
var fans=require('../../modules/blog/fans');
var User=require('../../modules/resume/user');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
module.exports=(async(function(method,req,res){
var result;
if(method==='get'){
}
else if(method==='post'){
var userId=req.session.uid;
var targetId=req.body.targetId;
if(userId){
if(userId==targetId){
result={
status:-1,
msg:"你咋可以自己关注自己呢?自恋!"
}
}else{
//已登录才能关注,查询是否已关注过
var isFansDate=await(fans.findOne({
where:{
userId:userId,
targetId:targetId
}
}))
if(isFansDate){
result={
status:-1,
msg:"已关注"
}
}
else{
var fansDate=await(fans.create({
userId:userId,
targetId:targetId
}))
if(fansDate){
result={
status:0,
msg:"关注成功"
}
}else{
result={
status:-1,
msg:"关注失败"
}
}
}
}
}else{
result={
status:-1,
msg:"未登录"
}
}
}
else if(method==='delete'){
var targetId=req.query.targetId;
var userId=req.session.uid;
if(userId){
//已登录才能取消关注,查询是否已关注过
var isFansDate=await(fans.findOne({
where:{
userId:userId,
targetId:targetId
}
}))
if(isFansDate){
var fansDate=await(fans.destroy({
where:{
userId:userId,
targetId:targetId
}
}))
if(fansDate){
result={
status:0,
msg:"取消关注成功"
}
}else{
result={
status:-1,
msg:"取消关注失败"
}
}
}
else{
result={
status:-1,
msg:"未关注"
}
}
}else{
result={
status:-1,
msg:"未登录"
}
}
}
res.writeHead(200,{"Content-Type":"text/html;charset=utf-8"});
res.end(JSON.stringify(result))
})) | weijiafen/antBlog | src/main/server/controler/blog/fans.js | JavaScript | mit | 1,918 |
<?php
namespace Guardian\User\Caller;
use Assert\Assertion;
use Guardian\Caller\HasLoginToken;
use Guardian\User\Caller;
/**
* Simple user caller
*
* @author Márk Sági-Kazár <[email protected]>
*/
class User implements Caller, HasLoginToken, \ArrayAccess
{
/**
* @var string|integer
*/
protected $id;
/**
* @var array
*/
protected $data;
/**
* @param string|integer $id
* @param array $data
*/
public function __construct($id, $data)
{
// TODO: check for id's type
Assertion::choicesNotEmpty($data, ['username', 'password']);
$this->id = $id;
$this->data = $data;
}
/**
* {@inheritdoc}
*/
public function getId()
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function getLoginToken()
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function getUsername()
{
return $this->data['username'];
}
/**
* {@inheritdoc}
*/
public function getPassword()
{
return $this->data['password'];
}
/**
* Returns dynamic properties passed to the object
*
* Notice: property names should be camelCased
*
* @param string $method
* @param array $arguments
*
* @return mixed
*
* @throws BadMethodCallException If $method is not a property
*/
public function __call($method, array $arguments)
{
if (substr($method, 0, 3) === 'get' and $property = substr($method, 3)) {
$property = lcfirst($property);
Assertion::notEmptyKey($this->data, $property, 'User does not have a(n) "%s" property');
return $this->data[$property];
}
throw new \BadMethodCallException(sprintf('Method "%s" does not exists', $method));
}
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->data[] = $value;
} else {
$this->data[$offset] = $value;
}
}
/**
* {@inheritdoc}
*/
public function offsetExists($offset)
{
return isset($this->data[$offset]);
}
/**
* {@inheritdoc}
*/
public function offsetUnset($offset)
{
if (isset($this->data[$offset])) {
unset($this->data[$offset]);
}
}
/**
* {@inheritdoc}
*/
public function offsetGet($offset)
{
if (isset($this->data[$offset])) {
return $this->data[$offset];
}
}
}
| guardianphp/user | src/Caller/User.php | PHP | mit | 2,639 |
module HashRollup
extend self
def rollup data, into
raise ArgumentError, "arguments must be Hashes" unless data.is_a?(Hash) && into.is_a?(Hash)
into.merge(data) do |key, current_val, new_val|
if current_val.class.name != new_val.class.name
raise "Mismatch in types detected! Key = #{key}, current value type = #{current_val.class.name}, new value type = #{new_val.class.name}"
end
if current_val.is_a?(Hash)
rollup new_val, current_val
elsif current_val.is_a?(String)
new_val
else
current_val + new_val
end
end
end
end
| UKHomeOffice/platform-hub | platform-hub-api/app/lib/hash_rollup.rb | Ruby | mit | 609 |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using System;
using System.Runtime.InteropServices;
namespace Noesis
{
[StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public struct Sizei {
[MarshalAs(UnmanagedType.U4)]
private uint _w;
[MarshalAs(UnmanagedType.U4)]
private uint _h;
public uint Width {
get { return this._w; }
set { this._w = value; }
}
public uint Height {
get { return this._h; }
set { this._h = value; }
}
public static Sizei Zero {
get { return new Sizei(0, 0); }
}
public static Sizei Infinite {
get { return new Sizei(System.UInt32.MaxValue, System.UInt32.MaxValue); }
}
public Sizei(uint w, uint h) {
this._w = w;
this._h = h;
}
public Sizei(Size size) : this((uint)size.Width, (uint)size.Height) {
}
public Sizei(Pointi point) : this((uint)point.X, (uint)point.Y) {
}
public static Sizei operator+(Sizei v0, Sizei v1) {
return new Sizei(v0.Width + v1.Width, v0.Height + v1.Height);
}
public static Sizei operator-(Sizei v0, Sizei v1) {
return new Sizei(v0.Width - v1.Width, v0.Height - v1.Height);
}
public static Sizei operator*(Sizei v, uint f) {
return new Sizei(v.Width * f, v.Height * f);
}
public static Sizei operator*(uint f, Sizei v) {
return v * f;
}
public static Sizei operator/(Sizei v, uint f) {
if (f == 0) { throw new System.DivideByZeroException(); }
return new Sizei(v.Width / f, v.Height / f);
}
public static bool operator==(Sizei v0, Sizei v1) {
return v0.Width == v1.Width && v0.Height == v1.Height;
}
public static bool operator!=(Sizei v0, Sizei v1) {
return !(v0 == v1);
}
public override bool Equals(System.Object obj) {
return obj is Sizei && this == (Sizei)obj;
}
public bool Equals(Sizei v) {
return this == v;
}
public override int GetHashCode() {
return (int)Width ^ (int)Height;
}
public override string ToString() {
return System.String.Format("{0},{1}", Width, Height);
}
public void Expand(Sizei size) {
Width = System.Math.Max(Width, size.Width);
Height = System.Math.Max(Height, size.Height);
}
public void Scale(uint scaleX, uint scaleY) {
Width *= scaleX;
Height *= scaleY;
}
public static Sizei Parse(string str) {
Sizei size;
if (Sizei.TryParse(str, out size)) {
return size;
}
throw new ArgumentException("Cannot create Sizei from '" + str + "'");
}
public static bool TryParse(string str, out Sizei result) {
bool ret = NoesisGUI_PINVOKE.Sizei_TryParse(str != null ? str : string.Empty, out result);
#if UNITY_EDITOR || NOESIS_API
if (NoesisGUI_PINVOKE.SWIGPendingException.Pending) throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
#endif
return ret;
}
}
}
| JinkiJung/PAUT | VRAT/vrat/Assets/Plugins/NoesisGUI/Scripts/Proxies/Sizei.cs | C# | mit | 3,144 |
"""
.. module:: mlpy.auxiliary.datastructs
:platform: Unix, Windows
:synopsis: Provides data structure implementations.
.. moduleauthor:: Astrid Jackson <[email protected]>
"""
from __future__ import division, print_function, absolute_import
import heapq
import numpy as np
from abc import ABCMeta, abstractmethod
class Array(object):
"""The managed array class.
The managed array class pre-allocates memory to the given size
automatically resizing as needed.
Parameters
----------
size : int
The size of the array.
Examples
--------
>>> a = Array(5)
>>> a[0] = 3
>>> a[1] = 6
Retrieving an elements:
>>> a[0]
3
>>> a[2]
0
Finding the length of the array:
>>> len(a)
2
"""
def __init__(self, size):
self._data = np.zeros((size,))
self._capacity = size
self._size = 0
def __setitem__(self, index, value):
"""Set the the array at the index to the given value.
Parameters
----------
index : int
The index into the array.
value :
The value to set the array to.
"""
if index >= self._size:
if self._size == self._capacity:
self._capacity *= 2
new_data = np.zeros((self._capacity,))
new_data[:self._size] = self._data
self._data = new_data
self._size += 1
self._data[index] = value
def __getitem__(self, index):
"""Get the value at the given index.
Parameters
----------
index : int
The index into the array.
"""
return self._data[index]
def __len__(self):
"""The length of the array.
Returns
-------
int :
The size of the array
"""
return self._size
class Point2D(object):
"""The 2d-point class.
The 2d-point class is a container for positions
in a 2d-coordinate system.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
"""
__slots__ = ['x', 'y']
def __init__(self, x=0.0, y=0.0):
self.x = x
self.y = y
class Point3D(object):
"""
The 3d-point class.
The 3d-point class is a container for positions
in a 3d-coordinate system.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
z : float, optional
The z-position in a 3d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
z : float
The z-position in a 3d-coordinate system.
"""
__slots__ = ['x', 'y', 'z']
def __init__(self, x=0.0, y=0.0, z=0.0):
self.x = x
self.y = y
self.z = z
class Vector3D(Point3D):
"""The 3d-vector class.
.. todo::
Implement vector functionality.
Parameters
----------
x : float, optional
The x-position in a 2d-coordinate system. Default is 0.0.
y : float, optional
The y-position in a 2d-coordinate system. Default is 0.0.
z : float, optional
The z-position in a 3d-coordinate system. Default is 0.0.
Attributes
----------
x : float
The x-position in a 2d-coordinate system.
y : float
The y-position in a 2d-coordinate system.
z : float
The z-position in a 3d-coordinate system.
"""
def __init__(self, x=0.0, y=0.0, z=0.0):
super(Vector3D, self).__init__(x, y, z)
class Queue(object):
"""The abstract queue base class.
The queue class handles core functionality common for
any type of queue. All queues inherit from the queue
base class.
See Also
--------
:class:`FIFOQueue`, :class:`PriorityQueue`
"""
__metaclass__ = ABCMeta
def __init__(self):
self._queue = []
def __len__(self):
return len(self._queue)
def __contains__(self, item):
try:
self._queue.index(item)
return True
except Exception:
return False
def __iter__(self):
return iter(self._queue)
def __str__(self):
return '[' + ', '.join('{}'.format(el) for el in self._queue) + ']'
def __repr__(self):
return ', '.join('{}'.format(el) for el in self._queue)
@abstractmethod
def push(self, item):
"""Push a new element on the queue
Parameters
----------
item :
The element to push on the queue
"""
raise NotImplementedError
@abstractmethod
def pop(self):
"""Pop an element from the queue."""
raise NotImplementedError
def empty(self):
"""Check if the queue is empty.
Returns
-------
bool :
Whether the queue is empty.
"""
return len(self._queue) <= 0
def extend(self, items):
"""Extend the queue by a number of elements.
Parameters
----------
items : list
A list of items.
"""
for item in items:
self.push(item)
def get(self, item):
"""Return the element in the queue identical to `item`.
Parameters
----------
item :
The element to search for.
Returns
-------
The element in the queue identical to `item`. If the element
was not found, None is returned.
"""
try:
index = self._queue.index(item)
return self._queue[index]
except Exception:
return None
def remove(self, item):
"""Remove an element from the queue.
Parameters
----------
item :
The element to remove.
"""
self._queue.remove(item)
class FIFOQueue(Queue):
"""The first-in-first-out (FIFO) queue.
In a FIFO queue the first element added to the queue
is the first element to be removed.
Examples
--------
>>> q = FIFOQueue()
>>> q.push(5)
>>> q.extend([1, 3, 7])
>>> print q
[5, 1, 3, 7]
Retrieving an element:
>>> q.pop()
5
Removing an element:
>>> q.remove(3)
>>> print q
[1, 7]
Get the element in the queue identical to the given item:
>>> q.get(7)
7
Check if the queue is empty:
>>> q.empty()
False
Loop over the elements in the queue:
>>> for x in q:
>>> print x
1
7
Check if an element is in the queue:
>>> if 7 in q:
>>> print "yes"
yes
See Also
--------
:class:`PriorityQueue`
"""
def __init__(self):
super(FIFOQueue, self).__init__()
def push(self, item):
"""Push an element to the end of the queue.
Parameters
----------
item :
The element to append.
"""
self._queue.append(item)
def pop(self):
"""Return the element at the front of the queue.
Returns
-------
The first element in the queue.
"""
return self._queue.pop(0)
def extend(self, items):
"""Append a list of elements at the end of the queue.
Parameters
----------
items : list
List of elements.
"""
self._queue.extend(items)
class PriorityQueue(Queue):
"""
The priority queue.
In a priority queue each element has a priority associated with it. An element
with high priority (i.e., smallest value) is served before an element with low priority
(i.e., largest value). The priority queue is implemented with a heap.
Parameters
----------
func : callable
A callback function handling the priority. By default the priority
is the value of the element.
Examples
--------
>>> q = PriorityQueue()
>>> q.push(5)
>>> q.extend([1, 3, 7])
>>> print q
[(1,1), (5,5), (3,3), (7,7)]
Retrieving the element with highest priority:
>>> q.pop()
1
Removing an element:
>>> q.remove((3, 3))
>>> print q
[(5,5), (7,7)]
Get the element in the queue identical to the given item:
>>> q.get(7)
7
Check if the queue is empty:
>>> q.empty()
False
Loop over the elements in the queue:
>>> for x in q:
>>> print x
(5, 5)
(7, 7)
Check if an element is in the queue:
>>> if 7 in q:
>>> print "yes"
yes
See Also
--------
:class:`FIFOQueue`
"""
def __init__(self, func=lambda x: x):
super(PriorityQueue, self).__init__()
self.func = func
def __contains__(self, item):
for _, element in self._queue:
if item == element:
return True
return False
def __str__(self):
return '[' + ', '.join('({},{})'.format(*el) for el in self._queue) + ']'
def push(self, item):
"""Push an element on the priority queue.
The element is pushed on the priority queue according
to its priority.
Parameters
----------
item :
The element to push on the queue.
"""
heapq.heappush(self._queue, (self.func(item), item))
def pop(self):
"""Get the element with the highest priority.
Get the element with the highest priority (i.e., smallest value).
Returns
-------
The element with the highest priority.
"""
return heapq.heappop(self._queue)[1]
def get(self, item):
"""Return the element in the queue identical to `item`.
Parameters
----------
item :
The element to search for.
Returns
-------
The element in the queue identical to `item`. If the element
was not found, None is returned.
"""
for _, element in self._queue:
if item == element:
return element
return None
def remove(self, item):
"""Remove an element from the queue.
Parameters
----------
item :
The element to remove.
"""
super(PriorityQueue, self).remove(item)
heapq.heapify(self._queue)
| evenmarbles/mlpy | mlpy/auxiliary/datastructs.py | Python | mit | 10,818 |
import unittest
import numpy as np
from bayesnet.image.util import img2patch, patch2img
class TestImg2Patch(unittest.TestCase):
def test_img2patch(self):
img = np.arange(16).reshape(1, 4, 4, 1)
patch = img2patch(img, size=3, step=1)
expected = np.asarray([
[img[0, 0:3, 0:3, 0], img[0, 0:3, 1:4, 0]],
[img[0, 1:4, 0:3, 0], img[0, 1:4, 1:4, 0]]
])
expected = expected[None, ..., None]
self.assertTrue((patch == expected).all())
imgs = [
np.random.randn(2, 5, 6, 3),
np.random.randn(3, 10, 10, 2),
np.random.randn(1, 23, 17, 5)
]
sizes = [
(1, 1),
2,
(3, 4)
]
steps = [
(1, 2),
(3, 1),
3
]
shapes = [
(2, 5, 3, 1, 1, 3),
(3, 3, 9, 2, 2, 2),
(1, 7, 5, 3, 4, 5)
]
for img, size, step, shape in zip(imgs, sizes, steps, shapes):
self.assertEqual(shape, img2patch(img, size, step).shape)
class TestPatch2Img(unittest.TestCase):
def test_patch2img(self):
img = np.arange(16).reshape(1, 4, 4, 1)
patch = img2patch(img, size=2, step=2)
self.assertTrue((img == patch2img(patch, (2, 2), (1, 4, 4, 1))).all())
patch = img2patch(img, size=3, step=1)
expected = np.arange(0, 32, 2).reshape(1, 4, 4, 1)
expected[0, 0, 0, 0] /= 2
expected[0, 0, -1, 0] /= 2
expected[0, -1, 0, 0] /= 2
expected[0, -1, -1, 0] /= 2
expected[0, 1:3, 1:3, 0] *= 2
self.assertTrue((expected == patch2img(patch, (1, 1), (1, 4, 4, 1))).all())
if __name__ == '__main__':
unittest.main()
| ctgk/BayesianNetwork | test/image/test_util.py | Python | mit | 1,753 |
<?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 16.10.18
* Time: 23:45
*/
namespace Enhavo\Bundle\FormBundle\Form\Type;
use Enhavo\Bundle\FormBundle\Form\Helper\EntityTreeChoiceBuilder;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolver;
class EntityTreeType extends AbstractType
{
public function buildView(FormView $view, FormInterface $form, array $options)
{
$choices = $view->vars['choices'];
$builder = new EntityTreeChoiceBuilder($options['parent_property']);
$builder->build($choices);
$view->vars['choice_tree_builder'] = $builder;
$view->vars['children_container_class'] = $options['children_container_class'];
}
public function finishView(FormView $view, FormInterface $form, array $options)
{
$builder = $view->vars['choice_tree_builder'];
if($builder instanceof EntityTreeChoiceBuilder) {
$builder->map($view);
}
if(!$options['expanded']) {
$view->vars['choices'] = $builder->getChoiceViews();
}
}
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
'parent_property' => 'parent',
'children_container_class' => 'entity-tree-children',
]);
}
public function getBlockPrefix()
{
return 'entity_tree';
}
public function getParent()
{
return EntityType::class;
}
}
| npakai/enhavo | src/Enhavo/Bundle/FormBundle/Form/Type/EntityTreeType.php | PHP | mit | 1,622 |
/****************************************************************/
/* 1. IMPORTED STYLESHEETS */
/****************************************************************/
/* Import the basic setup styles */
@import url(imports/base.css);
/* Import the colour scheme */
@import url(imports/Radium_cs.css);
/****************************************************************/
/* 2. TEXT SETTINGS */
/****************************************************************/
/* 2.1 This sets the default Font Group */
.pun, .pun INPUT, .pun SELECT, .pun TEXTAREA, .pun OPTGROUP {
FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
.pun {FONT-SIZE: 11px; LINE-HEIGHT: normal}
/* IEWin Font Size only - to allow IEWin to zoom. Do not remove comments \*/
* HTML .pun {FONT-SIZE: 68.75%}
/* End IE Win Font Size */
/* Set font size for tables because IE requires it */
.pun TABLE, .pun INPUT, .pun SELECT, .pun OPTGROUP, .pun TEXTAREA, DIV.postmsg P.postedit {FONT-SIZE: 1em}
/* 2.2 Set the font-size for preformatted text i.e in code boxes */
.pun PRE {FONT-FAMILY: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace}
/* 2.3 Font size for headers */
.pun H2, .pun H4 {FONT-SIZE: 1em}
.pun H3 {FONT-SIZE: 1.1em}
#brdtitle H1 {FONT-SIZE: 1.4em}
/* 2.4 Larger text for particular items */
DIV.postmsg P {LINE-HEIGHT: 1.4}
DIV.postleft DT {FONT-SIZE: 1.1em}
.pun PRE {FONT-SIZE: 1.2em}
/* 2.5 Bold text */
DIV.postleft DT, DIV.postmsg H4, TD.tcl H3, DIV.forminfo H3, P.postlink, DIV.linkst LI,
DIV.linksb LI, DIV.postlinksb LI, .blockmenu LI, #brdtitle H1, .pun SPAN.warntext, .pun P.warntext {FONT-WEIGHT: bold}
/****************************************************************/
/* 3. LINKS */
/****************************************************************/
/* 3.1 Remove underlining for main menu, post header links, post links and vertical menus */
#brdmenu A:link, #brdmenu A:visited, .blockpost DT A:link, .blockpost DT A:visited, .blockpost H2 A:link,
.blockpost H2 A:visited, .postlink A:link, .postlink A:visited, .postfootright A:link, .postfootright A:visited,
.blockmenu A:link, .blockmenu A:visited {
TEXT-DECORATION: none
}
/* 3.2 Underline on hover for links in headers and main menu */
#brdmenu A:hover, .blockpost H2 A:hover {TEXT-DECORATION: underline}
/****************************************************************/
/* 4. BORDER WIDTH AND STYLE */
/****************************************************************/
/* 4.1 By default borders are 1px solid */
DIV.box, .pun TD, .pun TH, .pun BLOCKQUOTE, DIV.codebox, DIV.forminfo, DIV.blockpost LABEL {
BORDER-STYLE: solid;
BORDER-WIDTH: 1px
}
/* 4.2 Special settings for the board header. */
#brdheader DIV.box {BORDER-TOP-WIDTH: 4px}
/* 4.3 Borders for table cells */
.pun TD, .pun TH {
BORDER-BOTTOM: none;
BORDER-RIGHT: none
}
.pun .tcl {BORDER-LEFT: none}
/* 4.4 Special setting for fieldsets to preserve IE defaults */
DIV>FIELDSET {
BORDER-STYLE: solid;
BORDER-WIDTH: 1px
}
/****************************************************************/
/* 5. VERTICAL AND PAGE SPACING */
/****************************************************************/
/* 5.1 Page margins */
HTML, BODY {MARGIN: 0; PADDING: 0}
#punwrap {margin:12px 20px}
/* 5.2 Creates vertical space between main board elements (Margins) */
DIV.blocktable, DIV.block, DIV.blockform, DIV.block2col, #postreview {MARGIN-BOTTOM: 12px}
#punindex DIV.blocktable, DIV.blockpost {MARGIN-BOTTOM: 6px}
DIV.block2col DIV.blockform, DIV.block2col DIV.block {MARGIN-BOTTOM: 0px}
/* 5.3 Remove space above breadcrumbs, postlinks and pagelinks with a negative top margin */
DIV.linkst, DIV.linksb {MARGIN-TOP: -12px}
DIV.postlinksb {MARGIN-TOP: -6px}
/* 5.4 Put a 12px gap above the board information box in index because the category tables only
have a 6px space beneath them */
#brdstats {MARGIN-TOP: 12px}
/****************************************************************/
/* 6. SPACING AROUND CONTENT */
/****************************************************************/
/* 6.1 Default padding for main items */
DIV.block DIV.inbox, DIV.blockmenu DIV.inbox {PADDING: 3px 6px}
.pun P, .pun UL, .pun DL, DIV.blockmenu LI, .pun LABEL, #announce DIV.inbox DIV {PADDING: 3px 0}
.pun H2 {PADDING: 4px 6px}
/* 6.2 Special spacing for various elements */
.pun H1 {PADDING: 3px 0px 0px 0}
#brdtitle P {PADDING-TOP: 0px}
DIV.linkst {PADDING: 8px 6px 3px 6px}
DIV.linksb, DIV.postlinksb {PADDING: 3px 6px 8px 6px}
#brdwelcome, #brdfooter DL A, DIV.blockmenu LI, DIV.rbox INPUT {LINE-HEIGHT: 1.4em}
#viewprofile DT, #viewprofile DD {PADDING: 0 3px; LINE-HEIGHT: 2em}
/* 6.4 Create some horizontal spacing for various elements */
#brdmenu LI, DIV.rbox INPUT, DIV.blockform P INPUT {MARGIN-RIGHT: 12px}
/****************************************************************/
/* 7. SPACING FOR TABLES */
/****************************************************************/
.pun TH, .pun TD {PADDING: 4px 6px}
.pun TD P {PADDING: 5px 0 0 0}
/****************************************************************/
/* 8. SPACING FOR POSTS */
/****************************************************************/
/* 8.1 Padding around left and right columns in viewtopic */
DIV.postleft DL, DIV.postright {PADDING: 6px}
/* 8.2 Extra spacing for poster contact details and avatar */
DD.usercontacts, DD.postavatar {MARGIN-TOP: 5px}
DD.postavatar {MARGIN-BOTTOM: 5px}
/* 8.3 Extra top spacing for signatures and edited by */
DIV.postsignature, DIV.postmsg P.postedit {PADDING-TOP: 15px}
/* 8.4 Spacing for code and quote boxes */
DIV.postmsg H4 {MARGIN-BOTTOM: 10px}
.pun BLOCKQUOTE, DIV.codebox {MARGIN: 5px 15px 15px 15px; PADDING: 8px}
/* 8.5 Padding for the action links and online indicator in viewtopic */
DIV.postfootleft P, DIV.postfootright UL, DIV.postfootright DIV {PADDING: 10px 6px 5px 6px}
/* 8.6 This is the input on moderators multi-delete view */
DIV.blockpost INPUT, DIV.blockpost LABEL {
PADDING: 3px;
DISPLAY: inline
}
P.multidelete {
PADDING-TOP: 15px;
PADDING-BOTTOM: 5px
}
/* 8.7 Make sure paragraphs in posts don't get any padding */
DIV.postmsg P {PADDING: 0}
/****************************************************************/
/* 9. SPECIAL SPACING FOR FORMS */
/****************************************************************/
/* 9.1 Padding around fieldsets */
DIV.blockform FORM, DIV.fakeform {PADDING: 20px 20px 15px 20px}
DIV.inform {PADDING-BOTTOM: 12px}
/* 9.2 Padding inside fieldsets */
.pun FIELDSET {PADDING: 0px 12px 0px 12px}
DIV.infldset {PADDING: 9px 0px 12px 0}
.pun LEGEND {PADDING: 0px 6px}
/* 9.3 The information box at the top of the registration form and elsewhere */
DIV.forminfo {
MARGIN-BOTTOM: 12px;
PADDING: 9px 10px
}
/* 9.4 BBCode help links in post forms */
UL.bblinks LI {PADDING-RIGHT: 20px}
UL.bblinks {PADDING-BOTTOM: 10px; PADDING-LEFT: 4px}
/* 9.5 Horizontal positioning for the submit button on forms */
DIV.blockform P INPUT {MARGIN-LEFT: 12px}
/****************************************************************/
/* 10. POST STATUS INDICATORS */
/****************************************************************/
/* 10.1 These are the post status indicators which appear at the left of some tables.
.inew = new posts, .iredirect = redirect forums, .iclosed = closed topics and
.isticky = sticky topics. By default only .inew is different from the default.*/
DIV.icon {
FLOAT: left;
MARGIN-TOP: 0.1em;
MARGIN-LEFT: 0.2em;
DISPLAY: block;
BORDER-WIDTH: 0.6em 0.6em 0.6em 0.6em;
BORDER-STYLE: solid
}
DIV.searchposts DIV.icon {MARGIN-LEFT: 0}
/* 10.2 Class .tclcon is a div inside the first column of tables with post indicators. The
margin creates space for the post status indicator */
TD DIV.tclcon {MARGIN-LEFT: 2.3em}
| fweber1/Annies-Ancestors | PhpGedView/modules/punbb/style/Radium.css | CSS | mit | 8,041 |
// @flow
import React, { Component } from 'react'
import { Helmet } from 'react-helmet'
import AlternativeMedia from './AlternativeMedia'
import ImageViewer from './ImageViewer'
import { Code, CodeBlock, Title } from '../components'
const propFn = k => {
const style = { display: 'inline-block', marginBottom: 4, marginRight: 4 }
return (
<span key={k} style={style}>
<Code>{k}</Code>
</span>
)
}
const commonProps = [
'carouselProps',
'currentIndex',
'currentView',
'frameProps',
'getStyles',
'isFullscreen',
'isModal',
'modalProps',
'interactionIsIdle',
'trackProps',
'views',
]
export default class CustomComponents extends Component<*> {
render() {
return (
<div>
<Helmet>
<title>Components - React Images</title>
<meta
name="description"
content="React Images allows you to augment layout and functionality by
replacing the default components with your own."
/>
</Helmet>
<Title>Components</Title>
<p>
The main feature of this library is providing consumers with the building blocks necessary to create <em>their</em> component.
</p>
<h3>Replacing Components</h3>
<p>
React-Images allows you to augment layout and functionality by replacing the default components with your own, using the <Code>components</Code>{' '}
property. These components are given all the current props and state letting you achieve anything you dream up.
</p>
<h3>Inner Props</h3>
<p>
All functional properties that the component needs are provided in <Code>innerProps</Code> which you must spread.
</p>
<h3>Common Props</h3>
<p>
Every component receives <Code>commonProps</Code> which are spread onto the component. These include:
</p>
<p>{commonProps.map(propFn)}</p>
<CodeBlock>
{`import React from 'react';
import Carousel from 'react-images';
const CustomHeader = ({ innerProps, isModal }) => isModal ? (
<div {...innerProps}>
// your component internals
</div>
) : null;
class Component extends React.Component {
render() {
return <Carousel components={{ Header: CustomHeader }} />;
}
}`}
</CodeBlock>
<h2>Component API</h2>
<h3>{'<Container />'}</h3>
<p>Wrapper for the carousel. Attachment point for mouse and touch event listeners.</p>
<h3>{'<Footer />'}</h3>
<p>
Element displayed beneath the views. Renders <Code>FooterCaption</Code> and <Code>FooterCount</Code> by default.
</p>
<h3>{'<FooterCaption />'}</h3>
<p>
Text associated with the current view. Renders <Code>{'{viewData.caption}'}</Code> by default.
</p>
<h3>{'<FooterCount />'}</h3>
<p>
How far through the carousel the user is. Renders{' '}
<Code>
{'{currentIndex}'} of {'{totalViews}'}
</Code>{' '}
by default
</p>
<h3>{'<Header />'}</h3>
<p>
Element displayed above the views. Renders <Code>FullscreenButton</Code> and <Code>CloseButton</Code> by default.
</p>
<h3>{'<HeaderClose />'}</h3>
<p>
The button to close the modal. Accepts the <Code>onClose</Code> function.
</p>
<h3>{'<HeaderFullscreen />'}</h3>
<p>
The button to fullscreen the modal. Accepts the <Code>toggleFullscreen</Code> function.
</p>
<h3>{'<Navigation />'}</h3>
<p>
Wrapper for the <Code>{'<NavigationNext />'}</Code> and <Code>{'<NavigationPrev />'}</Code> buttons.
</p>
<h3>{'<NavigationPrev />'}</h3>
<p>
Button allowing the user to navigate to the previous view. Accepts an <Code>onClick</Code> function.
</p>
<h3>{'<NavigationNext />'}</h3>
<p>
Button allowing the user to navigate to the next view. Accepts an <Code>onClick</Code> function.
</p>
<h3>{'<View />'}</h3>
<p>
The view component renders your media to the user. Receives the current view object as the <Code>data</Code> property.
</p>
<h2>Examples</h2>
<ImageViewer {...this.props} />
<AlternativeMedia />
</div>
)
}
}
| jossmac/react-images | docs/pages/CustomComponents/index.js | JavaScript | mit | 4,414 |
JAMAccurateSlider
===========
A UISlider subclass that enables much more accurate value selection.

JAMAccurateSlider is a drop-in replacement for UISlider. It behaves exactly the same as UISlider with the following awesome differences:
1. When the user begins tracking, two small "calipers" appear at the extents of the track.
2. When the user tracks their finger up (or down) past a certain threshold (~twice the height of the slider), the calipers move in towards the thumb and the thumb (and corresponding slider value) begins to move more slowly and accurately.
3. The calipers are a visual indication of how accurate the slider is, and is a great way for users to intuitively grasp the interaction mechanism.
4. The further the user moves their finger vertically from the slider, the greater the possibility of accuracy.
This behavior is completely automatic. There is nothing to configure. We think you'll love it.
| jmenter/JAMAccurateSlider | README.md | Markdown | mit | 1,057 |
'''
logger_setup.py customizes the app's logging module. Each time an event is
logged the logger checks the level of the event (eg. debug, warning, info...).
If the event is above the approved threshold then it goes through. The handlers
do the same thing; they output to a file/shell if the event level is above their
threshold.
:Example:
>> from website import logger
>> logger.info('event', foo='bar')
**Levels**:
- logger.debug('For debugging purposes')
- logger.info('An event occured, for example a database update')
- logger.warning('Rare situation')
- logger.error('Something went wrong')
- logger.critical('Very very bad')
You can build a log incrementally as so:
>> log = logger.new(date='now')
>> log = log.bind(weather='rainy')
>> log.info('user logged in', user='John')
'''
import datetime as dt
import logging
from logging.handlers import RotatingFileHandler
import pytz
from flask import request, session
from structlog import wrap_logger
from structlog.processors import JSONRenderer
from app import app
# Set the logging level
app.logger.setLevel(app.config['LOG_LEVEL'])
# Remove the stdout handler
app.logger.removeHandler(app.logger.handlers[0])
TZ = pytz.timezone(app.config['TIMEZONE'])
def add_fields(_, level, event_dict):
''' Add custom fields to each record. '''
now = dt.datetime.now()
#event_dict['timestamp'] = TZ.localize(now, True).astimezone(pytz.utc).isoformat()
event_dict['timestamp'] = TZ.localize(now, True).astimezone\
(pytz.timezone(app.config['TIMEZONE'])).strftime(app.config['TIME_FMT'])
event_dict['level'] = level
if request:
try:
#event_dict['ip_address'] = request.headers['X-Forwarded-For'].split(',')[0].strip()
event_dict['ip_address'] = request.headers.get('X-Forwarded-For', request.remote_addr)
#event_dict['ip_address'] = request.header.get('X-Real-IP')
except:
event_dict['ip_address'] = 'unknown'
return event_dict
# Add a handler to write log messages to a file
if app.config.get('LOG_FILE'):
file_handler = RotatingFileHandler(filename=app.config['LOG_FILENAME'],
maxBytes=app.config['LOG_MAXBYTES'],
backupCount=app.config['LOG_BACKUPS'],
mode='a',
encoding='utf-8')
file_handler.setLevel(logging.DEBUG)
app.logger.addHandler(file_handler)
# Wrap the application logger with structlog to format the output
logger = wrap_logger(
app.logger,
processors=[
add_fields,
JSONRenderer(indent=None)
]
) | Kbman99/NetSecShare | app/logger_setup.py | Python | mit | 2,739 |
import { TurbolinksTestCase } from "./helpers/turbolinks_test_case"
import { get } from "http"
export class VisitTests extends TurbolinksTestCase {
async setup() {
this.goToLocation("/fixtures/visit.html")
}
async "test programmatically visiting a same-origin location"() {
const urlBeforeVisit = await this.location
await this.visitLocation("/fixtures/one.html")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "advance")
const { url: urlFromBeforeVisitEvent } = await this.nextEventNamed("turbolinks:before-visit")
this.assert.equal(urlFromBeforeVisitEvent, urlAfterVisit)
const { url: urlFromVisitEvent } = await this.nextEventNamed("turbolinks:visit")
this.assert.equal(urlFromVisitEvent, urlAfterVisit)
const { timing } = await this.nextEventNamed("turbolinks:load")
this.assert.ok(timing)
}
async "test programmatically visiting a cross-origin location falls back to window.location"() {
const urlBeforeVisit = await this.location
await this.visitLocation("about:blank")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "load")
}
async "test visiting a location served with a non-HTML content type"() {
const urlBeforeVisit = await this.location
await this.visitLocation("/fixtures/svg")
const url = await this.remote.getCurrentUrl()
const contentType = await contentTypeOfURL(url)
this.assert.equal(contentType, "image/svg+xml")
const urlAfterVisit = await this.location
this.assert.notEqual(urlBeforeVisit, urlAfterVisit)
this.assert.equal(await this.visitAction, "load")
}
async "test canceling a before-visit event prevents navigation"() {
this.cancelNextVisit()
const urlBeforeVisit = await this.location
this.clickSelector("#same-origin-link")
await this.nextBeat
this.assert(!await this.changedBody)
const urlAfterVisit = await this.location
this.assert.equal(urlAfterVisit, urlBeforeVisit)
}
async "test navigation by history is not cancelable"() {
this.clickSelector("#same-origin-link")
await this.drainEventLog()
await this.nextBeat
await this.goBack()
this.assert(await this.changedBody)
}
async visitLocation(location: string) {
this.remote.execute((location: string) => window.Turbolinks.visit(location), [location])
}
async cancelNextVisit() {
this.remote.execute(() => addEventListener("turbolinks:before-visit", function eventListener(event) {
removeEventListener("turbolinks:before-visit", eventListener, false)
event.preventDefault()
}, false))
}
}
function contentTypeOfURL(url: string): Promise<string | undefined> {
return new Promise(resolve => {
get(url, ({ headers }) => resolve(headers["content-type"]))
})
}
VisitTests.registerSuite()
| turbolinks/turbolinks | src/tests/visit_tests.ts | TypeScript | mit | 2,975 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Ensure input parameters
/// </summary>
[DebuggerStepThrough]
internal static class Ensure
{
/// <summary>
/// Checks an argument to ensure it isn't null.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNull(object argumentValue, string argumentName)
{
if (argumentValue == null)
{
throw new ArgumentNullException(argumentName);
}
}
/// <summary>
/// Checks an array argument to ensure it isn't null or empty.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNullOrEmptyEnumerable<T>(IEnumerable<T> argumentValue, string argumentName)
{
ArgumentNotNull(argumentValue, argumentName);
if (!argumentValue.Any())
{
throw new ArgumentException("Enumerable cannot be empty", argumentName);
}
}
/// <summary>
/// Checks a string argument to ensure it isn't null or empty.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentNotNullOrEmptyString(string argumentValue, string argumentName)
{
ArgumentNotNull(argumentValue, argumentName);
if (String.IsNullOrWhiteSpace (argumentValue))
{
throw new ArgumentException("String cannot be empty", argumentName);
}
}
/// <summary>
/// Checks a string argument to ensure it doesn't contain a zero byte.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentDoesNotContainZeroByte(string argumentValue, string argumentName)
{
if (string.IsNullOrEmpty(argumentValue))
{
return;
}
int zeroPos = -1;
for (var i = 0; i < argumentValue.Length; i++)
{
if (argumentValue[i] == '\0')
{
zeroPos = i;
break;
}
}
if (zeroPos == -1)
{
return;
}
throw new ArgumentException(
string.Format(CultureInfo.InvariantCulture,
"Zero bytes ('\\0') are not allowed. A zero byte has been found at position {0}.", zeroPos), argumentName);
}
private static readonly Dictionary<GitErrorCode, Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException>>
GitErrorsToLibGit2SharpExceptions =
new Dictionary<GitErrorCode, Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException>>
{
{ GitErrorCode.User, (m, r, c) => new UserCancelledException(m, r, c) },
{ GitErrorCode.BareRepo, (m, r, c) => new BareRepositoryException(m, r, c) },
{ GitErrorCode.Exists, (m, r, c) => new NameConflictException(m, r, c) },
{ GitErrorCode.InvalidSpecification, (m, r, c) => new InvalidSpecificationException(m, r, c) },
{ GitErrorCode.UnmergedEntries, (m, r, c) => new UnmergedIndexEntriesException(m, r, c) },
{ GitErrorCode.NonFastForward, (m, r, c) => new NonFastForwardException(m, r, c) },
{ GitErrorCode.MergeConflict, (m, r, c) => new MergeConflictException(m, r, c) },
{ GitErrorCode.LockedFile, (m, r, c) => new LockedFileException(m, r, c) },
{ GitErrorCode.NotFound, (m, r, c) => new NotFoundException(m, r, c) },
{ GitErrorCode.Peel, (m, r, c) => new PeelException(m, r, c) },
};
private static void HandleError(int result)
{
string errorMessage;
GitError error = NativeMethods.giterr_last().MarshalAsGitError();
if (error == null)
{
error = new GitError { Category = GitErrorCategory.Unknown, Message = IntPtr.Zero };
errorMessage = "No error message has been provided by the native library";
}
else
{
errorMessage = LaxUtf8Marshaler.FromNative(error.Message);
}
Func<string, GitErrorCode, GitErrorCategory, LibGit2SharpException> exceptionBuilder;
if (!GitErrorsToLibGit2SharpExceptions.TryGetValue((GitErrorCode)result, out exceptionBuilder))
{
exceptionBuilder = (m, r, c) => new LibGit2SharpException(m, r, c);
}
throw exceptionBuilder(errorMessage, (GitErrorCode)result, error.Category);
}
/// <summary>
/// Check that the result of a C call was successful
/// <para>
/// The native function is expected to return strictly 0 for
/// success or a negative value in the case of failure.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void ZeroResult(int result)
{
if (result == (int)GitErrorCode.Ok)
{
return;
}
HandleError(result);
}
/// <summary>
/// Check that the result of a C call returns a boolean value.
/// <para>
/// The native function is expected to return strictly 0 or 1.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void BooleanResult(int result)
{
if (result == 0 || result == 1)
{
return;
}
HandleError(result);
}
/// <summary>
/// Check that the result of a C call that returns an integer
/// value was successful.
/// <para>
/// The native function is expected to return 0 or a positive
/// value for success or a negative value in the case of failure.
/// </para>
/// </summary>
/// <param name="result">The result to examine.</param>
public static void Int32Result(int result)
{
if (result >= (int)GitErrorCode.Ok)
{
return;
}
HandleError(result);
}
/// <summary>
/// Checks an argument by applying provided checker.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="checker">The predicate which has to be satisfied</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentConformsTo<T>(T argumentValue, Func<T, bool> checker, string argumentName)
{
if (checker(argumentValue))
{
return;
}
throw new ArgumentException(argumentName);
}
/// <summary>
/// Checks an argument is a positive integer.
/// </summary>
/// <param name="argumentValue">The argument value to check.</param>
/// <param name="argumentName">The name of the argument.</param>
public static void ArgumentPositiveInt32(long argumentValue, string argumentName)
{
if (argumentValue >= 0 && argumentValue <= uint.MaxValue)
{
return;
}
throw new ArgumentException(argumentName);
}
/// <summary>
/// Check that the result of a C call that returns a non-null GitObject
/// using the default exception builder.
/// <para>
/// The native function is expected to return a valid object value.
/// </para>
/// </summary>
/// <param name="gitObject">The <see cref="GitObject"/> to examine.</param>
/// <param name="identifier">The <see cref="GitObject"/> identifier to examine.</param>
public static void GitObjectIsNotNull(GitObject gitObject, string identifier)
{
Func<string, LibGit2SharpException> exceptionBuilder;
if (string.Equals("HEAD", identifier, StringComparison.Ordinal))
{
exceptionBuilder = m => new UnbornBranchException(m);
}
else
{
exceptionBuilder = m => new NotFoundException(m);
}
GitObjectIsNotNull(gitObject, identifier, exceptionBuilder);
}
/// <summary>
/// Check that the result of a C call that returns a non-null GitObject
/// using the default exception builder.
/// <para>
/// The native function is expected to return a valid object value.
/// </para>
/// </summary>
/// <param name="gitObject">The <see cref="GitObject"/> to examine.</param>
/// <param name="identifier">The <see cref="GitObject"/> identifier to examine.</param>
/// <param name="exceptionBuilder">The builder which constructs an <see cref="LibGit2SharpException"/> from a message.</param>
public static void GitObjectIsNotNull(
GitObject gitObject,
string identifier,
Func<string, LibGit2SharpException> exceptionBuilder)
{
if (gitObject != null)
{
return;
}
throw exceptionBuilder(string.Format(CultureInfo.InvariantCulture,
"No valid git object identified by '{0}' exists in the repository.",
identifier));
}
}
}
| GeertvanHorrik/libgit2sharp | LibGit2Sharp/Core/Ensure.cs | C# | mit | 10,346 |
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Game.Graphics;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Mods
{
public abstract class ModPerfect : ModSuddenDeath
{
public override string Name => "Perfect";
public override string Acronym => "PF";
public override FontAwesome Icon => FontAwesome.fa_osu_mod_perfect;
public override string Description => "SS or quit.";
protected override bool FailCondition(ScoreProcessor scoreProcessor) => scoreProcessor.Accuracy.Value != 1;
}
}
| naoey/osu | osu.Game/Rulesets/Mods/ModPerfect.cs | C# | mit | 664 |
var gulp = require('gulp');
var browserify = require('browserify');
//transform jsx to js
var reactify = require('reactify');
//convert to stream
var source = require('vinyl-source-stream');
var nodemon = require('gulp-nodemon');
gulp.task('browserify', function() {
//source
browserify('./src/js/main.js')
//convert jsx to js
.transform('reactify')
//creates a bundle
.bundle()
.pipe(source('main.js'))
.pipe(gulp.dest('dist/js'))
});
gulp.task('copy', function() {
gulp.src('src/index.html')
.pipe(gulp.dest('dist'));
gulp.src('src/assets/**/*.*')
.pipe(gulp.dest('dist/assets'));
});
gulp.task('nodemon', function(cb) {
var called = false;
return nodemon({
script: 'server.js'
}).on('start', function() {
if (!called) {
called = true;
cb();
}
});
});
gulp.task('default', ['browserify', 'copy', 'nodemon'], function() {
return gulp.watch('src/**/*.*', ['browserify', 'copy']);
});
| felixcriv/react_scheduler_component | gulpfile.js | JavaScript | mit | 1,039 |
<?php
namespace TodoListBundle\Repository;
use TodoListBundle\Entity\Todo;
use TodoListBundle\Google\Client;
use Google_Service_Tasks;
use Google_Service_Tasks_Task;
class GTaskApiTodoRepository implements ITodoRepository
{
/**
* @var Google_Service_Tasks
*/
private $taskService;
private $todoRepository;
private function convertTask2Todo(Google_Service_Tasks_Task $task) {
$todo = new Todo();
$todo->setId($task->getId());
$todo->setDescription($task->getTitle());
$todo->setDone($task->getStatus() === 'completed');
$todo->setList($this->todoRepository->getById('@default'));
return $todo;
}
private function convertTodo2Task(Todo $todo) {
$task = new Google_Service_Tasks_Task();
$task->setKind('tasks#task');
$date = new \DateTime();
$date->format(\DateTime::RFC3339);
if ($todo->getId() == null) {
$task->setId($todo->getId());
}
$task->setTitle($todo->getDescription());
$task->setDue($date);
$task->setNotes($todo->getDescription());
$task->setDeleted(false);
$task->setHidden(false);
$task->setParent('@default');
$task->setUpdated($date);
$task->setStatus($todo->getDone() ? 'completed' : 'needsAction');
$task->setCompleted($date);
return $task;
}
public function __construct(Client $googleClient, ITodoListRepository $todoListRepository, $tokenStorage)
{
$googleClient->setAccessToken(json_decode($tokenStorage->getToken()->getUser(), true));
$this->taskService = $googleClient->getTaskService();
$this->todoRepository = $todoListRepository;
}
/**
* Gives all entities.
*/
public function findAll($offset = 0, $limit = null) {
$tasks = $this->taskService->tasks->listTasks('@default');
$result = [];
foreach ($tasks as $task) {
$result[] = $this->convertTask2Todo($task);
}
return $result;
}
/**
* Gives entity corresponding to the given identifier if it exists
* and null otherwise.
*
* @param $id int
*/
public function getById($id, $taskListId = null) {
$task = $this->taskService->tasks->get($taskListId, $id);
return $this->convertTask2Todo($task);
}
/**
* Save or update an entity.
*
* @param $entity
*/
public function persist($entity) {
$task = $this->convertTodo2Task($entity);
if ($entity->getId() == null) {
$task = $this->taskService->tasks->insert($task->getParent(), $task);
$entity->setId($task->getId());
} else {
$this->taskService->tasks->update($task->getParent(), $task->getId(), $task);
}
}
/**
* Delete the given entity.
*
* @param $entity
*/
public function delete($entity) {
$this->taskService->tasks->delete($entity->getList()->getId(), $entity->getId());
}
} | Green92/gcTodoList | src/TodoListBundle/Repository/GTaskApiTodoRepository.php | PHP | mit | 2,671 |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>ExceptionEvaluator.IsTriggeringEvent Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">log4net SDK Documentation - Microsoft .NET Framework 4.0</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">ExceptionEvaluator.IsTriggeringEvent Method </h1>
</div>
</div>
<div id="nstext">
<p> Is this <i>loggingEvent</i> the triggering event? </p>
<div class="syntax">
<span class="lang">[Visual Basic]</span>
<br />NotOverridable Public Function IsTriggeringEvent( _<br /> ByVal <i>loggingEvent</i> As <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> _<br />) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a> _<div> Implements <a href="log4net.Core.ITriggeringEventEvaluator.IsTriggeringEvent.html">ITriggeringEventEvaluator.IsTriggeringEvent</a></div></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">bool</a> IsTriggeringEvent(<br /> <a href="log4net.Core.LoggingEvent.html">LoggingEvent</a> <i>loggingEvent</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>loggingEvent</i>
</dt>
<dd>The event to check</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>This method returns <code>true</code>, if the logging event Exception Type is <a href="log4net.Core.ExceptionEvaluator.ExceptionType.html">ExceptionType</a>. Otherwise it returns <code>false</code></p>
<h4 class="dtH4">Implements</h4>
<p>
<a href="log4net.Core.ITriggeringEventEvaluator.IsTriggeringEvent.html">ITriggeringEventEvaluator.IsTriggeringEvent</a>
</p>
<h4 class="dtH4">Remarks</h4>
<p> This evaluator will trigger if the Exception Type of the event passed to <b>IsTriggeringEvent</b> is <a href="log4net.Core.ExceptionEvaluator.ExceptionType.html">ExceptionType</a>. </p>
<h4 class="dtH4">See Also</h4><p><a href="log4net.Core.ExceptionEvaluator.html">ExceptionEvaluator Class</a> | <a href="log4net.Core.html">log4net.Core Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="IsTriggeringEvent method"></param><param name="Keyword" value="IsTriggeringEvent method, ExceptionEvaluator class"></param><param name="Keyword" value="ExceptionEvaluator.IsTriggeringEvent method"></param></object><hr /><div id="footer"><p><a href="http://logging.apache.org/log4net">Copyright 2004-2011 The Apache Software Foundation.</a></p><p></p></div></div>
</body>
</html> | npruehs/slash-framework | Ext/log4net-1.2.11/doc/release/sdk/log4net.Core.ExceptionEvaluator.IsTriggeringEvent.html | HTML | mit | 3,288 |
/*!
* Diaphanous
* https://github.com/Jonic/Diaphanous
* @author Jonic Linley <[email protected]>
* @version 0.0.1
* Copyright 2013 Jonic Linley MIT licensed.
*/
address:before,
article:before,
aside:before,
blockquote:before,
body:before,
div:before,
dl:before,
fieldset:before,
figcaption:before,
figure:before,
footer:before,
form:before,
h1:before,
h2:before,
h3:before,
h4:before,
h5:before,
h6:before,
header:before,
html:before,
li:before,
main:before,
ol:before,
p:before,
section:before,
nav:before,
ul:before, address:after,
article:after,
aside:after,
blockquote:after,
body:after,
div:after,
dl:after,
fieldset:after,
figcaption:after,
figure:after,
footer:after,
form:after,
h1:after,
h2:after,
h3:after,
h4:after,
h5:after,
h6:after,
header:after,
html:after,
li:after,
main:after,
ol:after,
p:after,
section:after,
nav:after,
ul:after {
content: '';
display: table;
}
address:after,
article:after,
aside:after,
blockquote:after,
body:after,
div:after,
dl:after,
fieldset:after,
figcaption:after,
figure:after,
footer:after,
form:after,
h1:after,
h2:after,
h3:after,
h4:after,
h5:after,
h6:after,
header:after,
html:after,
li:after,
main:after,
ol:after,
p:after,
section:after,
nav:after,
ul:after {
clear: both;
}
body {
-webkit-text-rendering: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
}
body {
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-o-text-size-adjust: 100%;
text-size-adjust: 100%;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
background: #fbfcfc;
min-height: 100%;
}
body {
color: #6b6f74;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
font-weight: 400;
line-height: 28px;
min-height: 100%;
min-width: 320;
}
a {
color: #00b5eb;
cursor: pointer;
text-decoration: none;
-webkit-transition: color 300ms ease-in-out;
-moz-transition: color 300ms ease-in-out;
transition: color 300ms ease-in-out;
}
a:active, a:focus, a:hover {
color: #00b5eb;
text-decoration: underline;
}
address {
font-style: normal;
}
b {
font-weight: 700;
}
blockquote {
margin-bottom: 28;
}
blockquote p:before,
blockquote p:after {
display: inline-block;
font-size: 20px;
line-height: 0;
}
blockquote p:first-child:before {
content: '\201C';
}
blockquote p:last-of-type {
margin: 0;
}
blockquote p:last-of-type:after {
content: '\201D';
}
button {
border: none;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
cite {
display: block;
text-align: right;
}
code {
background: #9c9fa2;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 0 7;
}
dl {
margin-bottom: 28px;
}
dl dd {
margin-left: 28px;
}
dl dt {
margin: 0;
}
em {
font-style: italic;
}
figure {
display: block;
margin-bottom: 28px;
}
figure img {
display: block;
width: 100%;
}
figure figcaption {
color: #9c9fa2;
font-style: italic;
}
i {
font-style: italic;
}
input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1, .h1,
h2, .h2,
h3, .h3 {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
margin: 0;
margin-bottom: 28px;
}
h1, .h1 {
font-size: 26px;
}
h2, .h2 {
font-size: 24px;
}
h3, .h3 {
font-size: 22px;
}
label {
margin: 0;
}
ol li {
list-style: decimal;
}
ol ol, ol ul {
margin-bottom: 0;
}
blockquote, code, dl, ol, p, pre, td, th, ul {
margin: 0;
margin-bottom: 28px;
}
.standfirst {
font-size: 20px;
}
select {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
strong {
font-weight: 700;
}
table {
border-collapse: collapse;
margin-bottom: 28px;
}
table td, table th {
margin: 0;
}
textarea {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
time {
display: inline-block;
font-size: 14px;
}
ul li {
list-style: disc;
}
ul ol, ul ul {
margin-bottom: 0;
}
| Jonic/Diaphanous | public/styles/master.min.css | CSS | mit | 4,125 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// Template Source: Templates\CSharp\Requests\MethodRequestBuilder.cs.tt
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.IO;
/// <summary>
/// The type WorkbookFunctionsNetworkDaysRequestBuilder.
/// </summary>
public partial class WorkbookFunctionsNetworkDaysRequestBuilder : BaseActionMethodRequestBuilder<IWorkbookFunctionsNetworkDaysRequest>, IWorkbookFunctionsNetworkDaysRequestBuilder
{
/// <summary>
/// Constructs a new <see cref="WorkbookFunctionsNetworkDaysRequestBuilder"/>.
/// </summary>
/// <param name="requestUrl">The URL for the request.</param>
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
/// <param name="startDate">A startDate parameter for the OData method call.</param>
/// <param name="endDate">A endDate parameter for the OData method call.</param>
/// <param name="holidays">A holidays parameter for the OData method call.</param>
public WorkbookFunctionsNetworkDaysRequestBuilder(
string requestUrl,
IBaseClient client,
Newtonsoft.Json.Linq.JToken startDate,
Newtonsoft.Json.Linq.JToken endDate,
Newtonsoft.Json.Linq.JToken holidays)
: base(requestUrl, client)
{
this.SetParameter("startDate", startDate, true);
this.SetParameter("endDate", endDate, true);
this.SetParameter("holidays", holidays, true);
}
/// <summary>
/// A method used by the base class to construct a request class instance.
/// </summary>
/// <param name="functionUrl">The request URL to </param>
/// <param name="options">The query and header options for the request.</param>
/// <returns>An instance of a specific request class.</returns>
protected override IWorkbookFunctionsNetworkDaysRequest CreateRequest(string functionUrl, IEnumerable<Option> options)
{
var request = new WorkbookFunctionsNetworkDaysRequest(functionUrl, this.Client, options);
if (this.HasParameter("startDate"))
{
request.RequestBody.StartDate = this.GetParameter<Newtonsoft.Json.Linq.JToken>("startDate");
}
if (this.HasParameter("endDate"))
{
request.RequestBody.EndDate = this.GetParameter<Newtonsoft.Json.Linq.JToken>("endDate");
}
if (this.HasParameter("holidays"))
{
request.RequestBody.Holidays = this.GetParameter<Newtonsoft.Json.Linq.JToken>("holidays");
}
return request;
}
}
}
| ginach/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsNetworkDaysRequestBuilder.cs | C# | mit | 3,138 |
---
layout: post
status: publish
published: true
title: "$100 to spend on WF"
author:
display_name: Tomas Restrepo
login: tomasr
email: [email protected]
url: http://winterdom.com/
author_login: tomasr
author_email: [email protected]
author_url: http://winterdom.com/
wordpress_id: 137
wordpress_url: http://winterdom.com/2006/08/100tospendonwf
date: '2006-08-22 10:58:43 +0000'
date_gmt: '2006-08-22 10:58:43 +0000'
categories:
- XML
- Workflow
tags: []
comments:
- id: 83
author: Simon Ince
author_email: ''
author_url: http://www.dotnetblogs.co.uk/Default.aspx?tabid=137&BlogID=19
date: '2006-08-23 03:16:42 +0000'
date_gmt: '2006-08-23 03:16:42 +0000'
content: |
I totally agree with the focus you put on guidance (and design time experience nearly fits in the same category for me)... and I think you've got some really solid thoughts about what areas would be good for focusing on. What do you think about consolidating this into a factory/guidance automation approach? See my blog for my thoughts...
- id: 84
author: Tomas Restrepo
author_email: [email protected]
author_url: http://www.winterdom.com/weblog/
date: '2006-08-23 06:17:19 +0000'
date_gmt: '2006-08-23 06:17:19 +0000'
content: |
Simon, Yes, that's certainly an interesting idea, I like it!
---
<p><!--start_raw-->
<p><a href="http://blogs.msdn.com/mwinkle/">Matt Winkler</a> asks <a href="http://blogs.msdn.com/mwinkle/archive/2006/08/22/712823.aspx">here</a> on feedback as to what we'd like to see on Windows Workflow Foundation that might help reduce the complexity and/or improve the WF experience for developer: spend a $100 bucks on what you'd like to see. Here's my take on it:</p>
<p>$10: Out of the Box hosting scenarios. This is a cool idea, and could be really complemented with:<br>$40: Guidance, Guidance, Guidance. We need to have good guidance in place on topics such as: WF Runtime Hosting Scenarios and Requirements; Long-running workflows; Workflow Versioning Strategies; Communication Options, Scalability options and more.<br>$20: Programming-model refinements. Things like the complexity introduced by spawned-contexts and the like cannot be 100% solved by tooling; the underlying programming model has to guide you towards writing correct code right from the start. I'll agree I don't have a good proposal as to how to fix it right now, though :-) <br>$30: Better design time experience: </p>
<ul>
<li>Improved designer</li>
<li>Improved Design-time validation. This could either be done by providing more compile-time validation, or, perhaps even better, through a WfCop-kind of tool. One idea I think would mix well with the superb extensibility model in WF and the Guidance idea would be to make it scenario based: You select the kind of scenario you expect your workflows/activities to run under, and extensive validation is done to see if it will work. For example, you might select the "Long-Running Transactional Workflow" escenario, and the tool would validate that things like serializability requirements are met by the workflow itself and all activities used. </li></ul><!--end_raw--></p>
| tomasr/winterdom.com | _posts/2006-08-22-100tospendonwf.html | HTML | mit | 3,228 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Tell the browser to be responsive to screen width -->
<title>SI Administrasi Desa</title>
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="<?=base_url()?>assets/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
<!-- DataTables -->
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.2.2/css/buttons.dataTables.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="<?=base_url()?>assets/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?=base_url()?>assets/dist/css/skins/_all-skins.min.css">
<!-- Select2 -->
<link rel="stylesheet" href="<?=base_url()?>assets/plugins/select2/select2.min.css">
<!-- simple line icon -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.css">
<link rel="manifest" href="<?=base_url()?>assets/manifest.json">
<!-- jQuery 2.2.0 -->
<script src="<?=base_url()?>assets/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- DataTables -->
<script src="<?=base_url()?>assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?=base_url()?>assets/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition skin-red sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="<?=site_url('dashboard')?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>SI</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>SI</b>ADMINISTRASI</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img class="img-circle" src="<?=base_url()?>assets/dist/img/no-image-user.jpg" alt="User profile picture">
</div>
<div class="pull-left info">
<input name='id' id='id' value='".$id."' type='hidden'>
<p><a href="#">User</a></p>
<a><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu">
<li class="header"> MENU</li>
<li id="home"><a href="<?=site_url('dashboard')?>"><i class="fa fa-home"></i> <span> Home</span></a></li>
<li id="data_penduduk" class="treeview">
<a href="#">
<i class="fa icon-wallet"></i> <span> Data Penduduk</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li id="penduduk"><a href="<?=site_url('penduduk')?>"><i class="fa icon-arrow-right"></i> Data Penduduk</a></li>
<li id="kelahiran"><a href="<?=site_url('kelahiran')?>"><i class="fa icon-arrow-right"></i> Data Kelahiran</a></li>
<li id="pendatang"><a href="<?=site_url('pendatang')?>"><i class="fa icon-arrow-right"></i> Data Pendatang</a></li>
<li id="kematian"><a href="<?=site_url('kematian')?>"><i class="fa icon-arrow-right"></i> Data Penduduk Meninggal</a></li>
<li id="pindah"><a href="<?=site_url('pindah')?>"><i class="fa icon-arrow-right"></i> Data Penduduk Pindah</a></li>
</ul>
</li>
<li id="surat" class="treeview">
<a href="#">
<i class="fa icon-wallet"></i> <span> Surat</span> <i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li id="surat_kelahiran"><a href="<?=site_url('surat_kelahiran')?>"><i class="fa icon-arrow-right"></i> SK Kelahiran</a></li>
<li id="surat_pendatang"><a href="#"><i class="fa icon-arrow-right"></i> SK Pendatang</a></li>
<li id="surat_kematian"><a href="#"><i class="fa icon-arrow-right"></i> SK Kematian</a></li>
<li id="surat_pindah"><a href="#"><i class="fa icon-arrow-right"></i> SK Pindah</a></li>
<li id="surat_kelakuan_baik"><a href="#"><i class="fa icon-arrow-right"></i> SK Kelakuan Baik</a></li>
<li id="surat_usaha"><a href="#"><i class="fa icon-arrow-right"></i> SK Usaha</a></li>
<li id="surat_tidak_mampu"><a href="#"><i class="fa icon-arrow-right"></i> SK Tidak Mampu</a></li>
<li id="surat_belum_kawin"><a href="#"><i class="fa icon-arrow-right"></i> SK Belum Pernah Kawin</a></li>
<li id="surat_perkawinan_hindu"><a href="#"><i class="fa icon-arrow-right"></i> SK Perkawinan Umat Hindu</a></li>
<li id="surat_permohonan_ktp"><a href="#"><i class="fa icon-arrow-right"></i> SK Permohonan KTP</a></li>
</ul>
</li>
<li id="potensi"><a href="#"><i class="fa icon-basket"></i> <span> Potensi Daerah</span></a></li>
<li class="header"> LOGOUT</li>
<li><a onclick="return confirm('Pilih OK untuk melanjutkan.')" href="<?=site_url('login/logout')?>"><i class="fa fa-power-off text-red"></i> <span> Logout</span></a></li>
</ul>
</section>
<!-- /.sidebar -->
</aside>
<?=$body?>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 1.0.0
</div>
<strong>Copyright © 2017 <a href="#">SI Administrasi Desa</a>.</strong> All rights
reserved.
</footer>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
<div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- Bootstrap 3.3.6 -->
<script src="<?=base_url()?>assets/bootstrap/js/bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="<?=base_url()?>assets/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="<?=base_url()?>assets/plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="<?=base_url()?>assets/dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?=base_url()?>assets/dist/js/demo.js"></script>
<!-- bootstrap datepicker -->
<script src="<?=base_url()?>assets/plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Select2 -->
<script src="<?=base_url()?>assets/plugins/select2/select2.full.min.js"></script>
<!-- excel -->
<script src="https://rawgithub.com/eligrey/FileSaver.js/master/FileSaver.js" type="text/javascript"></script>
<script>
function export() {
var blob = new Blob([document.getElementById('exportable').innerHTML], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
});
saveAs(blob, "report.xls");
}
</script>
<!-- page script -->
<script src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script>
$(document).ready(function() {
//Initialize Select2 Elements
$(".select2").select2();
$('#example2').DataTable( {
"paging": false,
"lengthChange": true,
"searching": false,
"ordering": true,
"scrollX": true,
dom: 'Bfrtip',
buttons: [
'copyHtml5',
'excelHtml5',
'csvHtml5',
'pdfHtml5'
]
});
$('#example1').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
//Date picker
$('#datepicker').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
$('#kedatangan_datepicker').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
$('#datepicker2').datepicker({
autoclose: true,
format: 'dd-mm-yyyy'
});
} );
</script>
</body>
</body>
</html> | swantara/si-administrasi-kependudukan | application/views/template.php | PHP | mit | 9,733 |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms;
public final class R {
public static final class attr {
public static final int adSize = 0x7f01006a;
public static final int adSizes = 0x7f01006b;
public static final int adUnitId = 0x7f01006c;
public static final int buyButtonAppearance = 0x7f010082;
public static final int buyButtonHeight = 0x7f01007f;
public static final int buyButtonText = 0x7f010081;
public static final int buyButtonWidth = 0x7f010080;
public static final int cameraBearing = 0x7f01006e;
public static final int cameraTargetLat = 0x7f01006f;
public static final int cameraTargetLng = 0x7f010070;
public static final int cameraTilt = 0x7f010071;
public static final int cameraZoom = 0x7f010072;
public static final int environment = 0x7f01007c;
public static final int fragmentMode = 0x7f01007e;
public static final int fragmentStyle = 0x7f01007d;
public static final int mapType = 0x7f01006d;
public static final int maskedWalletDetailsBackground = 0x7f010085;
public static final int maskedWalletDetailsButtonBackground = 0x7f010087;
public static final int maskedWalletDetailsButtonTextAppearance = 0x7f010086;
public static final int maskedWalletDetailsHeaderTextAppearance = 0x7f010084;
public static final int maskedWalletDetailsLogoImageType = 0x7f010089;
public static final int maskedWalletDetailsLogoTextColor = 0x7f010088;
public static final int maskedWalletDetailsTextAppearance = 0x7f010083;
public static final int theme = 0x7f01007b;
public static final int uiCompass = 0x7f010073;
public static final int uiRotateGestures = 0x7f010074;
public static final int uiScrollGestures = 0x7f010075;
public static final int uiTiltGestures = 0x7f010076;
public static final int uiZoomControls = 0x7f010077;
public static final int uiZoomGestures = 0x7f010078;
public static final int useViewLifecycle = 0x7f010079;
public static final int zOrderOnTop = 0x7f01007a;
}
public static final class color {
public static final int common_action_bar_splitter = 0x7f07000c;
public static final int common_signin_btn_dark_text_default = 0x7f070003;
public static final int common_signin_btn_dark_text_disabled = 0x7f070005;
public static final int common_signin_btn_dark_text_focused = 0x7f070006;
public static final int common_signin_btn_dark_text_pressed = 0x7f070004;
public static final int common_signin_btn_default_background = 0x7f07000b;
public static final int common_signin_btn_light_text_default = 0x7f070007;
public static final int common_signin_btn_light_text_disabled = 0x7f070009;
public static final int common_signin_btn_light_text_focused = 0x7f07000a;
public static final int common_signin_btn_light_text_pressed = 0x7f070008;
public static final int common_signin_btn_text_dark = 0x7f070020;
public static final int common_signin_btn_text_light = 0x7f070021;
public static final int wallet_bright_foreground_disabled_holo_light = 0x7f070012;
public static final int wallet_bright_foreground_holo_dark = 0x7f07000d;
public static final int wallet_bright_foreground_holo_light = 0x7f070013;
public static final int wallet_dim_foreground_disabled_holo_dark = 0x7f07000f;
public static final int wallet_dim_foreground_holo_dark = 0x7f07000e;
public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 0x7f070011;
public static final int wallet_dim_foreground_inverse_holo_dark = 0x7f070010;
public static final int wallet_highlighted_text_holo_dark = 0x7f070017;
public static final int wallet_highlighted_text_holo_light = 0x7f070016;
public static final int wallet_hint_foreground_holo_dark = 0x7f070015;
public static final int wallet_hint_foreground_holo_light = 0x7f070014;
public static final int wallet_holo_blue_light = 0x7f070018;
public static final int wallet_link_text_light = 0x7f070019;
public static final int wallet_primary_text_holo_light = 0x7f070022;
public static final int wallet_secondary_text_holo_dark = 0x7f070023;
}
public static final class drawable {
public static final int common_signin_btn_icon_dark = 0x7f02006c;
public static final int common_signin_btn_icon_disabled_dark = 0x7f02006d;
public static final int common_signin_btn_icon_disabled_focus_dark = 0x7f02006e;
public static final int common_signin_btn_icon_disabled_focus_light = 0x7f02006f;
public static final int common_signin_btn_icon_disabled_light = 0x7f020070;
public static final int common_signin_btn_icon_focus_dark = 0x7f020071;
public static final int common_signin_btn_icon_focus_light = 0x7f020072;
public static final int common_signin_btn_icon_light = 0x7f020073;
public static final int common_signin_btn_icon_normal_dark = 0x7f020074;
public static final int common_signin_btn_icon_normal_light = 0x7f020075;
public static final int common_signin_btn_icon_pressed_dark = 0x7f020076;
public static final int common_signin_btn_icon_pressed_light = 0x7f020077;
public static final int common_signin_btn_text_dark = 0x7f020078;
public static final int common_signin_btn_text_disabled_dark = 0x7f020079;
public static final int common_signin_btn_text_disabled_focus_dark = 0x7f02007a;
public static final int common_signin_btn_text_disabled_focus_light = 0x7f02007b;
public static final int common_signin_btn_text_disabled_light = 0x7f02007c;
public static final int common_signin_btn_text_focus_dark = 0x7f02007d;
public static final int common_signin_btn_text_focus_light = 0x7f02007e;
public static final int common_signin_btn_text_light = 0x7f02007f;
public static final int common_signin_btn_text_normal_dark = 0x7f020080;
public static final int common_signin_btn_text_normal_light = 0x7f020081;
public static final int common_signin_btn_text_pressed_dark = 0x7f020082;
public static final int common_signin_btn_text_pressed_light = 0x7f020083;
public static final int ic_plusone_medium_off_client = 0x7f02008d;
public static final int ic_plusone_small_off_client = 0x7f02008e;
public static final int ic_plusone_standard_off_client = 0x7f02008f;
public static final int ic_plusone_tall_off_client = 0x7f020090;
public static final int powered_by_google_dark = 0x7f02009f;
public static final int powered_by_google_light = 0x7f0200a0;
}
public static final class id {
public static final int book_now = 0x7f050026;
public static final int buyButton = 0x7f050020;
public static final int buy_now = 0x7f050025;
public static final int buy_with_google = 0x7f050024;
public static final int classic = 0x7f050027;
public static final int grayscale = 0x7f050028;
public static final int holo_dark = 0x7f05001b;
public static final int holo_light = 0x7f05001c;
public static final int hybrid = 0x7f05001a;
public static final int match_parent = 0x7f050022;
public static final int monochrome = 0x7f050029;
public static final int none = 0x7f050010;
public static final int normal = 0x7f050000;
public static final int production = 0x7f05001d;
public static final int sandbox = 0x7f05001e;
public static final int satellite = 0x7f050018;
public static final int selectionDetails = 0x7f050021;
public static final int strict_sandbox = 0x7f05001f;
public static final int terrain = 0x7f050019;
public static final int wrap_content = 0x7f050023;
}
public static final class integer {
public static final int google_play_services_version = 0x7f090001;
}
public static final class string {
public static final int auth_client_needs_enabling_title = 0x7f0a000e;
public static final int auth_client_needs_installation_title = 0x7f0a000f;
public static final int auth_client_needs_update_title = 0x7f0a0010;
public static final int auth_client_play_services_err_notification_msg = 0x7f0a0011;
public static final int auth_client_requested_by_msg = 0x7f0a0012;
public static final int auth_client_using_bad_version_title = 0x7f0a000d;
public static final int common_google_play_services_enable_button = 0x7f0a001e;
public static final int common_google_play_services_enable_text = 0x7f0a001d;
public static final int common_google_play_services_enable_title = 0x7f0a001c;
public static final int common_google_play_services_error_notification_requested_by_msg = 0x7f0a0017;
public static final int common_google_play_services_install_button = 0x7f0a001b;
public static final int common_google_play_services_install_text_phone = 0x7f0a0019;
public static final int common_google_play_services_install_text_tablet = 0x7f0a001a;
public static final int common_google_play_services_install_title = 0x7f0a0018;
public static final int common_google_play_services_invalid_account_text = 0x7f0a0024;
public static final int common_google_play_services_invalid_account_title = 0x7f0a0023;
public static final int common_google_play_services_needs_enabling_title = 0x7f0a0016;
public static final int common_google_play_services_network_error_text = 0x7f0a0022;
public static final int common_google_play_services_network_error_title = 0x7f0a0021;
public static final int common_google_play_services_notification_needs_installation_title = 0x7f0a0014;
public static final int common_google_play_services_notification_needs_update_title = 0x7f0a0015;
public static final int common_google_play_services_notification_ticker = 0x7f0a0013;
public static final int common_google_play_services_unknown_issue = 0x7f0a0025;
public static final int common_google_play_services_unsupported_date_text = 0x7f0a0028;
public static final int common_google_play_services_unsupported_text = 0x7f0a0027;
public static final int common_google_play_services_unsupported_title = 0x7f0a0026;
public static final int common_google_play_services_update_button = 0x7f0a0029;
public static final int common_google_play_services_update_text = 0x7f0a0020;
public static final int common_google_play_services_update_title = 0x7f0a001f;
public static final int common_signin_button_text = 0x7f0a002a;
public static final int common_signin_button_text_long = 0x7f0a002b;
public static final int wallet_buy_button_place_holder = 0x7f0a002c;
}
public static final class style {
public static final int Theme_IAPTheme = 0x7f0b007f;
public static final int WalletFragmentDefaultButtonTextAppearance = 0x7f0b0082;
public static final int WalletFragmentDefaultDetailsHeaderTextAppearance = 0x7f0b0081;
public static final int WalletFragmentDefaultDetailsTextAppearance = 0x7f0b0080;
public static final int WalletFragmentDefaultStyle = 0x7f0b0083;
}
public static final class styleable {
public static final int[] AdsAttrs = { 0x7f01006a, 0x7f01006b, 0x7f01006c };
public static final int AdsAttrs_adSize = 0;
public static final int AdsAttrs_adSizes = 1;
public static final int AdsAttrs_adUnitId = 2;
public static final int[] MapAttrs = { 0x7f01006d, 0x7f01006e, 0x7f01006f, 0x7f010070, 0x7f010071, 0x7f010072, 0x7f010073, 0x7f010074, 0x7f010075, 0x7f010076, 0x7f010077, 0x7f010078, 0x7f010079, 0x7f01007a };
public static final int MapAttrs_cameraBearing = 1;
public static final int MapAttrs_cameraTargetLat = 2;
public static final int MapAttrs_cameraTargetLng = 3;
public static final int MapAttrs_cameraTilt = 4;
public static final int MapAttrs_cameraZoom = 5;
public static final int MapAttrs_mapType = 0;
public static final int MapAttrs_uiCompass = 6;
public static final int MapAttrs_uiRotateGestures = 7;
public static final int MapAttrs_uiScrollGestures = 8;
public static final int MapAttrs_uiTiltGestures = 9;
public static final int MapAttrs_uiZoomControls = 10;
public static final int MapAttrs_uiZoomGestures = 11;
public static final int MapAttrs_useViewLifecycle = 12;
public static final int MapAttrs_zOrderOnTop = 13;
public static final int[] WalletFragmentOptions = { 0x7f01007b, 0x7f01007c, 0x7f01007d, 0x7f01007e };
public static final int WalletFragmentOptions_environment = 1;
public static final int WalletFragmentOptions_fragmentMode = 3;
public static final int WalletFragmentOptions_fragmentStyle = 2;
public static final int WalletFragmentOptions_theme = 0;
public static final int[] WalletFragmentStyle = { 0x7f01007f, 0x7f010080, 0x7f010081, 0x7f010082, 0x7f010083, 0x7f010084, 0x7f010085, 0x7f010086, 0x7f010087, 0x7f010088, 0x7f010089 };
public static final int WalletFragmentStyle_buyButtonAppearance = 3;
public static final int WalletFragmentStyle_buyButtonHeight = 0;
public static final int WalletFragmentStyle_buyButtonText = 2;
public static final int WalletFragmentStyle_buyButtonWidth = 1;
public static final int WalletFragmentStyle_maskedWalletDetailsBackground = 6;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonBackground = 8;
public static final int WalletFragmentStyle_maskedWalletDetailsButtonTextAppearance = 7;
public static final int WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance = 5;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoImageType = 10;
public static final int WalletFragmentStyle_maskedWalletDetailsLogoTextColor = 9;
public static final int WalletFragmentStyle_maskedWalletDetailsTextAppearance = 4;
}
}
| mustafaneguib/tag-augmented-reality-android | gen/com/google/android/gms/R.java | Java | mit | 13,382 |
#!/usr/bin/env bash
PATH=/opt/usao/moodle3/bin:/usr/local/bin:/usr/bin:/bin:/sbin:$PATH
## Require arguments
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] ; then
cat <<USAGE
moodle3_migrate.sh migrates a site between hosts.
Usage: moodle3_migrate.sh \$dest_moodledir \$src_moodlehost \$src_cfgdir
\$dest_moodledir local dir for Moodle site (eg. /srv/example).
\$src_moodlehost host of site to migrate
\$src_cfgdir remote dir of site to migrate on \$src_moodlehost
USAGE
exit 1;
fi
source /opt/usao/moodle3/etc/moodle3_conf.sh
dest_moodledir=${1}
src_moodlehost=${2}
src_cfgdir=${3}
dest_basename=$(basename "$dest_moodledir")
# Read src config file
src_cfg=$(ssh ${src_moodlehost} cat ${src_cfgdir}/config.php)
# Set vars from it.
src_dbhost=`echo "${src_cfg}" | grep '^$CFG->dbhost' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbname=`echo "${src_cfg}" | grep '^$CFG->dbname' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbuser=`echo "${src_cfg}" | grep '^$CFG->dbuser' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dbpass=`echo "${src_cfg}" | grep '^$CFG->dbpass' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_wwwroot=`echo "${src_cfg}" | grep '^$CFG->wwwroot' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
src_dataroot=`echo "${src_cfg}" | grep '^$CFG->dataroot' | cut -d "=" -f 2 | cut -d ';' -f 1 | xargs`
# Sync over the moodledata
rsync -avz ${src_moodlehost}:${src_dataroot}/ ${dest_moodledir}/moodledata/
# Dump src db to local file in dest_moodledir
ssh ${src_moodlehost} mysqldump --single-transaction --lock-tables=false --allow-keywords --opt -h${src_dbhost} -u${src_dbuser} -p${src_dbpass} ${src_dbname} >${dest_moodledir}/db/moodle3_${src_moodlehost}_dump.sql
# change sitename in db dump.
sed -e "s#${src_wwwroot}#${moodle3wwwroot}#g" ${dest_moodledir}/db/moodle3_${src_moodlehost}_dump.sql > ${dest_moodledir}/db/moodle3_${dest_basename}_dump.sql
# Import our newly munged database
/opt/usao/moodle3/bin/moodle3_importdb.sh ${dest_moodledir}
# Upgrade our db to the installed codebase
/opt/usao/moodle3/bin/moodle3_upgrade.sh ${dest_moodledir}
| USAO/ansible-role-moodle3 | files/moodle3_migrate.sh | Shell | mit | 2,116 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
using System.Security;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: AssemblyTitle("mko")]
[assembly: AssemblyDescription("mko: Klassen zur Organisiation von Fehler- und Statusmeldungen (LogServer). Diverse Hilfsklassen für Debugging und Serialisierung;")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("www.mkoit.de")]
[assembly: AssemblyProduct("mko")]
[assembly: AssemblyCopyright("Copyright © Martin Korneffel, Stuttgart 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("04255517-3840-4f51-a09b-a41c68fe2f0d")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder die standardmäßigen Revisions- und Buildnummern
// übernehmen, indem Sie "*" eingeben:
[assembly: AssemblyVersion("7.4.1.0")]
[assembly: AssemblyFileVersion("7.4.1.0")]
[assembly: NeutralResourcesLanguageAttribute("de-DE")]
[assembly: AllowPartiallyTrustedCallers]
| mk-prg-net/mk-prg-net.lib | mko/Properties/AssemblyInfo.cs | C# | mit | 1,762 |
---
layout: post
title: Home Lab 2016 (2015)
category: homework
tag: imported
author: adricnet
---
*draft post, no images, end notes, links yet*
Revamped and reconfigured post-SEC511 and SOC Augusta 2015, with some input from GSE studies Google group, plus some good stuff for file analysis that I'm currently neglecting ...
Gear
====
The physical hardware of the lab is two Shuttle mini servers, a extra switch or two, and the tap on the cable modem.
Hyper
-----
One of the Shuttles is an ESXi hyper with a few internal drives:
* a tiny SSD (mSATA) ~8 GB for ESX boot and key ISO install media
* a pair of 1 TB hybrid SATA3 drives as VM storage
The hyper server has some extra network ports from a PCI card that we put to good use. Its physical network connections are to the primary switch for the the X network and to the tap on the cable modem.
For simplicity and ease of NSM both these virtual networks (and their vSwitches) are fully opened up in VMWare for promiscuous mode (sniffing). This is not a good production configuration but it is great for the lab.
Sandbox
-------
The other Shuttle server is a Linux install with REMnux 6 for malware analysis including a Cuckoo Sandbox server for automated malware analysis against configured VirtualBox virtual machines.
Tap
---
I have an inexpensive tap between the cable modem and the primary router. Its only good for a slow network and combines duplex onto one port, which is all great for my Internet connection ( ~20 Mbps downstream ) which isn't capable of more than 100 Mbps total anyway.
{need graphic}
Networks
========
Eschewing a more sophisticated network architecture for now we have one production network for everything. Most of the non-lab gear is on wireless anyway. We'll call this network 192.168.X.0/24.
The hyper has a few vSwitches including for the production X network (labelled "Lab"), the tap coming in from the cable modem (labelled "Loose") . As noted both a fully unsecured in VMWare so we can sniff them.
Security Onion for NSM
==============
We have two SO virtual machines monitoring all of this to get the coverage we need with acceptable performance. The main SO install is on SOSIFT, a Security Onion 12.04 with the SIFT3 packages added. The cable modem tap gets its own sensor in this build.
SOSIFT has separate management and monitoring interfaces (both on Lab vSwitch and X network) and is configured in SO advanced setup as an Standalone server with Bro, Suricata, ELSA listening on that last interface with full pcap, file extraction enabled.
cablesensor is also SO 12.04 configured in advanced mode to be a sensor (only) and is connected up to SOSIFT as master for Suricata, ELSA with full pcap, file extraction enabled.
Kali for event source
=====
A Kali Linux 1 virtual machine on the hyper serves as the source of all our attack traffic in this model. Following the tutorials I have OpenVAS/gbsa and Metasploit framework all ready to go. Both the OpenVAS scans as well as any db_nmap scans from *msfconsole* are visible to the Security Onion systems because the Lab network they use is fully monitored by SOSIFT.
Testing
====
While I was still setting everything up I used some simple network utilities to keep an eye on my network configs. It was easy to have a ping with a silly pattern running on the Kali scanner system and a matching tcpdump on the sensor interfaces, before moving on testmyids.com, and then the OpenVAS and nmap scans.
1. Ping (from kali) to some target system on X network, continuously, with a pattern, and watch for those pings where you should see them (sensor interface):
* <pre>ping -p '0xdeadbeef' 192.168.X.250 #ping SOSIFT mgmt IP</pre>
* <pre>tcpdump -nni eth1 -v -x 'host 192.168.X.241' #kali's IP</pre>
2. Then try the same with Internet DNS. This should be visible in two places in the sensor net: the lab network and the cable modem tap.
* <pre>dig @8.8.4.4 adric.net TXT #from kali ask GDNS for my SPF records</pre>
* <pre>tcpdump -nni eth1 -v -X 'port 53 and host 192.168.x.241' #lab sensor shoudl see kali's request</pre>
* <pre>tcpdump -nni eth2 -v -X 'port 53 and host 8.8.4.4' #will show DNS request outbound and response</pre>
* this proves we have sensor coverage for the lab and the Internet link!
3. Then we can use testmyids.com, a handy site that causes an alert in one of the default Snort/Suricata rules from Emerging Threats GPL. We should be able to see LAN and WAN for Kali activity, as well as WAN for all systems on X network (cable modem tap). Log on into sguil interactively via console and monitor the cablemodem monitoring and lab monitoring interfaces (for me that's sosift-eth2 and cablesensor-eth1) and then generate some events, alerts:
* <pre>curl www.testmyids.com # from a Mac on production network</pre>
* <pre>curl www.testmyids.com # from Kali VM </pre>
* should all alert via the appropriate sensor interface in Sguil, ELSA
4. After that I was confident than some discovery scans in OpenVAS and msfconsole would populate, and they did.
Working!
=====
Events generated from Kali aimed anywhere on X network populate nicely into sguil on SOSIFT (via remote console) and into ELSA (web UI). OpenVAS security was relaxed (/etc/default/ ) to allow non-localhost connections to the management and admin Web UI (Greenbone Security Assistant) and the self-signed certificate for ELSA needs to be trusted for any browser to let you use it. I have hosts file all over for the servers, sensors, kali so I can use hostnames when I want to.
Refs
=====
* SEC511 "Security Operations and Continuous Monitoring" : https://www.sans.org/course/continuous-monitoring-security-operations, for GMON : http://www.giac.org/certification/continuous-monitoring-certification-gmon
* GSE, study group: https://www.giac.org/certification/security-expert-gse , https://groups.google.com/forum/#!forum/giac-study
* *#SOCAugusta2015, @securityonion*
* VMWare vSwitches for sniffing: "Configuring promiscuous mode on a virtual switch or portgroup (KB 1004099)" http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004099
* for SO, start here:
https://github.com/Security-Onion-Solutions/security-onion/wiki/Installation
and then keep reading about Hardware requirements, production setups and testing:
https://github.com/Security-Onion-Solutions/security-onion/wiki/PostInstallation
* Googled up some examples of working ping patterns (must be hex bytes):
http://www.tutorialspoint.com/unix_commands/ping.htm
* Test My IDS history: http://blog.testmyids.com/2015/01/8-years-of-testmyids.html
* Needed some help from this awesome reference to get db_connect in Kali 1, since Kali2 does this automagically with *msfdb init*:
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
* To dig into this excellent resource:
https://www.offensive-security.com/metasploit-unleashed/
| DFIRnotes/dfirnotes.github.io | _posts/2015-10-11-home_lab_2016.md | Markdown | mit | 6,952 |
module.exports = function(config) {
config.set({
basePath: '../../',
frameworks: ['jasmine', 'requirejs'],
files: [
{pattern: 'test/unit/require.conf.js', included: true},
{pattern: 'test/unit/tests/global.js', included: true},
{pattern: 'src/client/**/*.*', included: false},
{pattern: 'test/unit/tests/**/*.*', included: false},
],
plugins: [
'karma-jasmine',
'karma-requirejs',
'karma-coverage',
'karma-html-reporter',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-safari-launcher',
'karma-ie-launcher'
],
reporters: ['coverage', 'html', 'progress'],
preprocessors: {
'src/client/component/**/*.js': ['coverage'],
'src/client/service/**/*.js': ['coverage']
},
coverageReporter: {
type: 'html',
dir: 'test/unit/coverage/',
includeAllSources: true
},
htmlReporter: {
outputDir: 'results' //it is annoying that this file path isn't from basePath :(
},
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['Chrome'/*, 'PhantomJS', 'Firefox', 'IE', 'Safari'*/],
captureTimeout: 5000,
singleRun: true
});
}; | robsix/3ditor | test/unit/karma.conf.js | JavaScript | mit | 1,463 |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import "IDEProvisioningSigningIdentity-Protocol.h"
@class NSDate, NSString;
@interface IDEProvisioningSigningIdentityPrototype : NSObject <IDEProvisioningSigningIdentity>
{
BOOL _distribution;
NSString *_certificateKind;
}
@property(nonatomic, getter=isDistribution) BOOL distribution; // @synthesize distribution=_distribution;
@property(copy, nonatomic) NSString *certificateKind; // @synthesize certificateKind=_certificateKind;
@property(readonly, copy) NSString *description;
@property(readonly, copy, nonatomic) NSDate *expirationDate;
@property(readonly, copy, nonatomic) NSString *teamMemberID;
@property(readonly, nonatomic) NSString *serialNumber;
- (id)enhancedSigningIdentityWithState:(unsigned long long)arg1;
- (BOOL)matchesSigningIdentity:(id)arg1;
// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;
@end
| kolinkrewinkel/Multiplex | Multiplex/IDEHeaders/IDEHeaders/IDEFoundation/IDEProvisioningSigningIdentityPrototype.h | C | mit | 1,110 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FSharpDeclarationListItem - F# Compiler Services</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Microsoft Corporation, Dave Thomas, Anh-Dung Phan, Tomas Petricek">
<script src="https://code.jquery.com/jquery-1.8.0.js"></script>
<script src="https://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="./content/style.css" />
<link type="text/css" rel="stylesheet" href="./content/fcs.css" />
<script type="text/javascript" src="./content/tips.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li><a href="http://fsharp.org">fsharp.org</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service">github page</a></li>
</ul>
<h3 class="muted">F# Compiler Services</h3>
</div>
<hr />
<div class="row">
<div class="span9" id="main">
<h1>FSharpDeclarationListItem</h1>
<p>
<span>Namespace: Microsoft.FSharp.Compiler.SourceCodeServices</span><br />
</p>
<div class="xmldoc">
<p>Represents a declaration in F# source code, with information attached ready for display by an editor.
Returned by GetDeclarations.</p>
</div>
<h3>Instance members</h3>
<table class="table table-bordered member-list">
<thead>
<tr><td>Instance member</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2893', 2893)" onmouseover="showTip(event, '2893', 2893)">
Accessibility
</code>
<div class="tip" id="2893">
<strong>Signature:</strong> FSharpAccessibility option<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L548-548" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Accessibility</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2894', 2894)" onmouseover="showTip(event, '2894', 2894)">
DescriptionText
</code>
<div class="tip" id="2894">
<strong>Signature:</strong> FSharpToolTipText<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L546-546" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_DescriptionText</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2895', 2895)" onmouseover="showTip(event, '2895', 2895)">
DescriptionTextAsync
</code>
<div class="tip" id="2895">
<strong>Signature:</strong> Async<FSharpToolTipText><br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L515-515" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_DescriptionTextAsync</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2896', 2896)" onmouseover="showTip(event, '2896', 2896)">
FullName
</code>
<div class="tip" id="2896">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L552-552" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_FullName</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2897', 2897)" onmouseover="showTip(event, '2897', 2897)">
Glyph
</code>
<div class="tip" id="2897">
<strong>Signature:</strong> FSharpGlyph<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L547-547" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Glyph</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2898', 2898)" onmouseover="showTip(event, '2898', 2898)">
IsOwnMember
</code>
<div class="tip" id="2898">
<strong>Signature:</strong> bool<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L550-550" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_IsOwnMember</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2899', 2899)" onmouseover="showTip(event, '2899', 2899)">
IsResolved
</code>
<div class="tip" id="2899">
<strong>Signature:</strong> bool<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L553-553" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_IsResolved</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2900', 2900)" onmouseover="showTip(event, '2900', 2900)">
Kind
</code>
<div class="tip" id="2900">
<strong>Signature:</strong> CompletionItemKind<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L549-549" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_Kind</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2901', 2901)" onmouseover="showTip(event, '2901', 2901)">
MinorPriority
</code>
<div class="tip" id="2901">
<strong>Signature:</strong> int<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L551-551" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_MinorPriority</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2902', 2902)" onmouseover="showTip(event, '2902', 2902)">
Name
</code>
<div class="tip" id="2902">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L493-493" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the display name for the declaration.</p>
<p>CompiledName: <code>get_Name</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2903', 2903)" onmouseover="showTip(event, '2903', 2903)">
NameInCode
</code>
<div class="tip" id="2903">
<strong>Signature:</strong> string<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L494-494" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the name for the declaration as it's presented in source code.</p>
<p>CompiledName: <code>get_NameInCode</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2904', 2904)" onmouseover="showTip(event, '2904', 2904)">
NamespaceToOpen
</code>
<div class="tip" id="2904">
<strong>Signature:</strong> string option<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L554-554" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>CompiledName: <code>get_NamespaceToOpen</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2905', 2905)" onmouseover="showTip(event, '2905', 2905)">
StructuredDescriptionText
</code>
<div class="tip" id="2905">
<strong>Signature:</strong> FSharpStructuredToolTipText<br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L519-519" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the description text for the declaration. Computing this property may require using compiler
resources and may trigger execution of a type provider method to retrieve documentation.</p>
<p>May return "Loading..." if timeout occurs</p>
<p>CompiledName: <code>get_StructuredDescriptionText</code></p>
</td>
</tr>
<tr>
<td class="member-name">
<code onmouseout="hideTip(event, '2906', 2906)" onmouseover="showTip(event, '2906', 2906)">
StructuredDescriptionTextAsync
</code>
<div class="tip" id="2906">
<strong>Signature:</strong> Async<FSharpStructuredToolTipText><br />
</div>
</td>
<td class="xmldoc">
<a href="https://github.com/fsharp/FSharp.Compiler.Service/tree/master/src/fsharp/vs/ServiceDeclarationLists.fs#L496-496" class="github-link">
<img src="../content/img/github.png" class="normal" />
<img src="../content/img/github-blue.png" class="hover" />
</a>
<p>Get the description text, asynchronously. Never returns "Loading...".</p>
<p>CompiledName: <code>get_StructuredDescriptionTextAsync</code></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="span3">
<a href="https://nuget.org/packages/FSharp.Compiler.Service">
<img src="./images/logo.png" style="width:140px;height:140px;margin:10px 0px 0px 35px;border-style:none;" />
</a>
<ul class="nav nav-list" id="menu">
<li class="nav-header">
<a href="./ja/index.html" class="nflag"><img src="./images/ja.png" /></a>
<a href="./index.html" class="nflag nflag2"><img src="./images/en.png" /></a>
F# Compiler Services
</li>
<li><a href="./index.html">Home page</a></li>
<li class="divider"></li>
<li><a href="https://www.nuget.org/packages/FSharp.Compiler.Service">Get Library via NuGet</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service">Source Code on GitHub</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/LICENSE">License</a></li>
<li><a href="http://github.com/fsharp/FSharp.Compiler.Service/blob/master/RELEASE_NOTES.md">Release Notes</a></li>
<li class="nav-header">Getting started</li>
<li><a href="./index.html">Home page</a></li>
<li><a href="./devnotes.html">Developer notes</a></li>
<li><a href="./fsharp-readme.html">F# compiler readme</a></li>
<li class="nav-header">Available services</li>
<li><a href="./tokenizer.html">F# Language tokenizer</a></li>
<li><a href="./untypedtree.html">Processing untyped AST</a></li>
<li><a href="./editor.html">Using editor (IDE) services</a></li>
<li><a href="./symbols.html">Using resolved symbols</a></li>
<li><a href="./typedtree.html">Using resolved expressions</a></li>
<li><a href="./project.html">Whole-project analysis</a></li>
<li><a href="./interactive.html">Embedding F# interactive</a></li>
<li><a href="./compiler.html">Embedding F# compiler</a></li>
<li><a href="./filesystem.html">Virtualized file system</a></li>
<li class="nav-header">Design Notes</li>
<li><a href="./queue.html">The FSharpChecker operations queue</a></li>
<li><a href="./caches.html">The FSharpChecker caches</a></li>
<li><a href="./corelib.html">Notes on FSharp.Core.dll</a></li>
<li class="nav-header">Documentation</li>
<li><a href="./reference/index.html">API Reference</a>
</li>
</ul>
</div>
</div>
</div>
<a href="http://github.com/fsharp/FSharp.Compiler.Service"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>
| Jand42/FSharp.Compiler.Service | docs/reference/microsoft-fsharp-compiler-sourcecodeservices-fsharpdeclarationlistitem.html | HTML | mit | 16,236 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.11.10: v8::Boolean Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.11.10
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_boolean.html">Boolean</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classv8_1_1_boolean-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::Boolean Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include <<a class="el" href="v8_8h_source.html">v8.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for v8::Boolean:</div>
<div class="dyncontent">
<div class="center">
<img src="classv8_1_1_boolean.png" usemap="#v8::Boolean_map" alt=""/>
<map id="v8::Boolean_map" name="v8::Boolean_map">
<area href="classv8_1_1_primitive.html" alt="v8::Primitive" shape="rect" coords="0,112,80,136"/>
<area href="classv8_1_1_value.html" alt="v8::Value" shape="rect" coords="0,56,80,80"/>
<area href="classv8_1_1_data.html" alt="v8::Data" shape="rect" coords="0,0,80,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa493d54eb43afc64ab796e1cf66ff910"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa493d54eb43afc64ab796e1cf66ff910"></a>
bool </td><td class="memItemRight" valign="bottom"><b>Value</b> () const </td></tr>
<tr class="separator:aa493d54eb43afc64ab796e1cf66ff910"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classv8_1_1_value"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classv8_1_1_value')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classv8_1_1_value.html">v8::Value</a></td></tr>
<tr class="memitem:aea287b745656baa8a12a2ae1d69744b6 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aea287b745656baa8a12a2ae1d69744b6">IsUndefined</a> () const </td></tr>
<tr class="separator:aea287b745656baa8a12a2ae1d69744b6 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa2c6ed8ef832223a7e2cd81e6ac61c78 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aa2c6ed8ef832223a7e2cd81e6ac61c78">IsNull</a> () const </td></tr>
<tr class="separator:aa2c6ed8ef832223a7e2cd81e6ac61c78 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8f27462322186b295195eecb3e81d6d7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a8f27462322186b295195eecb3e81d6d7">IsTrue</a> () const </td></tr>
<tr class="separator:a8f27462322186b295195eecb3e81d6d7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68c0296071d01ca899825d7643cf495a inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a68c0296071d01ca899825d7643cf495a">IsFalse</a> () const </td></tr>
<tr class="separator:a68c0296071d01ca899825d7643cf495a inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab23a34b7df62806808e01b0908bf5f00 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">V8_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ab23a34b7df62806808e01b0908bf5f00">IsString</a> () const </td></tr>
<tr class="separator:ab23a34b7df62806808e01b0908bf5f00 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af3e6081c22d09a7bbc0a2aff59ed60a5 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#af3e6081c22d09a7bbc0a2aff59ed60a5">IsSymbol</a> () const </td></tr>
<tr class="separator:af3e6081c22d09a7bbc0a2aff59ed60a5 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a05532a34cdd215f273163830ed8b77e7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a05532a34cdd215f273163830ed8b77e7">IsFunction</a> () const </td></tr>
<tr class="separator:a05532a34cdd215f273163830ed8b77e7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaee0b144087d20eae02314c9393ff80f inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aaee0b144087d20eae02314c9393ff80f">IsArray</a> () const </td></tr>
<tr class="separator:aaee0b144087d20eae02314c9393ff80f inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a355b7991c5c978c0341f6f961b63c5a2 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a355b7991c5c978c0341f6f961b63c5a2">IsObject</a> () const </td></tr>
<tr class="separator:a355b7991c5c978c0341f6f961b63c5a2 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0aceb7645e71b096df5cd73d1252b1b0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a0aceb7645e71b096df5cd73d1252b1b0">IsBoolean</a> () const </td></tr>
<tr class="separator:a0aceb7645e71b096df5cd73d1252b1b0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1bd51e3e55f67c65b9a8f587fbffb7c7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a1bd51e3e55f67c65b9a8f587fbffb7c7">IsNumber</a> () const </td></tr>
<tr class="separator:a1bd51e3e55f67c65b9a8f587fbffb7c7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7ac61a325c18af8dcb6d7d5bf47d2503 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a7ac61a325c18af8dcb6d7d5bf47d2503">IsExternal</a> () const </td></tr>
<tr class="separator:a7ac61a325c18af8dcb6d7d5bf47d2503 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a01e1db51c65b2feace248b7acbf71a2c inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a01e1db51c65b2feace248b7acbf71a2c">IsInt32</a> () const </td></tr>
<tr class="separator:a01e1db51c65b2feace248b7acbf71a2c inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a783c89631bac4ef3c4b909f40cc2b8d8 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a783c89631bac4ef3c4b909f40cc2b8d8">IsUint32</a> () const </td></tr>
<tr class="separator:a783c89631bac4ef3c4b909f40cc2b8d8 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8bc11fab0aded4a805722ab6df173cae inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a8bc11fab0aded4a805722ab6df173cae">IsDate</a> () const </td></tr>
<tr class="separator:a8bc11fab0aded4a805722ab6df173cae inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe7bc06283e5e66013f2f056a943168b inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#abe7bc06283e5e66013f2f056a943168b">IsBooleanObject</a> () const </td></tr>
<tr class="separator:abe7bc06283e5e66013f2f056a943168b inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5f4aa9504a6d8fc3af9489330179fe14 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a5f4aa9504a6d8fc3af9489330179fe14">IsNumberObject</a> () const </td></tr>
<tr class="separator:a5f4aa9504a6d8fc3af9489330179fe14 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3e0f2727455fd01a39a60b92f77e28e0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a3e0f2727455fd01a39a60b92f77e28e0">IsStringObject</a> () const </td></tr>
<tr class="separator:a3e0f2727455fd01a39a60b92f77e28e0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a867baa94cb8f1069452359e6cef6751e inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a867baa94cb8f1069452359e6cef6751e">IsSymbolObject</a> () const </td></tr>
<tr class="separator:a867baa94cb8f1069452359e6cef6751e inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a579fb52e893cdc24f8b77e5acc77d06d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a579fb52e893cdc24f8b77e5acc77d06d">IsNativeError</a> () const </td></tr>
<tr class="separator:a579fb52e893cdc24f8b77e5acc77d06d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aae41e43486937d6122c297a0d43ac0b8 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#aae41e43486937d6122c297a0d43ac0b8">IsRegExp</a> () const </td></tr>
<tr class="separator:aae41e43486937d6122c297a0d43ac0b8 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a65f9dad740f2468b44dc16349611c351 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a65f9dad740f2468b44dc16349611c351">IsArrayBuffer</a> () const </td></tr>
<tr class="separator:a65f9dad740f2468b44dc16349611c351 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad54475d15b7e6b6e17fc80fb4570cdf2 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ad54475d15b7e6b6e17fc80fb4570cdf2">IsArrayBufferView</a> () const </td></tr>
<tr class="separator:ad54475d15b7e6b6e17fc80fb4570cdf2 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2f2f6c39f14a39fbb5b43577125dfe4 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ac2f2f6c39f14a39fbb5b43577125dfe4">IsTypedArray</a> () const </td></tr>
<tr class="separator:ac2f2f6c39f14a39fbb5b43577125dfe4 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acbe2cd9c9cce96ee498677ba37c8466d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#acbe2cd9c9cce96ee498677ba37c8466d">IsUint8Array</a> () const </td></tr>
<tr class="separator:acbe2cd9c9cce96ee498677ba37c8466d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad3cb464ab5ef0215bd2cbdd4eb2b7e3d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ad3cb464ab5ef0215bd2cbdd4eb2b7e3d">IsUint8ClampedArray</a> () const </td></tr>
<tr class="separator:ad3cb464ab5ef0215bd2cbdd4eb2b7e3d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10a88a2794271dfcd9c3abd565e8f28a inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a10a88a2794271dfcd9c3abd565e8f28a">IsInt8Array</a> () const </td></tr>
<tr class="separator:a10a88a2794271dfcd9c3abd565e8f28a inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a45fabf58b241f5de3086a3dd0a09ae inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a4a45fabf58b241f5de3086a3dd0a09ae">IsUint16Array</a> () const </td></tr>
<tr class="separator:a4a45fabf58b241f5de3086a3dd0a09ae inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a928c586639dd75ae4efdaa66b1fc4d50 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a928c586639dd75ae4efdaa66b1fc4d50">IsInt16Array</a> () const </td></tr>
<tr class="separator:a928c586639dd75ae4efdaa66b1fc4d50 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e39229dc74d534835cf4ceba10676f4 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a5e39229dc74d534835cf4ceba10676f4">IsUint32Array</a> () const </td></tr>
<tr class="separator:a5e39229dc74d534835cf4ceba10676f4 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a48eac78a49c8b42d9f8cf05c514b3750 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a48eac78a49c8b42d9f8cf05c514b3750">IsInt32Array</a> () const </td></tr>
<tr class="separator:a48eac78a49c8b42d9f8cf05c514b3750 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4effc7ca1a221dd8c1e23c0f28145ef0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a4effc7ca1a221dd8c1e23c0f28145ef0">IsFloat32Array</a> () const </td></tr>
<tr class="separator:a4effc7ca1a221dd8c1e23c0f28145ef0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a293f140b81b0219d1497e937ed948b1e inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#a293f140b81b0219d1497e937ed948b1e">IsFloat64Array</a> () const </td></tr>
<tr class="separator:a293f140b81b0219d1497e937ed948b1e inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd20ab51e79658acc405c12dad2260ab inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#afd20ab51e79658acc405c12dad2260ab">IsDataView</a> () const </td></tr>
<tr class="separator:afd20ab51e79658acc405c12dad2260ab inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a73d653dc4a4999ce7258b40a4d8a1510 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73d653dc4a4999ce7258b40a4d8a1510"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_boolean.html">Boolean</a> > </td><td class="memItemRight" valign="bottom"><b>ToBoolean</b> () const </td></tr>
<tr class="separator:a73d653dc4a4999ce7258b40a4d8a1510 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2706d2c0cf684a5179e76e8e404b3a5d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2706d2c0cf684a5179e76e8e404b3a5d"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_number.html">Number</a> > </td><td class="memItemRight" valign="bottom"><b>ToNumber</b> () const </td></tr>
<tr class="separator:a2706d2c0cf684a5179e76e8e404b3a5d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef5739280886eb7a98ae0e98371dae39 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef5739280886eb7a98ae0e98371dae39"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_string.html">String</a> > </td><td class="memItemRight" valign="bottom"><b>ToString</b> () const </td></tr>
<tr class="separator:aef5739280886eb7a98ae0e98371dae39 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acff61b07d724079dc3a90d3e3fd57cb3 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acff61b07d724079dc3a90d3e3fd57cb3"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_string.html">String</a> > </td><td class="memItemRight" valign="bottom"><b>ToDetailString</b> () const </td></tr>
<tr class="separator:acff61b07d724079dc3a90d3e3fd57cb3 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af40feaf010e829f2cdb787eb975b941d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af40feaf010e829f2cdb787eb975b941d"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_object.html">Object</a> > </td><td class="memItemRight" valign="bottom"><b>ToObject</b> () const </td></tr>
<tr class="separator:af40feaf010e829f2cdb787eb975b941d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3941f80b54b0707c6153657cc688ac93 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3941f80b54b0707c6153657cc688ac93"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_integer.html">Integer</a> > </td><td class="memItemRight" valign="bottom"><b>ToInteger</b> () const </td></tr>
<tr class="separator:a3941f80b54b0707c6153657cc688ac93 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed71590ec8bd5ef7972d7a0d844b2cd7 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed71590ec8bd5ef7972d7a0d844b2cd7"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_uint32.html">Uint32</a> > </td><td class="memItemRight" valign="bottom"><b>ToUint32</b> () const </td></tr>
<tr class="separator:aed71590ec8bd5ef7972d7a0d844b2cd7 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adf5d2c0c0bf58d60f2401d8437df26b0 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf5d2c0c0bf58d60f2401d8437df26b0"></a>
<a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_int32.html">Int32</a> > </td><td class="memItemRight" valign="bottom"><b>ToInt32</b> () const </td></tr>
<tr class="separator:adf5d2c0c0bf58d60f2401d8437df26b0 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae810be0ae81a87f677592d0176daac48 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classv8_1_1_local.html">Local</a>< <a class="el" href="classv8_1_1_uint32.html">Uint32</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#ae810be0ae81a87f677592d0176daac48">ToArrayIndex</a> () const </td></tr>
<tr class="separator:ae810be0ae81a87f677592d0176daac48 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a392d60e0ab58b5b13c0ac1e5b4b9f04b inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a392d60e0ab58b5b13c0ac1e5b4b9f04b"></a>
bool </td><td class="memItemRight" valign="bottom"><b>BooleanValue</b> () const </td></tr>
<tr class="separator:a392d60e0ab58b5b13c0ac1e5b4b9f04b inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4634d525bae654cdc50c398bfaee11aa inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4634d525bae654cdc50c398bfaee11aa"></a>
double </td><td class="memItemRight" valign="bottom"><b>NumberValue</b> () const </td></tr>
<tr class="separator:a4634d525bae654cdc50c398bfaee11aa inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac61c74a94dea10f48a64f5906b6dd43d inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac61c74a94dea10f48a64f5906b6dd43d"></a>
int64_t </td><td class="memItemRight" valign="bottom"><b>IntegerValue</b> () const </td></tr>
<tr class="separator:ac61c74a94dea10f48a64f5906b6dd43d inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af25557359e6bb79436ed60df18703d66 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af25557359e6bb79436ed60df18703d66"></a>
uint32_t </td><td class="memItemRight" valign="bottom"><b>Uint32Value</b> () const </td></tr>
<tr class="separator:af25557359e6bb79436ed60df18703d66 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24daae9d99d02ff2e24b60287dcd4d95 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24daae9d99d02ff2e24b60287dcd4d95"></a>
int32_t </td><td class="memItemRight" valign="bottom"><b>Int32Value</b> () const </td></tr>
<tr class="separator:a24daae9d99d02ff2e24b60287dcd4d95 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adc2a7a92a120675bbd4c992163a20869 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classv8_1_1_value.html#adc2a7a92a120675bbd4c992163a20869">Equals</a> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:adc2a7a92a120675bbd4c992163a20869 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb564818715b818957adc97716a076ba inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb564818715b818957adc97716a076ba"></a>
bool </td><td class="memItemRight" valign="bottom"><b>StrictEquals</b> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:abb564818715b818957adc97716a076ba inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7e49ca617f5d1773a81bae18a8062084 inherit pub_methods_classv8_1_1_value"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e49ca617f5d1773a81bae18a8062084"></a>
bool </td><td class="memItemRight" valign="bottom"><b>SameValue</b> (<a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_value.html">Value</a> > that) const </td></tr>
<tr class="separator:a7e49ca617f5d1773a81bae18a8062084 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memTemplParams" colspan="2"><a class="anchor" id="ac2142bb3ec6527633c4f9133e80cdc19"></a>
template<class T > </td></tr>
<tr class="memitem:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classv8_1_1_value.html">Value</a> * </td><td class="memTemplItemRight" valign="bottom"><b>Cast</b> (T *value)</td></tr>
<tr class="separator:ac2142bb3ec6527633c4f9133e80cdc19 inherit pub_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ade49000b88ac4ae8ea3c13cf10067132"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade49000b88ac4ae8ea3c13cf10067132"></a>
static V8_INLINE <a class="el" href="classv8_1_1_handle.html">Handle</a>< <a class="el" href="classv8_1_1_boolean.html">Boolean</a> > </td><td class="memItemRight" valign="bottom"><b>New</b> (bool value)</td></tr>
<tr class="separator:ade49000b88ac4ae8ea3c13cf10067132"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_classv8_1_1_value"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classv8_1_1_value')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classv8_1_1_value.html">v8::Value</a></td></tr>
<tr class="memitem:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memTemplParams" colspan="2"><a class="anchor" id="ae5aa9b54ebed55819c3a4b2a3eb5fe12"></a>
template<class T > </td></tr>
<tr class="memitem:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memTemplItemLeft" align="right" valign="top">static V8_INLINE <a class="el" href="classv8_1_1_value.html">Value</a> * </td><td class="memTemplItemRight" valign="bottom"><b>Cast</b> (T *value)</td></tr>
<tr class="separator:ae5aa9b54ebed55819c3a4b2a3eb5fe12 inherit pub_static_methods_classv8_1_1_value"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A primitive boolean value (ECMA-262, 4.3.14). Either the true or false value. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="v8_8h_source.html">v8.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:45:38 for V8 API Reference Guide for node.js v0.11.10 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
| v8-dox/v8-dox.github.io | 5ce4f3e/html/classv8_1_1_boolean.html | HTML | mit | 33,388 |
ROLES = {
-- WORRIER: Close-combat specialist
worrier = {
name = "Worrier",
description = "A powerful fighter who might be\na bit too kind for their own good.",
level_cap = 20,
hp = 24,
hp_growth = 0.52,
mp = 11,
mp_growth = 0.32,
str = 18,
int = 9,
dex = 12,
con = 13,
exp_to_2 = 4,
exp_modifier = 0.92,
pts_per_lv = 2,
spellbooks = { SPBOOKS.divine },
spell_lv_table = {
0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3
},
skillsets = { "Alchemy", "Pugilism" },
skill_lv_table = {
1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5
},
special = false
}
}
--[[
[ROLES]
Roles represent the different possible jobs, classes, etc. available to your
players. Each role can have different base statistics, growth rates,
spellbooks, and skillsets.
--DETAILS--
* name
Represents the role's name, and how it is referred to in-game
* description
How the role is described in flavor text
* level_cap
The maximum level this role can reach
* hp, mp
The level 1 values for this class' health and mana pools
* hp_growth, mp_growth
The modifiers that increase health and mana every levelup. The default in
actors.lua for the formula is:
base pool + ((base pool * base pool growth) * (level - 1))
* str, int, dex, con
The initial values for each of the base statistics. These do not grow
automatically like health or mana, but instead are raised manually by the
player with stat points.
* exp_to_2
The amount of experience that would be needed to reach level 2. This is
used in algorithms to determine exp to next level
* exp_modifier
Used with exp_to_2 and the character's level to determine the exp needed
to reach the next level
* pts_per_lv
The amount of stat points the character obtains every level that can
be spent raising statistics.
* spellbooks
Table of spellbooks available to this role. This role will have access to
all spells in these spellbooks of their current spell level, unless they are
one of the spell's restricted roles.
* spell_lv_table
Table that represents a role's spell level at a given character level.
Characters can only cast spells at a level at or below their spell level,
and this also modifies their competency with spells in general. Make sure
that this table is as long as the role's level cap.
* skillsets
Table of skillsets available to this role. This role will be able to use
any skills in these skillsets of their current skill level, unless they are
one of the skill's restricted roles.
* skill_lv_table
Table that represents a role's skill level at a given character level.
Characters can only use skills at a level at or below their skill level,
and this also modifies their competency with skills in general. Make sure
that this table is as long as the role's level cap.
* special
Boolean flag that represents whether this role is restricted during
character creation. Useful for "prestige" roles, or those you want to be
unique to a character.
--]]
| MkNiz/Love2Crawl | tables/roles.lua | Lua | mit | 3,340 |
/**
* @namespace http
*
* The C<http> namespace groups functions and classes used while making
* HTTP Requests.
*
*/
ECMAScript.Extend('http', function (ecma) {
// Intentionally private
var _documentLocation = null
function _getDocumentLocation () {
if (!_documentLocation) _documentLocation = new ecma.http.Location();
return _documentLocation;
}
/**
* @constant HTTP_STATUS_NAMES
* HTTP/1.1 Status Code Definitions
*
* Taken from, RFC 2616 Section 10:
* L<http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html>
*
* These names are used in conjuction with L<ecma.http.Request> for
* indicating callback functions. The name is prepended with C<on> such
* that
* onMethodNotAllowed
* corresponds to the callback triggered when a 405 status is received.
*
# Names
*
* 100 Continue
* 101 SwitchingProtocols
* 200 Ok
* 201 Created
* 202 Accepted
* 203 NonAuthoritativeInformation
* 204 NoContent
* 205 ResetContent
* 206 PartialContent
* 300 MultipleChoices
* 301 MovedPermanently
* 302 Found
* 303 SeeOther
* 304 NotModified
* 305 UseProxy
* 306 Unused
* 307 TemporaryRedirect
* 400 BadRequest
* 401 Unauthorized
* 402 PaymentRequired
* 403 Forbidden
* 404 NotFound
* 405 MethodNotAllowed
* 406 NotAcceptable
* 407 ProxyAuthenticationRequired
* 408 RequestTimeout
* 409 Conflict
* 410 Gone
* 411 LengthRequired
* 412 PreconditionFailed
* 413 RequestEntityTooLarge
* 414 RequestURITooLong
* 415 UnsupportedMediaType
* 416 RequestedRangeNotSatisfiable
* 417 ExpectationFailed
* 500 InternalServerError
* 501 NotImplemented
* 502 BadGateway
* 503 ServiceUnavailable
* 504 GatewayTimeout
* 505 HTTPVersionNotSupported
*/
this.HTTP_STATUS_NAMES = {
100: 'Continue',
101: 'SwitchingProtocols',
200: 'Ok',
201: 'Created',
202: 'Accepted',
203: 'NonAuthoritativeInformation',
204: 'NoContent',
205: 'ResetContent',
206: 'PartialContent',
300: 'MultipleChoices',
301: 'MovedPermanently',
302: 'Found',
303: 'SeeOther',
304: 'NotModified',
305: 'UseProxy',
306: 'Unused',
307: 'TemporaryRedirect',
400: 'BadRequest',
401: 'Unauthorized',
402: 'PaymentRequired',
403: 'Forbidden',
404: 'NotFound',
405: 'MethodNotAllowed',
406: 'NotAcceptable',
407: 'ProxyAuthenticationRequired',
408: 'RequestTimeout',
409: 'Conflict',
410: 'Gone',
411: 'LengthRequired',
412: 'PreconditionFailed',
413: 'RequestEntityTooLarge',
414: 'RequestURITooLong',
415: 'UnsupportedMediaType',
416: 'RequestedRangeNotSatisfiable',
417: 'ExpectationFailed',
500: 'InternalServerError',
501: 'NotImplemented',
502: 'BadGateway',
503: 'ServiceUnavailable',
504: 'GatewayTimeout',
505: 'HTTPVersionNotSupported'
};
/**
* @function isSameOrigin
*
* Compare originating servers.
*
* var bool = ecma.http.isSameOrigin(uri);
* var bool = ecma.http.isSameOrigin(uri, uri);
*
* Is the resource located on the server at the port using the same protocol
* which served the document.
*
* var bool = ecma.http.isSameOrigin('http://www.example.com');
*
* Are the two URI's served from the same origin
*
* var bool = ecma.http.isSameOrigin('http://www.example.com', 'https://www.example.com');
*
*/
this.isSameOrigin = function(uri1, uri2) {
if (!(uri1)) return false;
var loc1 = uri1 instanceof ecma.http.Location
? uri1 : new ecma.http.Location(uri1);
var loc2 = uri2 || _getDocumentLocation();
return loc1.isSameOrigin(loc2);
};
});
| ryangies/lsn-javascript | src/lib/ecma/http/http.js | JavaScript | mit | 3,860 |
#//////////////////////////////////////////////////////////////////////////////
# -- clMAGMA (version 1.0.0) --
# Univ. of Tennessee, Knoxville
# Univ. of California, Berkeley
# Univ. of Colorado, Denver
# April 2012
#//////////////////////////////////////////////////////////////////////////////
MAGMA_DIR = .
include ./Makefile.internal
.PHONY: lib
all: lib test
lib: libmagma libmagmablas
libmagma:
( cd control && $(MAKE) )
( cd src && $(MAKE) )
( cd interface_opencl && $(MAKE) ) # last, clcompiler depends on libmagma
libmagmablas:
( cd magmablas && $(MAKE) )
#lapacktest:
# ( cd testing/lin && $(MAKE) )
test: lib
( cd testing && $(MAKE) )
clean:
( cd control && $(MAKE) clean )
( cd interface_opencl && $(MAKE) clean )
( cd src && $(MAKE) clean )
( cd magmablas && $(MAKE) clean )
( cd testing && $(MAKE) clean )
#( cd testing/lin && $(MAKE) clean )
-rm -f $(LIBMAGMA) $(LIBMAGMABLAS)
cleangen:
( cd control && $(MAKE) cleangen )
( cd interface_opencl && $(MAKE) cleangen )
( cd src && $(MAKE) cleangen )
( cd magmablas && $(MAKE) cleangen )
( cd testing && $(MAKE) cleangen )
cleanall:
( cd control && $(MAKE) cleanall )
( cd interface_opencl && $(MAKE) cleanall )
( cd src && $(MAKE) cleanall )
( cd magmablas && $(MAKE) cleanall )
( cd testing && $(MAKE) cleanall )
#( cd testing/lin && $(MAKE) cleanall )
$(MAKE) cleanall2
rm -f core.*
# cleanall2 is a dummy rule to run cleangen at the *end* of make cleanall, so
# .Makefile.gen files aren't deleted and immediately re-created. see Makefile.gen
cleanall2:
@echo
dir:
mkdir -p $(prefix)
mkdir -p $(prefix)/include
mkdir -p $(prefix)/lib
mkdir -p $(prefix)/lib/pkgconfig
install: lib dir
# MAGMA
cp $(MAGMA_DIR)/include/*.h $(prefix)/include
cp $(LIBMAGMA) $(prefix)/lib
cp $(LIBMAGMABLAS) $(prefix)/lib
cat $(MAGMA_DIR)/lib/pkgconfig/magma.pc | \
sed -e s:\__PREFIX:"$(prefix)": | \
sed -e s:\__LIBEXT:"$(LIBEXT)": \
> $(prefix)/lib/pkgconfig/magma.pc
| mauro-belgiovine/belgiovi-clmagma | Makefile | Makefile | mit | 2,211 |
<?php
namespace Anax\Questions;
/**
* A controller for question-related pages
*
*/
class QuestionsController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
public function initialize()
{
$this->questions = new \Anax\Questions\Question();
$this->questions->setDI($this->di);
$this->textFilter = new \Anax\Utils\CTextFilter();
$this->comments = new \Anax\Questions\Comments();
$this->comments->setDI($this->di);
}
public function listAction($tagId = null)
{
$all = $this->questions->getQuestionsWithAuthor($tagId);
$title = ($tagId) ? $this->questions->getTagName($tagId) : "Senaste frågorna";
foreach ($all as $q) {
$q->tags = $this->questions->getTagsForQuestion($q->ID);
}
$this->theme->setTitle("List all questions");
$this->views->add('question/list', [
'questions' => $all,
'title' => $title
]);
$this->views->add('question/list-sidebar', [], 'sidebar');
}
public function viewAction($id = null) {
$question = $this->questions->findQuestionWithAuthor($id);
$qComments = $this->comments->getCommentsForQuestion($id);
$tags = $this->questions->getTagsForQuestion($id);
$answers = $this->questions->getAnswersForQuestions($id);
foreach ($qComments as $c) {
$c->content = $this->textFilter->doFilter($c->content, 'markdown');
}
foreach($answers AS $a) {
$a->comments = $this->comments->getCommentsForAnswer($a->ID);
$a->content = $this->textFilter->doFilter($a->content, 'markdown');
foreach ($a->comments as $c) {
$c->content = $this->textFilter->doFilter($c->content, 'markdown');
}
}
$question->content = $this->textFilter->doFilter($question->content, 'markdown');
$this->theme->setTitle("Fråga");
$this->views->add('question/view', [
'question' => $question,
'questionComments' => $qComments,
"tags" => $tags,
'answers' => $answers,
]);
}
public function newAction() {
$tags = $this->questions->getTags();
$this->theme->setTitle("Skapa ny fråga");
$this->views->add('question/create', ["tags" => $tags], 'main');
$this->views->add('question/create-sidebar', [], 'sidebar');
}
public function createAction() {
$tags = array();
$dbTagCount = $this->questions->getTagCount();
for ($i=1; $i <= $dbTagCount; $i++) {
$tag = $this->request->getPost('tag'.$i);
if($tag) {
$tags[] = $i;
}
}
$question = array(
"title" => $this->request->getPost('title'),
"content" => $this->request->getPost('content'),
"author" => $this->session->get("user")->id
);
if($this->questions->createQuestion($question, $tags)) {
$url = $this->url->create('questions/list');
$this->response->redirect($url);
} else {
die("Ett fel uppstod. Var god försök att lägga till din fråga igen!");
}
}
public function tagsAction() {
$tags = $this->questions->getTags();
$this->theme->setTitle("Taggar");
$this->views->add('question/tags', ["tags" => $tags]);
}
public function answerAction() {
$answer = array();
$answer["author"] = $this->session->get("user")->id;
$answer["content"] = $this->request->getPost('content');
$answer["question"] = $this->request->getPost('questionId');
$this->questions->createAnswer($answer);
$url = $this->url->create('questions/view/'.$answer["question"]);
$this->response->redirect($url);
}
public function commentAction() {
$type = addslashes($this->request->getPost('type'));
$id = $this->request->getPost('ID');
$question = $type == 'question' ? $id : 0;
$answer = ($type == 'answer') ? $id : 0;
$author = $this->session->get('user')->id;
$now = date("Y-m-d H:i:s");
$comment = array(
"content" => addslashes($this->request->getPost('content')),
"question" => $question,
"answer" => $answer,
"author" => $author,
"created" => $now
);
$this->comments->create($comment);
$questionId = $this->request->getPost('questionId');
$url = $this->url->create('questions/view/'.$questionId);
$this->response->redirect($url);
}
}
?> | sebastianjonasson/phpmvcprojekt | app/src/Question/QuestionsController.php | PHP | mit | 4,081 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.