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
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(["--require", path.join(libPath, "support")]) .concat(execOptions) .flatten() .compact() .tap( (arr) -> arr.splice(...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
93e07af7d173161d03a03647a3d112c2ad12c684
523
https://github.com/mojotech/pioneer/blob/93e07af7d173161d03a03647a3d112c2ad12c684/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(["--require", path.join(libPath, "support")]) .concat(execOptions) .flatten() .compact() .tap( (arr) -> arr.splice(...
if name is 'require' obj[name] = Array::concat(obj[name]).concat(config[name]) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() .value() if(!@hasFeature(options)) if(fs.existsSync(path.join(process.cwd(), '/features'))) ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
93e07af7d173161d03a03647a3d112c2ad12c684
523
https://github.com/mojotech/pioneer/blob/93e07af7d173161d03a03647a3d112c2ad12c684/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, nul...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
da2d0acac8329b55524dd78107e8b3fd84e93598
523
https://github.com/mojotech/pioneer/blob/da2d0acac8329b55524dd78107e8b3fd84e93598/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, nul...
if name is 'require' obj[name] = Array::concat(obj[name]).concat(config[name]) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() .value() if(!@hasFeature(options)) if(fs.existsSync(path.join(process.cwd(), '/features'))) ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
da2d0acac8329b55524dd78107e8b3fd84e93598
523
https://github.com/mojotech/pioneer/blob/da2d0acac8329b55524dd78107e8b3fd84e93598/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, nul...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
54deabc3ce56a2555f9770704e5e2aea4fc92639
523
https://github.com/mojotech/pioneer/blob/54deabc3ce56a2555f9770704e5e2aea4fc92639/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
val[k].reduce((p, v) -> p.concat("--require", v) , []) else if k? "--#{k}=#{val[k]}" else "" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, nul...
if name is 'require' obj[name] = Array::concat(obj[name]).concat(config[name]) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() .value() if(!@hasFeature(options)) if(fs.existsSync(path.join(process.cwd(), '/features'))) ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
54deabc3ce56a2555f9770704e5e2aea4fc92639
523
https://github.com/mojotech/pioneer/blob/54deabc3ce56a2555f9770704e5e2aea4fc92639/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:3:raw_corpus
raw_corpus
k = _.keys(opt)[0] if(k == 'feature') r = true r isCucumberFormatter: (formatter) -> !!(_.find(CUCUMBER_FORMATTERS, (f) -> f is formatter))
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
54deabc3ce56a2555f9770704e5e2aea4fc92639
523
https://github.com/mojotech/pioneer/blob/54deabc3ce56a2555f9770704e5e2aea4fc92639/src/config_builder.coffee
125
132
mojotech/pioneer:src/config_builder.coffee:3:completion
completion
k = _.keys(opt)[0] if(k == 'feature') r = true
r isCucumberFormatter: (formatter) -> !!(_.find(CUCUMBER_FORMATTERS, (f) -> f is formatter))
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
54deabc3ce56a2555f9770704e5e2aea4fc92639
523
https://github.com/mojotech/pioneer/blob/54deabc3ce56a2555f9770704e5e2aea4fc92639/src/config_builder.coffee
125
132
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
val[k].reduce((p, v) -> p.concat("--require", v) , []) when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .comp...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2
523
https://github.com/mojotech/pioneer/blob/edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
val[k].reduce((p, v) -> p.concat("--require", v) , []) when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .comp...
obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name]) else config[name].map((field)-> obj[name].push(field) ) else if config[name]? obj[name] = config[name...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2
523
https://github.com/mojotech/pioneer/blob/edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:3:raw_corpus
raw_corpus
else @convertToExecOptions(options, libPath) hasFeature: (options) -> r = false _.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r isCucumberFormatter: (formatter) -> !!(_.find(CUCUMBER_FORMATTERS, (f) -> f is formatter))
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2
523
https://github.com/mojotech/pioneer/blob/edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2/src/config_builder.coffee
125
138
mojotech/pioneer:src/config_builder.coffee:3:completion
completion
else @convertToExecOptions(options, libPath) hasFeature: (options) -> r = false _.forEach options, (opt) => k = _.keys(opt)[0]
if(k == 'feature') r = true r isCucumberFormatter: (formatter) -> !!(_.find(CUCUMBER_FORMATTERS, (f) -> f is formatter))
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2
523
https://github.com/mojotech/pioneer/blob/edac57e6944c6a8a654fbdc3a47ef89dcfecb0c2/src/config_builder.coffee
125
138
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
val[k].reduce((p, v) -> p.concat("--require", v) , []) when k is 'scaffold' if(val[k]) scaffold.createScaffold() when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
e761c730deeba71dd414b55f027df384cf9f83a6
523
https://github.com/mojotech/pioneer/blob/e761c730deeba71dd414b55f027df384cf9f83a6/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
val[k].reduce((p, v) -> p.concat("--require", v) , []) when k is 'scaffold' if(val[k]) scaffold.createScaffold() when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}...
.map((name) -> obj = {} if (minimist[name]?) obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name]) else config[name].map((field)-> obj[name].push(field) ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
e761c730deeba71dd414b55f027df384cf9f83a6
523
https://github.com/mojotech/pioneer/blob/e761c730deeba71dd414b55f027df384cf9f83a6/src/config_builder.coffee
75
124
mojotech/pioneer:src/config_builder.coffee:3:raw_corpus
raw_corpus
options.push({feature: minimist["_"]}) @convertToExecOptions(options, libPath) else scaffold.featureNotSpecified() else @convertToExecOptions(options, libPath) hasFeature: (options) -> r = false _.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feat...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
e761c730deeba71dd414b55f027df384cf9f83a6
523
https://github.com/mojotech/pioneer/blob/e761c730deeba71dd414b55f027df384cf9f83a6/src/config_builder.coffee
125
142
mojotech/pioneer:src/config_builder.coffee:3:completion
completion
options.push({feature: minimist["_"]}) @convertToExecOptions(options, libPath) else scaffold.featureNotSpecified() else @convertToExecOptions(options, libPath) hasFeature: (options) -> r = false
_.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r isCucumberFormatter: (formatter) -> !!(_.find(CUCUMBER_FORMATTERS, (f) -> f is formatter))
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
e761c730deeba71dd414b55f027df384cf9f83a6
523
https://github.com/mojotech/pioneer/blob/e761c730deeba71dd414b55f027df384cf9f83a6/src/config_builder.coffee
125
142
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) => k = _.keys(val)[0] switch when k is 'tags' "--#{k}=".concat( (_(Array::concat(val[k])) .flatten() .value()) .join(...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
18
67
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) => k = _.keys(val)[0] switch when k is 'tags' "--#{k}=".concat( (_(Array::concat(val[k])) .flatten() .value()) .join(...
if fs.existsSync(p = path.join(process.cwd(), v)) "--format=#{p}" else "--format=#{path.join(libPath, v)}" when k is 'preventReload' v = val[k] switch when typeof(v) is "string" if(v == "true") pr...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
18
67
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
, []) when k is 'scaffold' if(val[k]) scaffold.createScaffold() when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) ...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
68
117
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
, []) when k is 'scaffold' if(val[k]) scaffold.createScaffold() when typeof(val[k]) is 'object' for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) ...
if (minimist[name]?) obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name]) else config[name].map((field)-> obj[name].push(field) ) else if config[name]? ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
68
117
mojotech/pioneer:src/config_builder.coffee:3:raw_corpus
raw_corpus
else scaffold.featureNotSpecified() else @convertToExecOptions(options, libPath) hasFeature: (options) -> r = false _.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
118
130
mojotech/pioneer:src/config_builder.coffee:3:completion
completion
else scaffold.featureNotSpecified() else @convertToExecOptions(options, libPath) hasFeature: (options) ->
r = false _.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5
523
https://github.com/mojotech/pioneer/blob/3ba562d7bd8634908d11b1539ae6a2a2e8e8b7a5/src/config_builder.coffee
118
130
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) => k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
18
67
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) => k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
v = val[k] switch when typeof(v) is "string" if(v == "true") process.argv.push("--prevent-browser-reload") "" else if(val[k]) process.argv.push("--prevent-browser-reload") "" ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
18
67
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = ...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
68
117
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
for v in val[k] "--#{k}=#{v}" else "--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = ...
config[name].map((field)-> obj[name].push(field) ) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() .value() if(!@hasFeature(options)) if(fs.existsSync(path.join(process.cwd(), '/features'))) @conve...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
68
117
mojotech/pioneer:src/config_builder.coffee:3:raw_corpus
raw_corpus
_.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
118
123
mojotech/pioneer:src/config_builder.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r ```
_.forEach(options, (opt) => { var k, r; k = _.keys(opt)[0]; if (k === 'feature') { return r = true; } }); r;
CoffeeScript
JavaScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
118
123
mojotech/pioneer:src/config_builder.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript _.forEach(options, (opt) => { var k, r; k = _.keys(opt)[0]; if (k === 'feature') { return r = true; } }); r; ```
_.forEach options, (opt) => k = _.keys(opt)[0] if(k == 'feature') r = true r
JavaScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d4ef6d40be2cc4f9f8b8acef52b0da52ae011414
523
https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/config_builder.coffee
118
123
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
16
65
mojotech/pioneer:src/config_builder.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" whe...
module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; return execOptions = _.map(objArry, function(val) { var i, k, len, p, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver': process.argv.push(`--driver=${val[k]}`); ...
CoffeeScript
JavaScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
16
65
mojotech/pioneer:src/config_builder.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; return execOptions = _.map(objArry, function(val) { var i, k, len, p, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver...
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
JavaScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
16
65
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
v = val[k] switch when typeof(v) is "string" if(v == "true") process.argv.push("--prevent-browser-reload") "" else if(val[k]) process.argv.push("--prevent-browser-reload") "" ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
16
65
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
"--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[n...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
66
98
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
"--#{k}=#{val[k]}" _(execOptions) .concat(["--require", "#{libPath}/support"]) .flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[n...
obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name]) else config[name].map((field)-> obj[name].push(field) ) else if config[name]? obj[name] = config[name...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
d5c00ac7941fb6739a40de39f37eaa9547c7e9e9
523
https://github.com/mojotech/pioneer/blob/d5c00ac7941fb6739a40de39f37eaa9547c7e9e9/src/config_builder.coffee
66
98
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" whe...
module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; execOptions = _.map(objArry, function(val) { var i, k, len, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver': process.argv.push(`--driver=${val[k]}`); r...
CoffeeScript
JavaScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; execOptions = _.map(objArry, function(val) { var i, k, len, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver': ...
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
JavaScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
else if(val[k]) process.argv.push("--prevent-browser-reload") "" when k is 'feature' "#{val[k]}" when k is 'require' val[k].reduce((p, v) -> p.concat("--require", v) , []) when typeof(val...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
.value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[name]?) obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name])...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
63
88
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
.value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[name]?) obj[name] = minimist[name] if name is 'require' if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name])
else config[name].map((field)-> obj[name].push(field) ) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() .value() @convertToExecOptions(options, libPath)
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
22a9f69e4d771b2a77f021b88229a53b7d475488
523
https://github.com/mojotech/pioneer/blob/22a9f69e4d771b2a77f021b88229a53b7d475488/src/config_builder.coffee
63
88
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
7a1131a21aaa66859efeba9a3b5f7dd30f67a616
523
https://github.com/mojotech/pioneer/blob/7a1131a21aaa66859efeba9a3b5f7dd30f67a616/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" whe...
module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; execOptions = _.map(objArry, function(val) { var i, k, len, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver': process.argv.push(`--driver=${val[k]}`); r...
CoffeeScript
JavaScript
mojotech/pioneer
src/config_builder.coffee
MIT
7a1131a21aaa66859efeba9a3b5f7dd30f67a616
523
https://github.com/mojotech/pioneer/blob/7a1131a21aaa66859efeba9a3b5f7dd30f67a616/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; execOptions = _.map(objArry, function(val) { var i, k, len, ref, results, v; k = _.keys(val)[0]; switch (false) { case k !== 'driver': ...
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
JavaScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
7a1131a21aaa66859efeba9a3b5f7dd30f67a616
523
https://github.com/mojotech/pioneer/blob/7a1131a21aaa66859efeba9a3b5f7dd30f67a616/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] switch when k is 'driver' process.argv.push "--driver=#{val[k]}" "" when k is 'coffee' if val[k] "--#{...
else if(val[k]) process.argv.push("--prevent-browser-reload") "" when k is 'feature' "#{val[k]}" when k is 'require' val[k].reduce((p, v) -> p.concat("--require", v) , []) when typeof(val...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
7a1131a21aaa66859efeba9a3b5f7dd30f67a616
523
https://github.com/mojotech/pioneer/blob/7a1131a21aaa66859efeba9a3b5f7dd30f67a616/src/config_builder.coffee
13
62
mojotech/pioneer:src/config_builder.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' CONFIG_NAMES = [ "tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload" ] module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] s...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
1
50
mojotech/pioneer:src/config_builder.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' CONFIG_NAMES = [ "tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload" ] module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.ma...
var CONFIG_NAMES, _; _ = require('lodash'); CONFIG_NAMES = ["tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload"]; module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; execOptions = _.map(objArry, function(val) { var...
CoffeeScript
JavaScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
1
50
mojotech/pioneer:src/config_builder.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CONFIG_NAMES, _; _ = require('lodash'); CONFIG_NAMES = ["tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload"]; module.exports = { convertToExecOptions: function(objArry, libPath) { var execOptions; ...
_ = require 'lodash' CONFIG_NAMES = [ "tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload" ] module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] s...
JavaScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
1
50
mojotech/pioneer:src/config_builder.coffee:1:completion
completion
_ = require 'lodash' CONFIG_NAMES = [ "tags", "feature", "require", "format", "error_formatter", "coffee", "driver", "prevent-browser-reload" ] module.exports = convertToExecOptions: (objArry, libPath) -> execOptions = _.map objArry, (val) -> k = _.keys(val)[0] s...
"--#{k}" else "" when k is 'prevent-browser-reload' process.argv.push("--prevent-browser-reload") "" when k is 'feature' "#{val[k]}" when k is 'require' val[k].reduce((p, v) -> p.concat("--require", ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
1
50
mojotech/pioneer:src/config_builder.coffee:2:raw_corpus
raw_corpus
.flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[name]?) obj[name] = minimist[name] if name is 'require' if(typeof(o...
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
51
79
mojotech/pioneer:src/config_builder.coffee:2:completion
completion
.flatten() .compact() .tap( (arr) -> arr.splice(0, 0, null, null)) .value() generateOptions: (minimist, config, libPath) -> options = _(CONFIG_NAMES) .map((name) -> obj = {} if (minimist[name]?) obj[name] = minimist[name] if name is 'require'
if(typeof(obj[name]) == 'string') obj[name] = [obj[name]].concat(config[name]) else config[name].map((field)-> obj[name].push(field) ) else if config[name]? obj[name] = config[name] if obj[name]? then obj else null ) .compact() ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/config_builder.coffee
MIT
25b0a95fd9bca3043c24baf3ce8ec4a701df1a48
523
https://github.com/mojotech/pioneer/blob/25b0a95fd9bca3043c24baf3ce8ec4a701df1a48/src/config_builder.coffee
51
79
Glavin001/atom-beautify:src/beautifiers/black.coffee:1:raw_corpus
raw_corpus
### Requires [black](https://github.com/ambv/black) ### "use strict" Beautifier = require('./beautifier') path = require('path') module.exports = class Black extends Beautifier name: "black" link: "https://github.com/ambv/black" executables: [ { name: "black" cmd: "black" homepage: "https:/...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/black.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/black.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/black.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires [black](https://github.com/ambv/black) ### "use strict" Beautifier = require('./beautifier') path = require('path') module.exports = class Black extends Beautifier name: "black" link: "https://github.com/ambv/black" executables: [ { ...
/* Requires [black](https://github.com/ambv/black) */ "use strict"; var Beautifier, Black, path; Beautifier = require('./beautifier'); path = require('path'); module.exports = Black = (function() { class Black extends Beautifier { beautify(text, language, options, context) { var cwd; cwd = context....
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/black.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/black.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/black.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires [black](https://github.com/ambv/black) */ "use strict"; var Beautifier, Black, path; Beautifier = require('./beautifier'); path = require('path'); module.exports = Black = (function() { class Black extends Beautifier { beautify(text, language, ...
### Requires [black](https://github.com/ambv/black) ### "use strict" Beautifier = require('./beautifier') path = require('path') module.exports = class Black extends Beautifier name: "black" link: "https://github.com/ambv/black" executables: [ { name: "black" cmd: "black" homepage: "https:/...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/black.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/black.coffee
1
39
Glavin001/atom-beautify:src/beautifiers/black.coffee:1:completion
completion
### Requires [black](https://github.com/ambv/black) ### "use strict" Beautifier = require('./beautifier') path = require('path') module.exports = class Black extends Beautifier name: "black" link: "https://github.com/ambv/black" executables: [ { name: "black" cmd: "black" homepage: "https:/...
try text.match(/black, version (\d+\.\d+)/)[1] + "." + text.match(/b(\d+)$/)[1] catch text.match(/black, version (\d+\.\d+)/)[1] + ".0" } } ] options: { Python: false } beautify: (text, language, options, context) -> cwd = context.filePath and path.dirname c...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/black.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/black.coffee
1
39
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'TeamToolbar' mixins: [ mixinRouter, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired user: T.instanceOf(Immutable.Map).isRequired getInitialState: -> drawerStatus: @getDrawerStatus() componentDidMount: -> @subscribe ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'TeamToolbar' mixins: [ mixinRouter, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired user: T.instanceOf(Immutable.Map).isRequired getInitialState: -> drawerStatus: @g...
module.exports = React.createClass({ displayName: 'TeamToolbar', mixins: [mixinRouter, mixinSubscribe, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, user: T.instanceOf(Immutable.Map).isRequired }, getInitialState: function() { return { drawerStatus: this.getDrawerStatus() ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'TeamToolbar', mixins: [mixinRouter, mixinSubscribe, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, user: T.instanceOf(Immutable.Map).isRequired }, getInitialState: function() { r...
module.exports = React.createClass displayName: 'TeamToolbar' mixins: [ mixinRouter, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired user: T.instanceOf(Immutable.Map).isRequired getInitialState: -> drawerStatus: @getDrawerStatus() componentDidMount: -> @subscribe ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:1:completion
completion
module.exports = React.createClass displayName: 'TeamToolbar' mixins: [ mixinRouter, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired user: T.instanceOf(Immutable.Map).isRequired getInitialState: -> drawerStatus: @getDrawerStatus() componentDidMount: -> @subscribe ...
onOpen: (event) -> event.stopPropagation() handlers.router.create(@props._teamId) analytics.startTalk() toggleTeamDirectory: (event) -> event.stopPropagation() if @state.drawerStatus is 'member' settingsActions.closeDrawer() else settingsActions.openDrawer 'member' renderDivide...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:2:raw_corpus
raw_corpus
TeamTools _teamId: @props._teamId router: @props.router @renderDivider() UserCorner _teamId: @props._teamId user: @props.user
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
78
84
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TeamTools _teamId: @props._teamId router: @props.router @renderDivider() UserCorner _teamId: @props._teamId user: @props.user ```
TeamTools({ _teamId: this.props._teamId, router: this.props.router }); this.renderDivider(); UserCorner({ _teamId: this.props._teamId, user: this.props.user });
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
78
84
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript TeamTools({ _teamId: this.props._teamId, router: this.props.router }); this.renderDivider(); UserCorner({ _teamId: this.props._teamId, user: this.props.user }); ```
TeamTools _teamId: @props._teamId router: @props.router @renderDivider() UserCorner _teamId: @props._teamId user: @props.user
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
78
84
jianliaoim/talk-os:talk-web/client/app/team-toolbar.coffee:2:completion
completion
TeamTools _teamId: @props._teamId router: @props.router
@renderDivider() UserCorner _teamId: @props._teamId user: @props.user
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-toolbar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-toolbar.coffee
78
84
soyjavi/QuoJS:source/quo.environment.coffee:1:raw_corpus
raw_corpus
### ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ ipho...
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d...
/* ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { var IS_WEBKIT, SUPPORTED_OS, _current; _current = null; IS_WEBKIT = /WebKit\/([\d.]+)/; SUPPORTED_OS = { Android: /(Android)\s+([\d.]+)/, ipad: /(iPa...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { var IS_WEBKIT, SUPPORTED_OS, _current; _current = null; IS_WEBKIT = /WebKit\/([\d.]+)/; SUPPORTED_OS =...
### ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ ipho...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:completion
completion
### ENVIRONMENT Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ ipho...
### Remove attribute to a given instance element @method isMobile @return {boolean} True if it's mobile, False if not. ### $$.isMobile = -> @environment() _current.isMobile ### Remove attribute to a given instance element @method environment @return {object} Environment attributes ### $$...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:2:raw_corpus
raw_corpus
# --------------------------------------------------------------------------- # Private Methods # --------------------------------------------------------------------------- _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_...
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
51
70
soyjavi/QuoJS:source/quo.environment.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # --------------------------------------------------------------------------- # Private Methods # --------------------------------------------------------------------------- _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if we...
// --------------------------------------------------------------------------- // Private Methods // --------------------------------------------------------------------------- var _detectBrowser, _detectOS, _detectScreen; _detectBrowser = function(user_agent) { var webkit; webkit = user_agent.match(IS_WEBKIT); ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
51
70
soyjavi/QuoJS:source/quo.environment.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // --------------------------------------------------------------------------- // Private Methods // --------------------------------------------------------------------------- var _detectBrowser, _detectOS, _detectScreen; _detectBrowser = function(user_agent) { ...
# --------------------------------------------------------------------------- # Private Methods # --------------------------------------------------------------------------- _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
51
70
soyjavi/QuoJS:source/quo.environment.coffee:2:completion
completion
# --------------------------------------------------------------------------- # Private Methods # --------------------------------------------------------------------------- _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_...
if supported detected_os = name : if os in ["iphone", "ipad", "ipod"] then "ios" else os version : supported[2].replace("_", ".") break detected_os _detectScreen = -> width: window.innerWidth height: window.innerHeight
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.environment.coffee
51
70
soyjavi/QuoJS:source/quo.environment.coffee:1:raw_corpus
raw_corpus
### Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ iphone ...
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ...
/* Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { var IS_WEBKIT, SUPPORTED_OS, _current; _current = null; IS_WEBKIT = /WebKit\/([\d.]+)/; SUPPORTED_OS = { Android: /(Android)\s+([\d.]+)/, ipad: /(iPad).*OS...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; (function($$) { var IS_WEBKIT, SUPPORTED_OS, _current; _current = null; IS_WEBKIT = /WebKit\/([\d.]+)/; SUPPORTED_OS = { ...
### Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ iphone ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:1:completion
completion
### Basic Quo Module @namespace Quo @class Environment @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" do ($$ = Quo) -> _current = null IS_WEBKIT = /WebKit\/([\d.]+)/ SUPPORTED_OS = Android : /(Android)\s+([\d.]+)/ ipad : /(iPad).*OS\s([\d_]+)/ iphone ...
### Remove attribute to a given instance element @method isMobile @return {boolean} True if it's mobile, False if not. ### $$.isMobile = -> @environment() _current.isMobile ### Remove attribute to a given instance element @method environment @return {object} Environment attributes ### $$...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.environment.coffee
1
50
soyjavi/QuoJS:source/quo.environment.coffee:2:raw_corpus
raw_corpus
# Private Methods _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_agent) -> for os of SUPPORTED_OS supported = user_agent.match SUPPORTED_OS[os] if supported detected_os = name : if os in [...
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
d09ff2755b67d95874acc44e1afc7e778770ac0f
2,055
https://github.com/soyjavi/QuoJS/blob/d09ff2755b67d95874acc44e1afc7e778770ac0f/source/quo.environment.coffee
51
69
soyjavi/QuoJS:source/quo.environment.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Private Methods _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_agent) -> for os of SUPPORTED_OS supported = user_agent.match SUPPORTED_OS[os] if suppo...
// Private Methods var _detectBrowser, _detectOS, _detectScreen; _detectBrowser = function(user_agent) { var webkit; webkit = user_agent.match(IS_WEBKIT); if (webkit) { return webkit[0]; } else { return user_agent; } }; _detectOS = function(user_agent) { var detected_os, os, supported; for (os i...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
d09ff2755b67d95874acc44e1afc7e778770ac0f
2,055
https://github.com/soyjavi/QuoJS/blob/d09ff2755b67d95874acc44e1afc7e778770ac0f/source/quo.environment.coffee
51
69
soyjavi/QuoJS:source/quo.environment.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Private Methods var _detectBrowser, _detectOS, _detectScreen; _detectBrowser = function(user_agent) { var webkit; webkit = user_agent.match(IS_WEBKIT); if (webkit) { return webkit[0]; } else { return user_agent; } }; _detectOS = function(user...
# Private Methods _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_agent) -> for os of SUPPORTED_OS supported = user_agent.match SUPPORTED_OS[os] if supported detected_os = name : if os in [...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
d09ff2755b67d95874acc44e1afc7e778770ac0f
2,055
https://github.com/soyjavi/QuoJS/blob/d09ff2755b67d95874acc44e1afc7e778770ac0f/source/quo.environment.coffee
51
69
soyjavi/QuoJS:source/quo.environment.coffee:2:completion
completion
# Private Methods _detectBrowser = (user_agent) -> webkit = user_agent.match(IS_WEBKIT) if webkit then webkit[0] else user_agent _detectOS = (user_agent) -> for os of SUPPORTED_OS supported = user_agent.match SUPPORTED_OS[os] if supported
detected_os = name : if os in ["iphone", "ipad", "ipod"] then "ios" else os version : supported[2].replace("_", ".") break detected_os _detectScreen = -> width: window.innerWidth height: window.innerHeight
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.environment.coffee
MIT
d09ff2755b67d95874acc44e1afc7e778770ac0f
2,055
https://github.com/soyjavi/QuoJS/blob/d09ff2755b67d95874acc44e1afc7e778770ac0f/source/quo.environment.coffee
51
69
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:raw_corpus
raw_corpus
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh()) if maybe...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCach...
var JspmCache, _, jspmCache, jspmRequire, npmRequire; _ = require("underscore"); JspmCache = require("../Util/JspmCache"); jspmCache = new JspmCache(); module.exports.jspmRequire = jspmRequire = function(jspmModuleName) { var maybeModule; // This means, get the module, or if it's not available yet, set up a cal...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var JspmCache, _, jspmCache, jspmRequire, npmRequire; _ = require("underscore"); JspmCache = require("../Util/JspmCache"); jspmCache = new JspmCache(); module.exports.jspmRequire = jspmRequire = function(jspmModuleName) { var maybeModule; // This means, get...
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh()) if maybe...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:completion
completion
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh())
if maybeModule == JspmCache.IS_LOADING throw Error("Module #{jspmModuleName} is still loading") if _.isError(maybeModule) throw maybeModule return maybeModule module.exports.npmRequire = npmRequire = (npmModuleName) -> jspmRequire(npmModuleName)
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:raw_corpus
raw_corpus
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh()) if maybe...
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
8b9ed71c1b47ca097d25583390502a966c9ed8ba
1,052
https://github.com/cdglabs/apparatus/blob/8b9ed71c1b47ca097d25583390502a966c9ed8ba/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCach...
var JspmCache, _, jspmCache, jspmRequire, npmRequire; _ = require("underscore"); JspmCache = require("../Util/JspmCache"); jspmCache = new JspmCache(); module.exports.jspmRequire = jspmRequire = function(jspmModuleName) { var maybeModule; // This means, get the module, or if it's not available yet, set up a cal...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
8b9ed71c1b47ca097d25583390502a966c9ed8ba
1,052
https://github.com/cdglabs/apparatus/blob/8b9ed71c1b47ca097d25583390502a966c9ed8ba/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var JspmCache, _, jspmCache, jspmRequire, npmRequire; _ = require("underscore"); JspmCache = require("../Util/JspmCache"); jspmCache = new JspmCache(); module.exports.jspmRequire = jspmRequire = function(jspmModuleName) { var maybeModule; // This means, get...
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh()) if maybe...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
8b9ed71c1b47ca097d25583390502a966c9ed8ba
1,052
https://github.com/cdglabs/apparatus/blob/8b9ed71c1b47ca097d25583390502a966c9ed8ba/src/Evaluator/evaluateJspmRequire.coffee
1
21
cdglabs/apparatus:src/Evaluator/evaluateJspmRequire.coffee:1:completion
completion
_ = require "underscore" JspmCache = require "../Util/JspmCache" jspmCache = new JspmCache() module.exports.jspmRequire = jspmRequire = (jspmModuleName) -> # This means, get the module, or if it's not available yet, set up a callback maybeModule = jspmCache.get(jspmModuleName, -> Apparatus.refresh())
if maybeModule == JspmCache.IS_LOADING throw Error("Module #{jspmModuleName} is still loading") if _.isError(maybeModule) throw maybeModule return maybeModule module.exports.npmRequire = npmRequire = (npmModuleName) -> jspmRequire("npm:" + npmModuleName)
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Evaluator/evaluateJspmRequire.coffee
MIT
8b9ed71c1b47ca097d25583390502a966c9ed8ba
1,052
https://github.com/cdglabs/apparatus/blob/8b9ed71c1b47ca097d25583390502a966c9ed8ba/src/Evaluator/evaluateJspmRequire.coffee
1
21
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:1:raw_corpus
raw_corpus
module.exports = onMessageClick: (message) -> target = message.get '_targetId' if not target? notifyActions.error lang.getText 'null-target-message' return type = message.get 'type' if type is 'dms' then type = 'chat' team = message.get '_teamId' searchQuery = search: messa...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = onMessageClick: (message) -> target = message.get '_targetId' if not target? notifyActions.error lang.getText 'null-target-message' return type = message.get 'type' if type is 'dms' then type = 'chat' team = me...
module.exports = { onMessageClick: function(message) { var searchQuery, target, team, type; target = message.get('_targetId'); if (target == null) { notifyActions.error(lang.getText('null-target-message')); return; } type = message.get('type'); if (type === 'dms') { type = 'c...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { onMessageClick: function(message) { var searchQuery, target, team, type; target = message.get('_targetId'); if (target == null) { notifyActions.error(lang.getText('null-target-message')); return; } type = message...
module.exports = onMessageClick: (message) -> target = message.get '_targetId' if not target? notifyActions.error lang.getText 'null-target-message' return type = message.get 'type' if type is 'dms' then type = 'chat' team = message.get '_teamId' searchQuery = search: messa...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:1:completion
completion
module.exports = onMessageClick: (message) -> target = message.get '_targetId' if not target? notifyActions.error lang.getText 'null-target-message' return type = message.get 'type' if type is 'dms' then type = 'chat' team = message.get '_teamId' searchQuery = search: messa...
newState = _roomId: _roomId _storyId: undefined page: 1 resultsEnd: false isDirectMessage: isDirectMessage @clearResults() @setState newState, @sendSearchRequest onQueryChange: (query) -> @setState query: query onQueryConfirm: (query) -> newState = page: 1 ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:2:raw_corpus
raw_corpus
deviceActions.viewAttachment null onScroll: (eventInfo) -> if eventInfo.atBottom and eventInfo.goingDown @sendSearchRequest() renderFilterContact: -> FilterContact _teamId: @props._teamId onChange: @onCreatorChange _creatorId: @state._creatorId renderFilterTopic: -> FilterTo...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
74
123
jianliaoim/talk-os:talk-web/client/mixin/finder-mixin.coffee:2:completion
completion
deviceActions.viewAttachment null onScroll: (eventInfo) -> if eventInfo.atBottom and eventInfo.goingDown @sendSearchRequest() renderFilterContact: -> FilterContact _teamId: @props._teamId onChange: @onCreatorChange _creatorId: @state._creatorId renderFilterTopic: -> FilterTo...
autoFocus: false onConfirm: @onQueryConfirm renderHint: (message) -> switch message.get 'type' when 'dms' then @renderChatHint message when 'room' then @renderRoomHint message when 'story' then @renderStoryHint message renderChatHint: (message) -> div className: 'group', Cont...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/finder-mixin.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/finder-mixin.coffee
74
123
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:raw_corpus
raw_corpus
_ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInObjects = [] for own name, object of _builtIn() if _...
CoffeeScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/SerializerWithBuiltIns.coffee
1
30
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInO...
var Dataflow, Model, SerializerWithBuiltIns, Storage, Util, _, _builtIn, hasProp = {}.hasOwnProperty; _ = require("underscore"); Dataflow = require("../Dataflow/Dataflow"); Model = require("./Model"); Util = require("../Util/Util"); Storage = require("../Storage/Storage"); module.exports = SerializerWithBuiltIn...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/SerializerWithBuiltIns.coffee
1
30
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow, Model, SerializerWithBuiltIns, Storage, Util, _, _builtIn, hasProp = {}.hasOwnProperty; _ = require("underscore"); Dataflow = require("../Dataflow/Dataflow"); Model = require("./Model"); Util = require("../Util/Util"); Storage = require("../Sto...
_ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInObjects = [] for own name, object of _builtIn() if _...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/SerializerWithBuiltIns.coffee
1
30
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:completion
completion
_ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInObjects = [] for own name, object of _builtIn() if _...
Util.assignId(object, name) builtInObjects.push(object) return new Storage.Serializer(builtInObjects) # builtIn returns all of the built in classes and objects that are used as # the "anchors" for serialization and deserialization. That is, all of the # objects and classes which should not themselves be serializ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/SerializerWithBuiltIns.coffee
1
30
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:raw_corpus
raw_corpus
_ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInObjects = [] for own name, object of _builtIn() if _...
CoffeeScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
666399f42bd64a6c01357fe7e536fb0e8b85d874
1,052
https://github.com/cdglabs/apparatus/blob/666399f42bd64a6c01357fe7e536fb0e8b85d874/src/Model/SerializerWithBuiltIns.coffee
1
29
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInO...
var Dataflow, Model, SerializerWithBuiltIns, Storage, Util, _, _builtIn, hasProp = {}.hasOwnProperty; _ = require("underscore"); Dataflow = require("../Dataflow/Dataflow"); Model = require("./Model"); Util = require("../Util/Util"); Storage = require("../Storage/Storage"); module.exports = SerializerWithBuiltIn...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
666399f42bd64a6c01357fe7e536fb0e8b85d874
1,052
https://github.com/cdglabs/apparatus/blob/666399f42bd64a6c01357fe7e536fb0e8b85d874/src/Model/SerializerWithBuiltIns.coffee
1
29
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow, Model, SerializerWithBuiltIns, Storage, Util, _, _builtIn, hasProp = {}.hasOwnProperty; _ = require("underscore"); Dataflow = require("../Dataflow/Dataflow"); Model = require("./Model"); Util = require("../Util/Util"); Storage = require("../Sto...
_ = require "underscore" Dataflow = require "../Dataflow/Dataflow" Model = require "./Model" Util = require "../Util/Util" Storage = require "../Storage/Storage" module.exports = SerializerWithBuiltIns = {} SerializerWithBuiltIns.getSerializer = -> builtInObjects = [] for own name, object of _builtIn() if _...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/SerializerWithBuiltIns.coffee
MIT
666399f42bd64a6c01357fe7e536fb0e8b85d874
1,052
https://github.com/cdglabs/apparatus/blob/666399f42bd64a6c01357fe7e536fb0e8b85d874/src/Model/SerializerWithBuiltIns.coffee
1
29