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
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:10:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var generateS2; generateS2 = function(messageFormat, clientsig, callback) { var challengeKey, challengeKeyOffset, hash, key, keyOffset; if (messageFormat === 1) { challengeKeyOffset = GetClientGenuineConstDigestOffset(clientsig.slice(8, 12)); } else { ...
generateS2 = (messageFormat, clientsig, callback) -> if messageFormat is 1 challengeKeyOffset = GetClientGenuineConstDigestOffset clientsig[8..11] else challengeKeyOffset = GetServerGenuineConstDigestOffset clientsig[772..775] challengeKey = clientsig[challengeKeyOffset..challengeKeyOffset+31] if messa...
JavaScript
CoffeeScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
105
125
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:10:completion
completion
generateS2 = (messageFormat, clientsig, callback) -> if messageFormat is 1 challengeKeyOffset = GetClientGenuineConstDigestOffset clientsig[8..11] else challengeKeyOffset = GetServerGenuineConstDigestOffset clientsig[772..775] challengeKey = clientsig[challengeKeyOffset..challengeKeyOffset+31] if messa...
keyOffset = GetServerDHOffset clientsig[768..771] key = clientsig[keyOffset...keyOffset+KEY_LENGTH] hash = calcHmac challengeKey, GenuineFMSConstCrud crypto.pseudoRandomBytes RTMP_SIG_SIZE - 32, (err, randomBytes) -> signature = calcHmac randomBytes, hash s2Bytes = Buffer.concat [ randomBytes, sign...
CoffeeScript
CoffeeScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
105
125
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:11:raw_corpus
raw_corpus
generateS0S1S2 = (clientsig, callback) -> clientType = clientsig[0] console.log "client type: #{clientType}" clientsig = clientsig[1..] dh = DHKeyGenerate KEY_LENGTH * 8 messageFormat = detectClientMessageFormat clientsig if messageFormat is -1 console.warn "[rtmp:handshake] warning: unknown message f...
CoffeeScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
127
146
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:11:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript generateS0S1S2 = (clientsig, callback) -> clientType = clientsig[0] console.log "client type: #{clientType}" clientsig = clientsig[1..] dh = DHKeyGenerate KEY_LENGTH * 8 messageFormat = detectClientMessageFormat clientsig if messageFormat is -1 ...
var generateS0S1S2; generateS0S1S2 = function(clientsig, callback) { var clientType, dh, messageFormat; clientType = clientsig[0]; console.log(`client type: ${clientType}`); clientsig = clientsig.slice(1); dh = DHKeyGenerate(KEY_LENGTH * 8); messageFormat = detectClientMessageFormat(clientsig); if (messa...
CoffeeScript
JavaScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
127
146
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:11:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var generateS0S1S2; generateS0S1S2 = function(clientsig, callback) { var clientType, dh, messageFormat; clientType = clientsig[0]; console.log(`client type: ${clientType}`); clientsig = clientsig.slice(1); dh = DHKeyGenerate(KEY_LENGTH * 8); messageFor...
generateS0S1S2 = (clientsig, callback) -> clientType = clientsig[0] console.log "client type: #{clientType}" clientsig = clientsig[1..] dh = DHKeyGenerate KEY_LENGTH * 8 messageFormat = detectClientMessageFormat clientsig if messageFormat is -1 console.warn "[rtmp:handshake] warning: unknown message f...
JavaScript
CoffeeScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
127
146
iizukanao/node-rtsp-rtmp-server:rtmp_handshake.coffee:11:completion
completion
generateS0S1S2 = (clientsig, callback) -> clientType = clientsig[0] console.log "client type: #{clientType}" clientsig = clientsig[1..] dh = DHKeyGenerate KEY_LENGTH * 8 messageFormat = detectClientMessageFormat clientsig if messageFormat is -1 console.warn "[rtmp:handshake] warning: unknown message f...
messageFormat = 1 generateS1 messageFormat, dh, (err, s1Bytes) -> generateS2 messageFormat, clientsig, (err, s2Bytes, keys) -> allBytes = Buffer.concat [ new Buffer([ clientType ]), # version s1Bytes, s2Bytes ], 3073 keys.dh = dh callback null, allBytes, keys
CoffeeScript
CoffeeScript
iizukanao/node-rtsp-rtmp-server
rtmp_handshake.coffee
MIT
3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5
1,100
https://github.com/iizukanao/node-rtsp-rtmp-server/blob/3c6dc9758cbfa0a1b10aa4f58949a3d4eb8bedf5/rtmp_handshake.coffee
127
146
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:raw_corpus
raw_corpus
###global require### require map: '*': 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angular' 'libs/angular-resource': 'dist/scripts/libs/angular-resource' 'libs/angularMocks': 'test/scripts/lib...
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
b668056a1a0a90e671ebd58d9751366012c83160
672
https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/testacular.coffee
1
21
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global require### require map: '*': 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angular' 'libs/angular-resource': 'dist/scripts/libs/an...
/*global require*/ require({ map: { '*': { 'filters/twitterfy': 'dist/scripts/filters/twitterfy', 'services/personService': 'dist/scripts/services/personService', 'libs/angular': 'dist/scripts/libs/angular', 'libs/angular-resource': 'dist/scripts/libs/angular-resource', 'libs/angular...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
b668056a1a0a90e671ebd58d9751366012c83160
672
https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/testacular.coffee
1
21
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global require*/ require({ map: { '*': { 'filters/twitterfy': 'dist/scripts/filters/twitterfy', 'services/personService': 'dist/scripts/services/personService', 'libs/angular': 'dist/scripts/libs/angular', 'libs/angular-resource': 'd...
###global require### require map: '*': 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angular' 'libs/angular-resource': 'dist/scripts/libs/angular-resource' 'libs/angularMocks': 'test/scripts/lib...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
b668056a1a0a90e671ebd58d9751366012c83160
672
https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/testacular.coffee
1
21
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:completion
completion
###global require### require map: '*': 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angular' 'libs/angular-resource': 'dist/scripts/libs/angular-resource' 'libs/angularMocks': 'test/scripts/lib...
shim: 'dist/scripts/libs/angular-resource': deps: ['dist/scripts/libs/angular'] 'test/scripts/libs/angular-mocks': deps: ['dist/scripts/libs/angular'] 'dist/scripts/services/personService': deps: ['dist/scripts/libs/angular', 'dist/scripts/app', 'dist/scripts/libs/angular-resource'] 'dist/scripts/filters/twitte...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
b668056a1a0a90e671ebd58d9751366012c83160
672
https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/testacular.coffee
1
21
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:raw_corpus
raw_corpus
###global require### require map: '*': 'filters/filters': 'dist/scripts/filters/filters' 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/services': 'dist/scripts/services/services' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angul...
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
0ac8326f0f4b0df011040233572e2d23509c9ddd
672
https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/testacular.coffee
1
31
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global require### require map: '*': 'filters/filters': 'dist/scripts/filters/filters' 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/services': 'dist/scripts/services/services' 'services/personService': 'dist/scripts/services/p...
/*global require*/ require({ map: { '*': { 'filters/filters': 'dist/scripts/filters/filters', 'filters/twitterfy': 'dist/scripts/filters/twitterfy', 'services/services': 'dist/scripts/services/services', 'services/personService': 'dist/scripts/services/personService', 'libs/angular':...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
0ac8326f0f4b0df011040233572e2d23509c9ddd
672
https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/testacular.coffee
1
31
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global require*/ require({ map: { '*': { 'filters/filters': 'dist/scripts/filters/filters', 'filters/twitterfy': 'dist/scripts/filters/twitterfy', 'services/services': 'dist/scripts/services/services', 'services/personService': 'dist...
###global require### require map: '*': 'filters/filters': 'dist/scripts/filters/filters' 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/services': 'dist/scripts/services/services' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angul...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
0ac8326f0f4b0df011040233572e2d23509c9ddd
672
https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/testacular.coffee
1
31
CaryLandholt/AngularFun:test/scripts/testacular.coffee:1:completion
completion
###global require### require map: '*': 'filters/filters': 'dist/scripts/filters/filters' 'filters/twitterfy': 'dist/scripts/filters/twitterfy' 'services/services': 'dist/scripts/services/services' 'services/personService': 'dist/scripts/services/personService' 'libs/angular': 'dist/scripts/libs/angul...
'dist/scripts/libs/angular-resource': deps: [ 'dist/scripts/libs/angular' ] 'test/scripts/libs/angular-mocks': deps: [ 'dist/scripts/libs/angular' ] [ 'test/scripts/services/personSpec' 'test/scripts/filterSpecs/twitterfySpec' ], () -> window.__testacular__.start()
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
test/scripts/testacular.coffee
MIT
0ac8326f0f4b0df011040233572e2d23509c9ddd
672
https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/testacular.coffee
1
31
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/remarkjs/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: tr...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/remarkjs/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true ...
"use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var cleanMarkdown, err, remark; try { rema...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var c...
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/remarkjs/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: tr...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/remarkjs/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: tr...
listItemIndent: true incrementListMarker: true rule: true ruleRepetition: true ruleSpaces: true strong: true emphasis: true position: true } Markdown: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> try remar...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
288c11a5eb5d4c9a225cf5ce75fa1512cdddef50
1,503
https://github.com/Glavin001/atom-beautify/blob/288c11a5eb5d4c9a225cf5ce75fa1512cdddef50/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true ...
"use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var cleanMarkdown, err, remark; try { rema...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
288c11a5eb5d4c9a225cf5ce75fa1512cdddef50
1,503
https://github.com/Glavin001/atom-beautify/blob/288c11a5eb5d4c9a225cf5ce75fa1512cdddef50/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var c...
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
288c11a5eb5d4c9a225cf5ce75fa1512cdddef50
1,503
https://github.com/Glavin001/atom-beautify/blob/288c11a5eb5d4c9a225cf5ce75fa1512cdddef50/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
listItemIndent: true incrementListMarker: true rule: true ruleRepetition: true ruleSpaces: true strong: true emphasis: true position: true } Markdown: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> try remar...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
288c11a5eb5d4c9a225cf5ce75fa1512cdddef50
1,503
https://github.com/Glavin001/atom-beautify/blob/288c11a5eb5d4c9a225cf5ce75fa1512cdddef50/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e
1,503
https://github.com/Glavin001/atom-beautify/blob/0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true ...
"use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var cleanMarkdown, err, remark; try { rema...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e
1,503
https://github.com/Glavin001/atom-beautify/blob/0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Remark; Beautifier = require('./beautifier'); module.exports = Remark = (function() { class Remark extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var c...
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e
1,503
https://github.com/Glavin001/atom-beautify/blob/0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e/src/beautifiers/remark.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/remark.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class Remark extends Beautifier name: "Remark" link: "https://github.com/wooorm/remark" options: { _: { gfm: true yaml: true commonmark: true footnotes: true pedantic: true breaks: true entities: true...
listItemIndent: true incrementListMarker: true rule: true ruleRepetition: true ruleSpaces: true strong: true emphasis: true position: true } Markdown: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> try remar...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/remark.coffee
MIT
0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e
1,503
https://github.com/Glavin001/atom-beautify/blob/0c28d39fe6f0ba78b5f15b6bbaaffa90afa7b11e/src/beautifiers/remark.coffee
1
44
linemanjs/lineman:tasks/dev.coffee:1:raw_corpus
raw_corpus
### Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo ### gatherTasks = require("./../lib/gather-tasks") module.exports = (grunt) -> grunt.registerTask "dev", "runs linemans dev lifecycle tasks", -> grunt.task.run(gatherTasks("dev"))
CoffeeScript
linemanjs/lineman
tasks/dev.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/dev.coffee
1
12
linemanjs/lineman:tasks/dev.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo ### gatherTasks = require("./../lib/gather-tasks") module.exports = (grunt) -> grunt.registerTask "dev", "runs linemans dev lifecycle tasks", -> grunt.ta...
/* Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo */ var gatherTasks; gatherTasks = require("./../lib/gather-tasks"); module.exports = function(grunt) { return grunt.registerTask("dev", "runs linemans dev lifecycle tasks", function() { return grunt.task.run(gat...
CoffeeScript
JavaScript
linemanjs/lineman
tasks/dev.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/dev.coffee
1
12
linemanjs/lineman:tasks/dev.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo */ var gatherTasks; gatherTasks = require("./../lib/gather-tasks"); module.exports = function(grunt) { return grunt.registerTask("dev", "runs linemans dev lifec...
### Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo ### gatherTasks = require("./../lib/gather-tasks") module.exports = (grunt) -> grunt.registerTask "dev", "runs linemans dev lifecycle tasks", -> grunt.task.run(gatherTasks("dev"))
JavaScript
CoffeeScript
linemanjs/lineman
tasks/dev.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/dev.coffee
1
12
linemanjs/lineman:tasks/dev.coffee:1:completion
completion
### Task: dev Description: runs linemans dev lifecycle tasks Dependencies: grunt Contributor: @davemo ###
gatherTasks = require("./../lib/gather-tasks") module.exports = (grunt) -> grunt.registerTask "dev", "runs linemans dev lifecycle tasks", -> grunt.task.run(gatherTasks("dev"))
CoffeeScript
CoffeeScript
linemanjs/lineman
tasks/dev.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/dev.coffee
1
12
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:raw_corpus
raw_corpus
module.exports = enabled: false subscriptions: null pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] key: 'activate-power-mode.plugins' init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = ...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = enabled: false subscriptions: null pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] key: 'activate-power-mode.plugins' init: (configSchema, api) -> @config = configSchema @api = api enable: -> ...
module.exports = { enabled: false, subscriptions: null, pluginSubscriptions: [], plugins: [], corePlugins: [], enabledPlugins: [], key: 'activate-power-mode.plugins', init: function(configSchema, api) { this.config = configSchema; return this.api = api; }, enable: function() { var code, ...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { enabled: false, subscriptions: null, pluginSubscriptions: [], plugins: [], corePlugins: [], enabledPlugins: [], key: 'activate-power-mode.plugins', init: function(configSchema, api) { this.config = configSchema; return thi...
module.exports = enabled: false subscriptions: null pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] key: 'activate-power-mode.plugins' init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = ...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:completion
completion
module.exports = enabled: false subscriptions: null pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] key: 'activate-power-mode.plugins' init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = ...
@initList() disable: -> @enabled = false @subscriptions?.dispose() for code, subs in @pluginSubscriptions subs.dispose() @pluginSubscriptions = [] @pluginList?.dispose() @pluginList = null addCorePlugin: (code, plugin) -> @corePlugins[code] = plugin addPlugin: (code, plugin) -...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:raw_corpus
raw_corpus
if @enabled @unobservePlugin code @removeConfigForPlugin code delete @plugins[code] if @enabledPlugins[code]? @enabledPlugins[code].disable?() delete @enabledPlugins[code] addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', t...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
53
102
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @enabled @unobservePlugin code @removeConfigForPlugin code delete @plugins[code] if @enabledPlugins[code]? @enabledPlugins[code].disable?() delete @enabledPlugins[code] addConfigForPlugin: (code, plugin, key) -> @config....
var base; if (this.enabled) { this.unobservePlugin(code); this.removeConfigForPlugin(code); } delete this.plugins[code]; if (this.enabledPlugins[code] != null) { if (typeof (base = this.enabledPlugins[code]).disable === "function") { base.disable(); } delete this.enabledPlugins[code]; } ({ addConfig...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
53
102
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var base; if (this.enabled) { this.unobservePlugin(code); this.removeConfigForPlugin(code); } delete this.plugins[code]; if (this.enabledPlugins[code] != null) { if (typeof (base = this.enabledPlugins[code]).disable === "function") { base.disable(); ...
if @enabled @unobservePlugin code @removeConfigForPlugin code delete @plugins[code] if @enabledPlugins[code]? @enabledPlugins[code].disable?() delete @enabledPlugins[code] addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', t...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
53
102
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:completion
completion
if @enabled @unobservePlugin code @removeConfigForPlugin code delete @plugins[code] if @enabledPlugins[code]? @enabledPlugins[code].disable?() delete @enabledPlugins[code] addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', t...
if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code] ) unobservePlugin: (code) -> @pluginSubscriptions[code]?.dispose() delete @pluginSubscriptions[code] onEnabled: (callback) -> for cod...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
53
102
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:3:raw_corpus
raw_corpus
@subscriptions.add atom.commands.add "atom-workspace", "activate-power-mode:select-plugin": => @pluginList.toggle()
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
103
106
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @subscriptions.add atom.commands.add "atom-workspace", "activate-power-mode:select-plugin": => @pluginList.toggle() ```
this.subscriptions.add(atom.commands.add("atom-workspace", { "activate-power-mode:select-plugin": () => { return this.pluginList.toggle(); } }));
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
103
106
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.subscriptions.add(atom.commands.add("atom-workspace", { "activate-power-mode:select-plugin": () => { return this.pluginList.toggle(); } })); ```
@subscriptions.add atom.commands.add "atom-workspace", "activate-power-mode:select-plugin": => @pluginList.toggle()
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-registry.coffee
103
106
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:raw_corpus
raw_corpus
module.exports = enabled: false pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @enabled = true for code, plugin of @corePlugins @observePlugin code, plugin, "activate-power-mode.#{cod...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = enabled: false pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @enabled = true for code, plugin of @corePlugins ...
module.exports = { enabled: false, pluginSubscriptions: [], plugins: [], corePlugins: [], enabledPlugins: [], init: function(configSchema, api) { this.config = configSchema; return this.api = api; }, enable: function() { var code, key, plugin, ref, ref1, results; this.enabled = true; ...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { enabled: false, pluginSubscriptions: [], plugins: [], corePlugins: [], enabledPlugins: [], init: function(configSchema, api) { this.config = configSchema; return this.api = api; }, enable: function() { var code, key, p...
module.exports = enabled: false pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @enabled = true for code, plugin of @corePlugins @observePlugin code, plugin, "activate-power-mode.#{cod...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:completion
completion
module.exports = enabled: false pluginSubscriptions: [] plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @enabled = true for code, plugin of @corePlugins @observePlugin code, plugin, "activate-power-mode.#{cod...
subs.dispose() @pluginSubscriptions = [] addCorePlugin: (code, plugin) -> @corePlugins[code] = plugin addPlugin: (code, plugin) -> key = "activate-power-mode.plugins.#{code}" @plugins[code] = plugin if @enabled @addConfigForPlugin code, plugin, key @observePlugin code, plugin, key...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
3
52
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:raw_corpus
raw_corpus
addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', title: plugin.title, description: plugin.description, default: true if atom.config.get(key) == undefined atom.config.set key, @config.plugins.properties[code].default removeConfigForP...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
53
84
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', title: plugin.title, description: plugin.description, default: true if atom.config.get(key) == undefined atom.config.set key, @co...
({ addConfigForPlugin: function(code, plugin, key) { this.config.plugins.properties[code] = { type: 'boolean', title: plugin.title, description: plugin.description, default: true }; if (atom.config.get(key) === void 0) { return atom.config.set(key, this.config.plugins.propert...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
53
84
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ addConfigForPlugin: function(code, plugin, key) { this.config.plugins.properties[code] = { type: 'boolean', title: plugin.title, description: plugin.description, default: true }; if (atom.config.get(key) === void 0) { ...
addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', title: plugin.title, description: plugin.description, default: true if atom.config.get(key) == undefined atom.config.set key, @config.plugins.properties[code].default removeConfigForP...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
53
84
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:completion
completion
addConfigForPlugin: (code, plugin, key) -> @config.plugins.properties[code] = type: 'boolean', title: plugin.title, description: plugin.description, default: true if atom.config.get(key) == undefined atom.config.set key, @config.plugins.properties[code].default removeConfigForP...
key, (isEnabled) => if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code] ) unobservePlugin: (code) -> @pluginSubscriptions[code]?.dispose() delete @pluginSubscriptions[code] onEnable...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4792125942cd771482c5ba6d216f044f660d7d95
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4792125942cd771482c5ba6d216f044f660d7d95/lib/plugin-registry.coffee
53
84
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:raw_corpus
raw_corpus
{CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = true for code, plu...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new C...
var CompositeDisposable; ({CompositeDisposable} = require("atom")); module.exports = { enabled: false, subscriptions: null, plugins: [], corePlugins: [], enabledPlugins: [], init: function(configSchema, api) { this.config = configSchema; return this.api = api; }, enable: function() { var c...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CompositeDisposable; ({CompositeDisposable} = require("atom")); module.exports = { enabled: false, subscriptions: null, plugins: [], corePlugins: [], enabledPlugins: [], init: function(configSchema, api) { this.config = configSchema; retur...
{CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = true for code, plu...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:completion
completion
{CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = true for code, plu...
disable: -> @enabled = false @subscriptions?.dispose() addCorePlugin: (code, plugin) -> @corePlugins[code] = plugin addPlugin: (code, plugin) -> key = "activate-power-mode.plugins.#{code}" @plugins[code] = plugin if @enabled @addConfigForPlugin code, plugin, key @observePlugin...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:raw_corpus
raw_corpus
observePlugin: (code, plugin, key) -> @subscriptions.add atom.config.observe( key, (isEnabled) => if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code] ) onEnabled: (callback) -> f...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
51
64
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript observePlugin: (code, plugin, key) -> @subscriptions.add atom.config.observe( key, (isEnabled) => if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else plugin.disable?() delete @ena...
({ observePlugin: function(code, plugin, key) { return this.subscriptions.add(atom.config.observe(key, (isEnabled) => { if (isEnabled) { if (typeof plugin.enable === "function") { plugin.enable(this.api); } return this.enabledPlugins[code] = plugin; } else { i...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
51
64
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ observePlugin: function(code, plugin, key) { return this.subscriptions.add(atom.config.observe(key, (isEnabled) => { if (isEnabled) { if (typeof plugin.enable === "function") { plugin.enable(this.api); } return this....
observePlugin: (code, plugin, key) -> @subscriptions.add atom.config.observe( key, (isEnabled) => if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code] ) onEnabled: (callback) -> f...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
51
64
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:completion
completion
observePlugin: (code, plugin, key) -> @subscriptions.add atom.config.observe( key, (isEnabled) => if isEnabled plugin.enable?(@api) @enabledPlugins[code] = plugin else
plugin.disable?() delete @enabledPlugins[code] ) onEnabled: (callback) -> for code, plugin of @enabledPlugins continue if callback code, plugin
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
4bb12131e240d9fa0923e9ce96df4a2df0d92c17
3,570
https://github.com/JoelBesada/activate-power-mode/blob/4bb12131e240d9fa0923e9ce96df4a2df0d92c17/lib/plugin-registry.coffee
51
64
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:raw_corpus
raw_corpus
{CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = true for code, plu...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:completion
completion
{CompositeDisposable} = require "atom" module.exports = enabled: false subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable @enabled = true for code, plu...
@subscriptions?.dispose() addCorePlugin: (code, plugin) -> @corePlugins[code] = plugin addPlugin: (code, plugin) -> key = "activate-power-mode.plugins.#{code}" @plugins[code] = plugin @config.plugins.properties[code] = type: 'boolean', title: plugin.title, description: plugin.des...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:raw_corpus
raw_corpus
@enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code] ) onEnabled: (callback) -> for code, plugin of @enabledPlugins continue if callback code, plugin
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/plugin-registry.coffee
51
59
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:completion
completion
@enabledPlugins[code] = plugin else plugin.disable?() delete @enabledPlugins[code]
) onEnabled: (callback) -> for code, plugin of @enabledPlugins continue if callback code, plugin
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/plugin-registry.coffee
51
59
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:raw_corpus
raw_corpus
{CompositeDisposable} = require "atom" module.exports = subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable for code, plugin of @corePlugins @observePlu...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
3d34ae5ff6e6cd649532b8d3f28495491632f138
3,570
https://github.com/JoelBesada/activate-power-mode/blob/3d34ae5ff6e6cd649532b8d3f28495491632f138/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:1:completion
completion
{CompositeDisposable} = require "atom" module.exports = subscriptions: null plugins: [] corePlugins: [] enabledPlugins: [] init: (configSchema, api) -> @config = configSchema @api = api enable: -> @subscriptions = new CompositeDisposable for code, plugin of @corePlugins @observePlu...
@corePlugins[code] = plugin addPlugin: (code, plugin) -> info = plugin.info key = "activate-power-mode.plugins.#{code}" @plugins[code] = plugin @config.plugins.properties[code] = type: 'boolean', title: info.title, description: info.description, default: true if atom.con...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
3d34ae5ff6e6cd649532b8d3f28495491632f138
3,570
https://github.com/JoelBesada/activate-power-mode/blob/3d34ae5ff6e6cd649532b8d3f28495491632f138/lib/plugin-registry.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-registry.coffee:2:raw_corpus
raw_corpus
) onEnabled: (callback) -> for code, plugin of @enabledPlugins continue if callback code, plugin
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-registry.coffee
MIT
3d34ae5ff6e6cd649532b8d3f28495491632f138
3,570
https://github.com/JoelBesada/activate-power-mode/blob/3d34ae5ff6e6cd649532b8d3f28495491632f138/lib/plugin-registry.coffee
51
55
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
link: (scope, element, attrs) -> return controller: ($scope, $timeout, configService, logService, userService) -> $scope.message = configService.newUser.welcomeMessage $scope.iconClass = configService.newUser.iconClass $scope.canDisplay = -> con...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee:1:completion
completion
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
link: (scope, element, attrs) -> return controller: ($scope, $timeout, configService, logService, userService) -> $scope.message = configService.newUser.welcomeMessage $scope.iconClass = configService.newUser.iconClass $scope.canDisplay = -> con...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/directives/directives.newUserMessage.coffee
1
43
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/multiple_return_values.coffee:1:raw_corpus
raw_corpus
weather_report: (location) -> # Make an Ajax request to fetch the weather... [location, 72, "Mostly Sunny"] [city, temp, forecast]: weather_report "Berkeley, CA"
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/documentation/coffee/multiple_return_values.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/multiple_return_values.coffee
1
5
oozcitak/xmlbuilder-js:test/issues/208.coffee:1:raw_corpus
raw_corpus
path = require('path') fs = require('fs') suite 'Tests specific to issues:', -> test 'Writer events not triggered: Issue 208', -> errorReportObj = error: code: 500 message: "failed" xmlPath = path.join __dirname, '208.xml' stream = fs.createWriteStream(xmlPath, { flags : 'w' }) writer = ...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/208.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/208.coffee
1
30
oozcitak/xmlbuilder-js:test/issues/208.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript path = require('path') fs = require('fs') suite 'Tests specific to issues:', -> test 'Writer events not triggered: Issue 208', -> errorReportObj = error: code: 500 message: "failed" xmlPath = path.join __dirname, '208.xml' stream = fs....
var fs, path; path = require('path'); fs = require('fs'); suite('Tests specific to issues:', function() { return test('Writer events not triggered: Issue 208', function() { var errorReportObj, stream, writer, xmlPath; errorReportObj = { error: { code: 500, message: "failed" } ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/208.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/208.coffee
1
30
oozcitak/xmlbuilder-js:test/issues/208.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, path; path = require('path'); fs = require('fs'); suite('Tests specific to issues:', function() { return test('Writer events not triggered: Issue 208', function() { var errorReportObj, stream, writer, xmlPath; errorReportObj = { error: { ...
path = require('path') fs = require('fs') suite 'Tests specific to issues:', -> test 'Writer events not triggered: Issue 208', -> errorReportObj = error: code: 500 message: "failed" xmlPath = path.join __dirname, '208.xml' stream = fs.createWriteStream(xmlPath, { flags : 'w' }) writer = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/208.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/208.coffee
1
30
oozcitak/xmlbuilder-js:test/issues/208.coffee:1:completion
completion
path = require('path') fs = require('fs') suite 'Tests specific to issues:', -> test 'Writer events not triggered: Issue 208', -> errorReportObj = error: code: 500 message: "failed" xmlPath = path.join __dirname, '208.xml' stream = fs.createWriteStream(xmlPath, { flags : 'w' }) writer = ...
stream.end() stream.on('end', () -> eq( fs.readFileSync(xmlPath, 'utf8') """ <?xml version="1.0" encoding="utf-8"?> <error> <code>500</code> <message>failed</message> <error> """ ) )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/208.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/208.coffee
1
30
Glavin001/atom-beautify:src/languages/nginx.coffee:1:raw_corpus
raw_corpus
# Get Atom defaults scope = ['source.conf'] tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4 softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentChar = (if softTabs then " " else "\t") defaultIndentWithTabs = not soft...
CoffeeScript
Glavin001/atom-beautify
src/languages/nginx.coffee
MIT
85a744fb98bab9d1282b47c2245ebb810b4def6d
1,503
https://github.com/Glavin001/atom-beautify/blob/85a744fb98bab9d1282b47c2245ebb810b4def6d/src/languages/nginx.coffee
1
49
Glavin001/atom-beautify:src/languages/nginx.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Get Atom defaults scope = ['source.conf'] tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4 softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentChar = (if soft...
// Get Atom defaults var defaultIndentChar, defaultIndentSize, defaultIndentWithTabs, ref, ref1, scope, softTabs, tabLength; scope = ['source.conf']; tabLength = (ref = typeof atom !== "undefined" && atom !== null ? atom.config.get('editor.tabLength', { scope: scope }) : void 0) != null ? ref : 4; softTabs = (ref1...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/languages/nginx.coffee
MIT
85a744fb98bab9d1282b47c2245ebb810b4def6d
1,503
https://github.com/Glavin001/atom-beautify/blob/85a744fb98bab9d1282b47c2245ebb810b4def6d/src/languages/nginx.coffee
1
49
Glavin001/atom-beautify:src/languages/nginx.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Get Atom defaults var defaultIndentChar, defaultIndentSize, defaultIndentWithTabs, ref, ref1, scope, softTabs, tabLength; scope = ['source.conf']; tabLength = (ref = typeof atom !== "undefined" && atom !== null ? atom.config.get('editor.tabLength', { scope: ...
# Get Atom defaults scope = ['source.conf'] tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4 softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true defaultIndentSize = (if softTabs then tabLength else 1) defaultIndentChar = (if softTabs then " " else "\t") defaultIndentWithTabs = not soft...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/languages/nginx.coffee
MIT
85a744fb98bab9d1282b47c2245ebb810b4def6d
1,503
https://github.com/Glavin001/atom-beautify/blob/85a744fb98bab9d1282b47c2245ebb810b4def6d/src/languages/nginx.coffee
1
49
snd/url-pattern:test/parser-combinators.coffee:1:raw_corpus
raw_corpus
module.exports = 'nothing': (test) -> test.deepEqual P.nothing(''), value: null rest: '' test.deepEqual P.nothing('foobar'), value: null rest: 'foobar' test.done() 'anyChar': (test) -> test.deepEqual P.anyChar('foobar'), value: 'f' rest: 'oob...
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
6
55
snd/url-pattern:test/parser-combinators.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'nothing': (test) -> test.deepEqual P.nothing(''), value: null rest: '' test.deepEqual P.nothing('foobar'), value: null rest: 'foobar' test.done() 'anyChar': (test) -> test.deepEqual P...
module.exports = { 'nothing': function(test) { test.deepEqual(P.nothing(''), { value: null, rest: '' }); test.deepEqual(P.nothing('foobar'), { value: null, rest: 'foobar' }); return test.done(); }, 'anyChar': function(test) { test.deepEqual(P.anyChar('foobar'), { ...
CoffeeScript
JavaScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
6
55
snd/url-pattern:test/parser-combinators.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'nothing': function(test) { test.deepEqual(P.nothing(''), { value: null, rest: '' }); test.deepEqual(P.nothing('foobar'), { value: null, rest: 'foobar' }); return test.done(); }, 'anyChar': functi...
module.exports = 'nothing': (test) -> test.deepEqual P.nothing(''), value: null rest: '' test.deepEqual P.nothing('foobar'), value: null rest: 'foobar' test.done() 'anyChar': (test) -> test.deepEqual P.anyChar('foobar'), value: 'f' rest: 'oob...
JavaScript
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
6
55
snd/url-pattern:test/parser-combinators.coffee:1:completion
completion
module.exports = 'nothing': (test) -> test.deepEqual P.nothing(''), value: null rest: '' test.deepEqual P.nothing('foobar'), value: null rest: 'foobar' test.done() 'anyChar': (test) -> test.deepEqual P.anyChar('foobar'), value: 'f' rest: 'oob...
rest: 'bar' test.deepEqual parser('foo'), value: 'foo' rest: '' test.equal parser('bar'), null test.equal parser(''), null test.done() 'charset': (test) -> parser = P.charset('a-zA-Z0-9-_ %') test.deepEqual parser('foobar'), value: 'f' rest: 'oobar'...
CoffeeScript
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
6
55
snd/url-pattern:test/parser-combinators.coffee:2:raw_corpus
raw_corpus
parser = P.concatMany1(P.charset('a-zA-Z0-9-_ %')) test.deepEqual parser('foobar'), value: 'foobar' rest: '' test.deepEqual parser('f%_.bar'), value: 'f%_' rest: '.bar' test.deepEqual parser('f@bar'), value: 'f' rest: '@bar' test.equal parser('@bar'), null test.de...
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
56
105
snd/url-pattern:test/parser-combinators.coffee:2:completion
completion
parser = P.concatMany1(P.charset('a-zA-Z0-9-_ %')) test.deepEqual parser('foobar'), value: 'foobar' rest: '' test.deepEqual parser('f%_.bar'), value: 'f%_' rest: '.bar' test.deepEqual parser('f@bar'), value: 'f' rest: '@bar' test.equal parser('@bar'), null test.de...
value: '100' rest: '' test.deepEqual parser('(100)200'), value: '100' rest: '200' test.deepEqual parser('(1)()'), value: '1' rest: '()' test.equal parser('()'), null test.equal parser('foo(100)'), null test.equal parser('(100foo)'), null test.e...
CoffeeScript
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
56
105
snd/url-pattern:test/parser-combinators.coffee:3:raw_corpus
raw_corpus
rest: '' test.deepEqual U.wildcard('*/'), value: tag: 'wildcard' value: '*' rest: '/' test.equal U.wildcard(' *'), null test.equal U.wildcard('()'), null test.equal U.wildcard('foo(100)'), null test.equal U.wildcard('(100foo)'), null test.equal U.w...
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
106
155
snd/url-pattern:test/parser-combinators.coffee:3:completion
completion
rest: '' test.deepEqual U.wildcard('*/'), value: tag: 'wildcard' value: '*' rest: '/' test.equal U.wildcard(' *'), null test.equal U.wildcard('()'), null test.equal U.wildcard('foo(100)'), null test.equal U.wildcard('(100foo)'), null test.equal U.w...
test.deepEqual U.named(':ab96c'), value: tag: 'named' value: 'ab96c' rest: '' test.deepEqual U.named(':ab96c.'), value: tag: 'named' value: 'ab96c' rest: '.' test.deepEqual U.named(':96c-:ab'), value: tag: 'named' ...
CoffeeScript
CoffeeScript
snd/url-pattern
test/parser-combinators.coffee
MIT
4dae602aecd8076e5776316cd53c97a568c317ce
588
https://github.com/snd/url-pattern/blob/4dae602aecd8076e5776316cd53c97a568c317ce/test/parser-combinators.coffee
106
155
iostreamer-X/Awkward:terminal/execute.coffee:1:raw_corpus
raw_corpus
parser = (string, result)-> if (string.indexOf '$') == -1 return result else found = string.substring(string.lastIndexOf("$")+1,string.lastIndexOf("()")); if (found.search(/[^A-Za-z\s]/)) != -1 throw new Error 'Invalid JS' string = string.replace "$"+found+"()", "_" result.push found t...
CoffeeScript
iostreamer-X/Awkward
terminal/execute.coffee
MIT
915ddc16866eb394c4065bdc657cd521759ce98f
458
https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/execute.coffee
1
15
iostreamer-X/Awkward:terminal/execute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript parser = (string, result)-> if (string.indexOf '$') == -1 return result else found = string.substring(string.lastIndexOf("$")+1,string.lastIndexOf("()")); if (found.search(/[^A-Za-z\s]/)) != -1 throw new Error 'Invalid JS' string = strin...
var parser; parser = function(string, result) { var found; if ((string.indexOf('$')) === -1) { return result; } else { found = string.substring(string.lastIndexOf("$") + 1, string.lastIndexOf("()")); if ((found.search(/[^A-Za-z\s]/)) !== -1) { throw new Error('Invalid JS'); } string = s...
CoffeeScript
JavaScript
iostreamer-X/Awkward
terminal/execute.coffee
MIT
915ddc16866eb394c4065bdc657cd521759ce98f
458
https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/execute.coffee
1
15
iostreamer-X/Awkward:terminal/execute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var parser; parser = function(string, result) { var found; if ((string.indexOf('$')) === -1) { return result; } else { found = string.substring(string.lastIndexOf("$") + 1, string.lastIndexOf("()")); if ((found.search(/[^A-Za-z\s]/)) !== -1) { ...
parser = (string, result)-> if (string.indexOf '$') == -1 return result else found = string.substring(string.lastIndexOf("$")+1,string.lastIndexOf("()")); if (found.search(/[^A-Za-z\s]/)) != -1 throw new Error 'Invalid JS' string = string.replace "$"+found+"()", "_" result.push found t...
JavaScript
CoffeeScript
iostreamer-X/Awkward
terminal/execute.coffee
MIT
915ddc16866eb394c4065bdc657cd521759ce98f
458
https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/execute.coffee
1
15
iostreamer-X/Awkward:terminal/execute.coffee:1:completion
completion
parser = (string, result)-> if (string.indexOf '$') == -1 return result else found = string.substring(string.lastIndexOf("$")+1,string.lastIndexOf("()")); if (found.search(/[^A-Za-z\s]/)) != -1 throw new Error 'Invalid JS'
string = string.replace "$"+found+"()", "_" result.push found toJs string, result module.exports = (command, e) -> context = {} functions = parser command,[] awkward.log functions
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
terminal/execute.coffee
MIT
915ddc16866eb394c4065bdc657cd521759ce98f
458
https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/execute.coffee
1
15
jianliaoim/talk-os:talk-account/server/initializers/locales/zh.coffee:1:raw_corpus
raw_corpus
module.exports = NOT_FOUND: 'Not Found' OBJECT_MISSING: (msg = '') -> "对象不存在 #{msg}" PARAMS_INVALID: (msg = '') -> "错误的参数 #{msg}" PARAMS_MISSING: (msg = '') -> "缺少参数 #{msg}" RATE_LIMIT_EXCEEDED: "请求过于频繁" REQUEST_FAILED: '请求失败' VERIFY_FAILED: '验证失败' ACCESS_FAILED: '无权限访问' RESEND_TOO_OFTEN: '发送过于频繁' ...
CoffeeScript
jianliaoim/talk-os
talk-account/server/initializers/locales/zh.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/server/initializers/locales/zh.coffee
1
21
jianliaoim/talk-os:talk-account/server/initializers/locales/zh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = NOT_FOUND: 'Not Found' OBJECT_MISSING: (msg = '') -> "对象不存在 #{msg}" PARAMS_INVALID: (msg = '') -> "错误的参数 #{msg}" PARAMS_MISSING: (msg = '') -> "缺少参数 #{msg}" RATE_LIMIT_EXCEEDED: "请求过于频繁" REQUEST_FAILED: '请求失败' VERIFY_FAILED: '验证失败'...
module.exports = { NOT_FOUND: 'Not Found', OBJECT_MISSING: function(msg = '') { return `对象不存在 ${msg}`; }, PARAMS_INVALID: function(msg = '') { return `错误的参数 ${msg}`; }, PARAMS_MISSING: function(msg = '') { return `缺少参数 ${msg}`; }, RATE_LIMIT_EXCEEDED: "请求过于频繁", REQUEST_FAILED: '请求失败', VE...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-account/server/initializers/locales/zh.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/server/initializers/locales/zh.coffee
1
21
jianliaoim/talk-os:talk-account/server/initializers/locales/zh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { NOT_FOUND: 'Not Found', OBJECT_MISSING: function(msg = '') { return `对象不存在 ${msg}`; }, PARAMS_INVALID: function(msg = '') { return `错误的参数 ${msg}`; }, PARAMS_MISSING: function(msg = '') { return `缺少参数 ${msg}`; }, RATE_L...
module.exports = NOT_FOUND: 'Not Found' OBJECT_MISSING: (msg = '') -> "对象不存在 #{msg}" PARAMS_INVALID: (msg = '') -> "错误的参数 #{msg}" PARAMS_MISSING: (msg = '') -> "缺少参数 #{msg}" RATE_LIMIT_EXCEEDED: "请求过于频繁" REQUEST_FAILED: '请求失败' VERIFY_FAILED: '验证失败' ACCESS_FAILED: '无权限访问' RESEND_TOO_OFTEN: '发送过于频繁' ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-account/server/initializers/locales/zh.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/server/initializers/locales/zh.coffee
1
21
jianliaoim/talk-os:talk-account/server/initializers/locales/zh.coffee:1:completion
completion
module.exports = NOT_FOUND: 'Not Found' OBJECT_MISSING: (msg = '') -> "对象不存在 #{msg}" PARAMS_INVALID: (msg = '') -> "错误的参数 #{msg}" PARAMS_MISSING: (msg = '') -> "缺少参数 #{msg}" RATE_LIMIT_EXCEEDED: "请求过于频繁" REQUEST_FAILED: '请求失败' VERIFY_FAILED: '验证失败' ACCESS_FAILED: '无权限访问'
RESEND_TOO_OFTEN: '发送过于频繁' INVALID_SOURCE: (source) -> "错误的来源 #{source}" LOGIN_FAILED: "登录失败:%s" BIND_CONFLICT: "绑定账号已存在" PASSWORD_TOO_SIMPLE: "密码过于简单" LOGIN_VERIFY_FAILED: '登录失败,邮箱,手机号或密码错误' ACCOUNT_EXISTS: '账号已存在' INVALID_ACTION: '错误的 action 参数' ACCOUNT_NOT_EXIST: '账号不存在' SEND_SMS_ERROR: '发送短信失败' ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-account/server/initializers/locales/zh.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/server/initializers/locales/zh.coffee
1
21
mojotech/pioneer:src/scaffold_builder.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' path = require 'path' prompt = require 'prompt' color = require 'colors' _ = require 'lodash' module.exports = featureNotSpecified: -> prompt.start() prompt.get({ message: "You did not specify a feature path. Would you like Pioneer to generat...
CoffeeScript
mojotech/pioneer
src/scaffold_builder.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee
1
50
mojotech/pioneer:src/scaffold_builder.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' path = require 'path' prompt = require 'prompt' color = require 'colors' _ = require 'lodash' module.exports = featureNotSpecified: -> prompt.start() prompt.get({ message: "You did not ...
var _, color, fs, path, prompt; fs = require('fs'); path = require('path'); prompt = require('prompt'); color = require('colors'); _ = require('lodash'); module.exports = { featureNotSpecified: function() { prompt.start(); return prompt.get({ message: "You did not specify a feature path. Would you...
CoffeeScript
JavaScript
mojotech/pioneer
src/scaffold_builder.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee
1
50
mojotech/pioneer:src/scaffold_builder.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, color, fs, path, prompt; fs = require('fs'); path = require('path'); prompt = require('prompt'); color = require('colors'); _ = require('lodash'); module.exports = { featureNotSpecified: function() { prompt.start(); return prompt.get({ ...
fs = require 'fs' path = require 'path' prompt = require 'prompt' color = require 'colors' _ = require 'lodash' module.exports = featureNotSpecified: -> prompt.start() prompt.get({ message: "You did not specify a feature path. Would you like Pioneer to generat...
JavaScript
CoffeeScript
mojotech/pioneer
src/scaffold_builder.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee
1
50
mojotech/pioneer:src/scaffold_builder.coffee:1:completion
completion
fs = require 'fs' path = require 'path' prompt = require 'prompt' color = require 'colors' _ = require 'lodash' module.exports = featureNotSpecified: -> prompt.start() prompt.get({ message: "You did not specify a feature path. Would you like Pioneer to generat...
features = path.join(p, '/features') if(!fs.existsSync(features)) fs.mkdirSync(features) fixtures = path.join(p, '/fixtures') if(!fs.existsSync(fixtures)) fs.mkdirSync(fixtures) widgets = path.join(p, '/widgets') if(!fs.existsSync(widgets)) fs.mkdirSync(widgets) steps = path.jo...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/scaffold_builder.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee
1
50