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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mauricemach/zappa:benchmarks/zappa.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
require('../src/zappa').run ->
app.register '.jade', zappa.adapter 'jade'
get '/': ->
@foo = 'Zappa + Jade'
render 'index.jade'
get '/coffeekup': ->
@foo = 'Zappa + CoffeeKup'
render 'index.coffee'
``` | require('../src/zappa').run(function() {
app.register('.jade', zappa.adapter('jade'));
get({
'/': function() {
this.foo = 'Zappa + Jade';
return render('index.jade');
}
});
return get({
'/coffeekup': function() {
this.foo = 'Zappa + CoffeeKup';
return render('index.coffee');
... | CoffeeScript | JavaScript | mauricemach/zappa | benchmarks/zappa.coffee | MIT | 3b4aaa49e1a78d40333fcd4d5b00889905cc867f | 943 | https://github.com/mauricemach/zappa/blob/3b4aaa49e1a78d40333fcd4d5b00889905cc867f/benchmarks/zappa.coffee | 1 | 10 |
mauricemach/zappa:benchmarks/zappa.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
require('../src/zappa').run(function() {
app.register('.jade', zappa.adapter('jade'));
get({
'/': function() {
this.foo = 'Zappa + Jade';
return render('index.jade');
}
});
return get({
'/coffeekup': function() {
this.foo = 'Za... | require('../src/zappa').run ->
app.register '.jade', zappa.adapter 'jade'
get '/': ->
@foo = 'Zappa + Jade'
render 'index.jade'
get '/coffeekup': ->
@foo = 'Zappa + CoffeeKup'
render 'index.coffee' | JavaScript | CoffeeScript | mauricemach/zappa | benchmarks/zappa.coffee | MIT | 3b4aaa49e1a78d40333fcd4d5b00889905cc867f | 943 | https://github.com/mauricemach/zappa/blob/3b4aaa49e1a78d40333fcd4d5b00889905cc867f/benchmarks/zappa.coffee | 1 | 10 |
mauricemach/zappa:benchmarks/zappa.coffee:1:completion | completion | require('../src/zappa').run ->
app.register '.jade', zappa.adapter 'jade'
get '/': ->
@foo = 'Zappa + Jade' | render 'index.jade'
get '/coffeekup': ->
@foo = 'Zappa + CoffeeKup'
render 'index.coffee' | CoffeeScript | CoffeeScript | mauricemach/zappa | benchmarks/zappa.coffee | MIT | 3b4aaa49e1a78d40333fcd4d5b00889905cc867f | 943 | https://github.com/mauricemach/zappa/blob/3b4aaa49e1a78d40333fcd4d5b00889905cc867f/benchmarks/zappa.coffee | 1 | 10 |
andreyvit/json-diff:lib/index.coffee:2:raw_corpus | raw_corpus | objectDiff = (obj1, obj2, options = {}) ->
result = {}
score = 0
for own key, value1 of obj1 when !(key of obj2)
result["#{key}__deleted"] = value1
score -= 30
for own key, value2 of obj2 when !(key of obj1)
result["#{key}__added"] = value2
score -= 30
for own key, value1 of obj1 when key o... | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 8 | 36 | ||
andreyvit/json-diff:lib/index.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
objectDiff = (obj1, obj2, options = {}) ->
result = {}
score = 0
for own key, value1 of obj1 when !(key of obj2)
result["#{key}__deleted"] = value1
score -= 30
for own key, value2 of obj2 when !(key of obj1)
result["#{key}__added"] = value2
... | var objectDiff,
hasProp = {}.hasOwnProperty;
objectDiff = function(obj1, obj2, options = {}) {
var change, key, result, score, subscore, value1, value2;
result = {};
score = 0;
for (key in obj1) {
if (!hasProp.call(obj1, key)) continue;
value1 = obj1[key];
if (!(!(key in obj2))) {
continue;... | CoffeeScript | JavaScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 8 | 36 |
andreyvit/json-diff:lib/index.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var objectDiff,
hasProp = {}.hasOwnProperty;
objectDiff = function(obj1, obj2, options = {}) {
var change, key, result, score, subscore, value1, value2;
result = {};
score = 0;
for (key in obj1) {
if (!hasProp.call(obj1, key)) continue;
value1 = ... | objectDiff = (obj1, obj2, options = {}) ->
result = {}
score = 0
for own key, value1 of obj1 when !(key of obj2)
result["#{key}__deleted"] = value1
score -= 30
for own key, value2 of obj2 when !(key of obj1)
result["#{key}__added"] = value2
score -= 30
for own key, value1 of obj1 when key o... | JavaScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 8 | 36 |
andreyvit/json-diff:lib/index.coffee:2:completion | completion | objectDiff = (obj1, obj2, options = {}) ->
result = {}
score = 0
for own key, value1 of obj1 when !(key of obj2)
result["#{key}__deleted"] = value1
score -= 30
for own key, value2 of obj2 when !(key of obj1)
result["#{key}__added"] = value2
score -= 30
for own key, value1 of obj1 when key o... | value2 = obj2[key]
[subscore, change] = diffWithScore(value1, value2, options)
if change
result[key] = change
# console.log "key #{key} subscore=#{subscore}"
score += Math.min(20, Math.max(-10, subscore / 5)) # BATMAN!
if Object.keys(result).length is 0
[score, result] = [100 * Math.max(... | CoffeeScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 8 | 36 |
andreyvit/json-diff:lib/index.coffee:7:raw_corpus | raw_corpus | arrayDiff = (obj1, obj2, options = {}) ->
originals1 = { __next: 1 }
seq1 = scalarize(obj1, originals1)
originals2 = { __next: originals1.__next }
seq2 = scalarize(obj2, originals2, originals1)
opcodes = new SequenceMatcher(null, seq1, seq2).getOpcodes()
# console.log "arrayDiff:\nobj1 = #{JSON.stringify(... | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 88 | 137 | ||
andreyvit/json-diff:lib/index.coffee:7:completion | completion | arrayDiff = (obj1, obj2, options = {}) ->
originals1 = { __next: 1 }
seq1 = scalarize(obj1, originals1)
originals2 = { __next: originals1.__next }
seq2 = scalarize(obj2, originals2, originals1)
opcodes = new SequenceMatcher(null, seq1, seq2).getOpcodes()
# console.log "arrayDiff:\nobj1 = #{JSON.stringify(... | item1 = descalarize(item, originals1)
item2 = descalarize(item, originals2)
change = diff(item1, item2, options)
if change
result.push ['~', change]
allEqual = no
else
result.push [' ']
else
result.push [' ',... | CoffeeScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 88 | 137 |
andreyvit/json-diff:lib/index.coffee:8:raw_corpus | raw_corpus | result.push ['+', descalarize(seq2[j], originals2)]
score -= 5
else
for i in [i1 ... i2]
change = diff(descalarize(seq1[i], originals1), descalarize(seq2[i - i1 + j1], originals2), options)
if change
result.push ['~', change]
allEqual = n... | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 138 | 155 | ||
andreyvit/json-diff:lib/index.coffee:8:completion | completion | result.push ['+', descalarize(seq2[j], originals2)]
score -= 5
else
for i in [i1 ... i2]
change = diff(descalarize(seq1[i], originals1), descalarize(seq2[i - i1 + j1], originals2), options)
if change
result.push ['~', change]
allEqual = n... | result.push [' ']
if allEqual or (opcodes.length is 0)
result = undefined
score = 100
else
score = Math.max(0, score)
return [score, result] | CoffeeScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 138 | 155 |
andreyvit/json-diff:lib/index.coffee:9:raw_corpus | raw_corpus | diffWithScore = (obj1, obj2, options = {}) ->
type1 = extendedTypeOf obj1
type2 = extendedTypeOf obj2
if type1 == type2
switch type1
when 'object'
return objectDiff(obj1, obj2, options)
when 'array'
return arrayDiff(obj1, obj2, options)
if !options.keysOnly
if obj1 != obj2
... | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 158 | 175 | ||
andreyvit/json-diff:lib/index.coffee:9:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
diffWithScore = (obj1, obj2, options = {}) ->
type1 = extendedTypeOf obj1
type2 = extendedTypeOf obj2
if type1 == type2
switch type1
when 'object'
return objectDiff(obj1, obj2, options)
when 'array'
return arrayDiff(obj1, ob... | var diffWithScore;
diffWithScore = function(obj1, obj2, options = {}) {
var type1, type2;
type1 = extendedTypeOf(obj1);
type2 = extendedTypeOf(obj2);
if (type1 === type2) {
switch (type1) {
case 'object':
return objectDiff(obj1, obj2, options);
case 'array':
return arrayDiff(obj... | CoffeeScript | JavaScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 158 | 175 |
andreyvit/json-diff:lib/index.coffee:9:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var diffWithScore;
diffWithScore = function(obj1, obj2, options = {}) {
var type1, type2;
type1 = extendedTypeOf(obj1);
type2 = extendedTypeOf(obj2);
if (type1 === type2) {
switch (type1) {
case 'object':
return objectDiff(obj1, obj2, opt... | diffWithScore = (obj1, obj2, options = {}) ->
type1 = extendedTypeOf obj1
type2 = extendedTypeOf obj2
if type1 == type2
switch type1
when 'object'
return objectDiff(obj1, obj2, options)
when 'array'
return arrayDiff(obj1, obj2, options)
if !options.keysOnly
if obj1 != obj2
... | JavaScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 158 | 175 |
andreyvit/json-diff:lib/index.coffee:9:completion | completion | diffWithScore = (obj1, obj2, options = {}) ->
type1 = extendedTypeOf obj1
type2 = extendedTypeOf obj2
if type1 == type2
switch type1
when 'object'
return objectDiff(obj1, obj2, options)
when 'array' | return arrayDiff(obj1, obj2, options)
if !options.keysOnly
if obj1 != obj2
[0, { __old: obj1, __new: obj2 }]
else
[100, undefined]
else
[100, undefined] | CoffeeScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c1928234ea7d95219e1889ad6532ed0e574c74dd | 1,205 | https://github.com/andreyvit/json-diff/blob/c1928234ea7d95219e1889ad6532ed0e574c74dd/lib/index.coffee | 158 | 175 |
andreyvit/json-diff:lib/index.coffee:4:raw_corpus | raw_corpus | scalarize = (array, originals, fuzzyOriginals) ->
for item, index in array
if isScalar item
item
else if fuzzyOriginals && (bestMatch = findMatchingObject(item, index, fuzzyOriginals)) && bestMatch.score > 40 && !originals[bestMatch.key]?
originals[bestMatch.key] = item
bestMatch.key
els... | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c0b35930922eb0f78b7a6170b9124f0bf69a9b5f | 1,205 | https://github.com/andreyvit/json-diff/blob/c0b35930922eb0f78b7a6170b9124f0bf69a9b5f/lib/index.coffee | 56 | 66 | ||
andreyvit/json-diff:lib/index.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
scalarize = (array, originals, fuzzyOriginals) ->
for item, index in array
if isScalar item
item
else if fuzzyOriginals && (bestMatch = findMatchingObject(item, index, fuzzyOriginals)) && bestMatch.score > 40 && !originals[bestMatch.key]?
or... | var scalarize;
scalarize = function(array, originals, fuzzyOriginals) {
var bestMatch, i, index, item, len, proxy, results;
results = [];
for (index = i = 0, len = array.length; i < len; index = ++i) {
item = array[index];
if (isScalar(item)) {
results.push(item);
} else if (fuzzyOriginals && (... | CoffeeScript | JavaScript | andreyvit/json-diff | lib/index.coffee | MIT | c0b35930922eb0f78b7a6170b9124f0bf69a9b5f | 1,205 | https://github.com/andreyvit/json-diff/blob/c0b35930922eb0f78b7a6170b9124f0bf69a9b5f/lib/index.coffee | 56 | 66 |
andreyvit/json-diff:lib/index.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var scalarize;
scalarize = function(array, originals, fuzzyOriginals) {
var bestMatch, i, index, item, len, proxy, results;
results = [];
for (index = i = 0, len = array.length; i < len; index = ++i) {
item = array[index];
if (isScalar(item)) {
... | scalarize = (array, originals, fuzzyOriginals) ->
for item, index in array
if isScalar item
item
else if fuzzyOriginals && (bestMatch = findMatchingObject(item, index, fuzzyOriginals)) && bestMatch.score > 40 && !originals[bestMatch.key]?
originals[bestMatch.key] = item
bestMatch.key
els... | JavaScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c0b35930922eb0f78b7a6170b9124f0bf69a9b5f | 1,205 | https://github.com/andreyvit/json-diff/blob/c0b35930922eb0f78b7a6170b9124f0bf69a9b5f/lib/index.coffee | 56 | 66 |
andreyvit/json-diff:lib/index.coffee:4:completion | completion | scalarize = (array, originals, fuzzyOriginals) ->
for item, index in array
if isScalar item
item
else if fuzzyOriginals && (bestMatch = findMatchingObject(item, index, fuzzyOriginals)) && bestMatch.score > 40 && !originals[bestMatch.key]? | originals[bestMatch.key] = item
bestMatch.key
else
proxy = "__$!SCALAR" + originals.__next++
originals[proxy] = item
proxy | CoffeeScript | CoffeeScript | andreyvit/json-diff | lib/index.coffee | MIT | c0b35930922eb0f78b7a6170b9124f0bf69a9b5f | 1,205 | https://github.com/andreyvit/json-diff/blob/c0b35930922eb0f78b7a6170b9124f0bf69a9b5f/lib/index.coffee | 56 | 66 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.min.js'
'test/lib/angul... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | c9351ddb9464fe548cee4dabae4596df2a7af5a1 | 600 | https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.min.js', 'test/lib/angularjs/angular-mocks.js', 'tes... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | c9351ddb9464fe548cee4dabae4596df2a7af5a1 | 600 | https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.min.js'
'test/lib/angul... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | c9351ddb9464fe548cee4dabae4596df2a7af5a1 | 600 | https://github.com/kelp404/angular-form-builder/blob/c9351ddb9464fe548cee4dabae4596df2a7af5a1/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.12.min.js'
'test/li... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 13ce5d1a821f1632e600aefad8b2a37587726a57 | 600 | https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.12.min.js', 'test/lib/angularjs/angular-mocks.1.... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 13ce5d1a821f1632e600aefad8b2a37587726a57 | 600 | https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.12.min.js'
'test/li... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 13ce5d1a821f1632e600aefad8b2a37587726a57 | 600 | https://github.com/kelp404/angular-form-builder/blob/13ce5d1a821f1632e600aefad8b2a37587726a57/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.11.min.js'
'test/li... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 6076ed551d4903244a8a3910a3d957c2291a227f | 600 | https://github.com/kelp404/angular-form-builder/blob/6076ed551d4903244a8a3910a3d957c2291a227f/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.11.min.js', 'test/lib/angularjs/angular-mocks.1.... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 6076ed551d4903244a8a3910a3d957c2291a227f | 600 | https://github.com/kelp404/angular-form-builder/blob/6076ed551d4903244a8a3910a3d957c2291a227f/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.11.min.js'
'test/li... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 6076ed551d4903244a8a3910a3d957c2291a227f | 600 | https://github.com/kelp404/angular-form-builder/blob/6076ed551d4903244a8a3910a3d957c2291a227f/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.9.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 2420d0bf4f0593b45949c56d608d98eef242a28c | 600 | https://github.com/kelp404/angular-form-builder/blob/2420d0bf4f0593b45949c56d608d98eef242a28c/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.9.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 2420d0bf4f0593b45949c56d608d98eef242a28c | 600 | https://github.com/kelp404/angular-form-builder/blob/2420d0bf4f0593b45949c56d608d98eef242a28c/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.9.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 2420d0bf4f0593b45949c56d608d98eef242a28c | 600 | https://github.com/kelp404/angular-form-builder/blob/2420d0bf4f0593b45949c56d608d98eef242a28c/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.7.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391 | 600 | https://github.com/kelp404/angular-form-builder/blob/ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.7.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391 | 600 | https://github.com/kelp404/angular-form-builder/blob/ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.7.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391 | 600 | https://github.com/kelp404/angular-form-builder/blob/ae5b27b25c7172fefc5f3c0b30ca2bce3fdc1391/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.6.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | eba9a50b6db97462bbb0e173a012c5f8962cd016 | 600 | https://github.com/kelp404/angular-form-builder/blob/eba9a50b6db97462bbb0e173a012c5f8962cd016/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.6.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | eba9a50b6db97462bbb0e173a012c5f8962cd016 | 600 | https://github.com/kelp404/angular-form-builder/blob/eba9a50b6db97462bbb0e173a012c5f8962cd016/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.6.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | eba9a50b6db97462bbb0e173a012c5f8962cd016 | 600 | https://github.com/kelp404/angular-form-builder/blob/eba9a50b6db97462bbb0e173a012c5f8962cd016/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.5.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 507fc679e062dc50bf7bc18f79823f9ba5bb6d8e | 600 | https://github.com/kelp404/angular-form-builder/blob/507fc679e062dc50bf7bc18f79823f9ba5bb6d8e/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.5.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 507fc679e062dc50bf7bc18f79823f9ba5bb6d8e | 600 | https://github.com/kelp404/angular-form-builder/blob/507fc679e062dc50bf7bc18f79823f9ba5bb6d8e/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.5.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 507fc679e062dc50bf7bc18f79823f9ba5bb6d8e | 600 | https://github.com/kelp404/angular-form-builder/blob/507fc679e062dc50bf7bc18f79823f9ba5bb6d8e/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.4.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | bdcf44a230bfd29a835f3014c32867a846fed261 | 600 | https://github.com/kelp404/angular-form-builder/blob/bdcf44a230bfd29a835f3014c32867a846fed261/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.4.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | bdcf44a230bfd29a835f3014c32867a846fed261 | 600 | https://github.com/kelp404/angular-form-builder/blob/bdcf44a230bfd29a835f3014c32867a846fed261/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.4.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | bdcf44a230bfd29a835f3014c32867a846fed261 | 600 | https://github.com/kelp404/angular-form-builder/blob/bdcf44a230bfd29a835f3014c32867a846fed261/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.3.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 1d5b0faba194563a27fae4ef93f8831d5903523b | 600 | https://github.com/kelp404/angular-form-builder/blob/1d5b0faba194563a27fae4ef93f8831d5903523b/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.3.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 1d5b0faba194563a27fae4ef93f8831d5903523b | 600 | https://github.com/kelp404/angular-form-builder/blob/1d5b0faba194563a27fae4ef93f8831d5903523b/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.3.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 1d5b0faba194563a27fae4ef93f8831d5903523b | 600 | https://github.com/kelp404/angular-form-builder/blob/1d5b0faba194563a27fae4ef93f8831d5903523b/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:raw_corpus | raw_corpus | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.2.min.js'
'test/lib... | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 16a475621c975cf4af9f1b205a841de96d4c9878 | 600 | https://github.com/kelp404/angular-form-builder/blob/16a475621c975cf4af9f1b205a841de96d4c9878/test/karma-ng1.2-jq1.config.coffee | 1 | 50 | ||
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/... | module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angular.1.2.2.min.js', 'test/lib/angularjs/angular-mocks.1.2... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 16a475621c975cf4af9f1b205a841de96d4c9878 | 600 | https://github.com/kelp404/angular-form-builder/blob/16a475621c975cf4af9f1b205a841de96d4c9878/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
kelp404/angular-form-builder:test/karma-ng1.2-jq1.config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(config) {
return config.set({
// base path, that will be used to resolve files and exclude
basePath: '../',
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: ['test/lib/angularjs/angul... | module.exports = (config) ->
config.set
# base path, that will be used to resolve files and exclude
basePath: '../'
frameworks: ['jasmine']
# list of files / patterns to load in the browser
files: [
'test/lib/angularjs/angular.1.2.2.min.js'
'test/lib... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/karma-ng1.2-jq1.config.coffee | MIT | 16a475621c975cf4af9f1b205a841de96d4c9878 | 600 | https://github.com/kelp404/angular-form-builder/blob/16a475621c975cf4af9f1b205a841de96d4c9878/test/karma-ng1.2-jq1.config.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:1:raw_corpus | raw_corpus | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
messageActions = require '../actions/message'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
orders = require '../util/orders'
div = React.createFactory 'd... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
messageActions = require '../actions/message'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
orders... | var Immutable, PureRenderMixin, React, T, div, messageActions, mixinFileQueue, mixinSubscribe, orders;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
messageActions = require('../actions/message');
mixinFileQueue = require('../mixin/file-que... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Immutable, PureRenderMixin, React, T, div, messageActions, mixinFileQueue, mixinSubscribe, orders;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
messageActions = require('../actions/... | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
messageActions = require '../actions/message'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
orders = require '../util/orders'
div = React.createFactory 'd... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:1:completion | completion | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
messageActions = require '../actions/message'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
orders = require '../util/orders'
div = React.createFactory 'd... | _teamId: T.string.isRequired
_roomId: T.string
_toId: T.string
_storyId: T.string
requestBefore: (success) ->
messageIds = @state.queue.map (x) -> x.getIn(['message', '_id'])
data =
_teamId: @props._teamId
_maxId: messageIds.min()
# reqwest has some problem handling undefind prope... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:2:raw_corpus | raw_corpus | data =
_teamId: @props._teamId
_minId: messageIds.max()
# reqwest has some problem handling undefind propeties
if @props._roomId?
data._roomId = @props._roomId
if @props._toId?
data._toId = @props._toId
if @props._storyId?
data._storyId = @props._storyId
messageActions.... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 51 | 68 | ||
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
data =
_teamId: @props._teamId
_minId: messageIds.max()
# reqwest has some problem handling undefind propeties
if @props._roomId?
data._roomId = @props._roomId
if @props._toId?
data._toId = @props._toId
if @props._storyId?
... | var data;
data = {
_teamId: this.props._teamId,
_minId: messageIds.max()
};
// reqwest has some problem handling undefind propeties
if (this.props._roomId != null) {
data._roomId = this.props._roomId;
}
if (this.props._toId != null) {
data._toId = this.props._toId;
}
if (this.props._storyId != null) {
dat... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 51 | 68 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var data;
data = {
_teamId: this.props._teamId,
_minId: messageIds.max()
};
// reqwest has some problem handling undefind propeties
if (this.props._roomId != null) {
data._roomId = this.props._roomId;
}
if (this.props._toId != null) {
data._toId = this.p... | data =
_teamId: @props._teamId
_minId: messageIds.max()
# reqwest has some problem handling undefind propeties
if @props._roomId?
data._roomId = @props._roomId
if @props._toId?
data._toId = @props._toId
if @props._storyId?
data._storyId = @props._storyId
messageActions.... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 51 | 68 |
jianliaoim/talk-os:talk-web/client/app/file-queue-channel.coffee:2:completion | completion | data =
_teamId: @props._teamId
_minId: messageIds.max()
# reqwest has some problem handling undefind propeties
if @props._roomId?
data._roomId = @props._roomId
if @props._toId?
data._toId = @props._toId
if @props._storyId? | data._storyId = @props._storyId
messageActions.requestMore data, (resp) ->
messages = Immutable.fromJS(resp)
.concat()
.sort(orders.imMsgByCreatedAtWithId)
success messages
render: ->
@renderQueue() | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-channel.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-channel.coffee | 51 | 68 |
lmaccherone/node-localstorage:test/sync-test.coffee:1:raw_corpus | raw_corpus | {LocalStorage} = require('../')
tape = require('tape')
tape('use key with asterix', (test) =>
storage1 = new LocalStorage('./scratch12')
storage2 = new LocalStorage('./scratch12')
test.doesNotThrow(() => storage1.setItem("***test***", 'foo'))
test.doesNotThrow(() => storage2._sync());
test.equal(storage2.ge... | CoffeeScript | lmaccherone/node-localstorage | test/sync-test.coffee | MIT | 23eff752dc603ad9559c50739589d3ec673c07f7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/23eff752dc603ad9559c50739589d3ec673c07f7/test/sync-test.coffee | 1 | 14 | ||
lmaccherone/node-localstorage:test/sync-test.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{LocalStorage} = require('../')
tape = require('tape')
tape('use key with asterix', (test) =>
storage1 = new LocalStorage('./scratch12')
storage2 = new LocalStorage('./scratch12')
test.doesNotThrow(() => storage1.setItem("***test***", 'foo'))
test.doesN... | var LocalStorage, tape;
({LocalStorage} = require('../'));
tape = require('tape');
tape('use key with asterix', (test) => {
var storage1, storage2;
storage1 = new LocalStorage('./scratch12');
storage2 = new LocalStorage('./scratch12');
test.doesNotThrow(() => {
return storage1.setItem("***test***", 'foo'... | CoffeeScript | JavaScript | lmaccherone/node-localstorage | test/sync-test.coffee | MIT | 23eff752dc603ad9559c50739589d3ec673c07f7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/23eff752dc603ad9559c50739589d3ec673c07f7/test/sync-test.coffee | 1 | 14 |
lmaccherone/node-localstorage:test/sync-test.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var LocalStorage, tape;
({LocalStorage} = require('../'));
tape = require('tape');
tape('use key with asterix', (test) => {
var storage1, storage2;
storage1 = new LocalStorage('./scratch12');
storage2 = new LocalStorage('./scratch12');
test.doesNotThrow(... | {LocalStorage} = require('../')
tape = require('tape')
tape('use key with asterix', (test) =>
storage1 = new LocalStorage('./scratch12')
storage2 = new LocalStorage('./scratch12')
test.doesNotThrow(() => storage1.setItem("***test***", 'foo'))
test.doesNotThrow(() => storage2._sync());
test.equal(storage2.ge... | JavaScript | CoffeeScript | lmaccherone/node-localstorage | test/sync-test.coffee | MIT | 23eff752dc603ad9559c50739589d3ec673c07f7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/23eff752dc603ad9559c50739589d3ec673c07f7/test/sync-test.coffee | 1 | 14 |
lmaccherone/node-localstorage:test/sync-test.coffee:1:completion | completion | {LocalStorage} = require('../')
tape = require('tape')
tape('use key with asterix', (test) =>
storage1 = new LocalStorage('./scratch12')
storage2 = new LocalStorage('./scratch12') | test.doesNotThrow(() => storage1.setItem("***test***", 'foo'))
test.doesNotThrow(() => storage2._sync());
test.equal(storage2.getItem('***test***'), 'foo')
storage1._deleteLocation()
test.end()
) | CoffeeScript | CoffeeScript | lmaccherone/node-localstorage | test/sync-test.coffee | MIT | 23eff752dc603ad9559c50739589d3ec673c07f7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/23eff752dc603ad9559c50739589d3ec673c07f7/test/sync-test.coffee | 1 | 14 |
gterrono/houston:client/admin_navbar.coffee:1:raw_corpus | raw_corpus | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 52a830f4a5e167270112ca48cee8fc5f67d8d718 | 802 | https://github.com/gterrono/houston/blob/52a830f4a5e167270112ca48cee8fc5f67d8d718/client/admin_navbar.coffee | 1 | 18 | ||
gterrono/houston:client/admin_navbar.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the vers... | Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sure we can help you quickly, please include the version o... | CoffeeScript | JavaScript | gterrono/houston | client/admin_navbar.coffee | MIT | 52a830f4a5e167270112ca48cee8fc5f67d8d718 | 802 | https://github.com/gterrono/houston/blob/52a830f4a5e167270112ca48cee8fc5f67d8d718/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sur... | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | JavaScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 52a830f4a5e167270112ca48cee8fc5f67d8d718 | 802 | https://github.com/gterrono/houston/blob/52a830f4a5e167270112ca48cee8fc5f67d8d718/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:completion | completion | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston | you are using, steps to replicate the issue, a description of what you were
expecting and a screenshot if relevant.
Thanks!
"""
"https://github.com/gterrono/houston/issues/new?body=#{message}"
'menu_items': ->
return Houston.menu._get_menu_items()
'isActive' : -> 'active' if Router.current()?.path == @path | CoffeeScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 52a830f4a5e167270112ca48cee8fc5f67d8d718 | 802 | https://github.com/gterrono/houston/blob/52a830f4a5e167270112ca48cee8fc5f67d8d718/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:raw_corpus | raw_corpus | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25 | 802 | https://github.com/gterrono/houston/blob/dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25/client/admin_navbar.coffee | 1 | 18 | ||
gterrono/houston:client/admin_navbar.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the vers... | Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sure we can help you quickly, please include the version o... | CoffeeScript | JavaScript | gterrono/houston | client/admin_navbar.coffee | MIT | dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25 | 802 | https://github.com/gterrono/houston/blob/dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sur... | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | JavaScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25 | 802 | https://github.com/gterrono/houston/blob/dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:completion | completion | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston | you are using, steps to replicate the issue, a description of what you were
expecting and a screenshot if relevant.
Thanks!
"""
"https://github.com/gterrono/houston/issues/new?body=#{message}"
'menu_items': ->
return Houston.menu._get_menu_items()
'isActive' : -> 'active' if Router.current()?.path == this.... | CoffeeScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25 | 802 | https://github.com/gterrono/houston/blob/dc9f1e32235e505b7bf3a0d9f77b3ca05c460a25/client/admin_navbar.coffee | 1 | 18 |
gterrono/houston:client/admin_navbar.coffee:1:raw_corpus | raw_corpus | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 8f6165b7b5463860d4b711d359e84cb7db365d37 | 802 | https://github.com/gterrono/houston/blob/8f6165b7b5463860d4b711d359e84cb7db365d37/client/admin_navbar.coffee | 1 | 15 | ||
gterrono/houston:client/admin_navbar.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the vers... | Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sure we can help you quickly, please include the version o... | CoffeeScript | JavaScript | gterrono/houston | client/admin_navbar.coffee | MIT | 8f6165b7b5463860d4b711d359e84cb7db365d37 | 802 | https://github.com/gterrono/houston/blob/8f6165b7b5463860d4b711d359e84cb7db365d37/client/admin_navbar.coffee | 1 | 15 |
gterrono/houston:client/admin_navbar.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
Template._houston_navbar.helpers({
'bugreport_url': function() {
var message;
message = encodeURIComponent(`To make sur... | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': ->
message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issu... | JavaScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 8f6165b7b5463860d4b711d359e84cb7db365d37 | 802 | https://github.com/gterrono/houston/blob/8f6165b7b5463860d4b711d359e84cb7db365d37/client/admin_navbar.coffee | 1 | 15 |
gterrono/houston:client/admin_navbar.coffee:1:completion | completion | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
Template._houston_navbar.helpers
'bugreport_url': -> | message = encodeURIComponent """
To make sure we can help you quickly, please include the version of Houston
you are using, steps to replicate the issue, a description of what you were
expecting and a screenshot if relevant.
Thanks!
"""
"https://github.com/gterrono/houston/issues/new?body=#{message}" | CoffeeScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 8f6165b7b5463860d4b711d359e84cb7db365d37 | 802 | https://github.com/gterrono/houston/blob/8f6165b7b5463860d4b711d359e84cb7db365d37/client/admin_navbar.coffee | 1 | 15 |
gterrono/houston:client/admin_navbar.coffee:1:raw_corpus | raw_corpus | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout() | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 93e06a251afa99843d47e26f6bfde1ba3c93c47e | 802 | https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/client/admin_navbar.coffee | 1 | 4 | ||
gterrono/houston:client/admin_navbar.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout()
``` | Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
}); | CoffeeScript | JavaScript | gterrono/houston | client/admin_navbar.coffee | MIT | 93e06a251afa99843d47e26f6bfde1ba3c93c47e | 802 | https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/client/admin_navbar.coffee | 1 | 4 |
gterrono/houston:client/admin_navbar.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_navbar.events({
'click .houston-logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
``` | Template._houston_navbar.events
'click .houston-logout': (e) ->
e.preventDefault()
Meteor.logout() | JavaScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 93e06a251afa99843d47e26f6bfde1ba3c93c47e | 802 | https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/client/admin_navbar.coffee | 1 | 4 |
gterrono/houston:client/admin_navbar.coffee:1:completion | completion | Template._houston_navbar.events
'click .houston-logout': (e) -> | e.preventDefault()
Meteor.logout() | CoffeeScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 93e06a251afa99843d47e26f6bfde1ba3c93c47e | 802 | https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/client/admin_navbar.coffee | 1 | 4 |
gterrono/houston:client/admin_navbar.coffee:1:raw_corpus | raw_corpus | Template.admin_navbar.events
'click .logout': (e) ->
e.preventDefault()
Meteor.logout() | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d | 802 | https://github.com/gterrono/houston/blob/6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d/client/admin_navbar.coffee | 1 | 4 | ||
gterrono/houston:client/admin_navbar.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template.admin_navbar.events
'click .logout': (e) ->
e.preventDefault()
Meteor.logout()
``` | Template.admin_navbar.events({
'click .logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
}); | CoffeeScript | JavaScript | gterrono/houston | client/admin_navbar.coffee | MIT | 6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d | 802 | https://github.com/gterrono/houston/blob/6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d/client/admin_navbar.coffee | 1 | 4 |
gterrono/houston:client/admin_navbar.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template.admin_navbar.events({
'click .logout': function(e) {
e.preventDefault();
return Meteor.logout();
}
});
``` | Template.admin_navbar.events
'click .logout': (e) ->
e.preventDefault()
Meteor.logout() | JavaScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d | 802 | https://github.com/gterrono/houston/blob/6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d/client/admin_navbar.coffee | 1 | 4 |
gterrono/houston:client/admin_navbar.coffee:1:completion | completion | Template.admin_navbar.events
'click .logout': (e) -> | e.preventDefault()
Meteor.logout() | CoffeeScript | CoffeeScript | gterrono/houston | client/admin_navbar.coffee | MIT | 6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d | 802 | https://github.com/gterrono/houston/blob/6eb0711fcf0a38e4b318fc1b50e0b2bfc638d53d/client/admin_navbar.coffee | 1 | 4 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
describe 'when a device does not exist', ->
... | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5 | 815 | https://github.com/octoblu/meshblu/blob/7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5/test/lib/getDeviceWithToken-spec.coffee | 1 | 39 | ||
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done ... | var TestDatabase, _;
_ = require('lodash');
TestDatabase = require('../test-database');
describe('getDeviceWithToken', function() {
beforeEach(function(done) {
this.sut = require('../../lib/getDeviceWithToken');
return TestDatabase.open((error, database) => {
this.database = database;
return do... | CoffeeScript | JavaScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5 | 815 | https://github.com/octoblu/meshblu/blob/7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5/test/lib/getDeviceWithToken-spec.coffee | 1 | 39 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var TestDatabase, _;
_ = require('lodash');
TestDatabase = require('../test-database');
describe('getDeviceWithToken', function() {
beforeEach(function(done) {
this.sut = require('../../lib/getDeviceWithToken');
return TestDatabase.open((error, databas... | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
describe 'when a device does not exist', ->
... | JavaScript | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5 | 815 | https://github.com/octoblu/meshblu/blob/7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5/test/lib/getDeviceWithToken-spec.coffee | 1 | 39 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:completion | completion | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
describe 'when a device does not exist', ->
... | expect(@error).to.exist
describe 'when a device exists', ->
beforeEach (done) ->
@devices = @database.devices
@devices.insert uuid: 'valid-uuid', token: 'some-token', done
describe 'when passed a valid uuid', ->
beforeEach (done) ->
storeDevice = (@error, @device) => done()
... | CoffeeScript | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5 | 815 | https://github.com/octoblu/meshblu/blob/7b2b76a0707d26f2ffd7db6dcfbb6c4cfdf690f5/test/lib/getDeviceWithToken-spec.coffee | 1 | 39 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close?()
describe ... | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 6c6af069bb29f9ffd0684eb6e519011774bf6579 | 815 | https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/test/lib/getDeviceWithToken-spec.coffee | 1 | 42 | ||
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done ... | var TestDatabase, _;
_ = require('lodash');
TestDatabase = require('../test-database');
describe('getDeviceWithToken', function() {
beforeEach(function(done) {
this.sut = require('../../lib/getDeviceWithToken');
return TestDatabase.open((error, database) => {
this.database = database;
return do... | CoffeeScript | JavaScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 6c6af069bb29f9ffd0684eb6e519011774bf6579 | 815 | https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/test/lib/getDeviceWithToken-spec.coffee | 1 | 42 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var TestDatabase, _;
_ = require('lodash');
TestDatabase = require('../test-database');
describe('getDeviceWithToken', function() {
beforeEach(function(done) {
this.sut = require('../../lib/getDeviceWithToken');
return TestDatabase.open((error, databas... | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close?()
describe ... | JavaScript | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 6c6af069bb29f9ffd0684eb6e519011774bf6579 | 815 | https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/test/lib/getDeviceWithToken-spec.coffee | 1 | 42 |
octoblu/meshblu:test/lib/getDeviceWithToken-spec.coffee:1:completion | completion | _ = require 'lodash'
TestDatabase = require '../test-database'
describe 'getDeviceWithToken', ->
beforeEach (done) ->
@sut = require '../../lib/getDeviceWithToken'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close?()
describe ... | it 'should have an error', ->
expect(@error).to.exist
describe 'when a device exists', ->
beforeEach (done) ->
@devices = @database.devices
@devices.insert uuid: 'valid-uuid', token: 'some-token', done
describe 'when passed a valid uuid', ->
beforeEach (done) ->
storeDevice =... | CoffeeScript | CoffeeScript | octoblu/meshblu | test/lib/getDeviceWithToken-spec.coffee | MIT | 6c6af069bb29f9ffd0684eb6e519011774bf6579 | 815 | https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/test/lib/getDeviceWithToken-spec.coffee | 1 | 42 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:1:raw_corpus | raw_corpus | describe 'builder.directive', ->
beforeEach module('builder')
describe 'fb-components', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
... | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 1 | 41 | ||
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe 'builder.directive', ->
beforeEach module('builder')
describe 'fb-components', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $... | describe('builder.directive', function() {
beforeEach(module('builder'));
return describe('fb-components', function() {
var $builder, $compile, $scope, template;
$scope = null;
$compile = null;
$builder = null;
template = `<div fb-components></div>`;
beforeEach(inject(function($rootScope, $i... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 1 | 41 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe('builder.directive', function() {
beforeEach(module('builder'));
return describe('fb-components', function() {
var $builder, $compile, $scope, template;
$scope = null;
$compile = null;
$builder = null;
template = `<div fb-components... | describe 'builder.directive', ->
beforeEach module('builder')
describe 'fb-components', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 1 | 41 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:1:completion | completion | describe 'builder.directive', ->
beforeEach module('builder')
describe 'fb-components', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
... | required: no
template:
"""
<div class="form-group">
<label for="{{name+index}}" class="col-md-4 control-label" ng-class="{'fb-required':required}">{{label}}</label>
<div class="col-md-8">
... | CoffeeScript | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 1 | 41 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:2:raw_corpus | raw_corpus | describe 'fb-component', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
$compile = $injector.get '$compile'
$builder = $inject... | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 43 | 80 | ||
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe 'fb-component', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
$compile ... | describe('fb-component', function() {
var $builder, $compile, $scope, template;
$scope = null;
$compile = null;
$builder = null;
template = `<div fb-components></div>`;
beforeEach(inject(function($rootScope, $injector) {
$scope = $rootScope.$new();
$compile = $injector.get('$compile');
$builder ... | CoffeeScript | JavaScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 43 | 80 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe('fb-component', function() {
var $builder, $compile, $scope, template;
$scope = null;
$compile = null;
$builder = null;
template = `<div fb-components></div>`;
beforeEach(inject(function($rootScope, $injector) {
$scope = $rootScope.$new();
... | describe 'fb-component', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
$compile = $injector.get '$compile'
$builder = $inject... | JavaScript | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 43 | 80 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:2:completion | completion | describe 'fb-component', ->
$scope = null
$compile = null
$builder = null
template = """<div fb-components></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
$compile = $injector.get '$compile'
$builder = $inject... | <div class="form-group">
<label for="{{name+index}}" class="col-md-4 control-label" ng-class="{'fb-required':required}">{{label}}</label>
<div class="col-md-8">
<input type="text" ng-model="inputText" validator-required="{{required}}" id="{{nam... | CoffeeScript | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 43 | 80 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:3:raw_corpus | raw_corpus | it 'compile fb-component and called `$drag.draggable()`', inject ($drag) ->
componentName = Object.keys($builder.components)[0]
spyOn($drag, 'draggable').and.callFake ($element, object) ->
expect($element.length).toBe 1
expect($element.hasClass('fb-component')).to... | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 83 | 132 | ||
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:3:completion | completion | it 'compile fb-component and called `$drag.draggable()`', inject ($drag) ->
componentName = Object.keys($builder.components)[0]
spyOn($drag, 'draggable').and.callFake ($element, object) ->
expect($element.length).toBe 1
expect($element.hasClass('fb-component')).to... | describe 'fb-form', ->
$scope = null
$compile = null
$builder = null
template = """<div ng-model="input" fb-form="default"></div>"""
beforeEach inject ($rootScope, $injector) ->
$scope = $rootScope.$new()
$compile = $injector.get '$compile'
$b... | CoffeeScript | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 83 | 132 |
kelp404/angular-form-builder:test/specs/directiveSpec.coffee:5:raw_corpus | raw_corpus | it 'compile fb-form', ->
$scope.input = []
view = $compile(template) $scope
$scope.$digest()
expect($scope.$$childHead).toBe $scope.$$childTail
expect($scope.$$childHead.form).toBe $builder.forms.default
$formObject = $(view).find '.fb-form-object'... | CoffeeScript | kelp404/angular-form-builder | test/specs/directiveSpec.coffee | MIT | 521099b060370087e587945e9c29eeb79023bfee | 600 | https://github.com/kelp404/angular-form-builder/blob/521099b060370087e587945e9c29eeb79023bfee/test/specs/directiveSpec.coffee | 139 | 148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.