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
mattinsler/longjohn:lib/longjohn.coffee:13:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args) __nextDomainTick = process._nextDomainTick ```
var __nextDomainTick; process.nextTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _nextTick.apply(this, args); }; __nextDomainTick = process._nextDomainTick;
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
166
172
mattinsler/longjohn:lib/longjohn.coffee:13:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var __nextDomainTick; process.nextTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _nextTick.apply(this, args); }; __nextDomainTick = process._nextDomainTick;...
process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args) __nextDomainTick = process._nextDomainTick
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
166
172
mattinsler/longjohn:lib/longjohn.coffee:13:completion
completion
process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick')
_nextTick.apply(this, args) __nextDomainTick = process._nextDomainTick
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
166
172
mattinsler/longjohn:lib/longjohn.coffee:14:raw_corpus
raw_corpus
process._nextDomainTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextDomainTick') __nextDomainTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
174
181
mattinsler/longjohn:lib/longjohn.coffee:14:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript process._nextDomainTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextDomainTick') __nextDomainTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval ```
var _setInterval, _setTimeout; process._nextDomainTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextDomainTick'); return __nextDomainTick.apply(this, args); }; _setTimeout = global.setTimeout; _setInterval = global.setInterval;
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
174
181
mattinsler/longjohn:lib/longjohn.coffee:14:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _setInterval, _setTimeout; process._nextDomainTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextDomainTick'); return __nextDomainTick.apply(this, args); }; _setTimeout = ...
process._nextDomainTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextDomainTick') __nextDomainTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
174
181
mattinsler/longjohn:lib/longjohn.coffee:14:completion
completion
process._nextDomainTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextDomainTick') __nextDomainTick.apply(this, args)
_setTimeout = global.setTimeout _setInterval = global.setInterval
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
174
181
mattinsler/longjohn:lib/longjohn.coffee:15:raw_corpus
raw_corpus
global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setTimeout') _setTimeout.apply(this, args)
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
183
186
mattinsler/longjohn:lib/longjohn.coffee:15:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setTimeout') _setTimeout.apply(this, args) ```
global.setTimeout = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setTimeout'); return _setTimeout.apply(this, args); };
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
183
186
mattinsler/longjohn:lib/longjohn.coffee:15:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript global.setTimeout = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setTimeout'); return _setTimeout.apply(this, args); }; ```
global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setTimeout') _setTimeout.apply(this, args)
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
183
186
mattinsler/longjohn:lib/longjohn.coffee:15:completion
completion
global.setTimeout = (callback) -> args = Array::slice.call(arguments)
args[0] = wrap_callback(callback, 'global.setTimeout') _setTimeout.apply(this, args)
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
183
186
mattinsler/longjohn:lib/longjohn.coffee:16:raw_corpus
raw_corpus
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) if global.setImmediate? _setImmediate = global.setImmediate global.setImmediate = (callback) -> args = Array::slice.call(arguments) args[0] = ...
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
188
207
mattinsler/longjohn:lib/longjohn.coffee:16:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) if global.setImmediate? _setImmediate = global.setImmediate global.setImmediate = (callback) ...
var _setImmediate; global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setInterval'); return _setInterval.apply(this, args); }; if (global.setImmediate != null) { _setImmediate = global.setImmediate; global.setImmediat...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
188
207
mattinsler/longjohn:lib/longjohn.coffee:16:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _setImmediate; global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setInterval'); return _setInterval.apply(this, args); }; if (global.setImmediate != null) { _s...
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) if global.setImmediate? _setImmediate = global.setImmediate global.setImmediate = (callback) -> args = Array::slice.call(arguments) args[0] = ...
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
188
207
mattinsler/longjohn:lib/longjohn.coffee:16:completion
completion
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) if global.setImmediate? _setImmediate = global.setImmediate global.setImmediate = (callback) -> args = Array::slice.call(arguments)
args[0] = wrap_callback(callback, 'global.setImmediate') _setImmediate.apply(this, args) Error.prepareStackTrace = prepareStackTrace if process.env.NODE_ENV == 'production' console.warn ''' NOTICE: Longjohn is known to cause CPU usage due to its extensive data collection during runtime. It generally sho...
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
01f30ac186f5f617e2d342d81299e9188494b066
841
https://github.com/mattinsler/longjohn/blob/01f30ac186f5f617e2d342d81299e9188494b066/lib/longjohn.coffee
188
207
mattinsler/longjohn:lib/longjohn.coffee:1:raw_corpus
raw_corpus
format_location = (frame) -> return 'native' if frame.isNative() return 'eval at ' + frame.getEvalOrigin() if frame.isEval() file = frame.getFileName() line = frame.getLineNumber() column = frame.getColumnNumber() return 'unknown source' unless file? column = if column? then ':' + column else '' line ...
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
9
21
mattinsler/longjohn:lib/longjohn.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript format_location = (frame) -> return 'native' if frame.isNative() return 'eval at ' + frame.getEvalOrigin() if frame.isEval() file = frame.getFileName() line = frame.getLineNumber() column = frame.getColumnNumber() return 'unknown source' unless file...
var format_location; format_location = function(frame) { var column, file, line; if (frame.isNative()) { return 'native'; } if (frame.isEval()) { return 'eval at ' + frame.getEvalOrigin(); } file = frame.getFileName(); line = frame.getLineNumber(); column = frame.getColumnNumber(); if (file =...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
9
21
mattinsler/longjohn:lib/longjohn.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var format_location; format_location = function(frame) { var column, file, line; if (frame.isNative()) { return 'native'; } if (frame.isEval()) { return 'eval at ' + frame.getEvalOrigin(); } file = frame.getFileName(); line = frame.getLineNum...
format_location = (frame) -> return 'native' if frame.isNative() return 'eval at ' + frame.getEvalOrigin() if frame.isEval() file = frame.getFileName() line = frame.getLineNumber() column = frame.getColumnNumber() return 'unknown source' unless file? column = if column? then ':' + column else '' line ...
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
9
21
mattinsler/longjohn:lib/longjohn.coffee:1:completion
completion
format_location = (frame) -> return 'native' if frame.isNative() return 'eval at ' + frame.getEvalOrigin() if frame.isEval() file = frame.getFileName() line = frame.getLineNumber()
column = frame.getColumnNumber() return 'unknown source' unless file? column = if column? then ':' + column else '' line = if line? then ':' + line else '' file + line + column
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
9
21
mattinsler/longjohn:lib/longjohn.coffee:6:raw_corpus
raw_corpus
prepareStackTrace = (error, structured_stack_trace) -> ++in_prepare unless error.__cached_trace__? error.__cached_trace__ = structured_stack_trace.filter (f) -> f.getFileName() isnt filename error.__previous__ = current_trace_error if !error.__previous__? and in_prepare is 1 if error.__previous__? ...
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
66
82
mattinsler/longjohn:lib/longjohn.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript prepareStackTrace = (error, structured_stack_trace) -> ++in_prepare unless error.__cached_trace__? error.__cached_trace__ = structured_stack_trace.filter (f) -> f.getFileName() isnt filename error.__previous__ = current_trace_error if !error.__previo...
var prepareStackTrace; prepareStackTrace = function(error, structured_stack_trace) { var previous_stack; ++in_prepare; if (error.__cached_trace__ == null) { error.__cached_trace__ = structured_stack_trace.filter(function(f) { return f.getFileName() !== filename; }); if ((error.__previous__ == n...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
66
82
mattinsler/longjohn:lib/longjohn.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var prepareStackTrace; prepareStackTrace = function(error, structured_stack_trace) { var previous_stack; ++in_prepare; if (error.__cached_trace__ == null) { error.__cached_trace__ = structured_stack_trace.filter(function(f) { return f.getFileName()...
prepareStackTrace = (error, structured_stack_trace) -> ++in_prepare unless error.__cached_trace__? error.__cached_trace__ = structured_stack_trace.filter (f) -> f.getFileName() isnt filename error.__previous__ = current_trace_error if !error.__previous__? and in_prepare is 1 if error.__previous__? ...
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
66
82
mattinsler/longjohn:lib/longjohn.coffee:6:completion
completion
prepareStackTrace = (error, structured_stack_trace) -> ++in_prepare unless error.__cached_trace__? error.__cached_trace__ = structured_stack_trace.filter (f) -> f.getFileName() isnt filename error.__previous__ = current_trace_error if !error.__previous__? and in_prepare is 1 if error.__previous__?
previous_stack = error.__previous__.stack if previous_stack?.length > 0 error.__cached_trace__.push(create_callsite(exports.empty_frame)) error.__cached_trace__.push(previous_stack...) --in_prepare return error.__cached_trace__ if in_prepare > 0 exports.format_stack(error, error.__cached_t...
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
66
82
mattinsler/longjohn:lib/longjohn.coffee:8:raw_corpus
raw_corpus
call_stack_location = -> orig = Error.prepareStackTrace Error.prepareStackTrace = (x, stack) -> stack err = new Error() Error.captureStackTrace(err, arguments.callee) stack = err.stack Error.prepareStackTrace = orig "#{stack[2].getFunctionName()} (#{stack[2].getFileName()}:#{stack[2].getLineNumber()})"
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
97
105
mattinsler/longjohn:lib/longjohn.coffee:8:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript call_stack_location = -> orig = Error.prepareStackTrace Error.prepareStackTrace = (x, stack) -> stack err = new Error() Error.captureStackTrace(err, arguments.callee) stack = err.stack Error.prepareStackTrace = orig "#{stack[2].getFunctionName()} (...
var call_stack_location; call_stack_location = function() { var err, orig, stack; orig = Error.prepareStackTrace; Error.prepareStackTrace = function(x, stack) { return stack; }; err = new Error(); Error.captureStackTrace(err, arguments.callee); stack = err.stack; Error.prepareStackTrace = orig; r...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
97
105
mattinsler/longjohn:lib/longjohn.coffee:8:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var call_stack_location; call_stack_location = function() { var err, orig, stack; orig = Error.prepareStackTrace; Error.prepareStackTrace = function(x, stack) { return stack; }; err = new Error(); Error.captureStackTrace(err, arguments.callee); s...
call_stack_location = -> orig = Error.prepareStackTrace Error.prepareStackTrace = (x, stack) -> stack err = new Error() Error.captureStackTrace(err, arguments.callee) stack = err.stack Error.prepareStackTrace = orig "#{stack[2].getFunctionName()} (#{stack[2].getFileName()}:#{stack[2].getLineNumber()})"
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
97
105
mattinsler/longjohn:lib/longjohn.coffee:8:completion
completion
call_stack_location = -> orig = Error.prepareStackTrace Error.prepareStackTrace = (x, stack) -> stack err = new Error()
Error.captureStackTrace(err, arguments.callee) stack = err.stack Error.prepareStackTrace = orig "#{stack[2].getFunctionName()} (#{stack[2].getFileName()}:#{stack[2].getLineNumber()})"
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
97
105
mattinsler/longjohn:lib/longjohn.coffee:9:raw_corpus
raw_corpus
wrap_callback = (callback, location) -> trace_error = new Error() trace_error.id = ERROR_ID++ trace_error.location = call_stack_location() trace_error.__location__ = location trace_error.__previous__ = current_trace_error trace_error.__trace_count__ = if current_trace_error? then current_trace_error.__trace...
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
107
139
mattinsler/longjohn:lib/longjohn.coffee:9:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript wrap_callback = (callback, location) -> trace_error = new Error() trace_error.id = ERROR_ID++ trace_error.location = call_stack_location() trace_error.__location__ = location trace_error.__previous__ = current_trace_error trace_error.__trace_count__ =...
var _addListener, _on, _once, _removeListener, wrap_callback; wrap_callback = function(callback, location) { var new_callback, trace_error; trace_error = new Error(); trace_error.id = ERROR_ID++; trace_error.location = call_stack_location(); trace_error.__location__ = location; trace_error.__previous__ = c...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
107
139
mattinsler/longjohn:lib/longjohn.coffee:9:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _addListener, _on, _once, _removeListener, wrap_callback; wrap_callback = function(callback, location) { var new_callback, trace_error; trace_error = new Error(); trace_error.id = ERROR_ID++; trace_error.location = call_stack_location(); trace_error....
wrap_callback = (callback, location) -> trace_error = new Error() trace_error.id = ERROR_ID++ trace_error.location = call_stack_location() trace_error.__location__ = location trace_error.__previous__ = current_trace_error trace_error.__trace_count__ = if current_trace_error? then current_trace_error.__trace...
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
107
139
mattinsler/longjohn:lib/longjohn.coffee:9:completion
completion
wrap_callback = (callback, location) -> trace_error = new Error() trace_error.id = ERROR_ID++ trace_error.location = call_stack_location() trace_error.__location__ = location trace_error.__previous__ = current_trace_error trace_error.__trace_count__ = if current_trace_error? then current_trace_error.__trace...
callback.apply(this, arguments) catch e # Ensure we're formatting the Error in longjohn e.stack throw e finally current_trace_error = null new_callback.__original_callback__ = callback new_callback _on = EventEmitter.prototype.on _addListener = EventEmitter.prototype.addListener ...
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
107
139
mattinsler/longjohn:lib/longjohn.coffee:13:raw_corpus
raw_corpus
EventEmitter.prototype.removeListener = (event, callback) -> find_listener = (callback) => is_callback = (val) -> val.__original_callback__ is callback or val.__original_callback__?.listener?.__original_callback__ is callback or val.listener?.__original_callback__ is callback return null un...
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
156
179
mattinsler/longjohn:lib/longjohn.coffee:13:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript EventEmitter.prototype.removeListener = (event, callback) -> find_listener = (callback) => is_callback = (val) -> val.__original_callback__ is callback or val.__original_callback__?.listener?.__original_callback__ is callback or val.listen...
var _nextTick; EventEmitter.prototype.removeListener = function(event, callback) { var find_listener, listener; find_listener = (callback) => { var i, is_callback, l, len, listeners, ref, ref1; is_callback = function(val) { var ref, ref1, ref2; return val.__original_callback__ === callback || (...
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
156
179
mattinsler/longjohn:lib/longjohn.coffee:13:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _nextTick; EventEmitter.prototype.removeListener = function(event, callback) { var find_listener, listener; find_listener = (callback) => { var i, is_callback, l, len, listeners, ref, ref1; is_callback = function(val) { var ref, ref1, ref2; ...
EventEmitter.prototype.removeListener = (event, callback) -> find_listener = (callback) => is_callback = (val) -> val.__original_callback__ is callback or val.__original_callback__?.listener?.__original_callback__ is callback or val.listener?.__original_callback__ is callback return null un...
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
156
179
mattinsler/longjohn:lib/longjohn.coffee:13:completion
completion
EventEmitter.prototype.removeListener = (event, callback) -> find_listener = (callback) => is_callback = (val) -> val.__original_callback__ is callback or val.__original_callback__?.listener?.__original_callback__ is callback or val.listener?.__original_callback__ is callback return null un...
for l in listeners return l if is_callback(l) null listener = find_listener(callback) return @ unless listener? and typeof listener is 'function' _removeListener.call(@, event, listener) _nextTick = process.nextTick
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
156
179
mattinsler/longjohn:lib/longjohn.coffee:14:raw_corpus
raw_corpus
process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
181
189
mattinsler/longjohn:lib/longjohn.coffee:14:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval ```
var _setInterval, _setTimeout; process.nextTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _nextTick.apply(this, args); }; _setTimeout = global.setTimeout; _setInterval = global.setInterval;
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
181
189
mattinsler/longjohn:lib/longjohn.coffee:14:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _setInterval, _setTimeout; process.nextTick = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _nextTick.apply(this, args); }; _setTimeout = global.setTimeout; ...
process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args) _setTimeout = global.setTimeout _setInterval = global.setInterval
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
181
189
mattinsler/longjohn:lib/longjohn.coffee:14:completion
completion
process.nextTick = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _nextTick.apply(this, args)
_setTimeout = global.setTimeout _setInterval = global.setInterval
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
181
189
mattinsler/longjohn:lib/longjohn.coffee:16:raw_corpus
raw_corpus
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace ```
global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setInterval'); return _setInterval.apply(this, args); }; Error.prepareStackTrace = prepareStackTrace;
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'global.setInterval'); return _setInterval.apply(this, args); }; Error.prepareStackTrace = prepareStackTrace; ```
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:completion
completion
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'global.setInterval')
_setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
74d9a874972e5338e9866cadbe65978f52ea80be
841
https://github.com/mattinsler/longjohn/blob/74d9a874972e5338e9866cadbe65978f52ea80be/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:15:raw_corpus
raw_corpus
global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setTimeout.apply(this, args)
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
191
194
mattinsler/longjohn:lib/longjohn.coffee:15:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setTimeout.apply(this, args) ```
global.setTimeout = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _setTimeout.apply(this, args); };
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
191
194
mattinsler/longjohn:lib/longjohn.coffee:15:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript global.setTimeout = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _setTimeout.apply(this, args); }; ```
global.setTimeout = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setTimeout.apply(this, args)
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
191
194
mattinsler/longjohn:lib/longjohn.coffee:15:completion
completion
global.setTimeout = (callback) -> args = Array::slice.call(arguments)
args[0] = wrap_callback(callback, 'process.nextTick') _setTimeout.apply(this, args)
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
191
194
mattinsler/longjohn:lib/longjohn.coffee:16:raw_corpus
raw_corpus
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace ```
global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _setInterval.apply(this, args); }; Error.prepareStackTrace = prepareStackTrace;
CoffeeScript
JavaScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript global.setInterval = function(callback) { var args; args = Array.prototype.slice.call(arguments); args[0] = wrap_callback(callback, 'process.nextTick'); return _setInterval.apply(this, args); }; Error.prepareStackTrace = prepareStackTrace; ```
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick') _setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
JavaScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
196
201
mattinsler/longjohn:lib/longjohn.coffee:16:completion
completion
global.setInterval = (callback) -> args = Array::slice.call(arguments) args[0] = wrap_callback(callback, 'process.nextTick')
_setInterval.apply(this, args) Error.prepareStackTrace = prepareStackTrace
CoffeeScript
CoffeeScript
mattinsler/longjohn
lib/longjohn.coffee
MIT
4648d8df3081673ac039da001363831dc67b86d8
841
https://github.com/mattinsler/longjohn/blob/4648d8df3081673ac039da001363831dc67b86d8/lib/longjohn.coffee
196
201
jsdf/coffee-react-transform:test/utils.coffee:1:raw_corpus
raw_corpus
{inspect} = require 'util' Parser = require '../src/parser' exports.printTree = (code) -> exports.inspect new Parser().parse(code) exports.inspect = (obj) -> console.log inspect obj, showHidden: true, depth: null
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/test/utils.coffee
1
8
jsdf/coffee-react-transform:test/utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {inspect} = require 'util' Parser = require '../src/parser' exports.printTree = (code) -> exports.inspect new Parser().parse(code) exports.inspect = (obj) -> console.log inspect obj, showHidden: true, depth: null ```
var Parser, inspect; ({inspect} = require('util')); Parser = require('../src/parser'); exports.printTree = function(code) { return exports.inspect(new Parser().parse(code)); }; exports.inspect = function(obj) { return console.log(inspect(obj, { showHidden: true, depth: null })); };
CoffeeScript
JavaScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/test/utils.coffee
1
8
jsdf/coffee-react-transform:test/utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Parser, inspect; ({inspect} = require('util')); Parser = require('../src/parser'); exports.printTree = function(code) { return exports.inspect(new Parser().parse(code)); }; exports.inspect = function(obj) { return console.log(inspect(obj, { showHidd...
{inspect} = require 'util' Parser = require '../src/parser' exports.printTree = (code) -> exports.inspect new Parser().parse(code) exports.inspect = (obj) -> console.log inspect obj, showHidden: true, depth: null
JavaScript
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/test/utils.coffee
1
8
jsdf/coffee-react-transform:test/utils.coffee:1:completion
completion
{inspect} = require 'util' Parser = require '../src/parser' exports.printTree = (code) ->
exports.inspect new Parser().parse(code) exports.inspect = (obj) -> console.log inspect obj, showHidden: true, depth: null
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/test/utils.coffee
1
8
jsdf/coffee-react-transform:test/utils.coffee:1:raw_corpus
raw_corpus
{inspect} = require 'util' Parser = require '../src/parser' module.exports.printTree = (code) -> console.log inspect new Parser().parse(code), showHidden: true, depth: null
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/test/utils.coffee
1
5
jsdf/coffee-react-transform:test/utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {inspect} = require 'util' Parser = require '../src/parser' module.exports.printTree = (code) -> console.log inspect new Parser().parse(code), showHidden: true, depth: null ```
var Parser, inspect; ({inspect} = require('util')); Parser = require('../src/parser'); module.exports.printTree = function(code) { return console.log(inspect(new Parser().parse(code), { showHidden: true, depth: null })); };
CoffeeScript
JavaScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/test/utils.coffee
1
5
jsdf/coffee-react-transform:test/utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Parser, inspect; ({inspect} = require('util')); Parser = require('../src/parser'); module.exports.printTree = function(code) { return console.log(inspect(new Parser().parse(code), { showHidden: true, depth: null })); }; ```
{inspect} = require 'util' Parser = require '../src/parser' module.exports.printTree = (code) -> console.log inspect new Parser().parse(code), showHidden: true, depth: null
JavaScript
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/test/utils.coffee
1
5
jsdf/coffee-react-transform:test/utils.coffee:1:completion
completion
{inspect} = require 'util' Parser = require '../src/parser'
module.exports.printTree = (code) -> console.log inspect new Parser().parse(code), showHidden: true, depth: null
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
test/utils.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/test/utils.coffee
1
5
nicolaskruchten/pivottable:pivot.it.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 callWithJQuery ($) -> nf = $.piv...
CoffeeScript
nicolaskruchten/pivottable
pivot.it.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.it.coffee
1
50
nicolaskruchten/pivottable:pivot.it.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 callWithJQuery ($) -> nf = $.piv...
filterResults: "Filtra i valori" totals: "Totali" vs: "su" by: "da" aggregators: "Numero": tpl.count(frFmtInt) "Numero di valori unici": tpl.countUnique(frFmtInt) "Elenco di valori unici": tpl.listUnique(", ") "Somma": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.it.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.it.coffee
1
50
nicolaskruchten/pivottable:pivot.it.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 callWithJQuery ($) -> nf = $.piv...
CoffeeScript
nicolaskruchten/pivottable
pivot.it.coffee
MIT
916e92b1a1306ff74ed75257fbc0573602654afb
4,440
https://github.com/nicolaskruchten/pivottable/blob/916e92b1a1306ff74ed75257fbc0573602654afb/pivot.it.coffee
1
50
nicolaskruchten/pivottable:pivot.it.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 callWithJQuery ($) -> nf = $.piv...
filterResults: "Filtra i valori" totals: "Totali" vs: "su" by: "da" aggregators: "Numero": tpl.count(frFmtInt) "Numero di valori unici": tpl.countUnique(frFmtInt) "Elenco di valori unici": tpl.listUnique(", ") "Somma": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.it.coffee
MIT
916e92b1a1306ff74ed75257fbc0573602654afb
4,440
https://github.com/nicolaskruchten/pivottable/blob/916e92b1a1306ff74ed75257fbc0573602654afb/pivot.it.coffee
1
50
cdglabs/apparatus:src/View/EditorLoader.coffee:1:raw_corpus
raw_corpus
R = require "./R" Model = require "../Model/Model" # EditorLoader is a little shell around Editor which displays "loading" / # "error" messages when the editor first loads. (The most technical reason for # its existence is that Editor wants a project in its childContextTypes, but a # project doesn't exist until it is...
CoffeeScript
cdglabs/apparatus
src/View/EditorLoader.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/View/EditorLoader.coffee
1
26
cdglabs/apparatus:src/View/EditorLoader.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript R = require "./R" Model = require "../Model/Model" # EditorLoader is a little shell around Editor which displays "loading" / # "error" messages when the editor first loads. (The most technical reason for # its existence is that Editor wants a project in its chi...
var Model, R; R = require("./R"); Model = require("../Model/Model"); // EditorLoader is a little shell around Editor which displays "loading" / // "error" messages when the editor first loads. (The most technical reason for // its existence is that Editor wants a project in its childContextTypes, but a // project do...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/EditorLoader.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/View/EditorLoader.coffee
1
26
cdglabs/apparatus:src/View/EditorLoader.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Model, R; R = require("./R"); Model = require("../Model/Model"); // EditorLoader is a little shell around Editor which displays "loading" / // "error" messages when the editor first loads. (The most technical reason for // its existence is that Editor wants ...
R = require "./R" Model = require "../Model/Model" # EditorLoader is a little shell around Editor which displays "loading" / # "error" messages when the editor first loads. (The most technical reason for # its existence is that Editor wants a project in its childContextTypes, but a # project doesn't exist until it is...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/EditorLoader.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/View/EditorLoader.coffee
1
26
cdglabs/apparatus:src/View/EditorLoader.coffee:1:completion
completion
R = require "./R" Model = require "../Model/Model" # EditorLoader is a little shell around Editor which displays "loading" / # "error" messages when the editor first loads. (The most technical reason for # its existence is that Editor wants a project in its childContextTypes, but a # project doesn't exist until it is...
{editor} = @props if editor.project R.Editor {editor}, else if editor.initialLoadError R.div {style: {margin: 20}}, R.div {style: {margin: "20px 0", fontSize: "200%"}}, "Problem loading diagram" R.div {style: {margin: "20px 0"}}, editor.initialLoadError.toString()...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/EditorLoader.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/View/EditorLoader.coffee
1
26
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.listen(); } createContainer(doc) { var ref; ...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.l...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
@iframe = @window.frameElement catch error @iframe = null if $.fn.atwho.debug throw new Error """ iframe auto-discovery is failed. Please use `setIframe` to set the target iframe manually. #{error} """ this.createContainer if @iframeAsRoo...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
.on 'compositionend', (e) => @isComposing = false setTimeout((e) => @dispatch(e)) null .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'blur.atwhoInner', (e) => if c = this.controller() c.ex...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> if undefined == e return c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() thi...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> if undefined == e return c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode ...
var _, c, ref; ref = this.controllers; for (_ in ref) { c = ref[_]; c.destroy(); delete this.controllers[_]; } this.$inputor.off('.atwhoInner'); this.$el.remove(); ({ dispatch: function(e) { var ref1, results; if (void 0 === e) { return; } ref1 = this.controllers; results = []; ...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, c, ref; ref = this.controllers; for (_ in ref) { c = ref[_]; c.destroy(); delete this.controllers[_]; } this.$inputor.off('.atwhoInner'); this.$el.remove(); ({ dispatch: function(e) { var ref1, results; if (void 0 === e) { return; ...
for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> if undefined == e return c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() thi...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:completion
completion
for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> if undefined == e return c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() thi...
onKeydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev(...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
102
151
ichord/At.js:src/app.coffee:4:raw_corpus
raw_corpus
return if not this.controller().getOpt('tabSelectsMatch') and e.keyCode == KEY_CODE.TAB if view.highlighted() e.preventDefault() view.choose(e) else view.hide(e) else $.noop() return
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
152
160
ichord/At.js:src/app.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript return if not this.controller().getOpt('tabSelectsMatch') and e.keyCode == KEY_CODE.TAB if view.highlighted() e.preventDefault() view.choose(e) else view.hide(e) else $.noop() return ```
if (!this.controller().getOpt('tabSelectsMatch') && e.keyCode === KEY_CODE.TAB) { if (view.highlighted()) { e.preventDefault(); return view.choose(e); } else { return view.hide(e); } } else { return $.noop(); } return;
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
152
160
ichord/At.js:src/app.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (!this.controller().getOpt('tabSelectsMatch') && e.keyCode === KEY_CODE.TAB) { if (view.highlighted()) { e.preventDefault(); return view.choose(e); } else { return view.hide(e); } } else { return $.noop(); } return; ```
return if not this.controller().getOpt('tabSelectsMatch') and e.keyCode == KEY_CODE.TAB if view.highlighted() e.preventDefault() view.choose(e) else view.hide(e) else $.noop() return
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
152
160
ichord/At.js:src/app.coffee:4:completion
completion
return if not this.controller().getOpt('tabSelectsMatch') and e.keyCode == KEY_CODE.TAB if view.highlighted() e.preventDefault() view.choose(e)
else view.hide(e) else $.noop() return
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/src/app.coffee
152
160
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() w...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a96e8f02d142b5a579521f2edd6e2625b0954704
5,250
https://github.com/ichord/At.js/blob/a96e8f02d142b5a579521f2edd6e2625b0954704/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:completion
completion
for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() w...
view = this.controller()?.view return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a96e8f02d142b5a579521f2edd6e2625b0954704
5,250
https://github.com/ichord/At.js/blob/a96e8f02d142b5a579521f2edd6e2625b0954704/src/app.coffee
102
151
ichord/At.js:src/app.coffee:4:raw_corpus
raw_corpus
e.preventDefault() view.choose(e) else view.hide(e) else $.noop() return
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a96e8f02d142b5a579521f2edd6e2625b0954704
5,250
https://github.com/ichord/At.js/blob/a96e8f02d142b5a579521f2edd6e2625b0954704/src/app.coffee
152
158
ichord/At.js:src/app.coffee:4:completion
completion
e.preventDefault() view.choose(e) else
view.hide(e) else $.noop() return
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
a96e8f02d142b5a579521f2edd6e2625b0954704
5,250
https://github.com/ichord/At.js/blob/a96e8f02d142b5a579521f2edd6e2625b0954704/src/app.coffee
152
158
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
.on 'compositionend', (e) => @isComposing = false null .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'blur.atwhoInner', (e) => if c = this.controller() c.expectedQueryCBId = null c.view....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP,...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:completion
completion
c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP,...
return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
102
151
ichord/At.js:src/app.coffee:4:raw_corpus
raw_corpus
view.choose(e) else view.hide(e) else $.noop() return
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
152
157
ichord/At.js:src/app.coffee:4:completion
completion
view.choose(e) else view.hide(e)
else $.noop() return
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
7f4295a9f8962fee8867a9d5006e22fe01ef19b5
5,250
https://github.com/ichord/At.js/blob/7f4295a9f8962fee8867a9d5006e22fe01ef19b5/src/app.coffee
152
157
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
null .on 'compositionend', (e) => console.log "compositionend" @isComposing = false null .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'blur.atwhoInner', (e) => if c = this.controller() ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.vi...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC...
({ shutdown: function() { var _, c, ref; ref = this.controllers; for (_ in ref) { c = ref[_]; c.destroy(); delete this.controllers[_]; } this.$inputor.off('.atwhoInner'); return this.$el.remove(); }, dispatch: function(e) { var _, c, ref, results; ref = this.contr...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ shutdown: function() { var _, c, ref; ref = this.controllers; for (_ in ref) { c = ref[_]; c.destroy(); delete this.controllers[_]; } this.$inputor.off('.atwhoInner'); return this.$el.remove(); }, dispatch: functio...
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.vi...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
102
151