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
jashkenas/coffeescript:test/javascript_literals.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "escaped JavaScript blocks speed round", -> # The following has escaped backslashes because they’re required in strings, but the intent is this: # `hello` → hello; # `\`hello\`` → ...
test("escaped JavaScript blocks speed round", function() { var i, input, len, output, ref, results; ref = [['`hello`', 'hello;'], ['`\\`hello\\``', '`hello`;'], ['`\\`Escaping backticks in JS: \\\\\\`hello\\\\\\`\\``', '`Escaping backticks in JS: \\`hello\\``;'], ['`Single backslash: \\ `', 'Single backslash: \\ ;'...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/javascript_literals.coffee
MIT
073e14746ef062566fc9224aced66714559e201b
16,577
https://github.com/jashkenas/coffeescript/blob/073e14746ef062566fc9224aced66714559e201b/test/javascript_literals.coffee
51
70
jashkenas/coffeescript:test/javascript_literals.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("escaped JavaScript blocks speed round", function() { var i, input, len, output, ref, results; ref = [['`hello`', 'hello;'], ['`\\`hello\\``', '`hello`;'], ['`\\`Escaping backticks in JS: \\\\\\`hello\\\\\\`\\``', '`Escaping backticks in JS: \\`hello\\``;'...
test "escaped JavaScript blocks speed round", -> # The following has escaped backslashes because they’re required in strings, but the intent is this: # `hello` → hello; # `\`hello\`` → `hello`; # `\`Escaping backticks in JS: \\\`hello\\\`\`...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/javascript_literals.coffee
MIT
073e14746ef062566fc9224aced66714559e201b
16,577
https://github.com/jashkenas/coffeescript/blob/073e14746ef062566fc9224aced66714559e201b/test/javascript_literals.coffee
51
70
jashkenas/coffeescript:test/javascript_literals.coffee:2:completion
completion
test "escaped JavaScript blocks speed round", -> # The following has escaped backslashes because they’re required in strings, but the intent is this: # `hello` → hello; # `\`hello\`` → `hello`; # `\`Escaping backticks in JS: \\\`hello\\\`\`...
for [input, output] in [ ['`hello`', 'hello;'] ['`\\`hello\\``', '`hello`;'] ['`\\`Escaping backticks in JS: \\\\\\`hello\\\\\\`\\``', '`Escaping backticks in JS: \\`hello\\``;'] ['`Single backslash: \\ `', ...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/javascript_literals.coffee
MIT
073e14746ef062566fc9224aced66714559e201b
16,577
https://github.com/jashkenas/coffeescript/blob/073e14746ef062566fc9224aced66714559e201b/test/javascript_literals.coffee
51
70
discolabs/cartjs:src/requests.coffee:1:raw_corpus
raw_corpus
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ url: ur...
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommi...
// Manage queues of AJAX requests. // ------------------------------- var commit, enqueue, pendingQueue, process, processing, processingQueue; pendingQueue = []; processingQueue = []; processing = false; enqueue = function(url, data, callback, type = 'POST', dataType = 'json') { var queue; queue = pendingQueue;...
CoffeeScript
JavaScript
discolabs/cartjs
src/requests.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Manage queues of AJAX requests. // ------------------------------- var commit, enqueue, pendingQueue, process, processing, processingQueue; pendingQueue = []; processingQueue = []; processing = false; enqueue = function(url, data, callback, type = 'POST', da...
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ url: ur...
JavaScript
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:completion
completion
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ url: ur...
}) if Cart.settings.autoCommit commit() commit = () -> return if processing processing = true [].push.apply(processingQueue, pendingQueue.splice(0, pendingQueue.length)) process() process = () -> if not processingQueue.length processing = false return params = processingQueue.shift() par...
CoffeeScript
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
d848db3917551fe1d95aa75a906010b206efc0e9
493
https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:raw_corpus
raw_corpus
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false Cart.enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ ur...
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false Cart.enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.auto...
// Manage queues of AJAX requests. // ------------------------------- var pendingQueue, processing, processingQueue; pendingQueue = []; processingQueue = []; processing = false; Cart.enqueue = function(url, data, callback, type = 'POST', dataType = 'json') { var queue; queue = pendingQueue; if (processing && ...
CoffeeScript
JavaScript
discolabs/cartjs
src/requests.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Manage queues of AJAX requests. // ------------------------------- var pendingQueue, processing, processingQueue; pendingQueue = []; processingQueue = []; processing = false; Cart.enqueue = function(url, data, callback, type = 'POST', dataType = 'json') { ...
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false Cart.enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ ur...
JavaScript
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/requests.coffee
1
37
discolabs/cartjs:src/requests.coffee:1:completion
completion
# Manage queues of AJAX requests. # ------------------------------- pendingQueue = [] processingQueue = [] processing = false Cart.enqueue = (url, data, callback, type = 'POST', dataType = 'json') -> queue = pendingQueue if processing and Cart.settings.autoCommit queue = processingQueue queue.push({ ur...
}) if Cart.settings.autoCommit Cart.commit() Cart.commit = () -> return if processing processing = true [].push.apply(processingQueue, pendingQueue.splice(0, pendingQueue.length)) Cart.process() Cart.process = () -> if not processingQueue.length processing = false return params = processin...
CoffeeScript
CoffeeScript
discolabs/cartjs
src/requests.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/requests.coffee
1
37
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
return '' unless widget.videoId? url = 'http://www.youtube.com/embed' properties = [] ids = widget.videoId.split(',') if ids.length > 1 # Support multiple video IDs url = url + '/' + _.first ids properties.push 'playlist=' + _.rest(ids).join(',') ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:raw_corpus
raw_corpus
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' ...
var url; if (!widget.enableKeyboard) { properties.push('disablekb=1'); } if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) { properties.push('iv_load_policy=1'); } else { pro...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var url; if (!widget.enableKeyboard) { properties.push('disablekb=1'); } if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) ...
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:completion
completion
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations
properties.push 'iv_load_policy=1' else properties.push 'iv_load_policy=3' if properties.length > 0 url = url + '?' + properties.join '&' logService.debug 'YouTube URL:', url return $scope.$sce.trustAsResourceUrl(url)
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
return '' unless widget.videoId? url = 'http://www.youtube.com/embed' properties = [] ids = widget.videoId.split(',') if ids.length > 1 # Support multiple video IDs url = url + '/' + _.first ids properties.push 'playlist=' + _.rest(ids).join(',') ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
url = 'http://www.youtube.com/embed' properties = [] ids = widget.videoId.split(',') if ids.length > 1 # Support multiple video IDs url = url + '/' + _.first ids properties.push 'playlist=' + _.rest(ids).join(',') else if widget.videoId.indexOf('PL') ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:raw_corpus
raw_corpus
if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push 'iv_load_policy=1' else properties.push 'iv_load_policy=...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
66
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push 'iv_load_policy=1' ...
var url; if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) { properties.push('iv_load_policy=1'); } else { properties.push('iv_load_policy=3'); } if (properties.length > 0) { ...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
66
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var url; if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) { properties.push('iv_load_policy=1'); } else { properties.push...
if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push 'iv_load_policy=1' else properties.push 'iv_load_policy=...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
66
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:completion
completion
if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push 'iv_load_policy=1'
else properties.push 'iv_load_policy=3' if properties.length > 0 url = url + '?' + properties.join '&' logService.debug 'YouTube URL:', url return $scope.$sce.trustAsResourceUrl(url)
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
66
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
return '' unless widget.videoId? url = 'http://www.youtube.com/embed' properties = [] ids = widget.videoId.split(',') if ids.length > 1 # Support multiple video IDs url = url + '/' + _.first ids properties.push 'playlist=' + _.rest(ids).join(',') ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:raw_corpus
raw_corpus
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' ...
var url; if (!widget.enableKeyboard) { properties.push('disablekb=1'); } if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) { properties.push('iv_load_policy=1'); } else { pro...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var url; if (!widget.enableKeyboard) { properties.push('disablekb=1'); } if (!widget.enableControls) { properties.push('controls=0'); } if (widget.showRelated) { properties.push('rel=1'); } else { properties.push('rel=0'); } if (widget.showAnnotations) ...
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations properties.push ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/youtube/youtubeWidget.coffee:2:completion
completion
if !widget.enableKeyboard properties.push 'disablekb=1' if !widget.enableControls properties.push 'controls=0' if widget.showRelated properties.push 'rel=1' else properties.push 'rel=0' if widget.showAnnotations
properties.push 'iv_load_policy=1' else properties.push 'iv_load_policy=3' if properties.length > 0 url = url + '?' + properties.join '&' console.log url return $scope.$sce.trustAsResourceUrl(url)
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/youtube/youtubeWidget.coffee
51
68
jianliaoim/talk-os:talk-web/client/actions/notify-banner.coffee:1:raw_corpus
raw_corpus
dispatcher = require '../dispatcher' ['warn', 'error', 'info', 'success'].forEach (method) -> exports[method] = (text) -> dispatcher.handleViewAction type: 'notify-banner/create' data: type: method text: text exports.clear = -> dispatcher.handleViewAction type: 'notify-banner/c...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/notify-banner.coffee
1
13
jianliaoim/talk-os:talk-web/client/actions/notify-banner.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript dispatcher = require '../dispatcher' ['warn', 'error', 'info', 'success'].forEach (method) -> exports[method] = (text) -> dispatcher.handleViewAction type: 'notify-banner/create' data: type: method text: text exports.clear = ->...
var dispatcher; dispatcher = require('../dispatcher'); ['warn', 'error', 'info', 'success'].forEach(function(method) { return exports[method] = function(text) { return dispatcher.handleViewAction({ type: 'notify-banner/create', data: { type: method, text: text } }); }; })...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/notify-banner.coffee
1
13
jianliaoim/talk-os:talk-web/client/actions/notify-banner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var dispatcher; dispatcher = require('../dispatcher'); ['warn', 'error', 'info', 'success'].forEach(function(method) { return exports[method] = function(text) { return dispatcher.handleViewAction({ type: 'notify-banner/create', data: { t...
dispatcher = require '../dispatcher' ['warn', 'error', 'info', 'success'].forEach (method) -> exports[method] = (text) -> dispatcher.handleViewAction type: 'notify-banner/create' data: type: method text: text exports.clear = -> dispatcher.handleViewAction type: 'notify-banner/c...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/notify-banner.coffee
1
13
jianliaoim/talk-os:talk-web/client/actions/notify-banner.coffee:1:completion
completion
dispatcher = require '../dispatcher' ['warn', 'error', 'info', 'success'].forEach (method) -> exports[method] = (text) -> dispatcher.handleViewAction type: 'notify-banner/create'
data: type: method text: text exports.clear = -> dispatcher.handleViewAction type: 'notify-banner/clear'
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/notify-banner.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
class Service constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$roo...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Service constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angul...
var Service; Service = class Service { constructor($log, $rootScope) { this.$log = $log; this.$rootScope = $rootScope; } publish(name, parameters) { var params; params = angular.extend({}, parameters, { timeStamp: Date.now() }); return this.$rootScope.$broadcast(name, params); } ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Service; Service = class Service { constructor($log, $rootScope) { this.$log = $log; this.$rootScope = $rootScope; } publish(name, parameters) { var params; params = angular.extend({}, parameters, { timeStamp: Date.now() }); ...
class Service constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$roo...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
class Service constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now()
@$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$rootScope', Service]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
class MessageService constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log'...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4c68af016c19bb8884dcbc6a704dcd0ad5616beb
672
https://github.com/CaryLandholt/AngularFun/blob/4c68af016c19bb8884dcbc6a704dcd0ad5616beb/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class MessageService constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener...
var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { this.$log = $log; this.$rootScope = $rootScope; } publish(name, parameters) { var params; params = angular.extend({}, parameters, { timeStamp: Date.now() }); return this.$rootScope.$broadcas...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4c68af016c19bb8884dcbc6a704dcd0ad5616beb
672
https://github.com/CaryLandholt/AngularFun/blob/4c68af016c19bb8884dcbc6a704dcd0ad5616beb/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { this.$log = $log; this.$rootScope = $rootScope; } publish(name, parameters) { var params; params = angular.extend({}, parameters, { timeStamp: ...
class MessageService constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now() @$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log'...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4c68af016c19bb8884dcbc6a704dcd0ad5616beb
672
https://github.com/CaryLandholt/AngularFun/blob/4c68af016c19bb8884dcbc6a704dcd0ad5616beb/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
class MessageService constructor: (@$log, @$rootScope) -> publish: (name, parameters) -> params = angular.extend {}, parameters, timeStamp: Date.now()
@$rootScope.$broadcast name, params subscribe: (name, listener) -> @$rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$rootScope', MessageService]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4c68af016c19bb8884dcbc6a704dcd0ad5616beb
672
https://github.com/CaryLandholt/AngularFun/blob/4c68af016c19bb8884dcbc6a704dcd0ad5616beb/src/scripts/services/messageService.coffee
1
13
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.module('app').service 'messageService', ...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, l...
var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { MessageService.prototype.publish = function(name, parameters) { parameters.timeStamp = Date.now(); return $rootScope.$broadcast(name, parameters); }; MessageService.prototype.subscribe = function(name,...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { MessageService.prototype.publish = function(name, parameters) { parameters.timeStamp = Date.now(); return $rootScope.$broadcast(name, parameters); }; ...
class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.module('app').service 'messageService', ...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now()
$rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$rootScope', MessageService]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.m...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, l...
(function(angular) { 'use strict'; var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { MessageService.prototype.publish = function(name, parameters) { parameters.timeStamp = Date.now(); return $rootScope.$broadcast(name, parameters); }; ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var MessageService; MessageService = class MessageService { constructor($log, $rootScope) { MessageService.prototype.publish = function(name, parameters) { parameters.timeStamp = Date.now(); return ...
do (angular) -> 'use strict' class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.m...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
do (angular) -> 'use strict' class MessageService constructor: ($log, $rootScope) -> MessageService::publish = (name, parameters) -> parameters.timeStamp = Date.now()
$rootScope.$broadcast name, parameters MessageService::subscribe = (name, listener) -> $rootScope.$on name, listener angular.module('app').service 'messageService', ['$log', '$rootScope', MessageService]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
angular.module('app').service 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> self = @ publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$on name, listener self.publish = publish self.subscrib...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
59b669bfc11c566bc6e5abf0b235638d734ae2d9
672
https://github.com/CaryLandholt/AngularFun/blob/59b669bfc11c566bc6e5abf0b235638d734ae2d9/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').service 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> self = @ publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$...
angular.module('app').service('messageService', [ '$log', '$rootScope', function($log, $rootScope) { var publish, self, subscribe; self = this; publish = function(name, parameters) { parameters.timeStamp = Date.now(); return $rootScope.$broadcast(name, parameters); }; sub...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
59b669bfc11c566bc6e5abf0b235638d734ae2d9
672
https://github.com/CaryLandholt/AngularFun/blob/59b669bfc11c566bc6e5abf0b235638d734ae2d9/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').service('messageService', [ '$log', '$rootScope', function($log, $rootScope) { var publish, self, subscribe; self = this; publish = function(name, parameters) { parameters.timeStamp = Date.now(); return $r...
angular.module('app').service 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> self = @ publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$on name, listener self.publish = publish self.subscrib...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
59b669bfc11c566bc6e5abf0b235638d734ae2d9
672
https://github.com/CaryLandholt/AngularFun/blob/59b669bfc11c566bc6e5abf0b235638d734ae2d9/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
angular.module('app').service 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> self = @ publish = (name, parameters) -> parameters.timeStamp = Date.now() $rootScope.$broadcast name, parameters
subscribe = (name, listener) -> $rootScope.$on name, listener self.publish = publish self.subscribe = subscribe ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
59b669bfc11c566bc6e5abf0b235638d734ae2d9
672
https://github.com/CaryLandholt/AngularFun/blob/59b669bfc11c566bc6e5abf0b235638d734ae2d9/src/scripts/services/messageService.coffee
1
14
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:raw_corpus
raw_corpus
angular.module('app').factory 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> publish = (name, parameters) -> parameters.timeStamp = new Date() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$on name, listener {publish, subscribe} ]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4fac5cd4104d2b46673cb39a3a7d7034ac103e33
672
https://github.com/CaryLandholt/AngularFun/blob/4fac5cd4104d2b46673cb39a3a7d7034ac103e33/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').factory 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> publish = (name, parameters) -> parameters.timeStamp = new Date() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$on name, li...
angular.module('app').factory('messageService', [ '$log', '$rootScope', function($log, $rootScope) { var publish, subscribe; publish = function(name, parameters) { parameters.timeStamp = new Date(); return $rootScope.$broadcast(name, parameters); }; subscribe = function(name, ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4fac5cd4104d2b46673cb39a3a7d7034ac103e33
672
https://github.com/CaryLandholt/AngularFun/blob/4fac5cd4104d2b46673cb39a3a7d7034ac103e33/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').factory('messageService', [ '$log', '$rootScope', function($log, $rootScope) { var publish, subscribe; publish = function(name, parameters) { parameters.timeStamp = new Date(); return $rootScope.$broadcast(name,...
angular.module('app').factory 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> publish = (name, parameters) -> parameters.timeStamp = new Date() $rootScope.$broadcast name, parameters subscribe = (name, listener) -> $rootScope.$on name, listener {publish, subscribe} ]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4fac5cd4104d2b46673cb39a3a7d7034ac103e33
672
https://github.com/CaryLandholt/AngularFun/blob/4fac5cd4104d2b46673cb39a3a7d7034ac103e33/src/scripts/services/messageService.coffee
1
11
CaryLandholt/AngularFun:src/scripts/services/messageService.coffee:1:completion
completion
angular.module('app').factory 'messageService', ['$log', '$rootScope', ($log, $rootScope) -> publish = (name, parameters) -> parameters.timeStamp = new Date() $rootScope.$broadcast name, parameters
subscribe = (name, listener) -> $rootScope.$on name, listener {publish, subscribe} ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/services/messageService.coffee
MIT
4fac5cd4104d2b46673cb39a3a7d7034ac103e33
672
https://github.com/CaryLandholt/AngularFun/blob/4fac5cd4104d2b46673cb39a3a7d7034ac103e33/src/scripts/services/messageService.coffee
1
11
gss/engine:src/commands/Transformation.coffee:1:raw_corpus
raw_corpus
Command = require('../Command') class Transformation extends Command type: 'Transformation' @Matrix: require('../../vendor/gl-matrix') matrix: -> matrix3d: -> _transform: (matrix, method, a, b, c) -> if matrix.length == 9 return mat3[method](matrix, matrix, a, b, c) else return mat4[m...
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
1
50
gss/engine:src/commands/Transformation.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Command = require('../Command') class Transformation extends Command type: 'Transformation' @Matrix: require('../../vendor/gl-matrix') matrix: -> matrix3d: -> _transform: (matrix, method, a, b, c) -> if matrix.length == 9 return mat3[meth...
var Command, Transformation; Command = require('../Command'); Transformation = (function() { class Transformation extends Command { matrix() {} matrix3d() {} _transform(matrix, method, a, b, c) { if (matrix.length === 9) { return mat3[method](matrix, matrix, a, b, c); } else { ...
CoffeeScript
JavaScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
1
50
gss/engine:src/commands/Transformation.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Command, Transformation; Command = require('../Command'); Transformation = (function() { class Transformation extends Command { matrix() {} matrix3d() {} _transform(matrix, method, a, b, c) { if (matrix.length === 9) { return mat...
Command = require('../Command') class Transformation extends Command type: 'Transformation' @Matrix: require('../../vendor/gl-matrix') matrix: -> matrix3d: -> _transform: (matrix, method, a, b, c) -> if matrix.length == 9 return mat3[method](matrix, matrix, a, b, c) else return mat4[m...
JavaScript
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
1
50
gss/engine:src/commands/Transformation.coffee:1:completion
completion
Command = require('../Command') class Transformation extends Command type: 'Transformation' @Matrix: require('../../vendor/gl-matrix') matrix: -> matrix3d: -> _transform: (matrix, method, a, b, c) -> if matrix.length == 9 return mat3[method](matrix, matrix, a, b, c) else return mat4[m...
"3d": (matrix, x, y = x, z = 0) -> if z == 0 @_transform matrix, 'translate', [x, y] else @_transform3d matrix, 'translate', [x, y, z] x: (matrix, x) -> @_transform matrix, 'translate', [x, 1, 1] y: (matrix, y) -> @_transform matrix, 'translate', [1, y, 1] z: (matrix,...
CoffeeScript
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
1
50
gss/engine:src/commands/Transformation.coffee:2:raw_corpus
raw_corpus
scale: [ (matrix, x, y = x, z = 1) -> if z == 1 @_transform matrix, 'scale', [x, y] else @_transform3d matrix, 'scale', [x, y, z] x: (matrix, x) -> @_transform matrix, 'scale', [x, 1, 1] y: (matrix, y) -> @_transform matrix, 'scale', [1, y, 1] z: (matrix, z) -> ...
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
51
72
gss/engine:src/commands/Transformation.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript scale: [ (matrix, x, y = x, z = 1) -> if z == 1 @_transform matrix, 'scale', [x, y] else @_transform3d matrix, 'scale', [x, y, z] x: (matrix, x) -> @_transform matrix, 'scale', [x, 1, 1] y: (matrix, y) -> @_tran...
({ scale: [ function(matrix, x, y = x, z = 1) { if (z === 1) { return this._transform(matrix, 'scale', [x, y]); } else { return this._transform3d(matrix, 'scale', [x, y, z]); } }, { x: function(matrix, x) { return ...
CoffeeScript
JavaScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
51
72
gss/engine:src/commands/Transformation.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ scale: [ function(matrix, x, y = x, z = 1) { if (z === 1) { return this._transform(matrix, 'scale', [x, y]); } else { return this._transform3d(matrix, 'scale', [x, y, z]); } }, ...
scale: [ (matrix, x, y = x, z = 1) -> if z == 1 @_transform matrix, 'scale', [x, y] else @_transform3d matrix, 'scale', [x, y, z] x: (matrix, x) -> @_transform matrix, 'scale', [x, 1, 1] y: (matrix, y) -> @_transform matrix, 'scale', [1, y, 1] z: (matrix, z) -> ...
JavaScript
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
51
72
gss/engine:src/commands/Transformation.coffee:2:completion
completion
scale: [ (matrix, x, y = x, z = 1) -> if z == 1 @_transform matrix, 'scale', [x, y] else @_transform3d matrix, 'scale', [x, y, z] x: (matrix, x) -> @_transform matrix, 'scale', [x, 1, 1] y: (matrix, y) -> @_transform matrix, 'scale', [1, y, 1]
z: (matrix, z) -> @_transform3d matrix, 'scale', [1, 1, z] ] ### skew: [ x: y: ]### module.exports = Transformation
CoffeeScript
CoffeeScript
gss/engine
src/commands/Transformation.coffee
MIT
31938f86e04f67ada173275db8f0e673655a12e9
2,854
https://github.com/gss/engine/blob/31938f86e04f67ada173275db8f0e673655a12e9/src/commands/Transformation.coffee
51
72
jianliaoim/talk-os:talk-web/client/updater/settings.coffee:1:raw_corpus
raw_corpus
exports.update = (store, actionData) -> store.update 'settings', (settings) -> settings.merge actionData exports.teamFootprints = (store, actionData) -> _teamId = actionData.get('_teamId') time = actionData.get('time') store.setIn ['settings', 'teamFootprints', _teamId], time # dataSchema = # _teamId: ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/settings.coffee
1
48
jianliaoim/talk-os:talk-web/client/updater/settings.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.update = (store, actionData) -> store.update 'settings', (settings) -> settings.merge actionData exports.teamFootprints = (store, actionData) -> _teamId = actionData.get('_teamId') time = actionData.get('time') store.setIn ['settings', 'team...
exports.update = function(store, actionData) { return store.update('settings', function(settings) { return settings.merge(actionData); }); }; exports.teamFootprints = function(store, actionData) { var _teamId, time; _teamId = actionData.get('_teamId'); time = actionData.get('time'); return store.setIn(...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/settings.coffee
1
48
jianliaoim/talk-os:talk-web/client/updater/settings.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.update = function(store, actionData) { return store.update('settings', function(settings) { return settings.merge(actionData); }); }; exports.teamFootprints = function(store, actionData) { var _teamId, time; _teamId = actionData.get('_teamId');...
exports.update = (store, actionData) -> store.update 'settings', (settings) -> settings.merge actionData exports.teamFootprints = (store, actionData) -> _teamId = actionData.get('_teamId') time = actionData.get('time') store.setIn ['settings', 'teamFootprints', _teamId], time # dataSchema = # _teamId: ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/settings.coffee
1
48
jianliaoim/talk-os:talk-web/client/updater/settings.coffee:1:completion
completion
exports.update = (store, actionData) -> store.update 'settings', (settings) -> settings.merge actionData exports.teamFootprints = (store, actionData) -> _teamId = actionData.get('_teamId') time = actionData.get('time') store.setIn ['settings', 'teamFootprints', _teamId], time # dataSchema = # _teamId: ...
exports.markLogin = (store, status) -> store.setIn ['settings', 'isLoggedIn'], status exports.openDrawer = (store, actionData) -> type = actionData.get 'type' store.setIn [ 'settings', 'showDrawer' ], type exports.closeDrawer = (store) -> store.setIn [ 'settings', 'showDrawer' ], false exports.changeEnterMe...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/settings.coffee
1
48
gss/engine:src/gss.coffee:1:raw_corpus
raw_corpus
### Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine ### GSS = -> #(data, url, scope) for argument, index in arguments continue unless argument switch typeof argument when 'object' if object.nodeType sco...
CoffeeScript
gss/engine
src/gss.coffee
MIT
6861fa637aa485f894e1176032b9b0dc897282cd
2,854
https://github.com/gss/engine/blob/6861fa637aa485f894e1176032b9b0dc897282cd/src/gss.coffee
1
35
gss/engine:src/gss.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine ### GSS = -> #(data, url, scope) for argument, index in arguments continue unless argument switch typeof argument ...
/* Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine */ var GSS; GSS = function() { //(data, url, scope) var argument, data, engine, i, id, index, len, parent, scope, url; for (index = i = 0, len = arguments.length; i < len; index = ++i...
CoffeeScript
JavaScript
gss/engine
src/gss.coffee
MIT
6861fa637aa485f894e1176032b9b0dc897282cd
2,854
https://github.com/gss/engine/blob/6861fa637aa485f894e1176032b9b0dc897282cd/src/gss.coffee
1
35
gss/engine:src/gss.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine */ var GSS; GSS = function() { //(data, url, scope) var argument, data, engine, i, id, index, len, parent, scope, url; for (inde...
### Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine ### GSS = -> #(data, url, scope) for argument, index in arguments continue unless argument switch typeof argument when 'object' if object.nodeType sco...
JavaScript
CoffeeScript
gss/engine
src/gss.coffee
MIT
6861fa637aa485f894e1176032b9b0dc897282cd
2,854
https://github.com/gss/engine/blob/6861fa637aa485f894e1176032b9b0dc897282cd/src/gss.coffee
1
35
gss/engine:src/gss.coffee:1:completion
completion
### Constructor: GSS Dispatches arguments by type, returns engine When scope is given, creates Document Otherwise abstract Engine ### GSS = -> #(data, url, scope) for argument, index in arguments continue unless argument switch typeof argument when 'object' if object.nodeType sco...
if !(@ instanceof GSS) && scope parent = scope while parent if id = Engine.identity.find(parent) if engine = Engine[id] return engine break unless parent.parentNode parent = parent.parentNode if scope && GSS.Document return new GSS.Document(data, url, scope) else ...
CoffeeScript
CoffeeScript
gss/engine
src/gss.coffee
MIT
6861fa637aa485f894e1176032b9b0dc897282cd
2,854
https://github.com/gss/engine/blob/6861fa637aa485f894e1176032b9b0dc897282cd/src/gss.coffee
1
35
linemanjs/lineman:test/unit-spec/spec/lib/gather-tasks-spec.coffee:1:raw_corpus
raw_corpus
SandboxedModule = require('sandboxed-module') _ = require('underscore') describe 'gatherTasks', -> Given -> @config = appTasks: {} Given -> @requires = _({}).tap (requires) => requires["#{process.cwd()}/config/application"] = @config Given -> @subject = SandboxedModule.require '../../../../lib/gather-tasks',...
CoffeeScript
linemanjs/lineman
test/unit-spec/spec/lib/gather-tasks-spec.coffee
MIT
5c4a4242b92dfd551333222b3d8e79ccc655613f
1,168
https://github.com/linemanjs/lineman/blob/5c4a4242b92dfd551333222b3d8e79ccc655613f/test/unit-spec/spec/lib/gather-tasks-spec.coffee
1
14
linemanjs/lineman:test/unit-spec/spec/lib/gather-tasks-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript SandboxedModule = require('sandboxed-module') _ = require('underscore') describe 'gatherTasks', -> Given -> @config = appTasks: {} Given -> @requires = _({}).tap (requires) => requires["#{process.cwd()}/config/application"] = @config Given -> @subject ...
var SandboxedModule, _; SandboxedModule = require('sandboxed-module'); _ = require('underscore'); describe('gatherTasks', function() { Given(function() { return this.config = { appTasks: {} }; }); Given(function() { return this.requires = _({}).tap((requires) => { return requires[`${pro...
CoffeeScript
JavaScript
linemanjs/lineman
test/unit-spec/spec/lib/gather-tasks-spec.coffee
MIT
5c4a4242b92dfd551333222b3d8e79ccc655613f
1,168
https://github.com/linemanjs/lineman/blob/5c4a4242b92dfd551333222b3d8e79ccc655613f/test/unit-spec/spec/lib/gather-tasks-spec.coffee
1
14
linemanjs/lineman:test/unit-spec/spec/lib/gather-tasks-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SandboxedModule, _; SandboxedModule = require('sandboxed-module'); _ = require('underscore'); describe('gatherTasks', function() { Given(function() { return this.config = { appTasks: {} }; }); Given(function() { return this.requires =...
SandboxedModule = require('sandboxed-module') _ = require('underscore') describe 'gatherTasks', -> Given -> @config = appTasks: {} Given -> @requires = _({}).tap (requires) => requires["#{process.cwd()}/config/application"] = @config Given -> @subject = SandboxedModule.require '../../../../lib/gather-tasks',...
JavaScript
CoffeeScript
linemanjs/lineman
test/unit-spec/spec/lib/gather-tasks-spec.coffee
MIT
5c4a4242b92dfd551333222b3d8e79ccc655613f
1,168
https://github.com/linemanjs/lineman/blob/5c4a4242b92dfd551333222b3d8e79ccc655613f/test/unit-spec/spec/lib/gather-tasks-spec.coffee
1
14
linemanjs/lineman:test/unit-spec/spec/lib/gather-tasks-spec.coffee:1:completion
completion
SandboxedModule = require('sandboxed-module') _ = require('underscore') describe 'gatherTasks', -> Given -> @config = appTasks: {} Given -> @requires = _({}).tap (requires) => requires["#{process.cwd()}/config/application"] = @config
Given -> @subject = SandboxedModule.require '../../../../lib/gather-tasks', requires: @requires context "default -- only config.appTasks", -> Given -> @config.appTasks['foo'] = ['a','b'] When -> @result = @subject('foo') Then -> expect(@result).toEqual(['a','b'])
CoffeeScript
CoffeeScript
linemanjs/lineman
test/unit-spec/spec/lib/gather-tasks-spec.coffee
MIT
5c4a4242b92dfd551333222b3d8e79ccc655613f
1,168
https://github.com/linemanjs/lineman/blob/5c4a4242b92dfd551333222b3d8e79ccc655613f/test/unit-spec/spec/lib/gather-tasks-spec.coffee
1
14
oozcitak/xmlbuilder-js:test/issues/187.coffee:1:raw_corpus
raw_corpus
suite 'Tests specific to issues:', -> test 'skipNullNodes returning null node as undefined node (JSON): Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
1
50
oozcitak/xmlbuilder-js:test/issues/187.coffee:1:completion
completion
suite 'Tests specific to issues:', -> test 'skipNullNodes returning null node as undefined node (JSON): Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }...
test 'skipNullNodes returning null node as undefined node (JSON with root): Issue 187', -> dataJson = root: [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }, ] doc = xml(d...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
1
50
oozcitak/xmlbuilder-js:test/issues/187.coffee:3:raw_corpus
raw_corpus
test 'skipNullNodes returning null node as undefined node: Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }, ] doc = xml('root', { headless: true...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
55
92
oozcitak/xmlbuilder-js:test/issues/187.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test 'skipNullNodes returning null node as undefined node: Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city:...
test('skipNullNodes returning null node as undefined node: Issue 187', function() { var dataJson, doc; dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
55
92
oozcitak/xmlbuilder-js:test/issues/187.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test('skipNullNodes returning null node as undefined node: Issue 187', function() { var dataJson, doc; dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: fal...
test 'skipNullNodes returning null node as undefined node: Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }, ] doc = xml('root', { headless: true...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
55
92
oozcitak/xmlbuilder-js:test/issues/187.coffee:3:completion
completion
test 'skipNullNodes returning null node as undefined node: Issue 187', -> dataJson = [ { user: 'barney', age: 36, active: true, city: null }, { user: 'fred', age: 40, active: false, city: '' }, { user: 'pebbles', age: 1, active: true, city: 'Dubai' }, ] doc = xml('root', { headless: true...
.ele('active', true).up() .ele('city', 'Dubai').up() eq( doc.end() '<root>' + '<user>barney</user>' + '<age>36</age>' + '<active>true</active>' + '<user>fred</user>' + '<age>40</age>' + '<active>false</active>' + '<city/>' + '<user>p...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/187.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/187.coffee
55
92
oozcitak/xmlbuilder-js:src/NodeType.coffee:1:raw_corpus
raw_corpus
module.exports = Element : 1 Attribute : 2 Text : 3 CData : 4 EntityReference : 5 EntityDeclaration : 6 ProcessingInstruction : 7 Comment : 8 Document : 9 DocType : 10 DocumentFragment : 11 NotationDeclaration : 12 # Numeric codes up to 200 are reserved to W3C for possible future use. # Foll...
CoffeeScript
oozcitak/xmlbuilder-js
src/NodeType.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/NodeType.coffee
1
20
oozcitak/xmlbuilder-js:src/NodeType.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = Element : 1 Attribute : 2 Text : 3 CData : 4 EntityReference : 5 EntityDeclaration : 6 ProcessingInstruction : 7 Comment : 8 Document : 9 DocType : 10 DocumentFragment : 11 NotationDeclaration : 12 # Numeric codes up to ...
module.exports = { Element: 1, Attribute: 2, Text: 3, CData: 4, EntityReference: 5, EntityDeclaration: 6, ProcessingInstruction: 7, Comment: 8, Document: 9, DocType: 10, DocumentFragment: 11, NotationDeclaration: 12, // Numeric codes up to 200 are reserved to W3C for possible future use. // ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/NodeType.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/NodeType.coffee
1
20
oozcitak/xmlbuilder-js:src/NodeType.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { Element: 1, Attribute: 2, Text: 3, CData: 4, EntityReference: 5, EntityDeclaration: 6, ProcessingInstruction: 7, Comment: 8, Document: 9, DocType: 10, DocumentFragment: 11, NotationDeclaration: 12, // Numeric codes up to...
module.exports = Element : 1 Attribute : 2 Text : 3 CData : 4 EntityReference : 5 EntityDeclaration : 6 ProcessingInstruction : 7 Comment : 8 Document : 9 DocType : 10 DocumentFragment : 11 NotationDeclaration : 12 # Numeric codes up to 200 are reserved to W3C for possible future use. # Foll...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/NodeType.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/NodeType.coffee
1
20
oozcitak/xmlbuilder-js:src/NodeType.coffee:1:completion
completion
module.exports = Element : 1 Attribute : 2 Text : 3 CData : 4 EntityReference : 5 EntityDeclaration : 6 ProcessingInstruction : 7 Comment : 8 Document : 9
DocType : 10 DocumentFragment : 11 NotationDeclaration : 12 # Numeric codes up to 200 are reserved to W3C for possible future use. # Following are types internal to this library: Declaration : 201 Raw : 202 AttributeDeclaration : 203 ElementDeclaration : 204 Dummy : 205
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/NodeType.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/NodeType.coffee
1
20
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:1:raw_corpus
raw_corpus
should = require 'should' limbo = require 'limbo' uuid = require 'uuid' db = limbo.use 'talk' async = require 'async' jwt = require 'jsonwebtoken' util = require '../../server/util' config = require 'config' app = require '../app' {prepare, clear, request} = app { MemberModel UserModel } = db describe 'User#ReadO...
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
1
47
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript should = require 'should' limbo = require 'limbo' uuid = require 'uuid' db = limbo.use 'talk' async = require 'async' jwt = require 'jsonwebtoken' util = require '../../server/util' config = require 'config' app = require '../app' {prepare, clear, request} = app ...
var MemberModel, UserModel, app, async, clear, config, db, jwt, limbo, prepare, request, should, util, uuid; should = require('should'); limbo = require('limbo'); uuid = require('uuid'); db = limbo.use('talk'); async = require('async'); jwt = require('jsonwebtoken'); util = require('../../server/util'); config ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
1
47
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MemberModel, UserModel, app, async, clear, config, db, jwt, limbo, prepare, request, should, util, uuid; should = require('should'); limbo = require('limbo'); uuid = require('uuid'); db = limbo.use('talk'); async = require('async'); jwt = require('jsonweb...
should = require 'should' limbo = require 'limbo' uuid = require 'uuid' db = limbo.use 'talk' async = require 'async' jwt = require 'jsonwebtoken' util = require '../../server/util' config = require 'config' app = require '../app' {prepare, clear, request} = app { MemberModel UserModel } = db describe 'User#ReadO...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
1
47