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
soulwire/Coffee-Physics:source/base.coffee:1:completion
completion
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
window.cancelAnimationFrame = window[ vendor + 'CancelAnimationFrame'] if not window.requestAnimationFrame window.requestAnimationFrame = (callback, element) -> now = new Date().getTime() delta = Math.max 0, 16 - (now - old) setTimeout (-> callback(time + delta)), delta...
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:raw_corpus
raw_corpus
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
d2a6ff32dc248520e55829a24ac12b4d144193f9
1,053
https://github.com/soulwire/Coffee-Physics/blob/d2a6ff32dc248520e55829a24ac12b4d144193f9/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors ...
/* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results.push(root = root[path] != null ? root[path] : root[pat...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/base.coffee
MIT
d2a6ff32dc248520e55829a24ac12b4d144193f9
1,053
https://github.com/soulwire/Coffee-Physics/blob/d2a6ff32dc248520e55829a24ac12b4d144193f9/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results...
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
d2a6ff32dc248520e55829a24ac12b4d144193f9
1,053
https://github.com/soulwire/Coffee-Physics/blob/d2a6ff32dc248520e55829a24ac12b4d144193f9/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:completion
completion
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
window.cancelRequestAnimationFrame = window[ vendor + 'CancelRequestAnimationFrame'] if not window.requestAnimationFrame window.requestAnimationFrame = (callback, element) -> now = new Date().getTime() delta = Math.max 0, 16 - (now - old) setTimeout (-> callback(time + ...
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
d2a6ff32dc248520e55829a24ac12b4d144193f9
1,053
https://github.com/soulwire/Coffee-Physics/blob/d2a6ff32dc248520e55829a24ac12b4d144193f9/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:raw_corpus
raw_corpus
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
891afe49bab76b9180b758296a500767bddf5e4b
1,053
https://github.com/soulwire/Coffee-Physics/blob/891afe49bab76b9180b758296a500767bddf5e4b/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors ...
/* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results.push(root = root[path] != null ? root[path] : root[pat...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/base.coffee
MIT
891afe49bab76b9180b758296a500767bddf5e4b
1,053
https://github.com/soulwire/Coffee-Physics/blob/891afe49bab76b9180b758296a500767bddf5e4b/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results...
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
891afe49bab76b9180b758296a500767bddf5e4b
1,053
https://github.com/soulwire/Coffee-Physics/blob/891afe49bab76b9180b758296a500767bddf5e4b/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:completion
completion
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
window.cancelRequestAnimationFrame = window[ vendor + 'CancelRequestAnimationFrame']; if not window.requestAnimationFrame window.requestAnimationFrame = (callback, element) -> now = new Date().getTime() delta = Math.max 0, 16 - (now - old) setTimeout (-> callback(time +...
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
891afe49bab76b9180b758296a500767bddf5e4b
1,053
https://github.com/soulwire/Coffee-Physics/blob/891afe49bab76b9180b758296a500767bddf5e4b/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:raw_corpus
raw_corpus
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors ...
/* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results.push(root = root[path] != null ? root[path] : root[pat...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/base.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Allows safe, dyamic creation of namespaces. */ var namespace; namespace = function(id) { var i, len, path, ref, results, root; root = self; ref = id.split('.'); results = []; for (i = 0, len = ref.length; i < len; i++) { path = ref[i]; results...
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/base.coffee
1
28
soulwire/Coffee-Physics:source/base.coffee:1:completion
completion
### Allows safe, dyamic creation of namespaces. ### namespace = (id) -> root = self root = root[path] ?= {} for path in id.split '.' ### RequestAnimationFrame shim. ### do -> time = 0 vendors = ['ms', 'moz', 'webkit', 'o'] for vendor in vendors when not window.requestAnimationFrame window.requ...
window.cancelRequestAnimationFrame = window[ vendor + 'CancelRequestAnimationFrame']; if not window.requestAnimationFrame window.requestAnimationFrame = (callback, element) -> now = new Date.getTime() delta = Math.max 0, 16 - (now - old) setTimeout (-> callback(time + d...
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/base.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/base.coffee
1
28
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:1:raw_corpus
raw_corpus
eventually = (condition, cb) -> poll = setInterval(-> if condition() clearInterval poll cb() , 200) setup = ({logged_in, as_admin, other_admin}, cb) -> run_actual_test = cb Meteor.call "test/clear_users", (err) -> expect(err).toBeUndefined() _setup_user = -> if logged_in A...
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
1
50
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript eventually = (condition, cb) -> poll = setInterval(-> if condition() clearInterval poll cb() , 200) setup = ({logged_in, as_admin, other_admin}, cb) -> run_actual_test = cb Meteor.call "test/clear_users", (err) -> expect(err).toBeUnde...
var eventually, setup; eventually = function(condition, cb) { var poll; return poll = setInterval(function() { if (condition()) { clearInterval(poll); return cb(); } }, 200); }; setup = function({logged_in, as_admin, other_admin}, cb) { var run_actual_test; run_actual_test = cb; return...
CoffeeScript
JavaScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
1
50
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var eventually, setup; eventually = function(condition, cb) { var poll; return poll = setInterval(function() { if (condition()) { clearInterval(poll); return cb(); } }, 200); }; setup = function({logged_in, as_admin, other_admin}, cb) { ...
eventually = (condition, cb) -> poll = setInterval(-> if condition() clearInterval poll cb() , 200) setup = ({logged_in, as_admin, other_admin}, cb) -> run_actual_test = cb Meteor.call "test/clear_users", (err) -> expect(err).toBeUndefined() _setup_user = -> if logged_in A...
JavaScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
1
50
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:1:completion
completion
eventually = (condition, cb) -> poll = setInterval(-> if condition() clearInterval poll cb() , 200) setup = ({logged_in, as_admin, other_admin}, cb) -> run_actual_test = cb Meteor.call "test/clear_users", (err) -> expect(err).toBeUndefined() _setup_user = -> if logged_in A...
Houston._call 'make_admin', Meteor.userId(), (err) -> expect(err).toBeUndefined() Meteor.logout (err) -> expect(err).toBeUndefined() _setup_user() else _setup_user() describe "Can't access Meteor unless logged in", -> it "not logged in, no admin? offer to crete a...
CoffeeScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
1
50
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:raw_corpus
raw_corpus
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
51
80
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin",...
eventually(url_changed, function() { var $signin_form; $signin_form = $('#houston-sign-in-form'); expect($signin_form[0]).not.toBeUndefined(); expect($signin_form.html()).toMatch(/Log In/); return done(); }); it("logged in, no admin? should offer to Claim Admin", function(done) { return setup({ logged_...
CoffeeScript
JavaScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
51
80
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript eventually(url_changed, function() { var $signin_form; $signin_form = $('#houston-sign-in-form'); expect($signin_form[0]).not.toBeUndefined(); expect($signin_form.html()).toMatch(/Log In/); return done(); }); it("logged in, no admin? should offer to Clai...
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
JavaScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
51
80
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:completion
completion
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
it "tells you to go away if an admin exists", (done) -> setup {logged_in: true, as_admin: false, other_admin: true}, -> Houston._go "home" url_changed = -> window.location.pathname is "/admin/login" eventually url_changed, -> expect($('#become-houston-admin').length).toEqual(...
CoffeeScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/test/test_app/tests/jasmine/client/integration/Login.coffee
51
80
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:raw_corpus
raw_corpus
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8
802
https://github.com/gterrono/houston/blob/b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8/test/test_app/tests/jasmine/client/integration/Login.coffee
51
75
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin",...
eventually(url_changed, function() { var $signin_form; $signin_form = $('#houston-sign-in-form'); expect($signin_form[0]).not.toBeUndefined(); expect($signin_form.html()).toMatch(/Log In/); return done(); }); it("logged in, no admin? should offer to Claim Admin", function(done) { return setup({ logged_...
CoffeeScript
JavaScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8
802
https://github.com/gterrono/houston/blob/b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8/test/test_app/tests/jasmine/client/integration/Login.coffee
51
75
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript eventually(url_changed, function() { var $signin_form; $signin_form = $('#houston-sign-in-form'); expect($signin_form[0]).not.toBeUndefined(); expect($signin_form.html()).toMatch(/Log In/); return done(); }); it("logged in, no admin? should offer to Clai...
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
JavaScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8
802
https://github.com/gterrono/houston/blob/b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8/test/test_app/tests/jasmine/client/integration/Login.coffee
51
75
gterrono/houston:test/test_app/tests/jasmine/client/integration/Login.coffee:2:completion
completion
eventually url_changed, -> $signin_form = $('#houston-sign-in-form') expect($signin_form[0]).not.toBeUndefined() expect($signin_form.html()).toMatch(/Log In/) done() it "logged in, no admin? should offer to Claim Admin", (done) -> setup {logged_in: true, as_admin: fa...
expect($('#become-houston-admin').length).toEqual(1) expect($('.form-heading').first().html()).toMatch(/You are not an Admin./) done() it "tells you to go away if an admin exists", (done) -> setup {logged_in: true, as_admin: false, other_admin: true}, -> Houston._go "home" ...
CoffeeScript
CoffeeScript
gterrono/houston
test/test_app/tests/jasmine/client/integration/Login.coffee
MIT
b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8
802
https://github.com/gterrono/houston/blob/b3df6cc913b2a71f5eaab8bc693a15a8018ba6a8/test/test_app/tests/jasmine/client/integration/Login.coffee
51
75
meltingice/psd.js:lib/psd/layer_info/blend_clipping_elements.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' module.exports = class BlendClippingElements extends LayerInfo @shouldParse: (key) -> key is 'clbl' parse: -> @enabled = @file.readBoolean() @file.seek 3, true
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_clipping_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_clipping_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_clipping_elements.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' module.exports = class BlendClippingElements extends LayerInfo @shouldParse: (key) -> key is 'clbl' parse: -> @enabled = @file.readBoolean() @file.seek 3, true ```
var BlendClippingElements, LayerInfo; LayerInfo = require('../layer_info.coffee'); module.exports = BlendClippingElements = class BlendClippingElements extends LayerInfo { static shouldParse(key) { return key === 'clbl'; } parse() { this.enabled = this.file.readBoolean(); return this.file.seek(3, t...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/blend_clipping_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_clipping_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_clipping_elements.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BlendClippingElements, LayerInfo; LayerInfo = require('../layer_info.coffee'); module.exports = BlendClippingElements = class BlendClippingElements extends LayerInfo { static shouldParse(key) { return key === 'clbl'; } parse() { this.enabled = ...
LayerInfo = require '../layer_info.coffee' module.exports = class BlendClippingElements extends LayerInfo @shouldParse: (key) -> key is 'clbl' parse: -> @enabled = @file.readBoolean() @file.seek 3, true
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_clipping_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_clipping_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_clipping_elements.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' module.exports = class BlendClippingElements extends LayerInfo @shouldParse: (key) -> key is 'clbl'
parse: -> @enabled = @file.readBoolean() @file.seek 3, true
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_clipping_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_clipping_elements.coffee
1
8
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/file.coffee:1:raw_corpus
raw_corpus
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = FileSchemaConstructor = -> FileSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String imageWid...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/file.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = FileSchemaConstructor = -> FileSchema = new Schema fileKey: String fileName: String fileType: String ...
// File attachment schema var FileSchemaConstructor, Schema, striker, util; ({Schema} = require('mongoose')); striker = require('../../components/striker'); util = require('../../util'); module.exports = FileSchemaConstructor = function() { var FileSchema; FileSchema = new Schema({ fileKey: String, file...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/file.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // File attachment schema var FileSchemaConstructor, Schema, striker, util; ({Schema} = require('mongoose')); striker = require('../../components/striker'); util = require('../../util'); module.exports = FileSchemaConstructor = function() { var FileSchema; ...
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = FileSchemaConstructor = -> FileSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String imageWid...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/file.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/file.coffee:1:completion
completion
# File attachment schema {Schema} = require 'mongoose' striker = require '../../components/striker' util = require '../../util' module.exports = FileSchemaConstructor = -> FileSchema = new Schema fileKey: String fileName: String fileType: String fileSize: Number fileCategory: String
imageWidth: Number imageHeight: Number FileSchema.virtual 'downloadUrl' .get -> striker.downloadUrl this FileSchema.virtual 'thumbnailUrl' .get -> striker.thumbnailUrl this, width: 400, height: 400 FileSchema.virtual 'previewUrl' .get -> striker.previewUrl this FileSchema
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/file.coffee
1
26
linemanjs/lineman:config/plugins/webfonts.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: webfonts: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/webfonts.coffee
1
12
linemanjs/lineman:config/plugins/webfonts.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: webfonts: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist" ```
module.exports = function(lineman) { return { config: { webfonts: { files: { "vendor/webfonts/": "<%= files.webfonts.vendor %>" }, root: "<%= files.webfonts.root %>", dev: { dest: "generated" }, dist: { dest: "dist" } ...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/webfonts.coffee
1
12
linemanjs/lineman:config/plugins/webfonts.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { webfonts: { files: { "vendor/webfonts/": "<%= files.webfonts.vendor %>" }, root: "<%= files.webfonts.root %>", dev: { dest: "generated" }...
module.exports = (lineman) -> config: webfonts: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/webfonts.coffee
1
12
linemanjs/lineman:config/plugins/webfonts.coffee:1:completion
completion
module.exports = (lineman) -> config: webfonts: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>"
root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/webfonts.coffee
1
12
linemanjs/lineman:config/plugins/webfonts.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/webfonts.coffee
1
11
linemanjs/lineman:config/plugins/webfonts.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist" ```
module.exports = function(lineman) { return { config: { files: { "vendor/webfonts/": "<%= files.webfonts.vendor %>" }, root: "<%= files.webfonts.root %>", dev: { dest: "generated" }, dist: { dest: "dist" } } }; };
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/webfonts.coffee
1
11
linemanjs/lineman:config/plugins/webfonts.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { files: { "vendor/webfonts/": "<%= files.webfonts.vendor %>" }, root: "<%= files.webfonts.root %>", dev: { dest: "generated" }, dist: { dest: "d...
module.exports = (lineman) -> config: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>" root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/webfonts.coffee
1
11
linemanjs/lineman:config/plugins/webfonts.coffee:1:completion
completion
module.exports = (lineman) -> config: files: "vendor/webfonts/": "<%= files.webfonts.vendor %>"
root: "<%= files.webfonts.root %>" dev: dest: "generated" dist: dest: "dist"
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/webfonts.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/webfonts.coffee
1
11
dropbox/zxcvbn:main.coffee:1:raw_corpus
raw_corpus
Matching = require('./matching') Scoring = require('./scoring') time = -> (new Date()).getTime() zxcvbn = (password, user_inputs = []) -> start = time() # reset the user inputs matcher on a per-request basis to keep things stateless sanitized_inputs = [] for arg in user_inputs if typeof arg in ["string", ...
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
0713bcc81957fe4dee5521f166d6554883fcea1c
15,961
https://github.com/dropbox/zxcvbn/blob/0713bcc81957fe4dee5521f166d6554883fcea1c/main.coffee
1
19
dropbox/zxcvbn:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Matching = require('./matching') Scoring = require('./scoring') time = -> (new Date()).getTime() zxcvbn = (password, user_inputs = []) -> start = time() # reset the user inputs matcher on a per-request basis to keep things stateless sanitized_inputs = [] ...
var Matching, Scoring, time, zxcvbn; Matching = require('./matching'); Scoring = require('./scoring'); time = function() { return (new Date()).getTime(); }; zxcvbn = function(password, user_inputs = []) { var arg, i, len, matches, ref, result, sanitized_inputs, start; start = time(); // reset the user input...
CoffeeScript
JavaScript
dropbox/zxcvbn
main.coffee
MIT
0713bcc81957fe4dee5521f166d6554883fcea1c
15,961
https://github.com/dropbox/zxcvbn/blob/0713bcc81957fe4dee5521f166d6554883fcea1c/main.coffee
1
19
dropbox/zxcvbn:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Matching, Scoring, time, zxcvbn; Matching = require('./matching'); Scoring = require('./scoring'); time = function() { return (new Date()).getTime(); }; zxcvbn = function(password, user_inputs = []) { var arg, i, len, matches, ref, result, sanitized_inp...
Matching = require('./matching') Scoring = require('./scoring') time = -> (new Date()).getTime() zxcvbn = (password, user_inputs = []) -> start = time() # reset the user inputs matcher on a per-request basis to keep things stateless sanitized_inputs = [] for arg in user_inputs if typeof arg in ["string", ...
JavaScript
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
0713bcc81957fe4dee5521f166d6554883fcea1c
15,961
https://github.com/dropbox/zxcvbn/blob/0713bcc81957fe4dee5521f166d6554883fcea1c/main.coffee
1
19
dropbox/zxcvbn:main.coffee:1:completion
completion
Matching = require('./matching') Scoring = require('./scoring') time = -> (new Date()).getTime() zxcvbn = (password, user_inputs = []) -> start = time() # reset the user inputs matcher on a per-request basis to keep things stateless sanitized_inputs = []
for arg in user_inputs if typeof arg in ["string", "number", "boolean"] sanitized_inputs.push arg.toString().toLowerCase() Matching.set_user_input_dictionary sanitized_inputs matches = Matching.omnimatch password result = Scoring.minimum_entropy_match_sequence password, matches result.calc_time = time...
CoffeeScript
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
0713bcc81957fe4dee5521f166d6554883fcea1c
15,961
https://github.com/dropbox/zxcvbn/blob/0713bcc81957fe4dee5521f166d6554883fcea1c/main.coffee
1
19
dropbox/zxcvbn:main.coffee:1:raw_corpus
raw_corpus
ZXCVBN_SRC = '../zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript' s.async = true first = document.getElementsByTagName('script')[0] first.parentNode.insertBefore s, firs...
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
9416d0fa68cffb9a175e75b4b3fb0431ed7a2441
15,961
https://github.com/dropbox/zxcvbn/blob/9416d0fa68cffb9a175e75b4b3fb0431ed7a2441/main.coffee
1
15
dropbox/zxcvbn:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ZXCVBN_SRC = '../zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript' s.async = true first = document.getElementsByTag...
var ZXCVBN_SRC, async_load; ZXCVBN_SRC = '../zxcvbn.js'; // adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = function() { var first, s; s = document.createElement('script'); s.src = ZXCVBN_SRC; s.type = 'text/javascript'; s.async = true; first = document.getElements...
CoffeeScript
JavaScript
dropbox/zxcvbn
main.coffee
MIT
9416d0fa68cffb9a175e75b4b3fb0431ed7a2441
15,961
https://github.com/dropbox/zxcvbn/blob/9416d0fa68cffb9a175e75b4b3fb0431ed7a2441/main.coffee
1
15
dropbox/zxcvbn:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ZXCVBN_SRC, async_load; ZXCVBN_SRC = '../zxcvbn.js'; // adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = function() { var first, s; s = document.createElement('script'); s.src = ZXCVBN_SRC; s.type = 'text/javasc...
ZXCVBN_SRC = '../zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript' s.async = true first = document.getElementsByTagName('script')[0] first.parentNode.insertBefore s, firs...
JavaScript
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
9416d0fa68cffb9a175e75b4b3fb0431ed7a2441
15,961
https://github.com/dropbox/zxcvbn/blob/9416d0fa68cffb9a175e75b4b3fb0431ed7a2441/main.coffee
1
15
dropbox/zxcvbn:main.coffee:1:completion
completion
ZXCVBN_SRC = '../zxcvbn.js' # adapted from http://friendlybit.com/js/lazy-loading-asyncronous-javascript/ async_load = -> s = document.createElement 'script' s.src = ZXCVBN_SRC s.type = 'text/javascript'
s.async = true first = document.getElementsByTagName('script')[0] first.parentNode.insertBefore s, first if window.attachEvent? window.attachEvent 'onload', async_load else window.addEventListener 'load', async_load, false
CoffeeScript
CoffeeScript
dropbox/zxcvbn
main.coffee
MIT
9416d0fa68cffb9a175e75b4b3fb0431ed7a2441
15,961
https://github.com/dropbox/zxcvbn/blob/9416d0fa68cffb9a175e75b4b3fb0431ed7a2441/main.coffee
1
15
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'bind-email' propTypes: store: React.PropTypes.instanceOf(Immutable.Map).isRequired getInitialState: -> randomCode: '' showVerifyMobile: false bindCode: null showForceBind: false error: null getAccount: -> @props.store.getIn(['client...
CoffeeScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
14
63
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'bind-email' propTypes: store: React.PropTypes.instanceOf(Immutable.Map).isRequired getInitialState: -> randomCode: '' showVerifyMobile: false bindCode: null showForceBind: false erro...
module.exports = React.createClass({ displayName: 'bind-email', propTypes: { store: React.PropTypes.instanceOf(Immutable.Map).isRequired }, getInitialState: function() { return { randomCode: '', showVerifyMobile: false, bindCode: null, showForceBind: false, error: null ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
14
63
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'bind-email', propTypes: { store: React.PropTypes.instanceOf(Immutable.Map).isRequired }, getInitialState: function() { return { randomCode: '', showVerifyMobile: false, bindCode: n...
module.exports = React.createClass displayName: 'bind-email' propTypes: store: React.PropTypes.instanceOf(Immutable.Map).isRequired getInitialState: -> randomCode: '' showVerifyMobile: false bindCode: null showForceBind: false error: null getAccount: -> @props.store.getIn(['client...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
14
63
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:1:completion
completion
module.exports = React.createClass displayName: 'bind-email' propTypes: store: React.PropTypes.instanceOf(Immutable.Map).isRequired getInitialState: -> randomCode: '' showVerifyMobile: false bindCode: null showForceBind: false error: null getAccount: -> @props.store.getIn(['client...
onAccountChange: (event) -> if detect.isQQEmail event.target.value error = locales.get 'warningAboutQQEmail', @getLanguage() @setState error: error or null controllers.updateAccount event.target.value onBack: -> @setState showVerifyMobile: false onSubmit: (event) -> event.preventDefault...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
14
63
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:2:raw_corpus
raw_corpus
error = JSON.parse err.response @setState error: error.message else @setState error: locales.get('unknownAccountType', @getLanguage()) render: -> form className: 'bind-email control-panel', onSubmit: @onSubmit, div className: 'as-line-centered', if @isChangingBinding() ...
CoffeeScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
64
94
jianliaoim/talk-os:talk-account/client/app/bind-email.coffee:2:completion
completion
error = JSON.parse err.response @setState error: error.message else @setState error: locales.get('unknownAccountType', @getLanguage()) render: -> form className: 'bind-email control-panel', onSubmit: @onSubmit, div className: 'as-line-centered', if @isChangingBinding() ...
type: 'email', value: @getAccount(), onChange: @onAccountChange placeholder: locales.get('email', @getLanguage()) autoFocus: true if detect.isEmail(@getAccount()) span className: 'icon icon-tick ok-icon' Space height: 35 if @state.error? div className: 'as-line'...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-account/client/app/bind-email.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/app/bind-email.coffee
64
94
meltingice/psd.js:lib/psd/nodes/build_preview.coffee:1:raw_corpus
raw_corpus
module.exports = toPng: -> @layer.image.toPng() saveAsPng: (output) -> @layer.image.saveAsPng(output)
CoffeeScript
meltingice/psd.js
lib/psd/nodes/build_preview.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/nodes/build_preview.coffee
1
3
meltingice/psd.js:lib/psd/nodes/build_preview.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = toPng: -> @layer.image.toPng() saveAsPng: (output) -> @layer.image.saveAsPng(output) ```
module.exports = { toPng: function() { return this.layer.image.toPng(); }, saveAsPng: function(output) { return this.layer.image.saveAsPng(output); } };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/nodes/build_preview.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/nodes/build_preview.coffee
1
3
meltingice/psd.js:lib/psd/nodes/build_preview.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { toPng: function() { return this.layer.image.toPng(); }, saveAsPng: function(output) { return this.layer.image.saveAsPng(output); } }; ```
module.exports = toPng: -> @layer.image.toPng() saveAsPng: (output) -> @layer.image.saveAsPng(output)
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/nodes/build_preview.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/nodes/build_preview.coffee
1
3
ichord/At.js:spec/coffeescripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
1
50
ichord/At.js:spec/coffeescripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); describe("inner", function() { var callb...
CoffeeScript
JavaScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
1
50
ichord/At.js:spec/coffeescripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor...
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
JavaScript
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
1
50
ichord/At.js:spec/coffeescripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
data = [{id: 1, name: "one"}, {id: 2, name: "two"}] controller.model.save(data) expect(controller.model.fetch().length).toBe 2 it "don't change data setting while using remote filter", -> jasmine.Ajax.install() $inputor.atwho at: "@" data: "/atwho.json" simulateTyping...
CoffeeScript
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
1
50
ichord/At.js:spec/coffeescripts/apis.spec.coffee:2:raw_corpus
raw_corpus
beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load data for special flag", -> $inputor.atwho "load", "@", data expect(controller.model.fetch().length).toBe data.length it "can load data with alias", -> $i...
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
51
73
ichord/At.js:spec/coffeescripts/apis.spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load data for special flag", -> $inputor.atwho "load", "@", data expect(controller.model.fetch().length).toBe da...
beforeEach(function() { var controller, data; controller = app.controller(); return data = [ { one: 1 }, { two: 2 }, { three: 3 } ]; }); it("can load data for special flag", function() { $inputor.atwho("load", "@", data); return expect(controller.model.fetch().leng...
CoffeeScript
JavaScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
51
73
ichord/At.js:spec/coffeescripts/apis.spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript beforeEach(function() { var controller, data; controller = app.controller(); return data = [ { one: 1 }, { two: 2 }, { three: 3 } ]; }); it("can load data for special flag", function() { $inputor.atwho("load", "@...
beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load data for special flag", -> $inputor.atwho "load", "@", data expect(controller.model.fetch().length).toBe data.length it "can load data with alias", -> $i...
JavaScript
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
51
73
ichord/At.js:spec/coffeescripts/apis.spec.coffee:2:completion
completion
beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load data for special flag", -> $inputor.atwho "load", "@", data expect(controller.model.fetch().length).toBe data.length
it "can load data with alias", -> $inputor.atwho at: "@", alias: "at" $inputor.atwho "load", "at", data expect(controller.model.fetch().length).toBe data.length it "can run it handly", -> app.set_context_for null $inputor.caret('pos', 31) $inputor.atwho "run" expect(app.c...
CoffeeScript
CoffeeScript
ichord/At.js
spec/coffeescripts/apis.spec.coffee
MIT
05e394acfa13937353bf03db2e478e55e245df71
5,250
https://github.com/ichord/At.js/blob/05e394acfa13937353bf03db2e478e55e245df71/spec/coffeescripts/apis.spec.coffee
51
73
jianliaoim/talk-os:talk-web/client/module/message-rich-rtf.coffee:1:raw_corpus
raw_corpus
React = require 'react' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'message-form-rtf' propTypes: onClick: T.func attachment: T.object.isRequired onClick: (event) -> eve...
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/message-rich-rtf.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/message-rich-rtf.coffee
1
42
jianliaoim/talk-os:talk-web/client/module/message-rich-rtf.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'message-form-rtf' propTypes: onClick: T.func attac...
var React, T, detect, div, format; React = require('react'); detect = require('../util/detect'); format = require('../util/format'); div = React.createFactory('div'); T = React.PropTypes; module.exports = React.createClass({ displayName: 'message-form-rtf', propTypes: { onClick: T.func, attachment: T....
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/module/message-rich-rtf.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/message-rich-rtf.coffee
1
42
jianliaoim/talk-os:talk-web/client/module/message-rich-rtf.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var React, T, detect, div, format; React = require('react'); detect = require('../util/detect'); format = require('../util/format'); div = React.createFactory('div'); T = React.PropTypes; module.exports = React.createClass({ displayName: 'message-form-rtf',...
React = require 'react' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'message-form-rtf' propTypes: onClick: T.func attachment: T.object.isRequired onClick: (event) -> eve...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/message-rich-rtf.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/message-rich-rtf.coffee
1
42
jianliaoim/talk-os:talk-web/client/module/message-rich-rtf.coffee:1:completion
completion
React = require 'react' detect = require '../util/detect' format = require '../util/format' div = React.createFactory 'div' T = React.PropTypes module.exports = React.createClass displayName: 'message-form-rtf' propTypes: onClick: T.func attachment: T.object.isRequired onClick: (event) -> eve...
if @props.attachment.data.title?.length div className: 'title', @props.attachment.data.title renderContent: -> return if not @props.attachment.data.text?.length text = format.parseRTF(@props.attachment.data.text) return if not text.length div className: 'content editor-style', dangerouslySetInn...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/message-rich-rtf.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/message-rich-rtf.coffee
1
42
jianliaoim/talk-os:talk-web/client/app/favorite-deleter.coffee:1:raw_corpus
raw_corpus
React = require 'react' lang = require '../locales/lang' PureRenderMixin = require 'react-addons-pure-render-mixin' favoriteActions = require '../actions/favorite' p = React.createFactory 'p' div = React.createFactory 'div' span = React.createFactory 'span' LightDialog =...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/favorite-deleter.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/favorite-deleter.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/favorite-deleter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' lang = require '../locales/lang' PureRenderMixin = require 'react-addons-pure-render-mixin' favoriteActions = require '../actions/favorite' p = React.createFactory 'p' div = React.createFactory 'div' span ...
var LightDialog, PureRenderMixin, React, T, div, favoriteActions, l, lang, p, span; React = require('react'); lang = require('../locales/lang'); PureRenderMixin = require('react-addons-pure-render-mixin'); favoriteActions = require('../actions/favorite'); p = React.createFactory('p'); div = React.createFactory('d...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/favorite-deleter.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/favorite-deleter.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/favorite-deleter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LightDialog, PureRenderMixin, React, T, div, favoriteActions, l, lang, p, span; React = require('react'); lang = require('../locales/lang'); PureRenderMixin = require('react-addons-pure-render-mixin'); favoriteActions = require('../actions/favorite'); p = ...
React = require 'react' lang = require '../locales/lang' PureRenderMixin = require 'react-addons-pure-render-mixin' favoriteActions = require '../actions/favorite' p = React.createFactory 'p' div = React.createFactory 'div' span = React.createFactory 'span' LightDialog =...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/favorite-deleter.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/favorite-deleter.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/favorite-deleter.coffee:1:completion
completion
React = require 'react' lang = require '../locales/lang' PureRenderMixin = require 'react-addons-pure-render-mixin' favoriteActions = require '../actions/favorite' p = React.createFactory 'p' div = React.createFactory 'div' span = React.createFactory 'span' LightDialog =...
onDeleterClose: -> @setState showDeleter: false onDeleterShow: -> @setState showDeleter: true onRemoveFavorite: -> favoriteActions.removeFavorite @props._messageId renderDeleter: -> LightDialog flexible: true show: @state.showDeleter onCloseClick: @onDeleterClose onConfi...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/favorite-deleter.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/favorite-deleter.coffee
1
47
jianliaoim/talk-os:talk-web/test/spec/actions/notify-banner.spec.coffee:1:raw_corpus
raw_corpus
xdescribe 'Actions: notify-banner', -> beforeEach -> @action = require 'actions/notify-banner' @dispatcher = require 'dispatcher' spyOn @dispatcher, 'handleViewAction' describe 'Method: warn, error, info, success', -> it 'should create notificiation', -> text = 'test' ['warn', 'error',...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/notify-banner.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/notify-banner.spec.coffee
1
25
jianliaoim/talk-os:talk-web/test/spec/actions/notify-banner.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript xdescribe 'Actions: notify-banner', -> beforeEach -> @action = require 'actions/notify-banner' @dispatcher = require 'dispatcher' spyOn @dispatcher, 'handleViewAction' describe 'Method: warn, error, info, success', -> it 'should create notif...
xdescribe('Actions: notify-banner', function() { beforeEach(function() { this.action = require('actions/notify-banner'); this.dispatcher = require('dispatcher'); return spyOn(this.dispatcher, 'handleViewAction'); }); describe('Method: warn, error, info, success', function() { return it('should cre...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/actions/notify-banner.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/notify-banner.spec.coffee
1
25
jianliaoim/talk-os:talk-web/test/spec/actions/notify-banner.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript xdescribe('Actions: notify-banner', function() { beforeEach(function() { this.action = require('actions/notify-banner'); this.dispatcher = require('dispatcher'); return spyOn(this.dispatcher, 'handleViewAction'); }); describe('Method: warn, error,...
xdescribe 'Actions: notify-banner', -> beforeEach -> @action = require 'actions/notify-banner' @dispatcher = require 'dispatcher' spyOn @dispatcher, 'handleViewAction' describe 'Method: warn, error, info, success', -> it 'should create notificiation', -> text = 'test' ['warn', 'error',...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/notify-banner.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/notify-banner.spec.coffee
1
25
jianliaoim/talk-os:talk-web/test/spec/actions/notify-banner.spec.coffee:1:completion
completion
xdescribe 'Actions: notify-banner', -> beforeEach -> @action = require 'actions/notify-banner' @dispatcher = require 'dispatcher' spyOn @dispatcher, 'handleViewAction' describe 'Method: warn, error, info, success', -> it 'should create notificiation', -> text = 'test' ['warn', 'error',...
dispatchData = type: 'notify-banner/create' data: type: method text: text expect(@dispatcher.handleViewAction).toHaveBeenCalledWith dispatchData describe 'Method: clear', -> it 'should clear notificiation', -> dispatchData = type: 'notify-banner/c...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/notify-banner.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/notify-banner.spec.coffee
1
25
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:raw_corpus
raw_corpus
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected.trim(), actual.trim(), 'expected', 'actual') throw patch unless patch is diffless
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected.trim(), actual.trim(), 'expected', 'actual') throw...
var diffeq; diffeq = function(expected, actual) { var diffless, patch; diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"; patch = diff.createPatch('test', expected.trim(), actual.trim(), 'expected', 'actual'); if (patch !== dif...
CoffeeScript
JavaScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var diffeq; diffeq = function(expected, actual) { var diffless, patch; diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"; patch = diff.createPatch('test', expected.trim(), ac...
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected.trim(), actual.trim(), 'expected', 'actual') throw patch unless patch is diffless
JavaScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:completion
completion
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"
patch = diff.createPatch('test', expected.trim(), actual.trim(), 'expected', 'actual') throw patch unless patch is diffless
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:raw_corpus
raw_corpus
module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}} builder = new xml2js.Builder renderOpts: pretty: fal...
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:completion
completion
module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}} builder = new xml2js.Builder renderOpts: pretty: fal...
""" builder = new xml2js.Builder() obj = {"xml":{"MsgId":["5850440872586764820"]}} actual = builder.buildObject obj diffeq expected, actual test.finish() 'test setting indentation': (test) -> expected = """ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xml> <M...
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:3:raw_corpus
raw_corpus
<xml> <MsgId>5850440872586764820</MsgId> </xml> """ opts = renderOpts: pretty: true, indent: ' ' headless: true builder = new xml2js.Builder opts obj = {"xml":{"MsgId":["5850440872586764820"]}} actual = builder.buildObject obj diffeq expected, actual test.fini...
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
69
118
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:3:completion
completion
<xml> <MsgId>5850440872586764820</MsgId> </xml> """ opts = renderOpts: pretty: true, indent: ' ' headless: true builder = new xml2js.Builder opts obj = {"xml":{"MsgId":["5850440872586764820"]}} actual = builder.buildObject obj diffeq expected, actual test.fini...
expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><FOO><MsgId>5850440872586764820</MsgId></FOO>' opts = renderOpts: {pretty: false}, rootName: 'FOO' builder = new xml2js.Builder opts obj = {"MsgId":["5850440872586764820"]} actual = builder.buildObject obj diffeq expected, actual ...
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
69
118
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:4:raw_corpus
raw_corpus
'test parser -> builder roundtrip': (test) -> fileName = path.join __dirname, '/fixtures/build_sample.xml' fs.readFile fileName, (err, xmlData) -> xmlExpected = xmlData.toString() xml2js.parseString xmlData, {'trim': true}, (err, obj) -> equ err, null builder = new xml2js.Builder({})...
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
119
128
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript 'test parser -> builder roundtrip': (test) -> fileName = path.join __dirname, '/fixtures/build_sample.xml' fs.readFile fileName, (err, xmlData) -> xmlExpected = xmlData.toString() xml2js.parseString xmlData, {'trim': true}, (err, obj) -> ...
({ 'test parser -> builder roundtrip': function(test) { var fileName; fileName = path.join(__dirname, '/fixtures/build_sample.xml'); return fs.readFile(fileName, function(err, xmlData) { var xmlExpected; xmlExpected = xmlData.toString(); return xml2js.parseString(xmlData, { 'trim...
CoffeeScript
JavaScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
119
128
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ 'test parser -> builder roundtrip': function(test) { var fileName; fileName = path.join(__dirname, '/fixtures/build_sample.xml'); return fs.readFile(fileName, function(err, xmlData) { var xmlExpected; xmlExpected = xmlData.toString(); ...
'test parser -> builder roundtrip': (test) -> fileName = path.join __dirname, '/fixtures/build_sample.xml' fs.readFile fileName, (err, xmlData) -> xmlExpected = xmlData.toString() xml2js.parseString xmlData, {'trim': true}, (err, obj) -> equ err, null builder = new xml2js.Builder({})...
JavaScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
119
128
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:4:completion
completion
'test parser -> builder roundtrip': (test) -> fileName = path.join __dirname, '/fixtures/build_sample.xml' fs.readFile fileName, (err, xmlData) -> xmlExpected = xmlData.toString() xml2js.parseString xmlData, {'trim': true}, (err, obj) ->
equ err, null builder = new xml2js.Builder({}) xmlActual = builder.buildObject obj diffeq xmlExpected, xmlActual test.finish()
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
e94799c4b5a8f19c91abff46bd69b34890ef46c3
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/e94799c4b5a8f19c91abff46bd69b34890ef46c3/test/builder.test.coffee
119
128
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:raw_corpus
raw_corpus
module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}} builder = new xml2js.Builder renderOpts: pretty: fal...
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}}...
module.exports = { 'test building basic XML structure': function(test) { var actual, builder, expected, obj; expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>'; obj = { "xml": { "Label": [""], "MsgId": ["58...
CoffeeScript
JavaScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'test building basic XML structure': function(test) { var actual, builder, expected, obj; expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>'; obj = { ...
module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}} builder = new xml2js.Builder renderOpts: pretty: fal...
JavaScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:2:completion
completion
module.exports = 'test building basic XML structure': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><xml><Label></Label><MsgId>5850440872586764820</MsgId></xml>' obj = {"xml":{"Label":[""],"MsgId":["5850440872586764820"]}} builder = new xml2js.Builder renderOpts: pretty: fal...
""" builder = new xml2js.Builder() obj = {"xml":{"MsgId":["5850440872586764820"]}} actual = builder.buildObject obj diffeq expected, actual test.finish() 'test setting indentation': (test) -> expected = """ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <xml> <M...
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
19
68
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:3:raw_corpus
raw_corpus
opts = renderOpts: {pretty: false}, rootName: 'FOO' builder = new xml2js.Builder opts obj = {"MsgId":["5850440872586764820"]} actual = builder.buildObject obj diffeq expected, actual test.finish() 'test explicit rootName is always used: 2. when there are multiple elements': (test) -> expected...
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
69
112
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:3:completion
completion
opts = renderOpts: {pretty: false}, rootName: 'FOO' builder = new xml2js.Builder opts obj = {"MsgId":["5850440872586764820"]} actual = builder.buildObject obj diffeq expected, actual test.finish() 'test explicit rootName is always used: 2. when there are multiple elements': (test) -> expected...
diffeq expected, actual test.finish() 'test when there is only one first-level element in the hash, that is used as root': (test) -> expected = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><first><MsgId>5850440872586764820</MsgId><foo>bar</foo></first>' opts = renderOpts: pretty: false bui...
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
fd9a299ed85d34985315b5899184d10a27a64bd2
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/fd9a299ed85d34985315b5899184d10a27a64bd2/test/builder.test.coffee
69
112
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:raw_corpus
raw_corpus
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected, actual, 'expected', 'actual') throw patch unless patch is diffless
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
07e71f0555a0daee1671a1ec9aef24128799da9e
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/07e71f0555a0daee1671a1ec9aef24128799da9e/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected, actual, 'expected', 'actual') throw patch unless ...
var diffeq; diffeq = function(expected, actual) { var diffless, patch; diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"; patch = diff.createPatch('test', expected, actual, 'expected', 'actual'); if (patch !== diffless) { t...
CoffeeScript
JavaScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
07e71f0555a0daee1671a1ec9aef24128799da9e
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/07e71f0555a0daee1671a1ec9aef24128799da9e/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var diffeq; diffeq = function(expected, actual) { var diffless, patch; diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"; patch = diff.createPatch('test', expected, actual, '...
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n" patch = diff.createPatch('test', expected, actual, 'expected', 'actual') throw patch unless patch is diffless
JavaScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
07e71f0555a0daee1671a1ec9aef24128799da9e
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/07e71f0555a0daee1671a1ec9aef24128799da9e/test/builder.test.coffee
14
17
Leonidas-from-XIV/node-xml2js:test/builder.test.coffee:1:completion
completion
diffeq = (expected, actual) -> diffless = "Index: test\n===================================================================\n--- test\texpected\n+++ test\tactual\n"
patch = diff.createPatch('test', expected, actual, 'expected', 'actual') throw patch unless patch is diffless
CoffeeScript
CoffeeScript
Leonidas-from-XIV/node-xml2js
test/builder.test.coffee
MIT
07e71f0555a0daee1671a1ec9aef24128799da9e
4,965
https://github.com/Leonidas-from-XIV/node-xml2js/blob/07e71f0555a0daee1671a1ec9aef24128799da9e/test/builder.test.coffee
14
17