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
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
it 'parse commit', -> conventions = parser.parse commitFixture #console.log require('util').inspect(conventions, false, 5) it 'scala parseing test', -> fixture = files: [ { sha: 'b2b7c1656057e1ec4c40e6b8ca0ed47c3fb14111', filename: 'test/controllers/api/AbstractAPITest.s...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/parser/parser.test.coffee
1
47
outsideris/popularconvention:test/parser/parser.test.coffee:1:raw_corpus
raw_corpus
should = require 'should' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -> fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSync "#{fixturePath}/commit.json", 'utf8' it 'parse commi...
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
c102d6dca1cc3d4edcce419b72f6b9f36a4bebca
730
https://github.com/outsideris/popularconvention/blob/c102d6dca1cc3d4edcce419b72f6b9f36a4bebca/test/parser/parser.test.coffee
1
43
outsideris/popularconvention:test/parser/parser.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript should = require 'should' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -> fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSyn...
var fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); parser = require('../../src/parser/parser'); describe('parser >', function() { var commitFixture; commitFixture = ''; before(function() { var fixturePath; fixturePath = path.resolve(`${__dirname}`, "...
CoffeeScript
JavaScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
c102d6dca1cc3d4edcce419b72f6b9f36a4bebca
730
https://github.com/outsideris/popularconvention/blob/c102d6dca1cc3d4edcce419b72f6b9f36a4bebca/test/parser/parser.test.coffee
1
43
outsideris/popularconvention:test/parser/parser.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); parser = require('../../src/parser/parser'); describe('parser >', function() { var commitFixture; commitFixture = ''; before(function() { var fixtur...
should = require 'should' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -> fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSync "#{fixturePath}/commit.json", 'utf8' it 'parse commi...
JavaScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
c102d6dca1cc3d4edcce419b72f6b9f36a4bebca
730
https://github.com/outsideris/popularconvention/blob/c102d6dca1cc3d4edcce419b72f6b9f36a4bebca/test/parser/parser.test.coffee
1
43
outsideris/popularconvention:test/parser/parser.test.coffee:1:completion
completion
should = require 'should' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -> fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSync "#{fixturePath}/commit.json", 'utf8' it 'parse commi...
conventions = parser.parse commitFixture #console.log require('util').inspect(conventions, false, 5) it 'scala parseing test', -> fixture = files: [ { sha: 'b2b7c1656057e1ec4c40e6b8ca0ed47c3fb14111', filename: 'test/controllers/api/AbstractAPITest.scala', status: '...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
c102d6dca1cc3d4edcce419b72f6b9f36a4bebca
730
https://github.com/outsideris/popularconvention/blob/c102d6dca1cc3d4edcce419b72f6b9f36a4bebca/test/parser/parser.test.coffee
1
43
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
16cf06954c23097912c5a20f8cd479fc1ed07940
730
https://github.com/outsideris/popularconvention/blob/16cf06954c23097912c5a20f8cd479fc1ed07940/test/parser/parser.test.coffee
1
48
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); parser = require('../../src/parser/parser'); describe('pa...
CoffeeScript
JavaScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
16cf06954c23097912c5a20f8cd479fc1ed07940
730
https://github.com/outsideris/popularconvention/blob/16cf06954c23097912c5a20f8cd479fc1ed07940/test/parser/parser.test.coffee
1
48
outsideris/popularconvention:test/parser/parser.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 fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); par...
# 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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
JavaScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
16cf06954c23097912c5a20f8cd479fc1ed07940
730
https://github.com/outsideris/popularconvention/blob/16cf06954c23097912c5a20f8cd479fc1ed07940/test/parser/parser.test.coffee
1
48
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
it 'parse commit', -> conventions = parser.parse commitFixture #console.log require('util').inspect(conventions, false, 5) it 'scala parseing test', -> fixture = files: [ { sha: 'b2b7c1656057e1ec4c40e6b8ca0ed47c3fb14111', filename: 'test/controllers/api/AbstractAPITest.s...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
16cf06954c23097912c5a20f8cd479fc1ed07940
730
https://github.com/outsideris/popularconvention/blob/16cf06954c23097912c5a20f8cd479fc1ed07940/test/parser/parser.test.coffee
1
48
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
ff72df2e3db01bf82dc753509a6418c17662cc4f
730
https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/test/parser/parser.test.coffee
1
27
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); parser = require('../../src/parser/parser'); describe('pa...
CoffeeScript
JavaScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
ff72df2e3db01bf82dc753509a6418c17662cc4f
730
https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/test/parser/parser.test.coffee
1
27
outsideris/popularconvention:test/parser/parser.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 fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); par...
# 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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
JavaScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
ff72df2e3db01bf82dc753509a6418c17662cc4f
730
https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/test/parser/parser.test.coffee
1
27
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSync "#{fixturePath}/commit.json", 'utf8' it 'parse commit info', -> patch = parser.parsePatch commitFixture patch.length.should.equal 1 it 'parse token patch for addition', -> tokens = parser.parseAdditionTokens J...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
ff72df2e3db01bf82dc753509a6418c17662cc4f
730
https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/test/parser/parser.test.coffee
1
27
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
a63c08b3721d317537737c46e4c813893ec71263
730
https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/test/parser/parser.test.coffee
1
23
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); parser = require('../../src/parser/parser'); describe('pa...
CoffeeScript
JavaScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
a63c08b3721d317537737c46e4c813893ec71263
730
https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/test/parser/parser.test.coffee
1
23
outsideris/popularconvention:test/parser/parser.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 fs, parser, path, should; should = require('should'); fs = require('fs'); path = require('path'); par...
# 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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = '' before -...
JavaScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
a63c08b3721d317537737c46e4c813893ec71263
730
https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/test/parser/parser.test.coffee
1
23
outsideris/popularconvention:test/parser/parser.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' fs = require 'fs' path = require 'path' parser = require '../../src/parser/parser' describe 'parser >', -> commitFixture = ''
before -> fixturePath = path.resolve "#{__dirname}", "../fixture" commitFixture = fs.readFileSync "#{fixturePath}/commit.json", 'utf8' it 'parse commit info', -> patch = parser.parsePatch commitFixture patch.length.should.equal 1 it 'parse token patch for addition', -> tokens = parser.parseAd...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/parser/parser.test.coffee
MIT
a63c08b3721d317537737c46e4c813893ec71263
730
https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/test/parser/parser.test.coffee
1
23
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
link: (scope, element, attrs) -> $element = $(element) $widgetBody = $element.parent() $inner = $element.children('.trafficlight-inner') $protectors = $element.children('.protector') $lights = $inner.children('.light') sizer = -> h...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:2:raw_corpus
raw_corpus
if $widgetBody.width() < width + protectorWidth * 2 $protectors.hide() else $protectors.show() $protectors.css({ 'width': width + (protectorWidth * 2) + 'px' 'left': -protectorWidth + 'px' ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
45
90
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if $widgetBody.width() < width + protectorWidth * 2 $protectors.hide() else $protectors.show() $protectors.css({ 'width': width + (protectorWidth * 2) + 'px' ...
if ($widgetBody.width() < width + protectorWidth * 2) { $protectors.hide(); } else { $protectors.show(); $protectors.css({ 'width': width + (protectorWidth * 2) + 'px', 'left': -protectorWidth + 'px', 'border-left': 'solid ' + protectorWidth + 'px transparent', 'border-right': 'solid ' + protector...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
45
90
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if ($widgetBody.width() < width + protectorWidth * 2) { $protectors.hide(); } else { $protectors.show(); $protectors.css({ 'width': width + (protectorWidth * 2) + 'px', 'left': -protectorWidth + 'px', 'border-left': 'solid ' + protectorWidth + 'px...
if $widgetBody.width() < width + protectorWidth * 2 $protectors.hide() else $protectors.show() $protectors.css({ 'width': width + (protectorWidth * 2) + 'px' 'left': -protectorWidth + 'px' ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
45
90
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:2:completion
completion
if $widgetBody.width() < width + protectorWidth * 2 $protectors.hide() else $protectors.show() $protectors.css({ 'width': width + (protectorWidth * 2) + 'px' 'left': -protectorWidth + 'px' ...
if protectorPadding < 12 $lights.css({ 'background-image': 'none' 'box-shadow': 'none' }) $inner.find('.red').css('border-color', '#A52A2A') $inner.find('.yellow').css('border-color', '#FFFF0...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
45
90
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:3:raw_corpus
raw_corpus
# Update on parent resizing $widgetBody.on 'resize', _.debounce sizer, 100, { leading: false, maxWait: 300 } $timeout(sizer, 10) scope.$watch 'activeColor', (color) -> $lights.removeClass('active') $inner.find('.' + color).addClass('active') ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
92
106
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:3:completion
completion
# Update on parent resizing $widgetBody.on 'resize', _.debounce sizer, 100, { leading: false, maxWait: 300 } $timeout(sizer, 10) scope.$watch 'activeColor', (color) -> $lights.removeClass('active') $inner.find('.' + color).addClass('active')
# # Cleanup # scope.$on '$destroy', -> $widgetBody.off 'resize' }
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
92
106
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
link: (scope, element, attrs) -> $element = $(element) $widgetBody = $element.parent() $inner = $element.children('.trafficlight-inner') $protectors = $element.children('.protector') $lights = $inner.children('.light') sizer = -> h...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:3:raw_corpus
raw_corpus
# Update on parent resizing $widgetBody.on 'resize', _.throttle(-> scope.$apply -> sizer() , 50) $timeout(sizer, 10) scope.$watch 'activeColor', (color) -> $lights.removeClass('active') $inner.find('.' ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
92
110
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee:3:completion
completion
# Update on parent resizing $widgetBody.on 'resize', _.throttle(-> scope.$apply -> sizer() , 50) $timeout(sizer, 10) scope.$watch 'activeColor', (color) ->
$lights.removeClass('active') $inner.find('.' + color).addClass('active') # # Cleanup # scope.$on '$destroy', -> $widgetBody.off 'resize' }
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/stoplight/directives.trafficlight.coffee
92
110
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
q = $q.defer() # Runner Failure errorCallback = (error, status) -> if error == '' && status == 0 # CORS error error = 'Cross-Origin Resource Sharing error with the server.' q.reject error # Successful Result successCallback = (re...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:2:raw_corpus
raw_corpus
req.error errorCallback return q.promise dataSourceFactory.create 'CyclotronData', runner
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
51
55
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:2:completion
completion
req.error errorCallback
return q.promise dataSourceFactory.create 'CyclotronData', runner
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
51
55
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:completion
completion
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
q = $q.defer() # Runner Failure errorCallback = (error, status) -> if error == '' && status == 0 # CORS error error = 'Cross-Origin Resource Sharing error with the server.' q.reject error # Successful Result successCallback = (re...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2016 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:1:completion
completion
### # Copyright (c) 2013-2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
q = $q.defer() # Runner Failure errorCallback = (error, status) -> if error == '' && status == 0 # CORS error error = 'Cross-Origin Resource Sharing error with the server.' q.reject error # Successful Result successCallback = (re...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:2:raw_corpus
raw_corpus
req.then successCallback req.error errorCallback return q.promise dataSourceFactory.create 'CyclotronData', runner
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
51
56
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee:2:completion
completion
req.then successCallback req.error errorCallback
return q.promise dataSourceFactory.create 'CyclotronData', runner
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/dashboards/dataSources/dataSources.cyclotronData.coffee
51
56
jianliaoim/talk-os:talk-web/client/updater/file.coffee:1:raw_corpus
raw_corpus
Immutable = require 'immutable' lookup = require '../util/lookup' query = require '../query' exports.create = (store, fakeMessage) -> _teamId = fakeMessage.get('_teamId') _channelId = lookup.getMessageChannelId(fakeMessage, query.userId(store)) newMessage = fakeMessage .setIn(['attachments', 0, 'isUploading...
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/file.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Immutable = require 'immutable' lookup = require '../util/lookup' query = require '../query' exports.create = (store, fakeMessage) -> _teamId = fakeMessage.get('_teamId') _channelId = lookup.getMessageChannelId(fakeMessage, query.userId(store)) newMessage...
var Immutable, lookup, query; Immutable = require('immutable'); lookup = require('../util/lookup'); query = require('../query'); exports.create = function(store, fakeMessage) { var _channelId, _teamId, newMessage, updatePath; _teamId = fakeMessage.get('_teamId'); _channelId = lookup.getMessageChannelId(fakeMe...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/file.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, lookup, query; Immutable = require('immutable'); lookup = require('../util/lookup'); query = require('../query'); exports.create = function(store, fakeMessage) { var _channelId, _teamId, newMessage, updatePath; _teamId = fakeMessage.get('_tea...
Immutable = require 'immutable' lookup = require '../util/lookup' query = require '../query' exports.create = (store, fakeMessage) -> _teamId = fakeMessage.get('_teamId') _channelId = lookup.getMessageChannelId(fakeMessage, query.userId(store)) newMessage = fakeMessage .setIn(['attachments', 0, 'isUploading...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/file.coffee:1:completion
completion
Immutable = require 'immutable' lookup = require '../util/lookup' query = require '../query' exports.create = (store, fakeMessage) -> _teamId = fakeMessage.get('_teamId') _channelId = lookup.getMessageChannelId(fakeMessage, query.userId(store)) newMessage = fakeMessage .setIn(['attachments', 0, 'isUploading...
progress = actionData.get('progress') updatePath = ['messages', _teamId, _channelId] if store.hasIn(updatePath) store = store.updateIn updatePath, (messages) -> messages.map (message) -> if fileId is message.getIn(['attachments', 0, 'data', 'fileId']) message.setIn(['attachments', 0, '...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/file.coffee:2:raw_corpus
raw_corpus
messages.map (message) -> if fileId is message.getIn(['attachments', 0, 'data', 'fileId']) message.updateIn ['attachments', 0, 'data'], (prevFileData) -> fileData.set 'thumbnailUrl', prevFileData.get('thumbnailUrl') else message store exports.error = (store, actionDat...
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
51
73
jianliaoim/talk-os:talk-web/client/updater/file.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript messages.map (message) -> if fileId is message.getIn(['attachments', 0, 'data', 'fileId']) message.updateIn ['attachments', 0, 'data'], (prevFileData) -> fileData.set 'thumbnailUrl', prevFileData.get('thumbnailUrl') else ...
messages.map(function(message) { if (fileId === message.getIn(['attachments', 0, 'data', 'fileId'])) { return message.updateIn(['attachments', 0, 'data'], function(prevFileData) { return fileData.set('thumbnailUrl', prevFileData.get('thumbnailUrl')); }); } else { return message; } }); store; e...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
51
73
jianliaoim/talk-os:talk-web/client/updater/file.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript messages.map(function(message) { if (fileId === message.getIn(['attachments', 0, 'data', 'fileId'])) { return message.updateIn(['attachments', 0, 'data'], function(prevFileData) { return fileData.set('thumbnailUrl', prevFileData.get('thumbnailUrl')); ...
messages.map (message) -> if fileId is message.getIn(['attachments', 0, 'data', 'fileId']) message.updateIn ['attachments', 0, 'data'], (prevFileData) -> fileData.set 'thumbnailUrl', prevFileData.get('thumbnailUrl') else message store exports.error = (store, actionDat...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
51
73
jianliaoim/talk-os:talk-web/client/updater/file.coffee:2:completion
completion
messages.map (message) -> if fileId is message.getIn(['attachments', 0, 'data', 'fileId']) message.updateIn ['attachments', 0, 'data'], (prevFileData) -> fileData.set 'thumbnailUrl', prevFileData.get('thumbnailUrl') else message store exports.error = (store, actionDat...
userData = actionData.get('userData') _teamId = userData.get('_teamId') _channelId = lookup.getMessageChannelId(userData, query.userId(store)) updatePath = ['messages', _teamId, _channelId] if store.hasIn(updatePath) store = store.updateIn updatePath, (messages) -> messages.filterNot (message) -> ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/file.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/file.coffee
51
73
mojs/mojs:spec/shapes/shapesMap.coffee:1:raw_corpus
raw_corpus
shapesMap = window.mojs.shapesMap h = mojs.h describe 'shapesMap ->', -> it 'should have all available shapes', -> expect(shapesMap.bit) .toBeDefined() expect(shapesMap.custom) .toBeDefined() expect(shapesMap.circle) .toBeDefined() expect(shapesMap.line) .toBeDefined() expect(sha...
CoffeeScript
mojs/mojs
spec/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/shapesMap.coffee
1
33
mojs/mojs:spec/shapes/shapesMap.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript shapesMap = window.mojs.shapesMap h = mojs.h describe 'shapesMap ->', -> it 'should have all available shapes', -> expect(shapesMap.bit) .toBeDefined() expect(shapesMap.custom) .toBeDefined() expect(shapesMap.circle) .toBeDefined() ...
var h, shapesMap; shapesMap = window.mojs.shapesMap; h = mojs.h; describe('shapesMap ->', function() { it('should have all available shapes', function() { expect(shapesMap.bit).toBeDefined(); expect(shapesMap.custom).toBeDefined(); expect(shapesMap.circle).toBeDefined(); expect(shapesMap.line).toBe...
CoffeeScript
JavaScript
mojs/mojs
spec/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/shapesMap.coffee
1
33
mojs/mojs:spec/shapes/shapesMap.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var h, shapesMap; shapesMap = window.mojs.shapesMap; h = mojs.h; describe('shapesMap ->', function() { it('should have all available shapes', function() { expect(shapesMap.bit).toBeDefined(); expect(shapesMap.custom).toBeDefined(); expect(shapesMap...
shapesMap = window.mojs.shapesMap h = mojs.h describe 'shapesMap ->', -> it 'should have all available shapes', -> expect(shapesMap.bit) .toBeDefined() expect(shapesMap.custom) .toBeDefined() expect(shapesMap.circle) .toBeDefined() expect(shapesMap.line) .toBeDefined() expect(sha...
JavaScript
CoffeeScript
mojs/mojs
spec/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/shapesMap.coffee
1
33
mojs/mojs:spec/shapes/shapesMap.coffee:1:completion
completion
shapesMap = window.mojs.shapesMap h = mojs.h describe 'shapesMap ->', -> it 'should have all available shapes', -> expect(shapesMap.bit) .toBeDefined() expect(shapesMap.custom) .toBeDefined() expect(shapesMap.circle) .toBeDefined() expect(shapesMap.line) .toBeDefined() expect(sha...
it 'should get bit by string', -> expect(shapesMap.getShape('bit')).toBeDefined() it 'should console.error if bit was not found', -> spyOn h, 'error' shapesMap.getShape('') expect(h.error).toHaveBeenCalled() describe 'addShape method ->', -> it 'should add shape to the shape map', -> ...
CoffeeScript
CoffeeScript
mojs/mojs
spec/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/shapesMap.coffee
1
33
elving/swag:test/dates_test.coffee:1:raw_corpus
raw_corpus
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' Swag.registerHelpers Handlebars describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%...
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/dates_test.coffee
1
33
elving/swag:test/dates_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' Swag.registerHelpers Handlebars describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified ...
var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); Swag.registerHelpers(Handlebars); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a string given a specifi...
CoffeeScript
JavaScript
elving/swag
test/dates_test.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/dates_test.coffee
1
33
elving/swag:test/dates_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); Swag.registerHelpers(Handlebars); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should...
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' Swag.registerHelpers Handlebars describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%...
JavaScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/dates_test.coffee
1
33
elving/swag:test/dates_test.coffee:1:completion
completion
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' Swag.registerHelpers Handlebars describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%...
describe 'now', -> describe '{{now}}', -> it 'should return the current date.', -> date = new Date().getTime() source = '{{now}}' template = Handlebars.compile(source) new Date(template()).getTime().should.be.within date - 1000, date + 1000 describe 't...
CoffeeScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
e9c8788dfc9f640038c00eaafe33f4137ff5f465
675
https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/dates_test.coffee
1
33
elving/swag:test/dates_test.coffee:1:raw_corpus
raw_corpus
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
ceecfbab2987ad991113cb7ce1daaec9811408ae
675
https://github.com/elving/swag/blob/ceecfbab2987ad991113cb7ce1daaec9811408ae/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source ...
var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a string given a specified format.', function() { var...
CoffeeScript
JavaScript
elving/swag
test/dates_test.coffee
MIT
ceecfbab2987ad991113cb7ce1daaec9811408ae
675
https://github.com/elving/swag/blob/ceecfbab2987ad991113cb7ce1daaec9811408ae/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a st...
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
JavaScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
ceecfbab2987ad991113cb7ce1daaec9811408ae
675
https://github.com/elving/swag/blob/ceecfbab2987ad991113cb7ce1daaec9811408ae/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:completion
completion
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
describe '{{now}}', -> it 'should return the current date.', -> date = new Date().getTime() source = '{{now}}' template = Handlebars.compile(source) new Date(template()).getTime().should.be.within date - 1000, date + 1000 describe 'timeago', -> describ...
CoffeeScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
ceecfbab2987ad991113cb7ce1daaec9811408ae
675
https://github.com/elving/swag/blob/ceecfbab2987ad991113cb7ce1daaec9811408ae/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:raw_corpus
raw_corpus
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
9c9527822cab8bf26563d0437aad1b941c36b97e
675
https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source ...
var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a string given a specified format.', function() { var...
CoffeeScript
JavaScript
elving/swag
test/dates_test.coffee
MIT
9c9527822cab8bf26563d0437aad1b941c36b97e
675
https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a st...
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
JavaScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
9c9527822cab8bf26563d0437aad1b941c36b97e
675
https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:completion
completion
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
describe '{{now}}', -> it 'should return the current date.', -> date = new Date().getTime() source = '{{now}}' template = Handlebars.compile(source) template().should.be.within date - 10, date + 10 describe 'timeago', -> describe '{{timeago date}}', ->...
CoffeeScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
9c9527822cab8bf26563d0437aad1b941c36b97e
675
https://github.com/elving/swag/blob/9c9527822cab8bf26563d0437aad1b941c36b97e/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:raw_corpus
raw_corpus
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
a1b8582fca4bada81d219a9bf420d9776d3a62f6
675
https://github.com/elving/swag/blob/a1b8582fca4bada81d219a9bf420d9776d3a62f6/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source ...
var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a string given a specified format.', function() { var...
CoffeeScript
JavaScript
elving/swag
test/dates_test.coffee
MIT
a1b8582fca4bada81d219a9bf420d9776d3a62f6
675
https://github.com/elving/swag/blob/a1b8582fca4bada81d219a9bf420d9776d3a62f6/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a st...
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
JavaScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
a1b8582fca4bada81d219a9bf420d9776d3a62f6
675
https://github.com/elving/swag/blob/a1b8582fca4bada81d219a9bf420d9776d3a62f6/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:completion
completion
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
describe '{{now}}', -> it 'should return the current date.', -> source = '{{now}}' template = Handlebars.compile(source) currentTime = new Date().getTime() template().should.be.within(currentTime - 5, currentTime + 1) describe 'timeago', -> describe '{{tim...
CoffeeScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
a1b8582fca4bada81d219a9bf420d9776d3a62f6
675
https://github.com/elving/swag/blob/a1b8582fca4bada81d219a9bf420d9776d3a62f6/test/dates_test.coffee
1
31
elving/swag:test/dates_test.coffee:1:raw_corpus
raw_corpus
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
5e45f8e30f1605c8b521997024c9a49806571fc8
675
https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/dates_test.coffee
1
30
elving/swag:test/dates_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source ...
var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a string given a specified format.', function() { var...
CoffeeScript
JavaScript
elving/swag
test/dates_test.coffee
MIT
5e45f8e30f1605c8b521997024c9a49806571fc8
675
https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/dates_test.coffee
1
30
elving/swag:test/dates_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Handlebars, Swag; require('should'); Handlebars = require('handlebars'); Swag = require('../lib/swag'); describe('formatDate', function() { return describe('{{formatDate date format}}', function() { return it('should return the date formated into a st...
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
JavaScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
5e45f8e30f1605c8b521997024c9a49806571fc8
675
https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/dates_test.coffee
1
30
elving/swag:test/dates_test.coffee:1:completion
completion
require 'should' Handlebars = require 'handlebars' Swag = require '../lib/swag' describe 'formatDate', -> describe '{{formatDate date format}}', -> it 'should return the date formated into a string given a specified format.', -> source = '{{formatDate date "%F"}}' template = Hand...
describe '{{now}}', -> it 'should return the current date.', -> source = '{{now}}' template = Handlebars.compile(source) template().should.equal new Date() describe 'timeago', -> describe '{{timeago date}}', -> it 'should return a human-readable time phrase fr...
CoffeeScript
CoffeeScript
elving/swag
test/dates_test.coffee
MIT
5e45f8e30f1605c8b521997024c9a49806571fc8
675
https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/dates_test.coffee
1
30
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/concat_sourcemap.coffee
1
32
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files...
module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.js.app %>", "<%= files.coffee.generated %>"], dest: "<%= fi...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/concat_sourcemap.coffee
1
32
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.js.app %>", "<...
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/concat_sourcemap.coffee
1
32
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:completion
completion
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
src: [ "<%= files.js.specHelpers %>" "<%= files.coffee.generatedSpecHelpers %>" "<%= files.js.spec %>" "<%= files.coffee.generatedSpec %>" ] dest: "<%= files.js.concatenatedSpec %>" css: src: [ "<%= files.sass.generatedVendor %>" ...
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/concat_sourcemap.coffee
1
32
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
271f164a05dfcdf95b94b7d9bac7d03682c3e01e
1,168
https://github.com/linemanjs/lineman/blob/271f164a05dfcdf95b94b7d9bac7d03682c3e01e/config/plugins/concat_sourcemap.coffee
1
34
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files...
module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.js.app %>", "<%= files.coffee.generated %>"], dest: "<%= fi...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
271f164a05dfcdf95b94b7d9bac7d03682c3e01e
1,168
https://github.com/linemanjs/lineman/blob/271f164a05dfcdf95b94b7d9bac7d03682c3e01e/config/plugins/concat_sourcemap.coffee
1
34
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.template.generated %>", "<%= files.js.app %>", "<...
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
271f164a05dfcdf95b94b7d9bac7d03682c3e01e
1,168
https://github.com/linemanjs/lineman/blob/271f164a05dfcdf95b94b7d9bac7d03682c3e01e/config/plugins/concat_sourcemap.coffee
1
34
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:completion
completion
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.template.generated %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files....
"<%= files.js.specHelpers %>" "<%= files.coffee.generatedSpecHelpers %>" "<%= files.js.spec %>" "<%= files.coffee.generatedSpec %>" ] dest: "<%= files.js.concatenatedSpec %>" css: src: [ "<%= files.less.generatedVendor %>" "<%= files.sass....
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
271f164a05dfcdf95b94b7d9bac7d03682c3e01e
1,168
https://github.com/linemanjs/lineman/blob/271f164a05dfcdf95b94b7d9bac7d03682c3e01e/config/plugins/concat_sourcemap.coffee
1
34
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files.js.concatenated %>" spec: src...
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
ec87f89976569a3236266159725a5b913ef631f5
1,168
https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/concat_sourcemap.coffee
1
33
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest...
module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.js.app %>", "<%= files.coffee.generated %>"], dest: "<%= files.js.concatenated %>" }, ...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
ec87f89976569a3236266159725a5b913ef631f5
1,168
https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/concat_sourcemap.coffee
1
33
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { concat_sourcemap: { options: { sourcesContent: true }, js: { src: ["<%= files.js.vendor %>", "<%= files.js.app %>", "<%= files.coffee.generated %>"], ...
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files.js.concatenated %>" spec: src...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
ec87f89976569a3236266159725a5b913ef631f5
1,168
https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/concat_sourcemap.coffee
1
33
linemanjs/lineman:config/plugins/concat_sourcemap.coffee:1:completion
completion
module.exports = (lineman) -> config: concat_sourcemap: options: sourcesContent: true js: src: [ "<%= files.js.vendor %>" "<%= files.js.app %>" "<%= files.coffee.generated %>" ] dest: "<%= files.js.concatenated %>" spec: src...
"<%= files.js.specHelpers %>" "<%= files.coffee.generatedSpecHelpers %>" "<%= files.js.spec %>" "<%= files.coffee.generatedSpec %>" ] dest: "<%= files.js.concatenatedSpec %>" css: src: [ "<%= files.less.generatedVendor %>" "<%= files.sass....
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/concat_sourcemap.coffee
MIT
ec87f89976569a3236266159725a5b913ef631f5
1,168
https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/concat_sourcemap.coffee
1
33
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:raw_corpus
raw_corpus
describe "content editable", -> $inputor = null app = null $ = jQuery beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho at: "@", data: ["Jobs"] editableAtwhoQueryAttrs: {class: "hello", "data-editor-verified":true} app = getAppOf $inputor afterEach -> $inputor.atwh...
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/content_editable.spec.coffee
1
40
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:completion
completion
describe "content editable", -> $inputor = null app = null $ = jQuery beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho at: "@", data: ["Jobs"] editableAtwhoQueryAttrs: {class: "hello", "data-editor-verified":true} app = getAppOf $inputor afterEach -> $inputor.atwh...
it "insert by click", -> simulateTypingIn $inputor $inputor.blur() app.controller().view.$el.find('ul').children().first().trigger('click') expect($inputor.text()).toContain('@Jobs') it "unwrap span.atwho-query after match failed", -> simulateTypingIn $inputor expect $('.atwho-query').length .toBe 1 ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/content_editable.spec.coffee
1
40
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:raw_corpus
raw_corpus
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho at: "@", data: ["Jobs"] editableAtwhoQueryAttrs: {class: "hello", "data-editor-verified":true} app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' it...
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
64ab00d4b86f12b2860963fd99aa91677419ee0f
5,250
https://github.com/ichord/At.js/blob/64ab00d4b86f12b2860963fd99aa91677419ee0f/spec/javascripts/content_editable.spec.coffee
1
38
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:completion
completion
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho at: "@", data: ["Jobs"] editableAtwhoQueryAttrs: {class: "hello", "data-editor-verified":true} app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' it...
simulateTypingIn $inputor $inputor.blur() app.controller().view.$el.find('ul').children().first().trigger('click') expect($inputor.text()).toContain('@Jobs') it "unwrap span.atwho-query after match failed", -> simulateTypingIn $inputor expect $('.atwho-query').length .toBe 1 $('.atwho-query').html "@J ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
64ab00d4b86f12b2860963fd99aa91677419ee0f
5,250
https://github.com/ichord/At.js/blob/64ab00d4b86f12b2860963fd99aa91677419ee0f/spec/javascripts/content_editable.spec.coffee
1
38
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:raw_corpus
raw_corpus
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).t...
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532
5,250
https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/content_editable.spec.coffee
1
29
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:completion
completion
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).t...
it "insert by click", -> simulateTypingIn $inputor $inputor.blur() app.controller().view.$el.find('ul').children().first().trigger('click') expect($inputor.text()).toContain('@Jobs') it "unwrapp span.atwho-query after match failed", -> simulateTypingIn $inputor expect $('.atwho-query').length .toBe 1 ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532
5,250
https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/content_editable.spec.coffee
1
29
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:raw_corpus
raw_corpus
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).toContain('@Jobs') it "insert by click", ->...
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
88fd9bcbd68bb681f152584999e3b83968e4779d
5,250
https://github.com/ichord/At.js/blob/88fd9bcbd68bb681f152584999e3b83968e4779d/spec/javascripts/content_editable.spec.coffee
1
27
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor it "can insert content", -> triggerAtwhoAt $inputor expect($inpu...
describe("content editable", function() { var $inputor, app; $inputor = null; app = null; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#editable").atwho({ at: "@", data: ["Jobs"] }); return app = getAppOf($inputor); }); it("can insert content", function() ...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
88fd9bcbd68bb681f152584999e3b83968e4779d
5,250
https://github.com/ichord/At.js/blob/88fd9bcbd68bb681f152584999e3b83968e4779d/spec/javascripts/content_editable.spec.coffee
1
27
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe("content editable", function() { var $inputor, app; $inputor = null; app = null; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#editable").atwho({ at: "@", data: ["Jobs"] }); return app = getAppOf(...
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).toContain('@Jobs') it "insert by click", ->...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
88fd9bcbd68bb681f152584999e3b83968e4779d
5,250
https://github.com/ichord/At.js/blob/88fd9bcbd68bb681f152584999e3b83968e4779d/spec/javascripts/content_editable.spec.coffee
1
27
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:completion
completion
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).toContain('@Jobs')
it "insert by click", -> simulateTypingIn $inputor $inputor.blur() app.controller().view.$el.find('ul').children().first().trigger('click') expect($inputor.text()).toContain('@Jobs') it "unwrapp span.atwho-query after match failed", -> simulateTypingIn $inputor expect $('.atwho-query').length .toBe 1 ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
88fd9bcbd68bb681f152584999e3b83968e4779d
5,250
https://github.com/ichord/At.js/blob/88fd9bcbd68bb681f152584999e3b83968e4779d/spec/javascripts/content_editable.spec.coffee
1
27
ichord/At.js:spec/javascripts/content_editable.spec.coffee:1:raw_corpus
raw_corpus
describe "content editable", -> $inputor = null app = null beforeEach -> loadFixtures "inputors.html" $inputor = $("#editable").atwho(at: "@", data: ["Jobs"]) app = getAppOf $inputor it "can insert content", -> triggerAtwhoAt $inputor expect($inputor.text()).toContain('@Jobs') it "insert by click", ->...
CoffeeScript
ichord/At.js
spec/javascripts/content_editable.spec.coffee
MIT
c084f8afce9a723d5a0556e0b1173484518fc33a
5,250
https://github.com/ichord/At.js/blob/c084f8afce9a723d5a0556e0b1173484518fc33a/spec/javascripts/content_editable.spec.coffee
1
18