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
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
6aa99e4a06fb9bdc26f6769552b5d898e5ee1831
1,544
https://github.com/ExpediaGroup/cyclotron/blob/6aa99e4a06fb9bdc26f6769552b5d898e5ee1831/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# cyclotronDataSources.factory 'graphiteDataSource', ($q, $http, configService, dataSourceFactory) -> getGraphiteUrl = (url) -> # Clean up of Graphite URL. TODO: More robust support graphiteUrl = _.jsExec url if graphiteUrl.indexOf('http') != 0 && graphiteUrl.indexOf('!{') != 0 ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
6aa99e4a06fb9bdc26f6769552b5d898e5ee1831
1,544
https://github.com/ExpediaGroup/cyclotron/blob/6aa99e4a06fb9bdc26f6769552b5d898e5ee1831/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:raw_corpus
raw_corpus
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' # Remove protocol to work with either HTTP or HTTPS proxy...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
103
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' # Remove...
var proxyUri, req; q.resolve({ '0': { data: data, columns: null } }); // Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy'; // Remove protocol to work with either HTTP or HTTPS proxyUri = new URI(proxyUri).protocol('').toStr...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
103
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var proxyUri, req; q.resolve({ '0': { data: data, columns: null } }); // Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy'; // Remove protocol to work with either HTTP o...
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' # Remove protocol to work with either HTTP or HTTPS proxy...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
103
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:completion
completion
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUri = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' # Remove protocol to work with either HTTP or HTTPS proxy...
req = $http.post proxyUri, getProxyRequest(options) # Add callback handlers to promise req.success successCallback req.error errorCallback return q.promise dataSourceFactory.create 'Graphite', runner
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
d9f6710d26e1473dc1dab805685dd5b572fead4a
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d9f6710d26e1473dc1dab805685dd5b572fead4a/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
103
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:raw_corpus
raw_corpus
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' req = $http.post proxyUrl, getProxyRequest(options) # Ad...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
e6c2d6b6ba251383102913db30400f783b64f049
1,544
https://github.com/ExpediaGroup/cyclotron/blob/e6c2d6b6ba251383102913db30400f783b64f049/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
100
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' req = $h...
var proxyUrl, req; q.resolve({ '0': { data: data, columns: null } }); // Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy'; req = $http.post(proxyUrl, getProxyRequest(options)); // Add callback handlers to promise req.succe...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
e6c2d6b6ba251383102913db30400f783b64f049
1,544
https://github.com/ExpediaGroup/cyclotron/blob/e6c2d6b6ba251383102913db30400f783b64f049/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
100
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var proxyUrl, req; q.resolve({ '0': { data: data, columns: null } }); // Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy'; req = $http.post(proxyUrl, getProxyRequest(op...
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy' req = $http.post proxyUrl, getProxyRequest(options) # Ad...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
e6c2d6b6ba251383102913db30400f783b64f049
1,544
https://github.com/ExpediaGroup/cyclotron/blob/e6c2d6b6ba251383102913db30400f783b64f049/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
100
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:3:completion
completion
q.resolve '0': data: data columns: null # Do the request, wiring up success/failure handlers proxyUrl = (_.jsExec(options.proxy) || configService.restServiceUrl) + '/proxy'
req = $http.post proxyUrl, getProxyRequest(options) # Add callback handlers to promise req.success successCallback req.error errorCallback return q.promise dataSourceFactory.create 'Graphite', runner
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
e6c2d6b6ba251383102913db30400f783b64f049
1,544
https://github.com/ExpediaGroup/cyclotron/blob/e6c2d6b6ba251383102913db30400f783b64f049/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
84
100
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# cyclotronDataSources.factory 'graphiteDataSource', ($q, $http, configService, dataSourceFactory) -> getGraphiteUrl = (url) -> # Clean up of Graphite URL. TODO: More robust support graphiteUrl = _.jsExec url if graphiteUrl.indexOf('http') != 0 && graphiteUrl.indexOf('!{') != 0 ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.graphite.coffee
1
41
jnordberg/wintersmith:lib/article.coffee:3:raw_corpus
raw_corpus
class Article extends Model constructor: (@body='', @metadata={}, @files=[]) -> getHtml: (baseURL='/') -> ### parse @body and return html. also resolves all relative to absolute ones using *baseURL* as base ### @_html ?= parser.parseMarkdownSync @body, path.join(baseURL, @slug) # cache html re...
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
20
46
jnordberg/wintersmith:lib/article.coffee:3:completion
completion
class Article extends Model constructor: (@body='', @metadata={}, @files=[]) -> getHtml: (baseURL='/') -> ### parse @body and return html. also resolves all relative to absolute ones using *baseURL* as base ### @_html ?= parser.parseMarkdownSync @body, path.join(baseURL, @slug) # cache html re...
@property 'date', -> new Date(@metadata.date or 0) @property 'slug', -> @metadata.slug or slugify stripExtension @filename @property 'filename', -> @metadata.filename or 'unknown' @property 'rfc822date', -> rfc822 @date @property 'html', -> @getHtml()
CoffeeScript
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
20
46
jnordberg/wintersmith:lib/article.coffee:4:raw_corpus
raw_corpus
Article.fromFile = (filename, callback) -> async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {body, metadata} = result metadata.filename = path.basename filename callback null, new Art...
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
48
58
jnordberg/wintersmith:lib/article.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Article.fromFile = (filename, callback) -> async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {body, metadata} = result metadata.filen...
Article.fromFile = function(filename, callback) { return async.waterfall([ function(callback) { return fs.readFile(filename, callback); }, function(buffer, callback) { return parser(buffer.toString(), callback); }, function(result, callback) { var body, metada...
CoffeeScript
JavaScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
48
58
jnordberg/wintersmith:lib/article.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript Article.fromFile = function(filename, callback) { return async.waterfall([ function(callback) { return fs.readFile(filename, callback); }, function(buffer, callback) { return parser(buffer.toString(), callback); }, func...
Article.fromFile = (filename, callback) -> async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {body, metadata} = result metadata.filename = path.basename filename callback null, new Art...
JavaScript
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
48
58
jnordberg/wintersmith:lib/article.coffee:4:completion
completion
Article.fromFile = (filename, callback) -> async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) ->
parser buffer.toString(), callback (result, callback) -> {body, metadata} = result metadata.filename = path.basename filename callback null, new Article body, metadata ], callback
CoffeeScript
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
48
58
jnordberg/wintersmith:lib/article.coffee:5:raw_corpus
raw_corpus
Article.fromDirectory = (directory, callback) -> opts = {cwd: directory, nosort: true} # glob options filename = null async.waterfall [ async.apply glob, 'index.*(md|markdown)', opts (files, callback) -> if files.length == 1 # read article markdown filename = files[0] fs.read...
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
60
88
jnordberg/wintersmith:lib/article.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Article.fromDirectory = (directory, callback) -> opts = {cwd: directory, nosort: true} # glob options filename = null async.waterfall [ async.apply glob, 'index.*(md|markdown)', opts (files, callback) -> if files.length == 1 # read art...
Article.fromDirectory = function(directory, callback) { var filename, opts; opts = { cwd: directory, nosort: true // glob options }; filename = null; return async.waterfall([ async.apply(glob, 'index.*(md|markdown)', opts), function(files, callback) { if (files.length === 1) ...
CoffeeScript
JavaScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
60
88
jnordberg/wintersmith:lib/article.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript Article.fromDirectory = function(directory, callback) { var filename, opts; opts = { cwd: directory, nosort: true // glob options }; filename = null; return async.waterfall([ async.apply(glob, 'index.*(md|markdown)', opts), functio...
Article.fromDirectory = (directory, callback) -> opts = {cwd: directory, nosort: true} # glob options filename = null async.waterfall [ async.apply glob, 'index.*(md|markdown)', opts (files, callback) -> if files.length == 1 # read article markdown filename = files[0] fs.read...
JavaScript
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
60
88
jnordberg/wintersmith:lib/article.coffee:5:completion
completion
Article.fromDirectory = (directory, callback) -> opts = {cwd: directory, nosort: true} # glob options filename = null async.waterfall [ async.apply glob, 'index.*(md|markdown)', opts (files, callback) -> if files.length == 1 # read article markdown filename = files[0] fs.read...
# parse article parser: async.apply parser, buffer.toString() # get article files files: async.apply glob, '*', opts # glob negating broken - https://github.com/isaacs/node-glob/issues/33 , callback (result, callback) -> # workaround for glob bug files = result.files.filter...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
lib/article.coffee
MIT
f01b0c9862c0cb38dbd62af492e2955581fd974e
3,484
https://github.com/jnordberg/wintersmith/blob/f01b0c9862c0cb38dbd62af492e2955581fd974e/lib/article.coffee
60
88
cdglabs/apparatus:test/DeepEquality.test.coffee:1:raw_corpus
raw_corpus
test = require "tape" _ = require "underscore" DeepEquality = require "../src/Util/DeepEquality" cyclicDeepEqual = DeepEquality.cyclicDeepEqual test "Primitive values work", (t) -> t.ok(cyclicDeepEqual(23, 23), "numbers") t.ok(cyclicDeepEqual(null, null), "null") t.notOk(cyclicDeepEqual(23, 24), "different nu...
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
1
45
cdglabs/apparatus:test/DeepEquality.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require "tape" _ = require "underscore" DeepEquality = require "../src/Util/DeepEquality" cyclicDeepEqual = DeepEquality.cyclicDeepEqual test "Primitive values work", (t) -> t.ok(cyclicDeepEqual(23, 23), "numbers") t.ok(cyclicDeepEqual(null, null),...
var DeepEquality, _, cyclicDeepEqual, test; test = require("tape"); _ = require("underscore"); DeepEquality = require("../src/Util/DeepEquality"); cyclicDeepEqual = DeepEquality.cyclicDeepEqual; test("Primitive values work", function(t) { t.ok(cyclicDeepEqual(23, 23), "numbers"); t.ok(cyclicDeepEqual(null, nul...
CoffeeScript
JavaScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
1
45
cdglabs/apparatus:test/DeepEquality.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var DeepEquality, _, cyclicDeepEqual, test; test = require("tape"); _ = require("underscore"); DeepEquality = require("../src/Util/DeepEquality"); cyclicDeepEqual = DeepEquality.cyclicDeepEqual; test("Primitive values work", function(t) { t.ok(cyclicDeepEqua...
test = require "tape" _ = require "underscore" DeepEquality = require "../src/Util/DeepEquality" cyclicDeepEqual = DeepEquality.cyclicDeepEqual test "Primitive values work", (t) -> t.ok(cyclicDeepEqual(23, 23), "numbers") t.ok(cyclicDeepEqual(null, null), "null") t.notOk(cyclicDeepEqual(23, 24), "different nu...
JavaScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
1
45
cdglabs/apparatus:test/DeepEquality.test.coffee:1:completion
completion
test = require "tape" _ = require "underscore" DeepEquality = require "../src/Util/DeepEquality" cyclicDeepEqual = DeepEquality.cyclicDeepEqual test "Primitive values work", (t) -> t.ok(cyclicDeepEqual(23, 23), "numbers") t.ok(cyclicDeepEqual(null, null), "null") t.notOk(cyclicDeepEqual(23, 24), "different nu...
t.ok(cyclicDeepEqual([23, 2233], [23, 2233]), "same") t.notOk(cyclicDeepEqual([23, 100], [23, 2233]), "different value") t.notOk(cyclicDeepEqual([23], [23, 2233]), "first array smaller") t.notOk(cyclicDeepEqual([23, 2233], [23]), "second array smaller") t.end() test "Compound objects work", (t) -> t.ok(cycli...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
1
45
cdglabs/apparatus:test/DeepEquality.test.coffee:2:raw_corpus
raw_corpus
# Make object without multiply-referenced part makeWithout = -> return {x: {}, y: {}} t.deepEqual(makeWith(), makeWithout(), "objects are deep-equal as values") t.notOk( cyclicDeepEqual(makeWith(), makeWithout()), "objects are not cyclic-deep-equal") t.notOk( cyclicDeepEqual(makeWithout(), mak...
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
47
91
cdglabs/apparatus:test/DeepEquality.test.coffee:2:completion
completion
# Make object without multiply-referenced part makeWithout = -> return {x: {}, y: {}} t.deepEqual(makeWith(), makeWithout(), "objects are deep-equal as values") t.notOk( cyclicDeepEqual(makeWith(), makeWithout()), "objects are not cyclic-deep-equal") t.notOk( cyclicDeepEqual(makeWithout(), mak...
# Make self-referential object makeSelf = -> a = {} a.x = a return a # Make mutually-referential object makeMutually = -> a = {} b = {} a.x = b b.x = a return a # Note: makeSelf and makeMutually return infinitely deep objects which are # "equal as values" (so they are not cau...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
47
91
cdglabs/apparatus:test/DeepEquality.test.coffee:3:raw_corpus
raw_corpus
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Situation which tricks deep-equal-ident works", (t) -> # See https...
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
93
137
cdglabs/apparatus:test/DeepEquality.test.coffee:3:completion
completion
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Situation which tricks deep-equal-ident works", (t) -> # See https...
test "Prototypes are checked appropriately", (t) -> make1 = -> a = {x: {}, y: {}} b = {} Object.setPrototypeOf(a.x, b) return a make2 = -> return {x: {}, y: {}} t.ok( cyclicDeepEqual(make1(), make2(), {checkPrototypes: false}) "test objects are equal aside from prototypes") t.notOk...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DeepEquality.test.coffee
93
137
cdglabs/apparatus:test/DeepEquality.test.coffee:3:raw_corpus
raw_corpus
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Prototypes are checked appropriately", (t) -> make1 = -> a = {...
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
2fcce2ee0684e0d6e69992a7562e8d185dc0a5e3
1,052
https://github.com/cdglabs/apparatus/blob/2fcce2ee0684e0d6e69992a7562e8d185dc0a5e3/test/DeepEquality.test.coffee
93
126
cdglabs/apparatus:test/DeepEquality.test.coffee:3:completion
completion
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Prototypes are checked appropriately", (t) -> make1 = -> a = {...
make2 = -> return {x: {}, y: {}} t.ok( cyclicDeepEqual(make1(), make2(), {checkPrototypes: false}) "test objects are equal aside from prototypes") t.notOk( cyclicDeepEqual(make1(), make2()) "test objects are not equal if you check prototypes") t.ok( cyclicDeepEqual(make1(), make1()), ...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
2fcce2ee0684e0d6e69992a7562e8d185dc0a5e3
1,052
https://github.com/cdglabs/apparatus/blob/2fcce2ee0684e0d6e69992a7562e8d185dc0a5e3/test/DeepEquality.test.coffee
93
126
cdglabs/apparatus:test/DeepEquality.test.coffee:3:raw_corpus
raw_corpus
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Prototypes are checked appropriately", (t) -> make1 = -> a = {...
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
2fc47d2104d9d6394dda284b4f2a7fccfa5aad0f
1,052
https://github.com/cdglabs/apparatus/blob/2fc47d2104d9d6394dda284b4f2a7fccfa5aad0f/test/DeepEquality.test.coffee
93
122
cdglabs/apparatus:test/DeepEquality.test.coffee:3:completion
completion
# And just to check: t.ok( cyclicDeepEqual(makeSelf(), makeSelf()), "first kind is cyclic-deep-equal to itself") t.ok( cyclicDeepEqual(makeMutually(), makeMutually()), "second kind is cyclic-deep-equal to itself") t.end() test "Prototypes are checked appropriately", (t) -> make1 = -> a = {...
return a make2 = -> return {x: {}, y: {}} t.ok( cyclicDeepEqual(make1(), make2(), {checkPrototypes: false}) "test objects are equal aside from prototypes") t.notOk( cyclicDeepEqual(make1(), make2()) "test objects are not equal if you check prototypes") t.ok(cyclicDeepEqual(make1(), make1()...
CoffeeScript
CoffeeScript
cdglabs/apparatus
test/DeepEquality.test.coffee
MIT
2fc47d2104d9d6394dda284b4f2a7fccfa5aad0f
1,052
https://github.com/cdglabs/apparatus/blob/2fc47d2104d9d6394dda284b4f2a7fccfa5aad0f/test/DeepEquality.test.coffee
93
122
soyjavi/QuoJS:gulpfile.coffee:1:raw_corpus
raw_corpus
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = requ...
"use strict"; var banner, coffee, concat, connect, gulp, gutil, header, jasmine, karma, path, pkg, uglify; // -- DEPENDENCIES -------------------------------------------------------------- gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require('gulp-concat'); header = require('gulp-header'); con...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var banner, coffee, concat, connect, gulp, gutil, header, jasmine, karma, path, pkg, uglify; // -- DEPENDENCIES -------------------------------------------------------------- gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require...
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:completion
completion
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
'./source/quo.ajax.coffee' './source/quo.css.coffee' './source/quo.element.coffee' './source/quo.environment.coffee' './source/quo.events.coffee' './source/quo.output.coffee' './source/quo.query.coffee'] gestures: ['./source/quo.gestures.co...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:2:raw_corpus
raw_corpus
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.build .pipe ...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'er...
// -- TASKS --------------------------------------------------------------------- gulp.task("server", function() { return connect.server({ port: 8000, livereload: true, root: path.dist }); }); gulp.task('modules', function() { return gulp.src(path.modules).pipe(coffee().on('error', gutil.log)).pipe(g...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // -- TASKS --------------------------------------------------------------------- gulp.task("server", function() { return connect.server({ port: 8000, livereload: true, root: path.dist }); }); gulp.task('modules', function() { return gulp.src(pat...
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.build .pipe ...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:completion
completion
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.build .pipe ...
.pipe gulp.dest path.build .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.dist .pipe connect.reload() gulp.task 'standalone', -> gulp.src path.modules.concat path.gestures .pipe concat 'quo.standalone.coffee' .pipe coffee().on 'error', gutil.log .pipe gulp.de...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:3:raw_corpus
raw_corpus
gulp.task 'karma', ['modules', 'spec'], (done) -> karma.start configFile: __dirname + '/karma.js', files : [ './build/quo.standalone.js', './build/spec.js'] singleRun : false , done gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> ...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
85
100
soyjavi/QuoJS:gulpfile.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript gulp.task 'karma', ['modules', 'spec'], (done) -> karma.start configFile: __dirname + '/karma.js', files : [ './build/quo.standalone.js', './build/spec.js'] singleRun : false , done gulp.task 'init', ['modules', 'gestures', ...
gulp.task('karma', ['modules', 'spec'], function(done) { return karma.start({ configFile: __dirname + '/karma.js', files: ['./build/quo.standalone.js', './build/spec.js'], singleRun: false }, done); }); gulp.task('init', ['modules', 'gestures', 'standalone', 'spec', 'karma']); gulp.task('default', fun...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
85
100
soyjavi/QuoJS:gulpfile.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript gulp.task('karma', ['modules', 'spec'], function(done) { return karma.start({ configFile: __dirname + '/karma.js', files: ['./build/quo.standalone.js', './build/spec.js'], singleRun: false }, done); }); gulp.task('init', ['modules', 'gestures', 'st...
gulp.task 'karma', ['modules', 'spec'], (done) -> karma.start configFile: __dirname + '/karma.js', files : [ './build/quo.standalone.js', './build/spec.js'] singleRun : false , done gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> ...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
85
100
soyjavi/QuoJS:gulpfile.coffee:3:completion
completion
gulp.task 'karma', ['modules', 'spec'], (done) -> karma.start configFile: __dirname + '/karma.js', files : [ './build/quo.standalone.js', './build/spec.js'] singleRun : false , done
gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> gulp.watch path.coffee, ['karma'] gulp.watch path.modules, ['modules', 'standalone'] gulp.watch path.gestures, ['gestures', 'standalone'] gulp.watch path.spec, ['spec'] gulp.run ["server"]
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/gulpfile.coffee
85
100
soyjavi/QuoJS:gulpfile.coffee:1:raw_corpus
raw_corpus
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = requ...
"use strict"; var banner, coffee, concat, connect, gulp, gutil, header, jasmine, karma, path, pkg, uglify; // -- DEPENDENCIES -------------------------------------------------------------- gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require('gulp-concat'); header = require('gulp-header'); con...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var banner, coffee, concat, connect, gulp, gutil, header, jasmine, karma, path, pkg, uglify; // -- DEPENDENCIES -------------------------------------------------------------- gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require...
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:1:completion
completion
"use strict" # -- DEPENDENCIES -------------------------------------------------------------- gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' connect = require "gulp-connect" jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma ...
'./source/quo.ajax.coffee' './source/quo.css.coffee' './source/quo.element.coffee' './source/quo.environment.coffee' './source/quo.events.coffee' './source/quo.output.coffee' './source/quo.query.coffee'] gestures: ['./source/quo.gestures.co...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
1
41
soyjavi/QuoJS:gulpfile.coffee:2:raw_corpus
raw_corpus
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe u...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'er...
// -- TASKS --------------------------------------------------------------------- gulp.task("server", function() { return connect.server({ port: 8000, livereload: true, root: path.dist }); }); gulp.task('modules', function() { return gulp.src(path.modules).pipe(coffee().on('error', gutil.log)).pipe(g...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // -- TASKS --------------------------------------------------------------------- gulp.task("server", function() { return connect.server({ port: 8000, livereload: true, root: path.dist }); }); gulp.task('modules', function() { return gulp.src(pat...
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe u...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:2:completion
completion
# -- TASKS --------------------------------------------------------------------- gulp.task "server", -> connect.server port : 8000 livereload: true root : path.dist gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe u...
.pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower .pipe connect.reload() gulp.task 'standalone', -> gulp.src path.modules.concat path.gestures .pipe concat 'quo.standalone.coffee' .pipe coffee().on 'error', gutil.log .pipe gulp.de...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
4649d59a7c870496ef50cc71b3bce5b5a4527181
2,055
https://github.com/soyjavi/QuoJS/blob/4649d59a7c870496ef50cc71b3bce5b5a4527181/gulpfile.coffee
43
83
soyjavi/QuoJS:gulpfile.coffee:1:raw_corpus
raw_corpus
"use strict" gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma = require('karma').server gutil = require 'gulp-util' pkg = require './package.json' path = bower : ...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
1
40
soyjavi/QuoJS:gulpfile.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma = require('karma').server gutil = require 'gulp-util'...
"use strict"; var banner, coffee, concat, gulp, gutil, header, jasmine, karma, path, pkg, uglify; gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require('gulp-concat'); header = require('gulp-header'); jasmine = require('gulp-jasmine'); uglify = require('gulp-uglify'); karma = require('karma')...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
1
40
soyjavi/QuoJS:gulpfile.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var banner, coffee, concat, gulp, gutil, header, jasmine, karma, path, pkg, uglify; gulp = require('gulp'); coffee = require('gulp-coffee'); concat = require('gulp-concat'); header = require('gulp-header'); jasmine = require('gulp-jasmine'); ugl...
"use strict" gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma = require('karma').server gutil = require 'gulp-util' pkg = require './package.json' path = bower : ...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
1
40
soyjavi/QuoJS:gulpfile.coffee:1:completion
completion
"use strict" gulp = require 'gulp' coffee = require 'gulp-coffee' concat = require 'gulp-concat' header = require 'gulp-header' jasmine = require 'gulp-jasmine' uglify = require 'gulp-uglify' karma = require('karma').server gutil = require 'gulp-util' pkg = require './package.json' path = bower : ...
'./source/quo.css.coffee' './source/quo.element.coffee' './source/quo.environment.coffee' './source/quo.events.coffee' './source/quo.output.coffee' './source/quo.query.coffee'] gestures: ['./source/quo.gestures.coffee' './source/quo.gesture...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
1
40
soyjavi/QuoJS:gulpfile.coffee:2:raw_corpus
raw_corpus
gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower gulp.task 'gestures', -> gulp.src path.gestures .pipe concat 'quo.gestures.coffee' .pipe coffe...
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
42
83
soyjavi/QuoJS:gulpfile.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower gulp.task 'gestures', -> gulp.src path.gestur...
gulp.task('modules', function() { return gulp.src(path.modules).pipe(coffee().on('error', gutil.log)).pipe(gulp.dest(path.temp)).pipe(uglify({ mangle: true })).pipe(header(banner, { pkg: pkg })).pipe(gulp.dest(path.bower)); }); gulp.task('gestures', function() { return gulp.src(path.gestures).pipe(conc...
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
42
83
soyjavi/QuoJS:gulpfile.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript gulp.task('modules', function() { return gulp.src(path.modules).pipe(coffee().on('error', gutil.log)).pipe(gulp.dest(path.temp)).pipe(uglify({ mangle: true })).pipe(header(banner, { pkg: pkg })).pipe(gulp.dest(path.bower)); }); gulp.task('gestures', ...
gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower gulp.task 'gestures', -> gulp.src path.gestures .pipe concat 'quo.gestures.coffee' .pipe coffe...
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
42
83
soyjavi/QuoJS:gulpfile.coffee:2:completion
completion
gulp.task 'modules', -> gulp.src path.modules .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower gulp.task 'gestures', -> gulp.src path.gestures .pipe concat 'quo.gestures.coffee' .pipe coffe...
.pipe concat 'quo.standalone.coffee' .pipe coffee().on 'error', gutil.log .pipe gulp.dest path.temp .pipe uglify mangle: true .pipe header banner, pkg: pkg .pipe gulp.dest path.bower gulp.task 'spec', -> gulp.src path.spec .pipe concat 'spec.coffee' .pipe coffee().on 'error', gutil.log ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
42
83
soyjavi/QuoJS:gulpfile.coffee:3:raw_corpus
raw_corpus
gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> gulp.watch path.coffee, ['karma'] gulp.watch path.modules, ['modules', 'standalone'] gulp.watch path.gestures, ['gestures', 'standalone'] gulp.watch path.spec, ['spec']
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
86
93
soyjavi/QuoJS:gulpfile.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> gulp.watch path.coffee, ['karma'] gulp.watch path.modules, ['modules', 'standalone'] gulp.watch path.gestures, ['gestures', 'standalone'] gulp.watch path.sp...
gulp.task('init', ['modules', 'gestures', 'standalone', 'spec', 'karma']); gulp.task('default', function() { gulp.watch(path.coffee, ['karma']); gulp.watch(path.modules, ['modules', 'standalone']); gulp.watch(path.gestures, ['gestures', 'standalone']); return gulp.watch(path.spec, ['spec']); });
CoffeeScript
JavaScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
86
93
soyjavi/QuoJS:gulpfile.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript gulp.task('init', ['modules', 'gestures', 'standalone', 'spec', 'karma']); gulp.task('default', function() { gulp.watch(path.coffee, ['karma']); gulp.watch(path.modules, ['modules', 'standalone']); gulp.watch(path.gestures, ['gestures', 'standalone']); ret...
gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', -> gulp.watch path.coffee, ['karma'] gulp.watch path.modules, ['modules', 'standalone'] gulp.watch path.gestures, ['gestures', 'standalone'] gulp.watch path.spec, ['spec']
JavaScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
86
93
soyjavi/QuoJS:gulpfile.coffee:3:completion
completion
gulp.task 'init', ['modules', 'gestures', 'standalone', 'spec', 'karma'] gulp.task 'default', ->
gulp.watch path.coffee, ['karma'] gulp.watch path.modules, ['modules', 'standalone'] gulp.watch path.gestures, ['gestures', 'standalone'] gulp.watch path.spec, ['spec']
CoffeeScript
CoffeeScript
soyjavi/QuoJS
gulpfile.coffee
MIT
144791e942ecf1032b894e008c539159e20cdf49
2,055
https://github.com/soyjavi/QuoJS/blob/144791e942ecf1032b894e008c539159e20cdf49/gulpfile.coffee
86
93
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:raw_corpus
raw_corpus
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk test 'All forms of att() usage', -> result = '' doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"...
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/callback/attributes.coffee
1
50
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk test 'All forms of att() usage', -> result = '' doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") ...
suite('Attributes:', function() { var data, result; result = ''; data = function(chunk, level) { return result += chunk; }; test('All forms of att() usage', function() { result = ''; doc(data).node('test4').ele('node', { "first": "1", "second": "2" }).att("third", "3").up().ele('no...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/callback/attributes.coffee
1
50
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Attributes:', function() { var data, result; result = ''; data = function(chunk, level) { return result += chunk; }; test('All forms of att() usage', function() { result = ''; doc(data).node('test4').ele('node', { "first": "1", ...
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk test 'All forms of att() usage', -> result = '' doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/callback/attributes.coffee
1
50
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:completion
completion
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk test 'All forms of att() usage', -> result = '' doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"...
test 'Skip null attributes', -> result = '' doc(data) .node('test') .ele('node', {"first": null}) .att("third", null) .up() .ele('node').att({"first": null}).up() .up() .end() eq( result '<test>' + '<node/>' + '<node/>' + ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/callback/attributes.coffee
1
50
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:raw_corpus
raw_corpus
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() .up() .end() test 'All forms of att() usage', -...
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
d98b1d39222bf040355c04d08bda89b714d9c50d
926
https://github.com/oozcitak/xmlbuilder-js/blob/d98b1d39222bf040355c04d08bda89b714d9c50d/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() ...
suite('Attributes:', function() { var data, result; result = ''; data = function(chunk, level) { return result += chunk; }; doc(data).node('test4').ele('node', { "first": "1", "second": "2" }).att("third", "3").up().ele('node').att({ "first": "1", "second": "2" }).up().up().end(); re...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
d98b1d39222bf040355c04d08bda89b714d9c50d
926
https://github.com/oozcitak/xmlbuilder-js/blob/d98b1d39222bf040355c04d08bda89b714d9c50d/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Attributes:', function() { var data, result; result = ''; data = function(chunk, level) { return result += chunk; }; doc(data).node('test4').ele('node', { "first": "1", "second": "2" }).att("third", "3").up().ele('node').att({ "fi...
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() .up() .end() test 'All forms of att() usage', -...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
d98b1d39222bf040355c04d08bda89b714d9c50d
926
https://github.com/oozcitak/xmlbuilder-js/blob/d98b1d39222bf040355c04d08bda89b714d9c50d/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:completion
completion
suite 'Attributes:', -> result = '' data = (chunk, level) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up()
.up() .end() test 'All forms of att() usage', -> eq( result '<test4>' + '<node first="1" second="2" third="3"/>' + '<node first="1" second="2"/>' + '</test4>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
d98b1d39222bf040355c04d08bda89b714d9c50d
926
https://github.com/oozcitak/xmlbuilder-js/blob/d98b1d39222bf040355c04d08bda89b714d9c50d/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:raw_corpus
raw_corpus
suite 'Attributes:', -> result = '' data = (chunk) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() .up() .end() test 'All forms of att() usage', -> e...
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
e0e2ce57b49ef63f06840d517d31b2c08b473199
926
https://github.com/oozcitak/xmlbuilder-js/blob/e0e2ce57b49ef63f06840d517d31b2c08b473199/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Attributes:', -> result = '' data = (chunk) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() .up(...
suite('Attributes:', function() { var data, result; result = ''; data = function(chunk) { return result += chunk; }; doc(data).node('test4').ele('node', { "first": "1", "second": "2" }).att("third", "3").up().ele('node').att({ "first": "1", "second": "2" }).up().up().end(); return te...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
e0e2ce57b49ef63f06840d517d31b2c08b473199
926
https://github.com/oozcitak/xmlbuilder-js/blob/e0e2ce57b49ef63f06840d517d31b2c08b473199/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Attributes:', function() { var data, result; result = ''; data = function(chunk) { return result += chunk; }; doc(data).node('test4').ele('node', { "first": "1", "second": "2" }).att("third", "3").up().ele('node').att({ "first": "...
suite 'Attributes:', -> result = '' data = (chunk) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up() .up() .end() test 'All forms of att() usage', -> e...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
e0e2ce57b49ef63f06840d517d31b2c08b473199
926
https://github.com/oozcitak/xmlbuilder-js/blob/e0e2ce57b49ef63f06840d517d31b2c08b473199/test/callback/attributes.coffee
1
24
oozcitak/xmlbuilder-js:test/callback/attributes.coffee:1:completion
completion
suite 'Attributes:', -> result = '' data = (chunk) -> result += chunk doc(data) .node('test4') .ele('node', {"first":"1", "second":"2"}) .att("third", "3") .up() .ele('node').att({"first":"1", "second":"2"}).up()
.up() .end() test 'All forms of att() usage', -> eq( result '<test4>' + '<node first="1" second="2" third="3"/>' + '<node first="1" second="2"/>' + '</test4>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/callback/attributes.coffee
MIT
e0e2ce57b49ef63f06840d517d31b2c08b473199
926
https://github.com/oozcitak/xmlbuilder-js/blob/e0e2ce57b49ef63f06840d517d31b2c08b473199/test/callback/attributes.coffee
1
24
gss/engine:src/concepts/Continuation.coffee:1:raw_corpus
raw_corpus
class Continuation @new: (engine) -> Kontinuation = (path, value, suffix = '') -> if path path = path.replace(Kontinuation.TrimContinuationRegExp, '') return '' if !path && !value return path + (value && engine.identity(value) || '') + suffix Kontinuation.engine = engine Konti...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
8
57
gss/engine:src/concepts/Continuation.coffee:1:completion
completion
class Continuation @new: (engine) -> Kontinuation = (path, value, suffix = '') -> if path path = path.replace(Kontinuation.TrimContinuationRegExp, '') return '' if !path && !value return path + (value && engine.identity(value) || '') + suffix Kontinuation.engine = engine Konti...
# **→ Linking**, to pair up elements in arguments PAIR: String.fromCharCode(8594) # **↓ Nesting**, as a way for expressions to own side effects, # e.g. to remove stylesheet, css rule or conditional branch DESCEND: String.fromCharCode(8595) # ### Example # # It's a lot easier to clean up stateless systems. # Whene...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
8
57
gss/engine:src/concepts/Continuation.coffee:2:raw_corpus
raw_corpus
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
58
107
gss/engine:src/concepts/Continuation.coffee:2:completion
completion
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
"(?:" + Continuation::ASCEND + "|$)", "g") getCanonicalSelector: (selector) -> selector = selector.trim() selector = selector. replace(@CanonicalizeSelectorRegExp, ' '). replace(/\s+/g, @DESCEND)#. #replace(@engine.Operation.CleanupSelectorRegExp, '') return selector CanonicalizeSele...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
58
107
gss/engine:src/concepts/Continuation.coffee:3:raw_corpus
raw_corpus
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" ...
var index, last, path; if (prev && prev.substring(prev.length - id.length) !== id) { last = bits[bits.length - 1]; if ((index = last.indexOf(id + this.ASCEND)) > -1) { bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)); } } bits[bits.length - 1] = ""; path = bits.join(this.DESCEND); if ...
CoffeeScript
JavaScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var index, last, path; if (prev && prev.substring(prev.length - id.length) !== id) { last = bits[bits.length - 1]; if ((index = last.indexOf(id + this.ASCEND)) > -1) { bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)); } } bits[bits....
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
JavaScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:completion
completion
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
unless last? return @engine.scope if matched = last.match(@engine.pairs.TrailingIDRegExp) if matched[1].indexOf('"') > -1 return matched[1] return @engine.identity[matched[1]] return @engine.queries[bits.join(@DESCEND)] # Return path for given operation concat: (continuation,...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:4:raw_corpus
raw_corpus
path = operation.path return path TrimContinuationRegExp: new RegExp("[" + Continuation::ASCEND + Continuation::DESCEND + Continuation::PAIR + "]$") for property, value of Continuation:: Continuation[property] = value
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
158
169
gss/engine:src/concepts/Continuation.coffee:4:completion
completion
path = operation.path return path TrimContinuationRegExp: new RegExp("[" + Continuation::ASCEND + Continuation::DESCEND +
Continuation::PAIR + "]$") for property, value of Continuation:: Continuation[property] = value
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
465ef0255a88915ae4ae7522acb91c4b0d70e60a
2,854
https://github.com/gss/engine/blob/465ef0255a88915ae4ae7522acb91c4b0d70e60a/src/concepts/Continuation.coffee
158
169
gss/engine:src/concepts/Continuation.coffee:1:raw_corpus
raw_corpus
class Continuation @new: (engine) -> Kontinuation = (path, value, suffix = '') -> if path path = path.replace(Kontinuation.TrimContinuationRegExp, '') return '' if !path && !value return path + (value && engine.identity.yield(value) || '') + suffix Kontinuation.engine = engine ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
8
57
gss/engine:src/concepts/Continuation.coffee:1:completion
completion
class Continuation @new: (engine) -> Kontinuation = (path, value, suffix = '') -> if path path = path.replace(Kontinuation.TrimContinuationRegExp, '') return '' if !path && !value return path + (value && engine.identity.yield(value) || '') + suffix Kontinuation.engine = engine ...
# **→ Linking**, to pair up elements in arguments PAIR: String.fromCharCode(8594) # **↓ Nesting**, as a way for expressions to own side effects, # e.g. to remove stylesheet, css rule or conditional branch DESCEND: String.fromCharCode(8595) # ### Example # # It's a lot easier to clean up stateless systems. # Whene...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
8
57
gss/engine:src/concepts/Continuation.coffee:2:raw_corpus
raw_corpus
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
58
107
gss/engine:src/concepts/Continuation.coffee:2:completion
completion
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
"(?:" + Continuation::ASCEND + "|$)", "g") getCanonicalSelector: (selector) -> selector = selector.trim() selector = selector. replace(@CanonicalizeSelectorRegExp, ' '). replace(/\s+/g, @DESCEND)#. #replace(@engine.Operation.CleanupSelectorRegExp, '') return selector CanonicalizeSele...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
58
107
gss/engine:src/concepts/Continuation.coffee:3:raw_corpus
raw_corpus
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" ...
var index, last, path; if (prev && prev.substring(prev.length - id.length) !== id) { last = bits[bits.length - 1]; if ((index = last.indexOf(id + this.ASCEND)) > -1) { bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)); } } bits[bits.length - 1] = ""; path = bits.join(this.DESCEND); if ...
CoffeeScript
JavaScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var index, last, path; if (prev && prev.substring(prev.length - id.length) !== id) { last = bits[bits.length - 1]; if ((index = last.indexOf(id + this.ASCEND)) > -1) { bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)); } } bits[bits....
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
JavaScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:3:completion
completion
if prev && prev.substring(prev.length - id.length) != id last = bits[bits.length - 1] if (index = last.indexOf(id + @ASCEND)) > -1 bits.splice(bits.length - 1, 0, last.substring(0, index + id.length)) bits[bits.length - 1] = "" path = bits.join(@DESCEND) if continuation.charAt(0) ...
unless last? return @engine.scope if matched = last.match(@engine.pairs.TrailingIDRegExp) if matched[1].indexOf('"') > -1 return matched[1] return @engine.identity[matched[1]] return @engine.queries[bits.join(@DESCEND)] # Return path for given operation concat: (continuation,...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
527308fd09ab6b18a30ad7b6194f0fd00f872647
2,854
https://github.com/gss/engine/blob/527308fd09ab6b18a30ad7b6194f0fd00f872647/src/concepts/Continuation.coffee
108
157
gss/engine:src/concepts/Continuation.coffee:2:raw_corpus
raw_corpus
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
6bb82858753ae588e930911ac6dc5db1ced37cb0
2,854
https://github.com/gss/engine/blob/6bb82858753ae588e930911ac6dc5db1ced37cb0/src/concepts/Continuation.coffee
58
107
gss/engine:src/concepts/Continuation.coffee:2:completion
completion
<h1 id="h1"></h1> </header> <!-- Generated constraint key --> style$my-stylesheet # my stylesheet ↓ h1$h1 # found heading ↑ !+img # preceeded by image → #header # bound to header element### # When cleaning a path, also clean forks, rules and pairs ...
"(?:" + Continuation::ASCEND + "|$)", "g") getCanonicalSelector: (selector) -> selector = selector.trim() selector = selector. replace(@CanonicalizeSelectorRegExp, ' '). replace(/\s+/g, @DESCEND). replace(@engine.Operation.CleanupSelectorRegExp, '') return selector CanonicalizeSelect...
CoffeeScript
CoffeeScript
gss/engine
src/concepts/Continuation.coffee
MIT
6bb82858753ae588e930911ac6dc5db1ced37cb0
2,854
https://github.com/gss/engine/blob/6bb82858753ae588e930911ac6dc5db1ced37cb0/src/concepts/Continuation.coffee
58
107