id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
octoblu/meshblu:integration/socketIO-spec.coffee:3:completion
completion
describe 'when called with an invalid request', -> beforeEach (done) -> @meshblu.identity uuid: 'invalid-uuid', token: 'invalid-token', (error) => return done new Error('expected identity to raise an error') unless error? @eventForwarder.once 'message', (@message) => done(...
it 'should send a "identity-error" message', -> expect(@message.topic).to.deep.equal 'identity-error' expect(@message.payload).to.deep.equal { error: "Device not found" request: uuid: 'invalid-uuid' }
CoffeeScript
CoffeeScript
octoblu/meshblu
integration/socketIO-spec.coffee
MIT
8e4d8c8fd946501539719cb0b4dd234dd3611a14
815
https://github.com/octoblu/meshblu/blob/8e4d8c8fd946501539719cb0b4dd234dd3611a14/integration/socketIO-spec.coffee
88
102
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:raw_corpus
raw_corpus
class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run] ```
var Run; Run = class Run { constructor($log, $httpBackend) { this.$log = $log; this.$httpBackend = $httpBackend; this.$httpBackend.whenJSONP(/api.github.com/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Run; Run = class Run { constructor($log, $httpBackend) { this.$log = $log; this.$httpBackend = $httpBackend; this.$httpBackend.whenJSONP(/api.github.com/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]); ```
class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:completion
completion
class Run constructor: (@$log, @$httpBackend) ->
@$httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:raw_corpus
raw_corpus
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Run constructor: ($log, $httpBackend) -> $httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run] ```
var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenJSONP(/api.github.com/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenJSONP(/api.github.com/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]); ```
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/gitHubBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/gitHubBackend.coffee:1:completion
completion
class Run constructor: ($log, $httpBackend) ->
$httpBackend.whenJSONP(/api.github.com/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/gitHubBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/gitHubBackend.coffee
1
5
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../commands/Iterator') Condition: require('../commands/Condition') Unit: require('../commands/Unit') Properties: require('../properties/Dimensions') Abstract::Remove = Command.extend { signature: false extras: 1 }...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../commands/Iterator') Condition: require('../commands/Condition') Unit: require('../commands/Unit') Properties: require('../properties/Dimensions') Abstract::Remove = Command.extend { signature: false extras: 1 }...
extras: 2 execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstract::Default.extend condition: (engine, operation) -> if parent = operation.parent if parent.command instanceof Abstract::Defa...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain if engine.update(wrapp...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain if engine.update(wrapp...
# Array of commands, stops command propagation Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undef...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher return prop.call(engine, object, continuation) if !prefix && engine.intrinsic?.check(engine.scope, property) prefix = engine.scope return ['ge...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher return prop.call(engine, object, continuation) if !prefix && engine.intrinsic?.check(engine.scope, property) prefix = engine.scope return ['ge...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
# Register assignment within parent rule # by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
158
181
gss/engine:src/domains/Abstract.coffee:4:completion
completion
# Register assignment within parent rule # by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent ...
if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || s...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/domains/Abstract.coffee
158
181
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper,...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
dd16ea9387358f279a6c6c2a602f44874e2d0e6f
2,854
https://github.com/gss/engine/blob/dd16ea9387358f279a6c6c2a602f44874e2d0e6f/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper,...
# Array of commands, stops command propagation Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undef...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
dd16ea9387358f279a6c6c2a602f44874e2d0e6f
2,854
https://github.com/gss/engine/blob/dd16ea9387358f279a6c6c2a602f44874e2d0e6f/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic'...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic'...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remo...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Propert...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstract::Default.extend condition: (engine, operation) -> if parent = operation.parent if parent.command instanceof Abstract::Default r...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return ...
Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undefined object = engine.Query::getScope(engi...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
# by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.assignmen...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
158
180
gss/engine:src/domains/Abstract.coffee:4:completion
completion
# by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.assignmen...
if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || s...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/domains/Abstract.coffee
158
180
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e082e786df4007fe704faaf2e5f2858dd143eb30
2,854
https://github.com/gss/engine/blob/e082e786df4007fe704faaf2e5f2858dd143eb30/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e082e786df4007fe704faaf2e5f2858dd143eb30
2,854
https://github.com/gss/engine/blob/e082e786df4007fe704faaf2e5f2858dd143eb30/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
67d1acbf9414a019aa82b9ddddca3ce397fe3b1c
2,854
https://github.com/gss/engine/blob/67d1acbf9414a019aa82b9ddddca3ce397fe3b1c/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
67d1acbf9414a019aa82b9ddddca3ce397fe3b1c
2,854
https://github.com/gss/engine/blob/67d1acbf9414a019aa82b9ddddca3ce397fe3b1c/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.assignments = (parent.assignments || 0) + 1 if rule (rule.properties ||= []).push(operation.index) retu...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
67d1acbf9414a019aa82b9ddddca3ce397fe3b1c
2,854
https://github.com/gss/engine/blob/67d1acbf9414a019aa82b9ddddca3ce397fe3b1c/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:4:completion
completion
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.assignments = (parent.assignments || 0) + 1 if rule (rule.properties ||= []).push(operation.index)
return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
67d1acbf9414a019aa82b9ddddca3ce397fe3b1c
2,854
https://github.com/gss/engine/blob/67d1acbf9414a019aa82b9ddddca3ce397fe3b1c/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] }, ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
3a23d77684e0966b2fb6da5d8be0a49563e86f9e
2,854
https://github.com/gss/engine/blob/3a23d77684e0966b2fb6da5d8be0a49563e86f9e/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:4:completion
completion
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index)
return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
3a23d77684e0966b2fb6da5d8be0a49563e86f9e
2,854
https://github.com/gss/engine/blob/3a23d77684e0966b2fb6da5d8be0a49563e86f9e/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
args.unshift operation[0] wrapper = @produce(meta, args, operation) wrapper.index = operation.index args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return ...
Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undefined object = engine.Query::getScope(engi...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= ...
# Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
(engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(o...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
158
178
gss/engine:src/domains/Abstract.coffee:4:completion
completion
(engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index ||= parent.rules = (parent.rules || 0) + 1 if rule
(rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, ...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
73b405daa3e4f5a1e2b593f64075ec12ba5e0797
2,854
https://github.com/gss/engine/blob/73b405daa3e4f5a1e2b593f64075ec12ba5e0797/src/domains/Abstract.coffee
158
178
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] }, 's...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:4:completion
completion
parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index)
return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/domains/Abstract.coffee
158
177
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> retur...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> retur...
Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undefined object = engine.Query::getScope(engi...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] ...
Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment.Style = Abstract::Ass...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, v...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
158
176
gss/engine:src/domains/Abstract.coffee:4:completion
completion
rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index)
return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a0e18301630c656f25706768087ecc22494324ed
2,854
https://github.com/gss/engine/blob/a0e18301630c656f25706768087ecc22494324ed/src/domains/Abstract.coffee
158
176
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
6a58b41bad01c4f4c7c64e670394ffd607937fc3
2,854
https://github.com/gss/engine/blob/6a58b41bad01c4f4c7c64e670394ffd607937fc3/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remo...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Propert...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
6a58b41bad01c4f4c7c64e670394ffd607937fc3
2,854
https://github.com/gss/engine/blob/6a58b41bad01c4f4c7c64e670394ffd607937fc3/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
6a58b41bad01c4f4c7c64e670394ffd607937fc3
2,854
https://github.com/gss/engine/blob/6a58b41bad01c4f4c7c64e670394ffd607937fc3/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstract::Default.extend condition: (engine, operation) -> if parent = operation.parent if parent.command instanceof Abstract::Default r...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
6a58b41bad01c4f4c7c64e670394ffd607937fc3
2,854
https://github.com/gss/engine/blob/6a58b41bad01c4f4c7c64e670394ffd607937fc3/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remo...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Propert...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstract::Default.extend condition: (engine, operation) -> if parent = operation.parent if parent.command instanceof Abstract::Default r...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -...
var domain; if (domain = typeof this.domain === "function" ? this.domain(engine, operation) : void 0) { wrapper.parent = operation.parent; wrapper.domain || (wrapper.domain = domain); } engine.update(wrapper, void 0, void 0, domain); return; ({ produce: function(meta, args) { return [meta, args]; }, d...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var domain; if (domain = typeof this.domain === "function" ? this.domain(engine, operation) : void 0) { wrapper.parent = operation.parent; wrapper.domain || (wrapper.domain = domain); } engine.update(wrapper, void 0, void 0, domain); return; ({ produce: f...
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undefined object = engine.Query::getScope(engine, scope, continuation) return ['get', engine.getPath(object, property)] # Scoped variable Abstract::...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] # Proxy math that passes basic expressions along Abstract::Variable.Expression = Variable.Expression.extend {}, '+': (left, right) -> ['+', l...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
return prop.call(engine, object, continuation) if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] # Proxy math that passes basic expressions along Abstract::Variable.Expression = Variable.Expression.extend {}, '+': (left, right) -> ['+', l...
[object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment.Style = Abstract::Assignment.extend { signature: [ [object: ['Query', 'Selector']] propert...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
158
172
gss/engine:src/domains/Abstract.coffee:4:completion
completion
parent = parent.parent operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ]
}, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
a904bb74c231874ab97e0f347fc258e885f5908b
2,854
https://github.com/gss/engine/blob/a904bb74c231874ab97e0f347fc258e885f5908b/src/domains/Abstract.coffee
158
172
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remo...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Propert...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Properties: require('../properties/Axioms') Abstract::Remove = Command.extend { signature: false extras: 1 }, remove: (args..., engine)-> for path in args engine...
execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstract::Default.extend condition: (engine, operation) -> if parent = operation.parent if parent.command instanceof Abstract::Default r...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -...
var domain; if (domain = typeof this.domain === "function" ? this.domain(engine, operation) : void 0) { wrapper.parent = operation.parent; wrapper.domain || (wrapper.domain = domain); } engine.update(wrapper, void 0, void 0, domain); return; ({ produce: function(meta, args) { return [meta, args]; }, d...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var domain; if (domain = typeof this.domain === "function" ? this.domain(engine, operation) : void 0) { wrapper.parent = operation.parent; wrapper.domain || (wrapper.domain = domain); } engine.update(wrapper, void 0, void 0, domain); return; ({ produce: f...
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, undefined, undefined, domain return produce: (meta, args)-> return [meta, args] domain: (engine, operation) -> if parent = operation.parent if domain = pare...
], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undefined object = engine.Query::getScope(engine, scope, continuation) return ['get', engine.getPath(object, property)] # Scoped variable Abstract::Variable.Getter = Abstr...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] # Proxy math that passes basic expressions along Abstract::Variable.Expression = Variable.Expression.extend {}, '+': (left, right) -> ['+', left, right] '-': (left, right) -> ['-', left...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
if property.indexOf('intrinsic') > -1 prefix ||= engine.scope return ['get', engine.getPath(prefix, property)] # Proxy math that passes basic expressions along Abstract::Variable.Expression = Variable.Expression.extend {}, '+': (left, right) -> ['+', left, right] '-': (left, right) -> ['-', left...
property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment Abstract::Assignment.Style = Abstract::Assignment.extend { signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Any'] ...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, contin...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
158
171
gss/engine:src/domains/Abstract.coffee:4:completion
completion
operation.index = parent.rules = (parent.rules || 0) + 1 if rule (rule.properties ||= []).push(operation.index) return ] },
'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || scope, property, value return
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e47c61ca179cab2fc4b683238680833c26ae676c
2,854
https://github.com/gss/engine/blob/e47c61ca179cab2fc4b683238680833c26ae676c/src/domains/Abstract.coffee
158
171
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) @Query::branch(@) ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::co...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Query =...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) @Query::branch(@) ...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) @Query::branch(@) ...
for path in args engine.triggerEvent('remove', path) return true # Catch-all class for unknown commands Abstract::Default = Command.Default.extend extras: 2 execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
meta = key: @delimit(continuation) if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= ...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
meta = key: @delimit(continuation) if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= ...
Abstract::Default::advices = [Top] # Array of commands, stops command propagation Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope =...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
'get': (object, property, engine, operation, continuation, scope) -> if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return pr...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:3:completion
completion
'get': (object, property, engine, operation, continuation, scope) -> if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return pr...
['*', left, right] # Constant definition Abstract::Assignment = Command.extend { type: 'Assignment' signature: [ [object: ['Query', 'Selector']] property: ['String'] value: ['Variable'] ] }, '=': (object, name, value, engine) -> engine.assumed.set(object, name, value) # Style assignment...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
108
157
gss/engine:src/domains/Abstract.coffee:4:raw_corpus
raw_corpus
# by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (pa...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
158
180
gss/engine:src/domains/Abstract.coffee:4:completion
completion
# by its auto-incremented property local to operation list advices: [ (engine, operation, command) -> parent = operation rule = undefined while parent.parent if !rule && parent[0] == 'rule' rule = parent parent = parent.parent operation.index = parent.rules = (pa...
if rule (rule.properties ||= []).push(operation.index) return ] }, 'set': (object, property, value, engine, operation, continuation, scope) -> if engine.intrinsic engine.intrinsic.restyle object || scope, property, value, continuation, operation else engine.assumed.set object || s...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
9e3102641c6621717be84eb731c946d345ba76d7
2,854
https://github.com/gss/engine/blob/9e3102641c6621717be84eb731c946d345ba76d7/src/domains/Abstract.coffee
158
180
gss/engine:src/domains/Abstract.coffee:1:raw_corpus
raw_corpus
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) switch: -> @Qu...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::co...
var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition = require('../Condition'); Abstract.prototype.Query =...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Abstract, Top, splice = [].splice; Abstract = (function() { class Abstract extends Domain {}; Abstract.prototype.url = void 0; Abstract.prototype.helps = true; Abstract.prototype.Iterator = require('../Iterator'); Abstract.prototype.Condition =...
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) switch: -> @Qu...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:1:completion
completion
class Abstract extends Domain url: undefined helps: true Iterator: require('../Iterator') Condition: require('../Condition') Query: require('../Query') Properties: require('../properties/Axioms') events: precommit: -> @Query::commit(@) @Query::repair(@) switch: -> @Qu...
engine.triggerEvent('remove', path) return true # Catch-all class for unknown commands Abstract::Default = Command.Default.extend extras: 2 execute: (args..., engine, operation) -> args.unshift operation[0] return args # Topmost unknown command returns processed operation back to engine Top = Abstra...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
8
57
gss/engine:src/domains/Abstract.coffee:2:raw_corpus
raw_corpus
if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, unde...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent w...
var domain, wrapper; if (scope !== engine.scope) { meta.scope = engine.identify(scope); } args.unshift(operation[0]); wrapper = this.produce(meta, args, operation); args.parent = wrapper; if (domain = typeof this.domain === "function" ? this.domain(engine, operation) : void 0) { wrapper.parent = operation.pare...
CoffeeScript
JavaScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var domain, wrapper; if (scope !== engine.scope) { meta.scope = engine.identify(scope); } args.unshift(operation[0]); wrapper = this.produce(meta, args, operation); args.parent = wrapper; if (domain = typeof this.domain === "function" ? this.domain(engine, o...
if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, unde...
JavaScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:2:completion
completion
if scope != engine.scope meta.scope = engine.identify(scope) args.unshift operation[0] wrapper = @produce(meta, args, operation) args.parent = wrapper if domain = @domain?(engine, operation) wrapper.parent = operation.parent wrapper.domain ||= domain engine.update wrapper, unde...
# Array of commands, stops command propagation Abstract::List = Command.List # Global variable Abstract::Variable = Variable.extend { signature: [ property: ['String'] ], }, 'get': (property, engine, operation, continuation, scope) -> if engine.queries if scope == engine.scope scope = undef...
CoffeeScript
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
58
107
gss/engine:src/domains/Abstract.coffee:3:raw_corpus
raw_corpus
if engine.queries prefix = engine.Query::getScope(engine, object, continuation) if prop = engine.properties[property] unless prop.matcher if (object ||= scope).nodeType == 9 object = object.body return prop.call(engine, object, continuation) if property.indexOf('intrinsic'...
CoffeeScript
gss/engine
src/domains/Abstract.coffee
MIT
e8c1d894162b4cbf37214e6e39e1d61799a06d84
2,854
https://github.com/gss/engine/blob/e8c1d894162b4cbf37214e6e39e1d61799a06d84/src/domains/Abstract.coffee
108
157