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
rs/pushd:lib/pushservices/c2dm.coffee:1:completion
completion
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
subOptions: subOptions, payload: payload _pushTask: (task, done) -> task.subscriber.get (info) => note = registration_id: info.token collapse_key: task.payload.event.name if task.subOptions?.ignore_message isnt true if titl...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
7ceb220702d1a84dfe235ee2be0329783f1e6f19
1,157
https://github.com/rs/pushd/blob/7ceb220702d1a84dfe235ee2be0329783f1e6f19/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:raw_corpus
raw_corpus
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf.keepAlive = true @d...
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff
1,157
https://github.com/rs/pushd/blob/c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.c...
var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } } constructor(conf, logger) { this.logge...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff
1,157
https://github.com/rs/pushd/blob/c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } ...
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf.keepAlive = true @d...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff
1,157
https://github.com/rs/pushd/blob/c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:completion
completion
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf.keepAlive = true @d...
subOptions: subOptions, payload: payload _pushTask: (task, done) -> task.subscriber.get (info) => note = registration_id: info.token collapse_key: task.payload.event.name if task.subOptions?.ignore_message isnt true if titl...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff
1,157
https://github.com/rs/pushd/blob/c0619e4ce06a98d60aea2b817a4a7dee4b0c24ff/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:raw_corpus
raw_corpus
event = require '../event' async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf....
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
417ef78179f801cee98cf039b2bdcaac9096b7f7
1,157
https://github.com/rs/pushd/blob/417ef78179f801cee98cf039b2bdcaac9096b7f7/lib/pushservices/c2dm.coffee
1
49
rs/pushd:lib/pushservices/c2dm.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript event = require '../event' async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf,...
var PushServiceC2DM, async, c2dm, event; event = require('../event'); async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } } constru...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
417ef78179f801cee98cf039b2bdcaac9096b7f7
1,157
https://github.com/rs/pushd/blob/417ef78179f801cee98cf039b2bdcaac9096b7f7/lib/pushservices/c2dm.coffee
1
49
rs/pushd:lib/pushservices/c2dm.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceC2DM, async, c2dm, event; event = require('../event'); async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(tok...
event = require '../event' async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf....
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
417ef78179f801cee98cf039b2bdcaac9096b7f7
1,157
https://github.com/rs/pushd/blob/417ef78179f801cee98cf039b2bdcaac9096b7f7/lib/pushservices/c2dm.coffee
1
49
rs/pushd:lib/pushservices/c2dm.coffee:1:completion
completion
event = require '../event' async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger) -> conf.concurrency ?= 10 conf....
subscriber: subscriber, subOptions: subOptions, payload: payload _pushTask: (task, done) -> task.subscriber.get (info) => note = registration_id: info.token collapse_key: task.payload.event.name if not (task.subOptions & event....
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
417ef78179f801cee98cf039b2bdcaac9096b7f7
1,157
https://github.com/rs/pushd/blob/417ef78179f801cee98cf039b2bdcaac9096b7f7/lib/pushservices/c2dm.coffee
1
49
oozcitak/xmlbuilder-js:test/basic/prettyattributesstream.coffee:1:raw_corpus
raw_corpus
suite 'Creating XML with stream writer:', -> hook = null setup 'hook stdout.write', -> hook = captureStream(process.stdout) return teardown 'unhook stdout.write', -> hook.unhook() return test 'Pretty print attributes - 1', -> xml('test', { headless: true }) .ele('node', {"first":"1", ...
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/prettyattributesstream.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/prettyattributesstream.coffee
1
50
oozcitak/xmlbuilder-js:test/basic/prettyattributesstream.coffee:1:completion
completion
suite 'Creating XML with stream writer:', -> hook = null setup 'hook stdout.write', -> hook = captureStream(process.stdout) return teardown 'unhook stdout.write', -> hook.unhook() return test 'Pretty print attributes - 1', -> xml('test', { headless: true }) .ele('node', {"first":"1", ...
.ele('node', {"first":"1", "second":"2", "third":"33333333333333333333", "fourth": 4}) .end(builder.streamWriter(process.stdout, { pretty: true, width: 10 })) eq( hook.captured() """ <test> <node first="1" second="2" third="33333333333333333333" ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/prettyattributesstream.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/prettyattributesstream.coffee
1
50
oozcitak/xmlbuilder-js:test/basic/prettyattributesstream.coffee:2:raw_corpus
raw_corpus
second="2" third="33333333333333333333" fourth="4"/> </test> """ ) test 'Pretty print attributes - 4', -> xml('test', { headless: true }) .ele('node', {"first":"1", "second":"2"}).ele('child') .end(builder.streamWriter(process.stdout, { pretty: true, width: 10 })) ...
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/prettyattributesstream.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/prettyattributesstream.coffee
51
73
oozcitak/xmlbuilder-js:test/basic/prettyattributesstream.coffee:2:completion
completion
second="2" third="33333333333333333333" fourth="4"/> </test> """ ) test 'Pretty print attributes - 4', -> xml('test', { headless: true }) .ele('node', {"first":"1", "second":"2"}).ele('child') .end(builder.streamWriter(process.stdout, { pretty: true, width: 10 }))
eq( hook.captured() """ <test> <node first="1" second="2"> <child/> </node> </test> """ )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/prettyattributesstream.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/prettyattributesstream.coffee
51
73
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:1:raw_corpus
raw_corpus
async = require 'async' request = require 'request' BaseMailer = require './base' util = require '../util' config = require 'config' {logger, limbo} = require '../components' { UserModel RoomModel TeamModel } = limbo.use 'talk' class InviteMailer extends BaseMailer delay: 0 action: 'send' template: 'invi...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript async = require 'async' request = require 'request' BaseMailer = require './base' util = require '../util' config = require 'config' {logger, limbo} = require '../components' { UserModel RoomModel TeamModel } = limbo.use 'talk' class InviteMailer extends ...
var BaseMailer, InviteMailer, RoomModel, TeamModel, UserModel, async, config, limbo, logger, request, util; async = require('async'); request = require('request'); BaseMailer = require('./base'); util = require('../util'); config = require('config'); ({logger, limbo} = require('../components')); ({UserModel, Roo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BaseMailer, InviteMailer, RoomModel, TeamModel, UserModel, async, config, limbo, logger, request, util; async = require('async'); request = require('request'); BaseMailer = require('./base'); util = require('../util'); config = require('config'); ({logger...
async = require 'async' request = require 'request' BaseMailer = require './base' util = require '../util' config = require 'config' {logger, limbo} = require '../components' { UserModel RoomModel TeamModel } = limbo.use 'talk' class InviteMailer extends BaseMailer delay: 0 action: 'send' template: 'invi...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:1:completion
completion
async = require 'async' request = require 'request' BaseMailer = require './base' util = require '../util' config = require 'config' {logger, limbo} = require '../components' { UserModel RoomModel TeamModel } = limbo.use 'talk' class InviteMailer extends BaseMailer delay: 0 action: 'send' template: 'invi...
email = id: "invite" + Math.random() + new Date().getTime() to: invitee.email label: label titleName: '话题' async.auto findSender: (callback) -> UserModel.findOne _id: _senderId , (err, user) -> email.sender = user callback err findRo...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:2:raw_corpus
raw_corpus
TeamModel.findOne _id: invitee._teamId , (err, team) -> email.titleName = team?.name unless invitee._roomId invitee.team = team callback err setRedirectUrl: ['findTeam', (callback) -> if invitee.isInvite email.redirectUrl = invitee.team.inviteUrl ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
51
70
jianliaoim/talk-os:talk-api2x/server/mailers/invite.coffee:2:completion
completion
TeamModel.findOne _id: invitee._teamId , (err, team) -> email.titleName = team?.name unless invitee._roomId invitee.team = team callback err setRedirectUrl: ['findTeam', (callback) -> if invitee.isInvite email.redirectUrl = invitee.team.inviteUrl ...
email.redirectUrl = util.buildTeamUrl invitee._teamId, invitee._roomId callback() ] , (err) -> logger.warn err.stack if err return unless email.sender and not err email.subject = "[简聊] #{email.sender.name}邀请你加入#{label}#{email.titleName}" self._sendByRender email module.exports...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/mailers/invite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/mailers/invite.coffee
51
70
jeremyramin/terminal-plus:spec/terminal-plus-view-spec.coffee:1:raw_corpus
raw_corpus
TerminalPlusView = require '../lib/terminal-plus-view' describe "TerminalPlusView", -> it "has one valid test", -> expect("life").toBe "easy"
CoffeeScript
jeremyramin/terminal-plus
spec/terminal-plus-view-spec.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/spec/terminal-plus-view-spec.coffee
1
5
jeremyramin/terminal-plus:spec/terminal-plus-view-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TerminalPlusView = require '../lib/terminal-plus-view' describe "TerminalPlusView", -> it "has one valid test", -> expect("life").toBe "easy" ```
var TerminalPlusView; TerminalPlusView = require('../lib/terminal-plus-view'); describe("TerminalPlusView", function() { return it("has one valid test", function() { return expect("life").toBe("easy"); }); });
CoffeeScript
JavaScript
jeremyramin/terminal-plus
spec/terminal-plus-view-spec.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/spec/terminal-plus-view-spec.coffee
1
5
jeremyramin/terminal-plus:spec/terminal-plus-view-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TerminalPlusView; TerminalPlusView = require('../lib/terminal-plus-view'); describe("TerminalPlusView", function() { return it("has one valid test", function() { return expect("life").toBe("easy"); }); }); ```
TerminalPlusView = require '../lib/terminal-plus-view' describe "TerminalPlusView", -> it "has one valid test", -> expect("life").toBe "easy"
JavaScript
CoffeeScript
jeremyramin/terminal-plus
spec/terminal-plus-view-spec.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/spec/terminal-plus-view-spec.coffee
1
5
jeremyramin/terminal-plus:spec/terminal-plus-view-spec.coffee:1:completion
completion
TerminalPlusView = require '../lib/terminal-plus-view'
describe "TerminalPlusView", -> it "has one valid test", -> expect("life").toBe "easy"
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
spec/terminal-plus-view-spec.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/spec/terminal-plus-view-spec.coffee
1
5
Glavin001/atom-beautify:src/config.coffee:1:raw_corpus
raw_corpus
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -2 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = { general: title: 'General' type: 'object' collapsed: true order: -2 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' ...
module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -2, description: 'General options for Atom Beautify', properties: { _analyticsUserId: { title: 'Analytics User Id', type: 'string', default: "", description: "Unique id...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/config.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -2, description: 'General options for Atom Beautify', properties: { _analyticsUserId: { title: 'Analytics User Id', type: 'string...
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -2 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:completion
completion
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -2 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
title: "Beautify Entire File On Save" type : 'boolean' default : true description : "When beautifying on save, use the entire file, even if there is selected text in the editor. Important: The `beautify on save` option for the specific language must be enabled for this to be applicable. This opt...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:raw_corpus
raw_corpus
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
45a93451b638b08d9c234d75a269ce0033955609
1,503
https://github.com/Glavin001/atom-beautify/blob/45a93451b638b08d9c234d75a269ce0033955609/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' ...
module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { _analyticsUserId: { title: 'Analytics User Id', type: 'string', default: "", description: "Unique id...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/config.coffee
MIT
45a93451b638b08d9c234d75a269ce0033955609
1,503
https://github.com/Glavin001/atom-beautify/blob/45a93451b638b08d9c234d75a269ce0033955609/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { _analyticsUserId: { title: 'Analytics User Id', type: 'string...
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
45a93451b638b08d9c234d75a269ce0033955609
1,503
https://github.com/Glavin001/atom-beautify/blob/45a93451b638b08d9c234d75a269ce0033955609/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:completion
completion
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier f...
title: "Beautify Entire File On Save" type : 'boolean' default : true description : "When beautifying on save, use the entire file, even if there is selected text in the editor. Important: The `beautify on save` option for the specific language must be enabled for this to be applicable. This opt...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
45a93451b638b08d9c234d75a269ce0033955609
1,503
https://github.com/Glavin001/atom-beautify/blob/45a93451b638b08d9c234d75a269ce0033955609/src/config.coffee
1
40
Glavin001/atom-beautify:src/config.coffee:1:raw_corpus
raw_corpus
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95
1,503
https://github.com/Glavin001/atom-beautify/blob/dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' de...
module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { analytics: { title: 'Anonymous Analytics', type: 'boolean', default: true, description: "[Google Ana...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/config.coffee
MIT
dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95
1,503
https://github.com/Glavin001/atom-beautify/blob/dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { analytics: { title: 'Anonymous Analytics', type: 'boolean', ...
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95
1,503
https://github.com/Glavin001/atom-beautify/blob/dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:1:completion
completion
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
type : 'string' default : 'warn' description : 'Set the level for the logger' enum : ['verbose', 'debug', 'info', 'warn', 'error'] beautifyEntireFileOnSave : title: "Beautify Entire File On Save" type : 'boolean' default : true description : "When beautifyin...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95
1,503
https://github.com/Glavin001/atom-beautify/blob/dfacbf01031cd4a92fc7fc54e1ea7615bfdb8d95/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:1:raw_corpus
raw_corpus
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: test1: type: "integer" default: null test2: type: "integer" default: undefined test3: typ...
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
d6a6fcde94834557a234ad1a613e4883a3500816
1,503
https://github.com/Glavin001/atom-beautify/blob/d6a6fcde94834557a234ad1a613e4883a3500816/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:1:completion
completion
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: test1: type: "integer" default: null test2: type: "integer" default: undefined test3: typ...
information, such as source code, is sent. See https://github.com/Glavin001/atom-beautify/issues/47 for more details." _analyticsUserId : title: 'Analytics User Id' type : 'string' default : "" description : "Unique identifier for this user for tracking usage analyt...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
d6a6fcde94834557a234ad1a613e4883a3500816
1,503
https://github.com/Glavin001/atom-beautify/blob/d6a6fcde94834557a234ad1a613e4883a3500816/src/config.coffee
1
50
Glavin001/atom-beautify:src/config.coffee:2:raw_corpus
raw_corpus
type : 'boolean' default : false description : "Do not show any/all errors when they occur" }
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
d6a6fcde94834557a234ad1a613e4883a3500816
1,503
https://github.com/Glavin001/atom-beautify/blob/d6a6fcde94834557a234ad1a613e4883a3500816/src/config.coffee
51
54
Glavin001/atom-beautify:src/config.coffee:1:raw_corpus
raw_corpus
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac
1,503
https://github.com/Glavin001/atom-beautify/blob/f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac/src/config.coffee
1
45
Glavin001/atom-beautify:src/config.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' de...
module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { analytics: { title: 'Anonymous Analytics', type: 'boolean', default: true, description: "[Google Ana...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/config.coffee
MIT
f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac
1,503
https://github.com/Glavin001/atom-beautify/blob/f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac/src/config.coffee
1
45
Glavin001/atom-beautify:src/config.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { general: { title: 'General', type: 'object', collapsed: true, order: -1, description: 'General options for Atom Beautify', properties: { analytics: { title: 'Anonymous Analytics', type: 'boolean', ...
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac
1,503
https://github.com/Glavin001/atom-beautify/blob/f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac/src/config.coffee
1
45
Glavin001/atom-beautify:src/config.coffee:1:completion
completion
module.exports = { general: title: 'General' type: 'object' collapsed: true order: -1 description: 'General options for Atom Beautify' properties: analytics : title: 'Anonymous Analytics' type : 'boolean' default : true description : "[Google ...
description : "Unique identifier for this user for tracking usage analytics" loggerLevel : title: "Logger Level" type : 'string' default : 'warn' description : 'Set the level for the logger' enum : ['verbose', 'debug', 'info', 'warn', 'error'] beautifyEntireFileOnSave...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/config.coffee
MIT
f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac
1,503
https://github.com/Glavin001/atom-beautify/blob/f7ddbf10850fbc9489ea7eb9af7a495ca51dfeac/src/config.coffee
1
45
oozcitak/xmlbuilder-js:test/dom/level1.coffee:1:raw_corpus
raw_corpus
suite 'DOM Level 1:', -> test 'DOMImplementation', -> ok( builder.implementation.hasFeature "XML", "1.0" ) test 'Document', -> doc = xml('root').dtd('pubID', 'sysID').doc() eq( doc.doctype.type, builder.nodeType.DocType ) ok( doc.implementation.hasFeature "XML", "1.0" ) eq( doc.documentElement...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
1
39
oozcitak/xmlbuilder-js:test/dom/level1.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'DOM Level 1:', -> test 'DOMImplementation', -> ok( builder.implementation.hasFeature "XML", "1.0" ) test 'Document', -> doc = xml('root').dtd('pubID', 'sysID').doc() eq( doc.doctype.type, builder.nodeType.DocType ) ok( doc.implementat...
suite('DOM Level 1:', function() { test('DOMImplementation', function() { return ok(builder.implementation.hasFeature("XML", "1.0")); }); test('Document', function() { var doc; doc = xml('root').dtd('pubID', 'sysID').doc(); eq(doc.doctype.type, builder.nodeType.DocType); ok(doc.implementation....
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
1
39
oozcitak/xmlbuilder-js:test/dom/level1.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('DOM Level 1:', function() { test('DOMImplementation', function() { return ok(builder.implementation.hasFeature("XML", "1.0")); }); test('Document', function() { var doc; doc = xml('root').dtd('pubID', 'sysID').doc(); eq(doc.doctype.type...
suite 'DOM Level 1:', -> test 'DOMImplementation', -> ok( builder.implementation.hasFeature "XML", "1.0" ) test 'Document', -> doc = xml('root').dtd('pubID', 'sysID').doc() eq( doc.doctype.type, builder.nodeType.DocType ) ok( doc.implementation.hasFeature "XML", "1.0" ) eq( doc.documentElement...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
1
39
oozcitak/xmlbuilder-js:test/dom/level1.coffee:1:completion
completion
suite 'DOM Level 1:', -> test 'DOMImplementation', -> ok( builder.implementation.hasFeature "XML", "1.0" ) test 'Document', -> doc = xml('root').dtd('pubID', 'sysID').doc() eq( doc.doctype.type, builder.nodeType.DocType ) ok( doc.implementation.hasFeature "XML", "1.0" ) eq( doc.documentElement...
# EntityReference : 5 eq( xml('root').dtd().ent('text', 'val').children[0].nodeType, 6 ) # EntityDeclaration : 6 eq( xml('root').dtd().pent('text', 'val').children[0].nodeType, 6 ) # EntityDeclaration : 6 eq( xml('root').ins('text').children[0].nodeType, 7 ) # ProcessingInstruction : 7 eq( xml('root').c...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
1
39
oozcitak/xmlbuilder-js:test/dom/level1.coffee:2:raw_corpus
raw_corpus
eq( node.nodeName, 'node' ) eq( node.nodeType, builder.nodeType.Element ) eq( node.parentNode.nodeName, 'root' ) eq( node.hasChildNodes(), true ) eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.firstCh...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
41
80
oozcitak/xmlbuilder-js:test/dom/level1.coffee:2:completion
completion
eq( node.nodeName, 'node' ) eq( node.nodeType, builder.nodeType.Element ) eq( node.parentNode.nodeName, 'root' ) eq( node.hasChildNodes(), true ) eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.firstCh...
node.ele('child1').up().ele('child2').up().ele('child3') eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.childNodes.item(2).nodeName, 'child3' ) eq( node.childNodes.item(3), null ) test 'NamedNodeMap', -> ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
41
80
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:raw_corpus
raw_corpus
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
82
122
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attri...
test('CharacterData', function() { var node; node = xml('root').txt('text').children[0]; eq(node.data, 'text'); return eq(node.length, 4); }); test('Attr', function() { var node; node = xml('root'); node.att('att1', 'val1'); eq(node.attributes.item(0).name, 'att1'); eq(node.attributes.item(0).value, ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
82
122
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('CharacterData', function() { var node; node = xml('root').txt('text').children[0]; eq(node.data, 'text'); return eq(node.length, 4); }); test('Attr', function() { var node; node = xml('root'); node.att('att1', 'val1'); eq(node.attributes.item...
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
82
122
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:completion
completion
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
eq( node.getAttributeNode('att1').value, 'val1' ) test 'DocumentType', -> dtd = xml('root').dtd() .ent('text1', 'val1') .pent('text2', 'val2') .not('text1', { pubID: 'test1' } ) .not('text2', { sysID: 'test2' } ) .not('text3', { sysID: 'test3' } ) eq( dtd.name, 'root' ) eq(...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
82
122
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:raw_corpus
raw_corpus
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
124
147
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = x...
test('Notation', function() { var node; node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(node.nodeType, builder.nodeType.NotationDeclaration); eq(node.publicId, 'pub'); return eq(node.systemId, 'sys'); }); test('Entity', function() { var ent, pent; ent = xml...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
124
147
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('Notation', function() { var node; node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(node.nodeType, builder.nodeType.NotationDeclaration); eq(node.publicId, 'pub'); return eq(node.systemId, 'sys'); }); t...
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
124
147
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:completion
completion
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
eq( ent.notationName, 'entprg' ) eq( pent.nodeType, builder.nodeType.EntityDeclaration ) eq( pent.publicId, 'pub' ) eq( pent.systemId, 'sys' ) eq( pent.notationName, null ) test 'ProcessingInstruction', -> node = xml('root').ins('target', 'value').children[0] eq( node.target, 'target' ) ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/dom/level1.coffee
124
147
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:raw_corpus
raw_corpus
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/test/dom/level1.coffee
124
146
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = x...
test('Notation', function() { var node; node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(node.nodeType, builder.nodeType.NotationDeclaration); eq(node.publicId, 'pub'); return eq(node.systemId, 'sys'); }); test('Entity', function() { var ent, pent; ent = xml...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/test/dom/level1.coffee
124
146
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('Notation', function() { var node; node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(node.nodeType, builder.nodeType.NotationDeclaration); eq(node.publicId, 'pub'); return eq(node.systemId, 'sys'); }); t...
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/test/dom/level1.coffee
124
146
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:completion
completion
test 'Notation', -> node = xml('root').dtd().not('text1', { pubID: 'pub', sysID: 'sys' } ).children[0] eq( node.nodeType, builder.nodeType.NotationDeclaration ) eq( node.publicId, 'pub' ) eq( node.systemId, 'sys' ) test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys',...
eq( ent.systemId, 'sys' ) eq( ent.notationName, 'entprg' ) eq( pent.nodeType, builder.nodeType.EntityDeclaration ) eq( pent.publicId, 'pub' ) eq( pent.systemId, 'sys' ) eq( pent.notationName, null ) test 'ProcessingInstruction', -> node = xml('root').ins('target', 'value').children[0] eq...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/test/dom/level1.coffee
124
146
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:raw_corpus
raw_corpus
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
82
125
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attri...
test('CharacterData', function() { var node; node = xml('root').txt('text').children[0]; eq(node.data, 'text'); return eq(node.length, 4); }); test('Attr', function() { var node; node = xml('root'); node.att('att1', 'val1'); eq(node.attributes.item(0).name, 'att1'); eq(node.attributes.item(0).value, ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
82
125
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('CharacterData', function() { var node; node = xml('root').txt('text').children[0]; eq(node.data, 'text'); return eq(node.length, 4); }); test('Attr', function() { var node; node = xml('root'); node.att('att1', 'val1'); eq(node.attributes.item...
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
82
125
oozcitak/xmlbuilder-js:test/dom/level1.coffee:3:completion
completion
test 'CharacterData', -> node = xml('root').txt('text').children[0] eq( node.data, 'text' ) eq( node.length, 4 ) test 'Attr', -> node = xml('root') node.att('att1', 'val1') eq( node.attributes.item(0).name, 'att1' ) eq( node.attributes.item(0).value, 'val1' ) eq( node.attributes.ite...
.pent('text2', 'val2') .not('text1', { pubID: 'test1' } ) .not('text2', { sysID: 'test2' } ) .not('text3', { sysID: 'test3' } ) eq( dtd.name, 'root' ) eq( dtd.entities.length, 1 ) eq( dtd.entities.item(0).nodeType, builder.nodeType.EntityDeclaration ) eq( dtd.entities.item(0).nodeName...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
82
125
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:raw_corpus
raw_corpus
test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0] pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0] eq( ent.nodeType, builder.nodeType.EntityDeclaration ) eq( ent.publicId, 'pub' ) eq( ent.systemId, 'sys' ...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
127
143
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0] pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0] eq( ent.nodeType, builder.nodeType.EntityDeclaration ) ...
test('Entity', function() { var ent, pent; ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0]; pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(ent.nodeType, builder.nodeType.EntityDeclaration); eq(ent.pub...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
127
143
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('Entity', function() { var ent, pent; ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0]; pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0]; eq(ent.node...
test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0] pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0] eq( ent.nodeType, builder.nodeType.EntityDeclaration ) eq( ent.publicId, 'pub' ) eq( ent.systemId, 'sys' ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
127
143
oozcitak/xmlbuilder-js:test/dom/level1.coffee:4:completion
completion
test 'Entity', -> ent = xml('root').dtd().ent('ent', { pubID: 'pub', sysID: 'sys', nData: 'entprg' }).children[0] pent = xml('root').dtd().pent('ent', { pubID: 'pub', sysID: 'sys' }).children[0] eq( ent.nodeType, builder.nodeType.EntityDeclaration ) eq( ent.publicId, 'pub' ) eq( ent.systemId, 'sys' ...
eq( pent.publicId, 'pub' ) eq( pent.systemId, 'sys' ) eq( pent.notationName, null ) test 'ProcessingInstruction', -> node = xml('root').ins('target', 'value').children[0] eq( node.target, 'target' ) eq( node.data, 'value' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
1f064094673cce4898097446651b0d49a0ca2dcb
926
https://github.com/oozcitak/xmlbuilder-js/blob/1f064094673cce4898097446651b0d49a0ca2dcb/test/dom/level1.coffee
127
143
oozcitak/xmlbuilder-js:test/dom/level1.coffee:2:raw_corpus
raw_corpus
eq( node.nodeName, 'node' ) eq( node.nodeType, builder.nodeType.Element ) eq( node.parentNode.nodeName, 'root' ) eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.firstChild.nodeName, 'child1' ) eq( node...
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/test/dom/level1.coffee
41
79
oozcitak/xmlbuilder-js:test/dom/level1.coffee:2:completion
completion
eq( node.nodeName, 'node' ) eq( node.nodeType, builder.nodeType.Element ) eq( node.parentNode.nodeName, 'root' ) eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.firstChild.nodeName, 'child1' ) eq( node...
node.ele('child1').up().ele('child2').up().ele('child3') eq( node.childNodes.length, 3 ) eq( node.childNodes.item(0).nodeName, 'child1' ) eq( node.childNodes.item(1).nodeName, 'child2' ) eq( node.childNodes.item(2).nodeName, 'child3' ) eq( node.childNodes.item(3), null ) test 'NamedNodeMap', -> ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/dom/level1.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/test/dom/level1.coffee
41
79
JoelBesada/activate-power-mode:lib/service.coffee:1:raw_corpus
raw_corpus
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin co...
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service.coffee
1
28
JoelBesada/activate-power-mode:lib/service.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerP...
var ParticlesEffect, Service; ParticlesEffect = require("./effect/particles"); module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; this.effectRegistry = effectRegistry; } regis...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service.coffee
1
28
JoelBesada/activate-power-mode:lib/service.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ParticlesEffect, Service; ParticlesEffect = require("./effect/particles"); module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry;...
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin co...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service.coffee
1
28
JoelBesada/activate-power-mode:lib/service.coffee:1:completion
completion
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin co...
registerEffect: (code, effect) -> @effectRegistry.addEffect code, effect unregisterPlugin: (code) -> @pluginRegistry.removePlugin code unregisterFlow: (code) -> @flowRegistry.removeFlow code unregisterEffect: (code) -> @effectRegistry.removeEffect code createParticlesEffect: (particleManager...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service.coffee
1
28
JoelBesada/activate-power-mode:lib/service.coffee:1:raw_corpus
raw_corpus
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin co...
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
2d33f61abbb0dfc2634596b097b302edd0f2bd4b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/2d33f61abbb0dfc2634596b097b302edd0f2bd4b/lib/service.coffee
1
19
JoelBesada/activate-power-mode:lib/service.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerP...
var ParticlesEffect, Service; ParticlesEffect = require("./effect/particles"); module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; this.effectRegistry = effectRegistry; } regis...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
2d33f61abbb0dfc2634596b097b302edd0f2bd4b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/2d33f61abbb0dfc2634596b097b302edd0f2bd4b/lib/service.coffee
1
19
JoelBesada/activate-power-mode:lib/service.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ParticlesEffect, Service; ParticlesEffect = require("./effect/particles"); module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry;...
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin co...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
2d33f61abbb0dfc2634596b097b302edd0f2bd4b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/2d33f61abbb0dfc2634596b097b302edd0f2bd4b/lib/service.coffee
1
19
JoelBesada/activate-power-mode:lib/service.coffee:1:completion
completion
ParticlesEffect = require "./effect/particles" module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) ->
@pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> @flowRegistry.addFlow code, flow registerEffect: (code, effect) -> @effectRegistry.addEffect code, effect createParticlesEffect: (particleManager) -> new ParticlesEffect(particleManager)
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
2d33f61abbb0dfc2634596b097b302edd0f2bd4b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/2d33f61abbb0dfc2634596b097b302edd0f2bd4b/lib/service.coffee
1
19
JoelBesada/activate-power-mode:lib/service.coffee:1:raw_corpus
raw_corpus
module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> ...
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
70cdc43d6acba3bde34121da4c0984bf0bf272fa
3,570
https://github.com/JoelBesada/activate-power-mode/blob/70cdc43d6acba3bde34121da4c0984bf0bf272fa/lib/service.coffee
1
14
JoelBesada/activate-power-mode:lib/service.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.add...
var Service; module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; this.effectRegistry = effectRegistry; } registerPlugin(code, plugin) { return this.pluginRegistry.addPlugin(...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
70cdc43d6acba3bde34121da4c0984bf0bf272fa
3,570
https://github.com/JoelBesada/activate-power-mode/blob/70cdc43d6acba3bde34121da4c0984bf0bf272fa/lib/service.coffee
1
14
JoelBesada/activate-power-mode:lib/service.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Service; module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry, effectRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; this.effectRegistry = effectRegistry; } registerPlugin(co...
module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> ...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
70cdc43d6acba3bde34121da4c0984bf0bf272fa
3,570
https://github.com/JoelBesada/activate-power-mode/blob/70cdc43d6acba3bde34121da4c0984bf0bf272fa/lib/service.coffee
1
14
JoelBesada/activate-power-mode:lib/service.coffee:1:completion
completion
module.exports = class Service constructor: (pluginRegistry, flowRegistry, effectRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry @effectRegistry = effectRegistry registerPlugin: (code, plugin) ->
@pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> @flowRegistry.addFlow code, flow registerEffect: (code, effect) -> @effectRegistry.addEffect code, effect
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
70cdc43d6acba3bde34121da4c0984bf0bf272fa
3,570
https://github.com/JoelBesada/activate-power-mode/blob/70cdc43d6acba3bde34121da4c0984bf0bf272fa/lib/service.coffee
1
14
JoelBesada/activate-power-mode:lib/service.coffee:1:raw_corpus
raw_corpus
module.exports = class Service constructor: (pluginRegistry, flowRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> @flowRegistry.addFlow code, flow
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
728fa02fb21976bb52d7e626ac5bde381e9698e2
3,570
https://github.com/JoelBesada/activate-power-mode/blob/728fa02fb21976bb52d7e626ac5bde381e9698e2/lib/service.coffee
1
10
JoelBesada/activate-power-mode:lib/service.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Service constructor: (pluginRegistry, flowRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> ...
var Service; module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; } registerPlugin(code, plugin) { return this.pluginRegistry.addPlugin(code, plugin); } registerFlow(code, flow) { retur...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
728fa02fb21976bb52d7e626ac5bde381e9698e2
3,570
https://github.com/JoelBesada/activate-power-mode/blob/728fa02fb21976bb52d7e626ac5bde381e9698e2/lib/service.coffee
1
10
JoelBesada/activate-power-mode:lib/service.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Service; module.exports = Service = class Service { constructor(pluginRegistry, flowRegistry) { this.pluginRegistry = pluginRegistry; this.flowRegistry = flowRegistry; } registerPlugin(code, plugin) { return this.pluginRegistry.addPlugin(cod...
module.exports = class Service constructor: (pluginRegistry, flowRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> @flowRegistry.addFlow code, flow
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
728fa02fb21976bb52d7e626ac5bde381e9698e2
3,570
https://github.com/JoelBesada/activate-power-mode/blob/728fa02fb21976bb52d7e626ac5bde381e9698e2/lib/service.coffee
1
10
JoelBesada/activate-power-mode:lib/service.coffee:1:completion
completion
module.exports = class Service constructor: (pluginRegistry, flowRegistry) -> @pluginRegistry = pluginRegistry @flowRegistry = flowRegistry
registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin registerFlow: (code, flow) -> @flowRegistry.addFlow code, flow
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
728fa02fb21976bb52d7e626ac5bde381e9698e2
3,570
https://github.com/JoelBesada/activate-power-mode/blob/728fa02fb21976bb52d7e626ac5bde381e9698e2/lib/service.coffee
1
10
JoelBesada/activate-power-mode:lib/service.coffee:1:raw_corpus
raw_corpus
module.exports = class Service constructor: (pluginRegistry) -> @pluginRegistry = pluginRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/service.coffee
1
6
JoelBesada/activate-power-mode:lib/service.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Service constructor: (pluginRegistry) -> @pluginRegistry = pluginRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin ```
var Service; module.exports = Service = class Service { constructor(pluginRegistry) { this.pluginRegistry = pluginRegistry; } registerPlugin(code, plugin) { return this.pluginRegistry.addPlugin(code, plugin); } };
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/service.coffee
1
6
JoelBesada/activate-power-mode:lib/service.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Service; module.exports = Service = class Service { constructor(pluginRegistry) { this.pluginRegistry = pluginRegistry; } registerPlugin(code, plugin) { return this.pluginRegistry.addPlugin(code, plugin); } }; ```
module.exports = class Service constructor: (pluginRegistry) -> @pluginRegistry = pluginRegistry registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/service.coffee
1
6
JoelBesada/activate-power-mode:lib/service.coffee:1:completion
completion
module.exports = class Service constructor: (pluginRegistry) -> @pluginRegistry = pluginRegistry
registerPlugin: (code, plugin) -> @pluginRegistry.addPlugin code, plugin
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service.coffee
MIT
cf6d84275d428b98b5e8633cbc0a0a030feb25ab
3,570
https://github.com/JoelBesada/activate-power-mode/blob/cf6d84275d428b98b5e8633cbc0a0a030feb25ab/lib/service.coffee
1
6
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:2:raw_corpus
raw_corpus
controlOffset = $dashboardControls.offset() controlWidth = $dashboardControls.width() controlHeight = $dashboardControls.height() padX = configService.dashboard.controls.hitPaddingX padY = configService.dashboard.controls.hitPaddingY retur...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
42
84
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:2:completion
completion
controlOffset = $dashboardControls.offset() controlWidth = $dashboardControls.width() controlHeight = $dashboardControls.height() padX = configService.dashboard.controls.hitPaddingX padY = configService.dashboard.controls.hitPaddingY retur...
# Set timer to remove the controls after some delay $timeout.cancel(controlTimer) if controlTimer? controlTimer = $timeout(makeControlsDisappear, configService.dashboard.controls.duration) , 500, { leading: true }) controlHitTest = (event) -> ret...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
42
84
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:3:raw_corpus
raw_corpus
# # Bind mousemove event for entire document (remove during $destroy) # $(document).on 'mousemove', controlHitTest $(document).on 'scroll', calculateMouseTarget $(window).on 'resize', _.debounce(calculateMouseTarget, 500, { leading: false }) # ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
86
107
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:3:completion
completion
# # Bind mousemove event for entire document (remove during $destroy) # $(document).on 'mousemove', controlHitTest $(document).on 'scroll', calculateMouseTarget $(window).on 'resize', _.debounce(calculateMouseTarget, 500, { leading: false }) # ...
# scope.$on '$destroy', -> $(document).off 'mousemove', controlHitTest $(document).off 'scroll', calculateMouseTarget $(window).off 'resize', calculateMouseTarget # Cancel timer $timeout.cancel(controlTimer) if controlTimer? ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
86
107
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:2:raw_corpus
raw_corpus
controlOffset = $dashboardControls.offset() controlWidth = $dashboardControls.width() controlHeight = $dashboardControls.height() padX = configService.dashboard.controls.hitPaddingX padY = configService.dashboard.controls.hitPaddingY retur...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
41
83
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:2:completion
completion
controlOffset = $dashboardControls.offset() controlWidth = $dashboardControls.width() controlHeight = $dashboardControls.height() padX = configService.dashboard.controls.hitPaddingX padY = configService.dashboard.controls.hitPaddingY retur...
# Set timer to remove the controls after some delay $timeout.cancel(scope.controlTimer) if scope.controlTimer? scope.controlTimer = $timeout(makeControlsDisappear, configService.dashboard.controls.duration) , 500, { leading: true }) controlHitTest = (event) -> ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
41
83
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:3:raw_corpus
raw_corpus
# # Bind mousemove event for entire document (remove during $destroy) # $(document).on 'mousemove', controlHitTest $(document).on 'scroll', calculateMouseTarget $(window).on 'resize', _.debounce(-> scope.$apply(calculateMouseTarget) ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
85
108
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee:3:completion
completion
# # Bind mousemove event for entire document (remove during $destroy) # $(document).on 'mousemove', controlHitTest $(document).on 'scroll', calculateMouseTarget $(window).on 'resize', _.debounce(-> scope.$apply(calculateMouseTarget) ...
# Cleanup # scope.$on '$destroy', -> $(document).off 'mousemove', controlHitTest $(document).off 'scroll', calculateMouseTarget $(window).off 'resize', calculateMouseTarget # Cancel timer $timeout.cancel(scope.contr...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.dashboard.coffee
85
108
Glavin001/atom-beautify:src/languages/python.coffee:1:raw_corpus
raw_corpus
# Get Atom defaults scope = ['source.python'] 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 so...
CoffeeScript
Glavin001/atom-beautify
src/languages/python.coffee
MIT
d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78
1,503
https://github.com/Glavin001/atom-beautify/blob/d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78/src/languages/python.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/controllers/cms/notice.coffee:1:raw_corpus
raw_corpus
limbo = require 'limbo' validator = require 'validator' _ = require 'lodash' app = require '../../server' {NoticeModel} = limbo.use 'talk' module.exports = noticeController = app.controller 'cms/notice', -> @ensure 'content', only: 'create' editableFields = [ 'content' 'postAt' ] @action 'readOne'...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/cms/notice.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/cms/notice.coffee
1
50