id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
rs/pushd:lib/pushservices.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript event = require './event' apns = require 'apn' c2dm = require 'c2dm' #mpns = require 'mpns' class PushServiceAPNS constructor: (conf) -> @driver = new apns.Connection(conf) push: (device, subOptions, info, payload) -> note = new apns.Not...
var PushServiceAPNS, PushServiceC2DM, PushServiceMPNS, PushServices, apns, c2dm, event; event = require('./event'); apns = require('apn'); c2dm = require('c2dm'); //mpns = require 'mpns' PushServiceAPNS = class PushServiceAPNS { constructor(conf) { this.driver = new apns.Connection(conf); } push(device, ...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices.coffee
MIT
528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d
1,157
https://github.com/rs/pushd/blob/528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d/lib/pushservices.coffee
1
50
rs/pushd:lib/pushservices.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceAPNS, PushServiceC2DM, PushServiceMPNS, PushServices, apns, c2dm, event; event = require('./event'); apns = require('apn'); c2dm = require('c2dm'); //mpns = require 'mpns' PushServiceAPNS = class PushServiceAPNS { constructor(conf) { this.d...
event = require './event' apns = require 'apn' c2dm = require 'c2dm' #mpns = require 'mpns' class PushServiceAPNS constructor: (conf) -> @driver = new apns.Connection(conf) push: (device, subOptions, info, payload) -> note = new apns.Notification() note.device = new apns.Device(info.re...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices.coffee
MIT
528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d
1,157
https://github.com/rs/pushd/blob/528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d/lib/pushservices.coffee
1
50
rs/pushd:lib/pushservices.coffee:1:completion
completion
event = require './event' apns = require 'apn' c2dm = require 'c2dm' #mpns = require 'mpns' class PushServiceAPNS constructor: (conf) -> @driver = new apns.Connection(conf) push: (device, subOptions, info, payload) -> note = new apns.Notification() note.device = new apns.Device(info.re...
conf.keepAlive = true @driver = new c2dm.C2DM(conf) push: (device, subOptions, info, payload) -> note = registration_id: device.id collapse_key: payload.eventName if not (subOptions & event.OPTION_IGNORE_MESSAGE) and message = payload.localizedMessage(info.lang) ...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices.coffee
MIT
528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d
1,157
https://github.com/rs/pushd/blob/528b1b2a332b9ac8ca2c1a2554944c5eaa35e40d/lib/pushservices.coffee
1
50
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:raw_corpus
raw_corpus
stump = require('stump') WebsocketListener = require('./websocket_listener') WebsocketInitiator = require('./websocket_initiator') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().th...
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
f1c21018cf2c2241d93adbebde2d77f533877063
663
https://github.com/buttercoin/buttercoin/blob/f1c21018cf2c2241d93adbebde2d77f533877063/lib/ews/engine_websocket_slave.coffee
1
27
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript stump = require('stump') WebsocketListener = require('./websocket_listener') WebsocketInitiator = require('./websocket_initiator') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketS...
var EngineProtocol, EngineServer, EngineWebsocketSlave, WebsocketInitiator, WebsocketListener, stump, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; stump = require('stump'); WebsocketListener = re...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
f1c21018cf2c2241d93adbebde2d77f533877063
663
https://github.com/buttercoin/buttercoin/blob/f1c21018cf2c2241d93adbebde2d77f533877063/lib/ews/engine_websocket_slave.coffee
1
27
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var EngineProtocol, EngineServer, EngineWebsocketSlave, WebsocketInitiator, WebsocketListener, stump, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); ...
stump = require('stump') WebsocketListener = require('./websocket_listener') WebsocketInitiator = require('./websocket_initiator') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().th...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
f1c21018cf2c2241d93adbebde2d77f533877063
663
https://github.com/buttercoin/buttercoin/blob/f1c21018cf2c2241d93adbebde2d77f533877063/lib/ews/engine_websocket_slave.coffee
1
27
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:completion
completion
stump = require('stump') WebsocketListener = require('./websocket_listener') WebsocketInitiator = require('./websocket_initiator') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().th...
listener = new WebsocketListener( { wsconfig: {port: 6150} protocol_factory: @new_connection } ) listener.listen() connect_upstream: => @info 'CONNECT UPSTREAM' wsi = new WebsocketInitiator( @options ) wsi.connect().then => @info 'CONNECTED' new_connection...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
f1c21018cf2c2241d93adbebde2d77f533877063
663
https://github.com/buttercoin/buttercoin/blob/f1c21018cf2c2241d93adbebde2d77f533877063/lib/ews/engine_websocket_slave.coffee
1
27
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:raw_corpus
raw_corpus
stump = require('stump') WebsocketListener = require('./websocket_listener') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().then => @connect_upstream().then => listene...
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6
663
https://github.com/buttercoin/buttercoin/blob/89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6/lib/ews/engine_websocket_slave.coffee
1
22
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript stump = require('stump') WebsocketListener = require('./websocket_listener') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start()....
var EngineProtocol, EngineServer, EngineWebsocketSlave, WebsocketListener, stump, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; stump = require('stump'); WebsocketListener = require('./websocket_l...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6
663
https://github.com/buttercoin/buttercoin/blob/89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6/lib/ews/engine_websocket_slave.coffee
1
22
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var EngineProtocol, EngineServer, EngineWebsocketSlave, WebsocketListener, stump, boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } }; stump = requir...
stump = require('stump') WebsocketListener = require('./websocket_listener') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().then => @connect_upstream().then => listene...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6
663
https://github.com/buttercoin/buttercoin/blob/89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6/lib/ews/engine_websocket_slave.coffee
1
22
buttercoin/buttercoin:lib/ews/engine_websocket_slave.coffee:1:completion
completion
stump = require('stump') WebsocketListener = require('./websocket_listener') EngineProtocol = require('./engine_protocol') EngineServer = require('../engine_server') module.exports = class EngineWebsocketSlave extends EngineServer start: => @pce.start().then => @connect_upstream().then =>
listener = new WebsocketListener( { wsconfig: {port: 6150} protocol_factory: @new_connection } ) listener.listen() connect_upstream: => @info 'CONNECT UPSTREAM' new_connection: (connection) => throw Error("Slave does not support Query Protocol yet!")
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/ews/engine_websocket_slave.coffee
MIT
89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6
663
https://github.com/buttercoin/buttercoin/blob/89ffb77d27d3fbedc33f0ead9ddd73c0eb1ef9f6/lib/ews/engine_websocket_slave.coffee
1
22
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.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 ...
# Store some configuration settings for the Editor $scope.dashboardProperties = configService.dashboard.properties $scope.allDataSources = configService.dashboard.properties.dataSources.options $scope.$watch 'editor.selectedItemIndex', -> $scope.dataSourceIndex = $scope.editor.selectedItemIndex ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.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/mgmt/controller.dataSourceEditor.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.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/mgmt/controller.dataSourceEditor.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.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/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.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 ...
# Store some configuration settings for the Editor $scope.dashboardProperties = configService.dashboard.properties $scope.allDataSources = configService.dashboard.properties.dataSources.options $scope.$watch 'editor.selectedItemIndex', -> $scope.dataSourceIndex = $scope.editor.selectedItemIndex ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/controller.dataSourceEditor.coffee
1
42
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.nl.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.nl.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.nl.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Filter resultaten" totals: "Totaal" vs: "versus" by: "per" aggregators: "Aantal": tpl.count(frFmtInt) "Aantal unieke waarden": tpl.countUnique(frFmtInt) "Lijst unieke waarden": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.nl.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
ce5420bd4a8a056c46e08e2dae5ccfd97faea532
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce5420bd4a8a056c46e08e2dae5ccfd97faea532/locales/pivot.nl.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.nl.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Filter resultaten" totals: "Totaal" vs: "versus" by: "per" aggregators: "Aantal": tpl.count(frFmtInt) "Aantal unieke waarden": tpl.countUnique(frFmtInt) "Lijst unieke waarden": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.nl.coffee
MIT
ce5420bd4a8a056c46e08e2dae5ccfd97faea532
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce5420bd4a8a056c46e08e2dae5ccfd97faea532/locales/pivot.nl.coffee
1
50
meltingice/psd.js:lib/psd/layer_info/vector_origination.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class VectorOrigination extends LayerInfo @shouldParse: (key) -> key is 'vogk' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/vector_origination.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/vector_origination.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/vector_origination.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class VectorOrigination extends LayerInfo @shouldParse: (key) -> key is 'vogk' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()...
var Descriptor, LayerInfo, VectorOrigination; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = VectorOrigination = class VectorOrigination extends LayerInfo { static shouldParse(key) { return key === 'vogk'; } parse() { this.file.seek(8, true)...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/vector_origination.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/vector_origination.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/vector_origination.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Descriptor, LayerInfo, VectorOrigination; LayerInfo = require('../layer_info.coffee'); Descriptor = require('../descriptor.coffee'); module.exports = VectorOrigination = class VectorOrigination extends LayerInfo { static shouldParse(key) { return key =...
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class VectorOrigination extends LayerInfo @shouldParse: (key) -> key is 'vogk' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/vector_origination.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/vector_origination.coffee
1
9
meltingice/psd.js:lib/psd/layer_info/vector_origination.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' Descriptor = require '../descriptor.coffee' module.exports = class VectorOrigination extends LayerInfo
@shouldParse: (key) -> key is 'vogk' parse: -> @file.seek 8, true @data = new Descriptor(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/vector_origination.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/vector_origination.coffee
1
9
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:raw_corpus
raw_corpus
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> @e.newText is '\n' hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText and @e.newText isnt '\n' getText: -...
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/input-handler.coffee
1
30
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> @e.newText is '\n' hasDeleted: -> not not @e.oldText hasWritten: -> ...
module.exports = { handle: function(e) { return this.e = e; }, getEvent: function() { return this.e; }, getPosition: function() { if (this.e.newText) { return this.e.newRange.end; } else { return this.e.newRange.start; } }, isNewLine: function() { return this.e.newText ...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/input-handler.coffee
1
30
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { handle: function(e) { return this.e = e; }, getEvent: function() { return this.e; }, getPosition: function() { if (this.e.newText) { return this.e.newRange.end; } else { return this.e.newRange.start; } ...
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> @e.newText is '\n' hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText and @e.newText isnt '\n' getText: -...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/input-handler.coffee
1
30
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:completion
completion
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> @e.newText is '\n'
hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText and @e.newText isnt '\n' getText: -> @e.newText getDeletedText: -> @e.oldText isGhost: -> not @e.newText and not @e.oldText
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/input-handler.coffee
1
30
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:raw_corpus
raw_corpus
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> not @e.newText and not @e.oldText hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText getText: -> @e.n...
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
6b61e450677eac9707dfee087d18a58686fb0c52
3,570
https://github.com/JoelBesada/activate-power-mode/blob/6b61e450677eac9707dfee087d18a58686fb0c52/lib/input-handler.coffee
1
27
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> not @e.newText and not @e.oldText hasDeleted: -> not not @e.oldText hasW...
module.exports = { handle: function(e) { return this.e = e; }, getEvent: function() { return this.e; }, getPosition: function() { if (this.e.newText) { return this.e.newRange.end; } else { return this.e.newRange.start; } }, isNewLine: function() { return !this.e.newText...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
6b61e450677eac9707dfee087d18a58686fb0c52
3,570
https://github.com/JoelBesada/activate-power-mode/blob/6b61e450677eac9707dfee087d18a58686fb0c52/lib/input-handler.coffee
1
27
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { handle: function(e) { return this.e = e; }, getEvent: function() { return this.e; }, getPosition: function() { if (this.e.newText) { return this.e.newRange.end; } else { return this.e.newRange.start; } ...
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start isNewLine: -> not @e.newText and not @e.oldText hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText getText: -> @e.n...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
6b61e450677eac9707dfee087d18a58686fb0c52
3,570
https://github.com/JoelBesada/activate-power-mode/blob/6b61e450677eac9707dfee087d18a58686fb0c52/lib/input-handler.coffee
1
27
JoelBesada/activate-power-mode:lib/input-handler.coffee:1:completion
completion
module.exports = handle: (e) -> @e = e getEvent: -> @e getPosition: -> if @e.newText @e.newRange.end else @e.newRange.start
isNewLine: -> not @e.newText and not @e.oldText hasDeleted: -> not not @e.oldText hasWritten: -> not not @e.newText getText: -> @e.newText getDeletedText: -> @e.oldText
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/input-handler.coffee
MIT
6b61e450677eac9707dfee087d18a58686fb0c52
3,570
https://github.com/JoelBesada/activate-power-mode/blob/6b61e450677eac9707dfee087d18a58686fb0c52/lib/input-handler.coffee
1
27
snd/url-pattern:test.coffee:1:raw_corpus
raw_corpus
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
CoffeeScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
4
53
snd/url-pattern:test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done(...
module.exports = { 'getNames': { 'no names': function(test) { test.deepEqual([], getNames('/foo/bar/baz')); return test.done(); }, 'one name': function(test) { test.deepEqual(['foo'], getNames('/foo/:foo/bar/baz')); return test.done(); }, 'three names': function(test) { ...
CoffeeScript
JavaScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
4
53
snd/url-pattern:test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'getNames': { 'no names': function(test) { test.deepEqual([], getNames('/foo/bar/baz')); return test.done(); }, 'one name': function(test) { test.deepEqual(['foo'], getNames('/foo/:foo/bar/baz')); return test...
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
JavaScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
4
53
snd/url-pattern:test.coffee:1:completion
completion
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
test.done() 'names are replaced': (test) -> test.equals '^/users/([^/]+)/tasks/([^/]+)$', toRegexString '/users/:userId/tasks/:taskId' test.done() 'wildcards are replaced': (test) -> test.equals '^.*foo$', toRegexString '*foo' test.equals...
CoffeeScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
4
53
snd/url-pattern:test.coffee:2:raw_corpus
raw_corpus
pattern = newPattern '/foo' test.equals pattern.match('/bar/foo'), null test.done() 'regex without bindings is matched': (test) -> pattern = newPattern /foo/ test.deepEqual pattern.match('foo'), [] test.done() 'regex with binding is matched':...
CoffeeScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
54
91
snd/url-pattern:test.coffee:2:completion
completion
pattern = newPattern '/foo' test.equals pattern.match('/bar/foo'), null test.done() 'regex without bindings is matched': (test) -> pattern = newPattern /foo/ test.deepEqual pattern.match('foo'), [] test.done() 'regex with binding is matched':...
'parameter bindings are returned': (test) -> pattern = newPattern '/user/:userId/task/:taskId' test.deepEqual pattern.match('/user/10/task/52'), {userId: '10', taskId: '52'} test.done() 'prefix wildcard works': (test) -> pattern = newPattern '*/user/:userId' ...
CoffeeScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
634a44347d8d353d9ccf2c53274a8239b3740cd2
588
https://github.com/snd/url-pattern/blob/634a44347d8d353d9ccf2c53274a8239b3740cd2/test.coffee
54
91
snd/url-pattern:test.coffee:1:raw_corpus
raw_corpus
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
CoffeeScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
4
53
snd/url-pattern:test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done(...
module.exports = { 'getNames': { 'no names': function(test) { test.deepEqual([], getNames('/foo/bar/baz')); return test.done(); }, 'one name': function(test) { test.deepEqual(['foo'], getNames('/foo/:foo/bar/baz')); return test.done(); }, 'three names': function(test) { ...
CoffeeScript
JavaScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
4
53
snd/url-pattern:test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'getNames': { 'no names': function(test) { test.deepEqual([], getNames('/foo/bar/baz')); return test.done(); }, 'one name': function(test) { test.deepEqual(['foo'], getNames('/foo/:foo/bar/baz')); return test...
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
JavaScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
4
53
snd/url-pattern:test.coffee:1:completion
completion
module.exports = 'getNames': 'no names': (test) -> test.deepEqual [], getNames '/foo/bar/baz' test.done() 'one name': (test) -> test.deepEqual ['foo'], getNames '/foo/:foo/bar/baz' test.done() 'three names': (test) -> test.deep...
test.done() 'names are replaced': (test) -> test.equals '^/users/([^/]+)/tasks/([^/]+)$', toRegexString '/users/:userId/tasks/:taskId' test.done() 'wildcards are replaced': (test) -> test.equals '^.*foo$', toRegexString '*foo' test.equals...
CoffeeScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
4
53
snd/url-pattern:test.coffee:2:raw_corpus
raw_corpus
pattern = new Pattern '/foo' test.equals pattern.match('/bar/foo'), null test.done() 'regex without bindings is matched': (test) -> pattern = new Pattern /foo/ test.deepEqual pattern.match('foo'), [] test.done() 'regex with binding is matched...
CoffeeScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
54
91
snd/url-pattern:test.coffee:2:completion
completion
pattern = new Pattern '/foo' test.equals pattern.match('/bar/foo'), null test.done() 'regex without bindings is matched': (test) -> pattern = new Pattern /foo/ test.deepEqual pattern.match('foo'), [] test.done() 'regex with binding is matched...
'parameter bindings are returned': (test) -> pattern = new Pattern '/user/:userId/task/:taskId' test.deepEqual pattern.match('/user/10/task/52'), {userId: '10', taskId: '52'} test.done() 'prefix wildcard works': (test) -> pattern = new Pattern '*/user/:userId' ...
CoffeeScript
CoffeeScript
snd/url-pattern
test.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/test.coffee
54
91
yakyak/yakyak:src/ui/models/notify.coffee:1:raw_corpus
raw_corpus
tonotify = [] module.exports = addToNotify: (ev) -> tonotify.push ev popToNotify: -> return [] unless tonotify.length t = tonotify tonotify = [] return t
CoffeeScript
yakyak/yakyak
src/ui/models/notify.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/models/notify.coffee
1
9
yakyak/yakyak:src/ui/models/notify.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript tonotify = [] module.exports = addToNotify: (ev) -> tonotify.push ev popToNotify: -> return [] unless tonotify.length t = tonotify tonotify = [] return t ```
var tonotify; tonotify = []; module.exports = { addToNotify: function(ev) { return tonotify.push(ev); }, popToNotify: function() { var t; if (!tonotify.length) { return []; } t = tonotify; tonotify = []; return t; } };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/models/notify.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/models/notify.coffee
1
9
yakyak/yakyak:src/ui/models/notify.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var tonotify; tonotify = []; module.exports = { addToNotify: function(ev) { return tonotify.push(ev); }, popToNotify: function() { var t; if (!tonotify.length) { return []; } t = tonotify; tonotify = []; return t; } }; ``...
tonotify = [] module.exports = addToNotify: (ev) -> tonotify.push ev popToNotify: -> return [] unless tonotify.length t = tonotify tonotify = [] return t
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/models/notify.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/models/notify.coffee
1
9
yakyak/yakyak:src/ui/models/notify.coffee:1:completion
completion
tonotify = [] module.exports = addToNotify: (ev) -> tonotify.push ev
popToNotify: -> return [] unless tonotify.length t = tonotify tonotify = [] return t
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/models/notify.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/models/notify.coffee
1
9
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee:1:raw_corpus
raw_corpus
grade: (student) -> if student.excellent_work "A+" else if student.okay_stuff if student.tried_hard then "B" else "B-" else "C" eldest: if 24 > 21 then "Liz" else "Ike"
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
1
9
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grade: (student) -> if student.excellent_work "A+" else if student.okay_stuff if student.tried_hard then "B" else "B-" else "C" eldest: if 24 > 21 then "Liz" else "Ike" ```
({ grade: function(student) { if (student.excellent_work) { return "A+"; } else if (student.okay_stuff) { if (student.tried_hard) { return "B"; } else { return "B-"; } } else { return "C"; } }, eldest: 24 > 21 ? "Liz" : "Ike" });
CoffeeScript
JavaScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
1
9
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ grade: function(student) { if (student.excellent_work) { return "A+"; } else if (student.okay_stuff) { if (student.tried_hard) { return "B"; } else { return "B-"; } } else { return "C"; } }, eld...
grade: (student) -> if student.excellent_work "A+" else if student.okay_stuff if student.tried_hard then "B" else "B-" else "C" eldest: if 24 > 21 then "Liz" else "Ike"
JavaScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
1
9
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee:1:completion
completion
grade: (student) -> if student.excellent_work "A+" else if student.okay_stuff
if student.tried_hard then "B" else "B-" else "C" eldest: if 24 > 21 then "Liz" else "Ike"
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/expressions.coffee
1
9
jianliaoim/talk-os:talk-api2x/server/controllers/tag.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' Err = require 'err1st' limbo = require 'limbo' app = require '../server' { TagModel } = limbo.use 'talk' module.exports = tagController = app.controller 'tag', -> @mixin require './mixins/permission' @ensure 'name', only: 'create update' @ensure '_teamId', only: 'create read' @before...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/tag.coffee
1
47
jianliaoim/talk-os:talk-api2x/server/controllers/tag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' Err = require 'err1st' limbo = require 'limbo' app = require '../server' { TagModel } = limbo.use 'talk' module.exports = tagController = app.controller 'tag', -> @mixin require './mixins/permission' @ensure 'name', only: 'create up...
var Err, TagModel, _, app, limbo, tagController; _ = require('lodash'); Err = require('err1st'); limbo = require('limbo'); app = require('../server'); ({TagModel} = limbo.use('talk')); module.exports = tagController = app.controller('tag', function() { this.mixin(require('./mixins/permission')); this.ensure('...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/controllers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/tag.coffee
1
47
jianliaoim/talk-os:talk-api2x/server/controllers/tag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Err, TagModel, _, app, limbo, tagController; _ = require('lodash'); Err = require('err1st'); limbo = require('limbo'); app = require('../server'); ({TagModel} = limbo.use('talk')); module.exports = tagController = app.controller('tag', function() { this...
_ = require 'lodash' Err = require 'err1st' limbo = require 'limbo' app = require '../server' { TagModel } = limbo.use 'talk' module.exports = tagController = app.controller 'tag', -> @mixin require './mixins/permission' @ensure 'name', only: 'create update' @ensure '_teamId', only: 'create read' @before...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/tag.coffee
1
47
jianliaoim/talk-os:talk-api2x/server/controllers/tag.coffee:1:completion
completion
_ = require 'lodash' Err = require 'err1st' limbo = require 'limbo' app = require '../server' { TagModel } = limbo.use 'talk' module.exports = tagController = app.controller 'tag', -> @mixin require './mixins/permission' @ensure 'name', only: 'create update' @ensure '_teamId', only: 'create read' @before...
team: _teamId TagModel.findOne conditions, (err, tag) -> return callback(new Err('OBJECT_EXISTING')) if tag tag = new TagModel conditions tag.creator = _sessionUserId tag.socketId = socketId tag.save callback @action 'read', (req, res, callback) -> {_teamId} = req.get() TagM...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/tag.coffee
1
47
cdglabs/apparatus:src/Model/NodeWithAttributes.coffee:1:raw_corpus
raw_corpus
_ = require "underscore" Node = require "./Node" Model = require "./Model" # Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant label: "Node With Attributes" attributes: -> @childrenOfType(Model.Attribute) getAttributesByName: -> _.indexBy...
CoffeeScript
cdglabs/apparatus
src/Model/NodeWithAttributes.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/NodeWithAttributes.coffee
1
17
cdglabs/apparatus:src/Model/NodeWithAttributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require "underscore" Node = require "./Node" Model = require "./Model" # Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant label: "Node With Attributes" attributes: -> @childrenOfType(...
var Model, Node, NodeWithAttributes, _; _ = require("underscore"); Node = require("./Node"); Model = require("./Model"); // Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant({ label: "Node With Attributes", attributes: function() { return this....
CoffeeScript
JavaScript
cdglabs/apparatus
src/Model/NodeWithAttributes.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/NodeWithAttributes.coffee
1
17
cdglabs/apparatus:src/Model/NodeWithAttributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Model, Node, NodeWithAttributes, _; _ = require("underscore"); Node = require("./Node"); Model = require("./Model"); // Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant({ label: "Node With A...
_ = require "underscore" Node = require "./Node" Model = require "./Model" # Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant label: "Node With Attributes" attributes: -> @childrenOfType(Model.Attribute) getAttributesByName: -> _.indexBy...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Model/NodeWithAttributes.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/NodeWithAttributes.coffee
1
17
cdglabs/apparatus:src/Model/NodeWithAttributes.coffee:1:completion
completion
_ = require "underscore" Node = require "./Node" Model = require "./Model" # Helper methods for nodes which have attributes attached. module.exports = NodeWithAttributes = Node.createVariant label: "Node With Attributes"
attributes: -> @childrenOfType(Model.Attribute) getAttributesByName: -> _.indexBy @attributes(), "name" getAttributesValuesByName: -> _.mapObject @getAttributesByName(), (attr) -> attr.value()
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Model/NodeWithAttributes.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Model/NodeWithAttributes.coffee
1
17
meltingice/psd.js:lib/psd/layer/mask.coffee:1:raw_corpus
raw_corpus
Mask = require '../mask.coffee' module.exports = # Every layer has a mask section, whether or not the layer actually # has a mask defined. If there is no mask, then the mask size will be # 0 and we'll move on to the next thing. parseMaskData: -> @mask = new Mask(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/mask.coffee
1
8
meltingice/psd.js:lib/psd/layer/mask.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Mask = require '../mask.coffee' module.exports = # Every layer has a mask section, whether or not the layer actually # has a mask defined. If there is no mask, then the mask size will be # 0 and we'll move on to the next thing. parseMaskData: -> @mas...
var Mask; Mask = require('../mask.coffee'); module.exports = { // Every layer has a mask section, whether or not the layer actually // has a mask defined. If there is no mask, then the mask size will be // 0 and we'll move on to the next thing. parseMaskData: function() { return this.mask = new Mask(this....
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/mask.coffee
1
8
meltingice/psd.js:lib/psd/layer/mask.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Mask; Mask = require('../mask.coffee'); module.exports = { // Every layer has a mask section, whether or not the layer actually // has a mask defined. If there is no mask, then the mask size will be // 0 and we'll move on to the next thing. parseMaskD...
Mask = require '../mask.coffee' module.exports = # Every layer has a mask section, whether or not the layer actually # has a mask defined. If there is no mask, then the mask size will be # 0 and we'll move on to the next thing. parseMaskData: -> @mask = new Mask(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/mask.coffee
1
8
meltingice/psd.js:lib/psd/layer/mask.coffee:1:completion
completion
Mask = require '../mask.coffee' module.exports = # Every layer has a mask section, whether or not the layer actually
# has a mask defined. If there is no mask, then the mask size will be # 0 and we'll move on to the next thing. parseMaskData: -> @mask = new Mask(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/mask.coffee
1
8
meltingice/psd.js:lib/psd/layer/mask.coffee:1:raw_corpus
raw_corpus
Mask = require '../mask.coffee' module.exports = parseMaskData: -> @mask = new Mask(@file).parse()
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/layer/mask.coffee
1
5
meltingice/psd.js:lib/psd/layer/mask.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Mask = require '../mask.coffee' module.exports = parseMaskData: -> @mask = new Mask(@file).parse() ```
var Mask; Mask = require('../mask.coffee'); module.exports = { parseMaskData: function() { return this.mask = new Mask(this.file).parse(); } };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/layer/mask.coffee
1
5
meltingice/psd.js:lib/psd/layer/mask.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Mask; Mask = require('../mask.coffee'); module.exports = { parseMaskData: function() { return this.mask = new Mask(this.file).parse(); } }; ```
Mask = require '../mask.coffee' module.exports = parseMaskData: -> @mask = new Mask(@file).parse()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/layer/mask.coffee
1
5
meltingice/psd.js:lib/psd/layer/mask.coffee:1:completion
completion
Mask = require '../mask.coffee'
module.exports = parseMaskData: -> @mask = new Mask(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/mask.coffee
MIT
28ac2075d7bad825fb58a2b269d9636ee382df4a
2,846
https://github.com/meltingice/psd.js/blob/28ac2075d7bad825fb58a2b269d9636ee382df4a/lib/psd/layer/mask.coffee
1
5
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] window.addEventListener 'error', @onError, true methods: ['log', 'warn', 'info', 'error', 'group', 'groupE...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] window.addEventListener 'error', @onError, true m...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.onError = this.onError.bind(this); this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !=...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.onError = this.onError.bind(this); this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? r...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] window.addEventListener 'error', @onError, true methods: ['log', 'warn', 'info', 'error', 'group', 'groupE...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] window.addEventListener 'error', @onError, true methods: ['log', 'warn', 'info', 'error', 'group', 'groupE...
@stack.push(index - 5) pop: (d, type = @row, update) -> if (@level > 0.5 || type != @row) && @stack.length index = @stack.pop() @buffer[index + 3] = d if type != @row @buffer[index + 2] = @getTime(@buffer[index + 2]) unless @stack.length @flush() return true retu...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0aaa1dada754e2be6a0b7b89a50d278b0a3658c4
2,854
https://github.com/gss/engine/blob/0aaa1dada754e2be6a0b7b89a50d278b0a3658c4/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
@buffer[index + 3] = d if type != @row @buffer[index + 2] = @getTime(@buffer[index + 2]) unless @stack.length @flush() return flush: -> if @level > 1 console?.profileEnd() for item, index in @buffer by 5 @buffer[index + 4].call(@, @buffer[index], @buffer[index + ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:2:raw_corpus
raw_corpus
when 'string' fmt += '%s' reason = @pad(reason, 16) when 'object' fmt += '%O\t' unless reason.length? fmt += '\t' switch typeof result when 'string' fmt += '%s' result = @pad(result, 17) when 'object' fmt += '%O\t' unless r...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:completion
completion
when 'string' fmt += '%s' reason = @pad(reason, 16) when 'object' fmt += '%O\t' unless reason.length? fmt += '\t' switch typeof result when 'string' fmt += '%s' result = @pad(result, 17) when 'object' fmt += '%O\t' unless r...
closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else if obj.nodeType obj._gss_id else if obj.toString != Object.prototype.toString obj.toString() else if obj.displayName return obj.displayName else JSON.st...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:3:raw_corpus
raw_corpus
a = a.name || a return if typeof a != 'string' p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t') if (index = c.indexOf(@DESCEND)) > -1 if c.indexOf('style[type*="gss"]') > -1 c = c.substring(index + 1) c = c.replace /\r?\n|\r|\s+/g, ' ' fmt = '%c%s' switch typeof b ...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
103
152
gss/engine:src/utilities/Console.coffee:3:completion
completion
a = a.name || a return if typeof a != 'string' p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t') if (index = c.indexOf(@DESCEND)) > -1 if c.indexOf('style[type*="gss"]') > -1 c = c.substring(index + 1) c = c.replace /\r?\n|\r|\s+/g, ' ' fmt = '%c%s' switch typeof b ...
d = @pad(String(d), 17) when 'object' fmt += ' %O\t ' if d.item d = Array.prototype.slice.call(d) else unless d.length? d = [d] if document? @log(fmt + '%c%s', 'color: #666', @pad(a, 11), b, d, 'color: #999', c) ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
103
152
gss/engine:src/utilities/Console.coffee:4:raw_corpus
raw_corpus
time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in Console::methods Console::[method] = do (method) -> return -> if method == 'group' || method == 'groupCollapsed' Console::groups++ els...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
153
168
gss/engine:src/utilities/Console.coffee:4:completion
completion
time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in Console::methods Console::[method] = do (method) -> return ->
if method == 'group' || method == 'groupCollapsed' Console::groups++ else if method == 'groupEnd' return unless Console::groups Console::groups-- if @level || method == 'error' console?[method]?(arguments...)
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
0d8461e55d1aa2d2da9bebe951e437f0a32fade1
2,854
https://github.com/gss/engine/blob/0d8461e55d1aa2d2da9bebe951e437f0a32fade1/src/utilities/Console.coffee
153
168
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
8587a0d1388e33de3e842d9014fafef0cba195ef
2,854
https://github.com/gss/engine/blob/8587a0d1388e33de3e842d9014fafef0cba195ef/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
@buffer[index + 3] = d if type != @row @buffer[index + 2] = @getTime(@buffer[index + 2]) unless @stack.length @flush() return flush: -> if @level > 1 console.profileEnd() for item, index in @buffer by 5 @buffer[index + 4].call(@, @buffer[index], @buffer[index + 1...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
8587a0d1388e33de3e842d9014fafef0cba195ef
2,854
https://github.com/gss/engine/blob/8587a0d1388e33de3e842d9014fafef0cba195ef/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'g...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
@buffer[index + 3] = d if type != @row @buffer[index + 2] = @getTime(@buffer[index + 2]) unless @stack.length @flush() return flush: -> for item, index in @buffer by 5 @buffer[index + 4].call(@, @buffer[index], @buffer[index + 1], @buffer[index + 2], @buffer[index + 3]) ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:2:raw_corpus
raw_corpus
if @level <= 1.5 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ els...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @level <= 1.5 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unles...
var method; if (this.level <= 1.5) { method = 'groupCollapsed'; } this[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time); ({ closeGroup: function() { return this.groupEnd(); }, stringify: function(obj) { if (!obj) { ...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var method; if (this.level <= 1.5) { method = 'groupCollapsed'; } this[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time); ({ closeGroup: function() { return this.groupEnd()...
if @level <= 1.5 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ els...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:completion
completion
if @level <= 1.5 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ els...
breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1] row: (a, b, c, d) -> return if @level < 1 a = a.name || a return if typeof a != 'string' p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t') if @breakpoint && document? breakpoint ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:3:raw_corpus
raw_corpus
d = [] if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(Stri...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
103
143
gss/engine:src/utilities/Console.coffee:3:completion
completion
d = [] if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(Stri...
end: (result) -> @buffer.push(undefined, undefined, undefined, undefined, @closeGroup) @pop(result, @openGroup, true) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in C...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
6c90d732e4711634c0d3beaec9c42575179b585d
2,854
https://github.com/gss/engine/blob/6c90d732e4711634c0d3beaec9c42575179b585d/src/utilities/Console.coffee
103
143
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'g...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
3
52