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
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: build: opti...
'src/export.coffee' ] concat: build: options: banner: '<%= meta.banner %>' files: 'dist/rivets-cart.js': ['node_modules/rivets/dist/rivets.js', 'dist/cart.js'] uglify: build: options: banner: '<%= meta.banner %>' report: 'gz...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
ff74ba8074843ebc39683394f08c0b073634f248
493
https://github.com/discolabs/cartjs/blob/ff74ba8074843ebc39683394f08c0b073634f248/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: build: opti...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
568ef859be90f7b21eb5563ab6984246b17ce055
493
https://github.com/discolabs/cartjs/blob/568ef859be90f7b21eb5563ab6984246b17ce055/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: build: opti...
'src/export.coffee' ] concat: build: options: banner: '<%= meta.banner %>' files: 'dist/rivets-cart.js': ['node_modules/rivets/dist/rivets.js', 'dist/cart.js'] uglify: build: options: banner: '<%= meta.banner %>' report: 'gz...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
568ef859be90f7b21eb5563ab6984246b17ce055
493
https://github.com/discolabs/cartjs/blob/568ef859be90f7b21eb5563ab6984246b17ce055/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: build: opti...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
97cd40d9f78833553500833c4a0b63dadbba785b
493
https://github.com/discolabs/cartjs/blob/97cd40d9f78833553500833c4a0b63dadbba785b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: build: opti...
'src/export.coffee' ] concat: build: options: banner: '<%= meta.banner %>' files: 'dist/rivets-cart.js': ['node_modules/rivets/dist/rivets.js', 'dist/cart.js'] uglify: build: options: banner: '<%= meta.banner %>' report: 'gz...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
97cd40d9f78833553500833c4a0b63dadbba785b
493
https://github.com/discolabs/cartjs/blob/97cd40d9f78833553500833c4a0b63dadbba785b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
cb63ac3c058d355490745b6defef28656ed9bde5
493
https://github.com/discolabs/cartjs/blob/cb63ac3c058d355490745b6defef28656ed9bde5/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
'src/export.coffee' ] concat: all: options: banner: '<%= meta.banner %>' files: 'dist/rivets-cart.js': ['node_modules/rivets/dist/rivets.js', 'dist/cart.js'] uglify: all: options: banner: '<%= meta.banner %>' report: 'gzip' ...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
cb63ac3c058d355490745b6defef28656ed9bde5
493
https://github.com/discolabs/cartjs/blob/cb63ac3c058d355490745b6defef28656ed9bde5/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
4ef8dc2e1c89e2c360ba1cd1dbb673fd9ffa3dbd
493
https://github.com/discolabs/cartjs/blob/4ef8dc2e1c89e2c360ba1cd1dbb673fd9ffa3dbd/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
'src/export.coffee' ] concat: all: options: banner: '<%= meta.banner %>' files: 'dist/cart.js': 'dist/cart.js' uglify: all: options: banner: '<%= meta.banner %>' report: 'gzip' files: 'dist/cart.min.js': 'd...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
4ef8dc2e1c89e2c360ba1cd1dbb673fd9ffa3dbd
493
https://github.com/discolabs/cartjs/blob/4ef8dc2e1c89e2c360ba1cd1dbb673fd9ffa3dbd/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
0241b35820e1dcecd0154552b444d3c2fe8422d0
493
https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
] concat: all: options: banner: '<%= meta.banner %>' files: 'dist/cart.js': 'dist/cart.js' uglify: all: options: banner: '<%= meta.banner %>' report: 'gzip' files: 'dist/cart.min.js': 'dist/cart.js' copy: ...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
0241b35820e1dcecd0154552b444d3c2fe8422d0
493
https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.lice...
module.exports = function(grunt) { return grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' }, coffee: { all: { options: {...
CoffeeScript
JavaScript
discolabs/cartjs
Gruntfile.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(grunt) { return grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\...
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
JavaScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
all: options: banner: '<%= meta.banner %>' files: 'dist/cart.js': 'dist/cart.js' uglify: all: options: banner: '<%= meta.banner %>' report: 'gzip' files: 'dist/cart.min.js': 'dist/cart.js' copy: docs: src: 'd...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
405adbcf3257d4584ade700660fc6eef5c97692b
493
https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus
raw_corpus
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
3f373b645e1a2152bea8b61396415a0765ec32ce
493
https://github.com/discolabs/cartjs/blob/3f373b645e1a2152bea8b61396415a0765ec32ce/Gruntfile.coffee
1
50
discolabs/cartjs:Gruntfile.coffee:1:completion
completion
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') meta: banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n' coffee: all: option...
files: 'dist/cart.js': 'dist/cart.js' uglify: all: options: banner: '<%= meta.banner %>' report: 'gzip' files: 'dist/cart.min.js': 'dist/cart.js' copy: docs: src: 'dist/cart.min.js' dest: 'docs/assets/cart.min.js' less: ...
CoffeeScript
CoffeeScript
discolabs/cartjs
Gruntfile.coffee
MIT
3f373b645e1a2152bea8b61396415a0765ec32ce
493
https://github.com/discolabs/cartjs/blob/3f373b645e1a2152bea8b61396415a0765ec32ce/Gruntfile.coffee
1
50
outsideris/popularconvention:test/persistence.test.coffee:1:raw_corpus
raw_corpus
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/persistence.test.coffee
1
43
outsideris/popularconvention:test/persistence.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe('persistence >', function() { before(function(done) ...
CoffeeScript
JavaScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/persistence.test.coffee
1
43
outsideris/popularconvention:test/persistence.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe...
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
JavaScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/persistence.test.coffee
1
43
outsideris/popularconvention:test/persistence.test.coffee:1:completion
completion
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
done() it 'find period', (done) -> persistence.findPeriodOfScore (err, item) -> item.sort (a, b) -> if a.shortfile > b.shortfile then 1 else -1 console.log item[0] console.log item[item.length - 1] done() it 'find total commits count', (done) -> persistence.findTotalCommit...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/persistence.test.coffee
1
43
outsideris/popularconvention:test/persistence.test.coffee:1:raw_corpus
raw_corpus
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
f07b56087ab66b18ab5102969be95f75da5268ad
730
https://github.com/outsideris/popularconvention/blob/f07b56087ab66b18ab5102969be95f75da5268ad/test/persistence.test.coffee
1
31
outsideris/popularconvention:test/persistence.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe('persistence >', function() { before(function(done) ...
CoffeeScript
JavaScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
f07b56087ab66b18ab5102969be95f75da5268ad
730
https://github.com/outsideris/popularconvention/blob/f07b56087ab66b18ab5102969be95f75da5268ad/test/persistence.test.coffee
1
31
outsideris/popularconvention:test/persistence.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe...
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
JavaScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
f07b56087ab66b18ab5102969be95f75da5268ad
730
https://github.com/outsideris/popularconvention/blob/f07b56087ab66b18ab5102969be95f75da5268ad/test/persistence.test.coffee
1
31
outsideris/popularconvention:test/persistence.test.coffee:1:completion
completion
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
should.exist docs done() it 'find lastest score', (done) -> persistence.findLastestScore (err, item) -> console.log(item); done() it 'find period', (done) -> persistence.findPeriodOfScore (err, item) -> item.sort (a, b) -> if a.shortfile > b.shortfile then 1 else -1 ...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
f07b56087ab66b18ab5102969be95f75da5268ad
730
https://github.com/outsideris/popularconvention/blob/f07b56087ab66b18ab5102969be95f75da5268ad/test/persistence.test.coffee
1
31
outsideris/popularconvention:test/persistence.test.coffee:1:raw_corpus
raw_corpus
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
c6293139fe25458ab582f4a111381ce657ebc891
730
https://github.com/outsideris/popularconvention/blob/c6293139fe25458ab582f4a111381ce657ebc891/test/persistence.test.coffee
1
17
outsideris/popularconvention:test/persistence.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe('persistence >', function() { before(function(done) ...
CoffeeScript
JavaScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
c6293139fe25458ab582f4a111381ce657ebc891
730
https://github.com/outsideris/popularconvention/blob/c6293139fe25458ab582f4a111381ce657ebc891/test/persistence.test.coffee
1
17
outsideris/popularconvention:test/persistence.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var persistence, should; should = require('should'); persistence = require('../src/persistence'); describe...
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', -> before (done) -> persistence.open -> done() it 'do ...
JavaScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
c6293139fe25458ab582f4a111381ce657ebc891
730
https://github.com/outsideris/popularconvention/blob/c6293139fe25458ab582f4a111381ce657ebc891/test/persistence.test.coffee
1
17
outsideris/popularconvention:test/persistence.test.coffee:1:completion
completion
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' persistence = require '../src/persistence' describe 'persistence >', ->
before (done) -> persistence.open -> done() it 'do getTimeline', (done) -> persistence.getTimeline (err, docs) -> should.exist docs done()
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/persistence.test.coffee
MIT
c6293139fe25458ab582f4a111381ce657ebc891
730
https://github.com/outsideris/popularconvention/blob/c6293139fe25458ab582f4a111381ce657ebc891/test/persistence.test.coffee
1
17
kelp404/angular-form-builder:test/karma-ng1.3-jq2.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.3.0-beta.1.min.js' 't...
CoffeeScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
1
50
kelp404/angular-form-builder:test/karma-ng1.3-jq2.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.3.0-beta.1.min.js', 'test/lib/angularjs/angular-mo...
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
1
50
kelp404/angular-form-builder:test/karma-ng1.3-jq2.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.3.0-beta.1.min.js' 't...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
1
50
kelp404/angular-form-builder:test/karma-ng1.3-jq2.config.coffee:2:raw_corpus
raw_corpus
# - PhantomJS # - IE (only Windows) # CLI --browsers Chrome,Firefox,Safari browsers: ['PhantomJS'] # If browser does not capture in given timeout [ms], kill it # CLI --capture-timeout 5000 captureTimeout: 20000 # Auto run tests on start (when browsers are captur...
CoffeeScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
51
66
kelp404/angular-form-builder:test/karma-ng1.3-jq2.config.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # - PhantomJS # - IE (only Windows) # CLI --browsers Chrome,Firefox,Safari browsers: ['PhantomJS'] # If browser does not capture in given timeout [ms], kill it # CLI --capture-timeout 5000 captureTimeout: 20000 ...
// - PhantomJS // - IE (only Windows) // CLI --browsers Chrome,Firefox,Safari ({ browsers: ['PhantomJS'], // If browser does not capture in given timeout [ms], kill it // CLI --capture-timeout 5000 captureTimeout: 20000, // Auto run tests on start (when browsers are captured) and exit // CLI --single-run --...
CoffeeScript
JavaScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
51
66
kelp404/angular-form-builder:test/karma-ng1.3-jq2.config.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // - PhantomJS // - IE (only Windows) // CLI --browsers Chrome,Firefox,Safari ({ browsers: ['PhantomJS'], // If browser does not capture in given timeout [ms], kill it // CLI --capture-timeout 5000 captureTimeout: 20000, // Auto run tests on start (when b...
# - PhantomJS # - IE (only Windows) # CLI --browsers Chrome,Firefox,Safari browsers: ['PhantomJS'] # If browser does not capture in given timeout [ms], kill it # CLI --capture-timeout 5000 captureTimeout: 20000 # Auto run tests on start (when browsers are captur...
JavaScript
CoffeeScript
kelp404/angular-form-builder
test/karma-ng1.3-jq2.config.coffee
MIT
af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2
600
https://github.com/kelp404/angular-form-builder/blob/af8162ac0a2ddb3517ba40e7f1315027ebb3f8a2/test/karma-ng1.3-jq2.config.coffee
51
66
abe33/atom-pigments:lib/color-project-element.coffee:2:raw_corpus
raw_corpus
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group arr...
var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField, selectField; arrayField = (name, label, setting, description) => { var settingName; settingName = `pigments.${name}`; r...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField, selectField; arrayField = (name, label, setting, description) => { var settingNa...
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:completion
completion
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
@div class: 'control-group array', => @div class: 'controls', => @label class: 'control-label', => @span class: 'setting-title', label @div class: 'control-wrapper', => @select outlet: name, class: 'form-control', required: true, => options.forEach (opt...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:3:raw_corpus
raw_corpus
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label ...
this.div({ class: 'controls' }, () => { this.input({ type: 'checkbox', id: `pigments-${name}`, outlet: name }); this.label({ class: 'control-label', for: `pigments-${name}` }, () => { return this.span({ class: (nested ? 'setting-description' : 'setting-title') }, label); })...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.div({ class: 'controls' }, () => { this.input({ type: 'checkbox', id: `pigments-${name}`, outlet: name }); this.label({ class: 'control-label', for: `pigments-${name}` }, () => { return this.span({ class: (nested ? 'sett...
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:completion
completion
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
arrayField('ignoredScopes', 'Ignored Scopes') arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') selectField('sassShadeAndTintImplementation', 'Sass Shade And Tint Implementation', { options: ['', 'compass', 'bourbon'] setting: 'pigments.sassSh...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:4:raw_corpus
raw_corpus
@initializeTextEditor('sourceNames') @initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCh...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
106
155
abe33/atom-pigments:lib/color-project-element.coffee:4:completion
completion
@initializeTextEditor('sourceNames') @initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCh...
capitalizedName = capitalize name select = @[name] optionValues = [].slice.call(select.querySelectorAll('option')).map (o) -> o.value if @project[name] select.selectedIndex = optionValues.indexOf(@project[name]) @subscriptions.add @subscribeTo select, change: => value = select.selectedOpti...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-project-element.coffee
106
155
abe33/atom-pigments:lib/color-project-element.coffee:3:raw_corpus
raw_corpus
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label ...
this.div({ class: 'controls' }, () => { this.input({ type: 'checkbox', id: `pigments-${name}`, outlet: name }); this.label({ class: 'control-label', for: `pigments-${name}` }, () => { return this.span({ class: (nested ? 'setting-description' : 'setting-title') }, label); })...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.div({ class: 'controls' }, () => { this.input({ type: 'checkbox', id: `pigments-${name}`, outlet: name }); this.label({ class: 'control-label', for: `pigments-${name}` }, () => { return this.span({ class: (nested ? 'sett...
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:completion
completion
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
arrayField('ignoredScopes', 'Ignored Scopes') arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') selectField('sassShadeAndTintImplementation', 'Sass Shade And Tint Implementation', { options: ['', 'compass', 'bourbon'] setting: 'pigments.sassSh...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:4:raw_corpus
raw_corpus
@initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCheckbox('ignoreGlobalIgnoredNames') @i...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
106
154
abe33/atom-pigments:lib/color-project-element.coffee:4:completion
completion
@initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCheckbox('ignoreGlobalIgnoredNames') @i...
select = @[name] optionValues = [].slice.call(select.querySelectorAll('option')).map (o) -> o.value if @project[name] select.selectedIndex = optionValues.indexOf(@project[name]) @subscriptions.add @subscribeTo select, change: => value = select.selectedOptions[0]?.value @project["set#{cap...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/lib/color-project-element.coffee
106
154
abe33/atom-pigments:lib/color-project-element.coffee:6:raw_corpus
raw_corpus
ColorProjectElement.deserialize = (state) -> element = new ColorProjectElement element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()) element
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
160
163
abe33/atom-pigments:lib/color-project-element.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ColorProjectElement.deserialize = (state) -> element = new ColorProjectElement element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()) element ```
ColorProjectElement.deserialize = function(state) { var element; element = new ColorProjectElement(); element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()); return element; };
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
160
163
abe33/atom-pigments:lib/color-project-element.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ColorProjectElement.deserialize = function(state) { var element; element = new ColorProjectElement(); element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()); return element; }; ```
ColorProjectElement.deserialize = (state) -> element = new ColorProjectElement element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()) element
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
160
163
abe33/atom-pigments:lib/color-project-element.coffee:6:completion
completion
ColorProjectElement.deserialize = (state) -> element = new ColorProjectElement
element.setModel(atom.packages.getActivePackage('pigments').mainModule.getProject()) element
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
160
163
abe33/atom-pigments:lib/color-project-element.coffee:7:raw_corpus
raw_corpus
ColorProjectElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorProjectElement element.setModel(model) element
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
165
169
abe33/atom-pigments:lib/color-project-element.coffee:7:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ColorProjectElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorProjectElement element.setModel(model) element ```
ColorProjectElement.registerViewProvider = function(modelClass) { return atom.views.addViewProvider(modelClass, function(model) { var element; element = new ColorProjectElement(); element.setModel(model); return element; }); };
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
165
169
abe33/atom-pigments:lib/color-project-element.coffee:7:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ColorProjectElement.registerViewProvider = function(modelClass) { return atom.views.addViewProvider(modelClass, function(model) { var element; element = new ColorProjectElement(); element.setModel(model); return element; }); }; ```
ColorProjectElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorProjectElement element.setModel(model) element
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
165
169
abe33/atom-pigments:lib/color-project-element.coffee:7:completion
completion
ColorProjectElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) ->
element = new ColorProjectElement element.setModel(model) element
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
2b8eeb018e9743932a937131dea84eb008763a36
518
https://github.com/abe33/atom-pigments/blob/2b8eeb018e9743932a937131dea84eb008763a36/lib/color-project-element.coffee
165
169
abe33/atom-pigments:lib/color-project-element.coffee:2:raw_corpus
raw_corpus
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group arr...
var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField, selectField; arrayField = (name, label, setting, description) => { var settingName; settingName = `pigments.${name}`; r...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField, selectField; arrayField = (name, label, setting, description) => { var settingNa...
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:completion
completion
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
@div class: 'control-group array', => @div class: 'controls', => @label class: 'control-label', => @span class: 'setting-title', label @div class: 'control-wrapper', => @select outlet: name, class: 'form-control', required: true, => options.forEach (opt...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:4:raw_corpus
raw_corpus
@initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCheckbox('ignoreGlobalIgnoredNames') @i...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
106
153
abe33/atom-pigments:lib/color-project-element.coffee:4:completion
completion
@initializeTextEditor('searchNames') @initializeTextEditor('ignoredNames') @initializeTextEditor('ignoredScopes') @initializeTextEditor('supportedFiletypes') @initializeCheckbox('includeThemes') @initializeCheckbox('ignoreGlobalSourceNames') @initializeCheckbox('ignoreGlobalIgnoredNames') @i...
select = @[name] optionValues = [].slice.call(select.querySelectorAll('option')).map (o) -> o.value select.selectedIndex = optionValues.indexOf(@project[name]) @subscriptions.add @subscribeTo select, change: => value = select.selectedOptions[0]?.value @project["set#{capitalizedName}"](if value...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
c0fb124b977d4f970cd4f9fb106f830945d065e8
518
https://github.com/abe33/atom-pigments/blob/c0fb124b977d4f970cd4f9fb106f830945d065e8/lib/color-project-element.coffee
106
153
abe33/atom-pigments:lib/color-project-element.coffee:2:raw_corpus
raw_corpus
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group arr...
var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField; arrayField = (name, label, setting, description) => { var settingName; settingName = `pigments.${name}`; return this.di...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField; arrayField = (name, label, setting, description) => { var settingName; s...
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:completion
completion
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:3:raw_corpus
raw_corpus
arrayField('ignoredScopes', 'Ignored Scopes') arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') booleanField('includeThemes', 'Include Atom Themes Stylesheets', """ The variables from <code>#{themes[0]}</code> and <code>#{themes[1]}</code> themes...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:completion
completion
arrayField('ignoredScopes', 'Ignored Scopes') arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') booleanField('includeThemes', 'Include Atom Themes Stylesheets', """ The variables from <code>#{themes[0]}</code> and <code>#{themes[1]}</code> themes...
@initializeCheckbox('ignoreGlobalSourceNames') @initializeCheckbox('ignoreGlobalIgnoredNames') @initializeCheckbox('ignoreGlobalIgnoredScopes') @initializeCheckbox('ignoreGlobalSearchNames') @initializeCheckbox('ignoreGlobalSupportedFiletypes') initializeTextEditor: (name) -> capitalizedName = ca...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:4:raw_corpus
raw_corpus
getURI: -> 'pigments://settings' getIconName: -> "pigments" serialize: -> {deserializer: @constructor.name}
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
106
111
abe33/atom-pigments:lib/color-project-element.coffee:4:completion
completion
getURI: -> 'pigments://settings'
getIconName: -> "pigments" serialize: -> {deserializer: @constructor.name}
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
0d39d82c192a24bbc3558fc10b9e3f04f79122c5
518
https://github.com/abe33/atom-pigments/blob/0d39d82c192a24bbc3558fc10b9e3f04f79122c5/lib/color-project-element.coffee
106
111
abe33/atom-pigments:lib/color-project-element.coffee:2:raw_corpus
raw_corpus
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group arr...
var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField; arrayField = (name, label, setting, description) => { var settingName; settingName = `pigments.${name}`; return this.di...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorProjectElement; ColorProjectElement = (function() { class ColorProjectElement extends HTMLElement { static content() { var arrayField, booleanField; arrayField = (name, label, setting, description) => { var settingName; s...
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:2:completion
completion
class ColorProjectElement extends HTMLElement SpacePenDSL.includeInto(this) EventsDelegation.includeInto(this) @content: -> arrayField = (name, label, setting, description) => settingName = "pigments.#{name}" @div class: 'control-group array', => @div class: 'controls', => @lab...
@div class: 'controls', => @input type: 'checkbox', id: "pigments-#{name}", outlet: name @label class: 'control-label', for: "pigments-#{name}", => @span class: (if nested then 'setting-description' else 'setting-title'), label if description? @div class: 'setting-...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
6
55
abe33/atom-pigments:lib/color-project-element.coffee:3:raw_corpus
raw_corpus
arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') booleanField('includeThemes', 'Include Atom Themes Stylesheets', """ The variables from <code>#{themes[0]}</code> and <code>#{themes[1]}</code> themes will be automatically added to the project pa...
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
56
105
abe33/atom-pigments:lib/color-project-element.coffee:3:completion
completion
arrayField('searchNames', 'Extended Search Names', 'pigments.extendedSearchNames') booleanField('includeThemes', 'Include Atom Themes Stylesheets', """ The variables from <code>#{themes[0]}</code> and <code>#{themes[1]}</code> themes will be automatically added to the project pa...
@initializeCheckbox('ignoreGlobalIgnoredNames') @initializeCheckbox('ignoreGlobalIgnoredScopes') @initializeCheckbox('ignoreGlobalSearchNames') initializeTextEditor: (name) -> capitalizedName = capitalize name editor = @[name].getModel() editor.setText((@project[name] ? []).join(', ')) @sub...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-project-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-project-element.coffee
56
105
jianliaoim/talk-os:talk-web/client/app/file-video.coffee:1:raw_corpus
raw_corpus
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' video = React.createFactory 'video' T = React.PropTypes l = lang.getText module.exports = React.createClass displayName: 'file-video...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-video.coffee
1
25
jianliaoim/talk-os:talk-web/client/app/file-video.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' lang = require '../locales/lang' div = React.createFactory 'div' video = React.createFactory 'video' T = React.PropTypes l = lang.getText modu...
var Immutable, PureRenderMixin, React, T, div, l, lang, video; React = require('react'); Immutable = require('immutable'); PureRenderMixin = require('react-addons-pure-render-mixin'); lang = require('../locales/lang'); div = React.createFactory('div'); video = React.createFactory('video'); T = React.PropTypes; ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/file-video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-video.coffee
1
25
jianliaoim/talk-os:talk-web/client/app/file-video.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, PureRenderMixin, React, T, div, l, lang, video; React = require('react'); Immutable = require('immutable'); PureRenderMixin = require('react-addons-pure-render-mixin'); lang = require('../locales/lang'); div = React.createFactory('div'); video ...
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' video = React.createFactory 'video' T = React.PropTypes l = lang.getText module.exports = React.createClass displayName: 'file-video...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-video.coffee
1
25
jianliaoim/talk-os:talk-web/client/app/file-video.coffee:1:completion
completion
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' video = React.createFactory 'video' T = React.PropTypes l = lang.getText
module.exports = React.createClass displayName: 'file-video' mixins: [PureRenderMixin] propTypes: file: T.instanceOf(Immutable.Map) render: -> src = @props.file.get('downloadUrl') div className: 'file-video', video src: src, controls: true, autoPlay: true, l('html5VideoNotSupport')
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/file-video.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-video.coffee
1
25
gandm/language-babel:spec/grammar-spec.coffee:1:raw_corpus
raw_corpus
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') wa...
var grammarTest, path; path = require('path'); grammarTest = require('atom-grammar-test'); describe('Grammar', function() { beforeEach(function() { waitsForPromise(function() { return atom.packages.activatePackage('language-babel'); }); waitsForPromise(function() { return atom.packages.acti...
CoffeeScript
JavaScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var grammarTest, path; path = require('path'); grammarTest = require('atom-grammar-test'); describe('Grammar', function() { beforeEach(function() { waitsForPromise(function() { return atom.packages.activatePackage('language-babel'); }); waits...
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
JavaScript
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:completion
completion
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/jsx-attributes.jsx') grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/jsx-es6.jsx') grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/jsx-features.jsx') grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/...
CoffeeScript
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:raw_corpus
raw_corpus
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') wa...
var grammarTest, path; path = require('path'); grammarTest = require('atom-grammar-test'); describe('Grammar', function() { beforeEach(function() { waitsForPromise(function() { return atom.packages.activatePackage('language-babel'); }); waitsForPromise(function() { return atom.packages.acti...
CoffeeScript
JavaScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var grammarTest, path; path = require('path'); grammarTest = require('atom-grammar-test'); describe('Grammar', function() { beforeEach(function() { waitsForPromise(function() { return atom.packages.activatePackage('language-babel'); }); waits...
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
JavaScript
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/spec/grammar-spec.coffee
1
50
gandm/language-babel:spec/grammar-spec.coffee:1:completion
completion
path = require 'path' grammarTest = require 'atom-grammar-test' describe 'Grammar', -> beforeEach -> waitsForPromise -> atom.packages.activatePackage('language-babel') waitsForPromise -> atom.packages.activatePackage('language-todo') waitsForPromise -> atom.packages.activatePackage('lan...
grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/jsx-full-react-class.jsx') grammarTest path.join(__dirname, 'fixtures/grammar/babel-sublime/jsx-text.jsx') # flow declaration file grammarTest path.join(__dirname, 'fixtures/grammar/declare.js') # grammar test large files grammarTest path.join...
CoffeeScript
CoffeeScript
gandm/language-babel
spec/grammar-spec.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/spec/grammar-spec.coffee
1
50
outsideris/popularconvention:src/batch.coffee:1:raw_corpus
raw_corpus
# # service layer # # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> logger = (require './helpers').logger schedule = require 'node-schedule' service = require './service' helpers = (require './helpers') http = req...
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/src/batch.coffee
1
50
outsideris/popularconvention:src/batch.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # service layer # # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> logger = (require './helpers').logger schedule = require 'node-schedule' service = requir...
// # service layer // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var _, archiveDir, descriptionRule, fs, helpers, hljs, http, logger, moment, parser, path, persistence, processRule, schedule, service, spawn, s...
CoffeeScript
JavaScript
outsideris/popularconvention
src/batch.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/src/batch.coffee
1
50
outsideris/popularconvention:src/batch.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # service layer // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var _, archiveDir, descriptionRule, fs, helpers, hljs, http, logger, moment, parser, path...
# # service layer # # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> logger = (require './helpers').logger schedule = require 'node-schedule' service = require './service' helpers = (require './helpers') http = req...
JavaScript
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/src/batch.coffee
1
50
outsideris/popularconvention:src/batch.coffee:1:completion
completion
# # service layer # # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> logger = (require './helpers').logger schedule = require 'node-schedule' service = require './service' helpers = (require './helpers') http = req...
fs.exists archiveDir, (exist) -> if not exist then fs.mkdirSync archiveDir # batch to process timetile imported from github archive processRule = new schedule.RecurrenceRule() processRule.hour = [new schedule.Range(0, 23)] processRule.minute = [10, 30, 50] schedule.scheduleJob processRule, -> service.processTimel...
CoffeeScript
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/src/batch.coffee
1
50
outsideris/popularconvention:src/batch.coffee:2:raw_corpus
raw_corpus
schedule.scheduleJob descriptionRule, -> service.findDescription true, -> # batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule() archiveRule.hour = [new schedule.Range(0, 23)] archiveRule.minute = [5] schedule.scheduleJob archiveRule, -> datetime = getOneDa...
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
0e87d3746c01137980d95b89fc94fa9f71fa5e60
730
https://github.com/outsideris/popularconvention/blob/0e87d3746c01137980d95b89fc94fa9f71fa5e60/src/batch.coffee
51
69
outsideris/popularconvention:src/batch.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript schedule.scheduleJob descriptionRule, -> service.findDescription true, -> # batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule() archiveRule.hour = [new schedule.Range(0, 23)] archiveRule.minute = [5] s...
var archiveRule, getOneDayAgo; schedule.scheduleJob(descriptionRule, function() { return service.findDescription(true, function() {}); }); // batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule(); archiveRule.hour = [new schedule.Range(0, 23)]; archiveRule.m...
CoffeeScript
JavaScript
outsideris/popularconvention
src/batch.coffee
MIT
0e87d3746c01137980d95b89fc94fa9f71fa5e60
730
https://github.com/outsideris/popularconvention/blob/0e87d3746c01137980d95b89fc94fa9f71fa5e60/src/batch.coffee
51
69
outsideris/popularconvention:src/batch.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var archiveRule, getOneDayAgo; schedule.scheduleJob(descriptionRule, function() { return service.findDescription(true, function() {}); }); // batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule(); archive...
schedule.scheduleJob descriptionRule, -> service.findDescription true, -> # batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule() archiveRule.hour = [new schedule.Range(0, 23)] archiveRule.minute = [5] schedule.scheduleJob archiveRule, -> datetime = getOneDa...
JavaScript
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
0e87d3746c01137980d95b89fc94fa9f71fa5e60
730
https://github.com/outsideris/popularconvention/blob/0e87d3746c01137980d95b89fc94fa9f71fa5e60/src/batch.coffee
51
69
outsideris/popularconvention:src/batch.coffee:2:completion
completion
schedule.scheduleJob descriptionRule, -> service.findDescription true, -> # batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule() archiveRule.hour = [new schedule.Range(0, 23)] archiveRule.minute = [5] schedule.scheduleJob archiveRule, ->
datetime = getOneDayAgo() service.fetchGithubArchive datetime, (err) -> if err? logger.error "fetcharchive", {err: err} else logger.info 'fetched githubarchive', {datetime: datetime} getOneDayAgo = -> moment().add('d', -1).format("YYYY-MM-DD-H")
CoffeeScript
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
0e87d3746c01137980d95b89fc94fa9f71fa5e60
730
https://github.com/outsideris/popularconvention/blob/0e87d3746c01137980d95b89fc94fa9f71fa5e60/src/batch.coffee
51
69
outsideris/popularconvention:src/batch.coffee:2:raw_corpus
raw_corpus
schedule.scheduleJob descriptionRule, -> service.findDescription true, -> # batch to fetch json file from githubarchive and import to mongoDB archiveRule = new schedule.RecurrenceRule() archiveRule.hour = [new schedule.Range(0, 23)] archiveRule.minute = [10] schedule.scheduleJob archiveRule, -> datetime = getOneD...
CoffeeScript
outsideris/popularconvention
src/batch.coffee
MIT
93ae42b3f37162e82e7a5c37c4ff0db534b4befe
730
https://github.com/outsideris/popularconvention/blob/93ae42b3f37162e82e7a5c37c4ff0db534b4befe/src/batch.coffee
51
69