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/wns.coffee:2:completion
completion
if sender try options = { client_id: @conf.client_id, client_secret: @conf.client_secret } if launch? options["launch"] = launch @logger?.silly("WNS client URL: #{info.token}") sender info.token, note...
if error.shouldDeleteChannel @logger?.warn("WNS Automatic unregistration for subscriber #{subscriber.id}") subscriber.delete() else @logger?.debug("WNS result: #{JSON.stringify result}") c...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/wns.coffee
51
67
rs/pushd:lib/pushservices/wns.coffee:1:raw_corpus
raw_corpus
wns = require 'wns' class PushServiceWNS tokenFormat: /^https?:\/\/[a-zA-Z0-9-.]+\.notify\.windows\.com\/\S{0,500}$/ validateToken: (token) -> if PushServiceWNS::tokenFormat.test(token) return token constructor: (@conf, @logger, tokenResolver) -> # TODO: tileMapping configurati...
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
1
50
rs/pushd:lib/pushservices/wns.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript wns = require 'wns' class PushServiceWNS tokenFormat: /^https?:\/\/[a-zA-Z0-9-.]+\.notify\.windows\.com\/\S{0,500}$/ validateToken: (token) -> if PushServiceWNS::tokenFormat.test(token) return token constructor: (@conf, @logger, ...
var PushServiceWNS, wns; wns = require('wns'); PushServiceWNS = (function() { class PushServiceWNS { validateToken(token) { if (PushServiceWNS.prototype.tokenFormat.test(token)) { return token; } } constructor(conf, logger, tokenResolver) { var base; this.conf = conf; ...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
1
50
rs/pushd:lib/pushservices/wns.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceWNS, wns; wns = require('wns'); PushServiceWNS = (function() { class PushServiceWNS { validateToken(token) { if (PushServiceWNS.prototype.tokenFormat.test(token)) { return token; } } constructor(conf, logger, toke...
wns = require 'wns' class PushServiceWNS tokenFormat: /^https?:\/\/[a-zA-Z0-9-.]+\.notify\.windows\.com\/\S{0,500}$/ validateToken: (token) -> if PushServiceWNS::tokenFormat.test(token) return token constructor: (@conf, @logger, tokenResolver) -> # TODO: tileMapping configurati...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
1
50
rs/pushd:lib/pushservices/wns.coffee:1:completion
completion
wns = require 'wns' class PushServiceWNS tokenFormat: /^https?:\/\/[a-zA-Z0-9-.]+\.notify\.windows\.com\/\S{0,500}$/ validateToken: (token) -> if PushServiceWNS::tokenFormat.test(token) return token constructor: (@conf, @logger, tokenResolver) -> # TODO: tileMapping configurati...
if @conf.launchTemplate and info.version >= 7.5 try launch = payload.compileTemplate(@conf.launchTemplate) @logger?.debug("Launch: #{launch}") catch e @logger?.error("C...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
1
50
rs/pushd:lib/pushservices/wns.coffee:2:raw_corpus
raw_corpus
if sender try options = { client_id: @conf.client_id, client_secret: @conf.client_secret } if launch? options["launch"] = launch @logger?.verbose("WNS client URL: #{info.token}") sender info.token, no...
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
51
67
rs/pushd:lib/pushservices/wns.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if sender try options = { client_id: @conf.client_id, client_secret: @conf.client_secret } if launch? options["launch"] = launch @logger?.verbose("WNS client URL: ...
var error, options, ref, ref1; if (sender) { try { options = { client_id: this.conf.client_id, client_secret: this.conf.client_secret }; if (typeof launch !== "undefined" && launch !== null) { options["launch"] = launch; } if ((ref = this.logger) != null) { ref.verbose(`WN...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
51
67
rs/pushd:lib/pushservices/wns.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var error, options, ref, ref1; if (sender) { try { options = { client_id: this.conf.client_id, client_secret: this.conf.client_secret }; if (typeof launch !== "undefined" && launch !== null) { options["launch"] = launch; } i...
if sender try options = { client_id: @conf.client_id, client_secret: @conf.client_secret } if launch? options["launch"] = launch @logger?.verbose("WNS client URL: #{info.token}") sender info.token, no...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
51
67
rs/pushd:lib/pushservices/wns.coffee:2:completion
completion
if sender try options = { client_id: @conf.client_id, client_secret: @conf.client_secret } if launch? options["launch"] = launch @logger?.verbose("WNS client URL: #{info.token}") sender info.token, no...
if error.shouldDeleteChannel @logger?.warn("WNS Automatic unregistration for subscriber #{subscriber.id}") subscriber.delete() else @logger?.verbose("WNS result: #{JSON.stringify result}") ...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/wns.coffee
MIT
1480c5ee6924394ae99c305a0fc5b434ddc1e928
1,157
https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/lib/pushservices/wns.coffee
51
67
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:raw_corpus
raw_corpus
{ isObject } = require './Utility' XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDeclaration.coffee
1
39
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript { isObject } = require './Utility' XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the doc...
var NodeType, XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { // Initializes a new instance of `XMLDeclaration` //...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDeclaration.coffee
1
39
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { ...
{ isObject } = require './Utility' XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDeclaration.coffee
1
39
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:completion
completion
{ isObject } = require './Utility' XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e...
# arguments may also be passed as an object if isObject version { version, encoding, standalone } = version version = '1.0' if not version @type = NodeType.Declaration @version = @stringify.xmlVersion version @encoding = @stringify.xmlEncoding encoding if encoding? @standalone = @stringi...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDeclaration.coffee
1
39
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:raw_corpus
raw_corpus
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript { isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A...
var XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { // Initializes a new instance of `XMLDeclaration` // `parent` the document object // `version`...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { // Initializes a new instance of `XMLDeclarat...
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:completion
completion
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
# arguments may also be passed as an object if isObject version { version, encoding, standalone } = version version = '1.0' if not version @version = @stringify.xmlVersion version @encoding = @stringify.xmlEncoding encoding if encoding? @standalone = @stringify.xmlStandalone standalone if st...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:raw_corpus
raw_corpus
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ab0c6d3649828decfdd0c4b0e16021a3f300cc47
926
https://github.com/oozcitak/xmlbuilder-js/blob/ab0c6d3649828decfdd0c4b0e16021a3f300cc47/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript { isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A...
var XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { // Initializes a new instance of `XMLDeclaration` // `parent` the document object // `version`...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ab0c6d3649828decfdd0c4b0e16021a3f300cc47
926
https://github.com/oozcitak/xmlbuilder-js/blob/ab0c6d3649828decfdd0c4b0e16021a3f300cc47/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLDeclaration, XMLNode, isObject; ({isObject} = require('./Utility')); XMLNode = require('./XMLNode'); // Represents the XML declaration module.exports = XMLDeclaration = class XMLDeclaration extends XMLNode { // Initializes a new instance of `XMLDeclarat...
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ab0c6d3649828decfdd0c4b0e16021a3f300cc47
926
https://github.com/oozcitak/xmlbuilder-js/blob/ab0c6d3649828decfdd0c4b0e16021a3f300cc47/src/XMLDeclaration.coffee
1
37
oozcitak/xmlbuilder-js:src/XMLDeclaration.coffee:1:completion
completion
{ isObject } = require './Utility' XMLNode = require './XMLNode' # Represents the XML declaration module.exports = class XMLDeclaration extends XMLNode # Initializes a new instance of `XMLDeclaration` # # `parent` the document object # # `version` A version number string, e.g. 1.0 # `encoding` Encoding ...
# arguments may also be passed as an object if isObject version { version, encoding, standalone } = version version = '1.0' if not version @version = @stringify.xmlVersion version @encoding = @stringify.xmlEncoding encoding if encoding? @standalone = @stringify.xmlStandalone standalone if st...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDeclaration.coffee
MIT
ab0c6d3649828decfdd0c4b0e16021a3f300cc47
926
https://github.com/oozcitak/xmlbuilder-js/blob/ab0c6d3649828decfdd0c4b0e16021a3f300cc47/src/XMLDeclaration.coffee
1
37
nicolaskruchten/pivottable:locales/pivot.de.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.de.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.de.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.de.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: "Ergebnisse filtern" totals: "Gesamt" vs: "gegen" by: "pro" aggregators: "Anzahl": tpl.count(frFmtInt) "Anzahl eindeutiger Werte": tpl.countUnique(frFmtInt) "Liste eindeutiger Werte": tpl.listU...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.de.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.de.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.de.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.de.coffee
MIT
f7639ef1f414b8997458d459cf0ac3c7bfb1a27e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f7639ef1f414b8997458d459cf0ac3c7bfb1a27e/locales/pivot.de.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.de.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: "Ergebnisse filtern" totals: "Gesamt" vs: "gegen" by: "pro" aggregators: "Anzahl": tpl.count(frFmtInt) "Anzahl eindeutiger Werte": tpl.countUnique(frFmtInt) "Liste eindeutiger Werte": tpl.listU...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.de.coffee
MIT
f7639ef1f414b8997458d459cf0ac3c7bfb1a27e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f7639ef1f414b8997458d459cf0ac3c7bfb1a27e/locales/pivot.de.coffee
1
50
CaryLandholt/AngularFun:tasks/coffee.coffee:1:raw_corpus
raw_corpus
###global module, require### module.exports = (grunt) -> coffeeScript = require 'coffee-script' growl = require 'growl' path = require 'path' handleResult = (src, dest, err, stdout, code, done) -> srcFullPath = path.resolve src destFullPath = path.resolve dest if err message = "Failed to compile #{srcFu...
CoffeeScript
CaryLandholt/AngularFun
tasks/coffee.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/tasks/coffee.coffee
1
44
CaryLandholt/AngularFun:tasks/coffee.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global module, require### module.exports = (grunt) -> coffeeScript = require 'coffee-script' growl = require 'growl' path = require 'path' handleResult = (src, dest, err, stdout, code, done) -> srcFullPath = path.resolve src destFullPath = path.resol...
/*global module, require*/ module.exports = function(grunt) { var coffeeScript, growl, handleResult, path; coffeeScript = require('coffee-script'); growl = require('growl'); path = require('path'); handleResult = function(src, dest, err, stdout, code, done) { var destFullPath, message, srcFullPath; sr...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
tasks/coffee.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/tasks/coffee.coffee
1
44
CaryLandholt/AngularFun:tasks/coffee.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global module, require*/ module.exports = function(grunt) { var coffeeScript, growl, handleResult, path; coffeeScript = require('coffee-script'); growl = require('growl'); path = require('path'); handleResult = function(src, dest, err, stdout, code, don...
###global module, require### module.exports = (grunt) -> coffeeScript = require 'coffee-script' growl = require 'growl' path = require 'path' handleResult = (src, dest, err, stdout, code, done) -> srcFullPath = path.resolve src destFullPath = path.resolve dest if err message = "Failed to compile #{srcFu...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
tasks/coffee.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/tasks/coffee.coffee
1
44
CaryLandholt/AngularFun:tasks/coffee.coffee:1:completion
completion
###global module, require### module.exports = (grunt) -> coffeeScript = require 'coffee-script' growl = require 'growl' path = require 'path' handleResult = (src, dest, err, stdout, code, done) -> srcFullPath = path.resolve src destFullPath = path.resolve dest if err message = "Failed to compile #{srcFu...
grunt.log.writeln message growl message, title: 'CoffeeScript Compiled' done true grunt.registerMultiTask 'coffee', 'Compile CoffeeScript to JavaScript', -> done = @async() src = @file.src dest = @file.dest bare = not not @data.bare options = cmd: 'coffee' args: [ '--compile' '--bare' if ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
tasks/coffee.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/tasks/coffee.coffee
1
44
meltingice/psd.js:lib/psd/layer_info/blend_interior_elements.coffee:1:raw_corpus
raw_corpus
LayerInfo = require '../layer_info.coffee' module.exports = class BlendInteriorElements extends LayerInfo @shouldParse: (key) -> key is 'infx' parse: -> @enabled = @file.readBoolean() @file.seek 3, true
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_interior_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_interior_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_interior_elements.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LayerInfo = require '../layer_info.coffee' module.exports = class BlendInteriorElements extends LayerInfo @shouldParse: (key) -> key is 'infx' parse: -> @enabled = @file.readBoolean() @file.seek 3, true ```
var BlendInteriorElements, LayerInfo; LayerInfo = require('../layer_info.coffee'); module.exports = BlendInteriorElements = class BlendInteriorElements extends LayerInfo { static shouldParse(key) { return key === 'infx'; } parse() { this.enabled = this.file.readBoolean(); return this.file.seek(3, t...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer_info/blend_interior_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_interior_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_interior_elements.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BlendInteriorElements, LayerInfo; LayerInfo = require('../layer_info.coffee'); module.exports = BlendInteriorElements = class BlendInteriorElements extends LayerInfo { static shouldParse(key) { return key === 'infx'; } parse() { this.enabled = ...
LayerInfo = require '../layer_info.coffee' module.exports = class BlendInteriorElements extends LayerInfo @shouldParse: (key) -> key is 'infx' parse: -> @enabled = @file.readBoolean() @file.seek 3, true
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_interior_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_interior_elements.coffee
1
8
meltingice/psd.js:lib/psd/layer_info/blend_interior_elements.coffee:1:completion
completion
LayerInfo = require '../layer_info.coffee' module.exports = class BlendInteriorElements extends LayerInfo @shouldParse: (key) -> key is 'infx'
parse: -> @enabled = @file.readBoolean() @file.seek 3, true
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer_info/blend_interior_elements.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_info/blend_interior_elements.coffee
1
8
littlebee/git-time-machine:lib/git-utils.coffee:1:raw_corpus
raw_corpus
GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] lastCommitObj = null stdout = (output) -> lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems) exit = (code) -> GitUtils._onFinishedParse(code, logItems, callback) return GitUtils._fetchFileHistory(fileName, stdout, e...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
25
33
littlebee/git-time-machine:lib/git-utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] lastCommitObj = null stdout = (output) -> lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems) exit = (code) -> GitUtils._onFinishedParse(code, logItems, callback...
GitUtils.getFileCommitHistory = function(fileName, callback) { var exit, lastCommitObj, logItems, stdout; logItems = []; lastCommitObj = null; stdout = function(output) { return lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems); }; exit = function(code) { return GitUtils._...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
25
33
littlebee/git-time-machine:lib/git-utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript GitUtils.getFileCommitHistory = function(fileName, callback) { var exit, lastCommitObj, logItems, stdout; logItems = []; lastCommitObj = null; stdout = function(output) { return lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems...
GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] lastCommitObj = null stdout = (output) -> lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems) exit = (code) -> GitUtils._onFinishedParse(code, logItems, callback) return GitUtils._fetchFileHistory(fileName, stdout, e...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
25
33
littlebee/git-time-machine:lib/git-utils.coffee:1:completion
completion
GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] lastCommitObj = null stdout = (output) -> lastCommitObj = GitUtils._parseGitLogOutput(output, lastCommitObj, logItems)
exit = (code) -> GitUtils._onFinishedParse(code, logItems, callback) return GitUtils._fetchFileHistory(fileName, stdout, exit) # Implementation
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
25
33
littlebee/git-time-machine:lib/git-utils.coffee:2:raw_corpus
raw_corpus
GitUtils._parseGitLogOutput = (output, lastCommitObj, logItems) -> logLines = output.split("\n") for line in logLines if line[0] == '{' && line[line.length-1] == '}' lastCommitObj = GitUtils._parseCommitObj(line) logItems.push lastCommitObj if lastCommitObj else if line[0] == '{' # this wi...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
35
53
littlebee/git-time-machine:lib/git-utils.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils._parseGitLogOutput = (output, lastCommitObj, logItems) -> logLines = output.split("\n") for line in logLines if line[0] == '{' && line[line.length-1] == '}' lastCommitObj = GitUtils._parseCommitObj(line) logItems.push lastCommitObj if...
GitUtils._parseGitLogOutput = function(output, lastCommitObj, logItems) { var i, len, line, logLines, matches; logLines = output.split("\n"); for (i = 0, len = logLines.length; i < len; i++) { line = logLines[i]; if (line[0] === '{' && line[line.length - 1] === '}') { lastCommitObj = GitUtils._parse...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
35
53
littlebee/git-time-machine:lib/git-utils.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript GitUtils._parseGitLogOutput = function(output, lastCommitObj, logItems) { var i, len, line, logLines, matches; logLines = output.split("\n"); for (i = 0, len = logLines.length; i < len; i++) { line = logLines[i]; if (line[0] === '{' && line[line.lengt...
GitUtils._parseGitLogOutput = (output, lastCommitObj, logItems) -> logLines = output.split("\n") for line in logLines if line[0] == '{' && line[line.length-1] == '}' lastCommitObj = GitUtils._parseCommitObj(line) logItems.push lastCommitObj if lastCommitObj else if line[0] == '{' # this wi...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
35
53
littlebee/git-time-machine:lib/git-utils.coffee:2:completion
completion
GitUtils._parseGitLogOutput = (output, lastCommitObj, logItems) -> logLines = output.split("\n") for line in logLines if line[0] == '{' && line[line.length-1] == '}' lastCommitObj = GitUtils._parseCommitObj(line) logItems.push lastCommitObj if lastCommitObj else if line[0] == '{' # this wi...
else if _.isString(lastCommitObj) lastCommitObj += line if line[line.length-1] == '}' lastCommitObj = GitUtils._parseCommitObj(lastCommitObj) logItems.push lastCommitObj if lastCommitObj else if lastCommitObj? && (matches = line.match(/^(\d+)\s*(\d+).*/)) # git log --num-stat appen...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
35
53
littlebee/git-time-machine:lib/git-utils.coffee:3:raw_corpus
raw_corpus
GitUtils._parseCommitObj = (line) -> encLine = line.replace(/\t/g, ' ') # tabs mess with JSON parse .replace(/\"/g, "'") # sorry, can't parse with quotes in body or message .replace(/(\n|\n\r)/g, '<br>') .replace(/\r/g, '<br>') .replace(/\#\/dquotes\//g, '"') try return JSON.parse(encLine) ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
56
70
littlebee/git-time-machine:lib/git-utils.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils._parseCommitObj = (line) -> encLine = line.replace(/\t/g, ' ') # tabs mess with JSON parse .replace(/\"/g, "'") # sorry, can't parse with quotes in body or message .replace(/(\n|\n\r)/g, '<br>') .replace(/\r/g, '<br>') .replace(/\#\/...
GitUtils._parseCommitObj = function(line) { var encLine; encLine = line.replace(/\t/g, ' ').replace(/\"/g, "'").replace(/(\n|\n\r)/g, '<br>').replace(/\r/g, '<br>').replace(/\#\/dquotes\//g, '"'); // tabs mess with JSON parse // sorry, can't parse with quotes in body or message try { return JSON.parse(encLin...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
56
70
littlebee/git-time-machine:lib/git-utils.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript GitUtils._parseCommitObj = function(line) { var encLine; encLine = line.replace(/\t/g, ' ').replace(/\"/g, "'").replace(/(\n|\n\r)/g, '<br>').replace(/\r/g, '<br>').replace(/\#\/dquotes\//g, '"'); // tabs mess with JSON parse // sorry, can't parse with quotes ...
GitUtils._parseCommitObj = (line) -> encLine = line.replace(/\t/g, ' ') # tabs mess with JSON parse .replace(/\"/g, "'") # sorry, can't parse with quotes in body or message .replace(/(\n|\n\r)/g, '<br>') .replace(/\r/g, '<br>') .replace(/\#\/dquotes\//g, '"') try return JSON.parse(encLine) ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
56
70
littlebee/git-time-machine:lib/git-utils.coffee:3:completion
completion
GitUtils._parseCommitObj = (line) -> encLine = line.replace(/\t/g, ' ') # tabs mess with JSON parse .replace(/\"/g, "'") # sorry, can't parse with quotes in body or message .replace(/(\n|\n\r)/g, '<br>') .replace(/\r/g, '<br>') .replace(/\#\/dquotes\//g, '"') try
return JSON.parse(encLine) catch console.warn "failed to parse JSON #{encLine}" return null # note this is spied on by unit test. See spec/git-utils-spec.coffee
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
56
70
littlebee/git-time-machine:lib/git-utils.coffee:4:raw_corpus
raw_corpus
GitUtils._onFinishedParse = (code, logItems, callback) -> if code is 0 and logItems.length isnt 0 callback logItems else callback [] return
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
71
76
littlebee/git-time-machine:lib/git-utils.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils._onFinishedParse = (code, logItems, callback) -> if code is 0 and logItems.length isnt 0 callback logItems else callback [] return ```
GitUtils._onFinishedParse = function(code, logItems, callback) { if (code === 0 && logItems.length !== 0) { callback(logItems); } else { callback([]); } };
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
71
76
littlebee/git-time-machine:lib/git-utils.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript GitUtils._onFinishedParse = function(code, logItems, callback) { if (code === 0 && logItems.length !== 0) { callback(logItems); } else { callback([]); } }; ```
GitUtils._onFinishedParse = (code, logItems, callback) -> if code is 0 and logItems.length isnt 0 callback logItems else callback [] return
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
71
76
littlebee/git-time-machine:lib/git-utils.coffee:4:completion
completion
GitUtils._onFinishedParse = (code, logItems, callback) -> if code is 0 and logItems.length isnt 0 callback logItems
else callback [] return
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
71
76
littlebee/git-time-machine:lib/git-utils.coffee:5:raw_corpus
raw_corpus
GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = ("""{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, """ + """ "message": "%s", "body": "%b", "hash": "%h"}""").replace(/\"/g, "#/dquotes/") return new BufferedProcess { command: "git", args: [ "-C", ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
79
97
littlebee/git-time-machine:lib/git-utils.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = ("""{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, """ + """ "message": "%s", "body": "%b", "hash": "%h"}""").replace(/\"/g, "#/dquotes/") return new BufferedP...
GitUtils._fetchFileHistory = function(fileName, stdout, exit) { var format; format = (`{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, ` + ` "message": "%s", "body": "%b", "hash": "%h"}`).replace(/\"/g, "#/dquotes/"); return new BufferedProcess({ command: "git", args: ["-C", pa...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
79
97
littlebee/git-time-machine:lib/git-utils.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript GitUtils._fetchFileHistory = function(fileName, stdout, exit) { var format; format = (`{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, ` + ` "message": "%s", "body": "%b", "hash": "%h"}`).replace(/\"/g, "#/dquotes/"); return new Bu...
GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = ("""{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, """ + """ "message": "%s", "body": "%b", "hash": "%h"}""").replace(/\"/g, "#/dquotes/") return new BufferedProcess { command: "git", args: [ "-C", ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
79
97
littlebee/git-time-machine:lib/git-utils.coffee:5:completion
completion
GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = ("""{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "authorDate": %at, """ + """ "message": "%s", "body": "%b", "hash": "%h"}""").replace(/\"/g, "#/dquotes/") return new BufferedProcess { command: "git", args: [ "-C", ...
"log", "--pretty=format:#{format}", "--topo-order", "--date=local", "--numstat", fileName ], stdout, exit }
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-utils.coffee
79
97
littlebee/git-time-machine:lib/git-utils.coffee:1:raw_corpus
raw_corpus
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:completion
completion
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
lastCommitObj = JSON.parse(line) logItems.push lastCommitObj else if lastCommitObj? && (matches = line.match(/^(\d+)\s*(\d+).*/)) # git log --num-stat appends line stats on separate line lastCommitObj.linesAdded = Number.parseInt(matches[1]) lastCommitObj.linesDeleted = Number.parseInt(match...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:raw_corpus
raw_corpus
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:completion
completion
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
return exit = (code) => if code is 0 and logItems.length isnt 0 callback logItems else callback [] return return GitUtils._fetchFileHistory(fileName, stdout, exit) GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = """{"id": "%H", "authorName": "%an", "relativeDate": "%c...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:raw_corpus
raw_corpus
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:completion
completion
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
return exit = (code) => if code is 0 and logItems.length isnt 0 callback logItems else callback [] return GitUtils._fetchFileHistory(fileName, stdout, exit) GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = """{"id": "%H", "authorName": "%an", "relativeDate": "%cr", "au...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-utils.coffee
1
50
littlebee/git-time-machine:lib/git-utils.coffee:1:raw_corpus
raw_corpus
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-utils.coffee
1
45
littlebee/git-time-machine:lib/git-utils.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFile...
var BufferedProcess, GitUtils, _, fs, path; ({BufferedProcess} = require("atom")); _ = require('underscore-plus'); path = require("path"); fs = require("fs"); GitUtils = exports; // returns an array of javascript objects representing the commits that effected the requested file // with line stats GitUtils.getFile...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-utils.coffee
1
45
littlebee/git-time-machine:lib/git-utils.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BufferedProcess, GitUtils, _, fs, path; ({BufferedProcess} = require("atom")); _ = require('underscore-plus'); path = require("path"); fs = require("fs"); GitUtils = exports; // returns an array of javascript objects representing the commits that effected...
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-utils.coffee
1
45
littlebee/git-time-machine:lib/git-utils.coffee:1:completion
completion
{BufferedProcess} = require "atom" _ = require('underscore-plus'); path = require "path" fs = require "fs" GitUtils = exports # returns an array of javascript objects representing the commits that effected the requested file # with line stats GitUtils.getFileCommitHistory = (fileName, callback)-> logItems = [] ...
callback [] GitUtils._fetchFileHistory(fileName, stdout, exit) GitUtils._fetchFileHistory = (fileName, stdout, exit) -> format = "{\"author\": \"%an\",\"relativeDate\": \"%cr\",\"fullDate\": \"%ad\",\"message\": \"%s\",\"hash\": \"%h\"}," new BufferedProcess { command: "git", args: [ "-C", ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-utils.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-utils.coffee
1
45
jianliaoim/talk-os:talk-web/test/spec/actions/search-message.spec.coffee:1:raw_corpus
raw_corpus
xdescribe 'Actions: search-message', -> beforeEach -> @action = require 'actions/search-message' @api = require 'network/api' describe 'Method: search', -> it 'should call api', -> spyOn(@api.messages.read, 'get').and.callThrough() data = {} config = queryParams: data @action...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/search-message.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/search-message.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/actions/search-message.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript xdescribe 'Actions: search-message', -> beforeEach -> @action = require 'actions/search-message' @api = require 'network/api' describe 'Method: search', -> it 'should call api', -> spyOn(@api.messages.read, 'get').and.callThrough() ...
xdescribe('Actions: search-message', function() { beforeEach(function() { this.action = require('actions/search-message'); return this.api = require('network/api'); }); describe('Method: search', function() { return it('should call api', function() { var config, data; spyOn(this.api.messag...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/actions/search-message.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/search-message.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/actions/search-message.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript xdescribe('Actions: search-message', function() { beforeEach(function() { this.action = require('actions/search-message'); return this.api = require('network/api'); }); describe('Method: search', function() { return it('should call api', function(...
xdescribe 'Actions: search-message', -> beforeEach -> @action = require 'actions/search-message' @api = require 'network/api' describe 'Method: search', -> it 'should call api', -> spyOn(@api.messages.read, 'get').and.callThrough() data = {} config = queryParams: data @action...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/search-message.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/search-message.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/actions/search-message.spec.coffee:1:completion
completion
xdescribe 'Actions: search-message', -> beforeEach -> @action = require 'actions/search-message' @api = require 'network/api' describe 'Method: search', -> it 'should call api', -> spyOn(@api.messages.read, 'get').and.callThrough() data = {} config = queryParams: data @action...
it 'should call api', -> spyOn(@api.messages.read, 'get').and.callThrough() data = {} config = queryParams: data @action.before(data) expect(@api.messages.read.get).toHaveBeenCalledWith config describe 'Method: after', -> it 'should call api', -> spyOn(@api.messages.read, 'g...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/search-message.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/search-message.spec.coffee
1
35
mauricemach/coffeekup:benchmark.coffee:1:raw_corpus
raw_corpus
coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired ...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
15
64
mauricemach/coffeekup:benchmark.coffee:1:completion
completion
coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired ...
html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired p 'Create a witty example' ...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
15
64
mauricemach/coffeekup:benchmark.coffee:2:raw_corpus
raw_corpus
head meta(charset="utf-8") title= title style | body {font-family: "sans-serif"} | section, header {display: block} body section header h1= title - if (inspired) p Create a witty example - else p Go meta ul ...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
65
114
mauricemach/coffeekup:benchmark.coffee:2:completion
completion
head meta(charset="utf-8") title= title style | body {font-family: "sans-serif"} | section, header {display: block} body section header h1= title - if (inspired) p Create a witty example - else p Go meta ul ...
<meta charset="utf-8"> <title><%= title %></title> <style> body {font-family: "sans-serif"} section, header {display: block} </style> </head> <body> <section> <header> <h1><%= title %></h1> </header> <% if (inspired) { %> <p>Cre...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
65
114
mauricemach/coffeekup:benchmark.coffee:3:raw_corpus
raw_corpus
</html> ''' eco_template = ''' <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><%= @title %></title> <style> body {font-family: "sans-serif"} section, header {display: block} </style> </head> <body> <section> <header> ...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
115
148
mauricemach/coffeekup:benchmark.coffee:3:completion
completion
</html> ''' eco_template = ''' <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><%= @title %></title> <style> body {font-family: "sans-serif"} section, header {display: block} </style> </head> <body> <section> <header>
<h1><%= @title %></h1> </header> <% if @inspired: %> <p>Create a witty example</p> <% else: %> <p>Go meta</p> <% end %> <ul> <% for user in @users: %> <li><%= user.name %></li> <li><a href="<%= user.email %>"><%= user.email %>...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
115
148
mauricemach/coffeekup:benchmark.coffee:4:raw_corpus
raw_corpus
benchmark = (title, code) -> start = new Date for i in [1..5000] code() puts "#{title}: #{new Date - start} ms"
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
150
154
mauricemach/coffeekup:benchmark.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript benchmark = (title, code) -> start = new Date for i in [1..5000] code() puts "#{title}: #{new Date - start} ms" ```
var benchmark; benchmark = function(title, code) { var i, j, start; start = new Date(); for (i = j = 1; j <= 5000; i = ++j) { code(); } return puts(`${title}: ${new Date() - start} ms`); };
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
150
154
mauricemach/coffeekup:benchmark.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var benchmark; benchmark = function(title, code) { var i, j, start; start = new Date(); for (i = j = 1; j <= 5000; i = ++j) { code(); } return puts(`${title}: ${new Date() - start} ms`); }; ```
benchmark = (title, code) -> start = new Date for i in [1..5000] code() puts "#{title}: #{new Date - start} ms"
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
150
154
mauricemach/coffeekup:benchmark.coffee:4:completion
completion
benchmark = (title, code) -> start = new Date
for i in [1..5000] code() puts "#{title}: #{new Date - start} ms"
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
150
154
mauricemach/coffeekup:benchmark.coffee:5:raw_corpus
raw_corpus
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off benchmark '...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
156
165
mauricemach/coffeekup:benchmark.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render co...
exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: data }); }); benchmark('CoffeeKup (string)', function() { return coffeekup.render(coffeekup_string_template, { context: data }); }); benchmark('CoffeeKup (co...
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
156
165
mauricemach/coffeekup:benchmark.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: data }); }); benchmark('CoffeeKup (string)', function() { return coffeekup.render(coffeekup_string_template, { ...
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off benchmark '...
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
156
165
mauricemach/coffeekup:benchmark.coffee:5:completion
completion
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off benchmark '...
benchmark 'Jade (cache off)', -> jade.render jade_template, locals: data benchmark 'Jade (cache on)', -> jade.render jade_template, locals: data, cache: on, filename: 'test' benchmark 'ejs (cache off)', -> ejs.render ejs_template, locals: data benchmark 'ejs (cache on)', -> ejs.render ejs_template, locals: data, ...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab
1,245
https://github.com/mauricemach/coffeekup/blob/d5e9bd443bbae21ec8cb1a0ce65322e3f53b32ab/benchmark.coffee
156
165
mauricemach/coffeekup:benchmark.coffee:2:raw_corpus
raw_corpus
head meta(charset="utf-8") title= title style | body {font-family: "sans-serif"} | section, header {display: block} body section header h1= title - if (inspired) p Create a witty example - else p Go meta ul ...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
64
113
mauricemach/coffeekup:benchmark.coffee:2:completion
completion
head meta(charset="utf-8") title= title style | body {font-family: "sans-serif"} | section, header {display: block} body section header h1= title - if (inspired) p Create a witty example - else p Go meta ul ...
<meta charset="utf-8"> <title><%= @title %></title> <style> body {font-family: "sans-serif"} section, header {display: block} </style> </head> <body> <section> <header> <h1><%= @title %></h1> </header> <% if @inspired: %> <p>Cre...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
64
113
mauricemach/coffeekup:benchmark.coffee:5:raw_corpus
raw_corpus
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off benchmark '...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
123
130
mauricemach/coffeekup:benchmark.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render co...
exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: data }); }); benchmark('CoffeeKup (string)', function() { return coffeekup.render(coffeekup_string_template, { context: data }); }); benchmark('CoffeeKup (co...
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
123
130
mauricemach/coffeekup:benchmark.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: data }); }); benchmark('CoffeeKup (string)', function() { return coffeekup.render(coffeekup_string_template, { ...
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off benchmark '...
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
123
130
mauricemach/coffeekup:benchmark.coffee:5:completion
completion
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, context: data benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, context: data benchmark 'CoffeeKup (code, cache off)', -> coffeekup.render coffeekup_template, context: data, cache: off
benchmark 'CoffeeKup (string, cache off)', -> coffeekup.render coffeekup_string_template, context: data, cache: off benchmark 'Jade (cache off)', -> jade.render jade_template, locals: data benchmark 'Jade (cache on)', -> jade.render jade_template, locals: data, cache: on, filename: 'test' benchmark 'eco', -> eco....
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39
1,245
https://github.com/mauricemach/coffeekup/blob/b380123baeb5b1f8b7bdfce9a09b8a0c2674cd39/benchmark.coffee
123
130
mauricemach/coffeekup:benchmark.coffee:1:raw_corpus
raw_corpus
coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired ...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
23
60
mauricemach/coffeekup:benchmark.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> h...
var coffeekup_string_template, coffeekup_template; coffeekup_template = function() { doctype(5); return html({ lang: 'en' }, function() { head(function() { meta({ charset: 'utf-8' }); title(this.title); return style(`body {font-family: "sans-serif"} section, header {displa...
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
23
60
mauricemach/coffeekup:benchmark.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var coffeekup_string_template, coffeekup_template; coffeekup_template = function() { doctype(5); return html({ lang: 'en' }, function() { head(function() { meta({ charset: 'utf-8' }); title(this.title); return style(`b...
coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired ...
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
23
60
mauricemach/coffeekup:benchmark.coffee:1:completion
completion
coffeekup_template = -> doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired ...
coffeekup_string_template = """ doctype 5 html lang: 'en', -> head -> meta charset: 'utf-8' title @title style ''' body {font-family: "sans-serif"} section, header {display: block} ''' body -> section -> header -> h1 @title if @inspired...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
23
60
mauricemach/coffeekup:benchmark.coffee:3:raw_corpus
raw_corpus
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (code, cache on)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}, cache: on} benchmark 'CoffeeKup (string)', -> coffe...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
68
85
mauricemach/coffeekup:benchmark.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (code, cache on)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}, c...
exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: { title: 'test', inspired: false } }); }); benchmark('CoffeeKup (code, cache on)', function() { return coffeekup.render(coffeekup_template, { c...
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
68
85
mauricemach/coffeekup:benchmark.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: { title: 'test', inspired: false } }); }); benchmark('CoffeeKup (code, cache on)', function() { ...
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (code, cache on)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}, cache: on} benchmark 'CoffeeKup (string)', -> coffe...
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
68
85
mauricemach/coffeekup:benchmark.coffee:3:completion
completion
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (code, cache on)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}, cache: on} benchmark 'CoffeeKup (string)', -> coffe...
benchmark 'CoffeeKup (string, cache on)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}, cache: on} benchmark 'Jade', -> jade.render jade_template, {locals: {title: 'test', inspired: no}} benchmark 'Jade (cache on)', -> jade.render jade_template, {locals: {titl...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae
1,245
https://github.com/mauricemach/coffeekup/blob/6497b14a1e65f8c3ed6c2ecefaebc2529a1de0ae/benchmark.coffee
68
85
mauricemach/coffeekup:benchmark.coffee:3:raw_corpus
raw_corpus
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string, cache on)', -> coffeek...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
4c7a0f8ac05fe1109928bed64e4a4847532dabb4
1,245
https://github.com/mauricemach/coffeekup/blob/4c7a0f8ac05fe1109928bed64e4a4847532dabb4/benchmark.coffee
68
82
mauricemach/coffeekup:benchmark.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}} ...
exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: { title: 'test', inspired: false } }); }); benchmark('CoffeeKup (string)', function() { return coffeekup.render(coffeekup_string_template, { co...
CoffeeScript
JavaScript
mauricemach/coffeekup
benchmark.coffee
MIT
4c7a0f8ac05fe1109928bed64e4a4847532dabb4
1,245
https://github.com/mauricemach/coffeekup/blob/4c7a0f8ac05fe1109928bed64e4a4847532dabb4/benchmark.coffee
68
82
mauricemach/coffeekup:benchmark.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.run = function() { benchmark('CoffeeKup (code)', function() { return coffeekup.render(coffeekup_template, { context: { title: 'test', inspired: false } }); }); benchmark('CoffeeKup (string)', function() { return...
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string, cache on)', -> coffeek...
JavaScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
4c7a0f8ac05fe1109928bed64e4a4847532dabb4
1,245
https://github.com/mauricemach/coffeekup/blob/4c7a0f8ac05fe1109928bed64e4a4847532dabb4/benchmark.coffee
68
82
mauricemach/coffeekup:benchmark.coffee:3:completion
completion
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}}
benchmark 'CoffeeKup (string, cache on)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}, cache: on} benchmark 'Jade', -> jade.render jade_template, {locals: {title: 'test', inspired: no}} benchmark 'Jade (cache on)', -> jade.render jade_template, {locals: {titl...
CoffeeScript
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
4c7a0f8ac05fe1109928bed64e4a4847532dabb4
1,245
https://github.com/mauricemach/coffeekup/blob/4c7a0f8ac05fe1109928bed64e4a4847532dabb4/benchmark.coffee
68
82
mauricemach/coffeekup:benchmark.coffee:3:raw_corpus
raw_corpus
exports.run = -> benchmark 'CoffeeKup (code)', -> coffeekup.render coffeekup_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string)', -> coffeekup.render coffeekup_string_template, {context: {title: 'test', inspired: no}} benchmark 'CoffeeKup (string, cache on)', -> coffeek...
CoffeeScript
mauricemach/coffeekup
benchmark.coffee
MIT
9b2b6e5b36967bc768cf65c8519e23aca7aef2f5
1,245
https://github.com/mauricemach/coffeekup/blob/9b2b6e5b36967bc768cf65c8519e23aca7aef2f5/benchmark.coffee
68
82