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
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Config, Interceptor; Interceptor = class Interceptor { constructor($log, $rootScope, $q) { return { response: function(response) { $rootScope.$broadcast(`success:${response.status}`, response); return response; }, respon...
class Interceptor constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.reject response } class Config constru...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:completion
completion
class Interceptor constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response
$q.reject response } class Config constructor: ($httpProvider) -> $httpProvider.interceptors.push ['$log', '$rootScope', '$q', Interceptor] angular.module('app').config ['$httpProvider', Config]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:raw_corpus
raw_corpus
class Interceptor constructor: (@$log, @$rootScope, @$q) -> return { response: (response) -> @$rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> @$rootScope.$broadcast "error:#{response.status}", response @$q.reject response } class Config c...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Interceptor constructor: (@$log, @$rootScope, @$q) -> return { response: (response) -> @$rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> @$rootScope.$broadcast "error:#{response.status}...
var Config, Interceptor; Interceptor = class Interceptor { constructor($log, $rootScope, $q) { this.$log = $log; this.$rootScope = $rootScope; this.$q = $q; return { response: function(response) { this.$rootScope.$broadcast(`success:${response.status}`, response); return respons...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Config, Interceptor; Interceptor = class Interceptor { constructor($log, $rootScope, $q) { this.$log = $log; this.$rootScope = $rootScope; this.$q = $q; return { response: function(response) { this.$rootScope.$broadcast(`success...
class Interceptor constructor: (@$log, @$rootScope, @$q) -> return { response: (response) -> @$rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> @$rootScope.$broadcast "error:#{response.status}", response @$q.reject response } class Config c...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:completion
completion
class Interceptor constructor: (@$log, @$rootScope, @$q) -> return { response: (response) -> @$rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> @$rootScope.$broadcast "error:#{response.status}", response
@$q.reject response } class Config constructor: ($httpProvider) -> $httpProvider.interceptors.push ['$log', '$rootScope', '$q', Interceptor] angular.module('app').config ['$httpProvider', Config]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:raw_corpus
raw_corpus
class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.reject response } class Interceptor con...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", res...
var Dispatcher, Interceptor; Dispatcher = class Dispatcher { constructor($log, $rootScope, $q) { return { response: function(response) { $rootScope.$broadcast(`success:${response.status}`, response); return response; }, responseError: function(response) { $rootScope.$bro...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dispatcher, Interceptor; Dispatcher = class Dispatcher { constructor($log, $rootScope, $q) { return { response: function(response) { $rootScope.$broadcast(`success:${response.status}`, response); return response; }, resp...
class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.reject response } class Interceptor con...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:completion
completion
class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response
$q.reject response } class Interceptor constructor: ($httpProvider) -> $httpProvider.interceptors.push ['$log', '$rootScope', '$q', Dispatcher] angular.module('app').config ['$httpProvider', Interceptor]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/interceptors/dispatcher.coffee
1
18
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.rej...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/interceptors/dispatcher.coffee
1
21
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$br...
(function(angular) { 'use strict'; var Dispatcher, Interceptor; Dispatcher = class Dispatcher { constructor($log, $rootScope, $q) { return { response: function(response) { $rootScope.$broadcast(`success:${response.status}`, response); return response; }, respo...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/interceptors/dispatcher.coffee
1
21
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var Dispatcher, Interceptor; Dispatcher = class Dispatcher { constructor($log, $rootScope, $q) { return { response: function(response) { $rootScope.$broadcast(`success:${response.status}`, respons...
do (angular) -> 'use strict' class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.rej...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/interceptors/dispatcher.coffee
1
21
CaryLandholt/AngularFun:src/scripts/interceptors/dispatcher.coffee:1:completion
completion
do (angular) -> 'use strict' class Dispatcher constructor: ($log, $rootScope, $q) -> return { response: (response) -> $rootScope.$broadcast "success:#{response.status}", response response
responseError: (response) -> $rootScope.$broadcast "error:#{response.status}", response $q.reject response } class Interceptor constructor: ($httpProvider) -> $httpProvider.interceptors.push ['$log', '$rootScope', '$q', Dispatcher] angular.module('app').config ['$httpProvider', Interceptor]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/interceptors/dispatcher.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/interceptors/dispatcher.coffee
1
21
jeremyramin/terminal-plus:lib/dialog.coffee:1:raw_corpus
raw_corpus
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/lib/dialog.coffee
1
39
jeremyramin/terminal-plus:lib/dialog.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new...
var Dialog, TextEditorView, View; ({TextEditorView, View} = require('atom-space-pen-views')); module.exports = Dialog = class Dialog extends View { static content({prompt} = {}) { return this.div({ class: 'terminal-plus-dialog' }, () => { this.label(prompt, { class: 'icon', outle...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/lib/dialog.coffee
1
39
jeremyramin/terminal-plus:lib/dialog.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dialog, TextEditorView, View; ({TextEditorView, View} = require('atom-space-pen-views')); module.exports = Dialog = class Dialog extends View { static content({prompt} = {}) { return this.div({ class: 'terminal-plus-dialog' }, () => { th...
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/lib/dialog.coffee
1
39
jeremyramin/terminal-plus:lib/dialog.coffee:1:completion
completion
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
unless stayOpen @miniEditor.on 'blur', => @close() if placeholderText @miniEditor.getModel().setText placeholderText @miniEditor.getModel().selectAll() attach: -> @panel = atom.workspace.addModalPanel(item: this.element) @miniEditor.focus() @miniEditor.getModel().scrollToCursorPosi...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
1e555ee3a49902b203134072ff079ae580fdff10
478
https://github.com/jeremyramin/terminal-plus/blob/1e555ee3a49902b203134072ff079ae580fdff10/lib/dialog.coffee
1
39
jeremyramin/terminal-plus:lib/dialog.coffee:1:raw_corpus
raw_corpus
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
040c0e72707d0d66f86550afc8ba4ffb60037176
478
https://github.com/jeremyramin/terminal-plus/blob/040c0e72707d0d66f86550afc8ba4ffb60037176/lib/dialog.coffee
1
37
jeremyramin/terminal-plus:lib/dialog.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new...
var Dialog, TextEditorView, View; ({TextEditorView, View} = require('atom-space-pen-views')); module.exports = Dialog = class Dialog extends View { static content({prompt} = {}) { return this.div({ class: 'terminal-plus-dialog' }, () => { this.label(prompt, { class: 'icon', outle...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
040c0e72707d0d66f86550afc8ba4ffb60037176
478
https://github.com/jeremyramin/terminal-plus/blob/040c0e72707d0d66f86550afc8ba4ffb60037176/lib/dialog.coffee
1
37
jeremyramin/terminal-plus:lib/dialog.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dialog, TextEditorView, View; ({TextEditorView, View} = require('atom-space-pen-views')); module.exports = Dialog = class Dialog extends View { static content({prompt} = {}) { return this.div({ class: 'terminal-plus-dialog' }, () => { th...
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
040c0e72707d0d66f86550afc8ba4ffb60037176
478
https://github.com/jeremyramin/terminal-plus/blob/040c0e72707d0d66f86550afc8ba4ffb60037176/lib/dialog.coffee
1
37
jeremyramin/terminal-plus:lib/dialog.coffee:1:completion
completion
{TextEditorView, View} = require 'atom-space-pen-views' module.exports = class Dialog extends View @content: ({prompt} = {}) -> @div class: 'terminal-plus-dialog', => @label prompt, class: 'icon', outlet: 'promptText' @subview 'miniEditor', new TextEditorView(mini: true) @label 'Escape (Esc) to...
@miniEditor.on 'blur', => @close() if placeholderText @miniEditor.getModel().setText placeholderText @miniEditor.getModel().selectAll() attach: -> @panel = atom.workspace.addModalPanel(item: this.element) @miniEditor.focus() @miniEditor.getModel().scrollToCursorPosition() close: -> ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/dialog.coffee
MIT
040c0e72707d0d66f86550afc8ba4ffb60037176
478
https://github.com/jeremyramin/terminal-plus/blob/040c0e72707d0d66f86550afc8ba4ffb60037176/lib/dialog.coffee
1
37
buttercoin/buttercoin:lib/engine_client.coffee:1:raw_corpus
raw_corpus
Q = require('q') WebSocket = require('ws') module.exports = class EngineClient constructor: (url) -> @url = url ? 'http://localhost:8080/' console.log 'Backend URL set: ', @url set_account_info: (name) -> if not name throw new Error('Need to specify name') @account = name console.log 'Ac...
CoffeeScript
buttercoin/buttercoin
lib/engine_client.coffee
MIT
b66728589b0582cfc1cc41f594fd2dc260cc75be
663
https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/lib/engine_client.coffee
1
42
buttercoin/buttercoin:lib/engine_client.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Q = require('q') WebSocket = require('ws') module.exports = class EngineClient constructor: (url) -> @url = url ? 'http://localhost:8080/' console.log 'Backend URL set: ', @url set_account_info: (name) -> if not name throw new Error('Need ...
var EngineClient, Q, WebSocket; Q = require('q'); WebSocket = require('ws'); module.exports = EngineClient = class EngineClient { constructor(url) { this.url = url != null ? url : 'http://localhost:8080/'; console.log('Backend URL set: ', this.url); } set_account_info(name) { if (!name) { th...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/engine_client.coffee
MIT
b66728589b0582cfc1cc41f594fd2dc260cc75be
663
https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/lib/engine_client.coffee
1
42
buttercoin/buttercoin:lib/engine_client.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var EngineClient, Q, WebSocket; Q = require('q'); WebSocket = require('ws'); module.exports = EngineClient = class EngineClient { constructor(url) { this.url = url != null ? url : 'http://localhost:8080/'; console.log('Backend URL set: ', this.url); ...
Q = require('q') WebSocket = require('ws') module.exports = class EngineClient constructor: (url) -> @url = url ? 'http://localhost:8080/' console.log 'Backend URL set: ', @url set_account_info: (name) -> if not name throw new Error('Need to specify name') @account = name console.log 'Ac...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/engine_client.coffee
MIT
b66728589b0582cfc1cc41f594fd2dc260cc75be
663
https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/lib/engine_client.coffee
1
42
buttercoin/buttercoin:lib/engine_client.coffee:1:completion
completion
Q = require('q') WebSocket = require('ws') module.exports = class EngineClient constructor: (url) -> @url = url ? 'http://localhost:8080/' console.log 'Backend URL set: ', @url set_account_info: (name) -> if not name throw new Error('Need to specify name') @account = name console.log 'Ac...
currency: currency, amount: amount } message = JSON.stringify(transaction) deferred = Q.defer() ws = new WebSocket(@url) ws.onmessage = (message) -> console.log 'Received message: ', message.data deferred.resolve() ws.close() ws.onopen = -> if ws.readyState is W...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/engine_client.coffee
MIT
b66728589b0582cfc1cc41f594fd2dc260cc75be
663
https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/lib/engine_client.coffee
1
42
jashkenas/coffeescript:test/slicing_and_splicing.coffee:1:raw_corpus
raw_corpus
# Slicing and Splicing # -------------------- # * Slicing # * Splicing # shared array shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # Slicing test "basic slicing", -> arrayEq [7, 8, 9] , shared[7..9] arrayEq [2, 3] , shared[2...4] arrayEq [2, 3, 4, 5], shared[2...6] test "slicing with variables as endpoints...
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
1
40
jashkenas/coffeescript:test/slicing_and_splicing.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Slicing and Splicing # -------------------- # * Slicing # * Splicing # shared array shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # Slicing test "basic slicing", -> arrayEq [7, 8, 9] , shared[7..9] arrayEq [2, 3] , shared[2...4] arrayEq [2, 3, 4, 5],...
// Slicing and Splicing // -------------------- // * Slicing // * Splicing // shared array var shared; shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; // Slicing test("basic slicing", function() { arrayEq([7, 8, 9], shared.slice(7, 10)); arrayEq([2, 3], shared.slice(2, 4)); return arrayEq([2, 3, 4, 5], shared.slice(...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
1
40
jashkenas/coffeescript:test/slicing_and_splicing.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Slicing and Splicing // -------------------- // * Slicing // * Splicing // shared array var shared; shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; // Slicing test("basic slicing", function() { arrayEq([7, 8, 9], shared.slice(7, 10)); arrayEq([2, 3], shared.sli...
# Slicing and Splicing # -------------------- # * Slicing # * Splicing # shared array shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # Slicing test "basic slicing", -> arrayEq [7, 8, 9] , shared[7..9] arrayEq [2, 3] , shared[2...4] arrayEq [2, 3, 4, 5], shared[2...6] test "slicing with variables as endpoints...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
1
40
jashkenas/coffeescript:test/slicing_and_splicing.coffee:1:completion
completion
# Slicing and Splicing # -------------------- # * Slicing # * Splicing # shared array shared = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # Slicing test "basic slicing", -> arrayEq [7, 8, 9] , shared[7..9] arrayEq [2, 3] , shared[2...4] arrayEq [2, 3, 4, 5], shared[2...6] test "slicing with variables as endpoints...
test "slicing with expressions as endpoints", -> [a, b] = [1, 3] arrayEq [2, 3, 4, 5, 6], shared[(a+1)..2*b] arrayEq [2, 3, 4, 5] , shared[a+1...(2*b)] test "unbounded slicing", -> arrayEq [7, 8, 9] , shared[7..] arrayEq [8, 9] , shared[-2..] arrayEq [9] , shared[-1...] arrayEq [0, 1, 2]...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
1
40
jashkenas/coffeescript:test/slicing_and_splicing.coffee:2:raw_corpus
raw_corpus
arrayEq [1, 2, 3], [1, 2, 3][..] test "#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", -> arrayEq shared, shared[0..-1] arrayEq shared, shared[..-1] arrayEq shared.slice(1,shared.length), shared[1..-1] test "string slicing", -> str = "abcdefghijklmnopqrstuvwxyz" ok str[1...1] is ""...
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
42
80
jashkenas/coffeescript:test/slicing_and_splicing.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript arrayEq [1, 2, 3], [1, 2, 3][..] test "#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", -> arrayEq shared, shared[0..-1] arrayEq shared, shared[..-1] arrayEq shared.slice(1,shared.length), shared[1..-1] test "string slicing", -> ...
arrayEq([1, 2, 3], [1, 2, 3].slice(0)); test("#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", function() { arrayEq(shared, shared.slice(0)); arrayEq(shared, shared.slice(0)); return arrayEq(shared.slice(1, shared.length), shared.slice(1)); }); test("string slicing", function() { var ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
42
80
jashkenas/coffeescript:test/slicing_and_splicing.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript arrayEq([1, 2, 3], [1, 2, 3].slice(0)); test("#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", function() { arrayEq(shared, shared.slice(0)); arrayEq(shared, shared.slice(0)); return arrayEq(shared.slice(1, shared.length), shared.sli...
arrayEq [1, 2, 3], [1, 2, 3][..] test "#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", -> arrayEq shared, shared[0..-1] arrayEq shared, shared[..-1] arrayEq shared.slice(1,shared.length), shared[1..-1] test "string slicing", -> str = "abcdefghijklmnopqrstuvwxyz" ok str[1...1] is ""...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
42
80
jashkenas/coffeescript:test/slicing_and_splicing.coffee:2:completion
completion
arrayEq [1, 2, 3], [1, 2, 3][..] test "#930, #835, #831, #746 #624: inclusive slices to -1 should slice to end", -> arrayEq shared, shared[0..-1] arrayEq shared, shared[..-1] arrayEq shared.slice(1,shared.length), shared[1..-1] test "string slicing", -> str = "abcdefghijklmnopqrstuvwxyz" ok str[1...1] is ""...
arrayEq [0..n], list[..n or 0] arrayEq [0..n], list[..if n then n else 0] test "#2349: inclusive slicing to numeric strings", -> arrayEq [0, 1], [0..10][.."1"] test "#4631: slicing with space before and/or after the dots", -> a = (s) -> s b = [4, 5, 6] c = [7, 8, 9] arrayEq [2, 3, 4], shared[2 ... 5] ar...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
42
80
jashkenas/coffeescript:test/slicing_and_splicing.coffee:3:raw_corpus
raw_corpus
test "basic splicing", -> ary = [0..9] ary[5..9] = [0, 0, 0] arrayEq [0, 1, 2, 3, 4, 0, 0, 0], ary ary = [0..9] ary[2...8] = [] arrayEq [0, 1, 8, 9], ary test "unbounded splicing", -> ary = [0..9] ary[3..] = [9, 8, 7] arrayEq [0, 1, 2, 9, 8, 7]. ary ary[...3] = [7, 8, 9] arrayEq [7, 8, 9, 9, 8,...
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
82
122
jashkenas/coffeescript:test/slicing_and_splicing.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "basic splicing", -> ary = [0..9] ary[5..9] = [0, 0, 0] arrayEq [0, 1, 2, 3, 4, 0, 0, 0], ary ary = [0..9] ary[2...8] = [] arrayEq [0, 1, 8, 9], ary test "unbounded splicing", -> ary = [0..9] ary[3..] = [9, 8, 7] arrayEq [0, 1, 2, 9, 8, 7...
var splice = [].splice; test("basic splicing", function() { var ary, ref, ref1; ary = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; splice.apply(ary, [5, 5].concat(ref = [0, 0, 0])), ref; arrayEq([0, 1, 2, 3, 4, 0, 0, 0], ary); ary = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; splice.apply(ary, [2, 6].concat(ref1 = [])), ref1; re...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
82
122
jashkenas/coffeescript:test/slicing_and_splicing.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var splice = [].splice; test("basic splicing", function() { var ary, ref, ref1; ary = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; splice.apply(ary, [5, 5].concat(ref = [0, 0, 0])), ref; arrayEq([0, 1, 2, 3, 4, 0, 0, 0], ary); ary = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; ...
test "basic splicing", -> ary = [0..9] ary[5..9] = [0, 0, 0] arrayEq [0, 1, 2, 3, 4, 0, 0, 0], ary ary = [0..9] ary[2...8] = [] arrayEq [0, 1, 8, 9], ary test "unbounded splicing", -> ary = [0..9] ary[3..] = [9, 8, 7] arrayEq [0, 1, 2, 9, 8, 7]. ary ary[...3] = [7, 8, 9] arrayEq [7, 8, 9, 9, 8,...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
82
122
jashkenas/coffeescript:test/slicing_and_splicing.coffee:3:completion
completion
test "basic splicing", -> ary = [0..9] ary[5..9] = [0, 0, 0] arrayEq [0, 1, 2, 3, 4, 0, 0, 0], ary ary = [0..9] ary[2...8] = [] arrayEq [0, 1, 8, 9], ary test "unbounded splicing", -> ary = [0..9] ary[3..] = [9, 8, 7] arrayEq [0, 1, 2, 9, 8, 7]. ary ary[...3] = [7, 8, 9] arrayEq [7, 8, 9, 9, 8,...
test "splicing with variables as endpoints", -> [a, b] = [1, 8] ary = [0..9] ary[a..b] = [2, 3] arrayEq [0, 2, 3, 9], ary ary = [0..9] ary[a...b] = [5] arrayEq [0, 5, 8, 9], ary test "splicing with expressions as endpoints", -> [a, b] = [1, 3] ary = [0..9] ary[ a+1 .. 2*b+1 ] = [4] arrayEq [0,...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
82
122
jashkenas/coffeescript:test/slicing_and_splicing.coffee:4:raw_corpus
raw_corpus
test "splicing to the end, against a one-time function", -> ary = null fn = -> if ary throw 'err' else ary = [1, 2, 3] fn()[0..] = 1 arrayEq ary, [1] test "the return value of a splice literal should be the RHS", -> ary = [0, 0, 0] eq (ary[0..1] = 2), 2 ary = [0, 0, 0] eq (ary[0....
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
124
165
jashkenas/coffeescript:test/slicing_and_splicing.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "splicing to the end, against a one-time function", -> ary = null fn = -> if ary throw 'err' else ary = [1, 2, 3] fn()[0..] = 1 arrayEq ary, [1] test "the return value of a splice literal should be the RHS", -> ary = [0, 0, 0...
var splice = [].splice; test("splicing to the end, against a one-time function", function() { var ary, fn; ary = null; fn = function() { if (ary) { throw 'err'; } else { return ary = [1, 2, 3]; } }; splice.apply(fn(), [0, 9e9].concat(1)), 1; return arrayEq(ary, [1]); }); test("the ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
124
165
jashkenas/coffeescript:test/slicing_and_splicing.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var splice = [].splice; test("splicing to the end, against a one-time function", function() { var ary, fn; ary = null; fn = function() { if (ary) { throw 'err'; } else { return ary = [1, 2, 3]; } }; splice.apply(fn(), [0, 9e9].con...
test "splicing to the end, against a one-time function", -> ary = null fn = -> if ary throw 'err' else ary = [1, 2, 3] fn()[0..] = 1 arrayEq ary, [1] test "the return value of a splice literal should be the RHS", -> ary = [0, 0, 0] eq (ary[0..1] = 2), 2 ary = [0, 0, 0] eq (ary[0....
JavaScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
124
165
jashkenas/coffeescript:test/slicing_and_splicing.coffee:4:completion
completion
test "splicing to the end, against a one-time function", -> ary = null fn = -> if ary throw 'err' else ary = [1, 2, 3] fn()[0..] = 1 arrayEq ary, [1] test "the return value of a splice literal should be the RHS", -> ary = [0, 0, 0] eq (ary[0..1] = 2), 2 ary = [0, 0, 0] eq (ary[0....
test "#1723: operator precedence in unbounded splice compilation", -> n = 4 # some truthy number in `list` list = [0..9] list[..n] = n arrayEq [n..9], list list = [0..9] list[..n or 0] = n arrayEq [n..9], list list = [0..9] list[..if n then n else 0] = n arrayEq [n..9], list test "#2953: methods...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
124
165
jashkenas/coffeescript:test/slicing_and_splicing.coffee:5:raw_corpus
raw_corpus
arrayEq [0, 5, 9], list test "#1726: `Op` expression in property access causes unexpected results", -> a = [0..2] arrayEq a, a[(!1 in a)..] arrayEq a, a[!1 in a..] arrayEq a[(!1 in a)..], a[(!1 in a)..]
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
167
173
jashkenas/coffeescript:test/slicing_and_splicing.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript arrayEq [0, 5, 9], list test "#1726: `Op` expression in property access causes unexpected results", -> a = [0..2] arrayEq a, a[(!1 in a)..] arrayEq a, a[!1 in a..] arrayEq a[(!1 in a)..], a[(!1 in a)..] ```
var indexOf = [].indexOf; arrayEq([0, 5, 9], list); test("#1726: `Op` expression in property access causes unexpected results", function() { var a, ref, ref1, ref2, ref3; a = [0, 1, 2]; arrayEq(a, a.slice(((ref = !1, indexOf.call(a, ref) >= 0)))); arrayEq(a, a.slice((ref1 = !1, indexOf.call(a, ref1) >= 0))); ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
167
173
jashkenas/coffeescript:test/slicing_and_splicing.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var indexOf = [].indexOf; arrayEq([0, 5, 9], list); test("#1726: `Op` expression in property access causes unexpected results", function() { var a, ref, ref1, ref2, ref3; a = [0, 1, 2]; arrayEq(a, a.slice(((ref = !1, indexOf.call(a, ref) >= 0)))); arrayEq...
arrayEq [0, 5, 9], list test "#1726: `Op` expression in property access causes unexpected results", -> a = [0..2] arrayEq a, a[(!1 in a)..] arrayEq a, a[!1 in a..] arrayEq a[(!1 in a)..], a[(!1 in a)..]
JavaScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
167
173
jashkenas/coffeescript:test/slicing_and_splicing.coffee:5:completion
completion
arrayEq [0, 5, 9], list test "#1726: `Op` expression in property access causes unexpected results", ->
a = [0..2] arrayEq a, a[(!1 in a)..] arrayEq a, a[!1 in a..] arrayEq a[(!1 in a)..], a[(!1 in a)..]
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/slicing_and_splicing.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/slicing_and_splicing.coffee
167
173
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:raw_corpus
raw_corpus
class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @redis ?= require '../lib/redis' resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias return callback null, alias unless @aliasServerUri? @_getAliasOrCache alias, (error, uuid) => re...
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
6
55
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @redis ?= require '../lib/redis' resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias return callback null, alias unless @aliasServerUri...
var UUIDAliasResolver; UUIDAliasResolver = class UUIDAliasResolver { constructor(options = {}, {redis, aliasServerUri}) { this.resolve = this.resolve.bind(this); this.reverseLookup = this.reverseLookup.bind(this); this._cacheAlias = this._cacheAlias.bind(this); this._getCache = this._getCache.bind(th...
CoffeeScript
JavaScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
6
55
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UUIDAliasResolver; UUIDAliasResolver = class UUIDAliasResolver { constructor(options = {}, {redis, aliasServerUri}) { this.resolve = this.resolve.bind(this); this.reverseLookup = this.reverseLookup.bind(this); this._cacheAlias = this._cacheAlias....
class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @redis ?= require '../lib/redis' resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias return callback null, alias unless @aliasServerUri? @_getAliasOrCache alias, (error, uuid) => re...
JavaScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
6
55
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:completion
completion
class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @redis ?= require '../lib/redis' resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias return callback null, alias unless @aliasServerUri? @_getAliasOrCache alias, (error, uuid) => re...
return callback null, JSON.parse result _cacheReverseLookup: (uuid, aliases, callback) => @redis.setex "alias:reverse:#{uuid}", 30, JSON.stringify(aliases: aliases), callback _getReverseLookupCache: (uuid, callback) => @redis.get "alias:reverse:#{uuid}", (error, result) => return callback error if e...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
6
55
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:raw_corpus
raw_corpus
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, result) => return callback error if error? re...
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, ...
this._getAlias(alias, (error, uuid) => { if (error != null) { return callback(error); } if (uuid != null) { return callback(null, uuid); } return callback(new Error('Alias Not Found')); }); ({ _getReverseLookupOrCache: (uuid, callback) => { return this._getReverseLookupCache(uuid, (error, resul...
CoffeeScript
JavaScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this._getAlias(alias, (error, uuid) => { if (error != null) { return callback(error); } if (uuid != null) { return callback(null, uuid); } return callback(new Error('Alias Not Found')); }); ({ _getReverseLookupOrCache: (uuid, callback) => { ...
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, result) => return callback error if error? re...
JavaScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:completion
completion
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, result) => return callback error if error? re...
return callback error if error? callback null, aliases _getReverseLookup: (uuid, callback) => path = @aliasServerUri + "/aliases/#{uuid}" request.get path, json: true, (error, response, body) => return callback error if error? @_cacheReverseLookup uuid, body, (error) => return c...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
4e19cbdd20c52f302dccdcee9f340de219f13ad9
815
https://github.com/octoblu/meshblu/blob/4e19cbdd20c52f302dccdcee9f340de219f13ad9/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:raw_corpus
raw_corpus
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, aliases) => return callback error if error? r...
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
be9a2b2a20b7ed8cda9b85ac60570185f8d3901f
815
https://github.com/octoblu/meshblu/blob/be9a2b2a20b7ed8cda9b85ac60570185f8d3901f/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, ...
this._getAlias(alias, (error, uuid) => { if (error != null) { return callback(error); } if (uuid != null) { return callback(null, uuid); } return callback(new Error('Alias Not Found')); }); ({ _getReverseLookupOrCache: (uuid, callback) => { return this._getReverseLookupCache(uuid, (error, alias...
CoffeeScript
JavaScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
be9a2b2a20b7ed8cda9b85ac60570185f8d3901f
815
https://github.com/octoblu/meshblu/blob/be9a2b2a20b7ed8cda9b85ac60570185f8d3901f/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this._getAlias(alias, (error, uuid) => { if (error != null) { return callback(error); } if (uuid != null) { return callback(null, uuid); } return callback(new Error('Alias Not Found')); }); ({ _getReverseLookupOrCache: (uuid, callback) => { ...
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, aliases) => return callback error if error? r...
JavaScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
be9a2b2a20b7ed8cda9b85ac60570185f8d3901f
815
https://github.com/octoblu/meshblu/blob/be9a2b2a20b7ed8cda9b85ac60570185f8d3901f/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:2:completion
completion
@_getAlias alias, (error, uuid) => return callback error if error? return callback null, uuid if uuid? return callback new Error 'Alias Not Found' _getReverseLookupOrCache: (uuid, callback) => @_getReverseLookupCache uuid, (error, aliases) => return callback error if error? r...
return callback error if error? callback null, aliases _getReverseLookup: (uuid, callback) => path = @aliasServerUri + "/aliases/#{uuid}" request.get path, json: true, (error, response, body) => return callback error if error? @_cacheReverseLookup uuid, body, (error) => return c...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
be9a2b2a20b7ed8cda9b85ac60570185f8d3901f
815
https://github.com/octoblu/meshblu/blob/be9a2b2a20b7ed8cda9b85ac60570185f8d3901f/src/uuid-alias-resolver.coffee
56
80
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' async = require 'async' request = require 'request' UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @aliasServerUri ?= 'https://alias.octoblu.com' resolve: (alias, callback) => return callback nu...
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
067d2a328e4a5ec04aad2038f433f0fa4078d2cc
815
https://github.com/octoblu/meshblu/blob/067d2a328e4a5ec04aad2038f433f0fa4078d2cc/src/uuid-alias-resolver.coffee
1
47
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' async = require 'async' request = require 'request' UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @aliasServerUri ?= 'https://alias.octoblu.com...
var UUIDAliasResolver, UUID_REGEX, _, async, request; _ = require('lodash'); async = require('async'); request = require('request'); UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i; UUIDAliasResolver = class UUIDAliasResolver { constructor(options = {}, {redis, aliasServerUri}) { this.resolve = thi...
CoffeeScript
JavaScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
067d2a328e4a5ec04aad2038f433f0fa4078d2cc
815
https://github.com/octoblu/meshblu/blob/067d2a328e4a5ec04aad2038f433f0fa4078d2cc/src/uuid-alias-resolver.coffee
1
47
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UUIDAliasResolver, UUID_REGEX, _, async, request; _ = require('lodash'); async = require('async'); request = require('request'); UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i; UUIDAliasResolver = class UUIDAliasResolver { constructor(options ...
_ = require 'lodash' async = require 'async' request = require 'request' UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @aliasServerUri ?= 'https://alias.octoblu.com' resolve: (alias, callback) => return callback nu...
JavaScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
067d2a328e4a5ec04aad2038f433f0fa4078d2cc
815
https://github.com/octoblu/meshblu/blob/067d2a328e4a5ec04aad2038f433f0fa4078d2cc/src/uuid-alias-resolver.coffee
1
47
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:completion
completion
_ = require 'lodash' async = require 'async' request = require 'request' UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis, @aliasServerUri}) -> @aliasServerUri ?= 'https://alias.octoblu.com' resolve: (alias, callback) => return callback nu...
path = @aliasServerUri + "/?name=#{alias}" request.get path, json: true, (error, response, body) => return callback error if error? uuid = body?.uuid return callback new Error 'Alias Not Found' unless uuid? @_cacheAlias alias, uuid, (error) => return callback error if error? ...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
067d2a328e4a5ec04aad2038f433f0fa4078d2cc
815
https://github.com/octoblu/meshblu/blob/067d2a328e4a5ec04aad2038f433f0fa4078d2cc/src/uuid-alias-resolver.coffee
1
47
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:raw_corpus
raw_corpus
UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis}) -> resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias @redis.get "alias:#{alias}", (error, uuid) => if UUID_REGEX.test uuid return callback nu...
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
d1b59bd717af6d4c26a587c3e90a3b1cea4346e1
815
https://github.com/octoblu/meshblu/blob/d1b59bd717af6d4c26a587c3e90a3b1cea4346e1/src/uuid-alias-resolver.coffee
1
13
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis}) -> resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias @redis.get "alias:#{alias}", (error, uuid) =>...
var UUIDAliasResolver, UUID_REGEX; UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i; UUIDAliasResolver = class UUIDAliasResolver { constructor(options = {}, {redis}) { this.resolve = this.resolve.bind(this); this.redis = redis; } resolve(alias, callback) { if (UUID_REGEX.test(alias)) { ...
CoffeeScript
JavaScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
d1b59bd717af6d4c26a587c3e90a3b1cea4346e1
815
https://github.com/octoblu/meshblu/blob/d1b59bd717af6d4c26a587c3e90a3b1cea4346e1/src/uuid-alias-resolver.coffee
1
13
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UUIDAliasResolver, UUID_REGEX; UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i; UUIDAliasResolver = class UUIDAliasResolver { constructor(options = {}, {redis}) { this.resolve = this.resolve.bind(this); this.redis = redis; } resolve(a...
UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis}) -> resolve: (alias, callback) => return callback null, alias if UUID_REGEX.test alias @redis.get "alias:#{alias}", (error, uuid) => if UUID_REGEX.test uuid return callback nu...
JavaScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
d1b59bd717af6d4c26a587c3e90a3b1cea4346e1
815
https://github.com/octoblu/meshblu/blob/d1b59bd717af6d4c26a587c3e90a3b1cea4346e1/src/uuid-alias-resolver.coffee
1
13
octoblu/meshblu:src/uuid-alias-resolver.coffee:1:completion
completion
UUID_REGEX = /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i class UUIDAliasResolver constructor: (options={}, {@redis}) -> resolve: (alias, callback) =>
return callback null, alias if UUID_REGEX.test alias @redis.get "alias:#{alias}", (error, uuid) => if UUID_REGEX.test uuid return callback null, uuid callback null, alias module.exports = UUIDAliasResolver
CoffeeScript
CoffeeScript
octoblu/meshblu
src/uuid-alias-resolver.coffee
MIT
d1b59bd717af6d4c26a587c3e90a3b1cea4346e1
815
https://github.com/octoblu/meshblu/blob/d1b59bd717af6d4c26a587c3e90a3b1cea4346e1/src/uuid-alias-resolver.coffee
1
13
cdglabs/apparatus:test/Attribute.test.coffee:1:raw_corpus
raw_corpus
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
1
50
cdglabs/apparatus:test/Attribute.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.crea...
var Attribute, Model, test; test = require("tape"); Model = require("../src/Model/Model"); Attribute = Model.Attribute; test("Numbers work", function(t) { var a; a = Attribute.createVariant(); a.setExpression("6"); t.equal(a.value(), 6); return t.end(); }); test("Math expressions work", function(t) { v...
CoffeeScript
JavaScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
1
50
cdglabs/apparatus:test/Attribute.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Attribute, Model, test; test = require("tape"); Model = require("../src/Model/Model"); Attribute = Model.Attribute; test("Numbers work", function(t) { var a; a = Attribute.createVariant(); a.setExpression("6"); t.equal(a.value(), 6); return t.end(...
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
JavaScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
1
50
cdglabs/apparatus:test/Attribute.test.coffee:1:completion
completion
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
test "Changes recompile", (t) -> a = Attribute.createVariant() b = Attribute.createVariant() a.setExpression("20") b.setExpression("$$$a$$$ * 2", {$$$a$$$: a}) t.equal(b.value(), 40) a.setExpression("10") t.equal(b.value(), 20) b.setExpression("$$$a$$$ * 3", {$$$a$$$: a}) t.equal(b.value(), 30) ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
1
50
cdglabs/apparatus:test/Attribute.test.coffee:2:raw_corpus
raw_corpus
t.equal(a.value(), 120, 'value works') t.deepEqual(a.dependencies(), [b, c], 'dependencies works') t.equal(a.circularReferencePath(), null, 'circularReferencePath works') t.end() test "Dependencies work with circular references", (t) -> a = Attribute.createVariant({label: 'a'}) b = Attribute.createVariant({l...
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
51
73
cdglabs/apparatus:test/Attribute.test.coffee:2:completion
completion
t.equal(a.value(), 120, 'value works') t.deepEqual(a.dependencies(), [b, c], 'dependencies works') t.equal(a.circularReferencePath(), null, 'circularReferencePath works') t.end() test "Dependencies work with circular references", (t) -> a = Attribute.createVariant({label: 'a'}) b = Attribute.createVariant({l...
b.setExpression("$$$c$$$", {$$$c$$$: c}) c.setExpression("$$$b$$$", {$$$b$$$: b}) expectedCircularReferencePath = [a, b, c, b] expectedError = new Attribute.CircularReferenceError( expectedCircularReferencePath) t.deepEqual(a.value(), expectedError, 'value works') t.deepEqual(a.dependencies(), [b, c], '...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/Attribute.test.coffee
51
73
cdglabs/apparatus:test/Attribute.test.coffee:2:raw_corpus
raw_corpus
t.equal(a.value(), 120, 'value works') t.deepEqual(a.dependencies(), [b, c], 'dependencies works') t.equal(a.checkForCircularReferenceError(), null, 'checkForCircularReferenceError works') t.end() test "Dependencies work with circular references", (t) -> a = Attribute.createVariant({label: 'a'}) b = Attribut...
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
8d3c3cdca10dfdfee9a2f23881c004e556db8518
1,052
https://github.com/cdglabs/apparatus/blob/8d3c3cdca10dfdfee9a2f23881c004e556db8518/test/Attribute.test.coffee
51
71
cdglabs/apparatus:test/Attribute.test.coffee:2:completion
completion
t.equal(a.value(), 120, 'value works') t.deepEqual(a.dependencies(), [b, c], 'dependencies works') t.equal(a.checkForCircularReferenceError(), null, 'checkForCircularReferenceError works') t.end() test "Dependencies work with circular references", (t) -> a = Attribute.createVariant({label: 'a'}) b = Attribut...
a.setExpression("$$$b$$$", {$$$b$$$: b}) b.setExpression("$$$c$$$", {$$$c$$$: c}) c.setExpression("$$$b$$$", {$$$b$$$: b}) expectedError = new Attribute.CircularReferenceError([a, b, c, b]) t.deepEqual(a.value(), expectedError, 'value works') t.deepEqual(a.dependencies(), [b, c], 'dependencies works') t.d...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
8d3c3cdca10dfdfee9a2f23881c004e556db8518
1,052
https://github.com/cdglabs/apparatus/blob/8d3c3cdca10dfdfee9a2f23881c004e556db8518/test/Attribute.test.coffee
51
71
cdglabs/apparatus:test/Attribute.test.coffee:1:raw_corpus
raw_corpus
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
f9454af0d822fdefb66512c7d1809dc9852a1e2e
1,052
https://github.com/cdglabs/apparatus/blob/f9454af0d822fdefb66512c7d1809dc9852a1e2e/test/Attribute.test.coffee
1
41
cdglabs/apparatus:test/Attribute.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.crea...
var Attribute, Model, test; test = require("tape"); Model = require("../src/Model/Model"); Attribute = Model.Attribute; test("Numbers work", function(t) { var a; a = Attribute.createVariant(); a.setExpression("6"); t.equal(a.value(), 6); return t.end(); }); test("Math expressions work", function(t) { v...
CoffeeScript
JavaScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
f9454af0d822fdefb66512c7d1809dc9852a1e2e
1,052
https://github.com/cdglabs/apparatus/blob/f9454af0d822fdefb66512c7d1809dc9852a1e2e/test/Attribute.test.coffee
1
41
cdglabs/apparatus:test/Attribute.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Attribute, Model, test; test = require("tape"); Model = require("../src/Model/Model"); Attribute = Model.Attribute; test("Numbers work", function(t) { var a; a = Attribute.createVariant(); a.setExpression("6"); t.equal(a.value(), 6); return t.end(...
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
JavaScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
f9454af0d822fdefb66512c7d1809dc9852a1e2e
1,052
https://github.com/cdglabs/apparatus/blob/f9454af0d822fdefb66512c7d1809dc9852a1e2e/test/Attribute.test.coffee
1
41
cdglabs/apparatus:test/Attribute.test.coffee:1:completion
completion
test = require "tape" Model = require "../src/Model/Model" Attribute = Model.Attribute test "Numbers work", (t) -> a = Attribute.createVariant() a.setExpression("6") t.equal(a.value(), 6) t.end() test "Math expressions work", (t) -> a = Attribute.createVariant() a.setExpression("5 + 5") t.equal(a.value(...
a.setExpression("20") b.setExpression("$$$a$$$ * 2", {$$$a$$$: a}) t.equal(b.value(), 40) t.end() test "Changes recompile", (t) -> a = Attribute.createVariant() b = Attribute.createVariant() a.setExpression("20") b.setExpression("$$$a$$$ * 2", {$$$a$$$: a}) t.equal(b.value(), 40) a.setExpression(...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/Attribute.test.coffee
MIT
f9454af0d822fdefb66512c7d1809dc9852a1e2e
1,052
https://github.com/cdglabs/apparatus/blob/f9454af0d822fdefb66512c7d1809dc9852a1e2e/test/Attribute.test.coffee
1
41
jianliaoim/talk-os:talk-web/client/actions/settings.coffee:1:raw_corpus
raw_corpus
dispatcher = require '../dispatcher' time = require '../util/time' exports.update = (data) -> dispatcher.handleViewAction type: 'settings/update' data: data exports.teamFootprints = (_teamId) -> dispatcher.handleViewAction type: 'settings/team-footprints' data: _teamId: _teamId time: ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/settings.coffee
1
49
jianliaoim/talk-os:talk-web/client/actions/settings.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript dispatcher = require '../dispatcher' time = require '../util/time' exports.update = (data) -> dispatcher.handleViewAction type: 'settings/update' data: data exports.teamFootprints = (_teamId) -> dispatcher.handleViewAction type: 'settings/team-...
var dispatcher, time; dispatcher = require('../dispatcher'); time = require('../util/time'); exports.update = function(data) { return dispatcher.handleViewAction({ type: 'settings/update', data: data }); }; exports.teamFootprints = function(_teamId) { return dispatcher.handleViewAction({ type: 'se...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/settings.coffee
1
49
jianliaoim/talk-os:talk-web/client/actions/settings.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var dispatcher, time; dispatcher = require('../dispatcher'); time = require('../util/time'); exports.update = function(data) { return dispatcher.handleViewAction({ type: 'settings/update', data: data }); }; exports.teamFootprints = function(_teamId)...
dispatcher = require '../dispatcher' time = require '../util/time' exports.update = (data) -> dispatcher.handleViewAction type: 'settings/update' data: data exports.teamFootprints = (_teamId) -> dispatcher.handleViewAction type: 'settings/team-footprints' data: _teamId: _teamId time: ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/settings.coffee
1
49
jianliaoim/talk-os:talk-web/client/actions/settings.coffee:1:completion
completion
dispatcher = require '../dispatcher' time = require '../util/time' exports.update = (data) -> dispatcher.handleViewAction type: 'settings/update' data: data exports.teamFootprints = (_teamId) -> dispatcher.handleViewAction type: 'settings/team-footprints' data: _teamId: _teamId time: ...
dispatcher.handleViewAction type: 'settings/unfold-contact' data: _teamId: _teamId _id: _contactId exports.openDrawer = (type) -> dispatcher.handleViewAction type: 'settings/open-drawer' data: type: type exports.closeDrawer = -> dispatcher.handleViewAction type: 'settings/clo...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/settings.coffee
1
49
Nedomas/databound:spec/errors/not_found.coffee:1:raw_corpus
raw_corpus
describe 'not found', -> describe '#find', -> it 'undefined id', -> expect(-> User.find()).to.throw(Error, "Databound: Couldn't find a record without an id") it 'non-existing id', -> stubResponse success: true, records: [], -> expect(-> User.find(1)).to.throw(Error, "Dat...
CoffeeScript
Nedomas/databound
spec/errors/not_found.coffee
MIT
a02f231f1c3964eb8584adf55d7709b656e7e4a4
452
https://github.com/Nedomas/databound/blob/a02f231f1c3964eb8584adf55d7709b656e7e4a4/spec/errors/not_found.coffee
1
15
Nedomas/databound:spec/errors/not_found.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'not found', -> describe '#find', -> it 'undefined id', -> expect(-> User.find()).to.throw(Error, "Databound: Couldn't find a record without an id") it 'non-existing id', -> stubResponse success: true, records: [], -> ...
describe('not found', function() { describe('#find', function() { it('undefined id', function() { return expect(function() { return User.find(); }).to.throw(Error, "Databound: Couldn't find a record without an id"); }); return it('non-existing id', function() { return stubRespons...
CoffeeScript
JavaScript
Nedomas/databound
spec/errors/not_found.coffee
MIT
a02f231f1c3964eb8584adf55d7709b656e7e4a4
452
https://github.com/Nedomas/databound/blob/a02f231f1c3964eb8584adf55d7709b656e7e4a4/spec/errors/not_found.coffee
1
15
Nedomas/databound:spec/errors/not_found.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('not found', function() { describe('#find', function() { it('undefined id', function() { return expect(function() { return User.find(); }).to.throw(Error, "Databound: Couldn't find a record without an id"); }); return it('...
describe 'not found', -> describe '#find', -> it 'undefined id', -> expect(-> User.find()).to.throw(Error, "Databound: Couldn't find a record without an id") it 'non-existing id', -> stubResponse success: true, records: [], -> expect(-> User.find(1)).to.throw(Error, "Dat...
JavaScript
CoffeeScript
Nedomas/databound
spec/errors/not_found.coffee
MIT
a02f231f1c3964eb8584adf55d7709b656e7e4a4
452
https://github.com/Nedomas/databound/blob/a02f231f1c3964eb8584adf55d7709b656e7e4a4/spec/errors/not_found.coffee
1
15
Nedomas/databound:spec/errors/not_found.coffee:1:completion
completion
describe 'not found', -> describe '#find', -> it 'undefined id', -> expect(-> User.find()).to.throw(Error, "Databound: Couldn't find a record without an id") it 'non-existing id', ->
stubResponse success: true, records: [], -> expect(-> User.find(1)).to.throw(Error, "Databound: Couldn't find record with id: 1") describe '#destroy', -> it 'undefined id', -> expect(-> User.destroy()).to.throw(Error, "Databound: Couldn't destroy a record without an id")
CoffeeScript
CoffeeScript
Nedomas/databound
spec/errors/not_found.coffee
MIT
a02f231f1c3964eb8584adf55d7709b656e7e4a4
452
https://github.com/Nedomas/databound/blob/a02f231f1c3964eb8584adf55d7709b656e7e4a4/spec/errors/not_found.coffee
1
15
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.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 ...
# cyclotronDataSources.factory 'graphiteDataSource', ($q, $http, configService, dataSourceFactory) -> getGraphiteUrl = (url) -> # Clean up of Graphite URL. TODO: More robust support graphiteUrl = _.jsExec url if graphiteUrl.indexOf('http') != 0 && graphiteUrl.indexOf('!{') != 0 ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:2:raw_corpus
raw_corpus
if options.from? body.url += 'from=' + _.jsExec(options.from) + '&' if options.until? body.url += 'until=' + _.jsExec(options.until) + '&' if options.targets? queryParams = _.map options.targets, (target) -> 'target=' + encodeURIComponent(_.jsExec(tar...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
43
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if options.from? body.url += 'from=' + _.jsExec(options.from) + '&' if options.until? body.url += 'until=' + _.jsExec(options.until) + '&' if options.targets? queryParams = _.map options.targets, (target) -> ...
var queryParams, runner; if (options.from != null) { body.url += 'from=' + _.jsExec(options.from) + '&'; } if (options.until != null) { body.url += 'until=' + _.jsExec(options.until) + '&'; } if (options.targets != null) { queryParams = _.map(options.targets, function(target) { return 'target=' + encodeURI...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
43
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var queryParams, runner; if (options.from != null) { body.url += 'from=' + _.jsExec(options.from) + '&'; } if (options.until != null) { body.url += 'until=' + _.jsExec(options.until) + '&'; } if (options.targets != null) { queryParams = _.map(options.targe...
if options.from? body.url += 'from=' + _.jsExec(options.from) + '&' if options.until? body.url += 'until=' + _.jsExec(options.until) + '&' if options.targets? queryParams = _.map options.targets, (target) -> 'target=' + encodeURIComponent(_.jsExec(tar...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
43
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:2:completion
completion
if options.from? body.url += 'from=' + _.jsExec(options.from) + '&' if options.until? body.url += 'until=' + _.jsExec(options.until) + '&' if options.targets? queryParams = _.map options.targets, (target) -> 'target=' + encodeURIComponent(_.jsExec(tar...
# CORS error error = 'Cross-Origin Resource Sharing error with the server.' q.reject error # Successful Result successCallback = (result) -> return errorCallback 'Error retrieving data from Graphite', -1 unless _.isObject result.body data = [] ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
43
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:raw_corpus
raw_corpus
q.resolve '0': data: data columns: null # Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl) .protocol '' # Remove protocol to work with either HTTP/HTTPS .segment 'proxy' # ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
104
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript q.resolve '0': data: data columns: null # Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl) .protocol '' # Remove protocol to wo...
var proxyUri, req; q.resolve({ '0': { data: data, columns: null } }); // Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl).protocol('').segment('proxy').toString(); // Remove protocol to work with either HTTP/HTTPS // Append /proxy endpoint // Do the request,...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
104
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var proxyUri, req; q.resolve({ '0': { data: data, columns: null } }); // Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl).protocol('').segment('proxy').toString(); // Remove protocol to work with either H...
q.resolve '0': data: data columns: null # Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl) .protocol '' # Remove protocol to work with either HTTP/HTTPS .segment 'proxy' # ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
104
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:completion
completion
q.resolve '0': data: data columns: null # Generate proxy URLs proxyUri = new URI(_.jsExec(options.proxy) || configService.restServiceUrl) .protocol '' # Remove protocol to work with either HTTP/HTTPS .segment 'proxy' # ...
# Do the request, wiring up success/failure handlers req = $http.post proxyUri, getProxyRequest(options) # Add callback handlers to promise req.success successCallback req.error errorCallback return q.promise dataSourceFactory.create 'Graphite', runner
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
104
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.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/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
6aa99e4a06fb9bdc26f6769552b5d898e5ee1831
1,544
https://github.com/ExpediaGroup/cyclotron/blob/6aa99e4a06fb9bdc26f6769552b5d898e5ee1831/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.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/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
6aa99e4a06fb9bdc26f6769552b5d898e5ee1831
1,544
https://github.com/ExpediaGroup/cyclotron/blob/6aa99e4a06fb9bdc26f6769552b5d898e5ee1831/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41