text
stringlengths 3
96.2k
| meta
dict |
|---|---|
'use strict';
var memoize = require('../..')
, nextTick = require('next-tick');
module.exports = function () {
return {
Regular: {
Success: function (a, d) {
var mfn, fn, u = {}, i = 0, invoked = 0;
fn = function (x, y, cb) {
nextTick(function () {
++i;
cb(null, x + y);
});
return u;
};
mfn = memoize(fn, { async: true });
a(mfn(3, 7, function (err, res) {
++invoked;
a.deep([err, res], [null, 10], "Result #1");
}), u, "Initial");
a(mfn(3, 7, function (err, res) {
++invoked;
a.deep([err, res], [null, 10], "Result #2");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
++invoked;
a.deep([err, res], [null, 13], "Result B #1");
}), u, "Initial #2");
a(mfn(3, 7, function (err, res) {
++invoked;
a.deep([err, res], [null, 10], "Result #3");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
++invoked;
a.deep([err, res], [null, 13], "Result B #2");
}), u, "Initial #3");
nextTick(function () {
a(i, 2, "Init Called");
a(invoked, 5, "Cb Called");
a(mfn(3, 7, function (err, res) {
++invoked;
a.deep([err, res], [null, 10], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
++invoked;
a.deep([err, res], [null, 13], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 2, "Init Called #2");
a(invoked, 7, "Cb Called #2");
mfn.delete(3, 7);
a(mfn(3, 7, function (err, res) {
++invoked;
a.deep([err, res], [null, 10], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
++invoked;
a.deep([err, res], [null, 13], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 3, "Init After delete");
a(invoked, 9, "Cb After delete");
d();
});
});
});
},
Error: function (a, d) {
var mfn, fn, u = {}, i = 0, e = new Error("Test");
fn = function (x, y, cb) {
nextTick(function () {
++i;
cb(e);
});
return u;
};
mfn = memoize(fn, { async: true, dispose: a.never });
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #1");
}), u, "Initial");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #2");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Result B #1");
}), u, "Initial #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #3");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Result B #2");
}), u, "Initial #3");
nextTick(function () {
a(i, 2, "Called #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 4, "Again Called #2");
d();
});
});
}
},
Primitive: {
Success: function (a, d) {
var mfn, fn, u = {}, i = 0;
fn = function (x, y, cb) {
nextTick(function () {
++i;
cb(null, x + y);
});
return u;
};
mfn = memoize(fn, { async: true, primitive: true });
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [null, 10], "Result #1");
}), u, "Initial");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [null, 10], "Result #2");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [null, 13], "Result B #1");
}), u, "Initial #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [null, 10], "Result #3");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [null, 13], "Result B #2");
}), u, "Initial #3");
nextTick(function () {
a(i, 2, "Called #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [null, 10], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [null, 13], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 2, "Again Called #2");
mfn.delete(3, 7);
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [null, 10], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [null, 13], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 3, "Call After delete");
d();
});
});
});
},
Error: function (a, d) {
var mfn, fn, u = {}, i = 0, e = new Error("Test");
fn = function (x, y, cb) {
nextTick(function () {
++i;
cb(e);
});
return u;
};
mfn = memoize(fn, { async: true, primitive: true });
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #1");
}), u, "Initial");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #2");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Result B #1");
}), u, "Initial #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Result #3");
}), u, "Initial #2");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Result B #2");
}), u, "Initial #3");
nextTick(function () {
a(i, 2, "Called #2");
a(mfn(3, 7, function (err, res) {
a.deep([err, res], [e, undefined], "Again: Result");
}), u, "Again: Initial");
a(mfn(5, 8, function (err, res) {
a.deep([err, res], [e, undefined], "Again B: Result");
}), u, "Again B: Initial");
nextTick(function () {
a(i, 4, "Again Called #2");
d();
});
});
},
"Primitive null arg case": function (a, d) {
var x = {}, mfn = memoize(function f(id, cb) { cb(null, x); }, {
async: true,
primitive: true
});
mfn(null, function (err, res) {
a.deep([err, res], [null, x], "Args");
d();
});
}
},
"Sync Clear": function (a, d) {
var mfn, fn;
fn = function (x, cb) {
nextTick(function () {
cb(null, x);
});
};
mfn = memoize(fn, { async: true });
mfn(1, function (err, i) {
a(i, 1, "First");
});
mfn.clear();
mfn(2, function (err, i) {
a(i, 2, "Second");
d();
});
},
"Sync Clear: Primitive": function (a, d) {
var mfn, fn;
fn = function (x, cb) {
nextTick(function () {
cb(null, x);
});
};
mfn = memoize(fn, { async: true, primitive: true });
mfn(2, function (err, i) {
a(i, 2, "First");
});
mfn(1, function (err, i) {
a(i, 1, "Second");
nextTick(d);
});
mfn.clear();
mfn(2, function (err, i) {
a(i, 2, "Third");
});
}
};
};
|
{
"pile_set_name": "Github"
}
|
class Group extends OutlinerElement {
constructor(data, uuid) {
super(uuid)
for (var key in Group.properties) {
Group.properties[key].reset(this);
}
this.name = Format.bone_rig ? 'bone' : 'group'
this.children = []
this.reset = false;
this.shade = true;
this.selected = false;
this.locked = false;
this.visibility = true;
this.export = true;
this.autouv = 0;
this.parent = 'root';
this.isOpen = false;
this.ik_enabled = false;
this.ik_chain_length = 0;
if (typeof data === 'object') {
this.extend(data)
} else if (typeof data === 'string') {
this.name = data
}
}
extend(object) {
for (var key in Group.properties) {
Group.properties[key].merge(this, object)
}
Merge.string(this, object, 'name')
this.sanitizeName();
Merge.boolean(this, object, 'shade')
Merge.boolean(this, object, 'mirror_uv')
Merge.boolean(this, object, 'reset')
/*
if (object.origin) {
Merge.number(this.origin, object.origin, 0)
Merge.number(this.origin, object.origin, 1)
Merge.number(this.origin, object.origin, 2)
}
if (object.rotation) {
Merge.number(this.rotation, object.rotation, 0)
Merge.number(this.rotation, object.rotation, 1)
Merge.number(this.rotation, object.rotation, 2)
}*/
Merge.number(this, object, 'autouv')
Merge.boolean(this, object, 'export')
Merge.boolean(this, object, 'locked')
Merge.boolean(this, object, 'visibility')
return this;
}
getMesh() {
return this.mesh;
}
get mesh() {
var bone = Canvas.bones[this.uuid]
if (!bone) {
bone = new THREE.Object3D()
bone.name = this.name
bone.isGroup = true
Canvas.bones[this.uuid] = bone
}
return bone;
}
init() {
super.init();
if (typeof this.parent !== 'object') {
this.addTo();
}
return this;
}
select(event) {
var scope = this;
if (Blockbench.hasFlag('renaming') || this.locked) return this;
if (!event) event = true
var allSelected = Group.selected === this && selected.length && this.matchesSelection()
//Clear Old Group
if (Group.selected) Group.selected.unselect()
if (event.shiftKey !== true && event.ctrlOrCmd !== true) {
selected.length = 0
}
//Select This Group
Group.all.forEach(function(s) {
s.selected = false
})
this.selected = true
Group.selected = this;
//Select / Unselect Children
if (allSelected && event.which === 1) {
//Select Only Group, unselect Children
selected.length = 0
} else {
scope.children.forEach(function(s) {
s.selectLow()
})
}
if (Animator.open) {
if (Animator.selected) {
Animator.selected.getBoneAnimator().select(true)
}
}
updateSelection()
return this;
}
selectChildren(event) {
var scope = this;
if (Blockbench.hasFlag('renaming')) return;
if (!event) event = {shiftKey: false}
var firstChildSelected = false
//Clear Old Group
if (Group.selected) Group.selected.unselect()
selected.length = 0
//Select This Group
Group.all.forEach(function(s) {
s.selected = false
})
this.selected = true
Group.selected = this
scope.children.forEach(function(s) {
s.selectLow()
})
updateSelection()
return this;
}
selectLow(highlight) {
//Group.selected = this;
//Only Select
if (highlight !== false) {
this.selected = true
}
this.children.forEach(function(s) {
s.selectLow(highlight)
})
TickUpdates.selection = true;
return this;
}
unselect() {
if (this.selected === false) return;
if (Animator.open && Animator.selected) {
var ba = Animator.selected.animators[this.uuid];
if (ba) {
ba.selected = false
}
}
Group.selected = undefined;
this.selected = false
TickUpdates.selection = true;
return this;
}
matchesSelection() {
var scope = this;
var match = true;
for (var i = 0; i < selected.length; i++) {
if (!selected[i].isChildOf(scope, 20)) {
return false
}
}
this.forEachChild(obj => {
if (!obj.selected) {
match = false
}
})
return match;
}
openUp() {
this.isOpen = true
this.updateElement()
if (this.parent && this.parent !== 'root') {
this.parent.openUp()
}
return this;
}
remove(undo) {
var scope = this;
if (undo) {
var cubes = []
this.forEachChild(function(element) {
if (element.type !== 'group') {
cubes.push(element)
}
})
Undo.initEdit({elements: cubes, outliner: true, selection: true})
}
this.unselect()
var i = this.children.length-1
while (i >= 0) {
this.children[i].remove(false)
i--;
}
if (typeof this.parent === 'object') {
this.parent.children.remove(this)
} else {
Outliner.root.remove(this)
}
Animator.animations.forEach(animation => {
if (animation.animators && animation.animators[scope.uuid]) {
delete animation.animators[scope.uuid];
}
if (animation.selected && Animator.open) {
updateKeyframeSelection();
}
})
TickUpdates.selection = true
this.constructor.all.remove(this);
if (undo) {
cubes.length = 0
Undo.finishEdit('removed_group')
}
}
resolve() {
var array = this.children.slice();
var index = this.getParentArray().indexOf(this)
array.forEach((s, i) => {
s.addTo(this.parent, index)
})
TickUpdates.outliner = true;
this.remove(false);
return array;
}
showContextMenu(event) {
Prop.active_panel = 'outliner'
if (this.locked) return this;
this.select(event)
this.menu.open(event, this)
return this;
}
transferOrigin(origin) {
if (!this.mesh) return;
var q = new THREE.Quaternion().copy(this.mesh.quaternion)
var shift = new THREE.Vector3(
this.origin[0] - origin[0],
this.origin[1] - origin[1],
this.origin[2] - origin[2],
)
var dq = new THREE.Vector3().copy(shift)
dq.applyQuaternion(q)
shift.sub(dq)
shift.applyQuaternion(q.inverse())
this.origin.V3_set(origin);
function iterateChild(obj) {
if (obj instanceof Group) {
obj.origin.V3_add(shift);
obj.children.forEach(child => iterateChild(child));
} else {
if (obj.movable) {
obj.from.V3_add(shift);
}
if (obj.resizable) {
obj.to.V3_add(shift);
}
if (obj.rotatable) {
obj.origin.V3_add(shift);
}
}
}
this.children.forEach(child => iterateChild(child));
Canvas.updatePositions()
return this;
}
sortContent() {
Undo.initEdit({outliner: true})
if (this.children.length < 1) return;
this.children.sort(function(a,b) {
return sort_collator.compare(a.name, b.name)
});
Undo.finishEdit('sort')
return this;
}
duplicate() {
var copied_groups = [];
var copy = this.getChildlessCopy(false)
delete copy.parent;
copied_groups.push(copy)
copy.sortInBefore(this, 1).init()
if (Format.bone_rig) {
copy.createUniqueName()
}
for (var child of this.children) {
child.duplicate().addTo(copy)
}
copy.isOpen = true;
Canvas.updatePositions()
TickUpdates.outliner = true;
return copy;
}
getSaveCopy() {
var base_group = this.getChildlessCopy(true);
for (var child of this.children) {
base_group.children.push(child.getSaveCopy());
}
delete base_group.parent;
return base_group;
}
getChildlessCopy(keep_uuid) {
var base_group = new Group({name: this.name}, keep_uuid ? this.uuid : null);
for (var key in Group.properties) {
Group.properties[key].copy(this, base_group)
}
base_group.name = this.name;
base_group.origin.V3_set(this.origin);
base_group.rotation.V3_set(this.rotation);
base_group.shade = this.shade;
base_group.reset = this.reset;
base_group.locked = this.locked;
base_group.visibility = this.visibility;
base_group.export = this.export;
base_group.autouv = this.autouv;
return base_group;
}
compile(undo) {
var obj = {
name: this.name
}
for (var key in Group.properties) {
Group.properties[key].copy(this, obj)
}
if (this.shade == false) {
obj.shade = false
}
if (undo) {
obj.uuid = this.uuid;
obj.export = this.export;
obj.isOpen = this.isOpen === true;
obj.locked = this.locked;
obj.visibility = this.visibility;
obj.autouv = this.autouv;
}
if (this.rotation.allEqual(0)) {
delete obj.rotation;
}
if (this.reset) {
obj.reset = true
}
obj.children = []
return obj;
}
forEachChild(cb, type, forSelf) {
var i = 0
if (forSelf) {
cb(this)
}
while (i < this.children.length) {
if (!type || this.children[i] instanceof type) {
cb(this.children[i])
}
if (this.children[i].type === 'group') {
this.children[i].forEachChild(cb, type)
}
i++;
}
}
toggle(key, val) {
if (val === undefined) {
var val = !this[key]
}
var cubes = []
this.forEachChild(obj => {
cubes.push(obj)
}, NonGroup)
Undo.initEdit({outliner: true, elements: cubes})
this.forEachChild(function(s) {
s[key] = val
s.updateElement()
})
this[key] = val;
this.updateElement()
if (key === 'visibility') {
Canvas.updateVisibility()
}
Undo.finishEdit('toggle')
}
setAutoUV(val) {
this.forEachChild(function(s) {
s.autouv = val;
s.updateElement()
})
this.autouv = val;
this.updateElement()
}
}
Group.prototype.title = tl('data.group');
Group.prototype.type = 'group';
Group.prototype.icon = 'fa fa-folder';
Group.prototype.isParent = true;
Group.prototype.name_regex = () => Format.bone_rig ? 'a-zA-Z0-9_' : false;
Group.prototype.buttons = [
Outliner.buttons.visibility,
Outliner.buttons.locked,
Outliner.buttons.export,
Outliner.buttons.shading,
Outliner.buttons.autouv
];
Group.prototype.needsUniqueName = () => Format.bone_rig;
Group.prototype.menu = new Menu([
'copy',
'paste',
'duplicate',
'_',
'add_locator',
'rename',
{icon: 'sort_by_alpha', name: 'menu.group.sort', condition: {modes: ['edit']}, click: function(group) {group.sortContent()}},
{icon: 'fa-leaf', name: 'menu.group.resolve', condition: {modes: ['edit']}, click: function(group) {
Undo.initEdit({outliner: true})
group.resolve()
Undo.finishEdit('group resolve')
}},
'delete'
]);
Group.selected;
Group.all = [];
new Property(Group, 'vector', 'origin', {default() {
return Format.centered_grid ? [0, 0, 0] : [8, 8, 8]
}});
new Property(Group, 'vector', 'rotation');
new Property(Group, 'array', 'cem_animations', {condition: () => Format.id == 'optifine_entity'});
function getCurrentGroup() {
if (Group.selected) {
return Group.selected
} else if (selected.length) {
var g1 = selected[0].parent;
if (g1 instanceof Group) {
for (var obj of selected) {
if (obj.parent !== g1) {
return;
}
}
return g1;
}
}
}
function getAllGroups() {
var ta = []
function iterate(array) {
for (var obj of array) {
if (obj instanceof Group) {
ta.push(obj)
iterate(obj.children)
}
}
}
iterate(Outliner.root)
return ta;
}
function addGroup() {
Undo.initEdit({outliner: true});
var add_group = Group.selected
if (!add_group && selected.length) {
add_group = Cube.selected.last()
}
var base_group = new Group({
origin: add_group ? add_group.origin : undefined
})
base_group.addTo(add_group)
base_group.isOpen = true
if (Format.bone_rig) {
base_group.createUniqueName()
}
if (add_group instanceof NonGroup && selected.length > 1) {
selected.forEach(function(s, i) {
s.addTo(base_group)
})
}
base_group.init().select()
Undo.finishEdit('add_group');
loadOutlinerDraggable()
Vue.nextTick(function() {
updateSelection()
if (settings.create_rename.value) {
base_group.rename()
}
base_group.showInOutliner()
Blockbench.dispatchEvent( 'add_group', {object: base_group} )
})
}
window.__defineGetter__('selected_group', () => {
console.warn('selected_group is deprecated. Please use Group.selected instead.')
return Group.selected
})
BARS.defineActions(function() {
new Action({
id: 'add_group',
icon: 'create_new_folder',
category: 'edit',
condition: () => Modes.edit,
keybind: new Keybind({key: 71, ctrl: true}),
click: function () {
addGroup();
}
})
new Action({
id: 'collapse_groups',
icon: 'format_indent_decrease',
category: 'edit',
condition: () => Outliner.root.length > 0,
click: function () {
Group.all.forEach(function(g) {
g.isOpen = false
var name = g.name
g.name = '_$X0v_'
g.name = name
})
}
})
})
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="udis86" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Release">
<Option platforms="Unix;" />
<Option output="bin/Release/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Release/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-O3" />
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="Debug">
<Option platforms="Unix;" />
<Option output="bin/Debug/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Debug/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-Wall" />
<Add option="-g" />
</Compiler>
</Target>
<Target title="Win32 Release">
<Option platforms="Windows;" />
<Option output="bin/Release/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Release/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-O3" />
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="Win32 Debug">
<Option platforms="Windows;" />
<Option output="bin/Debug/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Debug/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-Wall" />
<Add option="-g" />
</Compiler>
</Target>
<Target title="MacOS Release">
<Option platforms="Mac;" />
<Option output="bin/Release/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Release/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-O3" />
<Add option="-Wall" />
<Add option="-arch i386" />
<Add option="-arch x86_64" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="MacOS Debug">
<Option platforms="Mac;" />
<Option output="bin/Debug/udis86" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Debug/" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-Wall" />
<Add option="-g" />
<Add option="-arch i386" />
<Add option="-arch x86_64" />
</Compiler>
</Target>
</Build>
<Unit filename="libudis86/decode.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="libudis86/decode.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/extern.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/itab.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="libudis86/itab.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/syn-att.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="libudis86/syn-intel.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="libudis86/syn.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="libudis86/syn.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/types.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/udint.h">
<Option target="<{~None~}>" />
</Unit>
<Unit filename="libudis86/udis86.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>
|
{
"pile_set_name": "Github"
}
|
package constants
// TBS Config List
var (
DuplicatedAssertionLimitLength = 5
ASSERTION_LIST = []string{
"assert",
"should",
"check", // ArchUnit,
"maynotbe", // ArchUnit,
"is", // RestAssured,
"spec", // RestAssured,
"verify", // Mockito,
}
)
var TechStopWords = []string{
"get",
"create",
"update",
"delete",
"save",
"post",
"add",
"remove",
"insert",
"select",
"exist",
"find",
"new",
"parse",
"set",
"get",
"first",
"last",
"type",
"key",
"value",
"equal",
"greater",
"greater",
"all",
"by",
"id",
"is",
"of",
"not",
"with",
"main",
"status",
"count",
"equals",
"start",
"config",
"sort",
"handle",
"handler",
"internal",
"cache",
"request",
"process",
"parameter",
"method",
"class",
"default",
"object",
"annotation",
"read",
"write",
"bean",
"message",
"factory",
"error",
"errors",
"exception",
"null",
"string",
"init",
"data",
"hash",
"convert",
"size",
"build",
"return",
}
|
{
"pile_set_name": "Github"
}
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* Postgres Result Class
*
* This class extends the parent result class: CI_DB_result
*
* @category Database
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/database/
*/
class CI_DB_postgre_result extends CI_DB_result {
/**
* Number of rows in the result set
*
* @access public
* @return integer
*/
function num_rows()
{
return @pg_num_rows($this->result_id);
}
// --------------------------------------------------------------------
/**
* Number of fields in the result set
*
* @access public
* @return integer
*/
function num_fields()
{
return @pg_num_fields($this->result_id);
}
// --------------------------------------------------------------------
/**
* Fetch Field Names
*
* Generates an array of column names
*
* @access public
* @return array
*/
function list_fields()
{
$field_names = array();
for ($i = 0; $i < $this->num_fields(); $i++)
{
$field_names[] = pg_field_name($this->result_id, $i);
}
return $field_names;
}
// --------------------------------------------------------------------
/**
* Field data
*
* Generates an array of objects containing field meta-data
*
* @access public
* @return array
*/
function field_data()
{
$retval = array();
for ($i = 0; $i < $this->num_fields(); $i++)
{
$F = new stdClass();
$F->name = pg_field_name($this->result_id, $i);
$F->type = pg_field_type($this->result_id, $i);
$F->max_length = pg_field_size($this->result_id, $i);
$F->primary_key = 0;
$F->default = '';
$retval[] = $F;
}
return $retval;
}
// --------------------------------------------------------------------
/**
* Free the result
*
* @return null
*/
function free_result()
{
if (is_resource($this->result_id))
{
pg_free_result($this->result_id);
$this->result_id = FALSE;
}
}
// --------------------------------------------------------------------
/**
* Data Seek
*
* Moves the internal pointer to the desired offset. We call
* this internally before fetching results to make sure the
* result set starts at zero
*
* @access private
* @return array
*/
function _data_seek($n = 0)
{
return pg_result_seek($this->result_id, $n);
}
// --------------------------------------------------------------------
/**
* Result - associative array
*
* Returns the result set as an array
*
* @access private
* @return array
*/
function _fetch_assoc()
{
return pg_fetch_assoc($this->result_id);
}
// --------------------------------------------------------------------
/**
* Result - object
*
* Returns the result set as an object
*
* @access private
* @return object
*/
function _fetch_object()
{
return pg_fetch_object($this->result_id);
}
}
/* End of file postgre_result.php */
/* Location: ./system/database/drivers/postgre/postgre_result.php */
|
{
"pile_set_name": "Github"
}
|
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package deepequal_test
import (
"testing"
"google3/spam/archer/frontend/deepequal"
)
func TestTwoNilValues(t *testing.T) {
if err := deepequal.Check(nil, nil); err != nil {
t.Errorf("expected nil, saw %v", err)
}
}
type Foo struct {
bar *Bar
bang *Bar
}
type Bar struct {
baz *Baz
foo []*Foo
}
type Baz struct {
entries map[int]interface{}
whatever string
}
func newFoo() *Foo {
return &Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
42: &Foo{},
21: &Bar{},
11: &Baz{whatever: "it's just a test"}}}},
bang: &Bar{foo: []*Foo{
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
43: &Foo{},
22: &Bar{},
13: &Baz{whatever: "this is nuts"}}}},
bang: &Bar{foo: []*Foo{
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
61: &Foo{},
71: &Bar{},
11: &Baz{whatever: "no, it's Go"}}}},
bang: &Bar{foo: []*Foo{
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
0: &Foo{},
-2: &Bar{},
-11: &Baz{whatever: "we need to go deeper"}}}},
bang: &Bar{foo: []*Foo{
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
-2: &Foo{},
-5: &Bar{},
-7: &Baz{whatever: "are you serious?"}}}},
bang: &Bar{foo: []*Foo{}}},
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
-100: &Foo{},
50: &Bar{},
20: &Baz{whatever: "na, not really ..."}}}},
bang: &Bar{foo: []*Foo{}}}}}}}}},
&Foo{bar: &Bar{baz: &Baz{
entries: map[int]interface{}{
2: &Foo{},
1: &Bar{},
-1: &Baz{whatever: "... it's just a test."}}}},
bang: &Bar{foo: []*Foo{}}}}}}}}}
}
func TestElaborate(t *testing.T) {
a := newFoo()
b := newFoo()
if err := deepequal.Check(a, b); err != nil {
t.Errorf("expected nil, saw %v", err)
}
}
|
{
"pile_set_name": "Github"
}
|
(function(){
if (typeof self === 'undefined' || !self.Prism || !self.document) {
return;
}
// The languages map is built automatically with gulp
var Languages = /*languages_placeholder[*/{"css":"CSS","clike":"C-like","javascript":"JavaScript","abap":"ABAP","actionscript":"ActionScript","apacheconf":"Apache Configuration","apl":"APL","applescript":"AppleScript","asciidoc":"AsciiDoc","aspnet":"ASP.NET (C#)","autoit":"AutoIt","autohotkey":"AutoHotkey","basic":"BASIC","csharp":"C#","cpp":"C++","coffeescript":"CoffeeScript","css-extras":"CSS Extras","fsharp":"F#","glsl":"GLSL","http":"HTTP","inform7":"Inform 7","latex":"LaTeX","lolcode":"LOLCODE","matlab":"MATLAB","mel":"MEL","nasm":"NASM","nginx":"nginx","nsis":"NSIS","objectivec":"Objective-C","ocaml":"OCaml","parigp":"PARI/GP","php":"PHP","php-extras":"PHP Extras","powershell":"PowerShell","jsx":"React JSX","rest":"reST (reStructuredText)","sas":"SAS","sass":"Sass (Sass)","scss":"Sass (Scss)","sql":"SQL","typescript":"TypeScript","vhdl":"VHDL","vim":"vim","wiki":"Wiki markup","yaml":"YAML"}/*]*/;
Prism.hooks.add('before-highlight', function(env) {
var pre = env.element.parentNode;
if (!pre || !/pre/i.test(pre.nodeName)) {
return;
}
var language = Languages[env.language] || (env.language.substring(0, 1).toUpperCase() + env.language.substring(1));
pre.setAttribute('data-language', language);
/* check if the divs already exist */
var sib = pre.previousSibling;
var div, div2;
if (sib && /\s*\bprism-show-language\b\s*/.test(sib.className) &&
sib.firstChild &&
/\s*\bprism-show-language-label\b\s*/.test(sib.firstChild.className)) {
div2 = sib.firstChild;
if (div2.getAttribute('data-language') !== language) {
div2.setAttribute('data-language', language);
div2.innerHTML = language;
}
} else {
div = document.createElement('div');
div2 = document.createElement('div');
div2.className = 'prism-show-language-label';
div2.setAttribute('data-language', language);
div2.innerHTML = language;
div.className = 'prism-show-language';
div.appendChild(div2);
pre.parentNode.insertBefore(div, pre);
}
});
})();
|
{
"pile_set_name": "Github"
}
|
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
//
// Purpose: Can be attached to the controller to collide with the balloons
//
//=============================================================================
using UnityEngine;
using System.Collections;
namespace Valve.VR.InteractionSystem
{
//-------------------------------------------------------------------------
public class BalloonColliders : MonoBehaviour
{
public GameObject[] colliders;
private Vector3[] colliderLocalPositions;
private Quaternion[] colliderLocalRotations;
private Rigidbody rb;
//-------------------------------------------------
void Awake()
{
rb = GetComponent<Rigidbody>();
colliderLocalPositions = new Vector3[colliders.Length];
colliderLocalRotations = new Quaternion[colliders.Length];
for ( int i = 0; i < colliders.Length; ++i )
{
colliderLocalPositions[i] = colliders[i].transform.localPosition;
colliderLocalRotations[i] = colliders[i].transform.localRotation;
colliders[i].name = gameObject.name + "." + colliders[i].name;
}
}
//-------------------------------------------------
void OnEnable()
{
for ( int i = 0; i < colliders.Length; ++i )
{
colliders[i].transform.SetParent( transform );
colliders[i].transform.localPosition = colliderLocalPositions[i];
colliders[i].transform.localRotation = colliderLocalRotations[i];
colliders[i].transform.SetParent( null );
FixedJoint fixedJoint = colliders[i].AddComponent<FixedJoint>();
fixedJoint.connectedBody = rb;
fixedJoint.breakForce = Mathf.Infinity;
fixedJoint.breakTorque = Mathf.Infinity;
fixedJoint.enableCollision = false;
fixedJoint.enablePreprocessing = true;
colliders[i].SetActive( true );
}
}
//-------------------------------------------------
void OnDisable()
{
for ( int i = 0; i < colliders.Length; ++i )
{
if ( colliders[i] != null )
{
Destroy( colliders[i].GetComponent<FixedJoint>() );
colliders[i].SetActive( false );
}
}
}
//-------------------------------------------------
void OnDestroy()
{
for ( int i = 0; i < colliders.Length; ++i )
{
Destroy( colliders[i] );
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<!doctype html>
<html>
<head>
<title>Filter attribute</title>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<script>
window.Polymer = window.Polymer || {};
window.Polymer.dom = 'shadow';
</script>
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../../paper-card/paper-card.html">
<link rel="import" href="../../paper-datatable-card.html">
<link rel="import" href="../../paper-datatable.html">
<link rel="import" href="../../docs/documentation-menu.html">
<style is="custom-style">
:root{
}
body{
overflow:hidden;
}
paper-card{
display:block;
}
</style>
</head>
<body>
<template is="dom-bind" id="app">
<demo-menu>
<style is="custom-style">
paper-card {
--paper-card-header-text: {
font-family: 'Roboto', 'Noto', sans-serif;
font-weight: normal;
font-size: 20px;
}
}
</style>
<paper-card heading="Just a normal data table">
<paper-datatable id="datatable" data="{{data}}" selectable multi-selection filter="{{myFilter}}">
<paper-datatable-column header="Dessert (100g serving)" property="title" type="String" style="width:99%;" sortable></paper-datatable-column>
<paper-datatable-column header="Calories" property="calories" type="Number" align="right" sortable tooltip="The total amount of food energy in the given serving size." sorted></paper-datatable-column>
<paper-datatable-column header="Fat (g)" property="fat" type="Number" align="right" format-value="[[toFixedOne]]" sortable tooltip="The total amount of fat in the given serving size."></paper-datatable-column>
<paper-datatable-column header="Carbs (g)" property="carbs" type="Number" align="right" editable sortable tooltip="The total amount of carbs in the given serving size."></paper-datatable-column>
<paper-datatable-column header="Protein (g)" property="protein" type="Number" align="right" format-value="[[toFixedOne]]" sortable tooltip="The total amount of protein in the given serving size."></paper-datatable-column>
<paper-datatable-column header="Sodium (mg)" property="sodium" type="Number" align="right" sortable tooltip="The amount of sodium as a percentage of the recommended daily amount."></paper-datatable-column>
<paper-datatable-column header="Calcium (%)" property="calcium" type="Number" align="right" format-value="[[toPercentage]]" sortable tooltip="The amount of calcium as a percentage of the recommended daily amount."></paper-datatable-column>
<paper-datatable-column header="Iron (%)" property="iron" type="Number" align="right" format-value="[[toPercentage]]" sortable tooltip="The amount of iron as a percentage of the recommended daily amount."></paper-datatable-column>
<div no-results>No results for the current filter...</div>
</paper-datatable>
</paper-card>
<paper-card heading="Filter" style="margin-top:20px;">
<div style="padding:0px 20px 20px 20px;">
Only show items with more than <paper-input value="{{filterLimit}}" style="display:inline-block;" label="calories" on-input="applyFilter"></paper-input>
</div>
</paper-card>
</template>
<script>
var app = document.querySelector('#app');
app.data = [
{id: 0, title: 'Frozen yogurt', calories: 159, fat: 6, carbs: 24, protein: 4, sodium: 87, calcium:.14, iron: .01},
{id: 1, title: 'Ice cream sandwich', calories: 237, fat: 9, carbs: 37, protein: 4.3, sodium: 129, calcium:.08, iron: .01},
{id: 2, title: 'Eclair', calories: 262, fat: 16, carbs: 24, protein: 6, sodium: 337, calcium:.06, iron: .07},
{id: 3, title: 'Cupcake', calories: 305, fat: 3.7, carbs: 67, protein: 4.3, sodium: 413, calcium:.03, iron: .08},
{id: 4, title: 'Gingerbread', calories: 356, fat: 16, carbs: 49, protein: 3.9, sodium: 327, calcium:.07, iron: .16},
{id: 5, title: 'Jelly bean', calories: 373, fat: 0, carbs: 94, protein: 0, sodium: 50, calcium:0, iron: 0}
];
app.filterLimit = 0;
app.toFixedOne = function(value){
return value.toFixed(1);
};
app.toPercentage = function(value){
return Math.round(value * 10000)/100 + '%';
};
app.myFilter = function(item, key, items){
return item.calories > (app.filterLimit || 0);
};
app.applyFilter = function(){
app.$.datatable.reload();
};
</script>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="CombatExtended.PatchOperationFindMod">
<modName>[RH] Faction: Elite Crew</modName>
</li>
<!-- ========== Elite Crew faction pawns should spawn backpacks, allowing them to carry their (huge) inventory ========== -->
<li Class="PatchOperationAdd">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_Scout" or
defName="RH_EliteCrew_Grunt" or
defName="RH_EliteCrew_CQB" or
defName="RH_EliteCrew_CQB_TierII" or
defName="RH_EliteCrew_Assault" or
defName="RH_EliteCrew_Assault_TierII" or
defName="RH_EliteCrew_Marksman" or
defName="RH_EliteCrew_Marksman_TierII" or
defName="RH_EliteCrew_Gunner" or
defName="RH_EliteCrew_Grenadier" or
defName="RH_EliteCrew_Boss" or
defName="RH_EliteCrew_Elite" or
defName="RH_EliteCrew_Trader" or
defName="RH_EliteCrew_Sniper" or
defName="RH_EliteCrew_Bomber"
]/apparelRequired</xpath>
<value>
<li>Apparel_Backpack</li>
</value>
</li>
<!-- ========== Tweak grenade types available to grenadiers ========== -->
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Grenadier"]/weaponTags</xpath>
<value>
<weaponTags>
<li>RN_RPG7</li>
<li>RN_RGDGrenade</li>
<li>GrenadeDestructive</li>
<!-- Use vanilla CE's own generic molotov cocktails -->
</weaponTags>
</value>
</li>
<!-- ========== Elite Crew faction pawns should spawn with ammo appropriate to their primary weapon, as well as a sidearm (and its own ammo) and any small melee weapons ========== -->
<!-- First remove redundant Pistols and Knives from pawns' existing primary weaponTags -->
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_CQB"
]/weaponTags/li[.="RN_TEC9"]</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_CQB"
]/weaponTags/li[.="RN_FiveSeven"]</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_Scout" or
defName="RH_EliteCrew_CQB" or
defName="RH_EliteCrew_CQB_TierII"
]/weaponTags/li[.="RN_DesertEagle"]</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_Grunt" or
defName="RH_EliteCrew_CQB"
]/weaponTags/li[.="RN_SkinnerKnife"]</xpath>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Grunt"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<weaponTags>
<li>RN_SkinnerKnife</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[
defName="RH_EliteCrew_Scout" or
defName="RH_EliteCrew_CQB" or
defName="RH_EliteCrew_CQB_TierII" or
defName="RH_EliteCrew_Assault" or
defName="RH_EliteCrew_Assault_TierII" or
defName="RH_EliteCrew_Marksman" or
defName="RH_EliteCrew_Marksman_TierII" or
defName="RH_EliteCrew_Boss" or
defName="RH_EliteCrew_Elite" or
defName="RH_EliteCrew_Trader" or
defName="RH_EliteCrew_Sniper"
]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_TEC9</li>
<li>RN_FiveSeven</li>
<li>RN_DesertEagle</li>
</weaponTags>
</li>
<li>
<generateChance>1</generateChance>
<weaponTags>
<li>RN_SkinnerKnife</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Gunner"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>3</min>
<max>4</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_TEC9</li>
<li>RN_FiveSeven</li>
<li>RN_DesertEagle</li>
</weaponTags>
</li>
<li>
<generateChance>1</generateChance>
<weaponTags>
<li>RN_SkinnerKnife</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Grenadier"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>4</min>
<max>5</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_TEC9</li>
<li>RN_FiveSeven</li>
<li>RN_DesertEagle</li>
</weaponTags>
</li>
<li>
<generateChance>1</generateChance>
<weaponTags>
<li>RN_SkinnerKnife</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Bomber"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>2</min>
<max>2</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_TEC9</li>
<li>RN_FiveSeven</li>
<li>RN_DesertEagle</li>
</weaponTags>
</li>
<li>
<generateChance>1</generateChance>
<weaponTags>
<li>RN_SkinnerKnife</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<!-- ========== Tweak minimum weaponMoney for selected pawn types, so that they actually spawn with weapons ========== -->
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Grunt"]/weaponMoney/min</xpath>
<value>
<min>180</min>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Gunner"]/weaponMoney/min</xpath>
<value>
<min>1000</min>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RH_EliteCrew_Gunner"]/weaponMoney/max</xpath>
<value>
<max>2500</max>
</value>
</li>
</operations>
</Operation>
</Patch>
|
{
"pile_set_name": "Github"
}
|
package awsutil
import (
"reflect"
"regexp"
"strconv"
"strings"
"github.com/jmespath/go-jmespath"
)
var indexRe = regexp.MustCompile(`(.+)\[(-?\d+)?\]$`)
// rValuesAtPath returns a slice of values found in value v. The values
// in v are explored recursively so all nested values are collected.
func rValuesAtPath(v interface{}, path string, createPath, caseSensitive, nilTerm bool) []reflect.Value {
pathparts := strings.Split(path, "||")
if len(pathparts) > 1 {
for _, pathpart := range pathparts {
vals := rValuesAtPath(v, pathpart, createPath, caseSensitive, nilTerm)
if len(vals) > 0 {
return vals
}
}
return nil
}
values := []reflect.Value{reflect.Indirect(reflect.ValueOf(v))}
components := strings.Split(path, ".")
for len(values) > 0 && len(components) > 0 {
var index *int64
var indexStar bool
c := strings.TrimSpace(components[0])
if c == "" { // no actual component, illegal syntax
return nil
} else if caseSensitive && c != "*" && strings.ToLower(c[0:1]) == c[0:1] {
// TODO normalize case for user
return nil // don't support unexported fields
}
// parse this component
if m := indexRe.FindStringSubmatch(c); m != nil {
c = m[1]
if m[2] == "" {
index = nil
indexStar = true
} else {
i, _ := strconv.ParseInt(m[2], 10, 32)
index = &i
indexStar = false
}
}
nextvals := []reflect.Value{}
for _, value := range values {
// pull component name out of struct member
if value.Kind() != reflect.Struct {
continue
}
if c == "*" { // pull all members
for i := 0; i < value.NumField(); i++ {
if f := reflect.Indirect(value.Field(i)); f.IsValid() {
nextvals = append(nextvals, f)
}
}
continue
}
value = value.FieldByNameFunc(func(name string) bool {
if c == name {
return true
} else if !caseSensitive && strings.EqualFold(name, c) {
return true
}
return false
})
if nilTerm && value.Kind() == reflect.Ptr && len(components[1:]) == 0 {
if !value.IsNil() {
value.Set(reflect.Zero(value.Type()))
}
return []reflect.Value{value}
}
if createPath && value.Kind() == reflect.Ptr && value.IsNil() {
// TODO if the value is the terminus it should not be created
// if the value to be set to its position is nil.
value.Set(reflect.New(value.Type().Elem()))
value = value.Elem()
} else {
value = reflect.Indirect(value)
}
if value.Kind() == reflect.Slice || value.Kind() == reflect.Map {
if !createPath && value.IsNil() {
value = reflect.ValueOf(nil)
}
}
if value.IsValid() {
nextvals = append(nextvals, value)
}
}
values = nextvals
if indexStar || index != nil {
nextvals = []reflect.Value{}
for _, valItem := range values {
value := reflect.Indirect(valItem)
if value.Kind() != reflect.Slice {
continue
}
if indexStar { // grab all indices
for i := 0; i < value.Len(); i++ {
idx := reflect.Indirect(value.Index(i))
if idx.IsValid() {
nextvals = append(nextvals, idx)
}
}
continue
}
// pull out index
i := int(*index)
if i >= value.Len() { // check out of bounds
if createPath {
// TODO resize slice
} else {
continue
}
} else if i < 0 { // support negative indexing
i = value.Len() + i
}
value = reflect.Indirect(value.Index(i))
if value.Kind() == reflect.Slice || value.Kind() == reflect.Map {
if !createPath && value.IsNil() {
value = reflect.ValueOf(nil)
}
}
if value.IsValid() {
nextvals = append(nextvals, value)
}
}
values = nextvals
}
components = components[1:]
}
return values
}
// ValuesAtPath returns a list of values at the case insensitive lexical
// path inside of a structure.
func ValuesAtPath(i interface{}, path string) ([]interface{}, error) {
result, err := jmespath.Search(path, i)
if err != nil {
return nil, err
}
v := reflect.ValueOf(result)
if !v.IsValid() || (v.Kind() == reflect.Ptr && v.IsNil()) {
return nil, nil
}
if s, ok := result.([]interface{}); ok {
return s, err
}
if v.Kind() == reflect.Map && v.Len() == 0 {
return nil, nil
}
if v.Kind() == reflect.Slice {
out := make([]interface{}, v.Len())
for i := 0; i < v.Len(); i++ {
out[i] = v.Index(i).Interface()
}
return out, nil
}
return []interface{}{result}, nil
}
// SetValueAtPath sets a value at the case insensitive lexical path inside
// of a structure.
func SetValueAtPath(i interface{}, path string, v interface{}) {
rvals := rValuesAtPath(i, path, true, false, v == nil)
for _, rval := range rvals {
if rval.Kind() == reflect.Ptr && rval.IsNil() {
continue
}
setValue(rval, v)
}
}
func setValue(dstVal reflect.Value, src interface{}) {
if dstVal.Kind() == reflect.Ptr {
dstVal = reflect.Indirect(dstVal)
}
srcVal := reflect.ValueOf(src)
if !srcVal.IsValid() { // src is literal nil
if dstVal.CanAddr() {
// Convert to pointer so that pointer's value can be nil'ed
// dstVal = dstVal.Addr()
}
dstVal.Set(reflect.Zero(dstVal.Type()))
} else if srcVal.Kind() == reflect.Ptr {
if srcVal.IsNil() {
srcVal = reflect.Zero(dstVal.Type())
} else {
srcVal = reflect.ValueOf(src).Elem()
}
dstVal.Set(srcVal)
} else {
dstVal.Set(srcVal)
}
}
|
{
"pile_set_name": "Github"
}
|
<div class="profile bitbucket modal fade" id="bitbucket-profile">
{{#with user }}
<div class="profile-info">
<button class="close" data-dismiss="modal">×</button>
<a href="http://bitbucket.org/{{ username }}" class="profile-avatar">
<img src="{{ avatar }}" alt="{{name}}" />
</a>
<div class="profile-name">
<h2><a href="http://bitbucket.org/{{ username }}">{{ first_name }} {{ last_name }}</a></h2>
<h3><a href="http://bitbucket.org/{{ username }}">{{ username }}</a></h3>
</div>
<p class="profile-location-url">
{{#if location }}
<span>{{ location }}</span>
<span class="divider">·</span>
{{/if}}
{{#if blog }}
<span><a href="{{ blog }}">{{ blog }}</a></span>
{{/if}}
</p>
</div>
<ul class="profile-stats">
<li><a href="http://bitbucket.org/{{ username }}"><strong>{{ public_repos }}</strong> repos</a></li>
<li><a href="http://bitbucket.org/{{ username }}"><strong>{{ followers }}</strong> followers</a></li>
</ul>
<div class="profile-info-footer">
<a href="http://bitbucket.org/{{ username }}" class="btn">Follow on Bitbucket</a>
</div>
{{/with}}
<ul class="profile-repos">
{{#each repositories}}
<li>
<a href="http://bitbucket.org/{{ owner }}/{{ slug }}" class="profile-repo-name">{{ name }}</a>
{{#if logo }}
<a href="http://bitbucket.org/{{ owner }}/{{ slug }}" class="profile-repo-logo"><img src="{{ logo }}" alt="{{ name }}" /></a>
{{/if}}
{{#if fork_of}}
<p class="profile-repo-fork">
<a href="http://bitbucket.org/{{ fork_of.owner }}/{{ fork_of.slug }}">Fork of {{ fork_of.owner}} / {{ fork_of.name }}</a>
<a href="http://bitbucket.org/{{ fork_of.owner }}/{{ fork_of.slug }}/zealots" class="profile-watchers">{{ fork_of.followers_count }}</a>
</p>
{{/if}}
<p class="profile-repo-text">
{{ description }}
</p>
<ul class="profile-repo-stats">
<li>{{ language }}</li>
<li><a href="http://bitbucket.org/{{ owner }}/{{ slug }}/zealots" class="profile-watchers">{{ followers_count }}</a></li>
{{#if forks_count }}
<li><a href="http://bitbucket.org/{{ owner }}/{{ slug }}/descendants" class="profile-forks">{{ forks_count }}</a></li>
{{/if}}
</ul>
</li>
{{/each}}
</ul>
</div>
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html id="html">
<head>
<title>NodeList.delegate() test</title>
<style type="text/css">
@import "../../resources/dojo.css";
</style>
<script type="text/javascript"
src="../../../dojo/dojo.js" data-dojo-config="isDebug: true, popup: true"></script>
<script type="text/javascript">
dojo.require("dojox.NodeList.delegate");
dojo.addOnLoad(function(){
// Monitor onclick events on div.blue nodes, or that bubble up to div.blue nodes
dojo.query("div.delegator").delegate("div.blue", "onclick", function(evt){
// "this" points to the div.blue node
dojo.style(this, "backgroundColor", "#aaf");
});
dojo.query("div.delegator").delegate("input", "onfocus", function(evt){
// "this" points to the input node
console.log("bubbled input event");
dojo.style(this, "backgroundColor", "black");
});
// Generate div.blue nodes inside each wrapper div.
// Runs after the delegate() call to demonstrate that delegate() catches events on "future nodes"
dojo.query("div.wrapper").forEach(function(div){
for(var i=0; i<4; i++){
dojo.place(
"<div class=" + (i%2?"blue":"red") + ">" +
(i%2 && dojo.hasClass(div, "delegator") ? "click me to turn me blue" : "click will have no effect" )+
"<span>" + (i%2 && dojo.hasClass(div, "delegator") ? "or click me to turn parent blue" : "nor will a click here") + "</span>"+
"focus input to turn it black (not working yet): <input />" +
"</div>",
div
);
}
});
});
</script>
<style>
div, a { padding: 5px; margin: 5px; display: block; }
div.blue { border: blue solid 2px; }
div.red { border: red solid 2px; }
div.wrapper { border: solid gray 4px; background: #eee; }
div.delegator { background: #ccc; }
span { display: block; border: yellow solid 2px; }
</style>
</head>
<body id="body" class="classy">
<h1>Test of NodeList.delegate() method</h1>
<div class=blue style="border: 2px dotted black;">
<h3>
This DIV has class=blue but it shouldn't matter because the delegate() connections are on
sub node inside of me.
</h3>
<div class="wrapper delegator">
<h3>This div has a delegate handler on it so clicking the blue DIV's below will have an effect.</h3>
</div>
<div class="wrapper delegator">
<h3>This div has a delegate handler on it so clicking the blue DIV's below will have an effect.</h3>
</div>
<div class="wrapper">
<h3>This div doesn't have a delegate handler on it so clicking the blue DIV's below will have no effect.</h3>
</div>
</div>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
<?php
class WCV_Submit_Comment {
/**
* Submit a comment for an order
*
* @param object $orders
*
* @return unknown
*/
public static function new_comment( $orders ) {
global $woocommerce;
$user = wp_get_current_user();
$user = $user->ID;
// Security
if ( ! wp_verify_nonce( $_POST['_wpnonce'], 'add-comment' ) ) {
return false;
}
// Check if this product belongs to the vendor submitting the comment
$product_id = (int) $_POST['product_id'];
$author = WCV_Vendors::get_vendor_from_product( $product_id );
if ( $author != $user ) {
return false;
}
// Find the order belonging to this comment
foreach ( $orders as $order ) {
if ( $order->order_id == $_POST['order_id'] ) {
$found_order = $order;
break;
}
}
// No order was found
if ( empty( $found_order ) ) {
return false;
}
// Don't submit empty comments
if ( empty( $_POST['comment_text'] ) ) {
wc_add_notice( __( 'You\'ve left the comment field empty!', 'wc-vendors' ), 'error' );
return false;
}
// Only submit if the order has the product belonging to this vendor
$found_order = wc_get_order( $found_order->order_id );
$valid_order = false;
foreach ( $found_order->get_items() as $item ) {
if ( $item['product_id'] == $product_id ) {
$valid_order = true;
break;
}
}
if ( $valid_order ) {
$comment = esc_textarea( $_POST['comment_text'] );
add_filter( 'woocommerce_new_order_note_data', array( __CLASS__, 'filter_comment' ), 10, 2 );
$found_order->add_order_note( $comment, 1 );
remove_filter( 'woocommerce_new_order_note_data', array( __CLASS__, 'filter_comment' ), 10, 2 );
wc_add_notice( __( 'Success. The customer has been notified of your comment.', 'wc-vendors' ), 'success' );
}
}
public static function filter_comment( $commentdata, $order ) {
$user_id = get_current_user_id();
$commentdata['user_id'] = $user_id;
$commentdata['comment_author'] = WCV_Vendors::get_vendor_shop_name( $user_id );
$commentdata['comment_author_url'] = WCV_Vendors::get_vendor_shop_page( $user_id );
$commentdata['comment_author_email'] = wp_get_current_user()->user_email;
return $commentdata;
}
}
|
{
"pile_set_name": "Github"
}
|
<div class="modal fade" id="device_borrow_confirm">
<div class="modal-dialog">
<div class="modal-content modal-dialog-alert-middle">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">
{% if device.is_ordered %}
出借
{% else %}
归还
{% endif %}
确认</h4>
</div>
<div class="modal-body">
<div class="alert alert-danger" role="alert">
<i class="fa fa-exclamation-triangle fa-fw"></i>{{ device.borrower_name }}
{% if device.is_ordered %}
出借
{% else %}
归还
{% endif %}
设备
{{ device.device.DeviceName }}
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
取消
</button>
<button type="button" class="btn btn-danger" id="device_borrow_confirm_button">
{% if device.is_ordered %}
出借
{% else %}
归还
{% endif %}
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* IvooxRssBridge
* Returns the latest search result
* TODO: support podcast episodes list
*/
class IvooxBridge extends BridgeAbstract {
const NAME = 'Ivoox Bridge';
const URI = 'https://www.ivoox.com/';
const CACHE_TIMEOUT = 10800; // 3h
const DESCRIPTION = 'Returns the 10 newest episodes by keyword search';
const MAINTAINER = 'xurxof'; // based on YoutubeBridge by mitsukarenai
const PARAMETERS = array(
'Search result' => array(
's' => array(
'name' => 'keyword',
'exampleValue' => 'test'
)
)
);
private function ivBridgeAddItem(
$episode_link,
$podcast_name,
$episode_title,
$author_name,
$episode_description,
$publication_date,
$episode_duration) {
$item = array();
$item['title'] = htmlspecialchars_decode($podcast_name . ': ' . $episode_title);
$item['author'] = $author_name;
$item['timestamp'] = $publication_date;
$item['uri'] = $episode_link;
$item['content'] = '<a href="' . $episode_link . '">' . $podcast_name . ': ' . $episode_title
. '</a><br />Duration: ' . $episode_duration
. '<br />Description:<br />' . $episode_description;
$this->items[] = $item;
}
private function ivBridgeParseHtmlListing($html) {
$limit = 4;
$count = 0;
foreach($html->find('div.flip-container') as $flipper) {
$linkcount = 0;
if(!empty($flipper->find( 'div.modulo-type-banner' ))) {
// ad
continue;
}
if($count < $limit) {
foreach($flipper->find('div.header-modulo') as $element) {
foreach($element->find('a') as $link) {
if ($linkcount == 0) {
$episode_link = $link->href;
$episode_title = $link->title;
} elseif ($linkcount == 1) {
$author_link = $link->href;
$author_name = $link->title;
} elseif ($linkcount == 2) {
$podcast_link = $link->href;
$podcast_name = $link->title;
}
$linkcount++;
}
}
$episode_description = $flipper->find('button.btn-link', 0)->getAttribute('data-content');
$episode_duration = $flipper->find('p.time', 0)->innertext;
$publication_date = $flipper->find('li.date', 0)->getAttribute('title');
// alternative date_parse_from_format
// or DateTime::createFromFormat('G:i - d \d\e M \d\e Y', $publication);
// TODO: month name translations, due function doesn't support locale
$a = strptime($publication_date, '%H:%M - %d de %b. de %Y'); // obsolete function, uses c libraries
$publication_date = mktime(0, 0, 0, $a['tm_mon'] + 1, $a['tm_mday'], $a['tm_year'] + 1900);
$this->ivBridgeAddItem(
$episode_link,
$podcast_name,
$episode_title,
$author_name,
$episode_description,
$publication_date,
$episode_duration
);
$count++;
}
}
}
public function collectData() {
// store locale, change to spanish
$originalLocales = explode(';', setlocale(LC_ALL, 0));
setlocale(LC_ALL, 'es_ES.utf8');
$xml = '';
$html = '';
$url_feed = '';
if($this->getInput('s')) { /* Search modes */
$this->request = str_replace(' ', '-', $this->getInput('s'));
$url_feed = self::URI . urlencode($this->request) . '_sb_f_1.html?o=uploaddate';
} else {
returnClientError('Not valid mode at IvooxBridge');
}
$dom = getSimpleHTMLDOM($url_feed)
or returnServerError('Could not request ' . $url_feed);
$this->ivBridgeParseHtmlListing($dom);
// restore locale
foreach($originalLocales as $localeSetting) {
if(strpos($localeSetting, '=') !== false) {
list($category, $locale) = explode('=', $localeSetting);
} else {
$category = LC_ALL;
$locale = $localeSetting;
}
setlocale($category, $locale);
}
}
}
|
{
"pile_set_name": "Github"
}
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
using System.Collections.Generic;
using Aliyun.Acs.Core;
namespace Aliyun.Acs.Green.Model.V20170823
{
public class DescribeBizTypeSettingResponse : AcsResponse
{
private string requestId;
private DescribeBizTypeSetting_Terrorism terrorism;
private DescribeBizTypeSetting_Porn porn;
private DescribeBizTypeSetting_Antispam antispam;
private DescribeBizTypeSetting_Ad ad;
public string RequestId
{
get
{
return requestId;
}
set
{
requestId = value;
}
}
public DescribeBizTypeSetting_Terrorism Terrorism
{
get
{
return terrorism;
}
set
{
terrorism = value;
}
}
public DescribeBizTypeSetting_Porn Porn
{
get
{
return porn;
}
set
{
porn = value;
}
}
public DescribeBizTypeSetting_Antispam Antispam
{
get
{
return antispam;
}
set
{
antispam = value;
}
}
public DescribeBizTypeSetting_Ad Ad
{
get
{
return ad;
}
set
{
ad = value;
}
}
public class DescribeBizTypeSetting_Terrorism
{
private List<string> categories;
public List<string> Categories
{
get
{
return categories;
}
set
{
categories = value;
}
}
}
public class DescribeBizTypeSetting_Porn
{
private List<string> categories1;
public List<string> Categories1
{
get
{
return categories1;
}
set
{
categories1 = value;
}
}
}
public class DescribeBizTypeSetting_Antispam
{
private List<string> categories2;
public List<string> Categories2
{
get
{
return categories2;
}
set
{
categories2 = value;
}
}
}
public class DescribeBizTypeSetting_Ad
{
private List<string> categories3;
public List<string> Categories3
{
get
{
return categories3;
}
set
{
categories3 = value;
}
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Data attributes - robertnyman.com</title>
<link rel="stylesheet" href="../css/base.css" type="text/css" media="screen">
<style>
.error {
color: #f00;
}
</style>
<!--[if lte IE 8]>
<script src="../js/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="container">
<header role="banner">
<h1>Data attributes <a href="http://robertnyman.com/html5">- To: Information and samples for HTML5 and related APIs</a></h1>
<p>Using data attributes on HTML elements, you can assign custom values with code that is valid HTML and then access them through JavaScript.</p>
</header>
<div role="main">
<section id="main-content">
<h2>Using custom attributes</h2>
<p>
A text with <strong id="custom-values-elm" data-type="element" data-value="I am da law!">an element with custom data attributes</strong>.
</p>
<p>
<input id="read-data-attributes" type="button" value="Read out values">
</p>
<h3>Data attribute values:</h3>
<p id="data-attribute-values">(not checked yet)</p>
<h2>Using custom attributes with the dataset property</h2>
<p>
<input id="read-data-attributes-dataset" type="button" value="Read out values via dataset">
</p>
<h3>Data attribute values via dataset:</h3>
<p id="data-attribute-value-dataset">(not checked yet)</p>
<script>
(function () {
document.getElementById("read-data-attributes").onclick = function () {
var customValuesElm = document.getElementById("custom-values-elm");
document.getElementById("data-attribute-values").innerHTML = "<strong>Type:</strong> " + customValuesElm.getAttribute("data-type") + ", <strong>value:</strong> " + customValuesElm.getAttribute("data-value");
};
document.getElementById("read-data-attributes-dataset").onclick = function () {
var customValuesElm = document.getElementById("custom-values-elm"),
value;
try {
value = customValuesElm.dataset.type;
}
catch (e) {
value = '<span class="error">Error - access didn\'t work</span>';
}
document.getElementById("data-attribute-value-dataset").innerHTML = "<strong>Type:</strong> " + value;
};
})();
</script>
<h2>Code used in this page</h2>
<pre class="brush: js">
(function () {
document.getElementById("read-data-attributes").onclick = function () {
var customValuesElm = document.getElementById("custom-values-elm");
var value = customValuesElm.dataset.type;
document.getElementById("data-attribute-value-dataset").innerHTML = "<strong>Type:</strong> " + + ", <strong>value:</strong> " + customValuesElm.getAttribute("data-value");
};
document.getElementById("read-data-attributes-dataset").onclick = function () {
var customValuesElm = document.getElementById("custom-values-elm"),
value;
try {
value = customValuesElm.dataset.type;
}
catch (e) {
value = '<span class="error">Error - access didn\'t work</span>';
}
document.getElementById("data-attribute-value-dataset").innerHTML = "<strong>Type:</strong> " + value;
};
})();
</pre>
</section>
</div>
<footer id="page-footer" role="contentinfo">
Created by <a href="http://robertnyman.com/">Robert Nyman</a>
</footer>
</div>
<!-- Syntax highlighting -->
<script type="text/javascript" src="../syntax-highlighter/scripts/shHTMLJavaScript.js"></script>
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-56164-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();
var sc_project=593937,
sc_partition=4,
sc_security="175a1fec";
</script>
<script src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c5.statcounter.com/counter.php?sc_project=593937&java=0&security=175a1fec" alt="free geoip"></a></div></noscript>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
处理分页
=========
场景
----
对分页来说,我们最感兴趣的是下面几个信息
* 总共有多少页
* 当前是第几页
* 是否可以上一页和下一页
代码
----
下面的代码演示了如何获取分页的总数以及当前是第几页
### pagination.html
```html
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Pagination</title>
<script type="text/javascript" async="" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
$('.pagination').find('li').click(function(){
$(this).parent().find('li').removeClass('active');
$(this).addClass('active');
});
});
</script>
</head>
<body>
<h3>Pagination</h3>
<div class="row-fluid">
<div class="span6">
<div class="pagination pagination-large">
<ul>
<li><a href="#">Prev</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">Next</a></li>
</ul>
</div>
</div>
</div>
</body>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
</html>
```
### pagination.rb
```ruby
#encoding: utf-8
require 'selenium-webdriver'
dr = Selenium::WebDriver.for :chrome
file_path = 'file:///' + File.expand_path(File.join('.', 'pagination.html'))
dr.get file_path
# 获得所有分页的数量
# -2是因为要去掉上一个和下一个
total_pages = dr.find_element(:class, 'pagination').find_elements(:tag_name, 'li').size - 2
puts "total page is #{total_pages}"
# 获取当前页面的url以及当前页面是第几页
current_page = dr.find_element(:class, 'pagination').find_element(:class, 'active')
puts "current page is #{current_page.text}"
dr.quit()
```
|
{
"pile_set_name": "Github"
}
|
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
describe('Text Inline Popup plugin', function () {
describe('Image', function () {
describe('Click on the image', function () {
it('Should Open inline popup', function () {
const editor = getJodit();
editor.value = '<img alt="" src="../artio.jpg"/>';
editor.s.focus();
simulateEvent('click', editor.editor.querySelector('img'));
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).equals(
true
);
});
describe('and click in opened popup on pencil button', function () {
it('Should Open edit image dialog', function () {
const editor = getJodit();
editor.value = '<img alt="" src="../artio.jpg"/>';
editor.s.focus();
simulateEvent(
'click',
0,
editor.editor.querySelector('img')
);
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is
.true;
clickButton('pencil', popup);
const dialog = editor.ownerDocument.querySelector(
'.jodit.jodit-dialog__box[data-editor_id=' +
editor.id +
']'
);
expect(dialog).is.not.null;
});
});
});
});
describe('Link', function () {
describe('Click on the link', function () {
it('Should Open inline popup', function () {
const editor = getJodit();
editor.value = '<a href="../artio.jpg"/>test</a>';
simulateEvent('click', editor.editor.querySelector('a'));
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).equals(
true
);
});
describe('and click in opened popup on pencil button', function () {
it('Should Open edit link dialog', function () {
const editor = getJodit();
editor.value = '<a href="../artio.jpg"/>test</a>';
simulateEvent('click', editor.editor.querySelector('a'));
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is
.true;
clickButton('link', popup);
const linkEditor = getOpenedPopup(editor);
expect(linkEditor).is.not.null;
expect(
linkEditor.querySelector('[data-ref="url_input"]').value
).equals('../artio.jpg');
});
describe('on different links', function () {
it('Should Open edit link dialog with different values', function () {
const editor = getJodit();
editor.value =
'<a href="#test1"/>test</a><br>' +
'<a href="#test2"/>test</a>';
simulateEvent(
'click',
editor.editor.querySelector('a')
);
const popup = getOpenedPopup(editor);
clickButton('link', popup);
const linkEditor = getOpenedPopup(editor);
expect(
linkEditor.querySelector('[data-ref="url_input"]').value
).equals('#test1');
simulateEvent(
['mousedown', 'mouseup', 'click'],
editor.editor.querySelectorAll('a')[1]
);
const popup2 = getOpenedPopup(editor);
clickButton('link', popup2);
const linkEditor2 = getOpenedPopup(editor);
expect(
linkEditor2.querySelector('[data-ref="url_input"]').value
).equals('#test2');
});
});
});
});
});
describe('Table', function () {
describe('Table button', function () {
describe('Select table cell', function () {
it('Should Select table cell', function () {
const editor = getJodit();
editor.value =
'<table>' + '<tr><td>2</td></tr>' + '</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(
['mousedown', 'mouseup', 'click'],
0,
td,
e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
}
);
expect([td]).deep.equals(
editor.getInstance('Table').getAllSelectedCells()
);
});
describe('and press brush button', function () {
it('Should Select table cell and fill it in yellow', function () {
const editor = getJodit();
editor.value =
'<table>' + '<tr><td>3</td></tr>' + '</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(
['mousedown', 'mouseup', 'click'],
0,
td,
e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
}
);
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is
.true;
clickTrigger('brush', popup);
const popupColor = getOpenedPopup(editor);
expect(
popupColor &&
window.getComputedStyle(popupColor).display
).equals('block');
simulateEvent(
'mousedown',
0,
popupColor.querySelector('a')
);
expect(
Jodit.modules.Helpers.normalizeColor(
td.style.backgroundColor
)
).equals('#000000');
});
});
});
});
it('Open inline popup after click inside the cell', function () {
const editor = getJodit();
editor.value = '<table>' + '<tr><td>1</td></tr>' + '</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup).is.not.null;
});
it('Select table cell and change it vertical align', function () {
const editor = getJodit();
editor.value =
'<table>' +
'<tr><td style="vertical-align: middle">3</td></tr>' +
'</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is.true;
clickTrigger('valign', popup);
const popupColor = getOpenedPopup(editor);
expect(popupColor).is.not.null;
clickButton('Bottom', popupColor);
expect(td.style.verticalAlign).equals('bottom');
});
it('Select table cell and split it by vertical', function () {
const editor = getJodit();
editor.value =
'<table style="width: 300px;">' +
'<tr><td>3</td></tr>' +
'</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
clickTrigger('splitv', popup);
const list = getOpenedPopup(editor);
expect(list).is.not.null;
clickButton('tablesplitv', list);
expect(sortAttributes(editor.value)).equals(
'<table style="width:300px"><tbody><tr><td style="width:49.83%">3</td><td style="width:49.83%"><br></td></tr></tbody></table>'
);
});
it('Select table cell and split it by horizontal', function () {
const editor = getJodit();
editor.value =
'<table style="width: 300px;">' +
'<tr><td>5</td></tr>' +
'</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
clickTrigger('splitv', popup);
const list = getOpenedPopup(editor);
expect(list).is.not.null;
clickButton('tablesplitg', list);
expect(sortAttributes(editor.value)).equals(
'<table style="width:300px"><tbody><tr><td>5</td></tr><tr><td><br></td></tr></tbody></table>'
);
});
it('Select two table cells and merge then in one', function () {
const editor = getJodit();
editor.value =
'<table style="width: 300px;">' +
'<tr><td>5</td><td>6</td></tr>' +
'</table>';
const td = editor.editor.querySelector('td'),
next = editor.editor.querySelectorAll('td')[1];
simulateEvent('mousedown', td);
simulateEvent(['mousemove', 'mouseup'], next);
const popup = getOpenedPopup(editor);
clickButton('merge', popup);
expect(sortAttributes(editor.value)).equals(
'<table style="width:300px"><tbody><tr><td>5<br>6</td></tr></tbody></table>'
);
});
it('Select table cell add column before this', function () {
const editor = getJodit();
editor.value = '<table>' + '<tr><td>3</td></tr>' + '</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is.true;
clickTrigger('addcolumn', popup);
const popupColor = getOpenedPopup(editor);
expect(
popupColor && window.getComputedStyle(popupColor).display
).equals('block');
simulateEvent('click', 0, popupColor.querySelector('button'));
expect(sortAttributes(editor.value)).equals(
'<table><tbody><tr><td></td><td>3</td></tr></tbody></table>'
);
});
it('Select table cell and add row above this', function () {
const editor = getJodit();
editor.value = '<table>' + '<tr><td>3</td></tr>' + '</table>';
const td = editor.editor.querySelector('td'),
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is.true;
clickTrigger('addrow', popup);
const popupColor = getOpenedPopup(editor);
expect(
popupColor && window.getComputedStyle(popupColor).display
).equals('block');
simulateEvent('click', 0, popupColor.querySelector('button'));
expect(sortAttributes(editor.value)).equals(
'<table><tbody><tr><td></td></tr><tr><td>3</td></tr></tbody></table>'
);
});
it('Select table cell and remove it row', function () {
const editor = getJodit();
editor.value =
'<table>' +
'<tr><td>1</td></tr>' +
'<tr><td>2</td></tr>' +
'<tr><td>3</td></tr>' +
'</table>';
const td = editor.editor.querySelectorAll('td')[1],
pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is.true;
clickTrigger('delete', popup);
const popupColor = getOpenedPopup(editor);
expect(
popupColor && window.getComputedStyle(popupColor).display
).equals('block');
simulateEvent('click', 0, popupColor.querySelectorAll('button')[1]);
expect(editor.value).equals(
'<table><tbody><tr><td>1</td></tr><tr><td>3</td></tr></tbody></table>'
);
});
it('Select table cell and remove whole table should hide inline popup', function () {
const editor = getJodit();
editor.value =
'<table>' +
'<tr><td>1</td></tr>' +
'<tr><td>2</td></tr>' +
'<tr><td>3</td></tr>' +
'</table>';
const td = editor.editor.querySelectorAll('td')[1];
const pos = Jodit.modules.Helpers.position(td);
simulateEvent(['mousedown', 'mouseup', 'click'], 0, td, e => {
Object.assign(e, {
clientX: pos.left,
clientY: pos.top
});
});
const popup = getOpenedPopup(editor);
expect(popup && popup.parentNode.parentNode !== null).is.true;
clickTrigger('delete', popup);
const popupColor = getOpenedPopup(editor);
expect(
popupColor && window.getComputedStyle(popupColor).display
).equals('block');
simulateEvent('click', 0, popupColor.querySelector('button'));
expect(editor.value).equals('');
expect(popup && popup.parentNode).is.null;
});
});
describe('when a string is passed to the popup config', function () {
it('Should show the content of the string in the popup', function () {
it('Should Open inline popup', function () {
const editor = getJodit({
popup: {
a: '<div class="custom-popup-test">foo</div>'
}
});
editor.value = '<a href="../artio.jpg"/>test</a>';
simulateEvent('click', editor.editor.querySelector('a'));
const popup = getOpenedPopup(editor);
expect(
popup.getElementsByClassName('.custom-popup-test').length
).equals(1);
});
});
});
});
|
{
"pile_set_name": "Github"
}
|
0 0 0
0 1 ^[
0 2 '1
0 3 '2
0 4 '3
0 5 '4
0 6 '5
0 7 '6
0 8 '7
0 9 '8
0 10 '9
0 11 '0
0 12 '-
0 13 '=
0 14 ^H
0 15 ^I
0 16 'q
0 17 'w
0 18 'e
0 19 'r
0 20 't
0 21 'y
0 22 'u
0 23 'i
0 24 'o
0 25 'p
0 26 '[
0 27 ']
0 28 ^J
0 29 0xf862
0 30 'a
0 31 's
0 32 'd
0 33 'f
0 34 'g
0 35 'h
0 36 'j
0 37 'k
0 38 'l
0 39 ';
0 40 ''
0 41 '`
0 42 0xf860
0 43 '\
0 44 'z
0 45 'x
0 46 'c
0 47 'v
0 48 'b
0 49 'n
0 50 'm
0 51 ',
0 52 '.
0 53 '/
0 54 0xf860
0 55 '*
0 56 0xf863
0 57 0x20
0 58 0xf862
0 59 0xf001
0 60 0xf002
0 61 0xf003
0 62 0xf004
0 63 0xf005
0 64 0xf006
0 65 0xf007
0 66 0xf008
0 67 0xf009
0 68 0xf00a
0 69 0xf865
0 70 0xf015
0 71 '7
0 72 '8
0 73 '9
0 74 '-
0 75 '4
0 76 '5
0 77 '6
0 78 '+
0 79 '1
0 80 '2
0 81 '3
0 82 '0
0 83 '.
0 84 0
0 85 0
0 86 0
0 87 0xf00b
0 88 0xf00c
0 89 0
0 90 0
0 91 0
0 92 0
0 93 0
0 94 0
0 95 0
0 96 0
0 97 0
0 98 0
0 99 0
0 100 0
0 101 0
0 102 0
0 103 0
0 104 0
0 105 0
0 106 0
0 107 0
0 108 0
0 109 0
0 110 0
0 111 0
0 112 0
0 113 0
0 114 0
0 115 0
0 116 0
0 117 0
0 118 0
0 119 0
0 120 0
0 121 0xf800
0 122 0
0 123 0xf00e
0 124 0
0 125 0
0 126 0
0 127 0
1 0 0
1 1 ^[
1 2 '!
1 3 '@
1 4 '#
1 5 '$
1 6 '%
1 7 '^
1 8 '&
1 9 '*
1 10 '(
1 11 ')
1 12 '_
1 13 '+
1 14 ^H
1 15 ^I
1 16 'Q
1 17 'W
1 18 'E
1 19 'R
1 20 'T
1 21 'Y
1 22 'U
1 23 'I
1 24 'O
1 25 'P
1 26 '{
1 27 '}
1 28 ^J
1 29 0xf862
1 30 'A
1 31 'S
1 32 'D
1 33 'F
1 34 'G
1 35 'H
1 36 'J
1 37 'K
1 38 'L
1 39 ':
1 40 '"
1 41 '~
1 42 0xf860
1 43 '|
1 44 'Z
1 45 'X
1 46 'C
1 47 'V
1 48 'B
1 49 'N
1 50 'M
1 51 '<
1 52 '>
1 53 '?
1 54 0xf860
1 55 '*
1 56 0xf863
1 57 0x20
1 58 0xf862
1 59 0xf001
1 60 0xf002
1 61 0xf003
1 62 0xf004
1 63 0xf005
1 64 0xf006
1 65 0xf007
1 66 0xf008
1 67 0xf009
1 68 0xf00a
1 69 0xf865
1 70 0xf015
1 71 '7
1 72 '8
1 73 '9
1 74 '-
1 75 '4
1 76 '5
1 77 '6
1 78 '+
1 79 '1
1 80 '2
1 81 '3
1 82 '0
1 83 '.
1 84 0
1 85 0
1 86 0
1 87 0xf00b
1 88 0xf00c
1 89 0
1 90 0
1 91 0
1 92 0
1 93 0
1 94 0
1 95 0
1 96 0
1 97 0
1 98 0
1 99 0
1 100 0
1 101 0
1 102 0
1 103 0
1 104 0
1 105 0
1 106 0
1 107 0
1 108 0
1 109 0
1 110 0
1 111 0
1 112 0
1 113 0
1 114 0
1 115 0
1 116 0
1 117 0
1 118 0
1 119 0
1 120 0
1 121 0xf00e
1 122 0
1 123 0xf00e
1 124 0
1 125 0
1 126 0
1 127 0
2 0 0
2 1 0
2 2 0
2 3 0
2 4 0
2 5 0
2 6 0
2 7 0
2 8 0
2 9 0
2 10 0
2 11 0
2 12 0
2 13 0
2 14 0
2 15 0
2 16 0
2 17 0
2 18 0
2 19 0
2 20 0
2 21 0
2 22 0
2 23 0
2 24 0
2 25 0
2 26 0
2 27 0
2 28 ^J
2 29 0xf862
2 30 0
2 31 0
2 32 0
2 33 0
2 34 0
2 35 0
2 36 0
2 37 0
2 38 0
2 39 0
2 40 0
2 41 0
2 42 0xf860
2 43 0
2 44 0
2 45 0
2 46 0
2 47 0
2 48 0
2 49 0
2 50 0
2 51 0
2 52 0
2 53 '/
2 54 0
2 55 0xf010
2 56 0xf867
2 57 0
2 58 0
2 59 0
2 60 0
2 61 0
2 62 0
2 63 0
2 64 0
2 65 0
2 66 0
2 67 0
2 68 0
2 69 0
2 70 0xf861
2 71 0xf00d
2 72 0xf00e
2 73 0xf00f
2 74 0
2 75 0xf011
2 76 0
2 77 0xf012
2 78 0
2 79 0xf018
2 80 0xf800
2 81 0xf013
2 82 0xf014
2 83 0x7f
2 84 0
2 85 0
2 86 0
2 87 0
2 88 0
2 89 0
2 90 0
2 91 0
2 92 0
2 93 0
2 94 0
2 95 0
2 96 0
2 97 0
2 98 0
2 99 0
2 100 0
2 101 0
2 102 0
2 103 0
2 104 0
2 105 0
2 106 0
2 107 0
2 108 0
2 109 0
2 110 0
2 111 0
2 112 0
2 113 0
2 114 0
2 115 0
2 116 0
2 117 0
2 118 0
2 119 0
2 120 0
2 121 0xf00e
2 122 0
2 123 0
2 124 0
2 125 0
2 126 0
2 127 0
3 0 0
3 1 0
3 2 0
3 3 0
3 4 0
3 5 0
3 6 0
3 7 0
3 8 0
3 9 0
3 10 0
3 11 0
3 12 0
3 13 0
3 14 0
3 15 0
3 16 0
3 17 0
3 18 0
3 19 0
3 20 0
3 21 0
3 22 0
3 23 0
3 24 0
3 25 0
3 26 0
3 27 0
3 28 ^J
3 29 0xf862
3 30 0
3 31 0
3 32 0
3 33 0
3 34 0
3 35 0
3 36 0
3 37 0
3 38 0
3 39 0
3 40 0
3 41 0
3 42 0xf860
3 43 0
3 44 0
3 45 0
3 46 0
3 47 0
3 48 0
3 49 0
3 50 0
3 51 0
3 52 0
3 53 '/
3 54 0
3 55 0xf010
3 56 0xf867
3 57 0
3 58 0
3 59 0
3 60 0
3 61 0
3 62 0
3 63 0
3 64 0
3 65 0
3 66 0
3 67 0
3 68 0
3 69 0
3 70 0xf861
3 71 0xf00d
3 72 0xf00e
3 73 0xf00f
3 74 0
3 75 0xf011
3 76 0
3 77 0xf012
3 78 0
3 79 0xf018
3 80 0xf800
3 81 0xf013
3 82 0xf014
3 83 0x7f
3 84 0
3 85 0
3 86 0
3 87 0
3 88 0
3 89 0
3 90 0
3 91 0
3 92 0
3 93 0
3 94 0
3 95 0
3 96 0
3 97 0
3 98 0
3 99 0
3 100 0
3 101 0
3 102 0
3 103 0
3 104 0
3 105 0
3 106 0
3 107 0
3 108 0
3 109 0
3 110 0
3 111 0
3 112 0
3 113 0
3 114 0
3 115 0
3 116 0
3 117 0
3 118 0
3 119 0
3 120 0
3 121 0xf00e
3 122 0
3 123 0
3 124 0
3 125 0
3 126 0
3 127 0
4 0 0
4 1 ^[
4 2 ^Q
4 3 ^R
4 4 ^S
4 5 ^T
4 6 ^U
4 7 ^V
4 8 ^W
4 9 ^X
4 10 ^Y
4 11 ^P
4 12 ^M
4 13 ^]
4 14 ^H
4 15 ^I
4 16 ^Q
4 17 ^W
4 18 ^E
4 19 ^R
4 20 ^T
4 21 ^Y
4 22 ^U
4 23 ^I
4 24 ^O
4 25 ^P
4 26 ^[
4 27 ^]
4 28 ^J
4 29 0xf862
4 30 ^A
4 31 ^S
4 32 ^D
4 33 ^F
4 34 ^G
4 35 ^H
4 36 ^J
4 37 ^K
4 38 ^L
4 39 ^[
4 40 ^G
4 41 0
4 42 0xf860
4 43 ^\
4 44 ^Z
4 45 ^X
4 46 ^C
4 47 ^V
4 48 ^B
4 49 ^N
4 50 ^M
4 51 ^L
4 52 ^N
4 53 ^O
4 54 0xf860
4 55 ^J
4 56 0xf863
4 57 0
4 58 0xf862
4 59 ^E
4 60 ^F
4 61 ^G
4 62 ^D
4 63 ^E
4 64 ^F
4 65 ^G
4 66 ^L
4 67 ^M
4 68 ^N
4 69 ^E
4 70 ^F
4 71 ^W
4 72 ^X
4 73 ^Y
4 74 ^M
4 75 ^T
4 76 ^U
4 77 ^V
4 78 ^K
4 79 ^Q
4 80 ^R
4 81 ^S
4 82 ^P
4 83 ^N
4 84 0
4 85 0
4 86 0
4 87 ^O
4 88 ^L
4 89 0
4 90 0
4 91 0
4 92 0
4 93 0
4 94 0
4 95 0
4 96 0
4 97 0
4 98 0
4 99 0
4 100 0
4 101 0
4 102 0
4 103 0
4 104 0
4 105 0
4 106 0
4 107 0
4 108 0
4 109 0
4 110 0
4 111 0
4 112 0
4 113 0
4 114 0
4 115 0
4 116 0
4 117 0
4 118 0
4 119 0
4 120 0
4 121 ^G
4 122 0
4 123 ^H
4 124 0
4 125 0
4 126 0
4 127 0
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link http://codeigniter.com
*/
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['email_must_be_array'] = 'การตรวจสอบความถูกต้องของอีเมลจะรับค่าเป็นอาร์เรย์';
$lang['email_invalid_address'] = 'รูปแบบอีเมลไม่ถูกต้อง: %s';
$lang['email_attachment_missing'] = 'ไม่พบเอกสารแนบอีเมลต่อไปนี้:% s';
$lang['email_attachment_unreadable'] = 'ไม่สามารถเปิดเอกสารแนบนี้ได้: %s';
$lang['email_no_from'] = 'ไม่สามารถส่งอีเมลที่ไม่ระบุอีเมลของผู้ส่ง';
$lang['email_no_recipients'] = 'คุณต้องระบุผู้รับต่างๆเหล่านี้ด้วย: To, Cc หรือ Bcc';
$lang['email_send_failure_phpmail'] = 'ไม่สามารถส่งอีเมลด้วยฟังก์ชั่น PHP mail(). เซอร์เวอร์ของคุณอาจไม่ได้รับการตั้งค่าให้ทำการส่งอีเมลด้วยวิธีนี้.';
$lang['email_send_failure_sendmail'] = 'ไม่สามารถส่งอีเมลด้วยฟังก์ชั่น PHP Sendmail. เซอร์เวอร์ของคุณอาจไม่ได้รับการตั้งค่าให้ทำการส่งอีเมลด้วยวิธีนี้.';
$lang['email_send_failure_smtp'] = 'ไม่สามารถส่งอีเมลด้วยโปรโตคอล PHP SMTP. เซอร์เวอร์ของคุณอาจไม่ได้รับการตั้งค่าให้ทำการส่งอีเมลด้วยวิธีนี้.';
$lang['email_sent'] = 'ข้อความของคุณถูกส่งออกเรียบร้อยแล้วด้วยโปรโตคอลนี้: %s';
$lang['email_no_socket'] = 'ไม่สามารถทำการเปิด Socket เพื่อส่งอีเมล. กรุณาตรวจสอบการตั้งค่า';
$lang['email_no_hostname'] = 'คุณไม่ได้ระบุ SMTP hostname.';
$lang['email_smtp_error'] = 'เกิดข้อผิดพลาดของ SMTP ดังต่อไหนี้: %s';
$lang['email_no_smtp_unpw'] = 'ผิดพลาด: คุณต้องกำหนดชื่อผู้ใช้งาน และ รหัสผ่าน ของ SMTP';
$lang['email_failed_smtp_login'] = 'กากรส่งคำสั่ง AUTH LOGIN ล้มเหลว. ข้อผิดพลาด: %s';
$lang['email_smtp_auth_un'] = 'การยืนยันผู้ใช้งานล้มเหลว. ข้อผิดพลาด: %s';
$lang['email_smtp_auth_pw'] = 'การยืนยันรหัสผ่านล้มเหลว. ข้อผิดพลาด: %s';
$lang['email_smtp_data_failure'] = 'ไม่สามารถส่งข้อมูล: %s';
$lang['email_exit_status'] = 'จบการทำงานด้วยรหัสสถานะ: %s';
|
{
"pile_set_name": "Github"
}
|
<?php
$languageNames = array(
'ar' => 'අරාබි',
'bn' => 'බෙංගලි',
'bo' => 'ටිබෙට්',
'de' => 'ජර්මන්',
'de-at' => 'ඔස්ට්රියානු ජර්මන්',
'dv' => 'දිවෙහි',
'el' => 'ග්රීක',
'en' => 'ඉංග්රීසි',
'en-au' => 'ඕස්ට්රේලියානු ඉංග්රීසි',
'en-ca' => 'කැනේඩියානු ඉංග්රීසි',
'en-gb' => 'බ්රිතාන්ය ඉංග්රීසින්ය',
'en-us' => 'ඇමෙරිකානු ඉංග්රීසි',
'es' => 'ස්පාඤ්ඤ',
'fa' => 'පර්සියානු',
'fr' => 'ප්රංශ',
'fr-ca' => 'කැනේඩියානු ප්රංශ',
'gu' => 'ගුජරාටි',
'he' => 'හීබෲ',
'hi' => 'හින්දි',
'hu' => 'හන්ගේරියානු',
'hy' => 'ආර්මේනියානු',
'it' => 'ඉතාලි',
'ja' => 'ජපන්',
'kn' => 'කණ්ණඩ',
'ko' => 'කොරියානු',
'la' => 'ලතින්',
'ms' => 'මැලේ',
'nl' => 'ලන්දේසි',
'pl' => 'පෝලන්ත',
'pt' => 'පෘතුගීසි',
'ru' => 'රුසියානු',
'sa' => 'සංස්කෘත',
'si' => 'සිංහල',
'ta' => 'දෙමළ',
'th' => 'තායි',
'tr' => 'තුර්කි',
'zh' => 'චීන',
);
$currencyNames = array(
'AED' => 'එක්සත් අරාබි එමිරේට්ස් ඩිරාම්',
'AUD' => 'ඔස්ට්රේලියානු ඩොලර්',
'BDT' => 'බංග්ලාදේශ් ටකා',
'BHD' => 'බහරේන් ඩිනාර්',
'CNY' => 'චීන යුආන්',
'EUR' => 'යුරෝ',
'GBP' => 'බ්රිතාන්ය ස්ටර්ලින් පවුම්',
'HKD' => 'හොංකොං ඩොලර්',
'INR' => 'ඉන්දියන් රුපියල්',
'JOD' => 'ජෝර්දාන් ඩිනාර්',
'JPY' => 'ජපන් යෙන්',
'LKR' => 'ලංකා රුපියල්',
'NOK' => 'නොර්වීජියන් ක්රෝන්',
'NPR' => 'නේපාල් රුපියල්',
'NZD' => 'නවසීලන්ත ඩොලර්',
'OMR' => 'ඕමාන් රියාල්',
'RUB' => 'රුසියන් රූබල්',
'SAR' => 'සවුදි රියාල්',
'THB' => 'තායි බාත්',
'USD' => 'ඇමෙරිකන් ඩොලර්',
);
$countryNames = array(
'AC' => 'ඇසෙන්ෂන් දිවයින',
'AD' => 'ඇන්ඩෝරාව',
'AE' => 'එක්සත් අරාබි එමිර් රාජ්යය',
'AF' => 'ඇෆ්ගනිස්ථානය',
'AG' => 'ඇන්ටිගුවා සහ බාබියුඩා',
'AI' => 'ඇන්ගුයිලාව',
'AL' => 'ඇල්බේනියාව',
'AM' => 'ආර්මේනියාව',
'AN' => 'නෙදර්ලන්ත ඇන්ටිලීසිය',
'AO' => 'ඇන්ගෝලාව',
'AQ' => 'ඇන්ටාක්ටිකාව',
'AR' => 'ආර්ජෙන්ටිනාව',
'AS' => 'ඇමරිකානු සැමෝවාව',
'AT' => 'ඔස්ට්රියාව',
'AU' => 'ඕස්ට්රේලියාව',
'AW' => 'අරුබාව',
'AX' => 'ඕලන්ඩ් දූපත්',
'AZ' => 'අසර්බයිජානය',
'BA' => 'බොස්නියාව සහ හර්සගොවීනාව',
'BB' => 'බාර්බඩෝස්',
'BD' => 'බංගලිදේශය',
'BE' => 'බෙල්ජියම',
'BF' => 'බර්කිනා ෆාසෝ',
'BG' => 'බල්ගේරියාව',
'BH' => 'බහරේන්',
'BI' => 'බුරුන්ඩි',
'BJ' => 'බෙනින්',
'BM' => 'බර්මියුඩා',
'BN' => 'බෲනායි',
'BO' => 'බොලීවියාව',
'BR' => 'බ්රසීලය',
'BS' => 'බහමාස්',
'BT' => 'භූතානය',
'BW' => 'බොස්ට්වානා',
'BY' => 'බෙලරුස්',
'BZ' => 'බෙලීස්',
'CA' => 'කැනඩාව',
'CC' => 'කොකෝස් දූපත්',
'CH' => 'ස්විස්ටර්ලන්තය',
'CK' => 'කුක් දූපත්',
'CL' => 'චිලී',
'CM' => 'කැමරූන්',
'CN' => 'චීනය',
'CO' => 'කොළොම්බියාව',
'CU' => 'කියුබාව',
'CY' => 'සයිප්රසය',
'DE' => 'ජර්මනිය',
'DK' => 'ඩෙන්මාර්කය',
'DZ' => 'ඇල්ජීරියාව',
'EC' => 'ඉක්වදෝරය',
'EE' => 'එස්තෝනියාව',
'EG' => 'ඊජිප්තුව',
'EH' => 'බටහිර සහරාව',
'ER' => 'එරිත්රියාව',
'ES' => 'ස්පාඤ්ඤය',
'ET' => 'ඉතියෝපියාව',
'EU' => 'යුරෝපා සංගමය',
'FI' => 'ෆින්ලන්තය',
'FJ' => 'ෆීජී',
'FK' => 'ෆෝක්ලන්ත දූපත්',
'FO' => 'ෆැරෝ දූපත්',
'FR' => 'ප්රංශය',
'GA' => 'ගැබොන්',
'GB' => 'එක්සත් රාජධානිය',
'GD' => 'ග්රැනඩාව',
'GE' => 'ජෝර්ජියාව',
'GF' => 'ප්රංශ ගයනාව',
'GH' => 'ඝානාව',
'GI' => 'ජිබ්රෝල්ටාව',
'GL' => 'ග්රීන්ලන්තය',
'GM' => 'ගැම්බියාව',
'GN' => 'ගිණියාව',
'GQ' => 'සමක ගිනියාව',
'GR' => 'ග්රීසිය',
'HK' => 'හොංකොං චීන විශේෂ පරිපාලන කලාපය',
'HK' => 'හොංකොං',
'HM' => 'හාඩ් සහ මැක්ඩොනල්ඩ් දූපත්',
'HN' => 'හොන්ඩුරාස්',
'HT' => 'හයිටි',
'HU' => 'හන්ගේරියාව',
'ID' => 'ඉන්දුනීසියාව',
'IE' => 'අයර්ලන්තය',
'IL' => 'ඊශ්රායලය',
'IN' => 'ඉන්දියාව',
'IO' => 'බ්රිතාන්ය ඉන්දීය සාගර ප්රාන්තය',
'IQ' => 'ඉරාකය',
'IR' => 'ඉරානය',
'IS' => 'අයිස්ලන්තය',
'IT' => 'ඉතාලිය',
'JM' => 'ජැමෙයිකාව',
'JO' => 'ජෝර්දානය',
'JP' => 'ජපානය',
'KE' => 'කෙන්යාව',
'KP' => 'උතුරු කොරියාව',
'KR' => 'දකුණු කොරියාව',
'KW' => 'කුවේටය',
'LA' => 'ලාඕසය',
'LB' => 'ලෙබනනය',
'LC' => 'ශාන්ත ලුසියා',
'LK' => 'ශ්රී ලංකාව',
'LR' => 'ලයිබීරියාව',
'LT' => 'ලිතුවේනියාව',
'LV' => 'ලැට්වියාව',
'LY' => 'ලිබියාව',
'MA' => 'මොරොක්කෝව',
'MC' => 'මොනාකෝව',
'MD' => 'මොල්ඩෝවාව',
'ME' => 'මොන්ඩිනීග්රෝ',
'ML' => 'මාලි',
'MM' => 'මියන්මාරය',
'MN' => 'මොන්ගෝලියාව',
'MR' => 'මාර්ටිනික්',
'MS' => 'මොන්සෙරාට්',
'MT' => 'මෝල්ටාව',
'MU' => 'මුරුසිය',
'MV' => 'මාල දිවයින',
'MX' => 'මෙක්සිකෝව',
'MY' => 'මැලේසියාව',
'MZ' => 'මොසැම්බික්',
'NA' => 'නැමීබියාව',
'NC' => 'නව කැලිඩෝනියාව',
'NE' => 'නයිජර්',
'NF' => 'නෝෆෝක් දූපත',
'NG' => 'නයිජීරියාව',
'NI' => 'නිකරගුවාව',
'NL' => 'නෙදර්ලන්තය',
'NO' => 'නෝර්වේ',
'NP' => 'නේපාලය',
'NR' => 'නාවුරු',
'NU' => 'නියූ',
'NZ' => 'නවසීලන්තය',
'OM' => 'ඕමානය',
'PA' => 'පැනමා',
'PE' => 'පේරු',
'PF' => 'ප්රංශ පොලිනීසියාව',
'PG' => 'පැපුවා නිව් ගිනියාව',
'PH' => 'පිලිපීනය',
'PK' => 'පාකිස්තානය',
'PL' => 'පෝලන්තය',
'PN' => 'පිට්කෙය්න් දූපත්',
'PS' => 'පලස්තීනය',
'PT' => 'පෘතුගාලය',
'PW' => 'පලාවු',
'PY' => 'පැරගුවේ',
'QA' => 'කටාර්ය',
'RO' => 'රුමේනියාව',
'RS' => 'සර්බියාව',
'RU' => 'රුසියාව',
'SA' => 'සෞදි අරාබිය',
'SD' => 'සූඩානය',
'SE' => 'ස්වීඩනය',
'SG' => 'සිංගප්පූරුව',
'SI' => 'ස්ලෝවේනියාව',
'SK' => 'ස්ලෝවැකියාව',
'SV' => 'එල් සැල්වදෝරය',
'TC' => 'ටර්ක්ස් සහ කයිකොස් දූපත්',
'TH' => 'තායිලන්තය',
'TK' => 'ටොකලාවු',
'TM' => 'තුර්ක්මෙනිස්ථානය',
'TN' => 'ටියුනීසියාව',
'TR' => 'තුර්කිය',
'TT' => 'ට්රිනිඩෑඩ් සහ ටොබැගෝ',
'TV' => 'ටුවාලූ',
'TW' => 'තායිවානය',
'UA' => 'යුක්රේනය',
'US' => 'එක්සත් ජනපදය',
'UZ' => 'උස්බෙකිස්ථානය',
'VG' => 'බ්රිතාන්ය වර්ජින් දූපත්',
'VI' => 'ඇමරිකානු වර්ජින් දූපත්',
'VN' => 'වියට්නාමය',
'VU' => 'වනුවාටු',
'WS' => 'සැමෝවා',
'YE' => 'යේමනය',
'ZA' => 'දකුණු අප්රිකාව',
'ZM' => 'සැම්බියාව',
'ZW' => 'සිම්බාබ්වේ',
);
|
{
"pile_set_name": "Github"
}
|
{
"version": "0.2.0",
"configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"pythonPath": "c:/python34/python.exe",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
},
{
"name": "Python Console App",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"externalConsole": true,
"pythonPath": "c:/python34/python.exe",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit"
]
},
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${workspaceRoot}/manage.py",
"args": [
"runserver",
"--noreload"
],
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput",
"DjangoDebugging"
]
}
]
}
|
{
"pile_set_name": "Github"
}
|
/*EditArea.prototype.comment_or_quotes= function(v0, v1, v2, v3, v4,v5,v6,v7,v8,v9, v10){
new_class="quotes";
if(v6 && v6 != undefined && v6!="")
new_class="comments";
return "µ__"+ new_class +"__µ"+v0+"µ_END_µ";
};*/
/* EditArea.prototype.htmlTag= function(v0, v1, v2, v3, v4,v5,v6,v7,v8,v9, v10){
res="<span class=htmlTag>"+v2;
alert("v2: "+v2+" v3: "+v3);
tab=v3.split("=");
attributes="";
if(tab.length>1){
attributes="<span class=attribute>"+tab[0]+"</span>=";
for(i=1; i<tab.length-1; i++){
cut=tab[i].lastIndexOf(" ");
attributes+="<span class=attributeVal>"+tab[i].substr(0,cut)+"</span>";
attributes+="<span class=attribute>"+tab[i].substr(cut)+"</span>=";
}
attributes+="<span class=attributeVal>"+tab[tab.length-1]+"</span>";
}
res+=attributes+v5+"</span>";
return res;
};*/
// determine if the selected text if a comment or a quoted text
EditArea.prototype.comment_or_quote= function(){
var new_class="", close_tag="", sy, arg, i;
sy = parent.editAreaLoader.syntax[editArea.current_code_lang];
arg = EditArea.prototype.comment_or_quote.arguments[0];
for( i in sy["quotes"] ){
if(arg.indexOf(i)==0){
new_class="quotesmarks";
close_tag=sy["quotes"][i];
}
}
if(new_class.length==0)
{
for(var i in sy["comments"]){
if( arg.indexOf(i)==0 ){
new_class="comments";
close_tag=sy["comments"][i];
}
}
}
// for single line comment the \n must not be included in the span tags
if(close_tag=="\n"){
return "µ__"+ new_class +"__µ"+ arg.replace(/(\r?\n)?$/m, "µ_END_µ$1");
}else{
// the closing tag must be set only if the comment or quotes is closed
reg= new RegExp(parent.editAreaLoader.get_escaped_regexp(close_tag)+"$", "m");
if( arg.search(reg)!=-1 )
return "µ__"+ new_class +"__µ"+ arg +"µ_END_µ";
else
return "µ__"+ new_class +"__µ"+ arg;
}
};
/*
// apply special tags arround text to highlight
EditArea.prototype.custom_highlight= function(){
res= EditArea.prototype.custom_highlight.arguments[1]+"µ__"+ editArea.reg_exp_span_tag +"__µ" + EditArea.prototype.custom_highlight.arguments[2]+"µ_END_µ";
if(EditArea.prototype.custom_highlight.arguments.length>5)
res+= EditArea.prototype.custom_highlight.arguments[ EditArea.prototype.custom_highlight.arguments.length-3 ];
return res;
};
*/
// return identication that allow to know if revalidating only the text line won't make the syntax go mad
EditArea.prototype.get_syntax_trace= function(text){
if(this.settings["syntax"].length>0 && parent.editAreaLoader.syntax[this.settings["syntax"]]["syntax_trace_regexp"])
return text.replace(parent.editAreaLoader.syntax[this.settings["syntax"]]["syntax_trace_regexp"], "$3");
};
EditArea.prototype.colorize_text= function(text){
//text="<div id='result' class='area' style='position: relative; z-index: 4; height: 500px; overflow: scroll;border: solid black 1px;'> ";
/*
if(this.isOpera){
// opera can't use pre element tabulation cause a tab=6 chars in the textarea and 8 chars in the pre
text= this.replace_tab(text);
}*/
text= " "+text; // for easier regExp
/*if(this.do_html_tags)
text= text.replace(/(<[a-z]+ [^>]*>)/gi, '[__htmlTag__]$1[_END_]');*/
if(this.settings["syntax"].length>0)
text= this.apply_syntax(text, this.settings["syntax"]);
// remove the first space added
return text.substr(1).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/µ_END_µ/g,"</span>").replace(/µ__([a-zA-Z0-9]+)__µ/g,"<span class='$1'>");
};
EditArea.prototype.apply_syntax= function(text, lang){
var sy;
this.current_code_lang=lang;
if(!parent.editAreaLoader.syntax[lang])
return text;
sy = parent.editAreaLoader.syntax[lang];
if(sy["custom_regexp"]['before']){
for( var i in sy["custom_regexp"]['before']){
var convert="$1µ__"+ sy["custom_regexp"]['before'][i]['class'] +"__µ$2µ_END_µ$3";
text= text.replace(sy["custom_regexp"]['before'][i]['regexp'], convert);
}
}
if(sy["comment_or_quote_reg_exp"]){
//setTimeout("_$('debug_area').value=editArea.comment_or_quote_reg_exp;", 500);
text= text.replace(sy["comment_or_quote_reg_exp"], this.comment_or_quote);
}
if(sy["keywords_reg_exp"]){
for(var i in sy["keywords_reg_exp"]){
text= text.replace(sy["keywords_reg_exp"][i], 'µ__'+i+'__µ$2µ_END_µ');
}
}
if(sy["delimiters_reg_exp"]){
text= text.replace(sy["delimiters_reg_exp"], 'µ__delimiters__µ$1µ_END_µ');
}
if(sy["operators_reg_exp"]){
text= text.replace(sy["operators_reg_exp"], 'µ__operators__µ$1µ_END_µ');
}
if(sy["custom_regexp"]['after']){
for( var i in sy["custom_regexp"]['after']){
var convert="$1µ__"+ sy["custom_regexp"]['after'][i]['class'] +"__µ$2µ_END_µ$3";
text= text.replace(sy["custom_regexp"]['after'][i]['regexp'], convert);
}
}
return text;
};
|
{
"pile_set_name": "Github"
}
|
<template>
<section>
<b-field grouped>
<b-input icon="magnify" v-model="filter.text" placeholder="Filter..." expanded />
<b-field>
<b-radio-button
v-model="filter.level"
:native-value="SettLevel.Beginner"
type="is-success"
>Simple</b-radio-button>
<b-radio-button
v-model="filter.level"
:native-value="SettLevel.Advanced"
type="is-warning"
>Advanced</b-radio-button>
<b-radio-button v-model="filter.level" :native-value="SettLevel.Expert" type="is-danger">Expert</b-radio-button>
</b-field>
</b-field>
<settings-group label="General">
<settings-field :filter="filter" path="run" label="Connect when TS3AudioBot starts">
<b-switch v-model="model.run" size="is-medium"></b-switch>
</settings-field>
<settings-field :filter="filter" path="generate_status_avatar" label="Load song cover as avatar">
<b-switch v-model="model.generate_status_avatar" size="is-medium"></b-switch>
</settings-field>
<settings-field
:filter="filter"
path="set_status_description"
label="Show song in bot description"
>
<b-switch v-model="model.set_status_description" size="is-medium"></b-switch>
</settings-field>
<settings-field :filter="filter" path="language" label="Bot Language">
<b-select v-model="model.language" placeholder="Select your language">
<option v-for="lang in Object.keys(Lang)" :key="lang" :value="lang">{{Lang[lang]}}</option>
</b-select>
</settings-field>
</settings-group>
<settings-group label="Connection">
<settings-field :filter="filter" path="connect.name" label="Bot name" grouped>
<b-input v-model="model.connect.name" minlength="3" maxlength="30" expanded required></b-input>
<b-button v-if="online" class="control" @click="botRename(model.connect.name)">Apply to bot now</b-button>
</settings-field>
<settings-field :filter="filter" path="connect.address" label="Server address" grouped>
<b-input v-model="model.connect.address" expanded required></b-input>
<b-button class="control">Test (TODO)</b-button>
</settings-field>
<settings-field :filter="filter" path="connect.server_password" label="Server password">
<settings-password :filter="filter" v-model="model.connect.server_password" />
</settings-field>
<settings-field :filter="filter" path="connect.channel" label="Default channel">(TODO)</settings-field>
<settings-field :filter="filter" path="connect.channel_password" label="Channel password">
<settings-password :filter="filter" v-model="model.connect.channel_password" />
</settings-field>
<settings-field
:filter="filter"
path="connect.client_version"
label="Emulated client version"
advanced
>
<b-select v-model="model.connect.client_version" placeholder="Select version">
<option
v-for="ver in versions"
:key="ver.build + ver.platform"
:value="ver"
>{{ver.build}} : {{ver.platform}}</option>
</b-select>
</settings-field>
</settings-group>
<settings-group label="Audio">
<settings-field :filter="filter" label="Default volume" path="audio.volume.default" grouped>
<div class="control is-expanded">
<b-slider v-model="model.audio.volume.default" :min="0" :max="100" lazy></b-slider>
</div>
<b-button class="control" @click="model.audio.volume.default = 42">Apply current volume (TODO)</b-button>
</settings-field>
<settings-field :filter="filter" label="New song volume" path="audio.volume" advanced>
<b-slider v-model="bind_volume_reset" :min="0" :max="100" lazy></b-slider>
</settings-field>
<settings-field :filter="filter" label="Max user volume" path="audio.max_user_volume" advanced>
<b-slider v-model="model.audio.max_user_volume" :min="0" :max="100" lazy></b-slider>
</settings-field>
<settings-field :filter="filter" label="Bitrate" path="audio.bitrate" grouped advanced>
<b-field>
<b-radio-button v-model="model.audio.bitrate" :native-value="16" type="is-danger">Very Poor</b-radio-button>
<b-radio-button v-model="model.audio.bitrate" :native-value="24" type="is-danger">Poor</b-radio-button>
<b-radio-button v-model="model.audio.bitrate" :native-value="32" type="is-warning">Okay</b-radio-button>
<b-radio-button v-model="model.audio.bitrate" :native-value="48" type="is-warning">Good</b-radio-button>
<b-radio-button v-model="model.audio.bitrate" :native-value="64" type="is-success">Very Good</b-radio-button>
<b-radio-button v-model="model.audio.bitrate" :native-value="96" type="is-success">Deluxe</b-radio-button>
</b-field>
<b-field expanded>
<b-slider v-model="model.audio.bitrate" :min="2" :max="128" :step="2" expanded></b-slider>
</b-field>
</settings-field>
</settings-group>
<settings-group label="Commands">
<settings-field :filter="filter" label="Matcher" path="commands.matcher" expert>
<b-select v-model="model.commands.matcher" placeholder="Select your matcher">
<option value="ic3">IC3</option>
<option value="exact">Exact</option>
<option value="substring">Substring</option>
</b-select>
</settings-field>
<settings-field
:filter="filter"
label="How the bot treats long messages"
path="commands.long_message"
advanced
>
<b-select
v-model="model.commands.long_message"
placeholder="Select how the bot treats long messages"
>
<option value="0">Drop (Message will not be sent)</option>
<option value="1">Split (Message will be split up into multiple messages)</option>
</b-select>
</settings-field>
<settings-field
:filter="filter"
label="In how many messages a message can be split max"
path="commands.long_message_split_limit"
advanced
>
<b-numberinput
v-model="model.commands.long_message_split_limit"
controls-position="compact"
:disabled="model.commands.long_message == 0"
/>
</settings-field>
<settings-field
:filter="filter"
label="Max command complexity"
path="commands.command_complexity"
expert
>
<b-numberinput v-model="model.commands.command_complexity" controls-position="compact" />
</settings-field>
<settings-field :filter="filter" label="Colored chat messages" path="commands.color" advanced>
<b-switch v-model="model.commands.color" size="is-medium"></b-switch>
</settings-field>
</settings-group>
</section>
</template>
<script lang="ts">
import Vue from "vue";
import SettingsField from "../Components/SettingsField.vue";
import SettingsGroup from "../Components/SettingsGroup.vue";
import SettingsPassword from "../Components/SettingsPassword.vue";
import { bot, cmd, Api } from "../Api";
import { IVersion } from "../ApiObjects";
import { Util } from "../Util";
import Lang from "../Model/Languge";
import { debounce } from "lodash-es";
import { SettLevel } from "../Model/SettingsLevel";
// missing:
// - channel password
// - server password
// - client version
// - identity
// - send_mode
// - events
// - reconnect
// - aliases
export default Vue.extend({
props: {
online: { type: Boolean, required: true }
},
data() {
return {
Lang,
SettLevel,
versions: [] as IVersion[],
filter: {
text: "",
level: Number(localStorage.filter_level ?? SettLevel.Beginner) as SettLevel,
},
model: {
audio: {
volume: {},
bitrate: 0
},
connect: {
server_password: {},
channel_password: {}
},
commands: {}
} as any
};
},
async created() {
const res = await this.requestModel();
fetch(
"https://raw.githubusercontent.com/ReSpeak/tsdeclarations/master/Versions.csv"
)
.then(v => v.text())
.then(csv => {
this.versions = csv
.split(/\n/gm)
.slice(1)
.map(line => line.split(/,/g))
.map(parts => ({
build: parts[0],
platform: parts[1],
sign: parts[2]
}))
.filter(ver => {
const buildM = ver.build.match(/\[Build: (\d+)\]/);
if (buildM == null) return true;
return Number(buildM[1]) > 1513163251; // > 3.1.7 required
});
});
if (!Util.check(this, res, "Failed to retrieve settings")) return;
this.model = res;
this.bindRecursive("", this.model);
},
watch: {
"filter.level"(val: SettLevel): void {
localStorage.filter_level = val;
}
},
computed: {
botId(): number | string {
if (this.online) return Number(this.$route.params.id);
else return this.$route.params.name;
},
bind_volume_reset: {
get(): [number, number] {
return [
this.model.audio.volume.min,
this.model.audio.volume.max
];
},
set(value: [number, number]) {
this.model.audio.volume.min = value[0];
this.model.audio.volume.max = value[1];
}
}
},
methods: {
requestModel(): Promise<Api<any>> {
if (this.online)
return bot(cmd<any>("settings", "get"), this.botId).get();
else
return cmd<any>(
"settings",
"bot",
"get",
this.botId.toString()
).get();
},
sendValue(confVal: string, val: string | number | object) {
if (typeof val === "object") val = JSON.stringify(val);
if (this.online)
return bot(
cmd<void>("settings", "set", confVal, val),
this.botId
).get();
else
return cmd<void>(
"settings",
"bot",
"set",
this.botId.toString(),
confVal,
val
).get();
},
isSettingsObjectGroup(path: string): boolean {
return path.startsWith("connect.client_version");
},
bindRecursive(path: string, obj: any) {
for (const childKey of Object.keys(obj)) {
var child: any = obj[childKey];
var childPath = (path ? path + "." : "") + childKey;
if (
typeof child === "object" &&
!Array.isArray(child) &&
!this.isSettingsObjectGroup(childPath)
) {
this.bindRecursive(childPath, child);
} else {
this.doWatch(childPath, child);
}
}
},
doWatch(confVal: string, child: any) {
this.$watch(
"model." + confVal,
debounce(async function(val) {
const res = await this.sendValue(confVal, val);
if (!Util.check(this, res, "Failed to apply")) return;
this.$buefy.toast.open({
duration: 500,
message: "Saved",
type: "is-success"
});
}, ...this.getBounceDelay(typeof child))
);
},
getBounceDelay(type: string): [number, object] {
if (type === "string") {
return [
1000,
{
leading: false,
trailing: true
}
];
} else {
return [
1000,
{
leading: true,
trailing: true,
maxWait: 100
}
];
}
},
async botRename(name: string) {
const res = await bot(
cmd<void>("bot", "name", name),
this.botId
).get();
if (!Util.check(this, res, "Failed to set name")) return;
}
},
components: {
SettingsField,
SettingsGroup,
SettingsPassword
}
});
</script>
|
{
"pile_set_name": "Github"
}
|
exec(/a|ab/ /*lastIndex=0*/ , "abc");
["a"] /*input="abc", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["abc","","","","","","","","",""]
exec(/((a)|(ab))((c)|(bc))/ /*lastIndex=0*/ , "abc");
["abc","a","a",undefined,"bc",undefined,"bc"] /*input="abc", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["abc","a","a","","bc","","bc","","",""]
exec(/a[a-z]{2,4}/ /*lastIndex=0*/ , "abcdefghi");
["abcde"] /*input="abcdefghi", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["abcdefghi","","","","","","","","",""]
exec(/a[a-z]{2,4}?/ /*lastIndex=0*/ , "abcdefghi");
["abc"] /*input="abcdefghi", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["abcdefghi","","","","","","","","",""]
exec(/(aa|aabaac|ba|b|c)*/ /*lastIndex=0*/ , "aabaac");
["aaba","ba"] /*input="aabaac", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["aabaac","ba","","","","","","","",""]
replace(/^(a+)\1*,\1+$/ /*lastIndex=0*/ , "aaaaaaaaaa,aaaaaaaaaaaaaaa", "$1");
"aaaaa"
r.lastIndex=0
RegExp.${_,1,...,9}=["aaaaaaaaaa,aaaaaaaaaaaaaaa","aaaaa","","","","","","","",""]
exec(/(z)((a+)?(b+)?(c))*/ /*lastIndex=0*/ , "zaacbbbcac");
["zaacbbbcac","z","ac","a",undefined,"c"] /*input="zaacbbbcac", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["zaacbbbcac","z","ac","a","","c","","","",""]
exec(/(a*)*/ /*lastIndex=0*/ , "b");
["",undefined] /*input="b", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["b","","","","","","","","",""]
exec(/(a*)b\1+/ /*lastIndex=0*/ , "baaaac");
["b",""] /*input="baaaac", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["baaaac","","","","","","","","",""]
exec(/(?=(a+))/ /*lastIndex=0*/ , "baaabac");
["","aaa"] /*input="baaabac", index=1*/
r.lastIndex=0
RegExp.${_,1,...,9}=["baaabac","aaa","","","","","","","",""]
exec(/(?=(a+))a*b\1/ /*lastIndex=0*/ , "baaabac");
["aba","a"] /*input="baaabac", index=3*/
r.lastIndex=0
RegExp.${_,1,...,9}=["baaabac","a","","","","","","","",""]
exec(/(.*?)a(?!(a+)b\2c)\2(.*)/ /*lastIndex=0*/ , "baaabaac");
["baaabaac","ba",undefined,"abaac"] /*input="baaabaac", index=0*/
r.lastIndex=0
RegExp.${_,1,...,9}=["baaabaac","ba","","abaac","","","","","",""]
|
{
"pile_set_name": "Github"
}
|
<section>
<h1 class="blue" data-id="#files/css"><i class="ace-icon fa fa-file-o grey"></i> CSS/LESS Files</h1>
<hr />
<!-- #section:files/css -->
<div class="help-content">
<h3 class="info-title smaller" data-id="#files/css.bootstrap">1. Bootstrap</h3>
<!-- #section:files/css.bootstrap -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Bootstrap's LESS files are not included in the package except for the following:
<br />
<code><span class="brief-show">assets/css/less/bootstrap/</span>variables.less</code>
<code><span class="brief-show">assets/css/less/bootstrap/</span>mixins.less</code>
</li>
<li>
I have modified Bootstrap's CSS file slightly so it's different
from original files you download from official site.
</li>
<li>
But you can use original Bootstrap CSS file without problem.
<br />
Just remember to replace Ace's version of Bootstrap variables file located at
<code>assets/css/less/bootstrap/variables.less</code>
with original Bootstrap variables that you download,
and re-compile Ace's LESS files into CSS again.
</li>
<li>
Specifically, I have changed <code>@gutterWidth</code> from <b>30</b> to <b>24</b>
and changed <code>@grid-float-breakpoint-max</code> from <b>@screen-sm-min</b><i>(768px)</i> to <b>@screen-md-min</b><i>(992px)</i>.
</li>
<li>
The result is that with default Bootstrap, mobile menu will be visible when window width is less than <code>768px</code>
but now it's been modified to <code>992px</code>.
<br />
And it's fine as most desktop browsers are wider than <code>1000px</code>.
</li>
<!--
<li>
<div class="space-8"></div>
I have also modified <code>mixins.less</code> to reduce the number of floating point digits.
<br />
So for example:
<pre data-language="css">
.col-xs-10 {
width: 83.33333333%;
}</pre>
has been changed to:
<pre data-language="css">
.col-xs-10 {
width: 83.3333%;
}</pre>
</li>
-->
</ul>
</div>
<!-- /section:files/css.bootstrap -->
<h3 class="info-title smaller" data-id="#files/css.third">2. Third party</h3>
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Third party plugin CSS files are inside
<code>assets/css/</code> folder.
</li>
<li>
Minified version is find inside <code>dist/css/</code> folder.
</li>
</ul>
</div>
<h3 class="info-title smaller" data-id="#files/css.less">3. Ace LESS</h3>
<!-- #section:files/css.less -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Ace's main CSS file (<code>ace.css</code> or <code>ace.min.css</code>) is generated by compiling LESS files.
</li>
<li>
You can find LESS files here <code>assets/css/less</code>
and compile them into CSS using <b>Node.js</b> and <b>LESS</b> compiler using the following command:
<br />
<code>lessc <span class="green">ace.less</span> ../ace.css</code>
<br />
or
<br />
<code>lessc <span class="green">ace.less</span> <b class="blue">--clean-css</b> ../ace<b class="blue">.min</b>.css</code>
</li>
<li>
Main less file is:
<br />
<code data-open-file="css" class="open-file"><span class="brief-show">assets/css/less/</span>ace.less</code>
</li>
<li>
Variable files are:
<br />
<code data-open-file="css" class="open-file"><span class="brief-show">assets/css/less/</span>variables.less</code>
<br />
<code data-open-file="css" class="open-file"><span class="brief-show">assets/css/less/</span>fonts.less</code>
<br />
and
<br />
<code data-open-file="css" class="open-file"><span class="brief-show">assets/css/less/</span>ace-features.less</code>
<br />
which enables feature selection.
</li>
<li>
<div class="alert alert-info">
If you don't have Node.js installed, you can download it here:
<a href="http://nodejs.org/download/">http://nodejs.org/download/</a>
<br />
Then you should install less compiler using the following command:
<br />
<code>npm install -g less</code>
</div>
</li>
</ul>
</div>
<!-- /section:files/css.less -->
<h3 class="info-title smaller" data-id="#files/css.css">4. Ace CSS</h3>
<!-- #section:files/css.css -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Ace's main CSS file is generated by compiling LESS files into CSS:
<br />
<code>lessc ace.less ../ace.css</code>
<br />
</li>
<li>
But there is also:
<ul class="list-unstyled info-list">
<li>
<code>ace-ie.css</code> which has some rules for IE9 and below and should be included for IE only using conditional comments:
<pre class="light-green">
<!--[if lte IE <span class="light-red bolder">9</span>>
<link rel="stylesheet" href="<span class="purple bolder">path/to/assets/<span class="light-blue">ace-ie.css</span></span>" />
<![endif]-->
</pre>
</li>
<li>
<code>ace-part2.css</code> which is used when main CSS file (ace.css) is too large for IE9 and below (the 4096 selector limit).
<pre class="light-green">
<!--[if lte IE <span class="light-red bolder">9</span>>
<link rel="stylesheet" href="<span class="purple bolder">path/to/assets/<span class="light-blue">ace-part2.css</span></span>" />
<![endif]-->
</pre>
See the following links for more info about this IE limitation:
<br />
<a href="http://support.microsoft.com/kb/262161">Link 1</a>
&
<a href="http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx">Link 2</a>
</li>
<li>
<code>ace-rtl.css</code> file which is used for RTL (right to left) direction suitable for languages such as Arabic, Hebrew and Persian.
<br />
For more info about using RTL, please see <a href="#settings.rtl">RTL section</a>
</li>
<li>
<code>ace-fonts.css</code> which is the font definition file.
<br />
Used only when you want to serve local fonts rather using fonts directly from google.
<br />
You can also put content of <code>ace-fonts.css</code>
on top of your main CSS file to reduce number of files.
</li>
</ol>
</li>
</ul>
</div>
<!-- /section:files/css.css -->
<h3 class="info-title smaller" data-id="#files/css.skins">5. Ace Skins</h3>
<!-- #section:files/css.skins -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
<code>ace-skins.css</code> file is generated by compiling
<br />
<code>assets/css/less/skins/skins.less</code>
<br />
using the following command:
<br />
<code>lessc <span class="green">skins/skins.less</span> ../ace-skins.css</code>
<br />
or
<br />
<code>lessc <span class="green">skins/skins.less</span> <b class="blue">--clean-css</b> ../ace-skins<b class="blue">.min</b>.css</code>
</li>
<li>
If you don't want to use a separate skin file,
you can compile <code>ace.less</code> using your skin of choice.
<br />
To do that, edit
<br />
<code>assets/css/less/sidebar.less</code>
<br />
and replace
<br />
<code>@import "skins/no-skin.less"</code>
<br />
with
<br />
<code>@import "skins/skin-1.less</code>
<br />
or any other skin.
</li>
<li>
For more info about skins you may want to see <a href="#settings.skins">skins section</a> as well.
</li>
</ul>
</div>
<!-- /section:files/css.skins -->
<h3 class="info-title smaller" data-id="#files/css.order">6. CSS file order</h3>
<!-- #section:files/css.order -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
The correct order of including CSS files is as follows:
<ol>
<li>
<b>bootstrap.css</b>
</li>
<li>
<b>fontawesome.css</b> if you want to use Fontawesome icons.
</li>
<li>
<b>ace-fonts.css</b>
<br />
You may want to serve fonts from your own server or hosted by Google.
<br />
View this file for an example:
<br />
<code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/layouts/partials/_shared/_template/</span>fonts.mustache</code>
</li>
<li>
Third party css files such as <b>chosen.css</b> or <b>ui.jqgrid.css</b>
</li>
<li>
<b>ace.css</b>. Ace's main CSS file.
</li>
<li>
<b>ace-part2.css</b>. IE 9 and below have a 4096 selector limit.
<br />
See the following links for more info about this IE limitation:
<br />
<a href="http://support.microsoft.com/kb/262161">Link 1</a>
&
<a href="http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/10164546.aspx">Link 2</a>
<div class="space-4"></div>
I recommend building a custom, smaller CSS file according to your needs, using <a href="../build/css.html">CSS builder</a> and you may not need a second CSS file for IE.
</li>
<li>
<b>ace-skins.css</b>.
Ace skin CSS file, if you want to use a skin other that default one.
<br />
You can also compile default Ace styles (ace.css) using a different skin.
Please refer to the above "Ace Skins" section for more info.
</li>
<li>
<b>ace-rtl.css</b>. Ace's RTL direction CSS file, if you want to use Arabic, Hebrew or Persian.
</li>
<li>
<b>ace-ie.css</b> which is used by IE9 and below.
</li>
<li>
Inline styles which is not recommend and you should always try to separate your CSS from your HTML and application code.
</li>
</ol>
</li>
<li>
<pre data-language="html">
<link href="path/to/bootstrap.min.css" rel="stylesheet" />
<link href="path/to/fontawesome.min.css" rel="stylesheet" /><!-- only if needed -->
<link href="path/to/ace-fonts.css" rel="stylesheet" /><!-- you can also use google hosted fonts -->
<link href="path/to/ace.min.css" rel="stylesheet" class="ace-main-stylesheet" />
<!--[if lte IE 9]>
<link href="path/to/ace-part2.min.css" rel="stylesheet" class="ace-main-stylesheet" />
<![endif]-->
<link href="path/to/ace-skins.min.css" rel="stylesheet" /><!-- only if needed -->
<link href="path/to/ace-rtl.min.css" rel="stylesheet" /><!-- only if needed -->
<!--[if lte IE 9]>
<link href="path/to/ace-ie.min.css" rel="stylesheet" />
<![endif]-->
<style>
/* not recommended to define new CSS rules inside your HTML page */
.some-selector {
color: red;
}
</style>
</pre>
</li>
</ul>
</div>
<!-- #section:files/css.order -->
<h3 class="info-title smaller" data-id="#files/css.fonts">7. Fonts</h3>
<!-- #section:files/css.fonts -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
Ace uses "Open Sans" font from Google as its a popular font with good character support.
<br />
Only "normal" and "light" font weights are included to make the page load faster:
<code>http://fonts.googleapis.com/css?family=Open+Sans:<u>400</u>,<u>300</u></code>
<br />
See this for more info: <a href="http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans">Google Open Sans</a>
<div class="space-6"></div>
You can use google hosted fonts:
<pre data-language="html">
<!-- serve fonts from google -->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,300" /></pre>
Or serve from your own server: (especially good during development, so that your pages load faster)
<pre data-language="html">
<link rel="stylesheet" href="path/to/ace-fonts.css" /></pre>
You can also embed the contents of "ace-fonts.css" files in your main CSS file to reduce number of files:
<pre data-language="css">
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url(path/to/font/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(path/to/font/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}</pre>
Font files are located inside: <code>assets/font</code>
</li>
<li>
For icons you can use Fontawesome, Glyphicons or any other font library.
<br />
Icon font files are located inside: <code>assets/fonts</code>
and you can also serve CDN hosted fonts, for example:
<pre data-language="html">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" /></pre>
<div class="space-4"></div>
Please also see <a href="#elements.icon" class="help-more">Icons section</a> for more info.
</li>
</ul>
</div>
<!-- /section:files/css.fonts -->
<h3 class="info-title smaller" data-id="#files/css.build">8. CSS Builder</h3>
<!-- #section:files/css.build -->
<div class="info-section">
<ul class="info-list list-unstyled">
<li>
There is also the in-browser CSS builder you can use to build a custom CSS output, using only the parts you need.
</li>
<li>
You can find it here: <a href="../build/css.html">path/to/ace/build/css.html</a>
</li>
</ul>
</div>
<!-- /section:files/css.build -->
</div>
<!-- /section:files/css -->
</section>
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico" />
<title>DataTables example</title>
<style type="text/css" title="currentStyle">
@import "../../css/demo_page.css";
@import "../../css/demo_table.css";
</style>
<script type="text/javascript" language="javascript" src="../../js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var oTable = $('#example').dataTable();
var oSettings = oTable.fnSettings();
var iStart = new Date().getTime();
//for ( var i=0, iLen=100 ; i<iLen ; i++ )
//{
console.profile( );
oTable.fnPageChange( "next" );
oTable.fnPageChange( "previous" );
console.profileEnd( );
//}
var iEnd = new Date().getTime();
document.getElementById('output').innerHTML = "Test took "+(iEnd-iStart)+"mS";
} );
</script>
</head>
<body id="dt_example">
<div id="container">
<div class="full_width big">
<i>DataTables</i> performance test - draw
</div>
<div id="output"></div>
<div id="demo">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Trident</td>
<td>Internet
Explorer 4.0</td>
<td>Win 95+</td>
<td class="center">4</td>
<td class="center">X</td>
</tr>
<tr class="gradeC">
<td>Trident</td>
<td>Internet
Explorer 5.0</td>
<td>Win 95+</td>
<td class="center">5</td>
<td class="center">C</td>
</tr>
<tr class="gradeA">
<td>Trident</td>
<td>Internet
Explorer 5.5</td>
<td>Win 95+</td>
<td class="center">5.5</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Trident</td>
<td>Internet
Explorer 6</td>
<td>Win 98+</td>
<td class="center">6</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Trident</td>
<td>Internet Explorer 7</td>
<td>Win XP SP2+</td>
<td class="center">7</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Trident</td>
<td>AOL browser (AOL desktop)</td>
<td>Win XP</td>
<td class="center">6</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Firefox 1.0</td>
<td>Win 98+ / OSX.2+</td>
<td class="center">1.7</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Firefox 1.5</td>
<td>Win 98+ / OSX.2+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Firefox 2.0</td>
<td>Win 98+ / OSX.2+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Firefox 3.0</td>
<td>Win 2k+ / OSX.3+</td>
<td class="center">1.9</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Camino 1.0</td>
<td>OSX.2+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Camino 1.5</td>
<td>OSX.3+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Netscape 7.2</td>
<td>Win 95+ / Mac OS 8.6-9.2</td>
<td class="center">1.7</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Netscape Browser 8</td>
<td>Win 98SE+</td>
<td class="center">1.7</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Netscape Navigator 9</td>
<td>Win 98+ / OSX.2+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.0</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.1</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.1</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.2</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.2</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.3</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.3</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.4</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.4</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.5</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.5</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.6</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">1.6</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.7</td>
<td>Win 98+ / OSX.1+</td>
<td class="center">1.7</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Mozilla 1.8</td>
<td>Win 98+ / OSX.1+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Seamonkey 1.1</td>
<td>Win 98+ / OSX.2+</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Gecko</td>
<td>Epiphany 2.20</td>
<td>Gnome</td>
<td class="center">1.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>Safari 1.2</td>
<td>OSX.3</td>
<td class="center">125.5</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>Safari 1.3</td>
<td>OSX.3</td>
<td class="center">312.8</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>Safari 2.0</td>
<td>OSX.4+</td>
<td class="center">419.3</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>Safari 3.0</td>
<td>OSX.4+</td>
<td class="center">522.1</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>OmniWeb 5.5</td>
<td>OSX.4+</td>
<td class="center">420</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>iPod Touch / iPhone</td>
<td>iPod</td>
<td class="center">420.1</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Webkit</td>
<td>S60</td>
<td>S60</td>
<td class="center">413</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 7.0</td>
<td>Win 95+ / OSX.1+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 7.5</td>
<td>Win 95+ / OSX.2+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 8.0</td>
<td>Win 95+ / OSX.2+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 8.5</td>
<td>Win 95+ / OSX.2+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 9.0</td>
<td>Win 95+ / OSX.3+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 9.2</td>
<td>Win 88+ / OSX.3+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera 9.5</td>
<td>Win 88+ / OSX.3+</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Opera for Wii</td>
<td>Wii</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Nokia N800</td>
<td>N800</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>Presto</td>
<td>Nintendo DS browser</td>
<td>Nintendo DS</td>
<td class="center">8.5</td>
<td class="center">C/A<sup>1</sup></td>
</tr>
<tr class="gradeC">
<td>KHTML</td>
<td>Konqureror 3.1</td>
<td>KDE 3.1</td>
<td class="center">3.1</td>
<td class="center">C</td>
</tr>
<tr class="gradeA">
<td>KHTML</td>
<td>Konqureror 3.3</td>
<td>KDE 3.3</td>
<td class="center">3.3</td>
<td class="center">A</td>
</tr>
<tr class="gradeA">
<td>KHTML</td>
<td>Konqureror 3.5</td>
<td>KDE 3.5</td>
<td class="center">3.5</td>
<td class="center">A</td>
</tr>
<tr class="gradeX">
<td>Tasman</td>
<td>Internet Explorer 4.5</td>
<td>Mac OS 8-9</td>
<td class="center">-</td>
<td class="center">X</td>
</tr>
<tr class="gradeC">
<td>Tasman</td>
<td>Internet Explorer 5.1</td>
<td>Mac OS 7.6-9</td>
<td class="center">1</td>
<td class="center">C</td>
</tr>
<tr class="gradeC">
<td>Tasman</td>
<td>Internet Explorer 5.2</td>
<td>Mac OS 8-X</td>
<td class="center">1</td>
<td class="center">C</td>
</tr>
<tr class="gradeA">
<td>Misc</td>
<td>NetFront 3.1</td>
<td>Embedded devices</td>
<td class="center">-</td>
<td class="center">C</td>
</tr>
<tr class="gradeA">
<td>Misc</td>
<td>NetFront 3.4</td>
<td>Embedded devices</td>
<td class="center">-</td>
<td class="center">A</td>
</tr>
<tr class="gradeX">
<td>Misc</td>
<td>Dillo 0.8</td>
<td>Embedded devices</td>
<td class="center">-</td>
<td class="center">X</td>
</tr>
<tr class="gradeX">
<td>Misc</td>
<td>Links</td>
<td>Text only</td>
<td class="center">-</td>
<td class="center">X</td>
</tr>
<tr class="gradeX">
<td>Misc</td>
<td>Lynx</td>
<td>Text only</td>
<td class="center">-</td>
<td class="center">X</td>
</tr>
<tr class="gradeC">
<td>Misc</td>
<td>IE Mobile</td>
<td>Windows Mobile 6</td>
<td class="center">-</td>
<td class="center">C</td>
</tr>
<tr class="gradeC">
<td>Misc</td>
<td>PSP browser</td>
<td>PSP</td>
<td class="center">-</td>
<td class="center">C</td>
</tr>
<tr class="gradeU">
<td>Other browsers</td>
<td>All others</td>
<td>-</td>
<td class="center">-</td>
<td class="center">U</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</tfoot>
</table>
</div>
<div class="spacer"></div>
<div id="footer" style="text-align:center;">
<span style="font-size:10px;">
DataTables © Allan Jardine 2008-2009.
</span>
</div>
</div>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
/**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*/
(function() {
var DOM = tinymce.DOM;
tinymce.create('tinymce.plugins.FullScreenPlugin', {
init : function(ed, url) {
var t = this, s = {}, vp, posCss;
t.editor = ed;
// Register commands
ed.addCommand('mceFullScreen', function() {
var win, de = DOM.doc.documentElement;
if (ed.getParam('fullscreen_is_enabled')) {
if (ed.getParam('fullscreen_new_window'))
closeFullscreen(); // Call to close in new window
else {
DOM.win.setTimeout(function() {
tinymce.dom.Event.remove(DOM.win, 'resize', t.resizeFunc);
tinyMCE.get(ed.getParam('fullscreen_editor_id')).setContent(ed.getContent());
tinyMCE.remove(ed);
DOM.remove('mce_fullscreen_container');
de.style.overflow = ed.getParam('fullscreen_html_overflow');
DOM.setStyle(DOM.doc.body, 'overflow', ed.getParam('fullscreen_overflow'));
DOM.win.scrollTo(ed.getParam('fullscreen_scrollx'), ed.getParam('fullscreen_scrolly'));
tinyMCE.settings = tinyMCE.oldSettings; // Restore old settings
}, 10);
}
return;
}
if (ed.getParam('fullscreen_new_window')) {
win = DOM.win.open(url + "/fullscreen.htm", "mceFullScreenPopup", "fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width=" + screen.availWidth + ",height=" + screen.availHeight);
try {
win.resizeTo(screen.availWidth, screen.availHeight);
} catch (e) {
// Ignore
}
} else {
tinyMCE.oldSettings = tinyMCE.settings; // Store old settings
s.fullscreen_overflow = DOM.getStyle(DOM.doc.body, 'overflow', 1) || 'auto';
s.fullscreen_html_overflow = DOM.getStyle(de, 'overflow', 1);
vp = DOM.getViewPort();
s.fullscreen_scrollx = vp.x;
s.fullscreen_scrolly = vp.y;
// Fixes an Opera bug where the scrollbars doesn't reappear
if (tinymce.isOpera && s.fullscreen_overflow == 'visible')
s.fullscreen_overflow = 'auto';
// Fixes an IE bug where horizontal scrollbars would appear
if (tinymce.isIE && s.fullscreen_overflow == 'scroll')
s.fullscreen_overflow = 'auto';
// Fixes an IE bug where the scrollbars doesn't reappear
if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
s.fullscreen_html_overflow = 'auto';
if (s.fullscreen_overflow == '0px')
s.fullscreen_overflow = '';
DOM.setStyle(DOM.doc.body, 'overflow', 'hidden');
de.style.overflow = 'hidden'; //Fix for IE6/7
vp = DOM.getViewPort();
DOM.win.scrollTo(0, 0);
if (tinymce.isIE)
vp.h -= 1;
// Use fixed position if it exists
if (tinymce.isIE6)
posCss = 'absolute;top:' + vp.y;
else
posCss = 'fixed;top:0';
n = DOM.add(DOM.doc.body, 'div', {
id : 'mce_fullscreen_container',
style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
DOM.add(n, 'div', {id : 'mce_fullscreen'});
tinymce.each(ed.settings, function(v, n) {
s[n] = v;
});
s.id = 'mce_fullscreen';
s.width = n.clientWidth;
s.height = n.clientHeight - 15;
s.fullscreen_is_enabled = true;
s.fullscreen_editor_id = ed.id;
s.theme_advanced_resizing = false;
s.save_onsavecallback = function() {
ed.setContent(tinyMCE.get(s.id).getContent());
ed.execCommand('mceSave');
};
tinymce.each(ed.getParam('fullscreen_settings'), function(v, k) {
s[k] = v;
});
if (s.theme_advanced_toolbar_location === 'external')
s.theme_advanced_toolbar_location = 'top';
t.fullscreenEditor = new tinymce.Editor('mce_fullscreen', s);
t.fullscreenEditor.onInit.add(function() {
t.fullscreenEditor.setContent(ed.getContent());
t.fullscreenEditor.focus();
});
t.fullscreenEditor.render();
t.fullscreenElement = new tinymce.dom.Element('mce_fullscreen_container');
t.fullscreenElement.update();
//document.body.overflow = 'hidden';
t.resizeFunc = tinymce.dom.Event.add(DOM.win, 'resize', function() {
var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
// Get outer/inner size to get a delta size that can be used to calc the new iframe size
outerSize = fed.dom.getSize(fed.getContainer().firstChild);
innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
});
}
});
// Register buttons
ed.addButton('fullscreen', {title : 'fullscreen.desc', cmd : 'mceFullScreen'});
ed.onNodeChange.add(function(ed, cm) {
cm.setActive('fullscreen', ed.getParam('fullscreen_is_enabled'));
});
},
getInfo : function() {
return {
longname : 'Fullscreen',
author : 'Moxiecode Systems AB',
authorurl : 'http://tinymce.moxiecode.com',
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen',
version : tinymce.majorVersion + "." + tinymce.minorVersion
};
}
});
// Register plugin
tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
})();
|
{
"pile_set_name": "Github"
}
|
5 10005 66 5 10005 66
20 10020 66 20 10020 66
25 10025 88 25 10025 66
30 10030 66 30 10030 88
35 10035 88 35 10035 88
40 10040 66 40 10040 66
40 10040 66 40 10040 88
40 10040 88 40 10040 66
40 10040 88 40 10040 88
50 10050 66 50 10050 66
50 10050 66 50 10050 66
50 10050 66 50 10050 88
50 10050 88 50 10050 66
50 10050 88 50 10050 66
50 10050 88 50 10050 66
50 10050 88 50 10050 66
50 10050 88 50 10050 88
50 10050 88 50 10050 88
60 10040 66 60 10040 66
60 10040 66 60 10040 66
60 10040 66 60 10040 66
60 10040 66 60 10040 66
70 10040 66 70 10040 88
70 10040 66 70 10040 88
70 10040 66 70 10040 88
70 10040 66 70 10040 88
80 10040 88 80 10040 66
80 10040 88 80 10040 66
80 10040 88 80 10040 66
80 10040 88 80 10040 66
|
{
"pile_set_name": "Github"
}
|
<div id="signup">
<div class="head">
<h2>Sign Up</h2>
</div>
<div class="form">
<form action="#" method="post">
<div class="row">
<div class="profile-pic">
<img src="http://lorempixel.com/50/50/people" alt="Profile Logo">
</div>
<div class="description">
<label for="profile-pic-upload">Profile Logo</label>
<span>(Optional)</span>
</div>
<input type="file" id="profile-pic-upload" />
</div>
<div class="row">
<div class="row.left">
<label for="first-name">First Name</label>
<input type="text" id="first-name" />
</div>
<div class="row.right">
<label for="last-name">Last Name</label>
<input type="text" id="last-name" />
</div>
</div>
<div class="row">
<label for="email">Email Address</label>
<input type="text" id="email" />
</div>
<div class="row">
<label for="password">Password</label>
<input type="password" id="password" />
</div>
<div class="row">
<div class="description">
<label for="plan">Choose a Plan:</label>
<span id="view-plans-link">View Plans</span>
</div>
<select id="plan">
<option>Free</option>
<option>Premium</option>
<option>Ultimate</option>
</select>
</div>
<div class="row register">
<input type="submit" value="Register" />
</div>
</form>
</div>
</div>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="Cpp Wrapper"
RootNamespace="Cpp Wrapper"
SccProjectName=""
SccLocalPath="">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="1"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/$(ProjectName)_DBG.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy "$(TargetPath)" "$(SolutionDir)\..\..\lib""/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
StringPooling="TRUE"
RuntimeLibrary="2"
BufferSecurityCheck="FALSE"
PrecompiledHeaderFile=".\obj/Cpp Wrapper.pch"
WarningLevel="3"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="../lib\il_wrap.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy "$(TargetPath)" "$(SolutionDir)\..\..\lib""/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Dynamic|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
StringPooling="TRUE"
RuntimeLibrary="2"
BufferSecurityCheck="FALSE"
WarningLevel="3"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy "$(TargetPath)" "$(SolutionDir)\..\..\lib""/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath="il_wrap.cpp">
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions=""/>
</FileConfiguration>
<FileConfiguration
Name="Dynamic|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
PreprocessorDefinitions=""/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl">
<File
RelativePath="..\include\il\il_wrap.h">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
/*
* (C) Copyright 2001
* Denis Peter, MPL AG Switzerland
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _SCSI_H
#define _SCSI_H
typedef struct SCSI_cmd_block{
unsigned char cmd[16]; /* command */
/* for request sense */
unsigned char sense_buf[64]
__attribute__((aligned(ARCH_DMA_MINALIGN)));
unsigned char status; /* SCSI Status */
unsigned char target; /* Target ID */
unsigned char lun; /* Target LUN */
unsigned char cmdlen; /* command len */
unsigned long datalen; /* Total data length */
unsigned char * pdata; /* pointer to data */
unsigned char msgout[12]; /* Messge out buffer (NOT USED) */
unsigned char msgin[12]; /* Message in buffer */
unsigned char sensecmdlen; /* Sense command len */
unsigned long sensedatalen; /* Sense data len */
unsigned char sensecmd[6]; /* Sense command */
unsigned long contr_stat; /* Controller Status */
unsigned long trans_bytes; /* tranfered bytes */
unsigned int priv;
}ccb;
/*-----------------------------------------------------------
**
** SCSI constants.
**
**-----------------------------------------------------------
*/
/*
** Messages
*/
#define M_COMPLETE (0x00)
#define M_EXTENDED (0x01)
#define M_SAVE_DP (0x02)
#define M_RESTORE_DP (0x03)
#define M_DISCONNECT (0x04)
#define M_ID_ERROR (0x05)
#define M_ABORT (0x06)
#define M_REJECT (0x07)
#define M_NOOP (0x08)
#define M_PARITY (0x09)
#define M_LCOMPLETE (0x0a)
#define M_FCOMPLETE (0x0b)
#define M_RESET (0x0c)
#define M_ABORT_TAG (0x0d)
#define M_CLEAR_QUEUE (0x0e)
#define M_INIT_REC (0x0f)
#define M_REL_REC (0x10)
#define M_TERMINATE (0x11)
#define M_SIMPLE_TAG (0x20)
#define M_HEAD_TAG (0x21)
#define M_ORDERED_TAG (0x22)
#define M_IGN_RESIDUE (0x23)
#define M_IDENTIFY (0x80)
#define M_X_MODIFY_DP (0x00)
#define M_X_SYNC_REQ (0x01)
#define M_X_WIDE_REQ (0x03)
#define M_X_PPR_REQ (0x04)
/*
** Status
*/
#define S_GOOD (0x00)
#define S_CHECK_COND (0x02)
#define S_COND_MET (0x04)
#define S_BUSY (0x08)
#define S_INT (0x10)
#define S_INT_COND_MET (0x14)
#define S_CONFLICT (0x18)
#define S_TERMINATED (0x20)
#define S_QUEUE_FULL (0x28)
#define S_ILLEGAL (0xff)
#define S_SENSE (0x80)
/*
* Sense_keys
*/
#define SENSE_NO_SENSE 0x0
#define SENSE_RECOVERED_ERROR 0x1
#define SENSE_NOT_READY 0x2
#define SENSE_MEDIUM_ERROR 0x3
#define SENSE_HARDWARE_ERROR 0x4
#define SENSE_ILLEGAL_REQUEST 0x5
#define SENSE_UNIT_ATTENTION 0x6
#define SENSE_DATA_PROTECT 0x7
#define SENSE_BLANK_CHECK 0x8
#define SENSE_VENDOR_SPECIFIC 0x9
#define SENSE_COPY_ABORTED 0xA
#define SENSE_ABORTED_COMMAND 0xB
#define SENSE_VOLUME_OVERFLOW 0xD
#define SENSE_MISCOMPARE 0xE
#define SCSI_CHANGE_DEF 0x40 /* Change Definition (Optional) */
#define SCSI_COMPARE 0x39 /* Compare (O) */
#define SCSI_COPY 0x18 /* Copy (O) */
#define SCSI_COP_VERIFY 0x3A /* Copy and Verify (O) */
#define SCSI_INQUIRY 0x12 /* Inquiry (MANDATORY) */
#define SCSI_LOG_SELECT 0x4C /* Log Select (O) */
#define SCSI_LOG_SENSE 0x4D /* Log Sense (O) */
#define SCSI_MODE_SEL6 0x15 /* Mode Select 6-byte (Device Specific) */
#define SCSI_MODE_SEL10 0x55 /* Mode Select 10-byte (Device Specific) */
#define SCSI_MODE_SEN6 0x1A /* Mode Sense 6-byte (Device Specific) */
#define SCSI_MODE_SEN10 0x5A /* Mode Sense 10-byte (Device Specific) */
#define SCSI_READ_BUFF 0x3C /* Read Buffer (O) */
#define SCSI_REQ_SENSE 0x03 /* Request Sense (MANDATORY) */
#define SCSI_SEND_DIAG 0x1D /* Send Diagnostic (O) */
#define SCSI_TST_U_RDY 0x00 /* Test Unit Ready (MANDATORY) */
#define SCSI_WRITE_BUFF 0x3B /* Write Buffer (O) */
/***************************************************************************
* %%% Commands Unique to Direct Access Devices %%%
***************************************************************************/
#define SCSI_COMPARE 0x39 /* Compare (O) */
#define SCSI_FORMAT 0x04 /* Format Unit (MANDATORY) */
#define SCSI_LCK_UN_CAC 0x36 /* Lock Unlock Cache (O) */
#define SCSI_PREFETCH 0x34 /* Prefetch (O) */
#define SCSI_MED_REMOVL 0x1E /* Prevent/Allow medium Removal (O) */
#define SCSI_READ6 0x08 /* Read 6-byte (MANDATORY) */
#define SCSI_READ10 0x28 /* Read 10-byte (MANDATORY) */
#define SCSI_RD_CAPAC 0x25 /* Read Capacity (MANDATORY) */
#define SCSI_RD_CAPAC10 SCSI_RD_CAPAC /* Read Capacity (10) */
#define SCSI_RD_CAPAC16 0x9e /* Read Capacity (16) */
#define SCSI_RD_DEFECT 0x37 /* Read Defect Data (O) */
#define SCSI_READ_LONG 0x3E /* Read Long (O) */
#define SCSI_REASS_BLK 0x07 /* Reassign Blocks (O) */
#define SCSI_RCV_DIAG 0x1C /* Receive Diagnostic Results (O) */
#define SCSI_RELEASE 0x17 /* Release Unit (MANDATORY) */
#define SCSI_REZERO 0x01 /* Rezero Unit (O) */
#define SCSI_SRCH_DAT_E 0x31 /* Search Data Equal (O) */
#define SCSI_SRCH_DAT_H 0x30 /* Search Data High (O) */
#define SCSI_SRCH_DAT_L 0x32 /* Search Data Low (O) */
#define SCSI_SEEK6 0x0B /* Seek 6-Byte (O) */
#define SCSI_SEEK10 0x2B /* Seek 10-Byte (O) */
#define SCSI_SEND_DIAG 0x1D /* Send Diagnostics (MANDATORY) */
#define SCSI_SET_LIMIT 0x33 /* Set Limits (O) */
#define SCSI_START_STP 0x1B /* Start/Stop Unit (O) */
#define SCSI_SYNC_CACHE 0x35 /* Synchronize Cache (O) */
#define SCSI_VERIFY 0x2F /* Verify (O) */
#define SCSI_WRITE6 0x0A /* Write 6-Byte (MANDATORY) */
#define SCSI_WRITE10 0x2A /* Write 10-Byte (MANDATORY) */
#define SCSI_WRT_VERIFY 0x2E /* Write and Verify (O) */
#define SCSI_WRITE_LONG 0x3F /* Write Long (O) */
#define SCSI_WRITE_SAME 0x41 /* Write Same (O) */
/****************************************************************************
* decleration of functions which have to reside in the LowLevel Part Driver
*/
void scsi_print_error(ccb *pccb);
int scsi_exec(ccb *pccb);
void scsi_bus_reset(void);
void scsi_low_level_init(int busdevfunc);
/***************************************************************************
* functions residing inside cmd_scsi.c
*/
void scsi_init(void);
void scsi_scan(int mode);
/** @return the number of scsi disks */
int scsi_get_disk_count(void);
#define SCSI_IDENTIFY 0xC0 /* not used */
/* Hardware errors */
#define SCSI_SEL_TIME_OUT 0x00000101 /* Selection time out */
#define SCSI_HNS_TIME_OUT 0x00000102 /* Handshake */
#define SCSI_MA_TIME_OUT 0x00000103 /* Phase error */
#define SCSI_UNEXP_DIS 0x00000104 /* unexpected disconnect */
#define SCSI_INT_STATE 0x00010000 /* unknown Interrupt number is stored in 16 LSB */
#endif /* _SCSI_H */
|
{
"pile_set_name": "Github"
}
|
// @ts-nocheck
'use strict';
const atRuleParamIndex = require('../../utils/atRuleParamIndex');
const declarationValueIndex = require('../../utils/declarationValueIndex');
const getUnitFromValueNode = require('../../utils/getUnitFromValueNode');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const validateOptions = require('../../utils/validateOptions');
const valueParser = require('postcss-value-parser');
const ruleName = 'unit-case';
const messages = ruleMessages(ruleName, {
expected: (actual, expected) => `Expected "${actual}" to be "${expected}"`,
});
function rule(expectation, options, context) {
return (root, result) => {
const validOptions = validateOptions(result, ruleName, {
actual: expectation,
possible: ['lower', 'upper'],
});
if (!validOptions) {
return;
}
function check(node, value, getIndex) {
const violations = [];
function processValue(valueNode) {
const unit = getUnitFromValueNode(valueNode);
if (!unit) {
return false;
}
const expectedUnit = expectation === 'lower' ? unit.toLowerCase() : unit.toUpperCase();
if (unit === expectedUnit) {
return false;
}
violations.push({
index: getIndex(node) + valueNode.sourceIndex,
message: messages.expected(unit, expectedUnit),
});
return true;
}
const parsedValue = valueParser(value).walk((valueNode) => {
// Ignore wrong units within `url` function
let needFix = false;
const value = valueNode.value;
if (valueNode.type === 'function' && value.toLowerCase() === 'url') {
return false;
}
if (value.includes('*')) {
value.split('*').some((val) => {
return processValue({
...valueNode,
sourceIndex: value.indexOf(val) + val.length + 1,
value: val,
});
});
}
needFix = processValue(valueNode);
if (needFix && context.fix) {
valueNode.value = expectation === 'lower' ? value.toLowerCase() : value.toUpperCase();
}
});
if (violations.length) {
if (context.fix) {
if (node.name === 'media') {
node.params = parsedValue.toString();
} else {
node.value = parsedValue.toString();
}
} else {
violations.forEach((err) => {
report({
index: err.index,
message: err.message,
node,
result,
ruleName,
});
});
}
}
}
root.walkAtRules((atRule) => {
if (!/^media$/i.test(atRule.name) && !atRule.variable) {
return;
}
check(atRule, atRule.params, atRuleParamIndex);
});
root.walkDecls((decl) => check(decl, decl.value, declarationValueIndex));
};
}
rule.ruleName = ruleName;
rule.messages = messages;
module.exports = rule;
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="gb2312"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="mmGhostR3"
ProjectGUID="{42C8E7CE-82C8-46FF-90A5-5648710C8ADB}"
RootNamespace="mmGhostR3"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="O:\_obj\$(solutionName)\$(ConfigurationName)\$(ProjectName)\"
IntermediateDirectory="O:\_obj\$(solutionName)\$(ConfigurationName)\$(ProjectName)\"
ConfigurationType="2"
UseOfMFC="0"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;MMGHOSTR3_EXPORTS"
MinimalRebuild="true"
ExceptionHandling="2"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/SAFESEH:NO"
OutputFile="$(SolutionDir)\_Obj\libs\$(ProjectName).dll"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="O:\_obj\$(solutionName)\$(ConfigurationName)\$(ProjectName)\"
IntermediateDirectory="O:\_obj\$(solutionName)\$(ConfigurationName)\$(ProjectName)\"
ConfigurationType="2"
UseOfMFC="0"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
OmitFramePointers="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MMGHOSTR3_EXPORTS"
ExceptionHandling="2"
RuntimeLibrary="0"
BufferSecurityCheck="true"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions="/SAFESEH:NO"
OutputFile="$(SolutionDir)\_Obj\libs\$(ProjectName).dll"
LinkIncremental="1"
GenerateManifest="false"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
SetChecksum="true"
RandomizedBaseAddress="1"
FixedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="源文件"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\Console.cpp"
>
</File>
<File
RelativePath=".\DbgFunction.cpp"
>
</File>
<File
RelativePath=".\dllmain.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAsManaged="0"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="0"
CompileAsManaged="0"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\mmGhostR3.cpp"
>
</File>
<File
RelativePath=".\PipeCore.cpp"
>
</File>
<File
RelativePath=".\stdafx.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\WorkCore.cpp"
>
</File>
</Filter>
<Filter
Name="头文件"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\Console.h"
>
</File>
<File
RelativePath=".\DbgFunction.h"
>
</File>
<File
RelativePath=".\DbgStruct.h"
>
</File>
<File
RelativePath=".\mmGhostR3.h"
>
</File>
<File
RelativePath=".\PipeCore.h"
>
</File>
<File
RelativePath=".\stdafx.h"
>
</File>
<File
RelativePath=".\targetver.h"
>
</File>
<File
RelativePath=".\WorkCore.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="Add_PerInterface_Rule"
ProjectGUID="{7B3D2178-EBFC-4689-8FAF-805D36D73FD6}"
RootNamespace="Add_PerInterface_Exception"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""C:\Program Files\Microsoft SDKs\Windows\v6.0\Include";"C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB\x64""
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="$(PlatformName)\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB\x64";"C:\Program Files\Microsoft SDKs\Windows\v6.0\Include""
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="2"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\Add_PerInterface_Rule.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\Add_PerInterface_Rule.rc"
>
</File>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
/* Pretty handling of time axes.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
Set axis.mode to "time" to enable. See the section "Time series data" in
API.txt for details.
*/
(function($) {
var options = {
xaxis: {
timezone: null, // "browser" for local to the client or timezone for timezone-js
timeformat: null, // format string to use
twelveHourClock: false, // 12 or 24 time in time mode
monthNames: null // list of names of months
}
};
// round to nearby lower multiple of base
function floorInBase(n, base) {
return base * Math.floor(n / base);
}
// Returns a string with the date d formatted according to fmt.
// A subset of the Open Group's strftime format is supported.
function formatDate(d, fmt, monthNames, dayNames) {
if (typeof d.strftime == "function") {
return d.strftime(fmt);
}
var leftPad = function(n, pad) {
n = "" + n;
pad = "" + (pad == null ? "0" : pad);
return n.length == 1 ? pad + n : n;
};
var r = [];
var escape = false;
var hours = d.getHours();
var isAM = hours < 12;
if (monthNames == null) {
monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
}
if (dayNames == null) {
dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
}
var hours12;
if (hours > 12) {
hours12 = hours - 12;
} else if (hours == 0) {
hours12 = 12;
} else {
hours12 = hours;
}
for (var i = 0; i < fmt.length; ++i) {
var c = fmt.charAt(i);
if (escape) {
switch (c) {
case 'a': c = "" + dayNames[d.getDay()]; break;
case 'b': c = "" + monthNames[d.getMonth()]; break;
case 'd': c = leftPad(d.getDate()); break;
case 'e': c = leftPad(d.getDate(), " "); break;
case 'h': // For back-compat with 0.7; remove in 1.0
case 'H': c = leftPad(hours); break;
case 'I': c = leftPad(hours12); break;
case 'l': c = leftPad(hours12, " "); break;
case 'm': c = leftPad(d.getMonth() + 1); break;
case 'M': c = leftPad(d.getMinutes()); break;
// quarters not in Open Group's strftime specification
case 'q':
c = "" + (Math.floor(d.getMonth() / 3) + 1); break;
case 'S': c = leftPad(d.getSeconds()); break;
case 'y': c = leftPad(d.getFullYear() % 100); break;
case 'Y': c = "" + d.getFullYear(); break;
case 'p': c = (isAM) ? ("" + "am") : ("" + "pm"); break;
case 'P': c = (isAM) ? ("" + "AM") : ("" + "PM"); break;
case 'w': c = "" + d.getDay(); break;
}
r.push(c);
escape = false;
} else {
if (c == "%") {
escape = true;
} else {
r.push(c);
}
}
}
return r.join("");
}
// To have a consistent view of time-based data independent of which time
// zone the client happens to be in we need a date-like object independent
// of time zones. This is done through a wrapper that only calls the UTC
// versions of the accessor methods.
function makeUtcWrapper(d) {
function addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) {
sourceObj[sourceMethod] = function() {
return targetObj[targetMethod].apply(targetObj, arguments);
};
};
var utc = {
date: d
};
// support strftime, if found
if (d.strftime != undefined) {
addProxyMethod(utc, "strftime", d, "strftime");
}
addProxyMethod(utc, "getTime", d, "getTime");
addProxyMethod(utc, "setTime", d, "setTime");
var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"];
for (var p = 0; p < props.length; p++) {
addProxyMethod(utc, "get" + props[p], d, "getUTC" + props[p]);
addProxyMethod(utc, "set" + props[p], d, "setUTC" + props[p]);
}
return utc;
};
// select time zone strategy. This returns a date-like object tied to the
// desired timezone
function dateGenerator(ts, opts) {
if (opts.timezone == "browser") {
return new Date(ts);
} else if (!opts.timezone || opts.timezone == "utc") {
return makeUtcWrapper(new Date(ts));
} else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") {
var d = new timezoneJS.Date();
// timezone-js is fickle, so be sure to set the time zone before
// setting the time.
d.setTimezone(opts.timezone);
d.setTime(ts);
return d;
} else {
return makeUtcWrapper(new Date(ts));
}
}
// map of app. size of time units in milliseconds
var timeUnitSize = {
"second": 1000,
"minute": 60 * 1000,
"hour": 60 * 60 * 1000,
"day": 24 * 60 * 60 * 1000,
"month": 30 * 24 * 60 * 60 * 1000,
"quarter": 3 * 30 * 24 * 60 * 60 * 1000,
"year": 365.2425 * 24 * 60 * 60 * 1000
};
// the allowed tick sizes, after 1 year we use
// an integer algorithm
var baseSpec = [
[1, "second"], [2, "second"], [5, "second"], [10, "second"],
[30, "second"],
[1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"],
[30, "minute"],
[1, "hour"], [2, "hour"], [4, "hour"],
[8, "hour"], [12, "hour"],
[1, "day"], [2, "day"], [3, "day"],
[0.25, "month"], [0.5, "month"], [1, "month"],
[2, "month"]
];
// we don't know which variant(s) we'll need yet, but generating both is
// cheap
var specMonths = baseSpec.concat([[3, "month"], [6, "month"],
[1, "year"]]);
var specQuarters = baseSpec.concat([[1, "quarter"], [2, "quarter"],
[1, "year"]]);
function init(plot) {
plot.hooks.processOptions.push(function (plot, options) {
$.each(plot.getAxes(), function(axisName, axis) {
var opts = axis.options;
if (opts.mode == "time") {
axis.tickGenerator = function(axis) {
var ticks = [];
var d = dateGenerator(axis.min, opts);
var minSize = 0;
// make quarter use a possibility if quarters are
// mentioned in either of these options
var spec = (opts.tickSize && opts.tickSize[1] ===
"quarter") ||
(opts.minTickSize && opts.minTickSize[1] ===
"quarter") ? specQuarters : specMonths;
if (opts.minTickSize != null) {
if (typeof opts.tickSize == "number") {
minSize = opts.tickSize;
} else {
minSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];
}
}
for (var i = 0; i < spec.length - 1; ++i) {
if (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]]
+ spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) {
break;
}
}
var size = spec[i][0];
var unit = spec[i][1];
// special-case the possibility of several years
if (unit == "year") {
// if given a minTickSize in years, just use it,
// ensuring that it's an integer
if (opts.minTickSize != null && opts.minTickSize[1] == "year") {
size = Math.floor(opts.minTickSize[0]);
} else {
var magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10));
var norm = (axis.delta / timeUnitSize.year) / magn;
if (norm < 1.5) {
size = 1;
} else if (norm < 3) {
size = 2;
} else if (norm < 7.5) {
size = 5;
} else {
size = 10;
}
size *= magn;
}
// minimum size for years is 1
if (size < 1) {
size = 1;
}
}
axis.tickSize = opts.tickSize || [size, unit];
var tickSize = axis.tickSize[0];
unit = axis.tickSize[1];
var step = tickSize * timeUnitSize[unit];
if (unit == "second") {
d.setSeconds(floorInBase(d.getSeconds(), tickSize));
} else if (unit == "minute") {
d.setMinutes(floorInBase(d.getMinutes(), tickSize));
} else if (unit == "hour") {
d.setHours(floorInBase(d.getHours(), tickSize));
} else if (unit == "month") {
d.setMonth(floorInBase(d.getMonth(), tickSize));
} else if (unit == "quarter") {
d.setMonth(3 * floorInBase(d.getMonth() / 3,
tickSize));
} else if (unit == "year") {
d.setFullYear(floorInBase(d.getFullYear(), tickSize));
}
// reset smaller components
d.setMilliseconds(0);
if (step >= timeUnitSize.minute) {
d.setSeconds(0);
}
if (step >= timeUnitSize.hour) {
d.setMinutes(0);
}
if (step >= timeUnitSize.day) {
d.setHours(0);
}
if (step >= timeUnitSize.day * 4) {
d.setDate(1);
}
if (step >= timeUnitSize.month * 2) {
d.setMonth(floorInBase(d.getMonth(), 3));
}
if (step >= timeUnitSize.quarter * 2) {
d.setMonth(floorInBase(d.getMonth(), 6));
}
if (step >= timeUnitSize.year) {
d.setMonth(0);
}
var carry = 0;
var v = Number.NaN;
var prev;
do {
prev = v;
v = d.getTime();
ticks.push(v);
if (unit == "month" || unit == "quarter") {
if (tickSize < 1) {
// a bit complicated - we'll divide the
// month/quarter up but we need to take
// care of fractions so we don't end up in
// the middle of a day
d.setDate(1);
var start = d.getTime();
d.setMonth(d.getMonth() +
(unit == "quarter" ? 3 : 1));
var end = d.getTime();
d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);
carry = d.getHours();
d.setHours(0);
} else {
d.setMonth(d.getMonth() +
tickSize * (unit == "quarter" ? 3 : 1));
}
} else if (unit == "year") {
d.setFullYear(d.getFullYear() + tickSize);
} else {
d.setTime(v + step);
}
} while (v < axis.max && v != prev);
return ticks;
};
axis.tickFormatter = function (v, axis) {
var d = dateGenerator(v, axis.options);
// first check global format
if (opts.timeformat != null) {
return formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames);
}
// possibly use quarters if quarters are mentioned in
// any of these places
var useQuarters = (axis.options.tickSize &&
axis.options.tickSize[1] == "quarter") ||
(axis.options.minTickSize &&
axis.options.minTickSize[1] == "quarter");
var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];
var span = axis.max - axis.min;
var suffix = (opts.twelveHourClock) ? " %p" : "";
var hourCode = (opts.twelveHourClock) ? "%I" : "%H";
var fmt;
if (t < timeUnitSize.minute) {
fmt = hourCode + ":%M:%S" + suffix;
} else if (t < timeUnitSize.day) {
if (span < 2 * timeUnitSize.day) {
fmt = hourCode + ":%M" + suffix;
} else {
fmt = "%b %d " + hourCode + ":%M" + suffix;
}
} else if (t < timeUnitSize.month) {
fmt = "%b %d";
} else if ((useQuarters && t < timeUnitSize.quarter) ||
(!useQuarters && t < timeUnitSize.year)) {
if (span < timeUnitSize.year) {
fmt = "%b";
} else {
fmt = "%b %Y";
}
} else if (useQuarters && t < timeUnitSize.year) {
if (span < timeUnitSize.year) {
fmt = "Q%q";
} else {
fmt = "Q%q %Y";
}
} else {
fmt = "%Y";
}
var rt = formatDate(d, fmt, opts.monthNames, opts.dayNames);
return rt;
};
}
});
});
}
$.plot.plugins.push({
init: init,
options: options,
name: 'time',
version: '1.0'
});
// Time-axis support used to be in Flot core, which exposed the
// formatDate function on the plot object. Various plugins depend
// on the function, so we need to re-expose it here.
$.plot.formatDate = formatDate;
})(jQuery);
|
{
"pile_set_name": "Github"
}
|
{
"version":"LAYAMATERIAL:02",
"props":{
"type":"Laya.UnlitMaterial",
"name":"New Render Texture 3",
"renderStates":[
{
"cull":2,
"blend":0,
"srcBlend":1,
"dstBlend":0,
"depthWrite":true,
"depthTest":515
}
],
"enableVertexColor":false,
"alphaTest":false,
"alphaTestValue":0.01,
"renderQueue":2000,
"albedoIntensity":1,
"textures":[],
"vectors":[
{
"name":"tilingOffset",
"value":[
1,
1,
0,
0
]
},
{
"name":"albedoColor",
"value":[
0.5,
0.5,
0.5,
0.5
]
}
],
"defines":[]
}
}
|
{
"pile_set_name": "Github"
}
|
{
"desc": "Uploads or creates a file.",
"args": {
"file": {
"required" : true,
"example" : "...",
"desc" : "File contents via `multipart/form-data`.",
"type" : "file"
},
"content": {
"required" : false,
"example" : "...",
"desc" : "File contents via a POST var."
},
"filetype": {
"required" : false,
"example" : "php",
"desc" : "Slack-internal file type identifier."
},
"filename": {
"required" : true,
"example" : "foo.txt",
"desc" : "Filename of file."
},
"title": {
"required" : false,
"example" : "My File",
"desc" : "Title of file."
},
"initial_comment": {
"required" : false,
"example" : "Best!",
"desc" : "Initial comment to add to file."
},
"channels": {
"type" : "channel",
"required" : false,
"desc" : "Comma-separated list of channel names or IDs where the file will be shared."
}
},
"errors": {
"posting_to_general_channel_denied" : "An admin has restricted posting to the #general channel.",
"invalid_channel" : "One or more channels supplied are invalid"
}
}
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* GitHub Export Manager.
*
* @package WordPress_GitHub_Sync
*/
/**
* Class WordPress_GitHub_Sync_Export
*/
class WordPress_GitHub_Sync_Export {
/**
* Option key for export user.
*/
const EXPORT_USER_OPTION = '_wpghs_export_user_id';
/**
* Application container.
*
* @var WordPress_GitHub_Sync
*/
protected $app;
/**
* Initializes a new export manager.
*
* @param WordPress_GitHub_Sync $app Application container.
*/
public function __construct( WordPress_GitHub_Sync $app ) {
$this->app = $app;
}
/**
* Updates all of the current posts in the database on master.
*
* @return string|WP_Error
*/
public function full() {
$posts = $this->app->database()->fetch_all_supported();
if ( is_wp_error( $posts ) ) {
return $posts;
}
$master = $this->app->api()->fetch()->master();
if ( is_wp_error( $master ) ) {
return $master;
}
foreach ( $posts as $post ) {
$master->tree()->add_post_to_tree( $post );
}
$master->set_message(
apply_filters(
'wpghs_commit_msg_full',
sprintf(
'Full export from WordPress at %s (%s)',
site_url(),
get_bloginfo( 'name' )
)
) . $this->get_commit_msg_tag()
);
$result = $this->app->api()->persist()->commit( $master );
if ( is_wp_error( $result ) ) {
return $result;
}
return $this->update_shas( $posts );
}
/**
* Updates the provided post ID in master.
*
* @param int $post_id Post ID to update.
*
* @return string|WP_Error
*/
public function update( $post_id ) {
$post = $this->app->database()->fetch_by_id( $post_id );
if ( is_wp_error( $post ) ) {
return $post;
}
if ( 'trash' === $post->status() ) {
return $this->delete( $post_id );
}
$master = $this->app->api()->fetch()->master();
if ( is_wp_error( $master ) ) {
return $master;
}
$master->tree()->add_post_to_tree( $post );
$master->set_message(
apply_filters(
'wpghs_commit_msg_single',
sprintf(
'Syncing %s from WordPress at %s (%s)',
$post->github_path(),
site_url(),
get_bloginfo( 'name' )
),
$post
) . $this->get_commit_msg_tag()
);
$result = $this->app->api()->persist()->commit( $master );
if ( is_wp_error( $result ) ) {
return $result;
}
return $this->update_shas( array( $post ) );
}
/**
* Updates GitHub-created posts with latest WordPress data.
*
* @param array<WordPress_GitHub_Sync_Post> $posts Array of Posts to create.
*
* @return string|WP_Error
*/
public function new_posts( array $posts ) {
$master = $this->app->api()->fetch()->master();
if ( is_wp_error( $master ) ) {
return $master;
}
foreach ( $posts as $post ) {
$master->tree()->add_post_to_tree( $post );
}
$master->set_message(
apply_filters(
'wpghs_commit_msg_new_posts',
sprintf(
'Updating new posts from WordPress at %s (%s)',
site_url(),
get_bloginfo( 'name' )
)
) . $this->get_commit_msg_tag()
);
$result = $this->app->api()->persist()->commit( $master );
if ( is_wp_error( $result ) ) {
return $result;
}
return $this->update_shas( $posts );
}
/**
* Deletes a provided post ID from master.
*
* @param int $post_id Post ID to delete.
*
* @return string|WP_Error
*/
public function delete( $post_id ) {
$post = $this->app->database()->fetch_by_id( $post_id );
if ( is_wp_error( $post ) ) {
return $post;
}
$master = $this->app->api()->fetch()->master();
if ( is_wp_error( $master ) ) {
return $master;
}
$master->tree()->remove_post_from_tree( $post );
$master->set_message(
apply_filters(
'wpghs_commit_msg_delete',
sprintf(
'Deleting %s via WordPress at %s (%s)',
$post->github_path(),
site_url(),
get_bloginfo( 'name' )
),
$post
) . $this->get_commit_msg_tag()
);
$result = $this->app->api()->persist()->commit( $master );
if ( is_wp_error( $result ) ) {
return $result;
}
return __( 'Export to GitHub completed successfully.', 'wp-github-sync' );
}
/**
* Use the new tree to save sha data
* for all the updated posts.
*
* @param WordPress_GitHub_Sync_Post[] $posts Posts to fetch updated shas for.
*
* @return string|WP_Error
*/
protected function update_shas( array $posts ) {
$master = $this->app->api()->fetch()->master();
$attempts = 1;
while ( is_wp_error( $master ) && $attempts < 5 ) {
$master = $this->app->api()->fetch()->master();
$attempts ++;
}
if ( is_wp_error( $master ) ) {
// @todo throw a big warning! not having the latest shas is BAD
// Solution: Show error message and link to kick off sha importing.
return $master;
}
foreach ( $posts as $post ) {
$blob = $master->tree()->get_blob_by_path( $post->github_path() );
if ( $blob ) {
$this->app->database()->set_post_sha( $post, $blob->sha() );
}
}
return __( 'Export to GitHub completed successfully.', 'wp-github-sync' );
}
/**
* Saves the export user to the database.
*
* @param int $user_id User ID to export with.
*
* @return bool
*/
public function set_user( $user_id ) {
return update_option( self::EXPORT_USER_OPTION, (int) $user_id );
}
/**
* Gets the commit message tag.
*
* @return string
*/
protected function get_commit_msg_tag() {
$tag = apply_filters( 'wpghs_commit_msg_tag', 'wpghs' );
if ( ! $tag ) {
throw new Exception( __( 'Commit message tag not set. Filter `wpghs_commit_msg_tag` misconfigured.', 'wp-github-sync' ) );
}
return ' - ' . $tag;
}
}
|
{
"pile_set_name": "Github"
}
|
{
"productName": "WordPress.com",
"appId": "com.automattic.wordpress",
"asar": false,
"directories": {
"buildResources": "./resource/icons",
"output": "./release"
},
"files": [
"package.json",
"build/desktop.js",
"build/*.desktop.js",
"public_desktop",
"public/**/*",
"public/**/*.css.map",
"client/server/bundler/assets-*.json",
"config/*.json"
],
"mac": {
"category": "public.app-category.social-networking",
"entitlements": "./resource/macos/entitlements.mac.plist",
"entitlementsInherit": "./resource/macos/entitlements.mac.inherit.plist",
"hardenedRuntime": true,
"artifactName": "wordpress.com-macOS-app-${version}.${ext}"
},
"dmg": {
"title": "WordPress.com Installer",
"iconSize": 150,
"contents": [
{
"x": 486,
"y": 176,
"type": "link",
"path": "/Applications"
},
{
"x": 156,
"y": 179,
"type": "file"
}
],
"artifactName": "wordpress.com-macOS-dmg-${version}.${ext}"
},
"win": {
"target": {
"target": "nsis",
"arch": [ "x64", "ia32" ]
}
},
"nsis": {
"oneClick": false,
"artifactName": "wordpress.com-win32-setup-${version}.${ext}"
},
"linux": {
"target": [ "deb", "tar.gz" ],
"executableName": "wpcom",
"description": "WordPress.com Desktop Client",
"synopsis": "WordPress.com Desktop client",
"category": "Development",
"desktop": {
"StartupNotify": true
},
"artifactName": "wordpress.com-linux-x64-${version}.${ext}"
},
"deb": {
"fpm": [ "--name=wordpress.com" ],
"depends": [ "gconf2", "gconf-service", "libnotify4", "libxtst6", "libnss3" ],
"artifactName": "wordpress.com-linux-deb-${version}.${ext}"
},
"afterSign": "./bin/after_sign_hook.js"
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="DWriteHelloWorld"
ProjectGUID="{278F0E88-6143-4C81-9400-7DD14C9ABDE6}"
RootNamespace="TextFormat"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
<Platform
Name="x64"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(ConfigurationName)_$(PlatformName)"
IntermediateDirectory="$(ConfigurationName)_$(PlatformName)"
ConfigurationType="1"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="d2d1.lib dwrite.lib comctl32.lib WindowsCodecs.lib"
LinkIncremental="2"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
AdditionalManifestFiles="DeclareDPIAware.manifest"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug|x64"
OutputDirectory="$(ConfigurationName)_$(PlatformName)"
IntermediateDirectory="$(ConfigurationName)_$(PlatformName)"
ConfigurationType="1"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
MinimalRebuild="false"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
DebugInformationFormat="0"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="d2d1.lib dwrite.lib comctl32.lib WindowsCodecs.lib"
LinkIncremental="2"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
AdditionalManifestFiles="DeclareDPIAware.manifest"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(ConfigurationName)_$(PlatformName)"
IntermediateDirectory="$(ConfigurationName)_$(PlatformName)"
ConfigurationType="1"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="d2d1.lib dwrite.lib comctl32.lib WindowsCodecs.lib"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
AdditionalManifestFiles="DeclareDPIAware.manifest"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|x64"
OutputDirectory="$(ConfigurationName)_$(PlatformName)"
IntermediateDirectory="$(ConfigurationName)_$(PlatformName)"
ConfigurationType="1"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="3"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="d2d1.lib dwrite.lib comctl32.lib WindowsCodecs.lib"
LinkIncremental="1"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="17"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
AdditionalManifestFiles="DeclareDPIAware.manifest"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\CustomText.cpp"
>
</File>
<File
RelativePath=".\CustomTextRenderer.cpp"
>
</File>
<File
RelativePath=".\MultiformattedText.cpp"
>
</File>
<File
RelativePath=".\SimpleText.cpp"
>
</File>
<File
RelativePath=".\TabWindow.cpp"
>
</File>
<File
RelativePath=".\winmain.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\CustomText.h"
>
</File>
<File
RelativePath=".\CustomTextRenderer.h"
>
</File>
<File
RelativePath=".\DWriteHelloWorld.h"
>
</File>
<File
RelativePath=".\MultiformattedText.h"
>
</File>
<File
RelativePath=".\SimpleText.h"
>
</File>
<File
RelativePath=".\TabWindow.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".\DeclareDPIAware.manifest"
>
</File>
<File
RelativePath=".\DWriteHelloWorld.rc"
>
</File>
</Filter>
<File
RelativePath=".\readme.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<!DOCTYPE translationbundle>
<translationbundle lang="kn">
<translation id="130631256467250065">ನಿಮ್ಮ ಸಾಧನವನ್ನು ನೀವು ಮುಂದಿನ ಬಾರಿ ಮರುಪ್ರಾರಂಭಿಸಿದಾಗ ನಿಮ್ಮ ಬದಲಾವಣೆಗಳು ಕಾರ್ಯಗತಗೊಳ್ಳುತ್ತವೆ.</translation>
<translation id="7999989146447764333">Brave ನಲ್ಲಿ ಕ್ರ್ಯಾಶ್ ವರದಿ ಮಾಡುವಿಕೆ ಲಭ್ಯವಿಲ್ಲ.</translation>
<translation id="1953231710324290369">ನೀವು ಸುರಕ್ಷಿತ Brave ಪುಟವನ್ನು ವೀಕ್ಷಿಸುತ್ತಿರುವಿರಿ</translation>
<translation id="4010643444566880169">Chrome OS ತನ್ನ ಪ್ರಾರಂಭಿಕ ಸೆಟಪ್ ಅನ್ನು ಪೂರ್ಣಗೊಳಿಸಿಲ್ಲ.</translation>
<translation id="7932149101545999102"><ph name="BEGIN_LINK_CHROMIUM"/>Brave<ph name="END_LINK_CHROMIUM"/> ಓಪನ್ ಸೋರ್ಸ್ ಯೋಜನೆ ಮತ್ತು ಇತರ <ph name="BEGIN_LINK_OSS"/>ಓಪನ್ ಸೋರ್ಸ್ ಸಾಫ್ಟ್ವೇರ್<ph name="END_LINK_OSS"/> ನಿಂದ Brave ಅನ್ನು ಮಾಡಲು ಸಾಧ್ಯ.</translation>
<translation id="8746410156982274638">ಇದಕ್ಕೆ ಹೋಗಿ
Brave ಮೆನು >
<ph name="SETTINGS_TITLE"/>
>
<ph name="ADVANCED_TITLE"/>
>
<ph name="PROXIES_TITLE"/>
>
LAN ಸೆಟ್ಟಿಂಗ್ಗಳು
ಮತ್ತು "ನಿಮ್ಮ LAN ಗಾಗಿ ಪ್ರಾಕ್ಸಿ ಸರ್ವರ್ ಬಳಸಿ" ಚೆಕ್ಬಾಕ್ಸ್ ಆಯ್ಕೆ ರದ್ದುಮಾಡಿ.</translation>
<translation id="2017237562285586622">ನಿಮ್ಮ ಫೈರ್ವಾಲ್ ಮತ್ತು ಆಂಟಿವೈರಸ್ ಸೆಟ್ಟಿಂಗ್ಗಳಲ್ಲಿ ನೆಟ್ವರ್ಕ್ ಪ್ರವೇಶಿಸಲು
Brave ಗೆ ಅನುಮತಿಸಿ.</translation>
<translation id="8619622797841001082">ಇದಕ್ಕೆ ಹೋಗಿ
Brave ಮೆನು >
<ph name="SETTINGS_TITLE"/>
>
<ph name="ADVANCED_TITLE"/>
>
<ph name="PROXIES_TITLE"/>
ಮತ್ತು ನಿಮ್ಮ ಕಾನ್ಫಿಗರೇಶನ್ ಅನ್ನು "ಯಾವುದೇ ಪ್ರಾಕ್ಸಿ ಇಲ್ಲ" ಅಥವಾ "ನೇರವಾಗಿ" ಗೆ ಹೊಂದಿಸಲಾಗಿದೆಯೇ ಎಂಬುದನ್ನು ಖಚಿತಪಡಿಸಿಕೊಳ್ಳಿ.</translation>
<translation id="9156965752763025780">ನೀವು ಮುಂದಿನ ಬಾರಿ Brave ಅನ್ನು ಮರುಪ್ರಾರಂಭಿಸಿದಾಗ ನಿಮ್ಮ ಬದಲಾವಣೆಗಳು ಕಾರ್ಯಗತಗೊಳ್ಳುತ್ತವೆ.</translation>
<translation id="4068928808254189629">ಇದಕ್ಕೆ ಹೋಗಿ
Brave ಮೆನು >
<ph name="SETTINGS_TITLE"/>
>
<ph name="ADVANCED_TITLE"/>
ಮತ್ತು "<ph name="NO_PREFETCH_DESCRIPTION"/>" ಆಯ್ಕೆ ರದ್ದುಮಾಡಿ.
ಒಂದು ವೇಳೆ ಇದು ಈ ಸಮಸ್ಯೆಯನ್ನು ಪರಿಹರಿಸದಿದ್ದರೆ, ಸುಧಾರಿತ ಕಾರ್ಯಾಚರಣೆಗಾಗಿ ಮತ್ತೊಮ್ಮೆ
ಈ ಆಯ್ಕೆಯನ್ನು ಆಯ್ಕೆ ಮಾಡುವಂತೆ ನಾವು ಶಿಫಾರಸು ಮಾಡುತ್ತೇವೆ.</translation>
<translation id="8187289872471304532">ಇದಕ್ಕೆ ಹೋಗಿ
ಅಪ್ಲಿಕೇಶನ್ಗಳು > ಸಿಸ್ಟಂ ಪ್ರಾಶಸ್ತ್ಯಗಳು > ನೆಟ್ವರ್ಕ್ > ಸುಧಾರಿತ > ಪ್ರಾಕ್ಸಿಗಳು
ಮತ್ತು ಆಯ್ಕೆ ಮಾಡಿದ ಯಾವುದೇ ಪ್ರಾಕ್ಸಿಗಳ ಆಯ್ಕೆಯನ್ನು ರದ್ದುಮಾಡಿ.</translation>
<translation id="88187049159266777">Brave ಅನ್ನು ಸರಿಯಾಗಿ ಸ್ಥಗಿತಗೊಳಿಸಲಾಗಿಲ್ಲ.</translation>
</translationbundle>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Plugin providerName="PeddleCheap_Lp" providerType="module">
<Command name="Pc_connect" id="0">
<Help>Connects to a chosen host with PeddleCheap</Help>
<Input>
<Option name='key' optional='true'>
<Argument name='name' data='keyName'/>
</Option>
<Option name='payload' optional='true'>
<Argument name='name' data='payloadName'/>
</Option>
<Option name='run' optional='true'>
<Argument name='type'>
<Value string='egg'>
<Set data='runType' value='1'/>
</Value>
<Value string='memlib'>
<Set data='runType' value='2'/>
</Value>
<Value string='filelib'>
<Set data='runType' value='3'/>
</Value>
<Value string='exe'>
<Set data='runType' value='4'/>
</Value>
</Argument>
<Argument name='run_param' data='runParam' optional='true'/>
</Option>
<Option name='target' optional='false'>
<Argument name='addr' data='targetAddr'/>
<Argument name='dstPort' data='targetDstPort'/>
<Argument name='srcPort' data='targetSrcPort' optional='true'/>
<Help>The address and ports for the connection</Help>
</Option>
<Option name='cpaddr' optional='true'>
<Argument name='addr' data='cpAddr'/>
<Help>The CP address</Help>
</Option>
<Option name='wait' optional='true'>
<Argument name='seconds' data='wait'/>
<Help>Seconds to wait before connecting. Connect immediately if this parameter is absent.</Help>
</Option>
</Input>
<Output>
<Data name='keyName' type='string'/>
<Data name='payloadName' type='string'/>
<Data name='runType' type='uint8_t' default='0'/>
<Data name='runParam' type='string'/>
<Data name='targetAddr' type='ipaddr'/>
<Data name='targetDstPort' type='uint16_t'/>
<Data name='targetSrcPort' type='uint16_t' default='0'/>
<Data name='cpAddr' type='cpaddr'/>
<Data name='wait' type='uint32_t' default='0'/>
</Output>
</Command>
</Plugin>
|
{
"pile_set_name": "Github"
}
|
<?php
namespace console\controllers;
use yii\console\Controller;
use eagle\modules\listing\models\OdOrder2;
use eagle\modules\listing\models\OdOrderItem2;
use eagle\modules\order\models\OdOrder;
use eagle\modules\order\models\OdOrderItem;
use eagle\modules\listing\models\OdOrderShipped2;
use eagle\modules\order\models\OdOrderShipped;
use eagle\models\UserBase;
use eagle\modules\platform\apihelpers\AliexpressAccountsApiHelper;
use eagle\models\AliexpressOrder;
use common\api\aliexpressinterface\AliexpressInterface_Helper;
use eagle\modules\listing\models\EbayItem;
use eagle\modules\listing\helpers\EbayitemHelper;
/**
* 后台处理某些逻辑的脚本
*/
class ScriptController extends Controller {
/**
* eagle1的订单库数据转移到eagle2中,包括表格od_order,od_order_item,od_order_shipped
* @author fanjs
*/
public function actionOrder1data1to2(){
set_time_limit(0);
$maxuserid=UserBase::find()->where('puid = 0 and uid >0 and uid <=240')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder2::tableName().' order by order_id ASC')->query();
while ($row=$q->read()){
if ($row['order_status']>200){
$row['order_status']=200;
}
unset($row['order_manual_id']);
unset($row['default_shipping_method_code']);
$row['default_warehouse_id ']=0;
unset($row['default_carrier_code']);
$row['is_manual_order']='0';
$neworder = new OdOrder();
// $neworder->findOne(['order_id'=>$row['order_id']]);
$neworder->setAttributes($row,false);
if($neworder->save(false)){
echo 'od_order:'.$row['order_id']."save success!\n";
}else{
echo 'od_order:'.$row['order_id']."save failure!\n";
continue;
}
//订单如果处理完成,开始处理订单商品
$items=OdOrderItem2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($items)){
$failure=0;//记录失败存储的记录数量,》0 则表示部分数据保存失败
foreach ($items as $i){
$item=new OdOrderItem();
// $item->findOne(['order_id'=>$i['order_id'],'order_item_id'=>$i['order_item_id']]);
$item->setAttributes($i,false);
if ($item->save(false)){
echo 'od_order_item for OrderID:'.$row['order_id']."save success!\n";
}else{
$failure++;
echo 'od_order_item for OrderID:'.$row['order_id']."save failure!\n";
}
}
if ($failure>0){
OdOrder::deleteAll(['order_id'=>$row['order_id']]);
OdOrderItem::deleteAll(['order_id'=>$row['order_id']]);
continue;
}
}
//开始处理订单的发货数据
$shipped=OdOrderShipped2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($shipped)){
foreach ($shipped as $s){
$ship= new OdOrderShipped();
// $ship->findOne(['order_id'=>$i['order_id'],'id'=>$s['id']]);
$ship->setAttributes($s,false);
if ($ship->save(false)){
echo 'od_order_shipped for OrderID:'.$row['order_id']."save success!\n";
}else{
echo 'od_order_shipped for OrderID:'.$row['order_id']."save failure!\n";
}
}
}
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
public function actionOrder2data1to2(){
set_time_limit(0);
// $maxuserid=UserBase::find()->where('puid = 0 and uid >240 and uid <=480')->max('uid');
$maxuserid=UserBase::find()->where('puid = 0 and uid >240 and uid <=480')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder2::tableName().' order by order_id ASC')->query();
while ($row=$q->read()){
if ($row['order_status']>200){
$row['order_status']=200;
}
unset($row['order_manual_id']);
unset($row['default_shipping_method_code']);
$row['default_warehouse_id ']=0;
unset($row['default_carrier_code']);
$row['is_manual_order']='0';
$neworder = new OdOrder();
// $neworder->findOne(['order_id'=>$row['order_id']]);
$neworder->setAttributes($row,false);
if($neworder->save(false)){
echo 'od_order:'.$row['order_id']."save success!\n";
}else{
echo 'od_order:'.$row['order_id']."save failure!\n";
continue;
}
//订单如果处理完成,开始处理订单商品
$items=OdOrderItem2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($items)){
$failure=0;//记录失败存储的记录数量,》0 则表示部分数据保存失败
foreach ($items as $i){
$item=new OdOrderItem();
// $item->findOne(['order_id'=>$i['order_id'],'order_item_id'=>$i['order_item_id']]);
$item->setAttributes($i,false);
if ($item->save(false)){
echo 'od_order_item for OrderID:'.$row['order_id']."save success!\n";
}else{
$failure++;
echo 'od_order_item for OrderID:'.$row['order_id']."save failure!\n";
}
}
if ($failure>0){
OdOrder::deleteAll(['order_id'=>$row['order_id']]);
OdOrderItem::deleteAll(['order_id'=>$row['order_id']]);
continue;
}
}
//开始处理订单的发货数据
$shipped=OdOrderShipped2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($shipped)){
foreach ($shipped as $s){
$ship= new OdOrderShipped();
// $ship->findOne(['order_id'=>$i['order_id'],'id'=>$s['id']]);
$ship->setAttributes($s,false);
if ($ship->save(false)){
echo 'od_order_shipped for OrderID:'.$row['order_id']."save success!\n";
}else{
echo 'od_order_shipped for OrderID:'.$row['order_id']."save failure!\n";
}
}
}
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
public function actionOrder3data1to2(){
set_time_limit(0);
// $maxuserid=UserBase::find()->where('puid = 0 and uid >480 and uid <=720')->max('uid');
$maxuserid=UserBase::find()->where('puid = 0 and uid >480 and uid <=720')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder2::tableName().' order by order_id ASC')->query();
while ($row=$q->read()){
if ($row['order_status']>200){
$row['order_status']=200;
}
unset($row['order_manual_id']);
unset($row['default_shipping_method_code']);
$row['default_warehouse_id ']=0;
unset($row['default_carrier_code']);
$row['is_manual_order']='0';
$neworder = new OdOrder();
// $neworder->findOne(['order_id'=>$row['order_id']]);
$neworder->setAttributes($row,false);
if($neworder->save(false)){
echo 'od_order:'.$row['order_id']."save success!\n";
}else{
echo 'od_order:'.$row['order_id']."save failure!\n";
continue;
}
//订单如果处理完成,开始处理订单商品
$items=OdOrderItem2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($items)){
$failure=0;//记录失败存储的记录数量,》0 则表示部分数据保存失败
foreach ($items as $i){
$item=new OdOrderItem();
// $item->findOne(['order_id'=>$i['order_id'],'order_item_id'=>$i['order_item_id']]);
$item->setAttributes($i,false);
if ($item->save(false)){
echo 'od_order_item for OrderID:'.$row['order_id']."save success!\n";
}else{
$failure++;
echo 'od_order_item for OrderID:'.$row['order_id']."save failure!\n";
}
}
if ($failure>0){
OdOrder::deleteAll(['order_id'=>$row['order_id']]);
OdOrderItem::deleteAll(['order_id'=>$row['order_id']]);
continue;
}
}
//开始处理订单的发货数据
$shipped=OdOrderShipped2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($shipped)){
foreach ($shipped as $s){
$ship= new OdOrderShipped();
// $ship->findOne(['order_id'=>$i['order_id'],'id'=>$s['id']]);
$ship->setAttributes($s,false);
if ($ship->save(false)){
echo 'od_order_shipped for OrderID:'.$row['order_id']."save success!\n";
}else{
echo 'od_order_shipped for OrderID:'.$row['order_id']."save failure!\n";
}
}
}
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
public function actionOrder4data1to2(){
set_time_limit(0);
$maxuserid=UserBase::find()->where('puid = 0 and uid >720 and uid <=960')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder2::tableName().' order by order_id ASC')->query();
while ($row=$q->read()){
if ($row['order_status']>200){
$row['order_status']=200;
}
unset($row['order_manual_id']);
unset($row['default_shipping_method_code']);
$row['default_warehouse_id ']=0;
unset($row['default_carrier_code']);
$row['is_manual_order']='0';
$neworder = new OdOrder();
// $neworder->findOne(['order_id'=>$row['order_id']]);
$neworder->setAttributes($row,false);
if($neworder->save(false)){
echo 'od_order:'.$row['order_id']."save success!\n";
}else{
echo 'od_order:'.$row['order_id']."save failure!\n";
continue;
}
//订单如果处理完成,开始处理订单商品
$items=OdOrderItem2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($items)){
$failure=0;//记录失败存储的记录数量,》0 则表示部分数据保存失败
foreach ($items as $i){
$item=new OdOrderItem();
// $item->findOne(['order_id'=>$i['order_id'],'order_item_id'=>$i['order_item_id']]);
$item->setAttributes($i,false);
if ($item->save(false)){
echo 'od_order_item for OrderID:'.$row['order_id']."save success!\n";
}else{
$failure++;
echo 'od_order_item for OrderID:'.$row['order_id']."save failure!\n";
}
}
if ($failure>0){
OdOrder::deleteAll(['order_id'=>$row['order_id']]);
OdOrderItem::deleteAll(['order_id'=>$row['order_id']]);
continue;
}
}
//开始处理订单的发货数据
$shipped=OdOrderShipped2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($shipped)){
foreach ($shipped as $s){
$ship= new OdOrderShipped();
// $ship->findOne(['order_id'=>$i['order_id'],'id'=>$s['id']]);
$ship->setAttributes($s,false);
if ($ship->save(false)){
echo 'od_order_shipped for OrderID:'.$row['order_id']."save success!\n";
}else{
echo 'od_order_shipped for OrderID:'.$row['order_id']."save failure!\n";
}
}
}
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
public function actionOrder5data1to2(){
set_time_limit(0);
$maxuserid=UserBase::find()->where('puid = 0 and uid >960 and uid <=1200')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder2::tableName().' order by order_id ASC')->query();
while ($row=$q->read()){
if ($row['order_status']>200){
$row['order_status']=200;
}
unset($row['order_manual_id']);
unset($row['default_shipping_method_code']);
$row['default_warehouse_id ']=0;
unset($row['default_carrier_code']);
$row['is_manual_order']='0';
$neworder = new OdOrder();
// $neworder->findOne(['order_id'=>$row['order_id']]);
$neworder->setAttributes($row,false);
if($neworder->save(false)){
echo 'od_order:'.$row['order_id']."save success!\n";
}else{
echo 'od_order:'.$row['order_id']."save failure!\n";
continue;
}
//订单如果处理完成,开始处理订单商品
$items=OdOrderItem2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($items)){
$failure=0;//记录失败存储的记录数量,》0 则表示部分数据保存失败
foreach ($items as $i){
$item=new OdOrderItem();
// $item->findOne(['order_id'=>$i['order_id'],'order_item_id'=>$i['order_item_id']]);
$item->setAttributes($i,false);
if ($item->save(false)){
echo 'od_order_item for OrderID:'.$row['order_id']."save success!\n";
}else{
$failure++;
echo 'od_order_item for OrderID:'.$row['order_id']."save failure!\n";
}
}
if ($failure>0){
OdOrder::deleteAll(['order_id'=>$row['order_id']]);
OdOrderItem::deleteAll(['order_id'=>$row['order_id']]);
continue;
}
}
//开始处理订单的发货数据
$shipped=OdOrderShipped2::find()->where(['order_id'=>$row['order_id']])->asArray()->all();
if (count($shipped)){
foreach ($shipped as $s){
$ship= new OdOrderShipped();
// $ship->findOne(['order_id'=>$i['order_id'],'id'=>$s['id']]);
$ship->setAttributes($s,false);
if ($ship->save(false)){
echo 'od_order_shipped for OrderID:'.$row['order_id']."save success!\n";
}else{
echo 'od_order_shipped for OrderID:'.$row['order_id']."save failure!\n";
}
}
}
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
/**
* 将各个子库的订单的历史订单批量检测状态
* @author fanjs
*/
public function actionDocheck(){
set_time_limit(0);
$maxuserid=UserBase::find()->where('puid = 0 and uid >0 and uid <=1300')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理订单od_order
echo 'start deal od_order for user:'.$i."\n";
$db = OdOrder2::getDb();
$q = $db->createCommand('select * from '.OdOrder::tableName().' where exception_status=0 and create_time <1437973200 order by order_id ASC')->query();
while ($row=$q->read()){
$order=OdOrder::findOne($row['order_id']);
switch ($row['order_source']){
case 'ebay':
if (200<=$row['order_status'] && $row['order_status']<=300){
//将有发货时间的,或者没有发货时间但是付款时间是20天以前的订单归为已完成
if ($order->delivery_time>0||($order->delivery_time==0&&$order->paid_time<=(time()-20*24*3600))){
$order->order_status=OdOrder::STATUS_SHIPPED;
}
}
break;
case 'aliexpress':
$aliOrder = AliexpressOrder::find()->where(['id'=>$row['order_source_order_id']])->select(['orderstatus','gmtpaysuccess','gmtcreate'])->asArray()->One();
if (in_array($aliOrder['orderstatus'], array('PLACE_ORDER_SUCCESS'))){//未付款
$order_status = 100;
}elseif (in_array($aliOrder['orderstatus'], array('WAIT_SELLER_SEND_GOODS','RISK_CONTROL'))){//已付款
$order_status = 200;
}elseif (in_array($aliOrder['orderstatus'], array('IN_CANCEL'))){//申请取消
$order_status = 600;
}elseif (in_array($aliOrder['orderstatus'], array('SELLER_PART_SEND_GOODS','WAIT_BUYER_ACCEPT_GOODS','FUND_PROCESSING','WAIT_SELLER_EXAMINE_MONEY'))){
$order_status = 400;
}elseif (in_array($aliOrder['orderstatus'], array('FINISH'))){
$order_status = 500;
}elseif (in_array($aliOrder['orderstatus'], array('IN_ISSUE','IN_FROZEN'))){//需要挂起的订单
//根据是否有付款时间判断是否曾经付过款
if (strlen($aliOrder['gmtpaysuccess'])>10){
$order_status = 200;
}else{
$order_status = 100;
}
}
$order->order_status=$order_status;
$order->order_source_status=$aliOrder['orderstatus'];
$order->order_source_create_time=AliexpressInterface_Helper::transLaStrTimetoTimestamp($aliOrder['gmtcreate']);
$order->paid_time=AliexpressInterface_Helper::transLaStrTimetoTimestamp($aliOrder['gmtpaysuccess']);
echo $row['order_source_order_id']."\n";
print_r($aliOrder);
break;
default:
break;
}
$order->save(false);
}
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
/**
* ebay的item多属性拆分到映射表
* @author fanjs
*/
public function actionVariationmajor(){
$maxuserid=UserBase::find()->where('puid = 0 and uid >0')->select('uid')->asArray()->all();
foreach ($maxuserid as $k=>$v){
$i=$v['uid'];
echo 'start connect subdb:--->'.$i."\n";
try {
//开始处理ebayitem
echo 'start deal ebayitem for user:'.$i."\n";
$db = EbayItem::getDb();
$q = $db->createCommand('select * from '.EbayItem::tableName().' where listingstatus = "Active" and isvariation = 1')->query();
$count = 0;
while ($row=$q->read()){
$itemid=$row['itemid'];
if (strlen($itemid)==0){
continue;
}
echo '正在处理数据'.$itemid."\n";
$ei = EbayItem::findOne(['itemid'=>$itemid]);
// $ei->save();
// $ei->detail->save();
$detail = $ei->detail;
EbayitemHelper::SaveVariation($itemid, $detail->variation);
$count++;
}
echo '总共处理'.$count.'条数据';
}catch(\Exception $e){
echo $e->getMessage()."\n";
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
3004 6 0 0 0 0 12 267516 + AK094917 3011 1 3011 chr5 180857866 75414994 75685520 13 99,681,181,152,134,90,111,89,165,134,204,160,810, 1,100,781,962,1114,1248,1338,1449,1538,1703,1837,2041,2201, 75414994,75463230,75526499,75541316,75616742,75617361,75622801,75623348,75627358,75630374,75632309,75632966,75684710,
1913 0 0 0 0 0 1 2323 - CR611640 1913 0 1913 chr5 180857866 75501665 75505901 2 684,1229, 0,684, 75501665,75504672,
1916 0 0 0 0 0 1 2323 - CR617598 1916 0 1916 chr5 180857866 75501665 75505904 2 684,1232, 0,684, 75501665,75504672,
1929 0 0 0 0 0 1 2323 - CR590134 1929 0 1929 chr5 180857866 75501665 75505917 2 684,1245, 0,684, 75501665,75504672,
1938 0 0 0 0 0 1 2323 - CR593875 1938 0 1938 chr5 180857866 75501666 75505927 2 683,1255, 0,683, 75501666,75504672,
1546 0 0 0 0 0 1 2323 - CR605282 1546 0 1546 chr5 180857866 75501670 75505539 2 679,867, 0,679, 75501670,75504672,
1894 0 0 0 0 0 1 2323 - CR594687 1894 0 1894 chr5 180857866 75501686 75505903 2 663,1231, 0,663, 75501686,75504672,
|
{
"pile_set_name": "Github"
}
|
/**
* Module dependencies
*/
var util = require( './util' );
var assert = require( 'assert' );
/**
* wpcom.site.post.subscriber
*/
describe( 'wpcom.site.wordads', function() {
// Global instances
var wpcom = util.wpcom();
var site = wpcom.site( util.wordAds().site );
describe( 'wpcom.site.wordads.settings', function() {
var wordAdsSettings = site.wordAds().settings();
describe( 'wpcom.site.wordads.settings.get', function() {
it( 'should get site wordAds settings', function( done ) {
wordAdsSettings.get( function( err, data ) {
if ( err ) throw err;
assert.equal( 'number', typeof data.ID );
assert.equal( 'object', typeof data.settings );
done();
} );
} );
} );
describe( 'wpcom.site.wordads.settings.update', function() {
it( 'should update WordAds settings of the site', function( done ) {
var settings = {};
wordAdsSettings.get( function( err, data ) {
if ( err ) throw err;
settings = data.settings;
settings.taxid = data.settings.taxid_last4;
wordAdsSettings.update( settings, function( err2, data2 ) {
if ( err2 ) throw err2;
for ( let k in data2.updated ) {
assert.equal( data2.updated[k], settings[k] );
}
done();
} );
} );
} );
} );
} );
describe( 'wpcom.site.wordads.earnings', function() {
var wordAdsEarnings = site.wordAds().earnings();
describe( 'wpcom.site.wordads.earnings.get', function() {
it( 'should get site wordAds earnings', function( done ) {
wordAdsEarnings.get( function( err, data ) {
if ( err ) throw err;
assert.equal( 'number', typeof data.ID );
assert.equal( 'object', typeof data.earnings );
done();
} );
} );
} );
} );
describe( 'wpcom.site.wordads.tos', function() {
var wordAdsTOS = site.wordAds().tos();
describe( 'wpcom.site.wordads.tos.get', function() {
it( 'should get site wordAds tos', function( done ) {
wordAdsTOS.get( function( err, data ) {
if ( err ) throw err;
assert.equal( 'number', typeof data.ID );
assert.equal( 'string', typeof data.tos );
done();
} );
} );
} );
describe( 'wpcom.site.wordads.tos.update', function() {
it( 'should update WordAds TOS of the site', function( done ) {
var send = { tos: 'signed' };
wordAdsTOS.update( send, function( err, data ) {
if ( err ) throw err;
assert.equal( data.tos, send.tos );
done();
} );
} );
it( 'should get error 400 sending wrong body in the request', function( done ) {
var send = { tos: 'foo' };
wordAdsTOS.update( send, function( err ) {
assert.equal( 'You must agree to the Terms of Service.', err.message );
done();
} );
} );
} );
describe( 'wpcom.site.wordads.tos.sign', function() {
it( 'should sign site\'s WordAds TOS', function( done ) {
wordAdsTOS.sign( function( err, data ) {
if ( err ) throw err;
assert.equal( data.tos, 'signed' );
done();
} );
} );
} );
} );
} );
|
{
"pile_set_name": "Github"
}
|
{*
* 2007-2017 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2017 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!-- {if isset($orderProducts) && count($orderProducts) > 0}
<div class="crossseling-content">
<h2>{l s='Customers who bought this product also bought:' mod='blockcart'}</h2>
<div id="blockcart_list">
<ul id="blockcart_caroucel">
{foreach from=$orderProducts item='orderProduct' name=orderProduct}
<li>
<div class="product-image-container">
<a href="{$orderProduct.link|escape:'html':'UTF-8'}" title="{$orderProduct.name|htmlspecialchars}" class="lnk_img">
<img class="img-responsive" src="{$orderProduct.image}" alt="{$orderProduct.name|htmlspecialchars}" />
</a>
</div>
<p class="product-name">
<a href="{$orderProduct.link|escape:'html':'UTF-8'}" title="{$orderProduct.name|htmlspecialchars}">
{$orderProduct.name|truncate:15:'...'|escape:'html':'UTF-8'}
</a>
</p>
{if $orderProduct.show_price == 1 AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
<span class="price_display">
<span class="price">{convertPrice price=$orderProduct.displayed_price}</span>
</span>
{/if}
</li>
{/foreach}
</ul>
</div>
</div>
{/if} -->
|
{
"pile_set_name": "Github"
}
|
package assert
import (
"fmt"
"reflect"
)
func compare(obj1, obj2 interface{}, kind reflect.Kind) (int, bool) {
switch kind {
case reflect.Int:
{
intobj1 := obj1.(int)
intobj2 := obj2.(int)
if intobj1 > intobj2 {
return -1, true
}
if intobj1 == intobj2 {
return 0, true
}
if intobj1 < intobj2 {
return 1, true
}
}
case reflect.Int8:
{
int8obj1 := obj1.(int8)
int8obj2 := obj2.(int8)
if int8obj1 > int8obj2 {
return -1, true
}
if int8obj1 == int8obj2 {
return 0, true
}
if int8obj1 < int8obj2 {
return 1, true
}
}
case reflect.Int16:
{
int16obj1 := obj1.(int16)
int16obj2 := obj2.(int16)
if int16obj1 > int16obj2 {
return -1, true
}
if int16obj1 == int16obj2 {
return 0, true
}
if int16obj1 < int16obj2 {
return 1, true
}
}
case reflect.Int32:
{
int32obj1 := obj1.(int32)
int32obj2 := obj2.(int32)
if int32obj1 > int32obj2 {
return -1, true
}
if int32obj1 == int32obj2 {
return 0, true
}
if int32obj1 < int32obj2 {
return 1, true
}
}
case reflect.Int64:
{
int64obj1 := obj1.(int64)
int64obj2 := obj2.(int64)
if int64obj1 > int64obj2 {
return -1, true
}
if int64obj1 == int64obj2 {
return 0, true
}
if int64obj1 < int64obj2 {
return 1, true
}
}
case reflect.Uint:
{
uintobj1 := obj1.(uint)
uintobj2 := obj2.(uint)
if uintobj1 > uintobj2 {
return -1, true
}
if uintobj1 == uintobj2 {
return 0, true
}
if uintobj1 < uintobj2 {
return 1, true
}
}
case reflect.Uint8:
{
uint8obj1 := obj1.(uint8)
uint8obj2 := obj2.(uint8)
if uint8obj1 > uint8obj2 {
return -1, true
}
if uint8obj1 == uint8obj2 {
return 0, true
}
if uint8obj1 < uint8obj2 {
return 1, true
}
}
case reflect.Uint16:
{
uint16obj1 := obj1.(uint16)
uint16obj2 := obj2.(uint16)
if uint16obj1 > uint16obj2 {
return -1, true
}
if uint16obj1 == uint16obj2 {
return 0, true
}
if uint16obj1 < uint16obj2 {
return 1, true
}
}
case reflect.Uint32:
{
uint32obj1 := obj1.(uint32)
uint32obj2 := obj2.(uint32)
if uint32obj1 > uint32obj2 {
return -1, true
}
if uint32obj1 == uint32obj2 {
return 0, true
}
if uint32obj1 < uint32obj2 {
return 1, true
}
}
case reflect.Uint64:
{
uint64obj1 := obj1.(uint64)
uint64obj2 := obj2.(uint64)
if uint64obj1 > uint64obj2 {
return -1, true
}
if uint64obj1 == uint64obj2 {
return 0, true
}
if uint64obj1 < uint64obj2 {
return 1, true
}
}
case reflect.Float32:
{
float32obj1 := obj1.(float32)
float32obj2 := obj2.(float32)
if float32obj1 > float32obj2 {
return -1, true
}
if float32obj1 == float32obj2 {
return 0, true
}
if float32obj1 < float32obj2 {
return 1, true
}
}
case reflect.Float64:
{
float64obj1 := obj1.(float64)
float64obj2 := obj2.(float64)
if float64obj1 > float64obj2 {
return -1, true
}
if float64obj1 == float64obj2 {
return 0, true
}
if float64obj1 < float64obj2 {
return 1, true
}
}
case reflect.String:
{
stringobj1 := obj1.(string)
stringobj2 := obj2.(string)
if stringobj1 > stringobj2 {
return -1, true
}
if stringobj1 == stringobj2 {
return 0, true
}
if stringobj1 < stringobj2 {
return 1, true
}
}
}
return 0, false
}
// Greater asserts that the first element is greater than the second
//
// assert.Greater(t, 2, 1)
// assert.Greater(t, float64(2), float64(1))
// assert.Greater(t, "b", "a")
func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
}
e1Kind := reflect.ValueOf(e1).Kind()
e2Kind := reflect.ValueOf(e2).Kind()
if e1Kind != e2Kind {
return Fail(t, "Elements should be the same type", msgAndArgs...)
}
res, isComparable := compare(e1, e2, e1Kind)
if !isComparable {
return Fail(t, fmt.Sprintf("Can not compare type \"%s\"", reflect.TypeOf(e1)), msgAndArgs...)
}
if res != -1 {
return Fail(t, fmt.Sprintf("\"%v\" is not greater than \"%v\"", e1, e2), msgAndArgs...)
}
return true
}
// GreaterOrEqual asserts that the first element is greater than or equal to the second
//
// assert.GreaterOrEqual(t, 2, 1)
// assert.GreaterOrEqual(t, 2, 2)
// assert.GreaterOrEqual(t, "b", "a")
// assert.GreaterOrEqual(t, "b", "b")
func GreaterOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
}
e1Kind := reflect.ValueOf(e1).Kind()
e2Kind := reflect.ValueOf(e2).Kind()
if e1Kind != e2Kind {
return Fail(t, "Elements should be the same type", msgAndArgs...)
}
res, isComparable := compare(e1, e2, e1Kind)
if !isComparable {
return Fail(t, fmt.Sprintf("Can not compare type \"%s\"", reflect.TypeOf(e1)), msgAndArgs...)
}
if res != -1 && res != 0 {
return Fail(t, fmt.Sprintf("\"%v\" is not greater than or equal to \"%v\"", e1, e2), msgAndArgs...)
}
return true
}
// Less asserts that the first element is less than the second
//
// assert.Less(t, 1, 2)
// assert.Less(t, float64(1), float64(2))
// assert.Less(t, "a", "b")
func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
}
e1Kind := reflect.ValueOf(e1).Kind()
e2Kind := reflect.ValueOf(e2).Kind()
if e1Kind != e2Kind {
return Fail(t, "Elements should be the same type", msgAndArgs...)
}
res, isComparable := compare(e1, e2, e1Kind)
if !isComparable {
return Fail(t, fmt.Sprintf("Can not compare type \"%s\"", reflect.TypeOf(e1)), msgAndArgs...)
}
if res != 1 {
return Fail(t, fmt.Sprintf("\"%v\" is not less than \"%v\"", e1, e2), msgAndArgs...)
}
return true
}
// LessOrEqual asserts that the first element is less than or equal to the second
//
// assert.LessOrEqual(t, 1, 2)
// assert.LessOrEqual(t, 2, 2)
// assert.LessOrEqual(t, "a", "b")
// assert.LessOrEqual(t, "b", "b")
func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
if h, ok := t.(tHelper); ok {
h.Helper()
}
e1Kind := reflect.ValueOf(e1).Kind()
e2Kind := reflect.ValueOf(e2).Kind()
if e1Kind != e2Kind {
return Fail(t, "Elements should be the same type", msgAndArgs...)
}
res, isComparable := compare(e1, e2, e1Kind)
if !isComparable {
return Fail(t, fmt.Sprintf("Can not compare type \"%s\"", reflect.TypeOf(e1)), msgAndArgs...)
}
if res != 1 && res != 0 {
return Fail(t, fmt.Sprintf("\"%v\" is not less than or equal to \"%v\"", e1, e2), msgAndArgs...)
}
return true
}
|
{
"pile_set_name": "Github"
}
|
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>IOAuth1Client | xero-node</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<link rel="stylesheet" href="../assets/css/style.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">Xero Node.JS SDK Documentation</a>
</div>
<div class="table-cell" id="tsd-widgets">
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../index.html">xero-node</a>
</li>
</ul>
<h1>Interface: IOAuth1Client</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-comment">
<div class="tsd-comment tsd-typography">
</div>
</section>
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">IOAuth1Client</span>
<ul class="tsd-hierarchy">
<li>
<a href="ioauth1httpclient.html" class="tsd-signature-type">IOAuth1HttpClient</a>
</li>
</ul>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ioauth1client.html#agent" class="tsd-kind-icon">agent</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="ioauth1client.html#buildauthoriseurl" class="tsd-kind-icon">build<wbr>Authorise<wbr>Url</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="ioauth1client.html#getrequesttoken" class="tsd-kind-icon">get<wbr>Request<wbr>Token</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="ioauth1client.html#refreshaccesstoken" class="tsd-kind-icon">refresh<wbr>Access<wbr>Token</a></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="ioauth1client.html#swaprequesttokenforaccesstoken" class="tsd-kind-icon">swap<wbr>Request<wbr>Tokenfor<wbr>Access<wbr>Token</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="agent" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagOptional">Optional</span> agent</h3>
<div class="tsd-signature tsd-kind-icon">agent<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Agent</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/XeroAPI/xero-node/blob/67fb1a7/src/internals/OAuth1HttpClient.ts#L41">internals/OAuth1HttpClient.ts:41</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
<a name="buildauthoriseurl" class="tsd-anchor"></a>
<h3>build<wbr>Authorise<wbr>Url</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
<li class="tsd-signature tsd-kind-icon">build<wbr>Authorise<wbr>Url<span class="tsd-signature-symbol">(</span>requestToken<span class="tsd-signature-symbol">: </span><a href="requesttoken.html" class="tsd-signature-type">RequestToken</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/XeroAPI/xero-node/blob/67fb1a7/src/internals/OAuth1HttpClient.ts#L43">internals/OAuth1HttpClient.ts:43</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>requestToken: <a href="requesttoken.html" class="tsd-signature-type">RequestToken</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
<a name="getrequesttoken" class="tsd-anchor"></a>
<h3>get<wbr>Request<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
<li class="tsd-signature tsd-kind-icon">get<wbr>Request<wbr>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="requesttoken.html" class="tsd-signature-type">RequestToken</a><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/XeroAPI/xero-node/blob/67fb1a7/src/internals/OAuth1HttpClient.ts#L42">internals/OAuth1HttpClient.ts:42</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="requesttoken.html" class="tsd-signature-type">RequestToken</a><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
<a name="refreshaccesstoken" class="tsd-anchor"></a>
<h3>refresh<wbr>Access<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
<li class="tsd-signature tsd-kind-icon">refresh<wbr>Access<wbr>Token<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="accesstoken.html" class="tsd-signature-type">AccessToken</a><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/XeroAPI/xero-node/blob/67fb1a7/src/internals/OAuth1HttpClient.ts#L45">internals/OAuth1HttpClient.ts:45</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="accesstoken.html" class="tsd-signature-type">AccessToken</a><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
<a name="swaprequesttokenforaccesstoken" class="tsd-anchor"></a>
<h3>swap<wbr>Request<wbr>Tokenfor<wbr>Access<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
<li class="tsd-signature tsd-kind-icon">swap<wbr>Request<wbr>Tokenfor<wbr>Access<wbr>Token<span class="tsd-signature-symbol">(</span>requestToken<span class="tsd-signature-symbol">: </span><a href="requesttoken.html" class="tsd-signature-type">RequestToken</a>, oauth_verifier<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="accesstoken.html" class="tsd-signature-type">AccessToken</a><span class="tsd-signature-symbol">></span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/XeroAPI/xero-node/blob/67fb1a7/src/internals/OAuth1HttpClient.ts#L44">internals/OAuth1HttpClient.ts:44</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>requestToken: <a href="requesttoken.html" class="tsd-signature-type">RequestToken</a></h5>
</li>
<li>
<h5>oauth_verifier: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="accesstoken.html" class="tsd-signature-type">AccessToken</a><span class="tsd-signature-symbol">></span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-is-private">
<a href="ioauth1client.html" class="tsd-kind-icon">IOAuth1<wbr>Client</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="ioauth1client.html#agent" class="tsd-kind-icon">agent</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface">
<a href="ioauth1client.html#buildauthoriseurl" class="tsd-kind-icon">build<wbr>Authorise<wbr>Url</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface">
<a href="ioauth1client.html#getrequesttoken" class="tsd-kind-icon">get<wbr>Request<wbr>Token</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface">
<a href="ioauth1client.html#refreshaccesstoken" class="tsd-kind-icon">refresh<wbr>Access<wbr>Token</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-interface">
<a href="ioauth1client.html#swaprequesttokenforaccesstoken" class="tsd-kind-icon">swap<wbr>Request<wbr>Tokenfor<wbr>Access<wbr>Token</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
(;CA[UTF-8]AP[YuanYu]GM[1]FF[4]
SZ[19]
GN[]
DT[2018-06-12]
PB[骊龙]BR[9段]
PW[金毛测试]WR[9段]
KM[750]HA[0]RU[Japanese]RE[B+R]TM[60]TC[10]TT[60]
;B[dd];W[dp];B[pc];W[pp];B[pf];W[cc];B[dc];W[cd];B[cf];W[ce];B[de]
;W[bf];B[qn];W[qh];B[qj];W[oh];B[ng];W[hd];B[jd];W[df];B[cg];W[bg]
;B[ch];W[ef];B[cb];W[bb];B[bc];W[db];B[be];W[ca];B[bd];W[cb];B[bh]
;W[fd];B[nq];W[np];B[mp];W[no];B[oq];W[pq];B[lq];W[ql];B[pm];W[pl]
;B[om];W[rp];B[ro];W[mo];B[lo];W[ln];B[ko];W[mr];B[mq];W[po];B[oj]
;W[pj];B[pk];W[ol];B[nl];W[ok];B[pi];W[nk];B[mm];W[ph];B[rm];W[or]
;B[nr];W[rl];B[nj];W[ml];B[nm];W[mj];B[lm];W[mi];B[rq];W[sp];B[rr]
;W[kn];B[mn];W[sm];B[rn];W[jo];B[jn];W[km];B[ll];W[jp];B[jm];W[qr]
;B[qp];W[qq];B[qo];W[sr];B[rs];W[kl];B[kk])
|
{
"pile_set_name": "Github"
}
|
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Texture name="TalentBranchTemplate" file="Interface\TalentFrame\UI-TalentBranches" virtual="true">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Texture name="TalentArrowTemplate" file="Interface\TalentFrame\UI-TalentArrows" virtual="true">
<Size>
<AbsDimension x="30" y="30"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
<Button name="PvpTalentSlotTemplate" virtual="true" mixin="PvpTalentSlotMixin" motionScriptsWhileDisabled="true">
<Size x="58" y="58"/>
<Layers>
<Layer level="BACKGROUND">
<Texture parentKey="Texture">
<Size x="33" y="33"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<Layer level="BORDER">
<Texture parentKey="Arrow" atlas="pvptalents-selectedarrow" hidden="true">
<Size x="28" y="29"/>
<Anchors>
<Anchor point="LEFT" relativeKey="$parent.Border" relativePoint="RIGHT" x="-8" y="0"/>
</Anchors>
</Texture>
</Layer>
<Layer level="ARTWORK">
<Texture parentKey="Border" atlas="pvptalents-talentborder" setAllPoints="true"/>
<FontString parentKey="TalentName" inherits="GameFontHighlightSmall" hidden="true">
<Size x="100" y="5"/>
<Anchors>
<Anchor point="TOP" relativeKey="$parent.Border" relativePoint="BOTTOM" x="1" y="1"/>
</Anchors>
</FontString>
</Layer>
<Layer level="OVERLAY">
<FontString parentKey="New" inherits="GameFontHighlight" maxLines="1" justifyH="CENTER" text="NEW_CAPS" hidden="true">
<Anchors>
<Anchor point="CENTER" x="-8" y="8" relativePoint="BOTTOMRIGHT"/>
</Anchors>
<Shadow>
<Color r="0.32" g="0.5" b="1.0"/>
</Shadow>
</FontString>
<Texture parentKey="NewGlow" atlas="collections-newglow" hidden="true">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.New" x="-20" y="10"/>
<Anchor point="BOTTOMRIGHT" relativeKey="$parent.New" x="20" y="-10"/>
</Anchors>
</Texture>
</Layer>
</Layers>
<Scripts>
<OnLoad method="OnLoad"/>
<OnShow method="OnShow"/>
<OnHide method="OnHide"/>
<OnEvent method="OnEvent"/>
<OnEnter method="OnEnter"/>
<OnLeave function="GameTooltip_Hide"/>
<OnDragStart method="OnDragStart"/>
<OnClick method="OnClick"/>
</Scripts>
</Button>
</Ui>
|
{
"pile_set_name": "Github"
}
|
package schemaherokubectlcli
import (
"fmt"
"os"
"path/filepath"
"github.com/pkg/errors"
"github.com/schemahero/schemahero/pkg/database"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
func PlanCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "plan",
Short: "plan a spec application against a database",
Long: `...`,
SilenceUsage: true,
PreRun: func(cmd *cobra.Command, args []string) {
viper.BindPFlags(cmd.Flags())
},
RunE: func(cmd *cobra.Command, args []string) error {
v := viper.GetViper()
// to support automaticenv, we can't use cobra required flags
driver := v.GetString("driver")
specFile := v.GetString("spec-file")
uri := v.GetString("uri")
host := v.GetStringSlice("host")
if driver == "" || specFile == "" || uri == "" || len(host) == 0 {
missing := []string{}
if driver == "" {
missing = append(missing, "driver")
}
if specFile == "" {
missing = append(missing, "spec-file")
}
// one of uri or host/port must be specified
if uri == "" && len(host) == 0 {
missing = append(missing, "uri or host(s)")
}
if len(missing) > 0 {
return fmt.Errorf("missing required params: %v", missing)
}
}
fi, err := os.Stat(v.GetString("spec-file"))
if err != nil {
return err
}
if _, err = os.Stat(v.GetString("out")); err == nil {
if !v.GetBool("overwrite") {
return errors.Errorf("file %s already exists", v.GetString("out"))
}
err = os.RemoveAll(v.GetString("out"))
if err != nil {
return errors.Wrap(err, "failed remove existing file")
}
}
var f *os.File
if v.GetString("out") != "" {
f, err = os.OpenFile(v.GetString("out"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}
defer f.Close()
}
db := database.Database{
InputDir: v.GetString("input-dir"),
OutputDir: v.GetString("output-dir"),
Driver: v.GetString("driver"),
URI: v.GetString("uri"),
Hosts: v.GetStringSlice("host"),
Username: v.GetString("username"),
Password: v.GetString("password"),
Keyspace: v.GetString("keyspace"),
}
if fi.Mode().IsDir() {
err := filepath.Walk(v.GetString("spec-file"), func(path string, info os.FileInfo, err error) error {
if !info.IsDir() {
statements, err := db.PlanSyncFromFile(path, v.GetString("spec-type"))
if err != nil {
return err
}
if f != nil {
for _, statement := range statements {
if _, err := f.WriteString(fmt.Sprintf("%s;\n", statement)); err != nil {
return err
}
}
} else {
for _, statement := range statements {
fmt.Printf("%s;\n", statement)
}
}
}
return nil
})
return err
} else {
statements, err := db.PlanSyncFromFile(v.GetString("spec-file"), v.GetString("spec-type"))
if err != nil {
return err
}
if f != nil {
for _, statement := range statements {
if _, err := f.WriteString(fmt.Sprintf("%s;\n", statement)); err != nil {
return err
}
}
} else {
for _, statement := range statements {
fmt.Printf("%s;\n", statement)
}
}
return nil
}
},
}
cmd.Flags().String("driver", "", "name of the database driver to use")
cmd.Flags().String("uri", "", "connection string uri to use")
cmd.Flags().String("username", "", "username to use when connecting")
cmd.Flags().String("password", "", "password to use when connecting")
cmd.Flags().StringSlice("host", []string{}, "hostname to use when connecting")
cmd.Flags().String("keyspace", "", "the keyspace to use for databases that support keyspaces")
cmd.Flags().String("spec-file", "", "filename or directory name containing the spec(s) to apply")
cmd.Flags().String("spec-type", "table", "type of spec in spec-file")
cmd.Flags().String("out", "", "filename to write DDL statements to, if not present output file be written to stdout")
cmd.Flags().Bool("overwrite", true, "when set, will overwrite the out file, if it already exists")
return cmd
}
|
{
"pile_set_name": "Github"
}
|
/**
* Handles opening of and synchronization with the reveal.js
* notes window.
*/
var RevealNotes = (function() {
function openNotes() {
var notesPopup = window.open( 'plugin/notes/notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
// Fires when slide is changed
Reveal.addEventListener( 'slidechanged', function( event ) {
post('slidechanged');
} );
// Fires when a fragment is shown
Reveal.addEventListener( 'fragmentshown', function( event ) {
post('fragmentshown');
} );
// Fires when a fragment is hidden
Reveal.addEventListener( 'fragmenthidden', function( event ) {
post('fragmenthidden');
} );
/**
* Posts the current slide data to the notes window
*
* @param {String} eventType Expecting 'slidechanged', 'fragmentshown'
* or 'fragmenthidden' set in the events above to define the needed
* slideDate.
*/
function post( eventType ) {
var slideElement = Reveal.getCurrentSlide(),
messageData;
if( eventType === 'slidechanged' ) {
var notes = slideElement.querySelector( 'aside.notes' ),
indexh = Reveal.getIndices().h,
indexv = Reveal.getIndices().v,
nextindexh,
nextindexv;
if( slideElement.nextElementSibling && slideElement.parentNode.nodeName == 'SECTION' ) {
nextindexh = indexh;
nextindexv = indexv + 1;
} else {
nextindexh = indexh + 1;
nextindexv = 0;
}
messageData = {
notes : notes ? notes.innerHTML : '',
indexh : indexh,
indexv : indexv,
nextindexh : nextindexh,
nextindexv : nextindexv,
markdown : notes ? typeof notes.getAttribute( 'data-markdown' ) === 'string' : false
};
}
else if( eventType === 'fragmentshown' ) {
messageData = {
fragment : 'next'
};
}
else if( eventType === 'fragmenthidden' ) {
messageData = {
fragment : 'prev'
};
}
notesPopup.postMessage( JSON.stringify( messageData ), '*' );
}
// Navigate to the current slide when the notes are loaded
notesPopup.addEventListener( 'load', function( event ) {
post('slidechanged');
}, false );
}
// If the there's a 'notes' query set, open directly
if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
openNotes();
}
// Open the notes when the 's' key is hit
document.addEventListener( 'keydown', function( event ) {
// Disregard the event if the target is editable or a
// modifier is present
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
if( event.keyCode === 83 ) {
event.preventDefault();
openNotes();
}
}, false );
return { open: openNotes };
})();
|
{
"pile_set_name": "Github"
}
|
<?php
function echoln($str) {
echo $str;
echo "\n";
}
function usage($reason) {
echoln("Usage: php build-nix.php [flags]");
echoln("Flags in parantheses are optional");
echoln("");
echoln(" --bits=[32,64]");
echoln(" --function=[curve25519,ed25519]");
echoln(" (--compiler=[*gcc,clang,icc]) which compiler to use, gcc is default");
echoln(" (--with-openssl) use openssl for SHA512");
echoln(" (--with-sse2) additionally fuzz against SSE2");
echoln(" (--no-asm) don't use platform specific asm");
echoln("");
if ($reason)
echoln($reason);
}
function cleanup() {
system("rm -f *.o");
}
function runcmd($desc, $cmd) {
echoln($desc);
$ret = 0;
system($cmd, $ret);
if ($ret) {
cleanup();
exit;
}
}
class argument {
var $set, $value;
}
class multiargument extends argument {
function multiargument($flag, $legal_values) {
global $argc, $argv;
$this->set = false;
$map = array();
foreach($legal_values as $value)
$map[$value] = true;
for ($i = 1; $i < $argc; $i++) {
if (!preg_match("!--".$flag."=(.*)!", $argv[$i], $m))
continue;
if (isset($map[$m[1]])) {
$this->value = $m[1];
$this->set = true;
return;
} else {
usage("{$m[1]} is not a valid parameter to --{$flag}!");
exit(1);
}
}
}
}
class flag extends argument {
function flag($flag) {
global $argc, $argv;
$this->set = false;
$flag = "--{$flag}";
for ($i = 1; $i < $argc; $i++) {
if ($argv[$i] !== $flag)
continue;
$this->value = true;
$this->set = true;
return;
}
}
}
$bits = new multiargument("bits", array("32", "64"));
$function = new multiargument("function", array("curve25519", "ed25519"));
$compiler = new multiargument("compiler", array("gcc", "clang", "icc"));
$with_sse2 = new flag("with-sse2");
$with_openssl = new flag("with-openssl");
$no_asm = new flag("no-asm");
$err = "";
if (!$bits->set)
$err .= "--bits not set\n";
if (!$function->set)
$err .= "--function not set\n";
if ($err !== "") {
usage($err);
exit;
}
$compile = ($compiler->set) ? $compiler->value : "gcc";
$link = "";
$flags = "-O3 -m{$bits->value}";
$ret = 0;
if ($with_openssl->set) $link .= " -lssl -lcrypto";
if (!$with_openssl->set) $flags .= " -DED25519_REFHASH -DED25519_TEST";
if ($no_asm->set) $flags .= " -DED25519_NO_INLINE_ASM";
if ($function->value === "curve25519") {
runcmd("building ref10..", "{$compile} {$flags} curve25519-ref10.c -c -o curve25519-ref10.o");
runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o");
if ($with_sse2->set) {
runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2");
$flags .= " -DED25519_SSE2";
$link .= " ed25519-sse2.o";
}
runcmd("linking..", "{$compile} {$flags} {$link} fuzz-curve25519.c ed25519.o curve25519-ref10.o -o fuzz-curve25519");
echoln("fuzz-curve25519 built.");
} else if ($function->value === "ed25519") {
runcmd("building ref10..", "{$compile} {$flags} ed25519-ref10.c -c -o ed25519-ref10.o");
runcmd("building ed25519..", "{$compile} {$flags} ed25519-donna.c -c -o ed25519.o");
if ($with_sse2->set) {
runcmd("building ed25519-sse2..", "{$compile} {$flags} ed25519-donna-sse2.c -c -o ed25519-sse2.o -msse2");
$flags .= " -DED25519_SSE2";
$link .= " ed25519-sse2.o";
}
runcmd("linking..", "{$compile} {$flags} {$link} fuzz-ed25519.c ed25519.o ed25519-ref10.o -o fuzz-ed25519");
echoln("fuzz-ed25519 built.");
}
cleanup();
?>
|
{
"pile_set_name": "Github"
}
|
{{$rin := RandTen}}
<div id="{{$rin}}">
<h5 class="text-muted">Log details</h5>
<div class="list-group">
<div class="list-group-item">
<h4><i class="fa fa-time"></i> {{.Time}}</h4>
</div>
{{with .Bugs}}
{{range .}}
<div class="list-group-item"><p class="text-muted pull-right"><i class="fa fa-warning"></i></p> <p>{{.Line}}</p>
<p class="reference" data-link="{{.Action}}" >{{parseLog .Action}}</p>
<p ><label class="label label-big label-warning" >{{.CTA}}</label></p>
</div>
{{end}}
{{end}}
<div class="list-group-item">
<h4><i class="fa fa-list"></i> Full log</h4>
<pre style="max-height: 800px"><code>{{printf "%s" .RawLog}}</code></pre>
</div>
</div>
<!-- <script type="text/javascript">
$maphedg = {"meth":"Pipelines section","structs":"Interface declarations' section","service": "Web service","main" : "your main function","init":"your init function","edit":"Edit Go go source"};
setTimeout(function(){
$(".reference", "#" + {{$rin}}).each(function(e,i){
if($(this).attr("data-link") != ""){
parts = $(this).attr("data-link").split(":")
if ( $(this).attr("data-link").includes("service:") ) {
$(this).html("The line is located in " + $maphedg[parts[0]] + "( " + parts[1] + ") at line: " + parts[2] + " of package " + {{.PKG}})
} else if ( !$(this).attr("data-link").includes("edit:") ){
$(this).html("The line is located in " + $maphedg[parts[0]] + " at line: " + parts[1] + " of package " + {{.PKG}})
}
}
return false;
});
}, 400);
</script> -->
</div>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="thread_dealloc_unittest"
ProjectGUID="{6CFFBD0F-09E3-4282-A711-0564451FDF74}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/thread_dealloc_unittest.exe"
LinkIncremental="2"
ForceSymbolReferences="__tcmalloc"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/thread_dealloc_unittest.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/thread_dealloc_unittest.exe"
LinkIncremental="1"
ForceSymbolReferences="__tcmalloc"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath="..\..\src\tests\testutil.cc">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
RuntimeLibrary="3"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
RuntimeLibrary="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\src\tests\thread_dealloc_unittest.cc">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
RuntimeLibrary="3"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
RuntimeLibrary="2"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath="..\..\src\windows\config.h">
</File>
<File
RelativePath="..\..\src\config_for_unittests.h">
</File>
<File
RelativePath="..\..\src\windows\port.h">
</File>
<File
RelativePath="..\..\src\tests\testutil.h">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="gtest_main"
ProjectGUID="{3AF54C8A-10BF-4332-9147-F68ED9862032}"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="false"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="1"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/$(ProjectName)d.lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
RuntimeLibrary="0"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="1"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/$(ProjectName).lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
<ProjectReference
ReferencedProjectIdentifier="{C8F6C172-56F2-4E76-B5FA-C3B423B31BE7}"
RelativePathToProject="..\gtest\msvc\gtest.vcproj"
/>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\src\gtest_main.cc"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""..";"..\include""
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories=""..";"..\include""
/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\include\gtest\internal\gtest-death-test-internal.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest-death-test.h"
>
</File>
<File
RelativePath="..\include\gtest\internal\gtest-filepath.h"
>
</File>
<File
RelativePath="..\src\gtest-internal-inl.h"
>
</File>
<File
RelativePath="..\include\gtest\internal\gtest-internal.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest-message.h"
>
</File>
<File
RelativePath="..\include\gtest\internal\gtest-port.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest-spi.h"
>
</File>
<File
RelativePath="..\include\gtest\internal\gtest-string.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest_pred_impl.h"
>
</File>
<File
RelativePath="..\include\gtest\gtest_prod.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="ddslib"
ProjectGUID="{8576EC58-4E54-49C0-879A-F054C92B1D03}">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Release|Win32"
OutputDirectory=".\Release"
IntermediateDirectory=".\Release"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories=".."
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
StringPooling="TRUE"
ExceptionHandling="FALSE"
BasicRuntimeChecks="0"
RuntimeLibrary="2"
BufferSecurityCheck="FALSE"
EnableFunctionLevelLinking="TRUE"
PrecompiledHeaderFile=".\Release/ddslib.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
BrowseInformation="1"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Release\ddslib.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Debug|Win32"
OutputDirectory=".\Debug"
IntermediateDirectory=".\Debug"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".."
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
ExceptionHandling="FALSE"
BasicRuntimeChecks="0"
RuntimeLibrary="3"
BufferSecurityCheck="FALSE"
PrecompiledHeaderFile=".\Debug/ddslib.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
BrowseInformation="0"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="4"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile=".\Debug\ddslib.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="src"
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
<File
RelativePath="ddslib.c">
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
BrowseInformation="1"/>
</FileConfiguration>
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
BasicRuntimeChecks="3"
BrowseInformation="1"/>
</FileConfiguration>
</File>
<File
RelativePath="..\ddslib.h">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright 2014 Freescale Semiconductor, Inc.
*
* calculate the organization and timing parameter
* from ddr3 spd, please refer to the spec
* JEDEC standard No.21-C 4_01_02_12R23A.pdf
*
*
*/
#include <common.h>
#include <fsl_ddr_sdram.h>
#include <fsl_ddr.h>
/*
* Calculate the Density of each Physical Rank.
* Returned size is in bytes.
*
* Total DIMM size =
* sdram capacity(bit) / 8 * primary bus width / sdram width
* * Logical Ranks per DIMM
*
* where: sdram capacity = spd byte4[3:0]
* primary bus width = spd byte13[2:0]
* sdram width = spd byte12[2:0]
* Logical Ranks per DIMM = spd byte12[5:3] for SDP, DDP, QDP
* spd byte12{5:3] * spd byte6[6:4] for 3DS
*
* To simplify each rank size = total DIMM size / Number of Package Ranks
* where Number of Package Ranks = spd byte12[5:3]
*
* SPD byte4 - sdram density and banks
* bit[3:0] size(bit) size(byte)
* 0000 256Mb 32MB
* 0001 512Mb 64MB
* 0010 1Gb 128MB
* 0011 2Gb 256MB
* 0100 4Gb 512MB
* 0101 8Gb 1GB
* 0110 16Gb 2GB
* 0111 32Gb 4GB
*
* SPD byte13 - module memory bus width
* bit[2:0] primary bus width
* 000 8bits
* 001 16bits
* 010 32bits
* 011 64bits
*
* SPD byte12 - module organization
* bit[2:0] sdram device width
* 000 4bits
* 001 8bits
* 010 16bits
* 011 32bits
*
* SPD byte12 - module organization
* bit[5:3] number of package ranks per DIMM
* 000 1
* 001 2
* 010 3
* 011 4
*
* SPD byte6 - SDRAM package type
* bit[6:4] Die count
* 000 1
* 001 2
* 010 3
* 011 4
* 100 5
* 101 6
* 110 7
* 111 8
*
* SPD byte6 - SRAM package type
* bit[1:0] Signal loading
* 00 Not specified
* 01 Multi load stack
* 10 Sigle load stack (3DS)
* 11 Reserved
*/
static unsigned long long
compute_ranksize(const struct ddr4_spd_eeprom_s *spd)
{
unsigned long long bsize;
int nbit_sdram_cap_bsize = 0;
int nbit_primary_bus_width = 0;
int nbit_sdram_width = 0;
int die_count = 0;
bool package_3ds;
if ((spd->density_banks & 0xf) <= 7)
nbit_sdram_cap_bsize = (spd->density_banks & 0xf) + 28;
if ((spd->bus_width & 0x7) < 4)
nbit_primary_bus_width = (spd->bus_width & 0x7) + 3;
if ((spd->organization & 0x7) < 4)
nbit_sdram_width = (spd->organization & 0x7) + 2;
package_3ds = (spd->package_type & 0x3) == 0x2;
if (package_3ds)
die_count = (spd->package_type >> 4) & 0x7;
bsize = 1ULL << (nbit_sdram_cap_bsize - 3 +
nbit_primary_bus_width - nbit_sdram_width +
die_count);
debug("DDR: DDR III rank density = 0x%16llx\n", bsize);
return bsize;
}
#define spd_to_ps(mtb, ftb) \
(mtb * pdimm->mtb_ps + (ftb * pdimm->ftb_10th_ps) / 10)
/*
* ddr_compute_dimm_parameters for DDR3 SPD
*
* Compute DIMM parameters based upon the SPD information in spd.
* Writes the results to the dimm_params_t structure pointed by pdimm.
*
*/
unsigned int
ddr_compute_dimm_parameters(const generic_spd_eeprom_t *spd,
dimm_params_t *pdimm,
unsigned int dimm_number)
{
unsigned int retval;
int i;
if (spd->mem_type) {
if (spd->mem_type != SPD_MEMTYPE_DDR4) {
printf("DIMM %u: is not a DDR4 SPD.\n", dimm_number);
return 1;
}
} else {
memset(pdimm, 0, sizeof(dimm_params_t));
return 1;
}
retval = ddr4_spd_check(spd);
if (retval) {
printf("DIMM %u: failed checksum\n", dimm_number);
return 2;
}
/*
* The part name in ASCII in the SPD EEPROM is not null terminated.
* Guarantee null termination here by presetting all bytes to 0
* and copying the part name in ASCII from the SPD onto it
*/
memset(pdimm->mpart, 0, sizeof(pdimm->mpart));
if ((spd->info_size_crc & 0xF) > 2)
memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1);
/* DIMM organization parameters */
pdimm->n_ranks = ((spd->organization >> 3) & 0x7) + 1;
pdimm->rank_density = compute_ranksize(spd);
pdimm->capacity = pdimm->n_ranks * pdimm->rank_density;
pdimm->primary_sdram_width = 1 << (3 + (spd->bus_width & 0x7));
if ((spd->bus_width >> 3) & 0x3)
pdimm->ec_sdram_width = 8;
else
pdimm->ec_sdram_width = 0;
pdimm->data_width = pdimm->primary_sdram_width
+ pdimm->ec_sdram_width;
pdimm->device_width = 1 << ((spd->organization & 0x7) + 2);
/* These are the types defined by the JEDEC DDR3 SPD spec */
pdimm->mirrored_dimm = 0;
pdimm->registered_dimm = 0;
switch (spd->module_type & DDR3_SPD_MODULETYPE_MASK) {
case DDR3_SPD_MODULETYPE_RDIMM:
/* Registered/buffered DIMMs */
pdimm->registered_dimm = 1;
break;
case DDR3_SPD_MODULETYPE_UDIMM:
case DDR3_SPD_MODULETYPE_SO_DIMM:
/* Unbuffered DIMMs */
if (spd->mod_section.unbuffered.addr_mapping & 0x1)
pdimm->mirrored_dimm = 1;
break;
default:
printf("unknown module_type 0x%02X\n", spd->module_type);
return 1;
}
/* SDRAM device parameters */
pdimm->n_row_addr = ((spd->addressing >> 3) & 0x7) + 12;
pdimm->n_col_addr = (spd->addressing & 0x7) + 9;
pdimm->bank_addr_bits = (spd->density_banks >> 4) & 0x3;
pdimm->bank_group_bits = (spd->density_banks >> 6) & 0x3;
/*
* The SPD spec has not the ECC bit,
* We consider the DIMM as ECC capability
* when the extension bus exist
*/
if (pdimm->ec_sdram_width)
pdimm->edc_config = 0x02;
else
pdimm->edc_config = 0x00;
/*
* The SPD spec has not the burst length byte
* but DDR4 spec has nature BL8 and BC4,
* BL8 -bit3, BC4 -bit2
*/
pdimm->burst_lengths_bitmask = 0x0c;
pdimm->row_density = __ilog2(pdimm->rank_density);
/* MTB - medium timebase
* The MTB in the SPD spec is 125ps,
*
* FTB - fine timebase
* use 1/10th of ps as our unit to avoid floating point
* eg, 10 for 1ps, 25 for 2.5ps, 50 for 5ps
*/
if ((spd->timebases & 0xf) == 0x0) {
pdimm->mtb_ps = 125;
pdimm->ftb_10th_ps = 10;
} else {
printf("Unknown Timebases\n");
}
/* sdram minimum cycle time */
pdimm->tckmin_x_ps = spd_to_ps(spd->tck_min, spd->fine_tck_min);
/* sdram max cycle time */
pdimm->tckmax_ps = spd_to_ps(spd->tck_max, spd->fine_tck_max);
/*
* CAS latency supported
* bit0 - CL7
* bit4 - CL11
* bit8 - CL15
* bit12- CL19
* bit16- CL23
*/
pdimm->caslat_x = (spd->caslat_b1 << 7) |
(spd->caslat_b2 << 15) |
(spd->caslat_b3 << 23);
BUG_ON(spd->caslat_b4 != 0);
/*
* min CAS latency time
*/
pdimm->taa_ps = spd_to_ps(spd->taa_min, spd->fine_taa_min);
/*
* min RAS to CAS delay time
*/
pdimm->trcd_ps = spd_to_ps(spd->trcd_min, spd->fine_trcd_min);
/*
* Min Row Precharge Delay Time
*/
pdimm->trp_ps = spd_to_ps(spd->trp_min, spd->fine_trp_min);
/* min active to precharge delay time */
pdimm->tras_ps = (((spd->tras_trc_ext & 0xf) << 8) +
spd->tras_min_lsb) * pdimm->mtb_ps;
/* min active to actice/refresh delay time */
pdimm->trc_ps = spd_to_ps((((spd->tras_trc_ext & 0xf0) << 4) +
spd->trc_min_lsb), spd->fine_trc_min);
/* Min Refresh Recovery Delay Time */
pdimm->trfc1_ps = ((spd->trfc1_min_msb << 8) | (spd->trfc1_min_lsb)) *
pdimm->mtb_ps;
pdimm->trfc2_ps = ((spd->trfc2_min_msb << 8) | (spd->trfc2_min_lsb)) *
pdimm->mtb_ps;
pdimm->trfc4_ps = ((spd->trfc4_min_msb << 8) | (spd->trfc4_min_lsb)) *
pdimm->mtb_ps;
/* min four active window delay time */
pdimm->tfaw_ps = (((spd->tfaw_msb & 0xf) << 8) | spd->tfaw_min) *
pdimm->mtb_ps;
/* min row active to row active delay time, different bank group */
pdimm->trrds_ps = spd_to_ps(spd->trrds_min, spd->fine_trrds_min);
/* min row active to row active delay time, same bank group */
pdimm->trrdl_ps = spd_to_ps(spd->trrdl_min, spd->fine_trrdl_min);
/* min CAS to CAS Delay Time (tCCD_Lmin), same bank group */
pdimm->tccdl_ps = spd_to_ps(spd->tccdl_min, spd->fine_tccdl_min);
/*
* Average periodic refresh interval
* tREFI = 7.8 us at normal temperature range
*/
pdimm->refresh_rate_ps = 7800000;
for (i = 0; i < 18; i++)
pdimm->dq_mapping[i] = spd->mapping[i];
pdimm->dq_mapping_ors = ((spd->mapping[0] >> 6) & 0x3) == 0 ? 1 : 0;
return 0;
}
|
{
"pile_set_name": "Github"
}
|
{
"kvasir":{
"io":{
"default":{
"type":"group",
"ports":"A-E",
"peripheral":"GPIO%s"
},
"output":{
"value":1,
"register":"PDDR"
},
"input":{
"value":0,
"register":"PDDR"
},
"set":{
"value":1,
"register":"PSOR"
},
"clear":{
"value":1,
"register":"PCOR"
},
"toggle":{
"value":1,
"register":"PTOR"
},
"read":{
"register":"PDIR"
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
Name="HTTPTimeServer"
Version="9.00"
ProjectType="Visual C++"
ProjectGUID="{18A0143A-444A-38E3-838C-1ACFBE4EE18C}"
RootNamespace="HTTPTimeServer"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<ToolFiles/>
<Configurations>
<Configuration
Name="debug_shared|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;WINVER=0x0500;"
StringPooling="true"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
BufferSecurityCheck="true"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="ws2_32.lib iphlpapi.lib"
OutputFile="bin\HTTPTimeServerd.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\..\lib"
SuppressStartupBanner="true"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\HTTPTimeServerd.pdb"
SubSystem="1"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
<Configuration
Name="release_shared|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="4"
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
OmitFramePointers="true"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;WINVER=0x0500;"
StringPooling="true"
RuntimeLibrary="2"
BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="ws2_32.lib iphlpapi.lib"
OutputFile="bin\HTTPTimeServer.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\..\lib"
GenerateDebugInformation="false"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
<Configuration
Name="debug_static_mt|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="4"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;WINVER=0x0500;POCO_STATIC;"
StringPooling="true"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
BufferSecurityCheck="true"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="iphlpapi.lib winmm.lib ws2_32.lib iphlpapi.lib"
OutputFile="bin\static_mt\HTTPTimeServerd.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\..\lib"
SuppressStartupBanner="true"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\static_mt\HTTPTimeServerd.pdb"
SubSystem="1"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
<Configuration
Name="release_static_mt|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="4"
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
OmitFramePointers="true"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;WINVER=0x0500;POCO_STATIC;"
StringPooling="true"
RuntimeLibrary="0"
BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="iphlpapi.lib winmm.lib ws2_32.lib iphlpapi.lib"
OutputFile="bin\static_mt\HTTPTimeServer.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\..\lib"
GenerateDebugInformation="false"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
<Configuration
Name="debug_static_md|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="4"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;WINVER=0x0500;POCO_STATIC;"
StringPooling="true"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
BufferSecurityCheck="true"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="iphlpapi.lib winmm.lib ws2_32.lib iphlpapi.lib"
OutputFile="bin\static_md\HTTPTimeServerd.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\..\lib"
SuppressStartupBanner="true"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\static_md\HTTPTimeServerd.pdb"
SubSystem="1"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
<Configuration
Name="release_static_md|Win32"
OutputDirectory="obj\$(ConfigurationName)"
IntermediateDirectory="obj\$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCCLCompilerTool"
Optimization="4"
InlineFunctionExpansion="1"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
OmitFramePointers="true"
AdditionalIncludeDirectories=".\include;..\..\..\Foundation\include;..\..\..\XML\include;..\..\..\Util\include;..\..\..\Net\include"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;WINVER=0x0500;POCO_STATIC;"
StringPooling="true"
RuntimeLibrary="2"
BufferSecurityCheck="false"
TreatWChar_tAsBuiltInType="true"
ForceConformanceInForLoopScope="true"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="0"
CompileAs="0"
DisableSpecificWarnings=""
AdditionalOptions=""/>
<Tool
Name="VCManagedResourceCompilerTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="iphlpapi.lib winmm.lib ws2_32.lib iphlpapi.lib"
OutputFile="bin\static_md\HTTPTimeServer.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\..\lib"
GenerateDebugInformation="false"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
AdditionalOptions=""/>
<Tool
Name="VCALinkTool"/>
<Tool
Name="VCManifestTool"/>
<Tool
Name="VCXDCMakeTool"/>
<Tool
Name="VCBscMakeTool"/>
<Tool
Name="VCFxCopTool"/>
<Tool
Name="VCAppVerifierTool"/>
<Tool
Name="VCPostBuildEventTool"/>
</Configuration>
</Configurations>
<References/>
<Files>
<Filter
Name="Page Files">
<File
RelativePath=".\src\TimeHandler.cpsp"/>
</Filter>
<Filter
Name="Source Files">
<File
RelativePath=".\src\HTTPTimeServerApp.cpp"/>
</Filter>
<Filter
Name="Generated Files">
<File
RelativePath=".\src\TimeHandler.cpp"/>
<File
RelativePath=".\src\TimeHandler.h"/>
</Filter>
</Files>
<Globals/>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
; Function compile flags: /Odtpy
; COMDAT _pypy_g__inplace_divrem1
_TEXT SEGMENT
tv158 = -292 ; size = 4
tv152 = -288 ; size = 4
tv72 = -284 ; size = 4
tv65 = -280 ; size = 4
_l_v30733$ = -273 ; size = 1
_l_v30737$ = -272 ; size = 8
_l_v30740$ = -257 ; size = 1
_l_v30744$ = -256 ; size = 4
_l_v30753$ = -252 ; size = 4
_l_v30748$ = -248 ; size = 8
_l_v30709$ = -233 ; size = 1
_l_v30710$ = -232 ; size = 1
_l_v30714$ = -231 ; size = 1
_l_v30718$ = -230 ; size = 1
_l_v30729$ = -229 ; size = 1
_l_v30725$ = -228 ; size = 4
_l_v30705$ = -224 ; size = 8
_l_evalue_70$ = -216 ; size = 4
_l_index_219$ = -212 ; size = 4
_l_v30738$ = -205 ; size = 1
_l_v30730$ = -204 ; size = 4
_l_v30734$ = -200 ; size = 4
_l_length_82$ = -196 ; size = 4
_l_v30745$ = -189 ; size = 1
_l_v30752$ = -188 ; size = 4
_l_v30749$ = -184 ; size = 8
_l_l_100$ = -172 ; size = 4
_l_l_101$ = -168 ; size = 4
_l_length_83$ = -164 ; size = 4
_l_v30704$ = -160 ; size = 4
_l_v30722$ = -156 ; size = 4
_l_v30715$ = -152 ; size = 8
_l_v30726$ = -144 ; size = 8
_l_v30711$ = -132 ; size = 4
_l_x_97$ = -128 ; size = 4
_l_v30739$ = -121 ; size = 1
_l_v30731$ = -120 ; size = 8
_l_v30735$ = -112 ; size = 8
_l_v30742$ = -97 ; size = 1
_l_v30751$ = -96 ; size = 4
_l_v30707$ = -90 ; size = 1
_l_v30723$ = -89 ; size = 1
_l_v30712$ = -88 ; size = 4
_l_v30716$ = -84 ; size = 4
_l_v30703$ = -80 ; size = 8
_l_v30727$ = -72 ; size = 8
_l_v30732$ = -64 ; size = 8
_l_v30736$ = -56 ; size = 8
_l_index_218$ = -44 ; size = 4
_l_v30750$ = -40 ; size = 4
_l_v30754$ = -36 ; size = 4
_l_v30717$ = -30 ; size = 1
_l_v30720$ = -29 ; size = 1
_l_v30713$ = -28 ; size = 4
_l_v30702$ = -24 ; size = 8
_l_v30706$ = -16 ; size = 8
_l_v30728$ = -8 ; size = 8
_l_self_3688$ = 8 ; size = 4
_l_pin_1$ = 12 ; size = 4
_l_n_38$ = 16 ; size = 8
_l_size_53$ = 24 ; size = 4
_pypy_g__inplace_divrem1 PROC ; COMDAT
; 16550: long pypy_g__inplace_divrem1(struct pypy_pypy_rlib_rbigint_rbigint0 *l_self_3688, struct pypy_pypy_rlib_rbigint_rbigint0 *l_pin_1, long long l_n_38, long l_size_53) {
push ebp
mov ebp, esp
sub esp, 292 ; 00000124H
$block0$210880:
; 16551: struct pypy_object0 *l_evalue_70; long l_index_218; long l_index_219;
; 16552: struct pypy_array5 *l_l_100; struct pypy_array5 *l_l_101;
; 16553: long l_length_82; long l_length_83; bool_t l_v30707; bool_t l_v30709;
; 16554: bool_t l_v30710; bool_t l_v30714; bool_t l_v30717; bool_t l_v30718;
; 16555: bool_t l_v30720; bool_t l_v30723; bool_t l_v30729; bool_t l_v30733;
; 16556: bool_t l_v30738; bool_t l_v30739; bool_t l_v30740; bool_t l_v30742;
; 16557: bool_t l_v30745; long l_v30704; long l_v30712; long l_v30713;
; 16558: long l_v30716; long l_v30722; long l_v30725; long l_v30730;
; 16559: long l_v30734; long l_v30744; long l_v30750; long l_v30751;
; 16560: long l_v30752; long l_v30753; long l_v30754; long long l_v30702;
; 16561: long long l_v30703; long long l_v30705; long long l_v30706;
; 16562: long long l_v30715; long long l_v30726; long long l_v30727;
; 16563: long long l_v30728; long long l_v30731; long long l_v30732;
; 16564: long long l_v30735; long long l_v30736; long long l_v30737;
; 16565: long long l_v30748; long long l_v30749; struct pypy_array5 *l_v30711;
; 16566: long l_x_97;
; 16567:
; 16568: block0:
; 16569: OP_LLONG_GT(l_n_38, 0LL, l_v30707);
cmp DWORD PTR _l_n_38$[ebp+4], 0
jl SHORT $LN11@pypy_g__in
jg SHORT $LN19@pypy_g__in
cmp DWORD PTR _l_n_38$[ebp], 0
jbe SHORT $LN11@pypy_g__in
$LN19@pypy_g__in:
mov DWORD PTR tv65[ebp], 1
jmp SHORT $LN12@pypy_g__in
$LN11@pypy_g__in:
mov DWORD PTR tv65[ebp], 0
$LN12@pypy_g__in:
mov al, BYTE PTR tv65[ebp]
mov BYTE PTR _l_v30707$[ebp], al
; 16570: if (l_v30707) {
movzx ecx, BYTE PTR _l_v30707$[ebp]
test ecx, ecx
je SHORT $LN8@pypy_g__in
; 16571: goto block3;
jmp SHORT $block3$210882
$LN8@pypy_g__in:
; 16572: }
; 16573: l_evalue_70 = (&pypy_g_exceptions_AssertionError.ae_super.se_super.e_super);
mov DWORD PTR _l_evalue_70$[ebp], OFFSET _pypy_g_exceptions_AssertionError
$block1$210883:
; 16574: goto block1;
; 16575:
; 16576: block1:
; 16577: pypy_g_RPyRaiseException((&pypy_g_exceptions_AssertionError_vtable.ae_super.se_super.e_super), l_evalue_70);
mov edx, DWORD PTR _l_evalue_70$[ebp]
push edx
push OFFSET _pypy_g_exceptions_AssertionError_vtable
call _pypy_g_RPyRaiseException
;; expected {4(%ebp) | %ebx, %esi, %edi, (%ebp) | }
add esp, 8
; 16578: l_v30753 = -1L;
mov DWORD PTR _l_v30753$[ebp], -1
$block2$210884:
; 16579: goto block2;
; 16580:
; 16581: block2:
; 16582: RPY_DEBUG_RETURN();
; 16583: return l_v30753;
mov eax, DWORD PTR _l_v30753$[ebp]
jmp $LN9@pypy_g__in
$block3$210882:
; 16584:
; 16585: block3:
; 16586: OP_LLONG_LE(l_n_38, 2147483647LL, l_v30709);
cmp DWORD PTR _l_n_38$[ebp+4], 0
jg SHORT $LN13@pypy_g__in
jl SHORT $LN20@pypy_g__in
cmp DWORD PTR _l_n_38$[ebp], 2147483647 ; 7fffffffH
ja SHORT $LN13@pypy_g__in
$LN20@pypy_g__in:
mov DWORD PTR tv72[ebp], 1
jmp SHORT $LN14@pypy_g__in
$LN13@pypy_g__in:
mov DWORD PTR tv72[ebp], 0
$LN14@pypy_g__in:
mov al, BYTE PTR tv72[ebp]
mov BYTE PTR _l_v30709$[ebp], al
; 16587: if (l_v30709) {
movzx ecx, BYTE PTR _l_v30709$[ebp]
test ecx, ecx
je SHORT $LN7@pypy_g__in
; 16588: goto block4;
jmp SHORT $block4$210886
$LN7@pypy_g__in:
; 16589: }
; 16590: l_evalue_70 = (&pypy_g_exceptions_AssertionError.ae_super.se_super.e_super);
mov DWORD PTR _l_evalue_70$[ebp], OFFSET _pypy_g_exceptions_AssertionError
; 16591: goto block1;
jmp SHORT $block1$210883
$block4$210886:
; 16592:
; 16593: block4:
; 16594: OP_INT_IS_TRUE(l_size_53, l_v30710);
xor edx, edx
cmp DWORD PTR _l_size_53$[ebp], 0
setne dl
mov BYTE PTR _l_v30710$[ebp], dl
; 16595: if (l_v30710) {
movzx eax, BYTE PTR _l_v30710$[ebp]
test eax, eax
je SHORT $block5$210889
; 16596: l_v30754 = l_size_53;
mov ecx, DWORD PTR _l_size_53$[ebp]
mov DWORD PTR _l_v30754$[ebp], ecx
; 16597: goto block6;
jmp SHORT $block6$210888
$block5$210889:
; 16598: }
; 16599: goto block5;
; 16600:
; 16601: block5:
; 16602: l_v30711 = RPyField(l_pin_1, prrr_inst_digits);
mov edx, DWORD PTR _l_pin_1$[ebp]
mov eax, DWORD PTR [edx+8]
mov DWORD PTR _l_v30711$[ebp], eax
; 16603: l_v30712 = l_v30711->length;
mov ecx, DWORD PTR _l_v30711$[ebp]
mov edx, DWORD PTR [ecx+4]
mov DWORD PTR _l_v30712$[ebp], edx
; 16604: l_v30754 = l_v30712;
mov eax, DWORD PTR _l_v30712$[ebp]
mov DWORD PTR _l_v30754$[ebp], eax
$block6$210888:
; 16605: goto block6;
; 16606:
; 16607: block6:
; 16608: OP_INT_SUB(l_v30754, 1L, l_v30713);
mov ecx, DWORD PTR _l_v30754$[ebp]
sub ecx, 1
mov DWORD PTR _l_v30713$[ebp], ecx
; 16609: l_v30702 = 0LL;
mov DWORD PTR _l_v30702$[ebp], 0
mov DWORD PTR _l_v30702$[ebp+4], 0
; 16610: l_x_97 = l_v30713;
mov edx, DWORD PTR _l_v30713$[ebp]
mov DWORD PTR _l_x_97$[ebp], edx
$block7$210890:
; 16611: goto block7;
; 16612:
; 16613: block7:
; 16614: OP_INT_GE(l_x_97, 0L, l_v30714);
xor eax, eax
cmp DWORD PTR _l_x_97$[ebp], 0
setge al
mov BYTE PTR _l_v30714$[ebp], al
$LN5@pypy_g__in:
; 16615: while (l_v30714) {
movzx ecx, BYTE PTR _l_v30714$[ebp]
test ecx, ecx
je SHORT $block8$210896
; 16616: goto block9;
jmp SHORT $block9$210894
$block7_back$210895:
; 16617: block7_back: ;
; 16618: OP_INT_GE(l_x_97, 0L, l_v30714);
xor edx, edx
cmp DWORD PTR _l_x_97$[ebp], 0
setge dl
mov BYTE PTR _l_v30714$[ebp], dl
; 16619: }
jmp SHORT $LN5@pypy_g__in
$block8$210896:
; 16620: goto block8;
; 16621:
; 16622: block8:
; 16623: OP_LLONG_AND(l_v30702, 2147483647LL, l_v30715);
mov eax, DWORD PTR _l_v30702$[ebp]
and eax, 2147483647 ; 7fffffffH
mov ecx, DWORD PTR _l_v30702$[ebp+4]
and ecx, 0
mov DWORD PTR _l_v30715$[ebp], eax
mov DWORD PTR _l_v30715$[ebp+4], ecx
; 16624: OP_TRUNCATE_LONGLONG_TO_INT(l_v30715, l_v30716);
mov edx, DWORD PTR _l_v30715$[ebp]
mov DWORD PTR _l_v30716$[ebp], edx
; 16625: l_v30753 = l_v30716;
mov eax, DWORD PTR _l_v30716$[ebp]
mov DWORD PTR _l_v30753$[ebp], eax
; 16626: goto block2;
jmp $block2$210884
$block9$210894:
; 16627:
; 16628: block9:
; 16629: OP_LLONG_LSHIFT(l_v30702, 31LL, l_v30703);
mov eax, DWORD PTR _l_v30702$[ebp]
mov edx, DWORD PTR _l_v30702$[ebp+4]
mov cl, 31 ; 0000001fH
call __allshl
;; expected {4(%ebp) | %ebx, %esi, %edi, (%ebp) | }
mov DWORD PTR _l_v30703$[ebp], eax
mov DWORD PTR _l_v30703$[ebp+4], edx
; 16630: l_l_100 = RPyField(l_pin_1, prrr_inst_digits);
mov ecx, DWORD PTR _l_pin_1$[ebp]
mov edx, DWORD PTR [ecx+8]
mov DWORD PTR _l_l_100$[ebp], edx
; 16631: l_length_83 = l_l_100->length;
mov eax, DWORD PTR _l_l_100$[ebp]
mov ecx, DWORD PTR [eax+4]
mov DWORD PTR _l_length_83$[ebp], ecx
; 16632: OP_INT_LT(l_x_97, 0L, l_v30717);
xor edx, edx
cmp DWORD PTR _l_x_97$[ebp], 0
setl dl
mov BYTE PTR _l_v30717$[ebp], dl
; 16633: if (l_v30717) {
movzx eax, BYTE PTR _l_v30717$[ebp]
test eax, eax
je SHORT $LN3@pypy_g__in
; 16634: goto block14;
jmp $block14$210899
$LN3@pypy_g__in:
; 16635: }
; 16636: l_index_218 = l_x_97;
mov ecx, DWORD PTR _l_x_97$[ebp]
mov DWORD PTR _l_index_218$[ebp], ecx
$block10$210900:
; 16637: goto block10;
; 16638:
; 16639: block10:
; 16640: OP_INT_GE(l_index_218, 0L, l_v30718);
xor edx, edx
cmp DWORD PTR _l_index_218$[ebp], 0
setge dl
mov BYTE PTR _l_v30718$[ebp], dl
; 16641: RPyAssert(l_v30718, "negative list getitem index out of bound");
; 16642: OP_INT_LT(l_index_218, l_length_83, l_v30720);
mov eax, DWORD PTR _l_index_218$[ebp]
xor ecx, ecx
cmp eax, DWORD PTR _l_length_83$[ebp]
setl cl
mov BYTE PTR _l_v30720$[ebp], cl
; 16643: RPyAssert(l_v30720, "list getitem index out of bound");
; 16644: l_v30722 = l_l_100->length;
mov edx, DWORD PTR _l_l_100$[ebp]
mov eax, DWORD PTR [edx+4]
mov DWORD PTR _l_v30722$[ebp], eax
; 16645: OP_INT_LT(l_index_218, l_v30722, l_v30723);
mov ecx, DWORD PTR _l_index_218$[ebp]
xor edx, edx
cmp ecx, DWORD PTR _l_v30722$[ebp]
setl dl
mov BYTE PTR _l_v30723$[ebp], dl
; 16646: RPyAssert(l_v30723, "fixed getitem out of bounds");
; 16647: l_v30725 = RPyItem(l_l_100, l_index_218);
mov eax, DWORD PTR _l_index_218$[ebp]
mov ecx, DWORD PTR _l_l_100$[ebp]
mov edx, DWORD PTR [ecx+eax*4+8]
mov DWORD PTR _l_v30725$[ebp], edx
; 16648: OP_CAST_INT_TO_LONGLONG(l_v30725, l_v30726);
mov eax, DWORD PTR _l_v30725$[ebp]
cdq
mov DWORD PTR _l_v30726$[ebp], eax
mov DWORD PTR _l_v30726$[ebp+4], edx
; 16649: OP_LLONG_ADD(l_v30703, l_v30726, l_v30706);
mov eax, DWORD PTR _l_v30703$[ebp]
add eax, DWORD PTR _l_v30726$[ebp]
mov ecx, DWORD PTR _l_v30703$[ebp+4]
adc ecx, DWORD PTR _l_v30726$[ebp+4]
mov DWORD PTR _l_v30706$[ebp], eax
mov DWORD PTR _l_v30706$[ebp+4], ecx
; 16650: OP_LLONG_FLOORDIV(l_v30706, l_n_38, l_v30727);
mov edx, DWORD PTR _l_n_38$[ebp+4]
push edx
mov eax, DWORD PTR _l_n_38$[ebp]
push eax
mov ecx, DWORD PTR _l_v30706$[ebp+4]
push ecx
mov edx, DWORD PTR _l_v30706$[ebp]
push edx
call __alldiv
;; expected {4(%ebp) | %ebx, %esi, %edi, (%ebp) | }
mov DWORD PTR _l_v30727$[ebp], eax
mov DWORD PTR _l_v30727$[ebp+4], edx
; 16651: OP_LLONG_XOR(l_v30706, l_n_38, l_v30728);
mov eax, DWORD PTR _l_v30706$[ebp]
xor eax, DWORD PTR _l_n_38$[ebp]
mov ecx, DWORD PTR _l_v30706$[ebp+4]
xor ecx, DWORD PTR _l_n_38$[ebp+4]
mov DWORD PTR _l_v30728$[ebp], eax
mov DWORD PTR _l_v30728$[ebp+4], ecx
; 16652: OP_LLONG_LE(l_v30728, 0LL, l_v30729);
jg SHORT $LN15@pypy_g__in
jl SHORT $LN21@pypy_g__in
cmp DWORD PTR _l_v30728$[ebp], 0
ja SHORT $LN15@pypy_g__in
$LN21@pypy_g__in:
mov DWORD PTR tv152[ebp], 1
jmp SHORT $LN16@pypy_g__in
$LN15@pypy_g__in:
mov DWORD PTR tv152[ebp], 0
$LN16@pypy_g__in:
mov dl, BYTE PTR tv152[ebp]
mov BYTE PTR _l_v30729$[ebp], dl
; 16653: OP_CAST_BOOL_TO_INT(l_v30729, l_v30730);
movzx eax, BYTE PTR _l_v30729$[ebp]
mov DWORD PTR _l_v30730$[ebp], eax
; 16654: OP_CAST_INT_TO_LONGLONG(l_v30730, l_v30731);
mov eax, DWORD PTR _l_v30730$[ebp]
cdq
mov DWORD PTR _l_v30731$[ebp], eax
mov DWORD PTR _l_v30731$[ebp+4], edx
; 16655: OP_LLONG_MOD(l_v30706, l_n_38, l_v30732);
mov ecx, DWORD PTR _l_n_38$[ebp+4]
push ecx
mov edx, DWORD PTR _l_n_38$[ebp]
push edx
mov eax, DWORD PTR _l_v30706$[ebp+4]
push eax
mov ecx, DWORD PTR _l_v30706$[ebp]
push ecx
call __allrem
;; expected {4(%ebp) | %ebx, %esi, %edi, (%ebp) | }
mov DWORD PTR _l_v30732$[ebp], eax
mov DWORD PTR _l_v30732$[ebp+4], edx
; 16656: OP_LLONG_NE(l_v30732, 0LL, l_v30733);
mov edx, DWORD PTR _l_v30732$[ebp]
or edx, DWORD PTR _l_v30732$[ebp+4]
je SHORT $LN17@pypy_g__in
mov DWORD PTR tv158[ebp], 1
jmp SHORT $LN18@pypy_g__in
$LN17@pypy_g__in:
mov DWORD PTR tv158[ebp], 0
$LN18@pypy_g__in:
mov al, BYTE PTR tv158[ebp]
mov BYTE PTR _l_v30733$[ebp], al
; 16657: OP_CAST_BOOL_TO_INT(l_v30733, l_v30734);
movzx ecx, BYTE PTR _l_v30733$[ebp]
mov DWORD PTR _l_v30734$[ebp], ecx
; 16658: OP_CAST_INT_TO_LONGLONG(l_v30734, l_v30735);
mov eax, DWORD PTR _l_v30734$[ebp]
cdq
mov DWORD PTR _l_v30735$[ebp], eax
mov DWORD PTR _l_v30735$[ebp+4], edx
; 16659: OP_LLONG_AND(l_v30731, l_v30735, l_v30736);
mov edx, DWORD PTR _l_v30731$[ebp]
and edx, DWORD PTR _l_v30735$[ebp]
mov eax, DWORD PTR _l_v30731$[ebp+4]
and eax, DWORD PTR _l_v30735$[ebp+4]
mov DWORD PTR _l_v30736$[ebp], edx
mov DWORD PTR _l_v30736$[ebp+4], eax
; 16660: OP_LLONG_SUB(l_v30727, l_v30736, l_v30705);
mov ecx, DWORD PTR _l_v30727$[ebp]
sub ecx, DWORD PTR _l_v30736$[ebp]
mov edx, DWORD PTR _l_v30727$[ebp+4]
sbb edx, DWORD PTR _l_v30736$[ebp+4]
mov DWORD PTR _l_v30705$[ebp], ecx
mov DWORD PTR _l_v30705$[ebp+4], edx
; 16661: OP_LLONG_AND(l_v30705, 2147483647LL, l_v30737);
mov eax, DWORD PTR _l_v30705$[ebp]
and eax, 2147483647 ; 7fffffffH
mov ecx, DWORD PTR _l_v30705$[ebp+4]
and ecx, 0
mov DWORD PTR _l_v30737$[ebp], eax
mov DWORD PTR _l_v30737$[ebp+4], ecx
; 16662: OP_TRUNCATE_LONGLONG_TO_INT(l_v30737, l_v30704);
mov edx, DWORD PTR _l_v30737$[ebp]
mov DWORD PTR _l_v30704$[ebp], edx
; 16663: OP_INT_GE(l_v30704, 0L, l_v30738);
xor eax, eax
cmp DWORD PTR _l_v30704$[ebp], 0
setge al
mov BYTE PTR _l_v30738$[ebp], al
; 16664: if (l_v30738) {
movzx ecx, BYTE PTR _l_v30738$[ebp]
test ecx, ecx
je SHORT $LN2@pypy_g__in
; 16665: goto block11;
jmp SHORT $block11$210908
$LN2@pypy_g__in:
; 16666: }
; 16667: l_evalue_70 = (&pypy_g_exceptions_AssertionError.ae_super.se_super.e_super);
mov DWORD PTR _l_evalue_70$[ebp], OFFSET _pypy_g_exceptions_AssertionError
; 16668: goto block1;
jmp $block1$210883
$block11$210908:
; 16669:
; 16670: block11:
; 16671: l_l_101 = RPyField(l_self_3688, prrr_inst_digits);
mov edx, DWORD PTR _l_self_3688$[ebp]
mov eax, DWORD PTR [edx+8]
mov DWORD PTR _l_l_101$[ebp], eax
; 16672: l_length_82 = l_l_101->length;
mov ecx, DWORD PTR _l_l_101$[ebp]
mov edx, DWORD PTR [ecx+4]
mov DWORD PTR _l_length_82$[ebp], edx
; 16673: OP_INT_LT(l_x_97, 0L, l_v30739);
xor eax, eax
cmp DWORD PTR _l_x_97$[ebp], 0
setl al
mov BYTE PTR _l_v30739$[ebp], al
; 16674: if (l_v30739) {
movzx ecx, BYTE PTR _l_v30739$[ebp]
test ecx, ecx
je SHORT $LN1@pypy_g__in
; 16675: goto block13;
jmp $block13$210910
$LN1@pypy_g__in:
; 16676: }
; 16677: l_index_219 = l_x_97;
mov edx, DWORD PTR _l_x_97$[ebp]
mov DWORD PTR _l_index_219$[ebp], edx
$block12$210911:
; 16678: goto block12;
; 16679:
; 16680: block12:
; 16681: OP_INT_GE(l_index_219, 0L, l_v30740);
xor eax, eax
cmp DWORD PTR _l_index_219$[ebp], 0
setge al
mov BYTE PTR _l_v30740$[ebp], al
; 16682: RPyAssert(l_v30740, "negative list setitem index out of bound");
; 16683: OP_INT_LT(l_index_219, l_length_82, l_v30742);
mov ecx, DWORD PTR _l_index_219$[ebp]
xor edx, edx
cmp ecx, DWORD PTR _l_length_82$[ebp]
setl dl
mov BYTE PTR _l_v30742$[ebp], dl
; 16684: RPyAssert(l_v30742, "list setitem index out of bound");
; 16685: l_v30744 = l_l_101->length;
mov eax, DWORD PTR _l_l_101$[ebp]
mov ecx, DWORD PTR [eax+4]
mov DWORD PTR _l_v30744$[ebp], ecx
; 16686: OP_INT_LT(l_index_219, l_v30744, l_v30745);
mov edx, DWORD PTR _l_index_219$[ebp]
xor eax, eax
cmp edx, DWORD PTR _l_v30744$[ebp]
setl al
mov BYTE PTR _l_v30745$[ebp], al
; 16687: RPyAssert(l_v30745, "fixed setitem out of bounds");
; 16688: RPyItem(l_l_101, l_index_219) = l_v30704;
mov ecx, DWORD PTR _l_index_219$[ebp]
mov edx, DWORD PTR _l_l_101$[ebp]
mov eax, DWORD PTR _l_v30704$[ebp]
mov DWORD PTR [edx+ecx*4+8], eax
; 16689: OP_LLONG_MUL(l_v30705, l_n_38, l_v30748);
mov ecx, DWORD PTR _l_n_38$[ebp+4]
push ecx
mov edx, DWORD PTR _l_n_38$[ebp]
push edx
mov eax, DWORD PTR _l_v30705$[ebp+4]
push eax
mov ecx, DWORD PTR _l_v30705$[ebp]
push ecx
call __allmul
;; expected {4(%ebp) | %ebx, %esi, %edi, (%ebp) | }
mov DWORD PTR _l_v30748$[ebp], eax
mov DWORD PTR _l_v30748$[ebp+4], edx
; 16690: OP_LLONG_SUB(l_v30706, l_v30748, l_v30749);
mov edx, DWORD PTR _l_v30706$[ebp]
sub edx, DWORD PTR _l_v30748$[ebp]
mov eax, DWORD PTR _l_v30706$[ebp+4]
sbb eax, DWORD PTR _l_v30748$[ebp+4]
mov DWORD PTR _l_v30749$[ebp], edx
mov DWORD PTR _l_v30749$[ebp+4], eax
; 16691: OP_INT_SUB(l_x_97, 1L, l_v30750);
mov ecx, DWORD PTR _l_x_97$[ebp]
sub ecx, 1
mov DWORD PTR _l_v30750$[ebp], ecx
; 16692: l_v30702 = l_v30749;
mov edx, DWORD PTR _l_v30749$[ebp]
mov DWORD PTR _l_v30702$[ebp], edx
mov eax, DWORD PTR _l_v30749$[ebp+4]
mov DWORD PTR _l_v30702$[ebp+4], eax
; 16693: l_x_97 = l_v30750;
mov ecx, DWORD PTR _l_v30750$[ebp]
mov DWORD PTR _l_x_97$[ebp], ecx
; 16694: goto block7_back;
jmp $block7_back$210895
$block13$210910:
; 16695:
; 16696: block13:
; 16697: OP_INT_ADD(l_x_97, l_length_82, l_v30751);
mov edx, DWORD PTR _l_x_97$[ebp]
add edx, DWORD PTR _l_length_82$[ebp]
mov DWORD PTR _l_v30751$[ebp], edx
; 16698: l_index_219 = l_v30751;
mov eax, DWORD PTR _l_v30751$[ebp]
mov DWORD PTR _l_index_219$[ebp], eax
; 16699: goto block12;
jmp $block12$210911
$block14$210899:
; 16700:
; 16701: block14:
; 16702: OP_INT_ADD(l_x_97, l_length_83, l_v30752);
mov ecx, DWORD PTR _l_x_97$[ebp]
add ecx, DWORD PTR _l_length_83$[ebp]
mov DWORD PTR _l_v30752$[ebp], ecx
; 16703: l_index_218 = l_v30752;
mov edx, DWORD PTR _l_v30752$[ebp]
mov DWORD PTR _l_index_218$[ebp], edx
; 16704: goto block10;
jmp $block10$210900
$LN9@pypy_g__in:
; 16705: }
mov esp, ebp
pop ebp
ret 0
_pypy_g__inplace_divrem1 ENDP
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="CombatExtended.PatchOperationFindMod">
<modName>Leeani Playable Race</modName>
</li>
<!-- ========== Quarterstaff ========== -->
<!-- ========== Lifted wholesale from VFWE_MELEE ========== -->
<li Class="PatchOperationReplace">
<xpath>/ThingDefs/ThingDef[defName = "MeleeWeapon_Quarterstaff"]/statBases/MeleeWeapon_DamageAmount</xpath>
<value>
<MeleeWeapon_DamageAmount>11</MeleeWeapon_DamageAmount>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>/ThingDefs/ThingDef[defName = "MeleeWeapon_Quarterstaff"]/statBases/MeleeWeapon_Cooldown</xpath>
<value>
<MeleeWeapon_Cooldown>0.92</MeleeWeapon_Cooldown>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName = "MeleeWeapon_Quarterstaff"]/statBases</xpath>
<value>
<MeleeWeapon_Penetration>0.16</MeleeWeapon_Penetration>
<Bulk>6</Bulk>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/ThingDefs/ThingDef[defName = "MeleeWeapon_Quarterstaff"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>0.5</MeleeCritChance>
<MeleeParryChance>0.8</MeleeParryChance>
</equippedStatOffsets>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>/ThingDefs/ThingDef[defName = "MeleeWeapon_Quarterstaff"]/verbs</xpath>
<value>
<verbs>
<li>
<verbClass>CombatExtended.Verb_MeleeAttackCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<meleeDamageDef>Blunt</meleeDamageDef>
</li>
</verbs>
</value>
</li>
</operations>
</Operation>
</Patch>
|
{
"pile_set_name": "Github"
}
|
#122_Cleaning_Up_The_Beach_In_Chiba__Japan_pick_f_nm_np1_fr_bad_1.avi 1
#122_Cleaning_Up_The_Beach_In_Chiba__Japan_pick_f_nm_np1_le_bad_2.avi 1
#122_Cleaning_Up_The_Beach_In_Chiba__Japan_pick_f_nm_np1_ri_bad_0.avi 1
AMADEUS_pick_u_nm_np1_fr_med_8.avi 2
AboutABoy_pick_h_nm_np1_le_goo_9.avi 1
BuriedTreasure_pick_u_cm_np1_le_goo_1.avi 1
Catch_Me_If_You_Can_pick_f_cm_np1_ri_med_5.avi 1
Clay_sBasketballSkillz_pick_f_nm_np1_ba_med_0.avi 2
Clay_sBasketballSkillz_pick_f_nm_np1_ri_med_8.avi 2
Cleaning_The_Beach_Jeton_Bardhi__Dimitar_Chaprazov_pick_f_cm_np3_ba_bad_3.avi 2
Cleaning_The_Beach_Jeton_Bardhi__Dimitar_Chaprazov_pick_f_cm_np5_le_bad_1.avi 2
Cleaning_The_Beach_Jeton_Bardhi__Dimitar_Chaprazov_pick_f_cm_np5_le_bad_2.avi 2
Collecting_litter_on_the_woodland_ground_surface_pick_f_nm_np1_fr_med_0.avi 1
David_Letterman_picks_up_trash_on_Broadway_pick_f_cm_np1_fr_med_0.avi 2
David_Letterman_picks_up_trash_on_Broadway_pick_f_cm_np3_ri_med_1.avi 2
Derren_Brown_-_Abondoned_Wallet_Trick_pick_f_cm_np1_le_med_0.avi 1
Die_Pfandpiraten_Doku_pick_f_cm_np1_ba_med_1.avi 1
Die_Pfandpiraten_Doku_pick_f_cm_np1_ba_med_2.avi 1
Die_Pfandpiraten_Doku_pick_f_cm_np1_le_med_0.avi 1
Dollar_Prank_at_Wally_World_pick_f_nm_np1_fr_med_0.avi 1
Dollar_Prank_at_Wally_World_pick_f_nm_np1_le_med_1.avi 1
Dollar_Prank_at_Wally_World_pick_f_nm_np1_le_med_2.avi 1
Dollar_Prank_at_the_Rivertown_Mall_pick_f_cm_np1_le_med_0.avi 2
Dollar_Prank_at_the_Rivertown_Mall_pick_f_nm_np1_fr_med_1.avi 2
Dollar_Prank_at_the_Rivertown_Mall_pick_f_nm_np1_fr_med_3.avi 2
Dollar_Prank_at_the_Rivertown_Mall_pick_f_nm_np1_le_med_2.avi 2
Eco-Tex_picks_up_Trash_pick_f_cm_np1_ri_med_0.avi 0
EverythingisIlluminated_pick_u_cm_np1_ba_goo_3.avi 1
Fishing_For_People_pick_f_cm_np1_fr_med_3.avi 1
Fishing_For_People_pick_f_cm_np1_ri_med_2.avi 1
Fishing_For_People_pick_f_cm_np1_ri_med_5.avi 1
Fishing_For_People_pick_f_cm_np2_le_med_4.avi 1
Fishing_For_People_pick_f_cm_np2_ri_med_1.avi 1
Fishing_For_People_pick_f_nm_np2_ba_med_0.avi 1
Flaschenrolf_auf_Tour_pick_f_cm_np1_ba_bad_0.avi 1
Flaschenrolf_auf_Tour_pick_u_cm_np1_ba_bad_1.avi 1
GardenWiseB256kb_pick_f_nm_np1_le_med_0.avi 1
Gattaca_pick_f_nm_np1_fr_med_1.avi 1
Gattaca_pick_f_nm_np1_ri_med_0.avi 1
IamLegendII_pick_u_cm_np1_fr_med_2.avi 1
IamLegendII_pick_u_cm_np1_le_med_3.avi 1
IamLegendII_pick_u_nm_np1_fr_bad_0.avi 1
IamLegendII_pick_u_nm_np1_fr_med_1.avi 1
Juno_pick_u_cm_np1_le_bad_9.avi 1
Juno_pick_u_nm_np1_fr_goo_2.avi 1
M_ll_sammeln_pick_f_cm_np1_fr_bad_0.avi 1
Magic_Boys-_Der_Portmonai_Trick_pick_l_nm_np1_ri_med_0.avi 1
Mushroom_search_pick_f_cm_np2_le_med_0.avi 1
NH-__Open_Carry_Litter_Pickup_in__troubled__neighborhood_pick_f_nm_np1_le_med_0.avi 2
NH_gun_owners_react_to_detention_with_armed_litter_pickup_pick_f_cm_np1_ba_med_0.avi 1
NH_gun_owners_react_to_detention_with_armed_litter_pickup_pick_f_cm_np3_ba_bad_1.avi 1
NH_gun_owners_react_to_detention_with_armed_litter_pickup_pick_u_cm_np1_ba_med_2.avi 1
NH_open_carry_litter_pickup_spurs_stunning_encountrs__1_of_2_pick_f_cm_np1_fr_med_0.avi 1
NoCountryForOldMen_pick_u_nm_np1_le_goo_0.avi 1
Oceans13_pick_u_cm_np1_fr_med_2.avi 2
Oceans13_pick_u_nm_np1_ba_goo_5.avi 2
Oceans13_pick_u_nm_np1_ri_goo_7.avi 2
People_Fishing_pick_f_cm_np2_ri_med_0.avi 2
Pick_Up_The_Phone_pick_u_nm_np1_fr_med_0.avi 1
Pick_Up_Your_Trash!_pick_f_cm_np1_ba_med_1.avi 1
Pick_Up_Your_Trash!_pick_f_cm_np1_le_med_0.avi 1
Pilzesuchen_pick_f_cm_np1_fr_med_0.avi 1
Portemonnaie-Trick_Openair_Lumnezia_2008_Nr__2_pick_f_cm_np2_fr_med_0.avi 1
Prelinger_ActYourA1949_pick_u_nm_np1_ri_med_14.avi 1
Prelinger_HabitPat1954_pick_f_cm_np1_fr_med_28.avi 1
Prelinger_HabitPat1954_pick_u_nm_np1_le_med_9.avi 1
Rent_a_Pocher_Beim_Pilze_sammeln_Oliver_Pocher_pick_f_cm_np2_fr_med_0.avi 1
RushHour2_pick_u_nm_np1_le_med_7.avi 1
SafeInPort_pick_f_nm_np1_fr_med_1.avi 2
Search_and_Identify_Golf_Ball_-_www_mulliganplus_com_pick_f_nm_np1_le_goo_0.avi 1
Sixthsense_pick_h_nm_np1_fr_goo_1.avi 1
SoundAndTheStory_pick_u_nm_np1_le_med_3.avi 1
Stevie_And_Lindsay_Picking_Up_Garbage_pick_f_cm_np1_ba_med_0.avi 2
Stevie_And_Lindsay_Picking_Up_Garbage_pick_f_cm_np1_ri_med_3.avi 2
Stevie_And_Lindsay_Picking_Up_Garbage_pick_f_cm_np2_ba_med_2.avi 0
Stevie_And_Lindsay_Picking_Up_Garbage_pick_l_cm_np1_ba_med_1.avi 0
THE_WALLET_TRICK!!!_pick_f_cm_np1_fr_med_2.avi 2
THE_WALLET_TRICK!!!_pick_f_cm_np1_le_med_0.avi 2
THE_WALLET_TRICK!!!_pick_f_cm_np2_ba_med_1.avi 2
TheBigBangS01E02TheBigBranHypothesis_pick_u_cm_np1_le_med_1.avi 2
ThePerfectScore_pick_u_nm_np1_ba_goo_3.avi 0
ThreeStories_pick_u_cm_np1_ri_goo_2.avi 2
ThreeStories_pick_u_cm_np1_ri_med_3.avi 2
Torwarttraining_-_Impressionen_vom_1__FFC_Frankfurt_pick_f_cm_np1_fr_goo_3.avi 1
Wallet_Trick_pick_f_cm_np1_fr_bad_4.avi 0
Wallet_Trick_pick_f_cm_np1_le_bad_2.avi 2
Wallet_Trick_pick_f_cm_np1_ri_bad_3.avi 2
Wallet_Trick_pick_f_cm_np2_fr_bad_1.avi 0
Wallet_Trick_pick_f_cm_np4_ri_med_0.avi 2
Yep__I_m_picking_up_trash_today_pick_f_cm_np1_fr_med_1.avi 1
Yep__I_m_picking_up_trash_today_pick_f_cm_np1_ri_med_0.avi 1
americanthrift1_pick_u_cm_np1_fr_med_1.avi 1
americanthrift2_pick_u_cm_np1_ri_med_1.avi 1
americanthrift2_pick_u_nm_np1_ri_med_2.avi 1
garbage_men_pick_f_cm_np1_ri_med_0.avi 1
garbage_men_pick_f_cm_np1_ri_med_1.avi 1
garbage_men_pick_f_cm_np1_ri_med_2.avi 1
nameunknown256kb_pick_u_nm_np1_le_med_2.avi 2
pick_up_trash_says_yeti_pick_f_cm_np1_le_med_1.avi 1
pick_up_trash_says_yeti_pick_f_cm_np1_le_med_2.avi 1
pick_up_trash_says_yeti_pick_f_cm_np1_ri_med_0.avi 1
prelinger_LetsBeGo1953_pick_f_cm_np1_fr_med_8.avi 1
prelinger_LetsBeGo1953_pick_f_nm_np1_ri_med_12.avi 1
prelinger_TowardEm1954_pick_u_cm_np1_le_goo_5.avi 1
prelinger_they_grow_up_so_fast_1_pick_f_nm_np1_fr_med_10.avi 1
prelinger_they_grow_up_so_fast_1_pick_u_nm_np1_ri_med_1.avi 1
|
{
"pile_set_name": "Github"
}
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "javascript");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
MT("locals",
"[keyword function] [def foo]([def a], [def b]) { [keyword var] [def c] [operator =] [number 10]; [keyword return] [variable-2 a] [operator +] [variable-2 c] [operator +] [variable d]; }");
MT("comma-and-binop",
"[keyword function](){ [keyword var] [def x] [operator =] [number 1] [operator +] [number 2], [def y]; }");
MT("destructuring",
"([keyword function]([def a], [[[def b], [def c] ]]) {",
" [keyword let] {[def d], [property foo]: [def c][operator =][number 10], [def x]} [operator =] [variable foo]([variable-2 a]);",
" [[[variable-2 c], [variable y] ]] [operator =] [variable-2 c];",
"})();");
MT("destructure_trailing_comma",
"[keyword let] {[def a], [def b],} [operator =] [variable foo];",
"[keyword let] [def c];"); // Parser still in good state?
MT("class_body",
"[keyword class] [def Foo] {",
" [property constructor]() {}",
" [property sayName]() {",
" [keyword return] [string-2 `foo${][variable foo][string-2 }oo`];",
" }",
"}");
MT("class",
"[keyword class] [def Point] [keyword extends] [variable SuperThing] {",
" [property get] [property prop]() { [keyword return] [number 24]; }",
" [property constructor]([def x], [def y]) {",
" [keyword super]([string 'something']);",
" [keyword this].[property x] [operator =] [variable-2 x];",
" }",
"}");
MT("import",
"[keyword function] [def foo]() {",
" [keyword import] [def $] [keyword from] [string 'jquery'];",
" [keyword import] { [def encrypt], [def decrypt] } [keyword from] [string 'crypto'];",
"}");
MT("const",
"[keyword function] [def f]() {",
" [keyword const] [[ [def a], [def b] ]] [operator =] [[ [number 1], [number 2] ]];",
"}");
MT("for/of",
"[keyword for]([keyword let] [def of] [keyword of] [variable something]) {}");
MT("generator",
"[keyword function*] [def repeat]([def n]) {",
" [keyword for]([keyword var] [def i] [operator =] [number 0]; [variable-2 i] [operator <] [variable-2 n]; [operator ++][variable-2 i])",
" [keyword yield] [variable-2 i];",
"}");
MT("quotedStringAddition",
"[keyword let] [def f] [operator =] [variable a] [operator +] [string 'fatarrow'] [operator +] [variable c];");
MT("quotedFatArrow",
"[keyword let] [def f] [operator =] [variable a] [operator +] [string '=>'] [operator +] [variable c];");
MT("fatArrow",
"[variable array].[property filter]([def a] [operator =>] [variable-2 a] [operator +] [number 1]);",
"[variable a];", // No longer in scope
"[keyword let] [def f] [operator =] ([[ [def a], [def b] ]], [def c]) [operator =>] [variable-2 a] [operator +] [variable-2 c];",
"[variable c];");
MT("spread",
"[keyword function] [def f]([def a], [meta ...][def b]) {",
" [variable something]([variable-2 a], [meta ...][variable-2 b]);",
"}");
MT("comprehension",
"[keyword function] [def f]() {",
" [[([variable x] [operator +] [number 1]) [keyword for] ([keyword var] [def x] [keyword in] [variable y]) [keyword if] [variable pred]([variable-2 x]) ]];",
" ([variable u] [keyword for] ([keyword var] [def u] [keyword of] [variable generateValues]()) [keyword if] ([variable-2 u].[property color] [operator ===] [string 'blue']));",
"}");
MT("quasi",
"[variable re][string-2 `fofdlakj${][variable x] [operator +] ([variable re][string-2 `foo`]) [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]");
MT("quasi_no_function",
"[variable x] [operator =] [string-2 `fofdlakj${][variable x] [operator +] [string-2 `foo`] [operator +] [number 1][string-2 }fdsa`] [operator +] [number 2]");
MT("indent_statement",
"[keyword var] [def x] [operator =] [number 10]",
"[variable x] [operator +=] [variable y] [operator +]",
" [atom Infinity]",
"[keyword debugger];");
MT("indent_if",
"[keyword if] ([number 1])",
" [keyword break];",
"[keyword else] [keyword if] ([number 2])",
" [keyword continue];",
"[keyword else]",
" [number 10];",
"[keyword if] ([number 1]) {",
" [keyword break];",
"} [keyword else] [keyword if] ([number 2]) {",
" [keyword continue];",
"} [keyword else] {",
" [number 10];",
"}");
MT("indent_for",
"[keyword for] ([keyword var] [def i] [operator =] [number 0];",
" [variable i] [operator <] [number 100];",
" [variable i][operator ++])",
" [variable doSomething]([variable i]);",
"[keyword debugger];");
MT("indent_c_style",
"[keyword function] [def foo]()",
"{",
" [keyword debugger];",
"}");
MT("indent_else",
"[keyword for] (;;)",
" [keyword if] ([variable foo])",
" [keyword if] ([variable bar])",
" [number 1];",
" [keyword else]",
" [number 2];",
" [keyword else]",
" [number 3];");
MT("indent_funarg",
"[variable foo]([number 10000],",
" [keyword function]([def a]) {",
" [keyword debugger];",
"};");
MT("indent_below_if",
"[keyword for] (;;)",
" [keyword if] ([variable foo])",
" [number 1];",
"[number 2];");
MT("multilinestring",
"[keyword var] [def x] [operator =] [string 'foo\\]",
"[string bar'];");
MT("scary_regexp",
"[string-2 /foo[[/]]bar/];");
MT("indent_strange_array",
"[keyword var] [def x] [operator =] [[",
" [number 1],,",
" [number 2],",
"]];",
"[number 10];");
MT("param_default",
"[keyword function] [def foo]([def x] [operator =] [string-2 `foo${][number 10][string-2 }bar`]) {",
" [keyword return] [variable-2 x];",
"}");
MT("new_target",
"[keyword function] [def F]([def target]) {",
" [keyword if] ([variable-2 target] [operator &&] [keyword new].[keyword target].[property name]) {",
" [keyword return] [keyword new]",
" .[keyword target];",
" }",
"}");
var jsonld_mode = CodeMirror.getMode(
{indentUnit: 2},
{name: "javascript", jsonld: true}
);
function LD(name) {
test.mode(name, jsonld_mode, Array.prototype.slice.call(arguments, 1));
}
LD("json_ld_keywords",
'{',
' [meta "@context"]: {',
' [meta "@base"]: [string "http://example.com"],',
' [meta "@vocab"]: [string "http://xmlns.com/foaf/0.1/"],',
' [property "likesFlavor"]: {',
' [meta "@container"]: [meta "@list"]',
' [meta "@reverse"]: [string "@beFavoriteOf"]',
' },',
' [property "nick"]: { [meta "@container"]: [meta "@set"] },',
' [property "nick"]: { [meta "@container"]: [meta "@index"] }',
' },',
' [meta "@graph"]: [[ {',
' [meta "@id"]: [string "http://dbpedia.org/resource/John_Lennon"],',
' [property "name"]: [string "John Lennon"],',
' [property "modified"]: {',
' [meta "@value"]: [string "2010-05-29T14:17:39+02:00"],',
' [meta "@type"]: [string "http://www.w3.org/2001/XMLSchema#dateTime"]',
' }',
' } ]]',
'}');
LD("json_ld_fake",
'{',
' [property "@fake"]: [string "@fake"],',
' [property "@contextual"]: [string "@identifier"],',
' [property "user@domain.com"]: [string "@graphical"],',
' [property "@ID"]: [string "@@ID"]',
'}');
})();
|
{
"pile_set_name": "Github"
}
|
355 314 422 344 kitchen 1 1
454 622 549 651 bedroom 1 1
612 232 676 261 bathroom 1 1
504 50 542 71 restroom 1 1
439 906 564 929 balcony 1 1
306 456 450 504 closet 1 1
509 221 552 251 corridor 1 1
599 359 645 392 washing_room 1 1
432 52 462 77 PS 1 1
294 117 391 117 door 1 1
576 320 576 392 door 1 4
490 117 556 117 door 2 3
489 465 562 465 door 2 3
411 45 411 106 door 2 4
367 842 602 842 door 3 1
731 620 731 689 door 3 2
590 310 655 310 door 5 1
294 532 469 532 door 6 3
481 291 481 365 door 10 2
411 19 731 19 wall 1 1
481 19 481 117 wall 1 1
632 19 632 117 wall 1 1
731 19 731 842 wall 1 1
275 117 275 842 wall 1 1
275 117 731 117 wall 1 1
576 117 576 465 wall 1 1
386 216 481 216 wall 1 1
481 216 481 532 wall 1 1
576 310 731 310 wall 1 1
275 439 481 439 wall 1 1
481 465 731 465 wall 1 1
275 532 481 532 wall 1 1
275 842 731 842 wall 1 1
411 19 411 117 wall 1 1
275 281 386 281 wall 1 1
386 216 386 281 wall 1 1
275 251 386 251 wall 1 1
274 842 274 986 wall 2 1
274 986 666 986 wall 2 1
666 842 666 986 wall 2 1
659 846 735 929 special 3 1
660 24 725 106 special 3 1
284 122 422 207 entrance 1 1
585 121 710 207 bathtub 1 1
669 390 725 460 washing_basin 1 4
657 320 717 391 washing_basin 2 1
412 224 474 286 washing_basin 2 1
284 369 475 431 cooking_counter 1 1
|
{
"pile_set_name": "Github"
}
|
--
-- d/tools/ldc.lua
-- Provides LDC-specific configuration strings.
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
--
local p = premake
p.tools.ldc = { }
local ldc = p.tools.ldc
local project = p.project
local config = p.config
local d = p.modules.d
--
-- Set default tools
--
ldc.namestyle = "posix"
--
-- Returns list of D compiler flags for a configuration.
--
ldc.dflags = {
architecture = {
x86 = "-m32",
x86_64 = "-m64",
ARM = "-march=arm",
ARM64 = "-march=aarch64",
-- ppc = "-march=ppc32",
-- ppc64 = "-march=ppc64",
-- spu = "-march=cellspu",
-- mips = "-march=mips", -- -march=mipsel?
},
flags = {
OmitDefaultLibrary = "-mscrtlib=",
CodeCoverage = "-cov",
Color = "-enable-color",
Documentation = "-D",
FatalWarnings = "-w", -- Use LLVM flag? : "-fatal-assembler-warnings",
GenerateHeader = "-H",
GenerateJSON = "-X",
LowMem = "-lowmem",
RetainPaths = "-op",
SymbolsLikeC = "-gc",
UnitTest = "-unittest",
Verbose = "-v",
AllInstantiate = "-allinst",
BetterC = "-betterC",
Main = "-main",
PerformSyntaxCheckOnly = "-o-",
ShowGC = "-vgc",
IgnorePragma = "-ignore",
},
boundscheck = {
Off = "-boundscheck=off",
On = "-boundscheck=on",
SafeOnly = "-boundscheck=safeonly",
},
checkaction = {
D = "-checkaction=D",
C = "-checkaction=C",
Halt = "-checkaction=halt",
Context = "-checkaction=context",
},
cppdialect = {
["C++latest"] = "-extern-std=c++17", -- TODO: keep this up to date >_<
["C++98"] = "-extern-std=c++98",
["C++0x"] = "-extern-std=c++11",
["C++11"] = "-extern-std=c++11",
["C++1y"] = "-extern-std=c++14",
["C++14"] = "-extern-std=c++14",
["C++1z"] = "-extern-std=c++17",
["C++17"] = "-extern-std=c++17",
["C++2a"] = "-extern-std=c++20",
["C++20"] = "-extern-std=c++20",
["gnu++98"] = "-extern-std=c++98",
["gnu++0x"] = "-extern-std=c++11",
["gnu++11"] = "-extern-std=c++11",
["gnu++1y"] = "-extern-std=c++14",
["gnu++14"] = "-extern-std=c++14",
["gnu++1z"] = "-extern-std=c++17",
["gnu++17"] = "-extern-std=c++17",
["gnu++2a"] = "-extern-std=c++20",
["gnu++20"] = "-extern-std=c++20",
},
deprecatedfeatures = {
Allow = "-d",
Warn = "-dw",
Error = "-de",
},
floatingpoint = {
Fast = "-fp-contract=fast -enable-unsafe-fp-math",
-- Strict = "-ffloat-store",
},
optimize = {
Off = "-O0",
On = "-O2",
Debug = "-O0",
Full = "-O3",
Size = "-Oz",
Speed = "-O3",
},
pic = {
On = "-relocation-model=pic",
},
vectorextensions = {
AVX = "-mattr=+avx",
AVX2 = "-mattr=+avx2",
SSE = "-mattr=+sse",
SSE2 = "-mattr=+sse2",
SSE3 = "-mattr=+sse3",
SSSE3 = "-mattr=+ssse3",
["SSE4.1"] = "-mattr=+sse4.1",
},
warnings = {
Default = "-wi",
High = "-wi",
Extra = "-wi", -- TODO: is there a way to get extra warnings?
Everything = "-wi",
},
symbols = {
On = "-g",
FastLink = "-g",
Full = "-g",
}
}
function ldc.getdflags(cfg)
local flags = config.mapFlags(cfg, ldc.dflags)
if config.isDebugBuild(cfg) then
table.insert(flags, "-d-debug")
else
table.insert(flags, "-release")
end
if not cfg.flags.OmitDefaultLibrary then
local releaseruntime = not config.isDebugBuild(cfg)
local staticruntime = true
if cfg.staticruntime == "Off" then
staticruntime = false
end
if cfg.runtime == "Debug" then
releaseruntime = false
elseif cfg.runtime == "Release" then
releaseruntime = true
end
if (cfg.staticruntime and cfg.staticruntime ~= "Default") or (cfg.runtime and cfg.runtime ~= "Default") then
if staticruntime == true and releaseruntime == true then
table.insert(flags, "-mscrtlib=libcmt")
elseif staticruntime == true and releaseruntime == false then
table.insert(flags, "-mscrtlib=libcmtd")
elseif staticruntime == false and releaseruntime == true then
table.insert(flags, "-mscrtlib=msvcrt")
elseif staticruntime == false and releaseruntime == false then
table.insert(flags, "-mscrtlib=msvcrtd")
end
end
end
if cfg.flags.Documentation then
if cfg.docname then
table.insert(flags, "-Df=" .. p.quoted(cfg.docname))
end
if cfg.docdir then
table.insert(flags, "-Dd=" .. p.quoted(cfg.docdir))
end
end
if cfg.flags.GenerateHeader then
if cfg.headername then
table.insert(flags, "-Hf=" .. p.quoted(cfg.headername))
end
if cfg.headerdir then
table.insert(flags, "-Hd=" .. p.quoted(cfg.headerdir))
end
end
if #cfg.computetargets > 0 then
table.insert(flags, "-mdcompute-targets=" .. table.concat(cfg.computetargets, ','))
end
if #cfg.isaextensions > 0 then
local isaMap = {
MOVBE = "movbe",
POPCNT = "popcnt",
PCLMUL = "pclmul",
LZCNT = "lzcnt",
BMI = "bmi",
BMI2 = "bmi2",
F16C = "f16c",
AES = "aes",
FMA = "fma",
FMA4 = "fma4",
RDRND = "rdrnd",
}
for _, ext in ipairs(cfg.transition) do
if isaMap[ext] ~= nil then
table.insert(flags, "-mattr=+" .. isaMap[ext])
end
end
end
if #cfg.preview > 0 then
for _, opt in ipairs(cfg.preview) do
table.insert(flags, "-preview=" .. opt)
end
end
if #cfg.revert > 0 then
for _, opt in ipairs(cfg.revert) do
table.insert(flags, "-revert=" .. opt)
end
end
if #cfg.transition > 0 then
for _, opt in ipairs(cfg.transition) do
table.insert(flags, "-transition=" .. opt)
end
end
return flags
end
--
-- Decorate versions for the DMD command line.
--
function ldc.getversions(versions, level)
local result = {}
for _, version in ipairs(versions) do
table.insert(result, '-d-version=' .. version)
end
if level then
table.insert(result, '-d-version=' .. level)
end
return result
end
--
-- Decorate debug constants for the DMD command line.
--
function ldc.getdebug(constants, level)
local result = {}
for _, constant in ipairs(constants) do
table.insert(result, '-d-debug=' .. constant)
end
if level then
table.insert(result, '-d-debug=' .. level)
end
return result
end
--
-- Decorate import file search paths for the DMD command line.
--
function ldc.getimportdirs(cfg, dirs)
local result = {}
for _, dir in ipairs(dirs) do
dir = project.getrelative(cfg.project, dir)
table.insert(result, '-I=' .. p.quoted(dir))
end
return result
end
--
-- Decorate import file search paths for the DMD command line.
--
function ldc.getstringimportdirs(cfg, dirs)
local result = {}
for _, dir in ipairs(dirs) do
dir = project.getrelative(cfg.project, dir)
table.insert(result, '-J=' .. p.quoted(dir))
end
return result
end
--
-- Returns the target name specific to compiler
--
function ldc.gettarget(name)
return "-of=" .. name
end
--
-- Return a list of LDFLAGS for a specific configuration.
--
ldc.ldflags = {
architecture = {
x86 = { "-m32" },
x86_64 = { "-m64" },
},
kind = {
SharedLib = "-shared",
StaticLib = "-lib",
},
}
function ldc.getldflags(cfg)
local flags = config.mapFlags(cfg, ldc.ldflags)
return flags
end
--
-- Return a list of decorated additional libraries directories.
--
ldc.libraryDirectories = {
architecture = {
x86 = "-L=-L/usr/lib",
x86_64 = "-L=-L/usr/lib64",
}
}
function ldc.getLibraryDirectories(cfg)
local flags = config.mapFlags(cfg, ldc.libraryDirectories)
-- Scan the list of linked libraries. If any are referenced with
-- paths, add those to the list of library search paths
for _, dir in ipairs(config.getlinks(cfg, "system", "directory")) do
table.insert(flags, '-L=-L' .. project.getrelative(cfg.project, dir))
end
return flags
end
--
-- Return the list of libraries to link, decorated with flags as needed.
--
function ldc.getlinks(cfg, systemonly)
local result = {}
local links
if not systemonly then
links = config.getlinks(cfg, "siblings", "object")
for _, link in ipairs(links) do
-- skip external project references, since I have no way
-- to know the actual output target path
if not link.project.external then
if link.kind == p.STATICLIB then
-- Don't use "-l" flag when linking static libraries; instead use
-- path/libname.a to avoid linking a shared library of the same
-- name if one is present
table.insert(result, "-L=" .. project.getrelative(cfg.project, link.linktarget.abspath))
else
table.insert(result, "-L=-l" .. link.linktarget.basename)
end
end
end
end
-- The "-l" flag is fine for system libraries
links = config.getlinks(cfg, "system", "fullpath")
for _, link in ipairs(links) do
if path.isframework(link) then
table.insert(result, "-framework " .. path.getbasename(link))
elseif path.isobjectfile(link) then
table.insert(result, "-L=" .. link)
else
table.insert(result, "-L=-l" .. path.getbasename(link))
end
end
return result
end
--
-- Returns makefile-specific configuration rules.
--
ldc.makesettings = {
}
function ldc.getmakesettings(cfg)
local settings = config.mapFlags(cfg, ldc.makesettings)
return table.concat(settings)
end
--
-- Retrieves the executable command name for a tool, based on the
-- provided configuration and the operating environment.
--
-- @param cfg
-- The configuration to query.
-- @param tool
-- The tool to fetch, one of "dc" for the D compiler, or "ar" for the static linker.
-- @return
-- The executable command name for a tool, or nil if the system's
-- default value should be used.
--
ldc.tools = {
dc = "ldc2",
ar = "ar",
}
function ldc.gettoolname(cfg, tool)
return ldc.tools[tool]
end
|
{
"pile_set_name": "Github"
}
|
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, propagated, or distributed except according to the terms contained
* in the LICENSE file.
*/
#include "sam.h"
#include "parse.h"
extern jmp_buf mainloop;
char errfile[64];
String plan9cmd; /* null terminated */
Buffer plan9buf;
void checkerrs(void);
int
plan9(File *f, int type, String *s, int nest)
{
long l;
int m;
int pid, fd;
int retcode;
char *retmsg;
int pipe1[2], pipe2[2];
if(s->s[0]==0 && plan9cmd.s[0]==0)
error(Enocmd);
else if(s->s[0])
Strduplstr(&plan9cmd, s);
if(downloaded){
samerr(errfile);
remove(errfile);
}
if(type!='!' && pipe(pipe1)==-1)
error(Epipe);
if(type=='|')
snarf(f, addr.r.p1, addr.r.p2, &plan9buf, 1);
if((pid=fork()) == 0){
if(downloaded){ /* also put nasty fd's into errfile */
fd = create(errfile, 1, 0666L);
if(fd < 0)
fd = create("/dev/null", 1, 0666L);
dup(fd, 2);
close(fd);
/* 2 now points at err file */
if(type == '>')
dup(2, 1);
else if(type=='!'){
dup(2, 1);
fd = open("/dev/null", 0);
dup(fd, 0);
close(fd);
}
}
if(type != '!') {
if(type=='<' || type=='|')
dup(pipe1[1], 1);
else if(type == '>')
dup(pipe1[0], 0);
close(pipe1[0]);
close(pipe1[1]);
}
if(type == '|'){
if(pipe(pipe2) == -1)
exits("pipe");
if((pid = fork())==0){
/*
* It's ok if we get SIGPIPE here
*/
close(pipe2[0]);
io = pipe2[1];
if((retcode=!setjmp(mainloop)) != 0){
char *c;
for(l = 0; l<plan9buf.nc; l+=m){
m = plan9buf.nc-l;
if(m>BLOCKSIZE-1)
m = BLOCKSIZE-1;
bufread(&plan9buf, l, genbuf, m);
genbuf[m] = 0;
c = Strtoc(tmprstr(genbuf, m+1));
Write(pipe2[1], c, strlen(c));
free(c);
}
}
exits(retcode? "error" : 0);
}
if(pid==-1){
fprint(2, "Can't fork?!\n");
exits("fork");
}
dup(pipe2[0], 0);
close(pipe2[0]);
close(pipe2[1]);
}
if(type=='<'){
close(0); /* so it won't read from terminal */
open("/dev/null", 0);
}
execl(SHPATH, SH, "-c", Strtoc(&plan9cmd), nil);
exits("exec");
}
if(pid == -1)
error(Efork);
if(type=='<' || type=='|'){
int nulls;
if(downloaded && addr.r.p1 != addr.r.p2)
outTl(Hsnarflen, addr.r.p2-addr.r.p1);
snarf(f, addr.r.p1, addr.r.p2, &snarfbuf, 0);
logdelete(f, addr.r.p1, addr.r.p2);
close(pipe1[1]);
io = pipe1[0];
f->tdot.p1 = -1;
f->ndot.r.p2 = addr.r.p2+readio(f, &nulls, 0, FALSE);
f->ndot.r.p1 = addr.r.p2;
closeio((Posn)-1);
}else if(type=='>'){
close(pipe1[0]);
io = pipe1[1];
bpipeok = 1;
writeio(f);
bpipeok = 0;
closeio((Posn)-1);
}
retmsg = waitfor(pid);
if(type=='|' || type=='<')
if(retmsg[0]!=0)
warn_s(Wbadstatus, retmsg);
if(downloaded)
checkerrs();
if(!nest)
dprint("!\n");
return retmsg[0] ? -1 : 0;
}
void
checkerrs(void)
{
char buf[256];
int f, n, nl;
char *p;
long l;
if(statfile(errfile, 0, 0, 0, &l, 0) > 0 && l != 0){
if((f=open((char *)errfile, 0)) != -1){
if((n=read(f, buf, sizeof buf-1)) > 0){
for(nl=0,p=buf; nl<3 && p<&buf[n]; p++)
if(*p=='\n')
nl++;
*p = 0;
dprint("%s", buf);
if(p-buf < l-1)
dprint("(sam: more in %s)\n", errfile);
}
close(f);
}
}else
remove((char *)errfile);
}
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* This file implements the Current Item filters Widget class.
*
* This file is part of the evoCore framework - {@link http://evocore.net/}
* See also {@link https://github.com/b2evolution/b2evolution}.
*
* @license GNU GPL v2 - {@link http://b2evolution.net/about/gnu-gpl-license}
*
* @copyright (c)2003-2020 by Francois Planque - {@link http://fplanque.com/}
* Parts of this file are copyright (c)2008 by Daniel HAHLER - {@link http://daniel.hahler.de/}.
*
* @package evocore
*/
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
load_class( 'widgets/model/_widget.class.php', 'ComponentWidget' );
/**
* ComponentWidget Class
*
* A ComponentWidget is a displayable entity that can be placed into a Container on a web page.
*
* @package evocore
*/
class coll_current_filters_Widget extends ComponentWidget
{
var $icon = 'filter';
/**
* Constructor
*/
function __construct( $db_row = NULL )
{
// Call parent constructor:
parent::__construct( $db_row, 'core', 'coll_current_filters' );
}
/**
* Get help URL
*
* @return string URL
*/
function get_help_url()
{
return get_manual_url( 'current-filters-widget' );
}
/**
* Get name of widget
*/
function get_name()
{
return T_('Current Item filters');
}
/**
* Get a very short desc. Used in the widget list.
*/
function get_short_desc()
{
return format_to_output( $this->disp_params['title'] );
}
/**
* Get short description
*/
function get_desc()
{
return T_('Summary of the current Item filters.');
}
/**
* Get definitions for editable params
*
* @see Plugin::GetDefaultSettings()
* @param array local params
*/
function get_param_definitions( $params )
{
$r = array_merge( array(
'title' => array(
'type' => 'text',
'label' => T_('Block title'),
'defaultvalue' => T_('Current Item filters'),
'maxlength' => 100,
),
'show_filters' => array(
'type' => 'checklist',
'label' => T_('Show filters'),
'options' => array(
array( 'category', T_('Category'), 1 ),
array( 'archive', T_('Archive'), 1 ),
array( 'keyword', T_('Keyword'), 1 ),
array( 'tag', /* TRANS: noun */ T_('Tag'), 1 ),
array( 'author', T_('Author'), 1 ),
array( 'assignee', T_('Assignee'), 1 ),
array( 'locale', T_('Locale'), 1 ),
array( 'status', T_('Status'), 1 ),
array( 'itemtype', T_('Item Type'), 0 ),
array( 'visibility', T_('Visibility'), 0 ),
array( 'time', T_('Past/Future'), 0 ),
array( 'limit', T_('Limit by days'), 1 ),
array( 'flagged', T_('Flagged'), 1 ),
array( 'mustread', T_('Must read'), 1 ),
),
),
), parent::get_param_definitions( $params ) );
return $r;
}
/**
* Display the widget!
*
* @param array MUST contain at least the basic display params
*/
function display( $params )
{
global $MainList;
$params = array_merge( array(
'ItemList' => $MainList,
'display_button_reset' => true, // Display a button to reset all filters
'display_empty_filter' => false, // Display a block with text "No filters"
), $params );
if( empty( $params['ItemList'] ) )
{ // Empty ItemList object
$this->display_debug_message( 'Widget "'.$this->get_name().'" is hidden because there is an empty param "ItemList".' );
return false;
}
if( isset( $params['show_filters'] ) )
{ // Get the predefined filters
$show_filters = $params['show_filters'];
unset( $params['show_filters'] );
}
$this->init_display( $params );
if( isset( $show_filters ) )
{ // Rewrite default filters by predefined
$this->disp_params['show_filters'] = array_merge( $this->disp_params['show_filters'], $show_filters );
}
$filters = implode( ' '.T_('AND').' ', $params['ItemList']->get_filter_titles( array(), array(
'categories_text' => '',
'categories_nor_text' => T_('NOT').' ',
'tags_nor_text' => T_('NOT').' ',
'authors_nor_text' => T_('NOT').' ',
'group_mask' => '$filter_items$',
'filter_mask' => '<div class="filter_item $filter_class$">'."\n"
.'<div class="group">$group_title$</div>'."\n"
.'<div class="name">$filter_name$</div>'."\n"
.'<div class="icon">$clear_icon$</div>'."\n"
.'</div>',
'filter_mask_nogroup' => '<div class="filter_item $filter_class$">'."\n"
.'<div class="name">$filter_name$</div>'."\n"
.'<div class="icon">$clear_icon$</div>'."\n"
.'</div>',
'before_items' => '( ',
'after_items' => ' )',
'separator_and' => ' '.T_('AND').' ',
'separator_or' => ' '.T_('OR').' ',
'separator_nor' => ' '.T_('NOR').' ',
'separator_comma' => ' '.T_('OR').' ',
'display_category' => ! empty( $this->disp_params['show_filters']['category'] ),
'display_archive' => ! empty( $this->disp_params['show_filters']['archive'] ),
'display_keyword' => ! empty( $this->disp_params['show_filters']['keyword'] ),
'display_tag' => ! empty( $this->disp_params['show_filters']['tag'] ),
'display_author' => ! empty( $this->disp_params['show_filters']['author'] ),
'display_assignee' => ! empty( $this->disp_params['show_filters']['assignee'] ),
'display_locale' => ! empty( $this->disp_params['show_filters']['locale'] ),
'display_status' => ! empty( $this->disp_params['show_filters']['status'] ),
'display_visibility' => ! empty( $this->disp_params['show_filters']['visibility'] ),
'display_itemtype' => ! empty( $this->disp_params['show_filters']['itemtype'] ),
'display_time' => ! empty( $this->disp_params['show_filters']['time'] ),
'display_limit' => ! empty( $this->disp_params['show_filters']['limit'] ),
'display_flagged' => ! empty( $this->disp_params['show_filters']['flagged'] ),
'display_mustread' => ! empty( $this->disp_params['show_filters']['mustread'] ),
) ) );
if( empty( $filters ) && ! $params['display_empty_filter'] )
{ // No filters
$this->display_debug_message( 'Widget "'.$this->get_name().'" is hidden because there are no filters.' );
return false;
}
// START DISPLAY:
echo $this->disp_params['block_start'];
// Display title if requested
$this->disp_title();
echo $this->disp_params['block_body_start'];
if( empty( $filters ) )
{ // No filters
if( $params['display_empty_filter'] )
{
if( is_admin_page() && get_param( 'tab' ) == 'type' )
{ // Try to get a title for current selected post type on back-office pages:
switch( get_param( 'tab_type' ) )
{
case 'page':
$current_post_type_title = T_('Pages');
break;
case 'special':
$current_post_type_title = T_('Special Items');
break;
case 'intro':
$current_post_type_title = T_('Intros');
break;
case 'content-block':
$current_post_type_title = T_('Content Blocks');
break;
default: // post
$current_post_type_title = T_('Posts');
}
$current_post_type_title = '"'.$current_post_type_title.'"';
}
if( empty( $current_post_type_title ) )
{ // Use this title by default for unknown selected post type:
$current_post_type_title = T_('items');
}
echo sprintf( T_('No filters - Showing all %s'), $current_post_type_title );
}
}
else
{ // Display the filters
echo $filters;
if( $params['display_button_reset'] )
{ // Display link/button to reset all filters:
global $Blog;
if( is_admin_page() || ! isset( $Blog ) )
{ // Regenerate URL by removing all filters from current URL on back-office:
$remove_filters_url = regenerate_url( 'catsel,cat,'
.$params['ItemList']->param_prefix.'tag,'
.$params['ItemList']->param_prefix.'author,'
.$params['ItemList']->param_prefix.'author_login,'
.$params['ItemList']->param_prefix.'assgn,'
.$params['ItemList']->param_prefix.'assgn_login,'
.$params['ItemList']->param_prefix.'author_assignee,'
.$params['ItemList']->param_prefix.'lc,'
.$params['ItemList']->param_prefix.'status,'
.$params['ItemList']->param_prefix.'show_statuses,'
.$params['ItemList']->param_prefix.'types,'
.$params['ItemList']->param_prefix.'s,'
.$params['ItemList']->param_prefix.'sentence,'
.$params['ItemList']->param_prefix.'exact,'
.$params['ItemList']->param_prefix.'p,'
.$params['ItemList']->param_prefix.'title,'
.$params['ItemList']->param_prefix.'pl,'
.$params['ItemList']->param_prefix.'m,'
.$params['ItemList']->param_prefix.'w,'
.$params['ItemList']->param_prefix.'dstart,'
.$params['ItemList']->param_prefix.'dstop,'
.$params['ItemList']->param_prefix.'show_past,'
.$params['ItemList']->param_prefix.'show_future,'
.$params['ItemList']->param_prefix.'flagged,'
.$params['ItemList']->param_prefix.'mustread' );
}
else
{ // Use home page of the current Collection on front-office:
$remove_filters_url = $Blog->get( 'url' );
}
echo '<p>'.action_icon( T_('Remove filters'), 'reset_filters',
$remove_filters_url, ' '.T_('Remove filters'), 3, 4 ).'<p>';
}
}
echo $this->disp_params['block_body_end'];
echo $this->disp_params['block_end'];
return true;
}
}
?>
|
{
"pile_set_name": "Github"
}
|
!!!COM: Palestrina, Giovanni Perluigi da
!!!OPR: Missa Tu es Petrus (1887)
!!!OTL: Gloria
**kern **kern **kern **kern **kern **kern
*Ibass *Ibarit *Itenor *Icalto *Icant *Icant
!Bassus !Baritone !Tenor !Altus !Cantus 2 !Cantus 1
*clefF4 *clefF4 *clefGv2 *clefG2 *clefG2 *clefG2
*k[] *k[] *k[] *k[] *k[] *k[]
*G:mix *G:mix *G:mix *G:mix *G:mix *G:mix
*M4/2 *M4/2 *M4/2 *M4/2 *M4/2 *M4/2
=1 =1 =1 =1 =1 =1
0r 0r 0r 1.g 1.b 0dd
. . . 4f# 4a .
. . . 4e 4g .
=2 =2 =2 =2 =2 =2
0r 0r 1r 2f# 2a 1dd
. . . 2g 2b .
. . 2r 1c 2.cc 1ee
. . [2g . . .
. . . . 4b .
=3 =3 =3 =3 =3 =3
0r 0r 2g] 1.d 1a 2.dd
. . 4f# . . .
. . 4e . . 8cc
. . . . . 8b
. . 2f# . 1dd 2a
. . 2g 2G . 2b
=4 =4 =4 =4 =4 =4
0r 0r 2c 2r 1ee 1cc
. . 2c 2.g . .
. . 2d . 1dd 1a
. . . 4f# . .
. . 2d 2f# . .
=5 =5 =5 =5 =5 =5
0r 0r 2G 2g 2dd 2b
. . 2g 2e 2ee 2cc
. . 1a 4d 1ff 1dd
. . . 4e . .
. . . 4f . .
. . . 4g . .
=6 =6 =6 =6 =6 =6
0r 0r 1.A 2a 1.ee 2cc
. . . 1cc . 2a
. . . . . 2cc
. . 2B 2b 2dd 2dd
=7 =7 =7 =7 =7 =7
0r 0r 2c 2a 2.cc 1ee
. . 2c 1g . .
. . . . 4b .
. . 1d . 1a 1dd
. . . 2f# . .
=8 =8 =8 =8 =8 =8
1G 1B 2G 2g 1b 0dd
. . 2d 1g . .
2G 2B 1d . 1r .
4F# 4A . [2a . .
4E 4G . . . .
=9 =9 =9 =9 =9 =9
2F# 2A 1d 2a] 1r 0r
2G 2B . 2g . .
4C 2c 2e 1g 2r .
4D . . . . .
4E [2c [2g . [2ee .
4F . . . . .
=10 =10 =10 =10 =10 =10
1G 2c] 2g] 2r 2ee] 0r
. 4B 2g 1d 4dd .
. 4A . . 4cc .
1r 2B 2.g . 2dd .
. 2c . 2c 2ee .
. . 4g . . .
=11 =11 =11 =11 =11 =11
1r 2F 1a 2cc 2ff 1r
. 2F . 2cc 2ff .
2r 2c 1g 1cc 1ee 2r
[2c 4C . . . [2ee
. 4D . . . .
=12 =12 =12 =12 =12 =12
2c] 4E 2r 1g 0gg 2ee]
. 4F . . . .
4B 1G 1g . . 4dd
4A . . . . 4cc
2B . . 2r . 2dd
2c 2C 2g [2cc . 2ee
=13 =13 =13 =13 =13 =13
2F 1r 2a 2cc] 1r 2ff
2F . 2a 2cc . 2ff
1c 2r 4g 2cc 2r 2.ee
. . 4f . . .
. 2c 4e 2cc 2ee .
. . 4d . . 4ff
=14 =14 =14 =14 =14 =14
2r 2c 2c 1g 2ee 1gg
2G 4B 2d . 4dd .
. 4A . . 4cc .
2G 2B 2d 2r 2dd 2g
2C 2c 2c 2g 2ee 4g
. . . . . 4a
=15 =15 =15 =15 =15 =15
0G 4G 1d 2g 1dd 4b
. 4A . . . 4cc
. 4B . 4G . 1dd
. 4c . 4A . .
. 1d 2G 4B 2.b .
. . . 4c . .
. . [2d 4d . 2b
. . . 4e 4cc .
=16 =16 =16 =16 =16 =16
0D 0d 4d] 2f# 0dd 2a
. . 4c . . .
. . 2B 1g . 2g
. . 1A . . 1a
. . . 2f# . .
=17 =17 =17 =17 =17 =17
1G 1B 1G 1g 1dd 1b
1r 1r 1r 1r 1r 1r
=18 =18 =18 =18 =18 =18
0r 1.A 0r 1.a 1.cc# 1.ee
. 2A . 2a 2cc# 2ee
=19 =19 =19 =19 =19 =19
1r 1A 2r 1a 1cc# 1ee
. . 1A . . .
1D [1d . [1f# [1dd [1a
. . 2A . . .
=20 =20 =20 =20 =20 =20
2D 1d] 2A 1f#] 1dd] 1a]
2D . 1d . . .
2G 1B . 1g 1dd 1b
2G . 2G . . .
=21 =21 =21 =21 =21 =21
1C 1c 2G 1g 2.cc 1ee
. . 2.c . . .
. . . . 4dd .
2.c 1A . 2r 2ee [1cc
. . 4d . . .
. . 4e [2cc [2a .
4B . 8d . . .
. . 8e . . .
=22 =22 =22 =22 =22 =22
4A 2.F 1f 4cc] 4a] 0cc]
4G . . 4b 4b .
4F . . 4a 2cc .
4E 4G . 4g . .
1F 2.A 1c 4f 4a .
. . . 4g 4b .
. . . 2a 4cc .
. 4B . . 4dd .
=23 =23 =23 =23 =23 =23
1C 0c 2r 1g 1ee 1cc
. . 1g . . .
2r . . 2r [1cc [1ee
[2c . 2c [2g . .
=24 =24 =24 =24 =24 =24
2c] 0r 2g 2g] 2cc] 2ee]
2F . 2f 2a 2cc 2ff
2c . 1e 2g 2.cc 2gg
2A . . 2a . 2cc
. . . . 8b .
. . . . 8a .
=25 =25 =25 =25 =25 =25
1G 0r 1g 2d 1b 2dd
. . . 2g . 2ee
1F . 4a 4cc 1a 4ff
. . 4g 4b . 4ee
. . 4f 2a . 4dd
. . 4e . . 4cc
=26 =26 =26 =26 =26 =26
2G 0r 2d 2g 0r 2b
2A . 2c 2f . 1cc
1G . 1d 2.g . .
. . . . . 2b
. . . 4f . .
=27 =27 =27 =27 =27 =27
1C 2r 2c 1e 2r 2cc
. 2.c 2.g . 2.ee 2.cc
1r . . 1r . .
. 4c 4g . 4ee 4cc
. 2B 2g . 2dd 2dd
=28 =28 =28 =28 =28 =28
0r 1c 1g 0r 1cc 1ee
. 2G 1g . 2b 2dd
. [2c . . [2cc [2ee
=29 =29 =29 =29 =29 =29
1r 2c] 2g 0r 2cc] 2ee]
. 2B 2g . 2dd 2dd
2r 1A 2c . 2ee 2cc
[2c . 2c . 2ff# 2cc
=30 =30 =30 =30 =30 =30
2c] 1G 0r 2r 1gg 2ee
2B . . 1g . 2dd
1c 2r . . 2r 1ee
. [2c . 2g [2ee .
=31 =31 =31 =31 =31 =31
1G 2c] 2r 2.g 2ee] 0gg
. 2B 1g . 2dd .
. . . 4f . .
2r 1c . 4e 1ee .
. . . 4d . .
2c . 2g 2c . .
=32 =32 =32 =32 =32 =32
2c 2G 1g 2.d 1dd 0r
2B 2G . . . .
. . . 4e . .
2.A 2.F 1c 4f 2r .
. . . 4g . .
. . . [2a 4a .
4G 4G . . 4b .
=33 =33 =33 =33 =33 =33
2F 4A 1c 2a] 4cc 0r
. 4B . . 4dd .
2E 1c . 2g 2ee .
1D . 2d 2f 2ff .
. 2B 2d 2f 2dd .
=34 =34 =34 =34 =34 =34
1C 2c 2G 2e 1ee 2r
. 1c 1g 1e . 1cc
1r . . . 1r .
. 2c 2e 2g . 2cc
=35 =35 =35 =35 =35 =35
0r 1F 1f 1a 0r 1cc
. 2G 2d 1g . 2b
. 2G 2e . . 2b
=36 =36 =36 =36 =36 =36
0r 4F 1f 1c 1.cc 4a
. 4G . . . 4b
. 4A . . . 4cc
. 4B . . . 4dd
. 2c 1e 1r . 2ee
. 2e . . 2cc 2gg
=37 =37 =37 =37 =37 =37
0r 2d 2a 1r 2.dd 2gg
. 2d 2a . . 2ff#
. . . . 4dd .
. 1G 1g 2r 1dd [1gg
. . . [2g . .
=38 =38 =38 =38 =38 =38
0C 0c 2.e 2g] 2r 1gg]
. . . 4c 1ee .
. . 4f 4d . .
. . 1g 4e . 1ee
. . . 4f . .
. . . 4g [2cc .
. . . 4e . .
=39 =39 =39 =39 =39 =39
0F 0A 0a 4f 4cc] 2.cc
. . . 4g 4b .
. . . 4a 4a .
. . . 4b 4g 4b
. . . 1cc 2f 4a
. . . . . 4g
. . . . [2ff 2f
=40 =40 =40 =40 =40 =40
0D 1d 2.a 2.f 4ff] 2.ff
. . . . 4ee .
. . . . 4dd .
. . 4g 4g 4cc 4ee
. 1d 4f 1a 4dd 4dd
. . 4e . 4ee 4cc
. . 2d . 2ff 2dd
=41 =41 =41 =41 =41 =41
1A 2r 0e 2a 2ee 2cc#
. 2.A . 2.a 2.cc# 2.ee
1r . . . . .
. 4A . 4a 4cc# 4ee
. 2A . 2a 2cc# 2ee
=42 =42 =42 =42 =42 =42
0r 1d 0r 1f# 1dd 1a
. 2G . 1g 2dd 2b
. [2c . . [2ee [2cc
=43 =43 =43 =43 =43 =43
0r 2c] 0r 1g 2ee] 2cc]
. 2B . . 2dd 2dd
. 1c . 2e 2.cc 1ee
. . . [2g . .
. . . . 4b .
=44 =44 =44 =44 =44 =44
2r 0d 2r 2g] 0a 1dd
2.D . 2.A 4f# . .
. . . 4e . .
. . . 1f# . 2r
4D . 4A . . .
2D . 2A . . [2dd
=45 =45 =45 =45 =45 =45
1G 2r 1B 1g 1g 4dd]
. . . . . 4dd
. 2.G . . . 2dd
1C . 2.c [1e 2r 1ee
. 4G . . . .
. 2G . . [2g .
. . 4d . . .
=46 =46 =46 =46 =46 =46
2r 2.c 0e 2e] 4g] 1ee
. . . . 4g .
2.C . . 2c 2g .
. 4B . . . .
. 2A . 1c 2.cc 2r
4C . . . . .
2C 2G . . . [2cc
. . . . 4b .
=47 =47 =47 =47 =47 =47
2.F 0A 2r 1c [0a 4cc]
. . . . . 4cc
. . 2c . . 2cc
4E . . . . .
2D . 2d 2r . 2ff
2C# . 2e [2A . [2ee
=48 =48 =48 =48 =48 =48
1D 2.F 1f 2A] 0a] 4ee]
. . . . . 4dd
. . . 2.a . 1dd
. 4G . . . .
1AA 1A 1e . . .
. . . 4g . .
. . . 2e . 2cc#
=49 =49 =49 =49 =49 =49
0D 0A 0d 0f# 0a 0dd
=50 =50 =50 =50 =50 =50
0G 1r 0d 0g 0b 0dd
. [1G . . . .
=51 =51 =51 =51 =51 =51
0C 1G] 0c 0g 1.cc 0ee
. 1c . . . .
. . . . 4g .
. . . . 4a .
=52 =52 =52 =52 =52 =52
1.G 2.B 1d 1g 4b 1dd
. . . . 4a .
. . . . 4b .
. 4A . . 4cc .
. 4G 1g 1b 2dd 2r
. 4A . . . .
2G 4B . . 2dd 2dd
. 4c . . . .
=53 =53 =53 =53 =53 =53
2D 2d 2f 2a 2ff 2dd
2D 2d 2f 2a 2ff 2dd
1F 2A 2f 1a 1ff 1cc
. 2A 4c . . .
. . 4d . . .
=54 =54 =54 =54 =54 =54
1C 1c 4e 2g 2ee 1cc
. . 4d . . .
. . 4e 1cc 1ee .
. . 4f . . .
1r 1G 1g . . 2r
. . . 2b 2dd [2gg
=55 =55 =55 =55 =55 =55
0r 0r 0r 1.a 1.cc 2gg]
. . . . . 2ff
. . . . . 2.ee
. . . 4g 2b .
. . . 4f . 4dd
=56 =56 =56 =56 =56 =56
0r 0r 0r 2e 2cc 2ee
. . . 2d 2.dd 2ff
. . . 1a . 2ee
. . . . 4cc .
. . . . [2cc 4dd
. . . . . 4cc
=57 =57 =57 =57 =57 =57
0G 1r 0d 1g 2cc] 1dd
. . . . 4b .
. . . . 4a .
. [1G . 2r 2b 2dd
. . . 2g 2dd 2b
=58 =58 =58 =58 =58 =58
0C 1G] 0c 0g 0ee 1.cc
. 1c . . . .
. . . . . 4g
. . . . . 4a
=59 =59 =59 =59 =59 =59
1.G 2.B 1d 1g 1dd 4b
. . . . . 4a
. . . . . 4b
. 4A . . . 4cc
. 4G 1g 1b 2r 2dd
. 4A . . . .
2G 4B . . 2dd 2dd
. 4c . . . .
=60 =60 =60 =60 =60 =60
2D 2d 1.f 2a 2dd 1ff
2D 2d . 2a 2dd .
1F 2A . 1a [1cc 1ff
. 2A 2c . . .
=61 =61 =61 =61 =61 =61
1C 1c 1e 1g 1cc] 1ee
2r 1G 1g 2r 2b 2dd
[2G . . [2g [2dd [2b
=62 =62 =62 =62 =62 =62
2G] 2r 2r 2g] 2dd] 2b]
2G 1G 1d 2g 2dd 2b
1G . . [1g 1dd 1b
. 2G 2d . . .
=63 =63 =63 =63 =63 =63
0r 0G 2d 1g] 2r 2r
. . 1g . 1dd 1b
. . . 2r . .
. . 2g [2g 2dd 2b
=64 =64 =64 =64 =64 =64
0r 0r 2c 2g] 2ee 2cc
. . 2c 2g 2ee 2cc
. . 4G 2g 2.dd 2b
. . 4A . . .
. . 4B 2g . 2b
. . 4c . 4ee .
=65 =65 =65 =65 =65 =65
0r 0r 2d 4f 2ff 4a
. . . 4g . 4b
. . 4c 4a 2.ee 4cc
. . 4B 4b . 4dd
. . 2A 2cc . 4ee
. . . . 8dd 4ff
. . . . 8cc .
. . 2e 2g 2b [2gg
=66 =66 =66 =66 =66 =66
1r 1r 1d 1a 1dd 2gg]
. . . . . 2ff#
1G 1B 2G 2b 2dd 1gg
. . 2d 2g 2dd .
=67 =67 =67 =67 =67 =67
1C 1c 1e 1g 1cc 2r
. . . . . 2g
[1G [1B [1d 1g 1dd 1b
=68 =68 =68 =68 =68 =68
1G] 1B] 1d] 2r 2r 2dd
. . . 1g 1b 2dd
1r 1r 1r . . 2.ee
. . . [2a [2cc .
. . . . . 4cc
=69 =69 =69 =69 =69 =69
1r 1r 2r 4a] 4cc] 2cc
. . . 4f# 4a .
. . 1d 2f# 2a 1dd
1G 2r . 2.g 1b .
. 2B [2e . . 2g
. . . 4f . .
=70 =70 =70 =70 =70 =70
2.A 2.c 4e] 2e 1a 0r
. . 4c . . .
. . 2c 2A . .
4F# 4A . . . .
2F# 2A 1d 1r 1r .
[2G [2B . . . .
=71 =71 =71 =71 =71 =71
2G] 2B] 2B 0r 0r 0r
2E 2G 2c . . .
2F 2A 2d . . .
2G 2B 2e . . .
=72 =72 =72 =72 =72 =72
2A 2c 2f 2r 0r 1r
2B 1d 2.g 2d . .
1c . . 2e . 2r
. . 4f . . .
. 2c 2e 2g . 2cc
=73 =73 =73 =73 =73 =73
1G 2c 1d 1g 2r 1dd
. 2B . . 2g .
1C 2.c 1c 2.e 2g [1ee
. . . . [2cc .
. 8B . 4f . .
. 8A . . . .
=74 =74 =74 =74 =74 =74
0r 1G 0r 1g 2cc] 2ee]
. . . . 2b 2dd
. 1r . 4c 1ee 1cc
. . . 4d . .
. . . 4e . .
. . . 4f . .
=75 =75 =75 =75 =75 =75
2r 1r 2r 2g 1dd 2b
1G . 1B 1g . 1b
. [1d . . 2r .
2G . 2B 2g [2dd 2b
=76 =76 =76 =76 =76 =76
2.G 2d] 1B 1g 2dd] 2.b
. 2d . . 2dd .
8F . . . . 8a
8E . . . . 8g
1D 2.d 2r 2.f 2dd 1a
. . 2d . [2dd .
. 8c . 4g . .
. 8B . . . .
=77 =77 =77 =77 =77 =77
0r 2A 2e 1a 4dd] 2r
. . . . 4dd .
. 2A 2f . 2cc 2a
. 2G 2g 1r 2b 2b
. 2F 2a . [2a 2cc
=78 =78 =78 =78 =78 =78
1r 1B- 1d 2r 2a] 1dd
. . . 2d 2g .
2r 1A 1r 2e 2a 1cc
2A . . 2f 2a .
=79 =79 =79 =79 =79 =79
2G 0r 1r 2g 2b 0r
2F . . 1a 2cc .
2B- . 2r . 2dd .
2B- . 2d 2g 2dd .
=80 =80 =80 =80 =80 =80
1A 1r 2e 1a 2.cc 2r
. . 2f . . 2a
. . . . 4dd .
1r 2r 1g 1e 1ee 2b
. 2e . . . 2cc
=81 =81 =81 =81 =81 =81
0r 2d 1.a 2f 2r 2dd
. 2c . 2e 2ee 1ee
. 1f . 2r 2cc .
. . 2d 2a 2dd [2dd
=82 =82 =82 =82 =82 =82
0r 2e 1g 2b 2ee 2dd]
. 2e . 2g 1gg 2cc#
. [1d 1r [1a . [1dd
. . . . 4ff# .
. . . . 4ee .
=83 =83 =83 =83 =83 =83
1r 1d] 1r 1a] 2ff# 1dd]
. . . . 2ff# .
[1C [1c [1e [1cc 1gg [1ee
=84 =84 =84 =84 =84 =84
2C] 2c] 2e] 1cc] 1.g 0ee]
2D 4B 2f . . .
. 4A . . . .
2E [1G [1g [1b . .
2F . . . 2a .
=85 =85 =85 =85 =85 =85
1.G 2G] 1g] 0b] 2b 1dd
. 2A . . 2cc .
. 1B 1G . 2dd 1gg
2G . . . 2dd .
=86 =86 =86 =86 =86 =86
0F 1c 2.A 0a 0ff 0cc
. . 4B . . .
. 1A 2c . . .
. . 2d . . .
=87 =87 =87 =87 =87 =87
0C 1c 0e 1g 1ee 1cc
. 2r . 2r 1ee 2r
. 2c . 2g . 2cc
=88 =88 =88 =88 =88 =88
0r 2B 0r 2g 2dd 2dd
. 2c . 2g 2cc 2ee
. 2.F . 2a 2.cc 2ff
. . . 2a . 2ff
. 4F . . 4cc .
=89 =89 =89 =89 =89 =89
2r 1G 2r 2g 2b 0dd
2G . 2d 2b 2g .
2F# 1r 2d 2a 2a .
2G . 2d 2g 2b .
=90 =90 =90 =90 =90 =90
2.C 1r 2.e 2.g 2.cc 1r
4C . 4e 4g 4cc .
1G 2r 2d 1g 2b 2r
. 2G 2g . 2dd 2b
=91 =91 =91 =91 =91 =91
0r 2.G 2.g 0r 2.dd 2.b
. 4G 4g . 4dd 4b
. 1c 1g . 1ee 1cc
=92 =92 =92 =92 =92 =92
0r 2G 2g 0r 2dd 2b
. 2G 2d . 2b 2g
. 4F 1f . [1cc 4a
. 4G . . . 4b
. 4A . . . 4cc
. 4B . . . 4dd
=93 =93 =93 =93 =93 =93
1r 4c 1e 1r 1cc] 4ee
. 4d . . . 4ff
. 2e . . . 1gg
2r [1d 1r 1a 1dd .
2D . . . . 4ff#
. . . . . 4ee
=94 =94 =94 =94 =94 =94
2.D 1d] 2r 2.a 2r 1ff#
. . 2d . 2dd .
4D . . 4a . .
1G 1r 2.d 1b 2.dd 1gg
. . 4d . 4dd .
=95 =95 =95 =95 =95 =95
2E 0r 1e 2b 1gg 0r
2C . . 2cc . .
4D . 2d [1a 2ff .
4E . . . . .
4F . 2d . 2ff .
4G . . . . .
=96 =96 =96 =96 =96 =96
4A 1r 1c 2a] 1ee 1r
4B . . . . .
1c . . 4g . .
. . . 4f . .
. 1G [1d [1g 1dd 2r
4B . . . . 2dd
4A . . . . .
=97 =97 =97 =97 =97 =97
1B 2.G 1d] 1g] 2r 2dd
. . . . 2g 2dd
. 4G . . . .
2c [1c 2r 1e 2.g [1ee
2C . 2g . . .
. . . . 4g .
=98 =98 =98 =98 =98 =98
2.C 1c] 2.e 2r 1cc 1ee]
. . . 2g . .
4C . 4e . . .
1G 2d 1g 2g 2b 2dd
. 2d . 2d 2g 2b
=99 =99 =99 =99 =99 =99
1F 1A 1.c 1f 4a 1.cc
. . . . 4b .
. . . . 4cc .
. . . . 4dd .
1C 1G . 2e 4ee .
. . . . 4ff .
. . 2B 2e [2gg 2g
=100 =100 =100 =100 =100 =100
0D 1r 0A 0d 2gg] 1dd
. . . . 4ff# .
. . . . 4ee .
. 1d . . 1ff# 2dd
. . . . . [2dd
=101 =101 =101 =101 =101 =101
1G 1B 2G 1d 0gg 2dd]
. . 1d . . 1b
1G 2d . [1g . .
. 2d 2B . . [2dd
=102 =102 =102 =102 =102 =102
1E 0G 1e 2g] 2r 4dd]
. . . . . 4cc
. . . 2g 2.gg 1cc
2G . 1d 2g . .
. . . . 8ff .
. . . . 8ee .
2G . . 2g 2dd 2b
=103 =103 =103 =103 =103 =103
0C 1.G 0c 0g 2.ee 2.cc
. . . . 4dd 4dd
. . . . 1cc 1ee
. 2A . . . .
=104 =104 =104 =104 =104 =104
0G 0B 0d 0g 0b 0dd
== == == == == ==
*- *- *- *- *- *-
!!!CDT: 1525/^1526/-1594/2/2
!!!OCY: Italia
!!!AGN: Mass (Parody)
!!!AST: renaissance, vocal
!!!ASW: Motet 1572 (Palestrina)
!!!PWK: Masses, Book 11
!!!RNB: Cadence finals: C,D
!!!YOR: Le Opere Complete, v. 28, p. 268
!!!YOO: Rome, Italy: Fratelli Scalera
!!!END: 1992//
!!!EED: John Miller
!!!YEC: Copyright 2000, John Miller
!!!YEN: United States of America
!!!YEM: Rights to all derivative electronic formats reserved.
!!!YEM: Refer to licensing agreement for further details.
!!!YEM: This file must be accompanied by the licensing agreement.
!!!YEM: A copy of the licensing agreement may be found at http://www.music-cog.ohio-state.edu/HumdrumDatabases/Palestrina/license.txt
!!!EMD: converted to Humdrum by Bret Aarden
|
{
"pile_set_name": "Github"
}
|
/*
* ext-arrows.js
*
* Licensed under the Apache License, Version 2
*
* Copyright(c) 2010 Alexis Deveria
*
*/
svgEditor.addExtension("Arrows", function(S) {
var svgcontent = S.svgcontent,
addElem = S.addSvgElementFromJson,
nonce = S.nonce,
randomize_ids = S.randomize_ids,
selElems;
svgCanvas.bind('setnonce', setArrowNonce);
svgCanvas.bind('unsetnonce', unsetArrowNonce);
var lang_list = {
"en":[
{"id": "arrow_none", "textContent": "No arrow" }
],
"fr":[
{"id": "arrow_none", "textContent": "Sans flèche" }
]
};
var prefix = 'se_arrow_';
if (randomize_ids) {
var arrowprefix = prefix + nonce + '_';
} else {
var arrowprefix = prefix;
}
var pathdata = {
fw: {d:"m0,0l10,5l-10,5l5,-5l-5,-5z", refx:8, id: arrowprefix + 'fw'},
bk: {d:"m10,0l-10,5l10,5l-5,-5l5,-5z", refx:2, id: arrowprefix + 'bk'}
}
function setArrowNonce(window, n) {
randomize_ids = true;
arrowprefix = prefix + n + '_';
pathdata.fw.id = arrowprefix + 'fw';
pathdata.bk.id = arrowprefix + 'bk';
}
function unsetArrowNonce(window) {
randomize_ids = false;
arrowprefix = prefix;
pathdata.fw.id = arrowprefix + 'fw';
pathdata.bk.id = arrowprefix + 'bk';
}
function getLinked(elem, attr) {
var str = elem.getAttribute(attr);
if(!str) return null;
var m = str.match(/\(\#(.*)\)/);
if(!m || m.length !== 2) {
return null;
}
return S.getElem(m[1]);
}
function showPanel(on) {
$('#arrow_panel').toggle(on);
if(on) {
var el = selElems[0];
var end = el.getAttribute("marker-end");
var start = el.getAttribute("marker-start");
var mid = el.getAttribute("marker-mid");
var val;
if(end && start) {
val = "both";
} else if(end) {
val = "end";
} else if(start) {
val = "start";
} else if(mid) {
val = "mid";
if(mid.indexOf("bk") != -1) {
val = "mid_bk";
}
}
if(!start && !mid && !end) {
val = "none";
}
$("#arrow_list").val(val);
}
}
function resetMarker() {
var el = selElems[0];
el.removeAttribute("marker-start");
el.removeAttribute("marker-mid");
el.removeAttribute("marker-end");
}
function addMarker(dir, type, id) {
// TODO: Make marker (or use?) per arrow type, since refX can be different
id = id || arrowprefix + dir;
var marker = S.getElem(id);
var data = pathdata[dir];
if(type == "mid") {
data.refx = 5;
}
if(!marker) {
marker = addElem({
"element": "marker",
"attr": {
"viewBox": "0 0 10 10",
"id": id,
"refY": 5,
"markerUnits": "strokeWidth",
"markerWidth": 5,
"markerHeight": 5,
"orient": "auto",
"style": "pointer-events:none" // Currently needed for Opera
}
});
var arrow = addElem({
"element": "path",
"attr": {
"d": data.d,
"fill": "#000000"
}
});
marker.appendChild(arrow);
S.findDefs().appendChild(marker);
}
marker.setAttribute('refX', data.refx);
return marker;
}
function setArrow() {
var type = this.value;
resetMarker();
if(type == "none") {
return;
}
// Set marker on element
var dir = "fw";
if(type == "mid_bk") {
type = "mid";
dir = "bk";
} else if(type == "both") {
addMarker("bk", type);
svgCanvas.changeSelectedAttribute("marker-start", "url(#" + pathdata.bk.id + ")");
type = "end";
dir = "fw";
} else if (type == "start") {
dir = "bk";
}
addMarker(dir, type);
svgCanvas.changeSelectedAttribute("marker-"+type, "url(#" + pathdata[dir].id + ")");
S.call("changed", selElems);
}
function colorChanged(elem) {
var color = elem.getAttribute('stroke');
var mtypes = ['start','mid','end'];
var defs = S.findDefs();
$.each(mtypes, function(i, type) {
var marker = getLinked(elem, 'marker-'+type);
if(!marker) return;
var cur_color = $(marker).children().attr('fill');
var cur_d = $(marker).children().attr('d');
var new_marker = null;
if(cur_color === color) return;
var all_markers = $(defs).find('marker');
// Different color, check if already made
all_markers.each(function() {
var attrs = $(this).children().attr(['fill', 'd']);
if(attrs.fill === color && attrs.d === cur_d) {
// Found another marker with this color and this path
new_marker = this;
}
});
if(!new_marker) {
// Create a new marker with this color
var last_id = marker.id;
var dir = last_id.indexOf('_fw') !== -1?'fw':'bk';
new_marker = addMarker(dir, type, arrowprefix + dir + all_markers.length);
$(new_marker).children().attr('fill', color);
}
$(elem).attr('marker-'+type, "url(#" + new_marker.id + ")");
// Check if last marker can be removed
var remove = true;
$(S.svgcontent).find('line, polyline, path, polygon').each(function() {
var elem = this;
$.each(mtypes, function(j, mtype) {
if($(elem).attr('marker-' + mtype) === "url(#" + marker.id + ")") {
return remove = false;
}
});
if(!remove) return false;
});
// Not found, so can safely remove
if(remove) {
$(marker).remove();
}
});
}
return {
name: "Arrows",
context_tools: [{
type: "select",
panel: "arrow_panel",
title: "Select arrow type",
id: "arrow_list",
options: {
none: "No arrow",
end: "---->",
start: "<----",
both: "<--->",
mid: "-->--",
mid_bk: "--<--"
},
defval: "none",
events: {
change: setArrow
}
}],
callback: function() {
$('#arrow_panel').hide();
// Set ID so it can be translated in locale file
$('#arrow_list option')[0].id = 'connector_no_arrow';
},
addLangData: function(lang) {
return {
data: lang_list[lang]
};
},
selectedChanged: function(opts) {
// Use this to update the current selected elements
selElems = opts.elems;
var i = selElems.length;
var marker_elems = ['line','path','polyline','polygon'];
while(i--) {
var elem = selElems[i];
if(elem && $.inArray(elem.tagName, marker_elems) != -1) {
if(opts.selectedElement && !opts.multiselected) {
showPanel(true);
} else {
showPanel(false);
}
} else {
showPanel(false);
}
}
},
elementChanged: function(opts) {
var elem = opts.elems[0];
if(elem && (
elem.getAttribute("marker-start") ||
elem.getAttribute("marker-mid") ||
elem.getAttribute("marker-end")
)) {
// var start = elem.getAttribute("marker-start");
// var mid = elem.getAttribute("marker-mid");
// var end = elem.getAttribute("marker-end");
// Has marker, so see if it should match color
colorChanged(elem);
}
}
};
});
|
{
"pile_set_name": "Github"
}
|
{
"translatorID": "3ddda662-ec86-448a-9979-9ee1e567c848",
"label": "Japanese Diet Laws",
"creator": "Frank Bennett",
"target": "http://www.shugiin.go.jp/internet/itdb_housei.nsf/html/(houritsu|housei)/[0-9]+\\.htm",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsv",
"lastUpdated": "2018-06-17 14:39:36"
}
function detectWeb(doc, url) {
return "statute";
}
var kanjiNum = {
"◯": 0,
"一": 1,
"二": 2,
"三": 3,
"四": 4,
"五": 5,
"六": 6,
"七": 7,
"八": 8,
"九": 9
}
var multipliers = [
100,
10,
1
]
function convertNumerals(number) {
return number.split("").map(function(chr){
if (kanjiNum[chr]) {
return kanjiNum[chr];
} else {
return chr;
}
}).join("");
}
function fixNumber(number) {
// Convert kanji numbers to arabic
number = convertNumerals(number);
// Break into parts
nums = number.split(/[\u767e\u5341]/);
// Give value to bare hundred and bare ten
var defaultNum = "1";
for (var i=0,ilen=3; i<ilen; i++) {
if (!nums[i]) {
if (i === (ilen-1)) {
nums[i] = "0";
} else {
nums[i] = "1";
}
}
}
// Pad out the array
while (nums.length < 3) {
nums = [0].concat(nums);
}
// Calculate the number
var number = 0;
for (var i=0,ilen=3; i<3; i++) {
number = number + multipliers[i] * parseInt(nums[i], 10);
}
return number;
}
var imperialOffset = {
"明": 1867,
"大": 1911,
"昭": 1925,
"平": 1988
}
function fixDate(date) {
var m = date.match(/(明|大|昭|平)(.*)/);
if (m) {
var offset = imperialOffset[m[1]];
date = convertNumerals(m[2]);
date = date.replace(/\u30fb/g, "-")
date = date.split("-");
date[0] = parseInt(date[0], 10) + offset;
for (var i=1,ilen=3; i<ilen; i++) {
while (date[i].length < 2) {
date[i] = "0" + date[i];
}
}
date = date.join("-");
}
return date;
}
function doWeb(doc, url) {
var item = new Zotero.Item("statute");
item.jurisdiction = "jp";
item.url = url;
var details = ZU.xpath(doc, "//title")[0].textContent;
var nameNode = ZU.xpath(doc, "//p[contains(text(),'\u25ce')]")[0];
item.nameOfAct = nameNode.textContent.replace(/^[\u3000\u25ce ]+/g, "");
var m = details.match(/法律第(.*)号\((.*)\)/);
var number = "";
var date = "";
if (m) {
item.publicLawNumber = fixNumber(m[1]);
item.dateEnacted = fixDate(m[2]);
}
var layoutNode = doc.getElementById("mainlayout");
if (layoutNode) {
var breadcrumbNode = doc.getElementById("breadcrumb");
if (breadcrumbNode) {
breadcrumbNode.parentNode.removeChild(breadcrumbNode);
}
var anchorNodes = ZU.xpath(layoutNode, ".//a");
for (var anchorNode of anchorNodes) {
if (anchorNode.children.length === 0) {
anchorNode.parentNode.removeChild(anchorNode);
}
}
item.notes.push({
note: layoutNode.innerHTML.replace(/[\s\S]*?\<p/, "<p")
});
}
item.complete();
}
|
{
"pile_set_name": "Github"
}
|
<?php defined('IN_ECJIA') or exit('No permission resources.');?>
<!-- {extends file="ecjia.dwt.php"} -->
<!-- {block name="footer"} -->
<script type="text/javascript">
ecjia.admin.shopping_admin.editFormSubmit();
</script>
<!-- {/block} -->
<!-- {block name="main_content"} -->
<div>
<h3 class="heading">
<!-- {if $ur_here}{$ur_here}{/if} -->
{if $action_link}
<a href="{$action_link.href}" class="btn plus_or_reply data-pjax" id="sticky_a"><i class="fontello-icon-reply"></i>{$action_link.text}</a>
{/if}
</h3>
</div>
<div class="row-fluid">
<div class="span12">
<form id="form-privilege" class="form-horizontal" name="editForm" action="{$form_action}" method="post" enctype="multipart/form-data" >
<fieldset>
<div class="control-group formSep">
<label class="control-label">{t domain="shipping"}名称:{/t}</label>
<div class="controls">
<input class="w350" name="shipping_name" type="text" id="shipping_name" value="{$shipping.shipping_name|escape}" size="40" />
<span class="input-must">*</span>
</div>
</div>
<div class="control-group formSep">
<label class="control-label">{t domain="shipping"}描述:{/t}</label>
<div class="controls">
<textarea class="w350" id="shipping_desc" name="shipping_desc" cols="10" rows="6">{$shipping.shipping_desc|escape}</textarea>
<span class="input-must">*</span>
</div>
</div>
<!-- 保价费用-->
<div class="control-group formSep">
<label class="control-label">{t domain="shipping"}保价费用:{/t}</label>
<div class="controls">
<label class="p_t5">{if $shipping.insure}{$shipping.insure}{else}{t domain="shipping"}不支持{/t}{/if}</label>
</div>
</div>
<!-- 货到付款-->
<div class="control-group formSep">
<label class="control-label">{t domain="shipping"}是否支持货到付款:{/t}</label>
<div class="controls">
<label class="p_t5">{if $shipping.support_cod == "1"}{t domain="shipping"}是{/t}{else}{t domain="shipping"}否{/t}{/if}</label>
</div>
</div>
<div class="control-group">
<div class="controls">
<button class="btn btn-gebo" type="submit">{t domain="shipping"}确定{/t}</button>
<input type="hidden" name="shipping_id" value="{$shipping.shipping_id}" />
<input type="hidden" name="shipping_code" value="{$shipping.shipping_code}" />
<input type="hidden" name="is_cod" value="{$shipping.is_cod}" />
<input type="hidden" name="support_cod" value="{$shipping.support_cod}" />
</div>
</div>
</fieldset>
</form>
</div>
</div>
<!-- {/block} -->
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
* Please refer to the LICENSE.txt for licensing details.
*/
package ch.ethz.ssh2.channel;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
/**
* A StreamForwarder forwards data between two given streams.
* If two StreamForwarder threads are used (one for each direction)
* then one can be configured to shutdown the underlying channel/socket
* if both threads have finished forwarding (EOF).
*
* @author Christian Plattner
* @version 2.50, 03/15/10
*/
public class StreamForwarder extends Thread
{
OutputStream os;
InputStream is;
byte[] buffer = new byte[Channel.CHANNEL_BUFFER_SIZE];
Channel c;
StreamForwarder sibling;
Socket s;
String mode;
StreamForwarder(Channel c, StreamForwarder sibling, Socket s, InputStream is, OutputStream os, String mode)
throws IOException
{
this.is = is;
this.os = os;
this.mode = mode;
this.c = c;
this.sibling = sibling;
this.s = s;
}
@Override
public void run()
{
try
{
while (true)
{
int len = is.read(buffer);
if (len <= 0)
break;
os.write(buffer, 0, len);
os.flush();
}
}
catch (IOException ignore)
{
try
{
c.cm.closeChannel(c, "Closed due to exception in StreamForwarder (" + mode + "): "
+ ignore.getMessage(), true);
}
catch (IOException ignored)
{
}
}
finally
{
try
{
os.close();
}
catch (IOException ignored)
{
}
try
{
is.close();
}
catch (IOException ignored)
{
}
if (sibling != null)
{
while (sibling.isAlive())
{
try
{
sibling.join();
}
catch (InterruptedException ignored)
{
}
}
try
{
c.cm.closeChannel(c, "StreamForwarder (" + mode + ") is cleaning up the connection", true);
}
catch (IOException ignored)
{
}
try
{
if (s != null)
s.close();
}
catch (IOException ignored)
{
}
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 2.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* Utf8 Class
*
* Provides support for UTF-8 environments
*
* @package CodeIgniter
* @subpackage Libraries
* @category UTF-8
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/utf8.html
*/
class CI_Utf8 {
/**
* Constructor
*
* Determines if UTF-8 support is to be enabled
*
*/
function __construct()
{
log_message('debug', "Utf8 Class Initialized");
global $CFG;
if (
preg_match('/./u', 'é') === 1 // PCRE must support UTF-8
AND function_exists('iconv') // iconv must be installed
AND ini_get('mbstring.func_overload') != 1 // Multibyte string function overloading cannot be enabled
AND $CFG->item('charset') == 'UTF-8' // Application charset must be UTF-8
)
{
log_message('debug', "UTF-8 Support Enabled");
define('UTF8_ENABLED', TRUE);
// set internal encoding for multibyte string functions if necessary
// and set a flag so we don't have to repeatedly use extension_loaded()
// or function_exists()
if (extension_loaded('mbstring'))
{
define('MB_ENABLED', TRUE);
mb_internal_encoding('UTF-8');
}
else
{
define('MB_ENABLED', FALSE);
}
}
else
{
log_message('debug', "UTF-8 Support Disabled");
define('UTF8_ENABLED', FALSE);
}
}
// --------------------------------------------------------------------
/**
* Clean UTF-8 strings
*
* Ensures strings are UTF-8
*
* @access public
* @param string
* @return string
*/
function clean_string($str)
{
if ($this->_is_ascii($str) === FALSE)
{
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);
}
return $str;
}
// --------------------------------------------------------------------
/**
* Remove ASCII control characters
*
* Removes all ASCII control characters except horizontal tabs,
* line feeds, and carriage returns, as all others can cause
* problems in XML
*
* @access public
* @param string
* @return string
*/
function safe_ascii_for_xml($str)
{
return remove_invisible_characters($str, FALSE);
}
// --------------------------------------------------------------------
/**
* Convert to UTF-8
*
* Attempts to convert a string to UTF-8
*
* @access public
* @param string
* @param string - input encoding
* @return string
*/
function convert_to_utf8($str, $encoding)
{
if (function_exists('iconv'))
{
$str = @iconv($encoding, 'UTF-8', $str);
}
elseif (function_exists('mb_convert_encoding'))
{
$str = @mb_convert_encoding($str, 'UTF-8', $encoding);
}
else
{
return FALSE;
}
return $str;
}
// --------------------------------------------------------------------
/**
* Is ASCII?
*
* Tests if a string is standard 7-bit ASCII or not
*
* @access public
* @param string
* @return bool
*/
function _is_ascii($str)
{
return (preg_match('/[^\x00-\x7F]/S', $str) == 0);
}
// --------------------------------------------------------------------
}
// End Utf8 Class
/* End of file Utf8.php */
/* Location: ./system/core/Utf8.php */
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* Template for displaying Comments
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to twentyten_comment which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>
<div id="comments">
<?php if ( post_password_required() ) : ?>
<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p>
</div><!-- #comments -->
<?php
/*
* Stop the rest of comments.php from being processed,
* but don't kill the script entirely -- we still have
* to fully load the template.
*/
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<?php if ( have_comments() ) : ?>
<h3 id="comments-title">
<?php
if ( 1 === get_comments_number() ) {
printf(
/* translators: %s: The post title. */
__( 'One Response to %s', 'twentyten' ),
'<em>' . get_the_title() . '</em>'
);
} else {
printf(
/* translators: %1$s: The number of comments. %2$s: The post title. */
_n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ),
number_format_i18n( get_comments_number() ),
'<em>' . get_the_title() . '</em>'
);
}
?>
</h3>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
</div> <!-- .navigation -->
<?php endif; // Check for comment navigation. ?>
<ol class="commentlist">
<?php
/*
* Loop through and list the comments. Tell wp_list_comments()
* to use twentyten_comment() to format the comments.
* If you want to overload this in a child theme then you can
* define twentyten_comment() and that will be used instead.
* See twentyten_comment() in twentyten/functions.php for more.
*/
wp_list_comments( array( 'callback' => 'twentyten_comment' ) );
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
</div><!-- .navigation -->
<?php endif; // Check for comment navigation. ?>
<?php
/*
* If there are no comments and comments are closed, let's leave a little note, shall we?
* But we only want the note on posts and pages that had comments in the first place.
*/
if ( ! comments_open() && get_comments_number() ) :
?>
<p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p>
<?php endif; ?>
<?php endif; // End have_comments(). ?>
<?php comment_form(); ?>
</div><!-- #comments -->
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>doh.robot Editor A11Y Test</title>
<style>
@import "../../../../util/doh/robot/robot.css";
</style>
<script type="text/javascript" src="../../../../dojo/dojo.js"></script>
<script type="text/javascript">
require([
"doh/runner", "dojo/robotx",
"dojo/_base/array", "dojo/dom", "dojo/keys", "dojo/_base/lang", "dojo/sniff", "dojo/window",
"dijit/tests/helpers", "dojo/domReady!"
], function(doh, robot, array, dom, keys, lang, has, winUtils, helpers){
function normalize(str){
// try to do some normalization to make all browsers look
// the same. Would be nice if we didn't need this, the normalization should
// probably happen as pre and post filters on the editor
return str.
replace(' />', '/>').
replace('<br/>', ''). // FF. Because of EnterKeyHandling plugin?
replace(/^<p>/, '').replace(/<\/p>$/, ''). // Safari. Because of EnterKeyHandling plugin?
replace(new RegExp(String.fromCharCode(160), "g"), " "); // Safari: nbsp (char code 160) to normal space (char code 32)
}
robot.initRobot('../test_Editor.html');
// For some reason the meta key (meta-a for selection, meta-b for bold, etc) doesn't work
// on mac/safari... use ctrl- instead, just like on windows. (#9553)
var metaKey = {ctrl: true};
var editor0,
editor1, editor1oldValue, editor1newValue, editor1onChange = "no onchange event yet";
var registry, focus;
doh.register("setup", [
{
name: "wait for editors to load",
timeout: 5000,
runTest: helpers.waitForLoad
},
function setVars(){
registry = robot.window.require("dijit/registry");
focus = robot.window.require("dijit/focus");
editor0 = registry.byId("editor0");
editor1 = registry.byId("editor1");
editor1.watch("value", function(attr, oldVal, newVal){
editor1oldValue = normalize(oldVal);
editor1newValue = normalize(newVal);
});
editor1.onChange = function(newValue){
editor1onChange = normalize(newValue);
};
}
]);
doh.register("keyboard shortcuts", [
{
name: "bold/italic",
timeout: 15000,
runTest: function(){
var d = new doh.Deferred();
winUtils.scrollIntoView(editor1.domNode);
// Set contents of editor1
robot.sequence(d.getTestErrback(function(){
editor1.focus();
}), 500);
robot.keyPress("a", 500, metaKey); // select all
robot.typeKeys("hello ", 500, 750); // and erase (by typing something new)
robot.keyPress("b", 500, metaKey); // start bold
robot.typeKeys("bold", 500, 600);
robot.keyPress("b", 500, metaKey); // stop bold
robot.typeKeys(" and ", 500, 750);
robot.keyPress("i", 500, metaKey); // start italic
robot.typeKeys("exciting", 500, 1200);
robot.keyPress("i", 500, metaKey); // stop italic
robot.typeKeys(" new world.", 500, 1650);
robot.sequence(d.getTestCallback(function(){
var val = normalize(editor1.get('value'));
doh.is("hello <b>bold</b> and <i>exciting</i> new world.", val);
}), 500);
return d;
}
}
]);
// Check that toolbar buttons are depressed/not depressed (etc.) based on
// where caret is in document
doh.register("toolbar state", [
{
name: "setup",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
winUtils.scrollIntoView(editor1.domNode);
// strange things happen if you alter an editor's value while it is focused,
// so temporarily move to the toolbar while setting content
robot.keyPress(keys.TAB, 500, {shift: true}); // go to toolbar
robot.sequence(d.getTestErrback(function(){
editor1.set("value", "toolbar <b>state</b> <i>test</i>.");
// set() should fire watch() callbacks but not call onChange()
doh.is("toolbar <b>state</b> <i>test</i>.", editor1newValue, "value set successfully");
doh.is("no onchange event yet", editor1onChange, "onChange not called");
}), 500);
robot.keyPress(keys.TAB, 500); // goes to content
robot.keyPress(keys.HOME, 500, {}); // go to start of content
robot.sequence(d.getTestCallback(function(){
// just to signal that we are done
}));
return d;
}
},
{
name: "no buttons depressed",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
robot.sequence(d.getTestCallback(function(){
var toolbar = editor1.toolbar;
doh.t(toolbar, "found toolbar");
var boldButton = toolbar.getChildren()[7];
doh.t(boldButton, "found bold button");
doh.f(boldButton.get("checked"), "bold button not depressed");
var italicButton = toolbar.getChildren()[8];
doh.t(italicButton, "found italic button");
doh.f(italicButton.get("checked"), "italic button not depressed");
}), 500);
return d;
}
},
{
name: "bold button depressed",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
robot.sequence(d.getTestErrback(function(){
editor1.placeCursorAtStart();
}), 500);
for(var i = 0; i < 9; i++){
// Move to second letter of second word.
robot.keyPress(keys.RIGHT_ARROW, 500);
}
robot.sequence(d.getTestCallback(function(){
var toolbar = editor1.toolbar;
doh.t(toolbar, "found toolbar");
var boldButton = toolbar.getChildren()[7];
doh.t(boldButton, "found bold button");
doh.t(boldButton.get("checked"), "bold button depressed");
var italicButton = toolbar.getChildren()[8];
doh.t(italicButton, "found italic button");
doh.f(italicButton.get("checked"), "italic button not depressed");
}), 1000);
return d;
}
},
{
name: "italic button depressed",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
robot.sequence(d.getTestErrback(function(){
editor1.placeCursorAtStart();
}), 500);
for(var i = 0; i < 15; i++){
// Move to second letter of third word.
robot.keyPress(keys.RIGHT_ARROW, 500);
}
robot.sequence(d.getTestCallback(function(){
var toolbar = editor1.toolbar;
doh.t(toolbar, "found toolbar");
var boldButton = toolbar.getChildren()[7];
doh.t(boldButton, "found bold button");
doh.f(boldButton.get("checked"), "bold button not depressed");
var italicButton = toolbar.getChildren()[8];
doh.t(italicButton, "found italic button");
doh.t(italicButton.get("checked"), "italic button depressed");
}), 1000);
return d;
}
}
]);
doh.register("toolbar navigation", [
{
name: "bold",
timeout: 15000,
runTest: function(){
var d = new doh.Deferred();
winUtils.scrollIntoView(editor1.domNode);
// Write "hello" in editor and also make sure there's something in the system
// clipboard, so that the paste button in the toolbar is guaranteed to be enabled.
// (otherwise the two RIGHT_ARROW commands below will overshoot the bold button
// and end up on the italic button)
robot.sequence(d.getTestErrback(function(){
editor1.focus();
}), 500);
robot.keyPress("a", 1000, metaKey); // select all
robot.keyPress("c", 500, has("mac") ? {meta: true} : {ctrl: true}); // copy into clipboard
robot.typeKeys("hello ", 500, 900); // and erase (by typing something new)
// Go to toolbar and turn on bold.
// We only have to right-arrow twice because it skips the vertical divider bars
// and also skips cut and copy (they are disabled b/c nothing is selected)
robot.keyPress(keys.TAB, 500, {shift: true});
robot.keyPress(keys.RIGHT_ARROW, 1000);
robot.keyPress(keys.RIGHT_ARROW, 500);
robot.keyPress(keys.SPACE, 500);
// Focus and caret should be back after "hello ", type "world" in bold
robot.typeKeys("world", 1000, 750);
robot.sequence(d.getTestCallback(function(){
// Get the value and try to do some normalization to make all browsers look
// the same. Would be nice if we didn't need this, the normalization should
// probably happen as pre and post filters on the editor
var val = normalize(editor1.get('value'));
doh.is("hello <b>world</b>", val);
}), 1500);
return d;
}
}
]);
doh.register("tabbing", [
{
name: "into editor1 toolbar",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
winUtils.scrollIntoView(editor1.domNode);
// Focus on link before editor
robot.sequence(d.getTestErrback(function(){
dom.byId("focusBefore", robot.doc).focus();
}), 500);
// Go to toolbar of editor1
robot.keyPress(keys.TAB, 500);
// We should get focus on one of the toolbar buttons, although which one depends
// on whether the editor's contents have been modified (undo button enabled), and
// whether there is something in the browser's paste buffer, etc.)
robot.sequence(d.getTestCallback(function(){
var curFocus = registry.getEnclosingWidget(focus.curNode);
doh.isNot(-1, array.indexOf(editor1.toolbar.getChildren(), curFocus), "focused on button of editor1 toolbar");
}), 500);
return d;
}
},
{
name: "into editor1",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
// Go to content of editor1
robot.keyPress(keys.TAB, 500);
robot.sequence(d.getTestErrback(function(){
doh.is("editor1_iframe", focus.curNode.id, "focused on editor content");
}), 500);
robot.keyPress("a", 500, metaKey); // select all
robot.typeKeys("tabbing test", 500, 1800); // and replace with "tabbing test"
robot.sequence(d.getTestCallback(function(){
// just here to make deferred fire
}), 500);
return d;
}
},
{
name: "out of editor1",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
// Go to link after editor1
robot.keyPress(keys.TAB, 500);
robot.sequence(d.getTestCallback(function(){
doh.is("focusAfter", focus.curNode.id, "focused after editor1");
doh.is("tabbing test", editor1newValue, "watch()");
doh.is("tabbing test", editor1onChange, "onChange");
}), 500);
return d;
}
},
{
name: "shift-tab back into editor1",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
// Go to content of editor1
robot.keyPress(keys.TAB, 500, {shift: true});
robot.sequence(d.getTestCallback(function(){
doh.is("editor1_iframe", focus.curNode.id, "focused on editor content");
}), 500);
return d;
}
},
{
name: "shift-tab back to toolbar",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
robot.keyPress(keys.TAB, 500, {shift: true});
robot.sequence(d.getTestCallback(function(){
var curFocus = registry.getEnclosingWidget(focus.curNode);
doh.isNot(-1, array.indexOf(editor1.toolbar.getChildren(), curFocus), "focused on button of editor1 toolbar");
}), 500);
return d;
}
},
{
name: "shift-tab to before editor",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
robot.keyPress(keys.TAB, 500, {shift: true});
robot.sequence(d.getTestCallback(function(){
doh.is("focusBefore", focus.curNode.id, "focused before editor1");
}), 500);
return d;
}
}
]);
doh.register("clear then focus", {
name: "#10268",
timeout: 10000,
runTest: function(){
var d = new doh.Deferred();
dom.byId("focusBefore", robot.doc).focus();
winUtils.scrollIntoView(editor1.domNode);
editor1.set("value", "");
editor1.focus();
robot.typeKeys("hello ", 500, 750);
robot.sequence(d.getTestCallback(function(){
doh.is("hello", lang.trim(editor1.get("value")), "get('value')");
}), 500);
return d;
}
});
doh.run();
});
</script>
</head>
</html>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="TestLibrary"
ProjectGUID="{483CB510-16C7-4C85-86B7-D79119C4A0FB}"
RootNamespace="TestLibrary"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Digi JumpStart (ARMV4I)"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="debug_static_mt|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="0"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;DEBUG;_CONSOLE;_USRDLL;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCO_STATIC"
MinimalRebuild="false"
RuntimeLibrary="1"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundationmtd.lib iphlpapi.lib"
OutputFile="bin\$(PlatformName)\static_mt\$(ProjectName)d.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\$(PlatformName)\static_mt\$(ProjectName)d.pdb"
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary=""
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="release_static_mt|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="4"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;_USRDLL;POCO_STATIC;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
StringPooling="true"
RuntimeLibrary="0"
BufferSecurityCheck="false"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundationmt.lib iphlpapi.lib"
OutputFile="bin\$(PlatformName)\static_mt\$(ProjectName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="false"
ProgramDatabaseFile=""
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="2"
DataExecutionPrevention="0"
ImportLibrary=""
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="debug_shared|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="1"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="0"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;DEBUG;_CONSOLE;_USRDLL;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
MinimalRebuild="false"
RuntimeLibrary="3"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundationd.lib"
OutputFile="bin\$(PlatformName)\shared\$(ProjectName)d.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\$(PlatformName)\shared\$(ProjectName)d.pdb"
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="0"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="release_shared|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="1"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="4"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;_USRDLL;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
StringPooling="true"
RuntimeLibrary="2"
BufferSecurityCheck="false"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundation.lib "
OutputFile="bin\$(PlatformName)\shared\$(ProjectName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="false"
ProgramDatabaseFile=""
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="2"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="0"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="debug_static_md|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="1"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="0"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="_DEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;DEBUG;_CONSOLE;_USRDLL;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCO_STATIC"
MinimalRebuild="false"
RuntimeLibrary="3"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundationmtd.lib iphlpapi.lib"
OutputFile="bin\$(PlatformName)\static_md\$(ProjectName)d.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="true"
ProgramDatabaseFile="bin\$(PlatformName)\static_md\$(ProjectName)d.pdb"
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="0"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="release_static_md|Digi JumpStart (ARMV4I)"
OutputDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
IntermediateDirectory="obj\TestLibrary\$(PlatformName)\$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
TargetEnvironment="1"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="4"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
AdditionalIncludeDirectories="..\include"
PreprocessorDefinitions="NDEBUG;_WIN32_WCE=$(CEVER);UNDER_CE;WINCE;_CONSOLE;_USRDLL;POCO_STATIC;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE"
StringPooling="true"
RuntimeLibrary="2"
BufferSecurityCheck="false"
RuntimeTypeInfo="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4800"
CompileForArchitecture="2"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /subsystem:windowsce,6.00"
AdditionalDependencies="PocoFoundationmt.lib iphlpapi.lib"
OutputFile="bin\$(PlatformName)\static_md\$(ProjectName).dll"
LinkIncremental="1"
AdditionalLibraryDirectories="..\..\lib\$(PlatformName)"
DelayLoadDLLs="$(NOINHERIT)"
GenerateDebugInformation="false"
ProgramDatabaseFile=""
SubSystem="0"
StackReserveSize="65536"
StackCommitSize="4096"
OptimizeReferences="2"
EnableCOMDATFolding="2"
RandomizedBaseAddress="2"
DataExecutionPrevention="0"
ImportLibrary=""
TargetMachine="0"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\src\TestLibrary.cpp"
>
</File>
<File
RelativePath=".\src\TestPlugin.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\src\TestPlugin.h"
>
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>#DisableDrivers</key>
<array>
<string>CsmVideoDxe</string>
<string>VBoxExt4</string>
</array>
<key>ACPI</key>
<dict>
<key>#DropMCFG</key>
<false/>
<key>#PatchAPIC</key>
<false/>
<key>#ResetAddress</key>
<string>0x64</string>
<key>#ResetValue</key>
<string>0xFE</string>
<key>#SortedOrder</key>
<array>
<string>SSDT-3.aml</string>
<string>SSDT-1.aml</string>
<string>SSDT-2.aml</string>
</array>
<key>#smartUPS</key>
<false/>
<key>DSDT</key>
<dict>
<key>#DropOEM_DSM</key>
<dict>
<key>ATI</key>
<true/>
<key>Firewire</key>
<true/>
<key>HDA</key>
<true/>
<key>HDMI</key>
<true/>
<key>IDE</key>
<true/>
<key>IntelGFX</key>
<true/>
<key>LAN</key>
<true/>
<key>LPC</key>
<false/>
<key>NVidia</key>
<true/>
<key>SATA</key>
<true/>
<key>SmBUS</key>
<false/>
<key>USB</key>
<true/>
<key>WIFI</key>
<true/>
</dict>
<key>#Patches</key>
<array>
<dict>
<key>Comment</key>
<string>Remove battery device from desktop</string>
<key>Find</key>
<data>W4IeQkFUMQhfSElEDEHQDAoIX1VJRAEUCF9TVEEApAA=</data>
<key>Replace</key>
<data></data>
</dict>
<dict>
<key>Comment</key>
<string>Add _SUN property for GIGE</string>
<key>Find</key>
<data>UFhTWAhfQURSAAhfUFJXEgYC</data>
<key>Replace</key>
<data>UFhTWAhfQURSAAhfU1VOCgQIX1BSVxIGAg==</data>
</dict>
<dict>
<key>Comment</key>
<string>Rename GFX0 to IGPU</string>
<key>Find</key>
<data>R0ZYMA==</data>
<key>Replace</key>
<data>SUdQVQ==</data>
</dict>
<dict>
<key>Comment</key>
<string>Rename HDEF to AZAL</string>
<key>Find</key>
<data>SERFRg==</data>
<key>Replace</key>
<data>QVpBTA==</data>
</dict>
</array>
<key>#Rtc8Allowed</key>
<false/>
<key>#SuspendOverride</key>
<false/>
<key>Debug</key>
<false/>
<key>Fixes</key>
<dict>
<key>AddDTGP_0001</key>
<true/>
<key>AddHDMI_8000000</key>
<true/>
<key>AddIMEI_80000</key>
<false/>
<key>AddMCHC_0008</key>
<false/>
<key>AddPNLF_1000000</key>
<true/>
<key>DeleteUnused_400000</key>
<true/>
<key>FIX_ACST_4000000</key>
<true/>
<key>FIX_ADP1_800000</key>
<true/>
<key>FIX_INTELGFX_100000</key>
<false/>
<key>FIX_RTC_20000</key>
<true/>
<key>FIX_S3D_2000000</key>
<true/>
<key>FIX_TMR_40000</key>
<true/>
<key>FIX_WAK_200000</key>
<true/>
<key>FakeLPC_0020</key>
<false/>
<key>FixAirport_4000</key>
<false/>
<key>FixDarwin_0002</key>
<false/>
<key>FixDarwin7_10000</key>
<true/>
<key>FixDisplay_0100</key>
<true/>
<key>FixFirewire_0800</key>
<false/>
<key>FixHDA_8000</key>
<true/>
<key>FixHPET_0010</key>
<true/>
<key>FixHeaders_20000000</key>
<true/>
<key>FixIDE_0200</key>
<false/>
<key>FixIPIC_0040</key>
<true/>
<key>FixLAN_2000</key>
<true/>
<key>FixRegions_10000000</key>
<true/>
<key>FixSATA_0400</key>
<false/>
<key>FixSBUS_0080</key>
<true/>
<key>FixShutdown_0004</key>
<true/>
<key>FixUSB_1000</key>
<true/>
</dict>
<key>Name</key>
<string>DSDT.aml</string>
<key>ReuseFFFF</key>
<false/>
</dict>
<key>DisableASPM</key>
<false/>
<key>DropTables</key>
<array>
<dict>
<key>Signature</key>
<string>DMAR</string>
</dict>
<dict>
<key>Signature</key>
<string>SSDT</string>
<key>TableId</key>
<string>CpuPm</string>
</dict>
<dict>
<key>#Length</key>
<integer>720</integer>
<key>Signature</key>
<string>SSDT</string>
<key>TableId</key>
<string>Cpu0Ist</string>
</dict>
</array>
<key>HaltEnabler</key>
<true/>
<key>SSDT</key>
<dict>
<key>#C3Latency</key>
<string>0x03E7</string>
<key>#DoubleFirstState</key>
<true/>
<key>#DropOem</key>
<true/>
<key>#EnableC2</key>
<false/>
<key>#EnableC4</key>
<false/>
<key>#EnableC6</key>
<true/>
<key>#EnableC7</key>
<false/>
<key>#MaxMultiplier</key>
<integer>12</integer>
<key>#MinMultiplier</key>
<integer>8</integer>
<key>#PLimitDict</key>
<integer>1</integer>
<key>#PluginType</key>
<integer>0</integer>
<key>#UnderVoltStep</key>
<integer>1</integer>
<key>#UseSystemIO</key>
<false/>
<key>Generate</key>
<dict>
<key>CStates</key>
<true/>
<key>PStates</key>
<true/>
</dict>
</dict>
</dict>
<key>Boot</key>
<dict>
<key>##Arguments</key>
<string>kext-dev-mode=1 rootless=0</string>
<key>#Arguments</key>
<string>-v arch=x86_64 slide=0 darkwake=0</string>
<key>#LegacyBiosDefaultEntry</key>
<integer>0</integer>
<key>#XMPDetection</key>
<string>-1</string>
<key>Debug</key>
<false/>
<key>DefaultLoader</key>
<string>boot.efi</string>
<key>DefaultVolume</key>
<string>LastBootedVolume</string>
<key>DisableCloverHotkeys</key>
<false/>
<key>Fast</key>
<false/>
<key>Legacy</key>
<string>PBR</string>
<key>NeverDoRecovery</key>
<true/>
<key>NeverHibernate</key>
<false/>
<key>SkipHibernateTimeout</key>
<false/>
<key>StrictHibernate</key>
<false/>
<key>RtcHibernateAware</key>
<false/>
<key>Timeout</key>
<integer>5</integer>
</dict>
<key>BootGraphics</key>
<dict>
<key>#DefaultBackgroundColor</key>
<string>0xF0F0F0</string>
<key>EFILoginHiDPI</key>
<integer>1</integer>
<key>UIScale</key>
<integer>1</integer>
</dict>
<key>CPU</key>
<dict>
<key>#BusSpeedkHz</key>
<integer>133330</integer>
<key>#FrequencyMHz</key>
<integer>3140</integer>
<key>#HWPEnable</key>
<true/>
<key>#HWPValue</key>
<string>0x30002a01</string>
<key>#QPI</key>
<integer>4800</integer>
<key>#SavingMode</key>
<integer>7</integer>
<key>#TDP</key>
<integer>95</integer>
<key>#TurboDisable</key>
<true/>
<key>#Type</key>
<string>0x0201</string>
<key>#UseARTFrequency</key>
<true/>
</dict>
<key>Devices</key>
<dict>
<key>#AddProperties</key>
<array>
<dict>
<key>Device</key>
<string>NVidia</string>
<key>Key</key>
<string>AAPL,HasPanel</string>
<key>Value</key>
<data>AQAAAA==</data>
</dict>
<dict>
<key>Device</key>
<string>NVidia</string>
<key>Key</key>
<string>AAPL,Haslid</string>
<key>Value</key>
<data>AQAAAA==</data>
</dict>
</array>
<key>#FakeID</key>
<dict>
<key>#ATI</key>
<string>0x67501002</string>
<key>#IMEI</key>
<string>0x1e208086</string>
<key>#IntelGFX</key>
<string>0x01268086</string>
<key>#LAN</key>
<string>0x100E8086</string>
<key>#NVidia</key>
<string>0x11de10de</string>
<key>#SATA</key>
<string>0x25628086</string>
<key>#WIFI</key>
<string>0x431214e4</string>
<key>#XHCI</key>
<string>0x0</string>
</dict>
<key>#ForceHPET</key>
<false/>
<key>#Inject</key>
<false/>
<key>#Properties</key>
<string>7a00000001000000010000006e0000000200000002010c00d041030a0000000001010600001b7fff040028000000500069006e0043006f006e00660069006700750072006100740069006f006e00730000000800000001080100180000006c00610079006f00750074002d00690064000000080000000c000000</string>
<key>#SetIntelBacklight</key>
<false/>
<key>#SetIntelMaxBacklight</key>
<true/>
<key>#IntelMaxValue</key>
<integer>1808</integer>
<key>Audio</key>
<dict>
<key>#Inject</key>
<string>0x0887</string>
<key>ResetHDA</key>
<true/>
</dict>
<key>NoDefaultProperties</key>
<false/>
<key>USB</key>
<dict>
<key>AddClockID</key>
<true/>
<key>FixOwnership</key>
<true/>
<key>HighCurrent</key>
<false/>
<key>Inject</key>
<true/>
</dict>
<key>UseIntelHDMI</key>
<false/>
</dict>
<key>GUI</key>
<dict>
<key>#ConsoleMode</key>
<string>0</string>
<key>#Custom</key>
<dict>
<key>Entries</key>
<array>
<dict>
<key>AddArguments</key>
<string>-v</string>
<key>Arguments</key>
<string>Kernel=mach_kernel</string>
<key>Disabled</key>
<true/>
<key>Hidden</key>
<false/>
<key>Hotkey</key>
<string>M</string>
<key>InjectKexts</key>
<false/>
<key>NoCaches</key>
<false/>
<key>Path</key>
<string>\EFI\BOOT\BOOTX64.efi</string>
<key>Title</key>
<string>MyCustomEntry</string>
<key>Type</key>
<string>OSXRecovery</string>
<key>Volume</key>
<string>D68F1885-571C-4441-8DD5-F14803EFEF54</string>
</dict>
<dict>
<key>Hidden</key>
<false/>
<key>InjectKexts</key>
<false/>
<key>NoCaches</key>
<false/>
<key>SubEntries</key>
<array>
<dict>
<key>AddArguments</key>
<string>-v</string>
<key>Title</key>
<string>Boot OS X 10.8.5 (12F36) Mountain Lion in Verbose Mode</string>
</dict>
</array>
<key>Title</key>
<string>OS X 10.8.5 (12F36) Mountain Lion</string>
<key>Type</key>
<string>OSX</string>
<key>Volume</key>
<string>454794AC-760D-46E8-8F77-D6EB23D2FD32</string>
</dict>
</array>
<key>Legacy</key>
<array>
<dict>
<key>Disabled</key>
<true/>
<key>Hidden</key>
<false/>
<key>Hotkey</key>
<string>L</string>
<key>Title</key>
<string>MyLegacyEntry</string>
<key>Type</key>
<string>Windows</string>
<key>Volume</key>
<string>89433CD3-21F2-4D3C-95FC-722C48066D3A</string>
</dict>
</array>
<key>Tool</key>
<array>
<dict>
<key>Arguments</key>
<string>-b</string>
<key>Disabled</key>
<false/>
<key>Hidden</key>
<false/>
<key>Hotkey</key>
<string>S</string>
<key>Path</key>
<string>\EFI\CLOVER\TOOLS\Shell64-v1.efi</string>
<key>Title</key>
<string>MyCustomShell</string>
<key>Volume</key>
<string>D68F1885-571C-4441-8DD5-F14803EFEF54</string>
</dict>
</array>
</dict>
<key>#CustomIcons</key>
<false/>
<key>#Hide</key>
<array>
<string>Windows</string>
<string>BOOTX64.EFI</string>
</array>
<key>#Language</key>
<string>ru:0</string>
<key>#Mouse</key>
<dict>
<key>Enabled</key>
<true/>
<key>Mirror</key>
<false/>
<key>Speed</key>
<integer>2</integer>
</dict>
<key>#Scan</key>
<dict>
<key>Entries</key>
<true/>
<key>Legacy</key>
<false/>
<key>Tool</key>
<true/>
</dict>
<key>#TextOnly</key>
<false/>
<key>ScreenResolution</key>
<string>1280x1024</string>
<key>ShowOptimus</key>
<false/>
<key>Theme</key>
<string>metal</string>
</dict>
<key>Graphics</key>
<dict>
<key>#Connectors</key>
<array/>
<key>#DualLink</key>
<integer>0</integer>
<key>#FBName</key>
<string>Makakakakala</string>
<key>#Inject</key>
<dict>
<key>ATI</key>
<true/>
<key>Intel</key>
<false/>
<key>NVidia</key>
<false/>
</dict>
<key>#LoadVBios</key>
<false/>
<key>#NVCAP</key>
<string>04000000000003000C0000000000000A00000000</string>
<key>#NvidiaGeneric</key>
<true/>
<key>#NvidiaNoEFI</key>
<false/>
<key>#NvidiaSingle</key>
<false/>
<key>#PatchVBios</key>
<false/>
<key>#PatchVBiosBytes</key>
<array>
<dict>
<key>Find</key>
<data>gAeoAqAF</data>
<key>Replace</key>
<data>gAeoAjgE</data>
</dict>
</array>
<key>#VRAM</key>
<integer>1024</integer>
<key>#VideoPorts</key>
<integer>2</integer>
<key>#display-cfg</key>
<string>03010300FFFF0001</string>
<key>#ig-platform-id</key>
<string>0x01620005</string>
<key>EDID</key>
<dict>
<key>#Custom</key>
<data>AP///////wAGECGSAAAAAAASAQOAIRV4CunVmVlTjigmUFQAAAABAQEBAQEBAQEBAQEBAQEB3iGgcFCEHzAgIFYAS88QAAAY3iGgcFCEHzAgIFYAS88QAAAAAAAA/gBXNjU3RwAxNTRXUDEKAAAA/gAjMz1IZYSq/wIBCiAgAJo=</data>
<key>#Inject</key>
<true/>
<key>#ProductID</key>
<string>0x9221</string>
<key>#VendorID</key>
<string>0x1006</string>
</dict>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>#ATIConnectorsController</key>
<string>6000</string>
<key>#ATIConnectorsData</key>
<string>000400000403000000010000210302040400000014020000000100000000040310000000100000000001000000000001</string>
<key>#ATIConnectorsPatch</key>
<string>040000001402000000010000000004040004000004030000000100001102010500000000000000000000000000000000</string>
<key>#BootPatches</key>
<array>
<dict>
<key>Comment</key>
<string>Example</string>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>RXh0ZXJuYWw=</data>
<key>MatchOS</key>
<string>All</string>
<key>Replace</key>
<data>SW50ZXJuYWw=</data>
</dict>
</array>
<key>#FakeCPUID</key>
<string>0x010676</string>
<key>#KextsToPatch</key>
<array>
<dict>
<key>Disabled</key>
<true/>
<key>Find</key>
<data>SGVhZHBob25lcwA=</data>
<key>Name</key>
<string>VoodooHDA</string>
<key>Replace</key>
<data>VGVsZXBob25lcwA=</data>
</dict>
<dict>
<key>Comment</key>
<string>Patch_to_not_load_this_driver</string>
<key>Find</key>
<string>0x04020000</string>
<key>InfoPlistPatch</key>
<true/>
<key>Name</key>
<string>AppleHDAController</string>
<key>Replace</key>
<string>0x44220000</string>
</dict>
<dict>
<key>Comment</key>
<string>Make all drives to be internal</string>
<key>Find</key>
<data>RXh0ZXJuYWw=</data>
<key>Name</key>
<string>AppleAHCIPort</string>
<key>Replace</key>
<data>SW50ZXJuYWw=</data>
</dict>
<dict>
<key>Comment</key>
<string>TRIM function for non-Apple SSDs</string>
<key>Find</key>
<data>QVBQTEUgU1NEAA==</data>
<key>Name</key>
<string>IOAHCIBlockStorage</string>
<key>Replace</key>
<data>AAAAAAAAAAAAAA==</data>
</dict>
<dict>
<key>Comment</key>
<string>ATI Connector patch new way</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>AAQAAAQDAAAAAQAAIQMCBAQAAAAUAgAAAAEAAAAABAMQAAAAEAAAAAABAAAAAAAB</data>
<key>MatchOS</key>
<string>10.9,10.10,10.11</string>
<key>Name</key>
<string>AMD6000Controller</string>
<key>Replace</key>
<data>BAAAABQCAAAAAQAAAAAEBAAEAAAEAwAAAAEAABECAQUAAAAAAAAAAAAAAAAAAAAA</data>
</dict>
</array>
<key>AppleIntelCPUPM</key>
<false/>
<key>AppleRTC</key>
<true/>
<key>AsusAICPUPM</key>
<false/>
<key>Debug</key>
<false/>
<key>DellSMBIOSPatch</key>
<false/>
<key>KernelCpu</key>
<false/>
<key>KernelIvyXCPM</key>
<false/>
<key>KernelLapic</key>
<false/>
<key>KernelPm</key>
<false/>
</dict>
<key>RtVariables</key>
<dict>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x3E7</string>
<key>MLB</key>
<string>C02032109R5DC771H</string>
<key>ROM</key>
<string>UseMacAddr0</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>#BiosReleaseDate</key>
<string>05/03/10</string>
<key>#BiosVendor</key>
<string>Apple Inc.</string>
<key>#BiosVersion</key>
<string>MB11.88Z.0061.B03.0809221748</string>
<key>#Board-ID</key>
<string>Mac-F4208CC8</string>
<key>#BoardManufacturer</key>
<string>Apple Inc.</string>
<key>#BoardSerialNumber</key>
<string>C02032101R5DC771H</string>
<key>#BoardType</key>
<integer>10</integer>
<key>#BoardVersion</key>
<string>Proto1</string>
<key>#ChassisAssetTag</key>
<string>LatitudeD420</string>
<key>#ChassisManufacturer</key>
<string>Apple Inc.</string>
<key>#ChassisType</key>
<integer>16</integer>
<key>#Family</key>
<string>MacBook</string>
<key>#FirmwareFeatures</key>
<string>0xC0001403</string>
<key>#FirmwareFeaturesMask</key>
<string>0xFFFFFFFF</string>
<key>#LocationInChassis</key>
<string>MLB</string>
<key>#Memory</key>
<dict>
<key>Channels</key>
<integer>2</integer>
<key>Modules</key>
<array>
<dict>
<key>Frequency</key>
<integer>1333</integer>
<key>Part</key>
<string>C0001403</string>
<key>Serial</key>
<string>00001001</string>
<key>Size</key>
<integer>4096</integer>
<key>Slot</key>
<integer>0</integer>
<key>Type</key>
<string>DDR3</string>
<key>Vendor</key>
<string>Kingston</string>
</dict>
<dict>
<key>Frequency</key>
<integer>1333</integer>
<key>Part</key>
<string>C0001404</string>
<key>Serial</key>
<string>00001002</string>
<key>Size</key>
<integer>4096</integer>
<key>Slot</key>
<integer>2</integer>
<key>Type</key>
<string>DDR3</string>
<key>Vendor</key>
<string>Kingston</string>
</dict>
</array>
<key>SlotCount</key>
<integer>4</integer>
</dict>
<key>#Mobile</key>
<true/>
<key>#PlatformFeature</key>
<string>0x03</string>
<key>#ProductName</key>
<string>MacBook1,1</string>
<key>#SerialNumber</key>
<string>4H629LYAU9C</string>
<key>#Slots</key>
<array>
<dict>
<key>Device</key>
<string>ATI</string>
<key>ID</key>
<integer>1</integer>
<key>Name</key>
<string>PCIe Slot 0</string>
<key>Type</key>
<integer>16</integer>
</dict>
<dict>
<key>Device</key>
<string>WIFI</string>
<key>ID</key>
<integer>0</integer>
<key>Name</key>
<string>Airport</string>
<key>Type</key>
<integer>1</integer>
</dict>
</array>
<key>#SmUUID</key>
<string>00000000-0000-1000-8000-010203040506</string>
<key>#Trust</key>
<true/>
<key>#Version</key>
<string>1.0</string>
<key>Manufacturer</key>
<string>Apple Inc.</string>
</dict>
<key>SystemParameters</key>
<dict>
<key>#BacklightLevel</key>
<string>0x0501</string>
<key>#CustomUUID</key>
<string>511CE201-1000-4000-9999-010203040506</string>
<key>#NvidiaWeb</key>
<false/>
<key>InjectKexts</key>
<string>Detect</string>
<key>InjectSystemID</key>
<true/>
</dict>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
var cellNodeRegex = /^(?:td|th)$/;
function getSelectedCells( selection ) {
var ranges = selection.getRanges();
var retval = [];
var database = {};
function moveOutOfCellGuard( node ) {
// Apply to the first cell only.
if ( retval.length > 0 )
return;
// If we are exiting from the first </td>, then the td should definitely be
// included.
if ( node.type == CKEDITOR.NODE_ELEMENT && cellNodeRegex.test( node.getName() ) && !node.getCustomData( 'selected_cell' ) ) {
CKEDITOR.dom.element.setMarker( database, node, 'selected_cell', true );
retval.push( node );
}
}
for ( var i = 0; i < ranges.length; i++ ) {
var range = ranges[ i ];
if ( range.collapsed ) {
// Walker does not handle collapsed ranges yet - fall back to old API.
var startNode = range.getCommonAncestor();
var nearestCell = startNode.getAscendant( 'td', true ) || startNode.getAscendant( 'th', true );
if ( nearestCell )
retval.push( nearestCell );
} else {
var walker = new CKEDITOR.dom.walker( range );
var node;
walker.guard = moveOutOfCellGuard;
while ( ( node = walker.next() ) ) {
// If may be possible for us to have a range like this:
// <td>^1</td><td>^2</td>
// The 2nd td shouldn't be included.
//
// So we have to take care to include a td we've entered only when we've
// walked into its children.
if ( node.type != CKEDITOR.NODE_ELEMENT || !node.is( CKEDITOR.dtd.table ) ) {
var parent = node.getAscendant( 'td', true ) || node.getAscendant( 'th', true );
if ( parent && !parent.getCustomData( 'selected_cell' ) ) {
CKEDITOR.dom.element.setMarker( database, parent, 'selected_cell', true );
retval.push( parent );
}
}
}
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
return retval;
}
function getFocusElementAfterDelCells( cellsToDelete ) {
var i = 0,
last = cellsToDelete.length - 1,
database = {},
cell, focusedCell, tr;
while ( ( cell = cellsToDelete[ i++ ] ) )
CKEDITOR.dom.element.setMarker( database, cell, 'delete_cell', true );
// 1.first we check left or right side focusable cell row by row;
i = 0;
while ( ( cell = cellsToDelete[ i++ ] ) ) {
if ( ( focusedCell = cell.getPrevious() ) && !focusedCell.getCustomData( 'delete_cell' ) || ( focusedCell = cell.getNext() ) && !focusedCell.getCustomData( 'delete_cell' ) ) {
CKEDITOR.dom.element.clearAllMarkers( database );
return focusedCell;
}
}
CKEDITOR.dom.element.clearAllMarkers( database );
// 2. then we check the toppest row (outside the selection area square) focusable cell
tr = cellsToDelete[ 0 ].getParent();
if ( ( tr = tr.getPrevious() ) )
return tr.getLast();
// 3. last we check the lowerest row focusable cell
tr = cellsToDelete[ last ].getParent();
if ( ( tr = tr.getNext() ) )
return tr.getChild( 0 );
return null;
}
function insertRow( selection, insertBefore ) {
var cells = getSelectedCells( selection ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
doc = firstCell.getDocument(),
startRow = cells[ 0 ].getParent(),
startRowIndex = startRow.$.rowIndex,
lastCell = cells[ cells.length - 1 ],
endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1,
endRow = new CKEDITOR.dom.element( table.$.rows[ endRowIndex ] ),
rowIndex = insertBefore ? startRowIndex : endRowIndex,
row = insertBefore ? startRow : endRow;
var map = CKEDITOR.tools.buildTableMap( table ),
cloneRow = map[ rowIndex ],
nextRow = insertBefore ? map[ rowIndex - 1 ] : map[ rowIndex + 1 ],
width = map[ 0 ].length;
var newRow = doc.createElement( 'tr' );
for ( var i = 0; cloneRow[ i ] && i < width; i++ ) {
var cell;
// Check whether there's a spanning row here, do not break it.
if ( cloneRow[ i ].rowSpan > 1 && nextRow && cloneRow[ i ] == nextRow[ i ] ) {
cell = cloneRow[ i ];
cell.rowSpan += 1;
} else {
cell = new CKEDITOR.dom.element( cloneRow[ i ] ).clone();
cell.removeAttribute( 'rowSpan' );
cell.appendBogus();
newRow.append( cell );
cell = cell.$;
}
i += cell.colSpan - 1;
}
insertBefore ? newRow.insertBefore( row ) : newRow.insertAfter( row );
}
function deleteRows( selectionOrRow ) {
if ( selectionOrRow instanceof CKEDITOR.dom.selection ) {
var cells = getSelectedCells( selectionOrRow ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
startRow = cells[ 0 ].getParent(),
startRowIndex = startRow.$.rowIndex,
lastCell = cells[ cells.length - 1 ],
endRowIndex = lastCell.getParent().$.rowIndex + lastCell.$.rowSpan - 1,
rowsToDelete = [];
// Delete cell or reduce cell spans by checking through the table map.
for ( var i = startRowIndex; i <= endRowIndex; i++ ) {
var mapRow = map[ i ],
row = new CKEDITOR.dom.element( table.$.rows[ i ] );
for ( var j = 0; j < mapRow.length; j++ ) {
var cell = new CKEDITOR.dom.element( mapRow[ j ] ),
cellRowIndex = cell.getParent().$.rowIndex;
if ( cell.$.rowSpan == 1 )
cell.remove();
// Row spanned cell.
else {
// Span row of the cell, reduce spanning.
cell.$.rowSpan -= 1;
// Root row of the cell, root cell to next row.
if ( cellRowIndex == i ) {
var nextMapRow = map[ i + 1 ];
nextMapRow[ j - 1 ] ? cell.insertAfter( new CKEDITOR.dom.element( nextMapRow[ j - 1 ] ) ) : new CKEDITOR.dom.element( table.$.rows[ i + 1 ] ).append( cell, 1 );
}
}
j += cell.$.colSpan - 1;
}
rowsToDelete.push( row );
}
var rows = table.$.rows;
// Where to put the cursor after rows been deleted?
// 1. Into next sibling row if any;
// 2. Into previous sibling row if any;
// 3. Into table's parent element if it's the very last row.
var cursorPosition = new CKEDITOR.dom.element( rows[ endRowIndex + 1 ] || ( startRowIndex > 0 ? rows[ startRowIndex - 1 ] : null ) || table.$.parentNode );
for ( i = rowsToDelete.length; i >= 0; i-- )
deleteRows( rowsToDelete[ i ] );
return cursorPosition;
} else if ( selectionOrRow instanceof CKEDITOR.dom.element ) {
table = selectionOrRow.getAscendant( 'table' );
if ( table.$.rows.length == 1 )
table.remove();
else
selectionOrRow.remove();
}
return null;
}
function getCellColIndex( cell, isStart ) {
var row = cell.getParent(),
rowCells = row.$.cells;
var colIndex = 0;
for ( var i = 0; i < rowCells.length; i++ ) {
var mapCell = rowCells[ i ];
colIndex += isStart ? 1 : mapCell.colSpan;
if ( mapCell == cell.$ )
break;
}
return colIndex - 1;
}
function getColumnsIndices( cells, isStart ) {
var retval = isStart ? Infinity : 0;
for ( var i = 0; i < cells.length; i++ ) {
var colIndex = getCellColIndex( cells[ i ], isStart );
if ( isStart ? colIndex < retval : colIndex > retval )
retval = colIndex;
}
return retval;
}
function insertColumn( selection, insertBefore ) {
var cells = getSelectedCells( selection ),
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
startCol = getColumnsIndices( cells, 1 ),
lastCol = getColumnsIndices( cells ),
colIndex = insertBefore ? startCol : lastCol;
var map = CKEDITOR.tools.buildTableMap( table ),
cloneCol = [],
nextCol = [],
height = map.length;
for ( var i = 0; i < height; i++ ) {
cloneCol.push( map[ i ][ colIndex ] );
var nextCell = insertBefore ? map[ i ][ colIndex - 1 ] : map[ i ][ colIndex + 1 ];
nextCol.push( nextCell );
}
for ( i = 0; i < height; i++ ) {
var cell;
if ( !cloneCol[ i ] )
continue;
// Check whether there's a spanning column here, do not break it.
if ( cloneCol[ i ].colSpan > 1 && nextCol[ i ] == cloneCol[ i ] ) {
cell = cloneCol[ i ];
cell.colSpan += 1;
} else {
cell = new CKEDITOR.dom.element( cloneCol[ i ] ).clone();
cell.removeAttribute( 'colSpan' );
cell.appendBogus();
cell[ insertBefore ? 'insertBefore' : 'insertAfter' ].call( cell, new CKEDITOR.dom.element( cloneCol[ i ] ) );
cell = cell.$;
}
i += cell.rowSpan - 1;
}
}
function deleteColumns( selectionOrCell ) {
var cells = getSelectedCells( selectionOrCell ),
firstCell = cells[ 0 ],
lastCell = cells[ cells.length - 1 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
startColIndex, endColIndex,
rowsToDelete = [];
// Figure out selected cells' column indices.
for ( var i = 0, rows = map.length; i < rows; i++ ) {
for ( var j = 0, cols = map[ i ].length; j < cols; j++ ) {
if ( map[ i ][ j ] == firstCell.$ )
startColIndex = j;
if ( map[ i ][ j ] == lastCell.$ )
endColIndex = j;
}
}
// Delete cell or reduce cell spans by checking through the table map.
for ( i = startColIndex; i <= endColIndex; i++ ) {
for ( j = 0; j < map.length; j++ ) {
var mapRow = map[ j ],
row = new CKEDITOR.dom.element( table.$.rows[ j ] ),
cell = new CKEDITOR.dom.element( mapRow[ i ] );
if ( cell.$ ) {
if ( cell.$.colSpan == 1 )
cell.remove();
// Reduce the col spans.
else
cell.$.colSpan -= 1;
j += cell.$.rowSpan - 1;
if ( !row.$.cells.length )
rowsToDelete.push( row );
}
}
}
var firstRowCells = table.$.rows[ 0 ] && table.$.rows[ 0 ].cells;
// Where to put the cursor after columns been deleted?
// 1. Into next cell of the first row if any;
// 2. Into previous cell of the first row if any;
// 3. Into table's parent element;
var cursorPosition = new CKEDITOR.dom.element( firstRowCells[ startColIndex ] || ( startColIndex ? firstRowCells[ startColIndex - 1 ] : table.$.parentNode ) );
// Delete table rows only if all columns are gone (do not remove empty row).
if ( rowsToDelete.length == rows )
table.remove();
return cursorPosition;
}
function insertCell( selection, insertBefore ) {
var startElement = selection.getStartElement();
var cell = startElement.getAscendant( 'td', 1 ) || startElement.getAscendant( 'th', 1 );
if ( !cell )
return;
// Create the new cell element to be added.
var newCell = cell.clone();
newCell.appendBogus();
if ( insertBefore )
newCell.insertBefore( cell );
else
newCell.insertAfter( cell );
}
function deleteCells( selectionOrCell ) {
if ( selectionOrCell instanceof CKEDITOR.dom.selection ) {
var cellsToDelete = getSelectedCells( selectionOrCell );
var table = cellsToDelete[ 0 ] && cellsToDelete[ 0 ].getAscendant( 'table' );
var cellToFocus = getFocusElementAfterDelCells( cellsToDelete );
for ( var i = cellsToDelete.length - 1; i >= 0; i-- )
deleteCells( cellsToDelete[ i ] );
if ( cellToFocus )
placeCursorInCell( cellToFocus, true );
else if ( table )
table.remove();
} else if ( selectionOrCell instanceof CKEDITOR.dom.element ) {
var tr = selectionOrCell.getParent();
if ( tr.getChildCount() == 1 )
tr.remove();
else
selectionOrCell.remove();
}
}
// Remove filler at end and empty spaces around the cell content.
function trimCell( cell ) {
var bogus = cell.getBogus();
bogus && bogus.remove();
cell.trim();
}
function placeCursorInCell( cell, placeAtEnd ) {
var docInner = cell.getDocument(),
docOuter = CKEDITOR.document;
// Fixing "Unspecified error" thrown in IE10 by resetting
// selection the dirty and shameful way (#10308).
// We can not apply this hack to IE8 because
// it causes error (#11058).
if ( CKEDITOR.env.ie && CKEDITOR.env.version == 10 ) {
docOuter.focus();
docInner.focus();
}
var range = new CKEDITOR.dom.range( docInner );
if ( !range[ 'moveToElementEdit' + ( placeAtEnd ? 'End' : 'Start' ) ]( cell ) ) {
range.selectNodeContents( cell );
range.collapse( placeAtEnd ? false : true );
}
range.select( true );
}
function cellInRow( tableMap, rowIndex, cell ) {
var oRow = tableMap[ rowIndex ];
if ( typeof cell == 'undefined' )
return oRow;
for ( var c = 0; oRow && c < oRow.length; c++ ) {
if ( cell.is && oRow[ c ] == cell.$ )
return c;
else if ( c == cell )
return new CKEDITOR.dom.element( oRow[ c ] );
}
return cell.is ? -1 : null;
}
function cellInCol( tableMap, colIndex ) {
var oCol = [];
for ( var r = 0; r < tableMap.length; r++ ) {
var row = tableMap[ r ];
oCol.push( row[ colIndex ] );
// Avoid adding duplicate cells.
if ( row[ colIndex ].rowSpan > 1 )
r += row[ colIndex ].rowSpan - 1;
}
return oCol;
}
function mergeCells( selection, mergeDirection, isDetect ) {
var cells = getSelectedCells( selection );
// Invalid merge request if:
// 1. In batch mode despite that less than two selected.
// 2. In solo mode while not exactly only one selected.
// 3. Cells distributed in different table groups (e.g. from both thead and tbody).
var commonAncestor;
if ( ( mergeDirection ? cells.length != 1 : cells.length < 2 ) || ( commonAncestor = selection.getCommonAncestor() ) && commonAncestor.type == CKEDITOR.NODE_ELEMENT && commonAncestor.is( 'table' ) )
return false;
var cell,
firstCell = cells[ 0 ],
table = firstCell.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
mapHeight = map.length,
mapWidth = map[ 0 ].length,
startRow = firstCell.getParent().$.rowIndex,
startColumn = cellInRow( map, startRow, firstCell );
if ( mergeDirection ) {
var targetCell;
try {
var rowspan = parseInt( firstCell.getAttribute( 'rowspan' ), 10 ) || 1;
var colspan = parseInt( firstCell.getAttribute( 'colspan' ), 10 ) || 1;
targetCell = map[ mergeDirection == 'up' ? ( startRow - rowspan ) : mergeDirection == 'down' ? ( startRow + rowspan ) : startRow ][
mergeDirection == 'left' ?
( startColumn - colspan ) :
mergeDirection == 'right' ? ( startColumn + colspan ) : startColumn ];
} catch ( er ) {
return false;
}
// 1. No cell could be merged.
// 2. Same cell actually.
if ( !targetCell || firstCell.$ == targetCell )
return false;
// Sort in map order regardless of the DOM sequence.
cells[ ( mergeDirection == 'up' || mergeDirection == 'left' ) ? 'unshift' : 'push' ]( new CKEDITOR.dom.element( targetCell ) );
}
// Start from here are merging way ignorance (merge up/right, batch merge).
var doc = firstCell.getDocument(),
lastRowIndex = startRow,
totalRowSpan = 0,
totalColSpan = 0,
// Use a documentFragment as buffer when appending cell contents.
frag = !isDetect && new CKEDITOR.dom.documentFragment( doc ),
dimension = 0;
for ( var i = 0; i < cells.length; i++ ) {
cell = cells[ i ];
var tr = cell.getParent(),
cellFirstChild = cell.getFirst(),
colSpan = cell.$.colSpan,
rowSpan = cell.$.rowSpan,
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell );
// Accumulated the actual places taken by all selected cells.
dimension += colSpan * rowSpan;
// Accumulated the maximum virtual spans from column and row.
totalColSpan = Math.max( totalColSpan, colIndex - startColumn + colSpan );
totalRowSpan = Math.max( totalRowSpan, rowIndex - startRow + rowSpan );
if ( !isDetect ) {
// Trim all cell fillers and check to remove empty cells.
if ( trimCell( cell ), cell.getChildren().count() ) {
// Merge vertically cells as two separated paragraphs.
if ( rowIndex != lastRowIndex && cellFirstChild && !( cellFirstChild.isBlockBoundary && cellFirstChild.isBlockBoundary( { br: 1 } ) ) ) {
var last = frag.getLast( CKEDITOR.dom.walker.whitespaces( true ) );
if ( last && !( last.is && last.is( 'br' ) ) )
frag.append( 'br' );
}
cell.moveChildren( frag );
}
i ? cell.remove() : cell.setHtml( '' );
}
lastRowIndex = rowIndex;
}
if ( !isDetect ) {
frag.moveChildren( firstCell );
firstCell.appendBogus();
if ( totalColSpan >= mapWidth )
firstCell.removeAttribute( 'rowSpan' );
else
firstCell.$.rowSpan = totalRowSpan;
if ( totalRowSpan >= mapHeight )
firstCell.removeAttribute( 'colSpan' );
else
firstCell.$.colSpan = totalColSpan;
// Swip empty <tr> left at the end of table due to the merging.
var trs = new CKEDITOR.dom.nodeList( table.$.rows ),
count = trs.count();
for ( i = count - 1; i >= 0; i-- ) {
var tailTr = trs.getItem( i );
if ( !tailTr.$.cells.length ) {
tailTr.remove();
count++;
continue;
}
}
return firstCell;
}
// Be able to merge cells only if actual dimension of selected
// cells equals to the caculated rectangle.
else {
return ( totalRowSpan * totalColSpan ) == dimension;
}
}
function horizontalSplitCell( selection, isDetect ) {
var cells = getSelectedCells( selection );
if ( cells.length > 1 )
return false;
else if ( isDetect )
return true;
var cell = cells[ 0 ],
tr = cell.getParent(),
table = tr.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell ),
rowSpan = cell.$.rowSpan,
newCell, newRowSpan, newCellRowSpan, newRowIndex;
if ( rowSpan > 1 ) {
newRowSpan = Math.ceil( rowSpan / 2 );
newCellRowSpan = Math.floor( rowSpan / 2 );
newRowIndex = rowIndex + newRowSpan;
var newCellTr = new CKEDITOR.dom.element( table.$.rows[ newRowIndex ] ),
newCellRow = cellInRow( map, newRowIndex ),
candidateCell;
newCell = cell.clone();
// Figure out where to insert the new cell by checking the vitual row.
for ( var c = 0; c < newCellRow.length; c++ ) {
candidateCell = newCellRow[ c ];
// Catch first cell actually following the column.
if ( candidateCell.parentNode == newCellTr.$ && c > colIndex ) {
newCell.insertBefore( new CKEDITOR.dom.element( candidateCell ) );
break;
} else {
candidateCell = null;
}
}
// The destination row is empty, append at will.
if ( !candidateCell )
newCellTr.append( newCell );
} else {
newCellRowSpan = newRowSpan = 1;
newCellTr = tr.clone();
newCellTr.insertAfter( tr );
newCellTr.append( newCell = cell.clone() );
var cellsInSameRow = cellInRow( map, rowIndex );
for ( var i = 0; i < cellsInSameRow.length; i++ )
cellsInSameRow[ i ].rowSpan++;
}
newCell.appendBogus();
cell.$.rowSpan = newRowSpan;
newCell.$.rowSpan = newCellRowSpan;
if ( newRowSpan == 1 )
cell.removeAttribute( 'rowSpan' );
if ( newCellRowSpan == 1 )
newCell.removeAttribute( 'rowSpan' );
return newCell;
}
function verticalSplitCell( selection, isDetect ) {
var cells = getSelectedCells( selection );
if ( cells.length > 1 )
return false;
else if ( isDetect )
return true;
var cell = cells[ 0 ],
tr = cell.getParent(),
table = tr.getAscendant( 'table' ),
map = CKEDITOR.tools.buildTableMap( table ),
rowIndex = tr.$.rowIndex,
colIndex = cellInRow( map, rowIndex, cell ),
colSpan = cell.$.colSpan,
newCell, newColSpan, newCellColSpan;
if ( colSpan > 1 ) {
newColSpan = Math.ceil( colSpan / 2 );
newCellColSpan = Math.floor( colSpan / 2 );
} else {
newCellColSpan = newColSpan = 1;
var cellsInSameCol = cellInCol( map, colIndex );
for ( var i = 0; i < cellsInSameCol.length; i++ )
cellsInSameCol[ i ].colSpan++;
}
newCell = cell.clone();
newCell.insertAfter( cell );
newCell.appendBogus();
cell.$.colSpan = newColSpan;
newCell.$.colSpan = newCellColSpan;
if ( newColSpan == 1 )
cell.removeAttribute( 'colSpan' );
if ( newCellColSpan == 1 )
newCell.removeAttribute( 'colSpan' );
return newCell;
}
CKEDITOR.plugins.tabletools = {
requires: 'table,dialog,contextmenu',
init: function( editor ) {
var lang = editor.lang.table;
function createDef( def ) {
return CKEDITOR.tools.extend( def || {}, {
contextSensitive: 1,
refresh: function( editor, path ) {
this.setState( path.contains( { td: 1, th: 1 }, 1 ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
}
} );
}
function addCmd( name, def ) {
var cmd = editor.addCommand( name, def );
editor.addFeature( cmd );
}
addCmd( 'cellProperties', new CKEDITOR.dialogCommand( 'cellProperties', createDef( {
allowedContent: 'td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]',
requiredContent: 'table'
} ) ) );
CKEDITOR.dialog.add( 'cellProperties', this.path + 'dialogs/tableCell.js' );
addCmd( 'rowDelete', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
placeCursorInCell( deleteRows( selection ) );
}
} ) );
addCmd( 'rowInsertBefore', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertRow( selection, true );
}
} ) );
addCmd( 'rowInsertAfter', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertRow( selection );
}
} ) );
addCmd( 'columnDelete', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
var element = deleteColumns( selection );
element && placeCursorInCell( element, true );
}
} ) );
addCmd( 'columnInsertBefore', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertColumn( selection, true );
}
} ) );
addCmd( 'columnInsertAfter', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertColumn( selection );
}
} ) );
addCmd( 'cellDelete', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
deleteCells( selection );
}
} ) );
addCmd( 'cellMerge', createDef( {
allowedContent: 'td[colspan,rowspan]',
requiredContent: 'td[colspan,rowspan]',
exec: function( editor ) {
placeCursorInCell( mergeCells( editor.getSelection() ), true );
}
} ) );
addCmd( 'cellMergeRight', createDef( {
allowedContent: 'td[colspan]',
requiredContent: 'td[colspan]',
exec: function( editor ) {
placeCursorInCell( mergeCells( editor.getSelection(), 'right' ), true );
}
} ) );
addCmd( 'cellMergeDown', createDef( {
allowedContent: 'td[rowspan]',
requiredContent: 'td[rowspan]',
exec: function( editor ) {
placeCursorInCell( mergeCells( editor.getSelection(), 'down' ), true );
}
} ) );
addCmd( 'cellVerticalSplit', createDef( {
allowedContent: 'td[rowspan]',
requiredContent: 'td[rowspan]',
exec: function( editor ) {
placeCursorInCell( verticalSplitCell( editor.getSelection() ) );
}
} ) );
addCmd( 'cellHorizontalSplit', createDef( {
allowedContent: 'td[colspan]',
requiredContent: 'td[colspan]',
exec: function( editor ) {
placeCursorInCell( horizontalSplitCell( editor.getSelection() ) );
}
} ) );
addCmd( 'cellInsertBefore', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertCell( selection, true );
}
} ) );
addCmd( 'cellInsertAfter', createDef( {
requiredContent: 'table',
exec: function( editor ) {
var selection = editor.getSelection();
insertCell( selection );
}
} ) );
// If the "menu" plugin is loaded, register the menu items.
if ( editor.addMenuItems ) {
editor.addMenuItems( {
tablecell: {
label: lang.cell.menu,
group: 'tablecell',
order: 1,
getItems: function() {
var selection = editor.getSelection(),
cells = getSelectedCells( selection );
return {
tablecell_insertBefore: CKEDITOR.TRISTATE_OFF,
tablecell_insertAfter: CKEDITOR.TRISTATE_OFF,
tablecell_delete: CKEDITOR.TRISTATE_OFF,
tablecell_merge: mergeCells( selection, null, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_merge_right: mergeCells( selection, 'right', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_merge_down: mergeCells( selection, 'down', true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_split_vertical: verticalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_split_horizontal: horizontalSplitCell( selection, true ) ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED,
tablecell_properties: cells.length > 0 ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED
};
}
},
tablecell_insertBefore: {
label: lang.cell.insertBefore,
group: 'tablecell',
command: 'cellInsertBefore',
order: 5
},
tablecell_insertAfter: {
label: lang.cell.insertAfter,
group: 'tablecell',
command: 'cellInsertAfter',
order: 10
},
tablecell_delete: {
label: lang.cell.deleteCell,
group: 'tablecell',
command: 'cellDelete',
order: 15
},
tablecell_merge: {
label: lang.cell.merge,
group: 'tablecell',
command: 'cellMerge',
order: 16
},
tablecell_merge_right: {
label: lang.cell.mergeRight,
group: 'tablecell',
command: 'cellMergeRight',
order: 17
},
tablecell_merge_down: {
label: lang.cell.mergeDown,
group: 'tablecell',
command: 'cellMergeDown',
order: 18
},
tablecell_split_horizontal: {
label: lang.cell.splitHorizontal,
group: 'tablecell',
command: 'cellHorizontalSplit',
order: 19
},
tablecell_split_vertical: {
label: lang.cell.splitVertical,
group: 'tablecell',
command: 'cellVerticalSplit',
order: 20
},
tablecell_properties: {
label: lang.cell.title,
group: 'tablecellproperties',
command: 'cellProperties',
order: 21
},
tablerow: {
label: lang.row.menu,
group: 'tablerow',
order: 1,
getItems: function() {
return {
tablerow_insertBefore: CKEDITOR.TRISTATE_OFF,
tablerow_insertAfter: CKEDITOR.TRISTATE_OFF,
tablerow_delete: CKEDITOR.TRISTATE_OFF
};
}
},
tablerow_insertBefore: {
label: lang.row.insertBefore,
group: 'tablerow',
command: 'rowInsertBefore',
order: 5
},
tablerow_insertAfter: {
label: lang.row.insertAfter,
group: 'tablerow',
command: 'rowInsertAfter',
order: 10
},
tablerow_delete: {
label: lang.row.deleteRow,
group: 'tablerow',
command: 'rowDelete',
order: 15
},
tablecolumn: {
label: lang.column.menu,
group: 'tablecolumn',
order: 1,
getItems: function() {
return {
tablecolumn_insertBefore: CKEDITOR.TRISTATE_OFF,
tablecolumn_insertAfter: CKEDITOR.TRISTATE_OFF,
tablecolumn_delete: CKEDITOR.TRISTATE_OFF
};
}
},
tablecolumn_insertBefore: {
label: lang.column.insertBefore,
group: 'tablecolumn',
command: 'columnInsertBefore',
order: 5
},
tablecolumn_insertAfter: {
label: lang.column.insertAfter,
group: 'tablecolumn',
command: 'columnInsertAfter',
order: 10
},
tablecolumn_delete: {
label: lang.column.deleteColumn,
group: 'tablecolumn',
command: 'columnDelete',
order: 15
}
} );
}
// If the "contextmenu" plugin is laoded, register the listeners.
if ( editor.contextMenu ) {
editor.contextMenu.addListener( function( element, selection, path ) {
var cell = path.contains( { 'td': 1, 'th': 1 }, 1 );
if ( cell && !cell.isReadOnly() ) {
return {
tablecell: CKEDITOR.TRISTATE_OFF,
tablerow: CKEDITOR.TRISTATE_OFF,
tablecolumn: CKEDITOR.TRISTATE_OFF
};
}
return null;
} );
}
},
getSelectedCells: getSelectedCells
};
CKEDITOR.plugins.add( 'tabletools', CKEDITOR.plugins.tabletools );
} )();
/**
* Create a two-dimension array that reflects the actual layout of table cells,
* with cell spans, with mappings to the original td elements.
*
* @param {CKEDITOR.dom.element} table
* @member CKEDITOR.tools
*/
CKEDITOR.tools.buildTableMap = function( table ) {
var aRows = table.$.rows;
// Row and Column counters.
var r = -1;
var aMap = [];
for ( var i = 0; i < aRows.length; i++ ) {
r++;
!aMap[ r ] && ( aMap[ r ] = [] );
var c = -1;
for ( var j = 0; j < aRows[ i ].cells.length; j++ ) {
var oCell = aRows[ i ].cells[ j ];
c++;
while ( aMap[ r ][ c ] )
c++;
var iColSpan = isNaN( oCell.colSpan ) ? 1 : oCell.colSpan;
var iRowSpan = isNaN( oCell.rowSpan ) ? 1 : oCell.rowSpan;
for ( var rs = 0; rs < iRowSpan; rs++ ) {
if ( !aMap[ r + rs ] )
aMap[ r + rs ] = [];
for ( var cs = 0; cs < iColSpan; cs++ ) {
aMap[ r + rs ][ c + cs ] = aRows[ i ].cells[ j ];
}
}
c += iColSpan - 1;
}
}
return aMap;
};
|
{
"pile_set_name": "Github"
}
|
+ - * / % -- ++
>> <<
~ & | ^
+= -= *= /= %= >>= <<= &= |= ^=
! && ||
-> ::
? :
= == != < > <= >= <=>
and and_eq bitand bitor not not_eq or or_eq xor xor_eq
----------------------------------------------------
[
["operator", "+"],
["operator", "-"],
["operator", "*"],
["operator", "/"],
["operator", "%"],
["operator", "--"],
["operator", "++"],
["operator", ">>"],
["operator", "<<"],
["operator", "~"],
["operator", "&"],
["operator", "|"],
["operator", "^"],
["operator", "+="],
["operator", "-="],
["operator", "*="],
["operator", "/="],
["operator", "%="],
["operator", ">>="],
["operator", "<<="],
["operator", "&="],
["operator", "|="],
["operator", "^="],
["operator", "!"],
["operator", "&&"],
["operator", "||"],
["operator", "->"],
["operator", "::"],
["operator", "?"],
["operator", ":"],
["operator", "="],
["operator", "=="],
["operator", "!="],
["operator", "<"],
["operator", ">"],
["operator", "<="],
["operator", ">="],
["operator", "<=>"],
["operator", "and"],
["operator", "and_eq"],
["operator", "bitand"],
["operator", "bitor"],
["operator", "not"],
["operator", "not_eq"],
["operator", "or"],
["operator", "or_eq"],
["operator", "xor"],
["operator", "xor_eq"]
]
----------------------------------------------------
Checks for all operators.
|
{
"pile_set_name": "Github"
}
|
{
"SystemSettings": {
"deploy": false
},
"AddressResolver": {
"deploy": false
},
"ReadProxyAddressResolver": {
"deploy": false
},
"TradingRewards": {
"deploy": false
},
"EscrowChecker": {
"deploy": false
},
"ExchangeRates": {
"deploy": false
},
"Exchanger": {
"deploy": false
},
"ExchangeState": {
"deploy": false
},
"EtherCollateral": {
"deploy": false
},
"EtherCollateralsUSD": {
"deploy": false
},
"FeePool": {
"deploy": false
},
"FeePoolState": {
"deploy": false
},
"FeePoolEternalStorage": {
"deploy": false
},
"FlexibleStorage": {
"deploy": false
},
"DelegateApprovals": {
"deploy": false
},
"DelegateApprovalsEternalStorage": {
"deploy": false
},
"Issuer": {
"deploy": false
},
"EternalStorageLiquidations": {
"deploy": false
},
"Liquidations": {
"deploy": false
},
"SupplySchedule": {
"deploy": false
},
"Synthetix": {
"deploy": false
},
"SynthetixEscrow": {
"deploy": false
},
"RewardEscrow": {
"deploy": false
},
"RewardsDistribution": {
"deploy": false
},
"SynthetixState": {
"deploy": false
},
"SystemStatus": {
"deploy": false
},
"SynthUtil": {
"deploy": false
},
"DappMaintenance": {
"deploy": false
},
"SynthsUSD": {
"deploy": false
},
"ProxyERC20": {
"deploy": false
},
"ProxyERC20sUSD": {
"deploy": false
},
"ProxyFeePool": {
"deploy": false
},
"ProxySynthetix": {
"deploy": false
},
"ProxysUSD": {
"deploy": false
},
"SafeDecimalMath": {
"deploy": false
},
"Math": {
"deploy": false
},
"TokenStateSynthetix": {
"deploy": false
},
"TokenStatesUSD": {
"deploy": false
}
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>escher</string>
</array>
<key>name</key>
<string>Escher</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>//</string>
<key>end</key>
<string>\z</string>
<key>name</key>
<string>comment.line.double-slash.escher</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.escher</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.escher</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.escher</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string_placeholder</string>
</dict>
<dict>
<key>include</key>
<string>#string_escaped_char</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>`</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.escher</string>
</dict>
</dict>
<key>end</key>
<string>`</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.escher</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.raw.escher</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string_placeholder</string>
</dict>
<dict>
<key>include</key>
<string>source.gotemplate</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\b((\d+\.(\d+)?([eE][+-]?\d+)?|\d+[eE][+-]?\d+|\.\d+([eE][+-]?\d+)?)i?)\b</string>
<key>name</key>
<string>constant.numeric.floating-point.escher</string>
</dict>
<dict>
<key>match</key>
<string>\b(\d+i|0[xX][0-9A-Fa-f]+|0[0-7]*|[1-9][0-9]*)\b</string>
<key>name</key>
<string>constant.numeric.integer.escher</string>
</dict>
<dict>
<key>match</key>
<string>'(?:[^'\\]|\\(?:\\|[abfnrtv']|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|[0-7]{3}))'</string>
<key>name</key>
<string>constant.other.rune.escher</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>variable.other.escher</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.initialize.escher</string>
</dict>
</dict>
<key>comment</key>
<string>This matches the 'x := 0' style of variable declaration.</string>
<key>match</key>
<string>(?:[[:alpha:]_][[:alnum:]_]*)(?:,\s+[[:alpha:]_][[:alnum:]_]*)*\s*(=)</string>
<key>name</key>
<string>meta.initialization.short.escher</string>
</dict>
<dict>
<key>match</key>
<string>(=|(?:[+]|-|[|]|^|[*]|/|%|<<|>>|&|&^)=)</string>
<key>name</key>
<string>keyword.operator.assignment.escher</string>
</dict>
<dict>
<key>match</key>
<string>(;)</string>
<key>name</key>
<string>keyword.operator.semi-colon.escher</string>
</dict>
<dict>
<key>match</key>
<string>(,)</string>
<key>name</key>
<string>punctuation.definition.comma.escher</string>
</dict>
</array>
<key>scopeName</key>
<string>source.escher</string>
<key>uuid</key>
<string>ca03e751-04ef-4330-9a6b-9b99aae1c418</string>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
#!/usr/bin/env node
(function() {
var fs = require('fs');
var cssesc = require('../cssesc.js');
var strings = process.argv.splice(2);
var stdin = process.stdin;
var data;
var timeout;
var isObject = false;
var options = {};
var log = console.log;
var main = function() {
var option = strings[0];
if (/^(?:-h|--help|undefined)$/.test(option)) {
log(
'cssesc v%s - http://mths.be/cssesc',
cssesc.version
);
log([
'\nUsage:\n',
'\tcssesc [string]',
'\tcssesc [-i | --identifier] [string]',
'\tcssesc [-s | --single-quotes] [string]',
'\tcssesc [-d | --double-quotes] [string]',
'\tcssesc [-w | --wrap] [string]',
'\tcssesc [-e | --escape-everything] [string]',
'\tcssesc [-v | --version]',
'\tcssesc [-h | --help]',
'\nExamples:\n',
'\tcssesc \'f\xF6o \u2665 b\xE5r \uD834\uDF06 baz\'',
'\tcssesc --identifier \'f\xF6o \u2665 b\xE5r \uD834\uDF06 baz\'',
'\tcssesc --escape-everything \'f\xF6o \u2665 b\xE5r \uD834\uDF06 baz\'',
'\tcssesc --double-quotes --wrap \'f\xF6o \u2665 b\xE5r \uD834\uDF06 baz\'',
'\techo \'f\xF6o \u2665 b\xE5r \uD834\uDF06 baz\' | cssesc'
].join('\n'));
return process.exit(1);
}
if (/^(?:-v|--version)$/.test(option)) {
log('v%s', cssesc.version);
return process.exit(1);
}
strings.forEach(function(string) {
// Process options
if (/^(?:-i|--identifier)$/.test(string)) {
options.isIdentifier = true;
return;
}
if (/^(?:-s|--single-quotes)$/.test(string)) {
options.quotes = 'single';
return;
}
if (/^(?:-d|--double-quotes)$/.test(string)) {
options.quotes = 'double';
return;
}
if (/^(?:-w|--wrap)$/.test(string)) {
options.wrap = true;
return;
}
if (/^(?:-e|--escape-everything)$/.test(string)) {
options.escapeEverything = true;
return;
}
// Process string(s)
var result;
try {
result = cssesc(string, options);
log(result);
} catch(error) {
log(error.message + '\n');
log('Error: failed to escape.');
log('If you think this is a bug in cssesc, please report it:');
log('https://github.com/mathiasbynens/cssesc/issues/new');
log(
'\nStack trace using cssesc@%s:\n',
cssesc.version
);
log(error.stack);
return process.exit(1);
}
});
// Return with exit status 0 outside of the `forEach` loop, in case
// multiple strings were passed in.
return process.exit(0);
};
if (stdin.isTTY) {
// handle shell arguments
main();
} else {
// Either the script is called from within a non-TTY context, or `stdin`
// content is being piped in.
if (!process.stdout.isTTY) {
// The script was called from a non-TTY context. This is a rather uncommon
// use case we don’t actively support. However, we don’t want the script
// to wait forever in such cases, so…
timeout = setTimeout(function() {
// …if no piped data arrived after a whole minute, handle shell
// arguments instead.
main();
}, 60000);
}
data = '';
stdin.on('data', function(chunk) {
clearTimeout(timeout);
data += chunk;
});
stdin.on('end', function() {
strings.push(data.trim());
main();
});
stdin.resume();
}
}());
|
{
"pile_set_name": "Github"
}
|
/*
Translates the MouseCaster's events into more relevant data that the editor uses.
*/
define('Input', function() {
var tower = require('tower');
var nexus = require('nexus');
var keyboard = require('keyboard');
var Input = function(scene, mouse) {
this.mouse = mouse;
this.mouse.signal.add(this.onMouse, this);
this.mouseDelta = new THREE.Vector3();
this.mousePanMinDistance = 0.1;
this.heightStep = 5;
this.editorWorldPos = new THREE.Vector3(); // current grid position of mouse
this.overTile = null;
this._travel = 0;
keyboard.signal.add(function(type, code) {
if (type === keyboard.eventType.DOWN) {
if (code === keyboard.code.SHIFT) nexus.scene.controls.enabled = false;
}
else {
if (code === keyboard.code.SHIFT) nexus.scene.controls.enabled = true;
}
}, this);
};
Input.prototype = {
update: function() {
var hit = this.mouse.allHits[0];
if (hit) {
this.editorWorldPos.x = hit.point.x;
this.editorWorldPos.y = hit.point.y;
this.editorWorldPos.z = hit.point.z;
}
var dx = this.mouseDelta.x - this.mouse.screenPosition.x;
var dy = this.mouseDelta.y - this.mouse.screenPosition.y;
this._travel += Math.sqrt(dx * dx + dy * dy);
},
onMouse: function(type, obj) {
var hit, cell;
if (this.mouse.allHits && this.mouse.allHits[0]) {
hit = this.mouse.allHits[0];
}
switch (type) {
case vg.MouseCaster.WHEEL:
tower.userAction.dispatch(vg.MouseCaster.WHEEL, this.overTile, obj);
break;
case vg.MouseCaster.OVER:
if (obj) {
this.overTile = obj.select();
}
tower.userAction.dispatch(vg.MouseCaster.OVER, this.overTile, hit);
break;
case vg.MouseCaster.OUT:
if (obj) {
obj.deselect();
this.overTile = null;
}
tower.userAction.dispatch(vg.MouseCaster.OUT, this.overTile, hit);
break;
case vg.MouseCaster.DOWN:
this.mouseDelta.copy(this.mouse.screenPosition);
tower.userAction.dispatch(vg.MouseCaster.DOWN, this.overTile, hit);
this._travel = 0;
break;
case vg.MouseCaster.UP:
if (this._travel > this.mousePanMinDistance) {
break;
}
tower.userAction.dispatch(vg.MouseCaster.UP, this.overTile, hit);
break;
case vg.MouseCaster.CLICK:
tower.userAction.dispatch(vg.MouseCaster.CLICK, this.overTile, hit);
break;
}
}
};
return Input;
});
|
{
"pile_set_name": "Github"
}
|
<?php
/**
* The main site settings page
*/
return array(
/**
* Settings page title
*
* @type string
*/
'title' => 'Site Settings',
/**
* The edit fields array
*
* @type array
*/
'edit_fields' => array(
'site_name' => array(
'title' => 'Site Name',
'type' => 'text',
'limit' => 50,
),
'page_cache_lifetime' => array(
'title' => 'Page Cache Lifetime (in minutes)',
'type' => 'number',
),
'logo' => array(
'title' => 'Image (200 x 150)',
'type' => 'image',
'naming' => 'random',
'location' => public_path(),
'size_limit' => 2,
'sizes' => array(
array(200, 150, 'crop', public_path() . '/resize/', 100),
)
),
),
/**
* The validation rules for the form, based on the Laravel validation class
*
* @type array
*/
'rules' => array(
'site_name' => 'required|max:50',
'page_cache_lifetime' => 'required|integer',
'logo' => 'required',
),
/**
* This is run prior to saving the JSON form data
*
* @type function
* @param array $data
*
* @return string (on error) / void (otherwise)
*/
'before_save' => function(&$data)
{
$data['site_name'] = $data['site_name'] . ' - The Blurst Site Ever';
},
/**
* The permission option is an authentication check that lets you define a closure that should return true if the current user
* is allowed to view this settings page. Any "falsey" response will result in a 404.
*
* @type closure
*/
'permission'=> function()
{
return true;
//return Auth::user()->hasRole('developer');
},
/**
* This is where you can define the settings page's custom actions
*/
'actions' => array(
//Ordering an item up
'clear_page_cache' => array(
'title' => 'Clear Page Cache',
'messages' => array(
'active' => 'Clearing cache...',
'success' => 'Page Cache Cleared',
'error' => 'There was an error while clearing the page cache',
),
//the settings data is passed to the closure and saved if a truthy response is returned
'action' => function(&$data)
{
Cache::forget('pages');
return true;
}
),
),
);
|
{
"pile_set_name": "Github"
}
|
"tinker_damage_on_laser_blinded_heroes"
{
"challengetype" "465"
"desc" "#DOTA_ChallengeDesc_Tinker_Damage_To_Blinded_Heroes"
"status_text" "#DOTA_ChallengeStatusText_Tinker_Damage_To_Blinded_Heroes"
"image" "images/spellicons/tinker_laser.png"
"requiredhero" "tinker"
"events"
{
"matching_type" "timeblock_accumulate_between_events"
"query"
{
"start_event"
{
"event" "modifier_add"
"modifier" "modifier_tinker_laser_blind"
"target_team" "!enemyteam"
"target_must_be_hero" "1"
"storage"
{
"1" "target"
}
}
"accumulate_event"
{
"event" "damage"
"attacker" "!hero"
"target_must_be_hero" "1"
"target" "!1"
"storage"
{
"2"
{
"key" "value"
"aggregator" "sum"
}
}
}
"end_event"
{
"event" "modifier_remove"
"modifier" "modifier_tinker_laser_blind"
"target" "!1"
}
}
"progress_stored_in" "2"
"post_tests"
{
"test_damage_while_blinded"
{
"storage" "2"
"compare" ">="
"amount" "<blinded_damage>"
}
}
}
"variables"
{
"<blinded_damage>"
{
"format" "int"
"index" "0"
}
}
}
|
{
"pile_set_name": "Github"
}
|
#include "c.h"
static Tree addtree(int, Tree, Tree);
static Tree andtree(int, Tree, Tree);
static Tree cmptree(int, Tree, Tree);
static int compatible(Type, Type);
static Tree multree(int, Tree, Tree);
static Tree subtree(int, Tree, Tree);
#define isvoidptr(ty) \
(isptr(ty) && unqual(ty->type) == voidtype)
Tree (*optree[])(int, Tree, Tree) = {
#define xx(a,b,c,d,e,f,g) e,
#define yy(a,b,c,d,e,f,g) e,
#include "token.h"
};
Tree call(Tree f, Type fty, Coordinate src) {
int n = 0;
Tree args = NULL, r = NULL, e;
Type *proto, rty = unqual(freturn(fty));
Symbol t3 = NULL;
if (fty->u.f.oldstyle)
proto = NULL;
else
proto = fty->u.f.proto;
if (hascall(f))
r = f;
if (isstruct(rty))
{
t3 = temporary(AUTO, unqual(rty));
if (rty->size == 0)
error("illegal use of incomplete type `%t'\n", rty);
}
if (t != ')')
for (;;) {
Tree q = pointer(expr1(0));
if (proto && *proto && *proto != voidtype)
{
Type aty;
q = value(q);
aty = assign(*proto, q);
if (aty)
q = cast(q, aty);
else
error("type error in argument %d to %s; found `%t' expected `%t'\n", n + 1, funcname(f),
q->type, *proto);
if ((isint(q->type) || isenum(q->type))
&& q->type->size != inttype->size)
q = cast(q, promote(q->type));
++proto;
}
else
{
if (!fty->u.f.oldstyle && *proto == NULL)
error("too many arguments to %s\n", funcname(f));
q = value(q);
if (isarray(q->type) || q->type->size == 0)
error("type error in argument %d to %s; `%t' is illegal\n", n + 1, funcname(f), q->type);
else
q = cast(q, promote(q->type));
}
if (!IR->wants_argb && isstruct(q->type)) {
if (iscallb(q))
q = addrof(q);
else {
Symbol t1 = temporary(AUTO, unqual(q->type));
q = asgn(t1, q);
q = tree(RIGHT, ptr(t1->type),
root(q), lvalue(idtree(t1)));
}
}
if (q->type->size == 0)
q->type = inttype;
if (hascall(q))
r = r ? tree(RIGHT, voidtype, r, q) : q;
args = tree(mkop(ARG, q->type), q->type, q, args);
n++;
if (Aflag >= 2 && n == 32)
warning("more than 31 arguments in a call to %s\n",
funcname(f));
if (t != ',')
break;
t = gettok();
}
expect(')');
if (proto && *proto && *proto != voidtype)
error("insufficient number of arguments to %s\n",
funcname(f));
if (r)
args = tree(RIGHT, voidtype, r, args);
e = calltree(f, rty, args, t3);
if (events.calls)
apply(events.calls, &src, &e);
return e;
}
Tree calltree(Tree f, Type ty, Tree args, Symbol t3) {
Tree p;
if (args)
f = tree(RIGHT, f->type, args, f);
if (isstruct(ty))
assert(t3),
p = tree(RIGHT, ty,
tree(CALL+B, ty, f, addrof(idtree(t3))),
idtree(t3));
else {
Type rty = ty;
if (isenum(ty))
rty = unqual(ty)->type;
if (!isfloat(rty))
rty = promote(rty);
p = tree(mkop(CALL, rty), rty, f, NULL);
if (isptr(ty) || p->type->size > ty->size)
p = cast(p, ty);
}
return p;
}
Tree vcall(Symbol func, Type ty, ...) {
va_list ap;
Tree args = NULL, e, f = pointer(idtree(func)), r = NULL;
assert(isfunc(func->type));
if (ty == NULL)
ty = freturn(func->type);
va_start(ap, ty);
while ((e = va_arg(ap, Tree)) != NULL) {
if (hascall(e))
r = r == NULL ? e : tree(RIGHT, voidtype, r, e);
args = tree(mkop(ARG, e->type), e->type, e, args);
}
va_end(ap);
if (r != NULL)
args = tree(RIGHT, voidtype, r, args);
return calltree(f, ty, args, NULL);
}
int iscallb(Tree e) {
return e->op == RIGHT && e->kids[0] && e->kids[1]
&& e->kids[0]->op == CALL+B
&& e->kids[1]->op == INDIR+B
&& isaddrop(e->kids[1]->kids[0]->op)
&& e->kids[1]->kids[0]->u.sym->temporary;
}
static Tree addtree(int op, Tree l, Tree r) {
Type ty = inttype;
if (isarith(l->type) && isarith(r->type)) {
ty = binary(l->type, r->type);
l = cast(l, ty);
r = cast(r, ty);
} else if (isptr(l->type) && isint(r->type))
return addtree(ADD, r, l);
else if ( isptr(r->type) && isint(l->type)
&& !isfunc(r->type->type))
{
long n;
ty = unqual(r->type);
n = unqual(ty->type)->size;
if (n == 0)
error("unknown size for type `%t'\n", ty->type);
l = cast(l, promote(l->type));
if (n > 1)
l = multree(MUL, cnsttree(signedptr, n), l);
if (YYcheck && !isaddrop(r->op)) /* omit */
return nullcall(ty, YYcheck, r, l); /* omit */
return simplify(ADD, ty, l, r);
}
else
typeerror(op, l, r);
return simplify(op, ty, l, r);
}
Tree cnsttree(Type ty, ...) {
Tree p = tree(mkop(CNST,ty), ty, NULL, NULL);
va_list ap;
va_start(ap, ty);
switch (ty->op) {
case INT: p->u.v.i = va_arg(ap, long); break;
case UNSIGNED:p->u.v.u = va_arg(ap, unsigned long)&ones(8*ty->size); break;
case FLOAT: p->u.v.d = va_arg(ap, double); break;
case POINTER: p->u.v.p = va_arg(ap, void *); break;
default: assert(0);
}
va_end(ap);
return p;
}
Tree consttree(unsigned n, Type ty) {
if (isarray(ty))
ty = atop(ty);
else assert(isint(ty));
return cnsttree(ty, (unsigned long)n);
}
static Tree cmptree(int op, Tree l, Tree r) {
Type ty;
if (isarith(l->type) && isarith(r->type)) {
ty = binary(l->type, r->type);
l = cast(l, ty);
r = cast(r, ty);
} else if (compatible(l->type, r->type)) {
ty = unsignedptr;
l = cast(l, ty);
r = cast(r, ty);
} else {
ty = unsignedtype;
typeerror(op, l, r);
}
return simplify(mkop(op,ty), inttype, l, r);
}
static int compatible(Type ty1, Type ty2) {
return isptr(ty1) && !isfunc(ty1->type)
&& isptr(ty2) && !isfunc(ty2->type)
&& eqtype(unqual(ty1->type), unqual(ty2->type), 0);
}
int isnullptr(Tree e) {
Type ty = unqual(e->type);
return generic(e->op) == CNST
&& ((ty->op == INT && e->u.v.i == 0)
|| (ty->op == UNSIGNED && e->u.v.u == 0)
|| (isvoidptr(ty) && e->u.v.p == NULL));
}
Tree eqtree(int op, Tree l, Tree r) {
Type xty = l->type, yty = r->type;
if ((isptr(xty) && isnullptr(r))
|| (isptr(xty) && !isfunc(xty->type) && isvoidptr(yty))
|| (isptr(xty) && isptr(yty)
&& eqtype(unqual(xty->type), unqual(yty->type), 1))) {
Type ty = unsignedptr;
l = cast(l, ty);
r = cast(r, ty);
return simplify(mkop(op,ty), inttype, l, r);
}
if ((isptr(yty) && isnullptr(l))
|| (isptr(yty) && !isfunc(yty->type) && isvoidptr(xty)))
return eqtree(op, r, l);
return cmptree(op, l, r);
}
Type assign(Type xty, Tree e) {
Type yty = unqual(e->type);
xty = unqual(xty);
if (isenum(xty))
xty = xty->type;
if (xty->size == 0 || yty->size == 0)
return NULL;
if ( (isarith(xty) && isarith(yty))
|| (isstruct(xty) && xty == yty))
return xty;
if (isptr(xty) && isnullptr(e))
return xty;
if (((isvoidptr(xty) && isptr(yty))
|| (isptr(xty) && isvoidptr(yty)))
&& ( (isconst(xty->type) || !isconst(yty->type))
&& (isvolatile(xty->type) || !isvolatile(yty->type))))
return xty;
if ((isptr(xty) && isptr(yty)
&& eqtype(unqual(xty->type), unqual(yty->type), 1))
&& ( (isconst(xty->type) || !isconst(yty->type))
&& (isvolatile(xty->type) || !isvolatile(yty->type))))
return xty;
if (isptr(xty) && isptr(yty)
&& ( (isconst(xty->type) || !isconst(yty->type))
&& (isvolatile(xty->type) || !isvolatile(yty->type)))) {
Type lty = unqual(xty->type), rty = unqual(yty->type);
if ((isenum(lty) && rty == inttype)
|| (isenum(rty) && lty == inttype)) {
if (Aflag >= 1)
warning("assignment between `%t' and `%t' is compiler-dependent\n",
xty, yty);
return xty;
}
}
return NULL;
}
Tree asgntree(int op, Tree l, Tree r) {
Type aty, ty;
r = pointer(r);
ty = assign(l->type, r);
if (ty)
r = cast(r, ty);
else {
typeerror(ASGN, l, r);
if (r->type == voidtype)
r = retype(r, inttype);
ty = r->type;
}
if (l->op != FIELD)
l = lvalue(l);
aty = l->type;
if (isptr(aty))
aty = unqual(aty)->type;
if ( isconst(aty)
|| (isstruct(aty) && unqual(aty)->u.sym->u.s.cfields)) {
if (isaddrop(l->op)
&& !l->u.sym->computed && !l->u.sym->generated)
error("assignment to const identifier `%s'\n",
l->u.sym->name);
else
error("assignment to const location\n");
}
if (l->op == FIELD) {
long n = 8*l->u.field->type->size - fieldsize(l->u.field);
if (n > 0 && isunsigned(l->u.field->type))
r = bittree(BAND, r,
cnsttree(r->type, (unsigned long)fieldmask(l->u.field)));
else if (n > 0) {
if (r->op == CNST+I) {
n = r->u.v.i;
if (n&(1<<(fieldsize(l->u.field)-1)))
n |= ~0UL<<fieldsize(l->u.field);
r = cnsttree(r->type, n);
} else
r = shtree(RSH,
shtree(LSH, r, cnsttree(inttype, n)),
cnsttree(inttype, n));
}
}
if (isstruct(ty) && isaddrop(l->op) && iscallb(r))
return tree(RIGHT, ty,
tree(CALL+B, ty, r->kids[0]->kids[0], l),
idtree(l->u.sym));
return tree(mkop(op,ty), ty, l, r);
}
Tree condtree(Tree e, Tree l, Tree r) {
Symbol t1;
Type ty, xty = l->type, yty = r->type;
Tree p;
if (isarith(xty) && isarith(yty))
ty = binary(xty, yty);
else if (eqtype(xty, yty, 1))
ty = unqual(xty);
else if (isptr(xty) && isnullptr(r))
ty = xty;
else if (isnullptr(l) && isptr(yty))
ty = yty;
else if ((isptr(xty) && !isfunc(xty->type) && isvoidptr(yty))
|| (isptr(yty) && !isfunc(yty->type) && isvoidptr(xty)))
ty = voidptype;
else if ((isptr(xty) && isptr(yty)
&& eqtype(unqual(xty->type), unqual(yty->type), 1)))
ty = xty;
else {
typeerror(COND, l, r);
return consttree(0, inttype);
}
if (isptr(ty)) {
ty = unqual(unqual(ty)->type);
if ((isptr(xty) && isconst(unqual(xty)->type))
|| (isptr(yty) && isconst(unqual(yty)->type)))
ty = qual(CONST, ty);
if ((isptr(xty) && isvolatile(unqual(xty)->type))
|| (isptr(yty) && isvolatile(unqual(yty)->type)))
ty = qual(VOLATILE, ty);
ty = ptr(ty);
}
switch (e->op) {
case CNST+I: return cast(e->u.v.i != 0 ? l : r, ty);
case CNST+U: return cast(e->u.v.u != 0 ? l : r, ty);
case CNST+P: return cast(e->u.v.p != 0 ? l : r, ty);
case CNST+F: return cast(e->u.v.d != 0.0 ? l : r, ty);
}
if (ty != voidtype && ty->size > 0) {
t1 = genident(REGISTER, unqual(ty), level);
/* t1 = temporary(REGISTER, unqual(ty)); */
l = asgn(t1, l);
r = asgn(t1, r);
} else
t1 = NULL;
p = tree(COND, ty, cond(e),
tree(RIGHT, ty, root(l), root(r)));
p->u.sym = t1;
return p;
}
/* addrof - address of p */
Tree addrof(Tree p) {
Tree q = p;
for (;;)
switch (generic(q->op)) {
case RIGHT:
assert(q->kids[0] || q->kids[1]);
q = q->kids[1] ? q->kids[1] : q->kids[0];
continue;
case ASGN:
q = q->kids[1];
continue;
case COND: {
Symbol t1 = q->u.sym;
q->u.sym = 0;
q = idtree(t1);
/* fall through */
}
case INDIR:
if (p == q)
return q->kids[0];
q = q->kids[0];
return tree(RIGHT, q->type, root(p), q);
default:
error("addressable object required\n");
return value(p);
}
}
/* andtree - construct tree for l [&& ||] r */
static Tree andtree(int op, Tree l, Tree r) {
if (!isscalar(l->type) || !isscalar(r->type))
typeerror(op, l, r);
return simplify(op, inttype, cond(l), cond(r));
}
/* asgn - generate tree for assignment of expr e to symbol p sans qualifiers */
Tree asgn(Symbol p, Tree e) {
if (isarray(p->type))
e = tree(ASGN+B, p->type, idtree(p),
tree(INDIR+B, e->type, e, NULL));
else {
Type ty = p->type;
p->type = unqual(p->type);
if (isstruct(p->type) && p->type->u.sym->u.s.cfields) {
p->type->u.sym->u.s.cfields = 0;
e = asgntree(ASGN, idtree(p), e);
p->type->u.sym->u.s.cfields = 1;
} else
e = asgntree(ASGN, idtree(p), e);
p->type = ty;
}
return e;
}
/* bittree - construct tree for l [& | ^ %] r */
Tree bittree(int op, Tree l, Tree r) {
Type ty = inttype;
if (isint(l->type) && isint(r->type)) {
ty = binary(l->type, r->type);
l = cast(l, ty);
r = cast(r, ty);
} else
typeerror(op, l, r);
return simplify(op, ty, l, r);
}
/* multree - construct tree for l [* /] r */
static Tree multree(int op, Tree l, Tree r) {
Type ty = inttype;
if (isarith(l->type) && isarith(r->type)) {
ty = binary(l->type, r->type);
l = cast(l, ty);
r = cast(r, ty);
} else
typeerror(op, l, r);
return simplify(op, ty, l, r);
}
/* shtree - construct tree for l [>> <<] r */
Tree shtree(int op, Tree l, Tree r) {
Type ty = inttype;
if (isint(l->type) && isint(r->type)) {
ty = promote(l->type);
l = cast(l, ty);
r = cast(r, inttype);
} else
typeerror(op, l, r);
return simplify(op, ty, l, r);
}
/* subtree - construct tree for l - r */
static Tree subtree(int op, Tree l, Tree r) {
long n;
Type ty = inttype;
if (isarith(l->type) && isarith(r->type)) {
ty = binary(l->type, r->type);
l = cast(l, ty);
r = cast(r, ty);
} else if (isptr(l->type) && !isfunc(l->type->type) && isint(r->type)) {
ty = unqual(l->type);
n = unqual(ty->type)->size;
if (n == 0)
error("unknown size for type `%t'\n", ty->type);
r = cast(r, promote(r->type));
if (n > 1)
r = multree(MUL, cnsttree(signedptr, n), r);
if (isunsigned(r->type))
r = cast(r, unsignedptr);
else
r = cast(r, signedptr);
return simplify(SUB+P, ty, l, r);
} else if (compatible(l->type, r->type)) {
ty = unqual(l->type);
n = unqual(ty->type)->size;
if (n == 0)
error("unknown size for type `%t'\n", ty->type);
l = simplify(SUB+U, unsignedptr,
cast(l, unsignedptr), cast(r, unsignedptr));
return simplify(DIV+I, longtype,
cast(l, longtype), cnsttree(longtype, n));
} else
typeerror(op, l, r);
return simplify(op, ty, l, r);
}
/* typeerror - issue "operands of op have illegal types `l' and `r'" */
void typeerror(int op, Tree l, Tree r) {
int i;
static struct { int op; char *name; } ops[] = {
{ASGN, "="}, {INDIR, "*"}, {NEG, "-"},
{ADD, "+"}, {SUB, "-"}, {LSH, "<<"},
{MOD, "%"}, {RSH, ">>"}, {BAND, "&"},
{BCOM, "~"}, {BOR, "|"}, {BXOR, "^"},
{DIV, "/"}, {MUL, "*"}, {EQ, "=="},
{GE, ">="}, {GT, ">"}, {LE, "<="},
{LT, "<"}, {NE, "!="}, {AND, "&&"},
{NOT, "!"}, {OR, "||"}, {COND, "?:"},
{0, 0}
};
op = generic(op);
for (i = 0; ops[i].op; i++)
if (op == ops[i].op)
break;
assert(ops[i].name);
if (r)
error("operands of %s have illegal types `%t' and `%t'\n",
ops[i].name, l->type, r->type);
else
error("operand of unary %s has illegal type `%t'\n", ops[i].name,
l->type);
}
|
{
"pile_set_name": "Github"
}
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<% String context = request.getContextPath(); %>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的购物车</title>
</head>
<body>
<H1 align=center>
你所购买的商品如下:
</H1>
<TABLE cellSpacing=0 cellPadding=0 width="75%" align=center border=1>
<TBODY>
<TR align=middle>
<TD width="21%" height=30>
商品名称
</TD>
<TD width="14%" height=30>
单价
</TD>
<TD width="25%" height=30>
数量
</TD>
<TD width="33%" height=30>
合计
</TD>
</TR>
<c:forEach var="item" items="${sessionScope.cart.items}">
<TR align=middle>
<TD height=30>
${item.value.product.name }
</TD>
<TD height=30>
${item.value.product.price }
</TD>
<TD height=30>
${item.value.number }
</TD>
<TD height=30>
${item.value.cost }
</TD>
</TR>
</c:forEach>
<TR>
<TD colSpan=5 height=30>
您的购物车中所有商品总金额:${sessionScope.cart.price }
</TD>
</TR>
</TBODY>
</TABLE>
<P>
<H1 align=center>
用户联系方式如下:
</H1>
<P></P>
<form action="<%=context %>/from/cart_post!postOrder" method="post">
<!-- <html:hidden property="method" value="postOrder" /> -->
<TABLE cellSpacing=0 cellPadding=0 width=500 align=center border=0>
<TBODY>
<TR>
<TD width=117 height=23>
姓名:
</TD>
<TD width=383>
<INPUT value="${sessionScope.user.name }" name="name">
</TD>
</TR>
<TR>
<TD height=24>
地址:
</TD>
<TD>
<INPUT value="${sessionScope.user.address }" name="address">
</TD>
</TR>
<TR>
<TD height=24>
邮政编码:
</TD>
<TD>
<INPUT value="${sessionScope.user.postCode }" name="postCode">
</TD>
</TR>
<TR>
<TD height=23>
E-mail:
</TD>
<TD>
<INPUT value="${sessionScope.user.email }" name="email">
</TD>
</TR>
<TR>
<TD height=23>
联系电话:
</TD>
<TD>
<INPUT value="${sessionScope.user.cellPhone }" name="phone">
</TD>
</TR>
</TBODY>
</TABLE>
<BR>
<TABLE cellSpacing=0 cellPadding=0 width=500 align=center border=0>
<TBODY>
<TR>
<TD align=middle>
<!-- <INPUT type=submit value=结帐 name=Submit> -->
<input type="submit" value="结帐">
</TD>
<TD align=middle>
<INPUT
onclick="javascript:location.href='listaction?method=list'"
type=button value="继续购物" name=Submit42>
</TD>
<TD align=middle>
<INPUT
onclick="javascript:location.href='cart_inedx?method=CartIndex'"
type=button value="回到购物车" name=Submit42>
</TD>
</TR>
</TBODY>
</TABLE>
</form>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
{
"scriptCategory": "English-like",
"timeOfDayFormat": "H:mm",
"openAppDrawerTooltip": "নেভিগেশ্বন মেনু খোলক",
"backButtonTooltip": "উভতি যাওক",
"closeButtonTooltip": "বন্ধ কৰক",
"deleteButtonTooltip": "মচক",
"nextMonthTooltip": "পৰৱৰ্তী মাহ",
"previousMonthTooltip": "পূৰ্বৱৰ্তী মাহ",
"nextPageTooltip": "পৰৱৰ্তী পৃষ্ঠা",
"previousPageTooltip": "পূৰ্বৱৰ্তী পৃষ্ঠা",
"showMenuTooltip": "মেনুখন দেখুৱাওক",
"aboutListTileTitle": "$applicationNameৰ বিষয়ে",
"licensesPageTitle": "অনুজ্ঞাপত্ৰসমূহ",
"pageRowsInfoTitle": "$rowCountৰ $firstRow–$lastRow",
"pageRowsInfoTitleApproximate": "$rowCountৰ $firstRow–$lastRow",
"rowsPerPageTitle": "প্ৰতিটো পৃষ্ঠাত থকা শাৰী:",
"tabLabel": "$tabCountৰ $tabIndexটা টেব",
"selectedRowCountTitleOne": "১টা বস্তু বাছনি কৰা হ'ল",
"selectedRowCountTitleOther": "$selectedRowCountটা বস্তু বাছনি কৰা হ’ল",
"cancelButtonLabel": "বাতিল কৰক",
"closeButtonLabel": "বন্ধ কৰক",
"continueButtonLabel": "অব্যাহত ৰাখক",
"copyButtonLabel": "প্ৰতিলিপি কৰক",
"cutButtonLabel": "কাট কৰক",
"okButtonLabel": "ঠিক আছে",
"pasteButtonLabel": "পে'ষ্ট কৰক",
"selectAllButtonLabel": "সকলো বাছনি কৰক",
"viewLicensesButtonLabel": "অনুজ্ঞাপত্ৰসমূহ চাওক",
"anteMeridiemAbbreviation": "পূৰ্বাহ্ন",
"postMeridiemAbbreviation": "অপৰাহ্ন",
"timePickerHourModeAnnouncement": "সময় বাছনি কৰক",
"timePickerMinuteModeAnnouncement": "মিনিট বাছনি কৰক",
"modalBarrierDismissLabel": "অগ্ৰাহ্য কৰক",
"signedInLabel": "ছাইন ইন কৰা হ’ল",
"hideAccountsLabel": "একাউণ্টসমূহ লুকুৱাওক",
"showAccountsLabel": "একাউণ্টসমূহ দেখুৱাওক",
"drawerLabel": "নেভিগেশ্বন মেনু",
"popupMenuLabel": "প'পআপ মেনু",
"dialogLabel": "ডায়ল'গ",
"alertDialogLabel": "সতৰ্কবাৰ্তা",
"searchFieldLabel": "সন্ধান কৰক",
"reorderItemToStart": "আৰম্ভণিলৈ স্থানান্তৰ কৰক",
"reorderItemToEnd": "শেষলৈ স্থানান্তৰ কৰক",
"reorderItemUp": "ওপৰলৈ নিয়ক",
"reorderItemDown": "তললৈ স্থানান্তৰ কৰক",
"reorderItemLeft": "বাওঁফাললৈ স্থানান্তৰ কৰক",
"reorderItemRight": "সোঁফাললৈ স্থানান্তৰ কৰক",
"expandedIconTapHint": "সংকোচন কৰক",
"collapsedIconTapHint": "বিস্তাৰ কৰক",
"remainingTextFieldCharacterCountOne": "১টা বর্ণ বাকী আছে",
"remainingTextFieldCharacterCountOther": "$remainingCountটা বর্ণ বাকী আছে",
"refreshIndicatorSemanticLabel": "ৰিফ্ৰেশ্ব কৰক",
"moreButtonTooltip": "অধিক",
"dateSeparator": "/",
"dateHelpText": "mm/dd/yyyy",
"selectYearSemanticsLabel": "বছৰ বাছনি কৰক",
"unspecifiedDate": "তাৰিখ",
"unspecifiedDateRange": "তাৰিখৰ পৰিসৰ",
"dateInputLabel": "তাৰিখটো দিয়ক",
"dateRangeStartLabel": "আৰম্ভণিৰ তাৰিখ",
"dateRangeEndLabel": "সমাপ্তিৰ তাৰিখ",
"dateRangeStartDateSemanticLabel": "আৰম্ভণিৰ তাৰিখ $fullDate",
"dateRangeEndDateSemanticLabel": "সমাপ্তিৰ তাৰিখ $fullDate",
"invalidDateFormatLabel": "অমান্য ফৰ্মেট।",
"invalidDateRangeLabel": "অমান্য পৰিসৰ।",
"dateOutOfRangeLabel": "সীমাৰ বাহিৰত।",
"saveButtonLabel": "ছেভ কৰক",
"datePickerHelpText": "তাৰিখ বাছনি কৰক",
"dateRangePickerHelpText": "পৰিসৰ বাছনি কৰক",
"calendarModeButtonLabel": "কেলেণ্ডাৰলৈ সলনি কৰক",
"inputDateModeButtonLabel": "ইনপুটলৈ সলনি কৰক",
"timePickerDialHelpText": "সময় বাছনি কৰক",
"timePickerInputHelpText": "সময় দিয়ক",
"timePickerHourLabel": "ঘণ্টা",
"timePickerMinuteLabel": "মিনিট",
"invalidTimeLabel": "এটা মান্য সময় দিয়ক",
"dialModeButtonLabel": "ডায়েল বাছনিকৰ্তাৰ ম’ডলৈ সলনি কৰক",
"inputTimeModeButtonLabel": "পাঠ ইনপুটৰ ম’ডলৈ সলনি কৰক",
"licensesPackageDetailTextZero": "No licenses",
"licensesPackageDetailTextOne": "১ খন অনুজ্ঞাপত্ৰ",
"licensesPackageDetailTextOther": "$licenseCount খন অনুজ্ঞাপত্ৰ"
}
|
{
"pile_set_name": "Github"
}
|
// AttributeDirectory.h
#ifndef NET_FS_ATTRIBUTE_DIRECTORY_H
#define NET_FS_ATTRIBUTE_DIRECTORY_H
#include <fs_attr.h>
#include "SLList.h"
class BNode;
// attribute directory status
enum {
ATTRIBUTE_DIRECTORY_NOT_LOADED,
ATTRIBUTE_DIRECTORY_VALID,
ATTRIBUTE_DIRECTORY_TOO_BIG,
};
// Attribute
class Attribute : public SLListLinkImpl<Attribute> {
Attribute(const char* name,
const attr_info& info, const void* data);
~Attribute();
public:
static status_t CreateAttribute(const char* name,
const attr_info& info, const void* data,
Attribute** attribute);
static void DeleteAttribute(Attribute* attribute);
const char* GetName() const;
void GetInfo(attr_info* info) const;
uint32 GetType() const;
off_t GetSize() const;
const void* GetData() const;
private:
attr_info fInfo;
char fDataAndName[1];
};
// AttributeDirectory
class AttributeDirectory {
public:
AttributeDirectory();
virtual ~AttributeDirectory();
uint32 GetAttrDirStatus() const;
bool IsAttrDirValid() const;
status_t LoadAttrDir();
void ClearAttrDir();
status_t AddAttribute(const char* name,
const attr_info& info, const void* data);
bool RemoveAttribute(const char* name);
void RemoveAttribute(Attribute* attribute);
status_t UpdateAttribute(const char* name, bool* removed,
attr_info* info, const void** data);
Attribute* GetAttribute(const char* name) const;
Attribute* GetFirstAttribute() const;
Attribute* GetNextAttribute(Attribute* attribute) const;
virtual status_t OpenNode(BNode& node) = 0;
private:
status_t _LoadAttribute(BNode& node, const char* name,
attr_info& info, void* data,
bool& dataLoaded);
private:
SLList<Attribute> fAttributes;
uint32 fStatus;
};
#endif // NET_FS_ATTRIBUTE_DIRECTORY_H
|
{
"pile_set_name": "Github"
}
|
{
"name": "Signal Pro 400 v1",
"version": 2,
"inherits": "atmat_signal_pro_base",
"metadata":
{
"visible": true,
"quality_definition": "atmat_signal_pro_base"
},
"overrides":
{
"machine_name": { "default_value": "Signal Pro 400 v1" },
"machine_width": { "default_value": 300 },
"machine_depth": { "default_value": 300 },
"machine_height": { "default_value": 400 },
"acceleration_layer_0": { "value": "250" },
"acceleration_prime_tower": { "value": "750" },
"acceleration_print": { "value": "750" },
"acceleration_travel": { "value": "750" },
"acceleration_support": { "value": "750" },
"acceleration_support_interface": { "value": "750" },
"acceleration_topbottom": { "value": "750" },
"acceleration_wall": { "value": "750" },
"acceleration_wall_0": { "value": "500" },
"jerk_layer_0": { "value": "5" },
"jerk_prime_tower": { "value": "jerk_print" },
"jerk_print": { "value": "7.5" },
"jerk_support": { "value": "jerk_print" },
"jerk_support_interface": { "value": "jerk_print" },
"jerk_topbottom": { "value": "jerk_print" },
"jerk_wall": { "value": "jerk_print" },
"jerk_wall_0": { "value": "jerk_print" },
"jerk_travel": { "value": "jerk_layer_0" },
"jerk_travel_layer_0": { "value": "jerk_layer_0" }
}
}
|
{
"pile_set_name": "Github"
}
|
/**
* Handles opening of and synchronization with the reveal.js
* notes window.
*/
var RevealNotes = (function() {
function openNotes() {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
// Fires when slide is changed
Reveal.addEventListener( 'slidechanged', function( event ) {
post('slidechanged');
} );
// Fires when a fragment is shown
Reveal.addEventListener( 'fragmentshown', function( event ) {
post('fragmentshown');
} );
// Fires when a fragment is hidden
Reveal.addEventListener( 'fragmenthidden', function( event ) {
post('fragmenthidden');
} );
/**
* Posts the current slide data to the notes window
*
* @param {String} eventType Expecting 'slidechanged', 'fragmentshown'
* or 'fragmenthidden' set in the events above to define the needed
* slideDate.
*/
function post( eventType ) {
var slideElement = Reveal.getCurrentSlide(),
messageData;
if( eventType === 'slidechanged' ) {
var notes = slideElement.querySelector( 'aside.notes' ),
indexh = Reveal.getIndices().h,
indexv = Reveal.getIndices().v,
nextindexh,
nextindexv;
if( slideElement.nextElementSibling && slideElement.parentNode.nodeName == 'SECTION' ) {
nextindexh = indexh;
nextindexv = indexv + 1;
} else {
nextindexh = indexh + 1;
nextindexv = 0;
}
messageData = {
notes : notes ? notes.innerHTML : '',
indexh : indexh,
indexv : indexv,
nextindexh : nextindexh,
nextindexv : nextindexv,
markdown : notes ? typeof notes.getAttribute( 'data-markdown' ) === 'string' : false
};
}
else if( eventType === 'fragmentshown' ) {
messageData = {
fragment : 'next'
};
}
else if( eventType === 'fragmenthidden' ) {
messageData = {
fragment : 'prev'
};
}
notesPopup.postMessage( JSON.stringify( messageData ), '*' );
}
// Navigate to the current slide when the notes are loaded
notesPopup.addEventListener( 'load', function( event ) {
post('slidechanged');
}, false );
}
// If the there's a 'notes' query set, open directly
if( window.location.search.match( /(\?|\&)notes/gi ) !== null ) {
openNotes();
}
// Open the notes when the 's' key is hit
document.addEventListener( 'keydown', function( event ) {
// Disregard the event if the target is editable or a
// modifier is present
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
if( event.keyCode === 83 ) {
event.preventDefault();
openNotes();
}
}, false );
return { open: openNotes };
})();
|
{
"pile_set_name": "Github"
}
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Modals = factory());
}(this, (function () { 'use strict';
// https://stackoverflow.com/a/34624648
function copy(o) {
var _out, v, _key;
_out = Array.isArray(o) ? [] : {};
for (_key in o) {
v = o[_key];
_out[_key] = (typeof v === "object" && v !== null) ? copy(v) : v;
}
return _out;
}
// https://github.com/jaredreich/tread
function merge(oldObject, newObject, strict) {
var obj = oldObject
for (var key in newObject) {
if (typeof obj[key] === 'object' && obj[key] !== null) {
merge(obj[key], newObject[key])
} else {
if (strict) {
if (obj.hasOwnProperty(key)) {
obj[key] = newObject[key]
}
} else {
obj[key] = newObject[key]
}
}
}
return obj
}
function copyMerge(targ, src) {
return merge(copy(targ), copy(src));
}
var el = domvm.defineElement;
function Modals(opts) {
this.opts = opts || {};
var stack = this.stack = [];
var vm = this.vm = domvm.createView(ModalsView, this);
this.push = function(cfg) {
stack.push(copy(cfg));
vm.redraw();
};
this.pop = function(howMany) {
howMany = howMany || 1;
while (howMany--)
stack.pop();
vm.redraw();
};
this.mount = function(ctnr) {
vm.mount(ctnr);
};
}
function ModalsView(vm, mods) {
function initAttrs(cfg) {
return (cfg.attrs = {_hooks: genHooks(cfg)});
}
function updAttrs(cfg, attrs) {
return (cfg.attrs = copyMerge(cfg.attrs || {}, attrs || {}));
}
function genHooks(cfg) {
var push = cfg.onpush;
var pop = cfg.onpop;
var hooks = {};
if (push) {
if (push.initial) {
hooks.willInsert = function(node) {
node.patch(updAttrs(cfg, push.initial(node)));
};
}
if (push.delayed) {
hooks.didInsert = function(node) {
node.patch(updAttrs(cfg, push.delayed(node)));
// must determine if there's a transition to set up hook, assumed yes for now
// http://codepen.io/csuwldcat/pen/EempF
if (push.settled) {
var setPatch = function() {
node.patch(updAttrs(cfg, push.settled(node)));
};
node.patch(updAttrs(cfg, {ontransitionend: [setPatch]}));
}
};
}
}
if (pop) {
if (pop.initial || pop.delayed) {
hooks.willRemove = function(node) {
if (pop.initial)
node.patch(updAttrs(cfg, pop.initial(node)));
if (pop.delayed) {
return new Promise(function(resolve, reject) {
node.patch(updAttrs(cfg, merge(pop.delayed(node), {ontransitionend: [resolve]})));
});
}
};
}
}
return Object.keys(hooks).length > 0 ? hooks : null;
}
function modalTpl(i, stack) {
var cfg = stack[i];
var isLast = i === stack.length - 1;
var ovrAttrs = copy(cfg.overlay.attrs || initAttrs(cfg.overlay));
var cntAttrs = copy(cfg.content.attrs || initAttrs(cfg.content));
return el(".dv-modals-overlay", ovrAttrs, [
el(".dv-modals-content", cntAttrs, [
cfg.content.body(),
isLast ? null : modalTpl(i + 1, stack),
])
]);
}
return function() {
return el(".dv-modals", [
mods.stack.length > 0 && modalTpl(0, mods.stack)
]);
};
}
return Modals;
})));
/* usage */
var modals = new Modals();
modals.mount(document.body);
function dismiss() {
modals.pop();
}
// pop modal on overlay click
function overlayClick(e) {
if (e.target == e.currentTarget)
modals.pop();
}
// pop modal on esc
document.addEventListener("keyup", function(e) {
if (e.keyCode == 27)
modals.pop();
});
var el = domvm.defineElement,
tx = domvm.defineText;
var modalA = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(128,255,255,.5)", position: "absolute"}, onclick: overlayClick}; }, // opacity: 1
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test1", [
el("p", "Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb."),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 300, width: 600}}; }, // immediate
// delayed: function(node) { return {style: {color: "red", height: 600, transform: "rotateZ(360deg)", transition: "250ms"}}; }, // nextTick
// settled: function(node) { return {style: {color: "red", height: 600}}; }, // transitionend (shorthand for simply unsetting transition?)
},
onpop: {
// delayed: function(node) { return {style: {transition: "2s", opacity: 0}}; },
// initial: function(node) { return null; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
var modalB = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(128,128,255,.5)", position: "absolute"}, onclick: overlayClick}; },
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test2", [
tx("bar"),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 200, width: 400, transform: "translateX(-180px)"}}; },
delayed: function(node) { return {style: {transform: "translateX(0)", transition: "250ms"}}; },
},
onpop: {
initial: function(node) { return {style: {transform: "translateY(100px)", transition: "250ms"}}; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
var modalC = {
overlay: {
onpush: {
initial: function(node) { return {style: {opacity: 0, background: "rgba(255,128,255,.5)", position: "absolute"}, onclick: overlayClick}; },
delayed: function(node) { return {style: {opacity: 1, transition: "250ms"}}; },
},
onpop: {
delayed: function(node) { return {style: {opacity: 0, transition: "250ms"}}; },
}
},
content: {
body: function() { return (
el(".test3", [
tx("baz"),
el("button.dismiss", {onclick: dismiss}, "Dismiss"),
])
)},
onpush: {
initial: function(node) { return {style: {height: 600, transform: "rotateZ(-180deg)"}}; },
delayed: function(node) { return {style: {color: "blue", height: 200, transform: "none", transition: "250ms"}}; },
// settled: function(node) { return {style: {border: "1px solid red", transition: "0s"}}; },
},
onpop: {
initial: function(node) { return {style: {height: 600, transform: "rotateZ(-180deg)", transition: "250ms"}}; },
// delayed: function(node) { return {style: {color: "red", height: 600, transition: "500ms"}}; }, // nextTick
}
},
};
setTimeout(function() {
modals.push(modalA);
}, 0);
setTimeout(function() {
modals.push(modalB);
}, 1000);
setTimeout(function() {
modals.push(modalC);
}, 2000);
/*
setTimeout(function() {
modals.pop();
}, 3000);
setTimeout(function() {
modals.pop();
}, 4000);
setTimeout(function() {
modals.pop();
}, 5000);
*/
|
{
"pile_set_name": "Github"
}
|
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center">
<table class="responsive-table" style="border: 1px solid #d0d0d0;" border="0" width="500" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding: 40px 20px 30px 20px;" bgcolor="#ffffff">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="padding-copy" style="font-size: 32px; font-family: Helvetica, Arial, sans-serif; color: #333333;" align="center">Ticket Merged And Closed</td>
</tr>
<tr>
<td class="padding-copy" style="padding: 20px 0 0 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #666666;" align="left">Hello {client_name}:
Your ticket: <strong>{ticket_title} </strong>with ticket <strong>#{ticket_id}</strong>has been merged into ticket #<strong>{merge_target_id}. </strong>The original ticket has been closed.</td>
</tr>
<tr>
<td class="padding-copy" style="padding: 20px 0 0 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #666666;" align="left">To view the original ticket please click the button below</td>
</tr>
<tr>
<td align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="padding" style="padding: 25px 0 5px 0;" align="center">
<table class="mobile-button-container" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="border-radius: 3px;" align="center" bgcolor="#18a689"><a class="mobile-button" style="font-size: 16px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; border-radius: 3px; padding: 15px 25px; border: 1px solid #18a689; display: inline-block;" href="{ticket_url}" target="_blank" rel="noopener">View Original Ticket</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding: 0px 0px 0px; text-align: center;">
<hr />
You are receiving this message because you initiated a support request with us ({site_name})</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tr>
</tbody>
</table>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<class name="AnimationNodeBlendSpace2D" inherits="AnimationRootNode" version="4.0">
<brief_description>
Blends linearly between three [AnimationNode] of any type placed in a 2D space.
</brief_description>
<description>
A resource to add to an [AnimationNodeBlendTree].
This node allows you to blend linearly between three animations using a [Vector2] weight.
You can add vertices to the blend space with [method add_blend_point] and automatically triangulate it by setting [member auto_triangles] to [code]true[/code]. Otherwise, use [method add_triangle] and [method remove_triangle] to create up the blend space by hand.
</description>
<tutorials>
<link title="AnimationTree">https://docs.godotengine.org/en/latest/tutorials/animation/animation_tree.html</link>
</tutorials>
<methods>
<method name="add_blend_point">
<return type="void">
</return>
<argument index="0" name="node" type="AnimationRootNode">
</argument>
<argument index="1" name="pos" type="Vector2">
</argument>
<argument index="2" name="at_index" type="int" default="-1">
</argument>
<description>
Adds a new point that represents a [code]node[/code] at the position set by [code]pos[/code]. You can insert it at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array.
</description>
</method>
<method name="add_triangle">
<return type="void">
</return>
<argument index="0" name="x" type="int">
</argument>
<argument index="1" name="y" type="int">
</argument>
<argument index="2" name="z" type="int">
</argument>
<argument index="3" name="at_index" type="int" default="-1">
</argument>
<description>
Creates a new triangle using three points [code]x[/code], [code]y[/code], and [code]z[/code]. Triangles can overlap. You can insert the triangle at a specific index using the [code]at_index[/code] argument. If you use the default value for [code]at_index[/code], the point is inserted at the end of the blend points array.
</description>
</method>
<method name="get_blend_point_count" qualifiers="const">
<return type="int">
</return>
<description>
Returns the number of points in the blend space.
</description>
</method>
<method name="get_blend_point_node" qualifiers="const">
<return type="AnimationRootNode">
</return>
<argument index="0" name="point" type="int">
</argument>
<description>
Returns the [AnimationRootNode] referenced by the point at index [code]point[/code].
</description>
</method>
<method name="get_blend_point_position" qualifiers="const">
<return type="Vector2">
</return>
<argument index="0" name="point" type="int">
</argument>
<description>
Returns the position of the point at index [code]point[/code].
</description>
</method>
<method name="get_triangle_count" qualifiers="const">
<return type="int">
</return>
<description>
Returns the number of triangles in the blend space.
</description>
</method>
<method name="get_triangle_point">
<return type="int">
</return>
<argument index="0" name="triangle" type="int">
</argument>
<argument index="1" name="point" type="int">
</argument>
<description>
Returns the position of the point at index [code]point[/code] in the triangle of index [code]triangle[/code].
</description>
</method>
<method name="remove_blend_point">
<return type="void">
</return>
<argument index="0" name="point" type="int">
</argument>
<description>
Removes the point at index [code]point[/code] from the blend space.
</description>
</method>
<method name="remove_triangle">
<return type="void">
</return>
<argument index="0" name="triangle" type="int">
</argument>
<description>
Removes the triangle at index [code]triangle[/code] from the blend space.
</description>
</method>
<method name="set_blend_point_node">
<return type="void">
</return>
<argument index="0" name="point" type="int">
</argument>
<argument index="1" name="node" type="AnimationRootNode">
</argument>
<description>
Changes the [AnimationNode] referenced by the point at index [code]point[/code].
</description>
</method>
<method name="set_blend_point_position">
<return type="void">
</return>
<argument index="0" name="point" type="int">
</argument>
<argument index="1" name="pos" type="Vector2">
</argument>
<description>
Updates the position of the point at index [code]point[/code] on the blend axis.
</description>
</method>
</methods>
<members>
<member name="auto_triangles" type="bool" setter="set_auto_triangles" getter="get_auto_triangles" default="true">
If [code]true[/code], the blend space is triangulated automatically. The mesh updates every time you add or remove points with [method add_blend_point] and [method remove_blend_point].
</member>
<member name="blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" enum="AnimationNodeBlendSpace2D.BlendMode" default="0">
Controls the interpolation between animations. See [enum BlendMode] constants.
</member>
<member name="max_space" type="Vector2" setter="set_max_space" getter="get_max_space" default="Vector2( 1, 1 )">
The blend space's X and Y axes' upper limit for the points' position. See [method add_blend_point].
</member>
<member name="min_space" type="Vector2" setter="set_min_space" getter="get_min_space" default="Vector2( -1, -1 )">
The blend space's X and Y axes' lower limit for the points' position. See [method add_blend_point].
</member>
<member name="snap" type="Vector2" setter="set_snap" getter="get_snap" default="Vector2( 0.1, 0.1 )">
Position increment to snap to when moving a point.
</member>
<member name="x_label" type="String" setter="set_x_label" getter="get_x_label" default=""x"">
Name of the blend space's X axis.
</member>
<member name="y_label" type="String" setter="set_y_label" getter="get_y_label" default=""y"">
Name of the blend space's Y axis.
</member>
</members>
<signals>
<signal name="triangles_updated">
<description>
Emitted every time the blend space's triangles are created, removed, or when one of their vertices changes position.
</description>
</signal>
</signals>
<constants>
<constant name="BLEND_MODE_INTERPOLATED" value="0" enum="BlendMode">
The interpolation between animations is linear.
</constant>
<constant name="BLEND_MODE_DISCRETE" value="1" enum="BlendMode">
The blend space plays the animation of the node the blending position is closest to. Useful for frame-by-frame 2D animations.
</constant>
<constant name="BLEND_MODE_DISCRETE_CARRY" value="2" enum="BlendMode">
Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at the last animation's playback position.
</constant>
</constants>
</class>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.defcon.sortDescriptor</key>
<array>
<dict>
<key>ascending</key>
<array>
<string>uni00A0</string>
<string>A</string>
<string>Agrave</string>
<string>Aacute</string>
<string>Acircumflex</string>
<string>Atilde</string>
<string>Adieresis</string>
<string>Aring</string>
<string>Amacron</string>
<string>Abreve</string>
<string>Aogonek</string>
<string>Aringacute</string>
<string>Adotbelow</string>
<string>B</string>
<string>C</string>
<string>Ccedilla</string>
<string>Cacute</string>
<string>Ccircumflex</string>
<string>Cdotaccent</string>
<string>Ccaron</string>
<string>D</string>
<string>Dcaron</string>
<string>E</string>
<string>Egrave</string>
<string>Eacute</string>
<string>Ecircumflex</string>
<string>Edieresis</string>
<string>Emacron</string>
<string>Ebreve</string>
<string>Edotaccent</string>
<string>Eogonek</string>
<string>Ecaron</string>
<string>Edotbelow</string>
<string>Etilde</string>
<string>F</string>
<string>G</string>
<string>Gcircumflex</string>
<string>Gbreve</string>
<string>Gdotaccent</string>
<string>Gcommaaccent</string>
<string>Gcaron</string>
<string>H</string>
<string>Hcircumflex</string>
<string>I</string>
<string>Igrave</string>
<string>Iacute</string>
<string>Icircumflex</string>
<string>Idieresis</string>
<string>Itilde</string>
<string>Imacron</string>
<string>Ibreve</string>
<string>Iogonek</string>
<string>Idotaccent</string>
<string>Idotbelow</string>
<string>J</string>
<string>Jcircumflex</string>
<string>K</string>
<string>Kcommaaccent</string>
<string>L</string>
<string>Lacute</string>
<string>Lcommaaccent</string>
<string>Lcaron</string>
<string>M</string>
<string>N</string>
<string>Ntilde</string>
<string>Nacute</string>
<string>Ncommaaccent</string>
<string>Ncaron</string>
<string>O</string>
<string>Ograve</string>
<string>Oacute</string>
<string>Ocircumflex</string>
<string>Otilde</string>
<string>Odieresis</string>
<string>Omacron</string>
<string>Obreve</string>
<string>Ohungarumlaut</string>
<string>Oogonek</string>
<string>Odotbelow</string>
<string>P</string>
<string>Q</string>
<string>R</string>
<string>Racute</string>
<string>Rcommaaccent</string>
<string>Rcaron</string>
<string>S</string>
<string>Sacute</string>
<string>Scircumflex</string>
<string>Scedilla</string>
<string>Scaron</string>
<string>Scommaaccent</string>
<string>T</string>
<string>uni0162</string>
<string>Tcaron</string>
<string>uni021A</string>
<string>U</string>
<string>Ugrave</string>
<string>Uacute</string>
<string>Ucircumflex</string>
<string>Udieresis</string>
<string>Utilde</string>
<string>Umacron</string>
<string>Ubreve</string>
<string>Uring</string>
<string>Uhungarumlaut</string>
<string>Uogonek</string>
<string>Udotbelow</string>
<string>V</string>
<string>W</string>
<string>Wcircumflex</string>
<string>Wgrave</string>
<string>Wacute</string>
<string>Wdieresis</string>
<string>X</string>
<string>Y</string>
<string>Yacute</string>
<string>Ycircumflex</string>
<string>Ydieresis</string>
<string>Ymacron</string>
<string>Ygrave</string>
<string>Ytilde</string>
<string>Z</string>
<string>Zacute</string>
<string>Zdotaccent</string>
<string>Zcaron</string>
<string>AE</string>
<string>AEacute</string>
<string>Eth</string>
<string>Oslash</string>
<string>Oslashacute</string>
<string>Thorn</string>
<string>Dcroat</string>
<string>Hbar</string>
<string>IJ</string>
<string>Ldot</string>
<string>Lslash</string>
<string>Eng</string>
<string>OE</string>
<string>Tbar</string>
<string>Schwa</string>
<string>Nhookleft</string>
<string>uni1E9E</string>
<string>uni2126</string>
<string>a</string>
<string>agrave</string>
<string>aacute</string>
<string>acircumflex</string>
<string>atilde</string>
<string>adieresis</string>
<string>aring</string>
<string>amacron</string>
<string>abreve</string>
<string>aogonek</string>
<string>aringacute</string>
<string>adotbelow</string>
<string>b</string>
<string>c</string>
<string>ccedilla</string>
<string>cacute</string>
<string>ccircumflex</string>
<string>cdotaccent</string>
<string>ccaron</string>
<string>d</string>
<string>dcaron</string>
<string>e</string>
<string>egrave</string>
<string>eacute</string>
<string>ecircumflex</string>
<string>edieresis</string>
<string>emacron</string>
<string>ebreve</string>
<string>edotaccent</string>
<string>eogonek</string>
<string>ecaron</string>
<string>edotbelow</string>
<string>etilde</string>
<string>f</string>
<string>g</string>
<string>gcircumflex</string>
<string>gbreve</string>
<string>gdotaccent</string>
<string>gcommaaccent</string>
<string>gcaron</string>
<string>h</string>
<string>hcircumflex</string>
<string>i</string>
<string>igrave</string>
<string>iacute</string>
<string>icircumflex</string>
<string>idieresis</string>
<string>itilde</string>
<string>imacron</string>
<string>ibreve</string>
<string>iogonek</string>
<string>idotbelow</string>
<string>j</string>
<string>jcircumflex</string>
<string>k</string>
<string>kcommaaccent</string>
<string>l</string>
<string>lacute</string>
<string>lcommaaccent</string>
<string>lcaron</string>
<string>m</string>
<string>n</string>
<string>ntilde</string>
<string>nacute</string>
<string>ncommaaccent</string>
<string>ncaron</string>
<string>o</string>
<string>ograve</string>
<string>oacute</string>
<string>ocircumflex</string>
<string>otilde</string>
<string>odieresis</string>
<string>omacron</string>
<string>obreve</string>
<string>ohungarumlaut</string>
<string>oogonek</string>
<string>odotbelow</string>
<string>p</string>
<string>q</string>
<string>r</string>
<string>racute</string>
<string>rcommaaccent</string>
<string>rcaron</string>
<string>s</string>
<string>sacute</string>
<string>scircumflex</string>
<string>scedilla</string>
<string>scaron</string>
<string>scommaaccent</string>
<string>t</string>
<string>uni0163</string>
<string>tcaron</string>
<string>uni021B</string>
<string>u</string>
<string>ugrave</string>
<string>uacute</string>
<string>ucircumflex</string>
<string>udieresis</string>
<string>utilde</string>
<string>umacron</string>
<string>ubreve</string>
<string>uring</string>
<string>uhungarumlaut</string>
<string>uogonek</string>
<string>udotbelow</string>
<string>v</string>
<string>w</string>
<string>wcircumflex</string>
<string>wgrave</string>
<string>wacute</string>
<string>wdieresis</string>
<string>x</string>
<string>y</string>
<string>yacute</string>
<string>ydieresis</string>
<string>ycircumflex</string>
<string>ymacron</string>
<string>ygrave</string>
<string>ytilde</string>
<string>z</string>
<string>zacute</string>
<string>zdotaccent</string>
<string>zcaron</string>
<string>germandbls</string>
<string>ae</string>
<string>aeacute</string>
<string>eth</string>
<string>oslash</string>
<string>oslashacute</string>
<string>thorn</string>
<string>dcroat</string>
<string>hbar</string>
<string>dotlessi</string>
<string>ij</string>
<string>kgreenlandic</string>
<string>ldot</string>
<string>lslash</string>
<string>napostrophe</string>
<string>eng</string>
<string>oe</string>
<string>tbar</string>
<string>dotlessj</string>
<string>schwa</string>
<string>nhookleft</string>
<string>pi</string>
<string>ordfeminine</string>
<string>ordmasculine</string>
<string>gravecomb</string>
<string>acutecomb</string>
<string>circumflexcomb</string>
<string>tildecomb</string>
<string>macroncomb</string>
<string>brevecomb</string>
<string>dotaccentcomb</string>
<string>dieresiscomb</string>
<string>ringcomb</string>
<string>hungarumlautcomb</string>
<string>caroncomb</string>
<string>commaturnedabovecomb</string>
<string>commaaboverightcomb</string>
<string>dotbelowcomb</string>
<string>commaaccentcomb</string>
<string>cedillacomb</string>
<string>ogonekcomb</string>
<string>zero</string>
<string>one</string>
<string>two</string>
<string>three</string>
<string>four</string>
<string>five</string>
<string>six</string>
<string>seven</string>
<string>eight</string>
<string>nine</string>
<string>onesuperior</string>
<string>twosuperior</string>
<string>threesuperior</string>
<string>onequarter</string>
<string>onehalf</string>
<string>threequarters</string>
<string>underscore</string>
<string>hyphen</string>
<string>endash</string>
<string>emdash</string>
<string>parenleft</string>
<string>parenright</string>
<string>bracketleft</string>
<string>bracketright</string>
<string>braceleft</string>
<string>braceright</string>
<string>numbersign</string>
<string>percent</string>
<string>perthousand</string>
<string>quotesingle</string>
<string>quotedbl</string>
<string>quoteleft</string>
<string>quoteright</string>
<string>quotedblleft</string>
<string>quotedblright</string>
<string>quotesinglbase</string>
<string>quotedblbase</string>
<string>guilsinglleft</string>
<string>guilsinglright</string>
<string>guillemotleft</string>
<string>guillemotright</string>
<string>asterisk</string>
<string>dagger</string>
<string>daggerdbl</string>
<string>period</string>
<string>comma</string>
<string>colon</string>
<string>semicolon</string>
<string>ellipsis</string>
<string>exclam</string>
<string>exclamdown</string>
<string>question</string>
<string>questiondown</string>
<string>slash</string>
<string>backslash</string>
<string>fraction</string>
<string>bar</string>
<string>brokenbar</string>
<string>at</string>
<string>ampersand</string>
<string>section</string>
<string>paragraph</string>
<string>uni2113</string>
<string>periodcentered</string>
<string>bullet</string>
<string>overline</string>
<string>plus</string>
<string>minus</string>
<string>plusminus</string>
<string>divide</string>
<string>multiply</string>
<string>equal</string>
<string>less</string>
<string>greater</string>
<string>lessequal</string>
<string>greaterequal</string>
<string>approxequal</string>
<string>notequal</string>
<string>logicalnot</string>
<string>uni2190</string>
<string>uni2191</string>
<string>uni2192</string>
<string>uni2193</string>
<string>partialdiff</string>
<string>uni2206</string>
<string>product</string>
<string>summation</string>
<string>uni00B5</string>
<string>uni2215</string>
<string>radical</string>
<string>infinity</string>
<string>integral</string>
<string>uni2261</string>
<string>dollar</string>
<string>cent</string>
<string>sterling</string>
<string>currency</string>
<string>yen</string>
<string>Euro</string>
<string>florin</string>
<string>asciicircum</string>
<string>asciitilde</string>
<string>acute</string>
<string>grave</string>
<string>hungarumlaut</string>
<string>circumflex</string>
<string>caron</string>
<string>breve</string>
<string>tilde</string>
<string>macron</string>
<string>dieresis</string>
<string>dotaccent</string>
<string>ring</string>
<string>cedilla</string>
<string>ogonek</string>
<string>copyright</string>
<string>registered</string>
<string>trademark</string>
<string>degree</string>
<string>estimated</string>
<string>lozenge</string>
<string>uni00AD</string>
<string>ijacute</string>
<string>IJacute</string>
<string>bitcoin</string>
<string>dotlessij</string>
<string>flatg</string>
<string>ringacute</string>
<string>gravecomb.case</string>
<string>acutecomb.case</string>
<string>circumflexcomb.case</string>
<string>tildecomb.case</string>
<string>macroncomb.case</string>
<string>brevecomb.case</string>
<string>dotaccentcomb.case</string>
<string>dieresiscomb.case</string>
<string>ringcomb.case</string>
<string>hungarumlautcomb.case</string>
<string>caroncomb.case</string>
<string>commaturnedabovecomb.case</string>
<string>commaaboverightcomb.case</string>
<string>dotbelowcomb.case</string>
<string>commaaccentcomb.case</string>
<string>cedillacomb.case</string>
<string>ogonekcomb.case</string>
<string>ringacute.case</string>
<string>dollar.lower</string>
<string>a.roman</string>
<string>f.roman</string>
<string>g.roman</string>
<string>i.roman</string>
<string>l.roman</string>
<string>r.roman</string>
<string>y.roman</string>
<string>a.italic</string>
<string>f.italic</string>
<string>g.italic</string>
<string>i.italic</string>
<string>l.italic</string>
<string>r.italic</string>
<string>y.italic</string>
<string>a.ss01</string>
<string>g.ss01</string>
<string>Z.noserif</string>
</array>
<key>type</key>
<string>glyphList</string>
</dict>
</array>
<key>com.typemytype.glyphBuilder.lastSavedFileName</key>
<string>recursive-diacritics-for-latin-refined</string>
<key>com.typemytype.robofont.compileSettings.MacRomanFirst</key>
<integer>1</integer>
<key>com.typemytype.robofont.compileSettings.autohint</key>
<true/>
<key>com.typemytype.robofont.compileSettings.checkOutlines</key>
<integer>1</integer>
<key>com.typemytype.robofont.compileSettings.createDummyDSIG</key>
<true/>
<key>com.typemytype.robofont.compileSettings.decompose</key>
<integer>1</integer>
<key>com.typemytype.robofont.compileSettings.generateFormat</key>
<integer>0</integer>
<key>com.typemytype.robofont.compileSettings.layerName</key>
<string>foreground</string>
<key>com.typemytype.robofont.compileSettings.path</key>
<string>/Users/stephennixon/Dropbox/KABK_netherlands/type_media/000-casual-mono/generated-fonts/Recursive Mono v0.0.10-Micro Bold.otf</string>
<key>com.typemytype.robofont.compileSettings.releaseMode</key>
<false/>
<key>com.typemytype.robofont.italicSlantOffset</key>
<integer>0</integer>
<key>com.typemytype.robofont.segmentType</key>
<string>curve</string>
<key>com.typemytype.robofont.shouldAddPointsInSplineConversion</key>
<integer>1</integer>
<key>public.glyphOrder</key>
<array>
<string>uni00A0</string>
<string>A</string>
<string>Agrave</string>
<string>Aacute</string>
<string>Acircumflex</string>
<string>Atilde</string>
<string>Adieresis</string>
<string>Aring</string>
<string>Amacron</string>
<string>Abreve</string>
<string>Aogonek</string>
<string>Aringacute</string>
<string>Adotbelow</string>
<string>B</string>
<string>C</string>
<string>Ccedilla</string>
<string>Cacute</string>
<string>Ccircumflex</string>
<string>Cdotaccent</string>
<string>Ccaron</string>
<string>D</string>
<string>Dcaron</string>
<string>E</string>
<string>Egrave</string>
<string>Eacute</string>
<string>Ecircumflex</string>
<string>Edieresis</string>
<string>Emacron</string>
<string>Ebreve</string>
<string>Edotaccent</string>
<string>Eogonek</string>
<string>Ecaron</string>
<string>Edotbelow</string>
<string>Etilde</string>
<string>F</string>
<string>G</string>
<string>Gcircumflex</string>
<string>Gbreve</string>
<string>Gdotaccent</string>
<string>Gcommaaccent</string>
<string>Gcaron</string>
<string>H</string>
<string>Hcircumflex</string>
<string>I</string>
<string>Igrave</string>
<string>Iacute</string>
<string>Icircumflex</string>
<string>Idieresis</string>
<string>Itilde</string>
<string>Imacron</string>
<string>Ibreve</string>
<string>Iogonek</string>
<string>Idotaccent</string>
<string>Idotbelow</string>
<string>J</string>
<string>Jcircumflex</string>
<string>K</string>
<string>Kcommaaccent</string>
<string>L</string>
<string>Lacute</string>
<string>Lcommaaccent</string>
<string>Lcaron</string>
<string>M</string>
<string>N</string>
<string>Ntilde</string>
<string>Nacute</string>
<string>Ncommaaccent</string>
<string>Ncaron</string>
<string>O</string>
<string>Ograve</string>
<string>Oacute</string>
<string>Ocircumflex</string>
<string>Otilde</string>
<string>Odieresis</string>
<string>Omacron</string>
<string>Obreve</string>
<string>Ohungarumlaut</string>
<string>Oogonek</string>
<string>Odotbelow</string>
<string>P</string>
<string>Q</string>
<string>R</string>
<string>Racute</string>
<string>Rcommaaccent</string>
<string>Rcaron</string>
<string>S</string>
<string>Sacute</string>
<string>Scircumflex</string>
<string>Scedilla</string>
<string>Scaron</string>
<string>Scommaaccent</string>
<string>T</string>
<string>uni0162</string>
<string>Tcaron</string>
<string>uni021A</string>
<string>U</string>
<string>Ugrave</string>
<string>Uacute</string>
<string>Ucircumflex</string>
<string>Udieresis</string>
<string>Utilde</string>
<string>Umacron</string>
<string>Ubreve</string>
<string>Uring</string>
<string>Uhungarumlaut</string>
<string>Uogonek</string>
<string>Udotbelow</string>
<string>V</string>
<string>W</string>
<string>Wcircumflex</string>
<string>Wgrave</string>
<string>Wacute</string>
<string>Wdieresis</string>
<string>X</string>
<string>Y</string>
<string>Yacute</string>
<string>Ycircumflex</string>
<string>Ydieresis</string>
<string>Ymacron</string>
<string>Ygrave</string>
<string>Ytilde</string>
<string>Z</string>
<string>Zacute</string>
<string>Zdotaccent</string>
<string>Zcaron</string>
<string>AE</string>
<string>AEacute</string>
<string>Eth</string>
<string>Oslash</string>
<string>Oslashacute</string>
<string>Thorn</string>
<string>Dcroat</string>
<string>Hbar</string>
<string>IJ</string>
<string>Ldot</string>
<string>Lslash</string>
<string>Eng</string>
<string>OE</string>
<string>Tbar</string>
<string>Schwa</string>
<string>Nhookleft</string>
<string>uni1E9E</string>
<string>uni2126</string>
<string>a</string>
<string>agrave</string>
<string>aacute</string>
<string>acircumflex</string>
<string>atilde</string>
<string>adieresis</string>
<string>aring</string>
<string>amacron</string>
<string>abreve</string>
<string>aogonek</string>
<string>aringacute</string>
<string>adotbelow</string>
<string>b</string>
<string>c</string>
<string>ccedilla</string>
<string>cacute</string>
<string>ccircumflex</string>
<string>cdotaccent</string>
<string>ccaron</string>
<string>d</string>
<string>dcaron</string>
<string>e</string>
<string>egrave</string>
<string>eacute</string>
<string>ecircumflex</string>
<string>edieresis</string>
<string>emacron</string>
<string>ebreve</string>
<string>edotaccent</string>
<string>eogonek</string>
<string>ecaron</string>
<string>edotbelow</string>
<string>etilde</string>
<string>f</string>
<string>g</string>
<string>gcircumflex</string>
<string>gbreve</string>
<string>gdotaccent</string>
<string>gcommaaccent</string>
<string>gcaron</string>
<string>h</string>
<string>hcircumflex</string>
<string>i</string>
<string>igrave</string>
<string>iacute</string>
<string>icircumflex</string>
<string>idieresis</string>
<string>itilde</string>
<string>imacron</string>
<string>ibreve</string>
<string>iogonek</string>
<string>idotbelow</string>
<string>j</string>
<string>jcircumflex</string>
<string>k</string>
<string>kcommaaccent</string>
<string>l</string>
<string>lacute</string>
<string>lcommaaccent</string>
<string>lcaron</string>
<string>m</string>
<string>n</string>
<string>ntilde</string>
<string>nacute</string>
<string>ncommaaccent</string>
<string>ncaron</string>
<string>o</string>
<string>ograve</string>
<string>oacute</string>
<string>ocircumflex</string>
<string>otilde</string>
<string>odieresis</string>
<string>omacron</string>
<string>obreve</string>
<string>ohungarumlaut</string>
<string>oogonek</string>
<string>odotbelow</string>
<string>p</string>
<string>q</string>
<string>r</string>
<string>racute</string>
<string>rcommaaccent</string>
<string>rcaron</string>
<string>s</string>
<string>sacute</string>
<string>scircumflex</string>
<string>scedilla</string>
<string>scaron</string>
<string>scommaaccent</string>
<string>t</string>
<string>uni0163</string>
<string>tcaron</string>
<string>uni021B</string>
<string>u</string>
<string>ugrave</string>
<string>uacute</string>
<string>ucircumflex</string>
<string>udieresis</string>
<string>utilde</string>
<string>umacron</string>
<string>ubreve</string>
<string>uring</string>
<string>uhungarumlaut</string>
<string>uogonek</string>
<string>udotbelow</string>
<string>v</string>
<string>w</string>
<string>wcircumflex</string>
<string>wgrave</string>
<string>wacute</string>
<string>wdieresis</string>
<string>x</string>
<string>y</string>
<string>yacute</string>
<string>ydieresis</string>
<string>ycircumflex</string>
<string>ymacron</string>
<string>ygrave</string>
<string>ytilde</string>
<string>z</string>
<string>zacute</string>
<string>zdotaccent</string>
<string>zcaron</string>
<string>germandbls</string>
<string>ae</string>
<string>aeacute</string>
<string>eth</string>
<string>oslash</string>
<string>oslashacute</string>
<string>thorn</string>
<string>dcroat</string>
<string>hbar</string>
<string>dotlessi</string>
<string>ij</string>
<string>kgreenlandic</string>
<string>ldot</string>
<string>lslash</string>
<string>napostrophe</string>
<string>eng</string>
<string>oe</string>
<string>tbar</string>
<string>dotlessj</string>
<string>schwa</string>
<string>nhookleft</string>
<string>pi</string>
<string>ordfeminine</string>
<string>ordmasculine</string>
<string>gravecomb</string>
<string>acutecomb</string>
<string>circumflexcomb</string>
<string>tildecomb</string>
<string>macroncomb</string>
<string>brevecomb</string>
<string>dotaccentcomb</string>
<string>dieresiscomb</string>
<string>ringcomb</string>
<string>hungarumlautcomb</string>
<string>caroncomb</string>
<string>commaturnedabovecomb</string>
<string>commaaboverightcomb</string>
<string>dotbelowcomb</string>
<string>commaaccentcomb</string>
<string>cedillacomb</string>
<string>ogonekcomb</string>
<string>zero</string>
<string>one</string>
<string>two</string>
<string>three</string>
<string>four</string>
<string>five</string>
<string>six</string>
<string>seven</string>
<string>eight</string>
<string>nine</string>
<string>onesuperior</string>
<string>twosuperior</string>
<string>threesuperior</string>
<string>onequarter</string>
<string>onehalf</string>
<string>threequarters</string>
<string>underscore</string>
<string>hyphen</string>
<string>endash</string>
<string>emdash</string>
<string>parenleft</string>
<string>parenright</string>
<string>bracketleft</string>
<string>bracketright</string>
<string>braceleft</string>
<string>braceright</string>
<string>numbersign</string>
<string>percent</string>
<string>perthousand</string>
<string>quotesingle</string>
<string>quotedbl</string>
<string>quoteleft</string>
<string>quoteright</string>
<string>quotedblleft</string>
<string>quotedblright</string>
<string>quotesinglbase</string>
<string>quotedblbase</string>
<string>guilsinglleft</string>
<string>guilsinglright</string>
<string>guillemotleft</string>
<string>guillemotright</string>
<string>asterisk</string>
<string>dagger</string>
<string>daggerdbl</string>
<string>period</string>
<string>comma</string>
<string>colon</string>
<string>semicolon</string>
<string>ellipsis</string>
<string>exclam</string>
<string>exclamdown</string>
<string>question</string>
<string>questiondown</string>
<string>slash</string>
<string>backslash</string>
<string>fraction</string>
<string>bar</string>
<string>brokenbar</string>
<string>at</string>
<string>ampersand</string>
<string>section</string>
<string>paragraph</string>
<string>uni2113</string>
<string>periodcentered</string>
<string>bullet</string>
<string>overline</string>
<string>plus</string>
<string>minus</string>
<string>plusminus</string>
<string>divide</string>
<string>multiply</string>
<string>equal</string>
<string>less</string>
<string>greater</string>
<string>lessequal</string>
<string>greaterequal</string>
<string>approxequal</string>
<string>notequal</string>
<string>logicalnot</string>
<string>uni2190</string>
<string>uni2191</string>
<string>uni2192</string>
<string>uni2193</string>
<string>partialdiff</string>
<string>uni2206</string>
<string>product</string>
<string>summation</string>
<string>uni00B5</string>
<string>uni2215</string>
<string>radical</string>
<string>infinity</string>
<string>integral</string>
<string>uni2261</string>
<string>dollar</string>
<string>cent</string>
<string>sterling</string>
<string>currency</string>
<string>yen</string>
<string>Euro</string>
<string>florin</string>
<string>asciicircum</string>
<string>asciitilde</string>
<string>acute</string>
<string>grave</string>
<string>hungarumlaut</string>
<string>circumflex</string>
<string>caron</string>
<string>breve</string>
<string>tilde</string>
<string>macron</string>
<string>dieresis</string>
<string>dotaccent</string>
<string>ring</string>
<string>cedilla</string>
<string>ogonek</string>
<string>copyright</string>
<string>registered</string>
<string>trademark</string>
<string>degree</string>
<string>estimated</string>
<string>lozenge</string>
<string>uni00AD</string>
<string>ijacute</string>
<string>IJacute</string>
<string>bitcoin</string>
<string>dotlessij</string>
<string>flatg</string>
<string>ringacute</string>
<string>gravecomb.case</string>
<string>acutecomb.case</string>
<string>circumflexcomb.case</string>
<string>tildecomb.case</string>
<string>macroncomb.case</string>
<string>brevecomb.case</string>
<string>dotaccentcomb.case</string>
<string>dieresiscomb.case</string>
<string>ringcomb.case</string>
<string>hungarumlautcomb.case</string>
<string>caroncomb.case</string>
<string>commaturnedabovecomb.case</string>
<string>commaaboverightcomb.case</string>
<string>dotbelowcomb.case</string>
<string>commaaccentcomb.case</string>
<string>cedillacomb.case</string>
<string>ogonekcomb.case</string>
<string>ringacute.case</string>
<string>dollar.lower</string>
<string>a.roman</string>
<string>f.roman</string>
<string>g.roman</string>
<string>i.roman</string>
<string>l.roman</string>
<string>r.roman</string>
<string>y.roman</string>
<string>a.italic</string>
<string>f.italic</string>
<string>g.italic</string>
<string>i.italic</string>
<string>l.italic</string>
<string>r.italic</string>
<string>y.italic</string>
<string>a.ss01</string>
<string>g.ss01</string>
<string>Z.noserif</string>
<string>space</string>
</array>
</dict>
</plist>
|
{
"pile_set_name": "Github"
}
|
/*
jQuery grab
Ported from Jin.js::gestures
Created by Jussi Kalliokoski
Licensed under MIT License.
*/
(function($){
var extend = $.extend,
mousedown = 'mousedown',
mousemove = 'mousemove',
mouseup = 'mouseup',
touchstart = 'touchstart',
touchmove = 'touchmove',
touchend = 'touchend',
touchcancel = 'touchcancel',
gesturestart = 'gesturestart',
gesturechange = 'gesturechange',
gestureend = 'gestureend',
gesturecancel = 'gesturecancel',
MozTouchDown = 'MozTouchDown',
MozTouchMove = 'MozTouchMove',
MozTouchUp = 'MozTouchUp',
mousewheel = 'mousewheel',
DOMMouseScroll = 'DOMMouseScroll';
function unbind(elem, type, func){
var fnc, i;
for (i=0; i<bind._binds.length; i++){
if (bind._binds[i].elem === elem && bind._binds[i].type === type && bind._binds[i].func === func){
if (document.addEventListener){
elem.removeEventListener(type, bind._binds[i].fnc, false);
} else {
elem.detachEvent('on'+type, bind._binds[i].fnc);
}
bind._binds.splice(i--, 1);
}
}
}
function bind(elem, type, func, pass){
var fnc, i;
if (bind[type]){
return bind[type].bind(elem, type, func, pass);
}
fnc = function(e){
if (!e){ // Fix some ie bugs...
e = window.event;
}
if (!e.stopPropagation){
e.stopPropagation = function(){ this.cancelBubble = true; };
}
e.data = pass;
func.call(elem, e);
};
if (document.addEventListener){
elem.addEventListener(type, fnc, false);
} else {
elem.attachEvent('on' + type, fnc);
}
bind._binds.push({elem: elem, type: type, func: func, fnc: fnc});
}
function grab(elem, options)
{
var data = {
move: {x: 0, y: 0},
offset: {x: 0, y: 0},
position: {x: 0, y: 0},
start: {x: 0, y: 0},
affects: document.documentElement,
stopPropagation: false,
preventDefault: true,
touch: true // Implementation unfinished, and doesn't support multitouch
};
extend(data, options);
data.element = elem;
bind(elem, mousedown, mouseDown, data);
if (data.touch){
bind(elem, touchstart, touchStart, data);
}
}
function ungrab(elem){
unbind(elem, mousedown, mousedown);
}
function mouseDown(e){
e.data.position.x = e.pageX;
e.data.position.y = e.pageY;
e.data.start.x = e.pageX;
e.data.start.y = e.pageY;
e.data.event = e;
if (e.data.onstart && e.data.onstart.call(e.data.element, e.data)){
return;
}
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.stopPropagation){
e.stopPropagation();
}
bind(e.data.affects, mousemove, mouseMove, e.data);
bind(e.data.affects, mouseup, mouseUp, e.data);
}
function mouseMove(e){
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.preventDefault){
e.stopPropagation();
}
e.data.move.x = e.pageX - e.data.position.x;
e.data.move.y = e.pageY - e.data.position.y;
e.data.position.x = e.pageX;
e.data.position.y = e.pageY;
e.data.offset.x = e.pageX - e.data.start.x;
e.data.offset.y = e.pageY - e.data.start.y;
e.data.event = e;
if (e.data.onmove){
e.data.onmove.call(e.data.element, e.data);
}
}
function mouseUp(e){
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.stopPropagation){
e.stopPropagation();
}
unbind(e.data.affects, mousemove, mouseMove);
unbind(e.data.affects, mouseup, mouseUp);
e.data.event = e;
if (e.data.onfinish){
e.data.onfinish.call(e.data.element, e.data);
}
}
function touchStart(e){
e.data.position.x = e.touches[0].pageX;
e.data.position.y = e.touches[0].pageY;
e.data.start.x = e.touches[0].pageX;
e.data.start.y = e.touches[0].pageY;
e.data.event = e;
if (e.data.onstart && e.data.onstart.call(e.data.element, e.data)){
return;
}
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.stopPropagation){
e.stopPropagation();
}
bind(e.data.affects, touchmove, touchMove, e.data);
bind(e.data.affects, touchend, touchEnd, e.data);
}
function touchMove(e){
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.stopPropagation){
e.stopPropagation();
}
e.data.move.x = e.touches[0].pageX - e.data.position.x;
e.data.move.y = e.touches[0].pageY - e.data.position.y;
e.data.position.x = e.touches[0].pageX;
e.data.position.y = e.touches[0].pageY;
e.data.offset.x = e.touches[0].pageX - e.data.start.x;
e.data.offset.y = e.touches[0].pageY - e.data.start.y;
e.data.event = e;
if (e.data.onmove){
e.data.onmove.call(e.data.elem, e.data);
}
}
function touchEnd(e){
if (e.preventDefault && e.data.preventDefault){
e.preventDefault();
}
if (e.stopPropagation && e.data.stopPropagation){
e.stopPropagation();
}
unbind(e.data.affects, touchmove, touchMove);
unbind(e.data.affects, touchend, touchEnd);
e.data.event = e;
if (e.data.onfinish){
e.data.onfinish.call(e.data.element, e.data);
}
}
bind._binds = [];
$.fn.grab = function(a, b){
return this.each(function(){
return grab(this, a, b);
});
};
$.fn.ungrab = function(a){
return this.each(function(){
return ungrab(this, a);
});
};
})(jQuery);
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.