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
flosse/sloc:spec/sloc.spec.coffee:1:completion
completion
global.buster = require "buster" global.sinon = require "sinon" buster.spec.expose() sloc = require "../src/sloc" describe "sloc", -> it "sloc should be a function", -> (expect typeof sloc).toEqual "function" it "should count all lines", -> (expect sloc("a\nb\nc").loc).toEqual 3 it "should count all...
# comment """ jsCode = """ /* a */ source.code(); //comment // comment """ pyCode = """ # a source.code(); #comment # comment """ cCode = """ /* a */ source.code(); /* comment */ // comment """
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
2cbdfbe9374582be997f467fd207555539a135f7
969
https://github.com/flosse/sloc/blob/2cbdfbe9374582be997f467fd207555539a135f7/spec/sloc.spec.coffee
1
39
flosse/sloc:spec/sloc.spec.coffee:3:raw_corpus
raw_corpus
(expect sloc(coffeeCode, "coffee").cloc).toEqual 4 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect sloc(coffeeCode, "coffee").mcloc).toEqual 3 (expect sloc(jsCode,"js").cloc).toEqual 7 (expect sloc(jsCode,"js").sloc).toEqual 1 (expect sloc(jsCode,"js").mcloc).toEqual 6 (expect sl...
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
2cbdfbe9374582be997f467fd207555539a135f7
969
https://github.com/flosse/sloc/blob/2cbdfbe9374582be997f467fd207555539a135f7/spec/sloc.spec.coffee
88
114
flosse/sloc:spec/sloc.spec.coffee:3:completion
completion
(expect sloc(coffeeCode, "coffee").cloc).toEqual 4 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect sloc(coffeeCode, "coffee").mcloc).toEqual 3 (expect sloc(jsCode,"js").cloc).toEqual 7 (expect sloc(jsCode,"js").sloc).toEqual 1 (expect sloc(jsCode,"js").mcloc).toEqual 6 (expect sl...
(expect sloc(cCode,"c").cloc).toEqual 9 (expect sloc(cCode,"c").sloc).toEqual 2 (expect sloc(cCode,"c").mcloc).toEqual 7 (expect sloc(cCode,"c").scloc).toEqual 2 it "should count empty lines", -> coffeeCode = """ source.code() # comment # comment """ (expect sloc(c...
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
2cbdfbe9374582be997f467fd207555539a135f7
969
https://github.com/flosse/sloc/blob/2cbdfbe9374582be997f467fd207555539a135f7/spec/sloc.spec.coffee
88
114
flosse/sloc:spec/sloc.spec.coffee:2:raw_corpus
raw_corpus
(expect sloc(coffeeCode, "coffee" ).cloc).toEqual 2 (expect sloc(coffeeCode, "coffeescript").sloc).toEqual 1 (expect sloc(jsCode, "js" ).cloc).toEqual 2 (expect sloc(jsCode, "javascript" ).sloc).toEqual 1 (expect sloc(pyCode, "py" ).cloc).toEqual 2 (expect sl...
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
be710428f9a881ef44c1417c9e1248216a68c50e
969
https://github.com/flosse/sloc/blob/be710428f9a881ef44c1417c9e1248216a68c50e/spec/sloc.spec.coffee
41
81
flosse/sloc:spec/sloc.spec.coffee:2:completion
completion
(expect sloc(coffeeCode, "coffee" ).cloc).toEqual 2 (expect sloc(coffeeCode, "coffeescript").sloc).toEqual 1 (expect sloc(jsCode, "js" ).cloc).toEqual 2 (expect sloc(jsCode, "javascript" ).sloc).toEqual 1 (expect sloc(pyCode, "py" ).cloc).toEqual 2 (expect sl...
/** foo block comment */ source.code() /* comment */ // comment /* another block comment // */ """ pyCode = '"""\n block comment\n """\n' + 'source.code() # comment\n' + " '''\n another block comment\n '''" cCode = """ /* co...
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
be710428f9a881ef44c1417c9e1248216a68c50e
969
https://github.com/flosse/sloc/blob/be710428f9a881ef44c1417c9e1248216a68c50e/spec/sloc.spec.coffee
41
81
flosse/sloc:spec/sloc.spec.coffee:3:raw_corpus
raw_corpus
(expect sloc(coffeeCode, "coffee").cloc).toEqual 4 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect sloc(coffeeCode, "coffee").bcloc).toEqual 3 (expect sloc(jsCode,"js").cloc).toEqual 7 (expect sloc(jsCode,"js").sloc).toEqual 1 (expect sloc(jsCode,"js").bcloc).toEqual 6 (expect s...
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
be710428f9a881ef44c1417c9e1248216a68c50e
969
https://github.com/flosse/sloc/blob/be710428f9a881ef44c1417c9e1248216a68c50e/spec/sloc.spec.coffee
83
107
flosse/sloc:spec/sloc.spec.coffee:3:completion
completion
(expect sloc(coffeeCode, "coffee").cloc).toEqual 4 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect sloc(coffeeCode, "coffee").bcloc).toEqual 3 (expect sloc(jsCode,"js").cloc).toEqual 7 (expect sloc(jsCode,"js").sloc).toEqual 1 (expect sloc(jsCode,"js").bcloc).toEqual 6 (expect s...
(expect sloc(cCode,"c").cloc).toEqual 4 (expect sloc(cCode,"c").sloc).toEqual 2 (expect sloc(cCode,"c").bcloc).toEqual 3 it "should count empty lines", -> coffeeCode = """ source.code() # comment # comment """ (expect sloc(coffeeCode).nloc).toEqual 2
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
be710428f9a881ef44c1417c9e1248216a68c50e
969
https://github.com/flosse/sloc/blob/be710428f9a881ef44c1417c9e1248216a68c50e/spec/sloc.spec.coffee
83
107
flosse/sloc:spec/sloc.spec.coffee:1:raw_corpus
raw_corpus
global.buster = require "buster" global.sinon = require "sinon" buster.spec.expose() sloc = require "../src/sloc" describe "sloc", -> it "sloc should be a function", -> (expect typeof sloc).toEqual "function" it "should count all lines", -> (expect sloc("a\nb\nc").loc).toEqual 3 it "should count all...
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
1
40
flosse/sloc:spec/sloc.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript global.buster = require "buster" global.sinon = require "sinon" buster.spec.expose() sloc = require "../src/sloc" describe "sloc", -> it "sloc should be a function", -> (expect typeof sloc).toEqual "function" it "should count all lines", -> (expe...
var sloc; global.buster = require("buster"); global.sinon = require("sinon"); buster.spec.expose(); sloc = require("../src/sloc"); describe("sloc", function() { it("sloc should be a function", function() { return (expect(typeof sloc)).toEqual("function"); }); it("should count all lines", function() { ...
CoffeeScript
JavaScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
1
40
flosse/sloc:spec/sloc.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var sloc; global.buster = require("buster"); global.sinon = require("sinon"); buster.spec.expose(); sloc = require("../src/sloc"); describe("sloc", function() { it("sloc should be a function", function() { return (expect(typeof sloc)).toEqual("function")...
global.buster = require "buster" global.sinon = require "sinon" buster.spec.expose() sloc = require "../src/sloc" describe "sloc", -> it "sloc should be a function", -> (expect typeof sloc).toEqual "function" it "should count all lines", -> (expect sloc("a\nb\nc").loc).toEqual 3 it "should count all...
JavaScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
1
40
flosse/sloc:spec/sloc.spec.coffee:1:completion
completion
global.buster = require "buster" global.sinon = require "sinon" buster.spec.expose() sloc = require "../src/sloc" describe "sloc", -> it "sloc should be a function", -> (expect typeof sloc).toEqual "function" it "should count all lines", -> (expect sloc("a\nb\nc").loc).toEqual 3 it "should count all...
""" jsCode = """ // a source.code(); //comment // comment """ pyCode = """ # a source.code(); #comment # comment """ (expect sloc(coffeeCode, "coffee").cloc).toEqual 2 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect ...
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
1
40
flosse/sloc:spec/sloc.spec.coffee:2:raw_corpus
raw_corpus
it "should include block comments", -> coffeeCode = """ ### block comment ### source.code() # comment # comment """ jsCode = """ /** block comment */ source.code() /* comment */ // comment /* anothe...
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
42
80
flosse/sloc:spec/sloc.spec.coffee:2:completion
completion
it "should include block comments", -> coffeeCode = """ ### block comment ### source.code() # comment # comment """ jsCode = """ /** block comment */ source.code() /* comment */ // comment /* anothe...
""" pyCode = '"""\n block comment\n """\n' + 'source.code() # comment\n' + " '''\n another block comment\n '''" (expect sloc(coffeeCode, "coffee").cloc).toEqual 4 (expect sloc(coffeeCode, "coffee").sloc).toEqual 1 (expect sloc(coffeeCode, "coffee").bcloc).toEqual 3 (expect sloc(jsCod...
CoffeeScript
CoffeeScript
flosse/sloc
spec/sloc.spec.coffee
MIT
9781807f6218ceedd82a83d419f55fb3e7224a4c
969
https://github.com/flosse/sloc/blob/9781807f6218ceedd82a83d419f55fb3e7224a4c/spec/sloc.spec.coffee
42
80
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:raw_corpus
raw_corpus
class DumpException extends Error constructor: (message, parsedLine, snippet) -> super message @message = message @parsedLine = parsedLine @snippet = snippet toString: -> if @parsedLine? and @snippet? return '<DumpException> ' + @message + ' (line ' + @parse...
CoffeeScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
efe8ce18704ae43383e4177aa7de1a2619bd4e67
887
https://github.com/jeremyfa/yaml.js/blob/efe8ce18704ae43383e4177aa7de1a2619bd4e67/src/Exception/DumpException.coffee
1
15
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class DumpException extends Error constructor: (message, parsedLine, snippet) -> super message @message = message @parsedLine = parsedLine @snippet = snippet toString: -> if @parsedLine? and @snippet? ...
var DumpException; DumpException = class DumpException extends Error { constructor(message, parsedLine, snippet) { super(message); this.message = message; this.parsedLine = parsedLine; this.snippet = snippet; } toString() { if ((this.parsedLine != null) && (this.snippet != null)) { ret...
CoffeeScript
JavaScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
efe8ce18704ae43383e4177aa7de1a2619bd4e67
887
https://github.com/jeremyfa/yaml.js/blob/efe8ce18704ae43383e4177aa7de1a2619bd4e67/src/Exception/DumpException.coffee
1
15
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var DumpException; DumpException = class DumpException extends Error { constructor(message, parsedLine, snippet) { super(message); this.message = message; this.parsedLine = parsedLine; this.snippet = snippet; } toString() { if ((this.par...
class DumpException extends Error constructor: (message, parsedLine, snippet) -> super message @message = message @parsedLine = parsedLine @snippet = snippet toString: -> if @parsedLine? and @snippet? return '<DumpException> ' + @message + ' (line ' + @parse...
JavaScript
CoffeeScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
efe8ce18704ae43383e4177aa7de1a2619bd4e67
887
https://github.com/jeremyfa/yaml.js/blob/efe8ce18704ae43383e4177aa7de1a2619bd4e67/src/Exception/DumpException.coffee
1
15
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:completion
completion
class DumpException extends Error constructor: (message, parsedLine, snippet) -> super message @message = message @parsedLine = parsedLine @snippet = snippet
toString: -> if @parsedLine? and @snippet? return '<DumpException> ' + @message + ' (line ' + @parsedLine + ': \'' + @snippet + '\')' else return '<DumpException> ' + @message module.exports = DumpException
CoffeeScript
CoffeeScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
efe8ce18704ae43383e4177aa7de1a2619bd4e67
887
https://github.com/jeremyfa/yaml.js/blob/efe8ce18704ae43383e4177aa7de1a2619bd4e67/src/Exception/DumpException.coffee
1
15
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:raw_corpus
raw_corpus
class DumpException extends Error constructor: (@message, @parsedLine, @snippet) -> toString: -> if @parsedLine? and @snippet? return '<DumpException> ' + @message + ' (line ' + @parsedLine + ': \'' + @snippet + '\')' else return '<DumpException> ' + @message module.ex...
CoffeeScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
c6cbcf0326723c5f0013490d1fea489694790775
887
https://github.com/jeremyfa/yaml.js/blob/c6cbcf0326723c5f0013490d1fea489694790775/src/Exception/DumpException.coffee
1
11
jeremyfa/yaml.js:src/Exception/DumpException.coffee:1:completion
completion
class DumpException extends Error constructor: (@message, @parsedLine, @snippet) -> toString: ->
if @parsedLine? and @snippet? return '<DumpException> ' + @message + ' (line ' + @parsedLine + ': \'' + @snippet + '\')' else return '<DumpException> ' + @message module.exports = DumpException
CoffeeScript
CoffeeScript
jeremyfa/yaml.js
src/Exception/DumpException.coffee
MIT
c6cbcf0326723c5f0013490d1fea489694790775
887
https://github.com/jeremyfa/yaml.js/blob/c6cbcf0326723c5f0013490d1fea489694790775/src/Exception/DumpException.coffee
1
11
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:1:raw_corpus
raw_corpus
React = require 'react' debounce = require 'debounce' Immutable = require 'immutable' lang = require '../locales/lang' LiteLoadingCircle = React.createFactory require('react-lite-misc').LoadingCircle {a, div, span} = React.DOM module.exports = React.createClass propTypes: stage: React.PropTypes.instanceOf(Im...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' debounce = require 'debounce' Immutable = require 'immutable' lang = require '../locales/lang' LiteLoadingCircle = React.createFactory require('react-lite-misc').LoadingCircle {a, div, span} = React.DOM module.exports = React.createCla...
var Immutable, LiteLoadingCircle, React, a, debounce, div, lang, span; React = require('react'); debounce = require('debounce'); Immutable = require('immutable'); lang = require('../locales/lang'); LiteLoadingCircle = React.createFactory(require('react-lite-misc').LoadingCircle); ({a, div, span} = React.DOM); mo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, LiteLoadingCircle, React, a, debounce, div, lang, span; React = require('react'); debounce = require('debounce'); Immutable = require('immutable'); lang = require('../locales/lang'); LiteLoadingCircle = React.createFactory(require('react-lite-mi...
React = require 'react' debounce = require 'debounce' Immutable = require 'immutable' lang = require '../locales/lang' LiteLoadingCircle = React.createFactory require('react-lite-misc').LoadingCircle {a, div, span} = React.DOM module.exports = React.createClass propTypes: stage: React.PropTypes.instanceOf(Im...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:1:completion
completion
React = require 'react' debounce = require 'debounce' Immutable = require 'immutable' lang = require '../locales/lang' LiteLoadingCircle = React.createFactory require('react-lite-misc').LoadingCircle {a, div, span} = React.DOM module.exports = React.createClass propTypes: stage: React.PropTypes.instanceOf(Im...
@props.onRequestAfter() onClickTop: -> return if @props.stage is 'complete' @props.onRequestBefore() onScroll: (event) -> target = event.target if target.scrollTop < 10 @debouncedOnRequestBefore() else if target.scrollTop + target.clientHeight + 10 > target.scrollHeight @debounced...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:2:raw_corpus
raw_corpus
switch @props.stage.last() when 'loading' LiteLoadingCircle size: 24 when 'partial' a className: 'muted', onClick: @onClickBottom, lang.getText('load-more') else if @props.isEmpty span className: 'muted', lang.getText('no-acti...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
51
59
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript switch @props.stage.last() when 'loading' LiteLoadingCircle size: 24 when 'partial' a className: 'muted', onClick: @onClickBottom, lang.getText('load-more') else if @props.isEmpty ...
switch (this.props.stage.last()) { case 'loading': LiteLoadingCircle({ size: 24 }); break; case 'partial': a({ className: 'muted', onClick: this.onClickBottom }, lang.getText('load-more')); break; default: if (this.props.isEmpty) { span({ className: 'mut...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
51
59
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript switch (this.props.stage.last()) { case 'loading': LiteLoadingCircle({ size: 24 }); break; case 'partial': a({ className: 'muted', onClick: this.onClickBottom }, lang.getText('load-more')); break; default: if (thi...
switch @props.stage.last() when 'loading' LiteLoadingCircle size: 24 when 'partial' a className: 'muted', onClick: @onClickBottom, lang.getText('load-more') else if @props.isEmpty span className: 'muted', lang.getText('no-acti...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
51
59
jianliaoim/talk-os:talk-web/client/app/activity-container.coffee:2:completion
completion
switch @props.stage.last() when 'loading' LiteLoadingCircle size: 24 when 'partial'
a className: 'muted', onClick: @onClickBottom, lang.getText('load-more') else if @props.isEmpty span className: 'muted', lang.getText('no-activities-yet')
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/activity-container.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/activity-container.coffee
51
59
alekseykulikov/backbone-offline:spec/offline_collection_spec.coffee:1:raw_corpus
raw_corpus
describe 'Offline.Collection', -> beforeEach -> localStorage.setItem('dreams', '') @dreams = new Dreams() @collection = new Offline.Collection(@dreams) afterEach -> localStorage.clear() describe 'dirty', -> it 'return items with dirty mark', -> @dreams.add [{id: 1, dirty: false}, {id: ...
CoffeeScript
alekseykulikov/backbone-offline
spec/offline_collection_spec.coffee
MIT
f2e71813562f46f3678104f4200d20e97b2eb07e
717
https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/offline_collection_spec.coffee
1
33
alekseykulikov/backbone-offline:spec/offline_collection_spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'Offline.Collection', -> beforeEach -> localStorage.setItem('dreams', '') @dreams = new Dreams() @collection = new Offline.Collection(@dreams) afterEach -> localStorage.clear() describe 'dirty', -> it 'return items with dirty ...
describe('Offline.Collection', function() { beforeEach(function() { localStorage.setItem('dreams', ''); this.dreams = new Dreams(); return this.collection = new Offline.Collection(this.dreams); }); afterEach(function() { return localStorage.clear(); }); describe('dirty', function() { retur...
CoffeeScript
JavaScript
alekseykulikov/backbone-offline
spec/offline_collection_spec.coffee
MIT
f2e71813562f46f3678104f4200d20e97b2eb07e
717
https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/offline_collection_spec.coffee
1
33
alekseykulikov/backbone-offline:spec/offline_collection_spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('Offline.Collection', function() { beforeEach(function() { localStorage.setItem('dreams', ''); this.dreams = new Dreams(); return this.collection = new Offline.Collection(this.dreams); }); afterEach(function() { return localStorage.cl...
describe 'Offline.Collection', -> beforeEach -> localStorage.setItem('dreams', '') @dreams = new Dreams() @collection = new Offline.Collection(@dreams) afterEach -> localStorage.clear() describe 'dirty', -> it 'return items with dirty mark', -> @dreams.add [{id: 1, dirty: false}, {id: ...
JavaScript
CoffeeScript
alekseykulikov/backbone-offline
spec/offline_collection_spec.coffee
MIT
f2e71813562f46f3678104f4200d20e97b2eb07e
717
https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/offline_collection_spec.coffee
1
33
alekseykulikov/backbone-offline:spec/offline_collection_spec.coffee:1:completion
completion
describe 'Offline.Collection', -> beforeEach -> localStorage.setItem('dreams', '') @dreams = new Dreams() @collection = new Offline.Collection(@dreams) afterEach -> localStorage.clear() describe 'dirty', -> it 'return items with dirty mark', -> @dreams.add [{id: 1, dirty: false}, {id: ...
@dreams.add [{name: 'first', sid: '1'}, {name: 'second', sid: '2'}] expect(@collection.get('2').get 'name').toEqual('second') describe 'diff', -> beforeEach -> @dreams.create(name: 'item 1', sid: '1') @dreams.create(name: 'item 2', sid: '2') @dreams.create(name: 'item 3', sid: '3') ...
CoffeeScript
CoffeeScript
alekseykulikov/backbone-offline
spec/offline_collection_spec.coffee
MIT
f2e71813562f46f3678104f4200d20e97b2eb07e
717
https://github.com/alekseykulikov/backbone-offline/blob/f2e71813562f46f3678104f4200d20e97b2eb07e/spec/offline_collection_spec.coffee
1
33
ichord/At.js:spec/javascripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
1
39
ichord/At.js:spec/javascripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { var $; $ = jQuery; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); afterEach(function() ...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
1
39
ichord/At.js:spec/javascripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { var $; $ = jQuery; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return ...
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
1
39
ichord/At.js:spec/javascripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
jasmine.Ajax.install() controller = app.controller() afterEach -> jasmine.Ajax.uninstall() it "can get current data", -> simulateTypingIn $inputor expect(controller.model.fetch().length).toBe 24 it "can save current data", -> simulateTypingIn $inputor data = [{id: 1, n...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
1
39
ichord/At.js:spec/javascripts/apis.spec.coffee:2:raw_corpus
raw_corpus
simulateTypingIn $inputor request = jasmine.Ajax.requests.mostRecent() response_data = [{"name":"Jacob"}, {"name":"Joshua"}, {"name":"Jayden"}] request.respondWith status: 200 responseText: JSON.stringify(response_data) expect(controller.getOpt("data")).toBe "/atwho.json" ...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
41
79
ichord/At.js:spec/javascripts/apis.spec.coffee:2:completion
completion
simulateTypingIn $inputor request = jasmine.Ajax.requests.mostRecent() response_data = [{"name":"Jacob"}, {"name":"Joshua"}, {"name":"Jayden"}] request.respondWith status: 200 responseText: JSON.stringify(response_data) expect(controller.getOpt("data")).toBe "/atwho.json" ...
{one: 1} {two: 2} {three: 3} ] it "can load data for special flag", -> $inputor.atwho "load", "@", data expect(controller.model.fetch().length).toBe data.length it "can load data with alias", -> $inputor.atwho at: "@", alias: "at" $inputor.atwho "load", "at", data...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
41
79
ichord/At.js:spec/javascripts/apis.spec.coffee:3:raw_corpus
raw_corpus
it 'destroy', -> $inputor.atwho at: "~" view_id = app.controller('~').view.$el.attr('id') $inputor.atwho 'destroy' expect($("##{view_id}").length).toBe 0 expect($inputor.data('atwho')).toBe null expect($inputor.data('~')).toBe null it 'isSelecting correctness', -> expect($...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
81
92
ichord/At.js:spec/javascripts/apis.spec.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'destroy', -> $inputor.atwho at: "~" view_id = app.controller('~').view.$el.attr('id') $inputor.atwho 'destroy' expect($("##{view_id}").length).toBe 0 expect($inputor.data('atwho')).toBe null expect($inputor.data('~')).toBe ...
it('destroy', function() { var view_id; $inputor.atwho({ at: "~" }); view_id = app.controller('~').view.$el.attr('id'); $inputor.atwho('destroy'); expect($(`#${view_id}`).length).toBe(0); expect($inputor.data('atwho')).toBe(null); return expect($inputor.data('~')).toBe(null); }); it('isSelecting co...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
81
92
ichord/At.js:spec/javascripts/apis.spec.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('destroy', function() { var view_id; $inputor.atwho({ at: "~" }); view_id = app.controller('~').view.$el.attr('id'); $inputor.atwho('destroy'); expect($(`#${view_id}`).length).toBe(0); expect($inputor.data('atwho')).toBe(null); return expect(...
it 'destroy', -> $inputor.atwho at: "~" view_id = app.controller('~').view.$el.attr('id') $inputor.atwho 'destroy' expect($("##{view_id}").length).toBe 0 expect($inputor.data('atwho')).toBe null expect($inputor.data('~')).toBe null it 'isSelecting correctness', -> expect($...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
81
92
ichord/At.js:spec/javascripts/apis.spec.coffee:3:completion
completion
it 'destroy', -> $inputor.atwho at: "~" view_id = app.controller('~').view.$el.attr('id') $inputor.atwho 'destroy' expect($("##{view_id}").length).toBe 0 expect($inputor.data('atwho')).toBe null
expect($inputor.data('~')).toBe null it 'isSelecting correctness', -> expect($inputor.atwho 'isSelecting').toBe false simulateTypingIn $inputor expect($inputor.atwho 'isSelecting').toBe true
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
a627b5fcac22c35d52b7fb6d8a93181d2546f3c0
5,250
https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/apis.spec.coffee
81
92
ichord/At.js:spec/javascripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
1
44
ichord/At.js:spec/javascripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { var $; $ = jQuery; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); afterEach(function() ...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
1
44
ichord/At.js:spec/javascripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { var $; $ = jQuery; beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return ...
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
1
44
ichord/At.js:spec/javascripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> $ = jQuery beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null ...
simulateTypingIn $inputor expect(controller.model.fetch().length).toBe 24 it "can save current data", -> simulateTypingIn $inputor data = [{id: 1, name: "one"}, {id: 2, name: "two"}] controller.model.save(data) expect(controller.model.fetch().length).toBe 2 it "don't change data ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
1
44
ichord/At.js:spec/javascripts/apis.spec.coffee:2:raw_corpus
raw_corpus
expect(controller.getOpt("data")).toBe "/atwho.json" expect(controller.model.fetch().length).toBe 3 describe "public", -> controller = null data = [] beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load dat...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
46
84
ichord/At.js:spec/javascripts/apis.spec.coffee:2:completion
completion
expect(controller.getOpt("data")).toBe "/atwho.json" expect(controller.model.fetch().length).toBe 3 describe "public", -> controller = null data = [] beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load dat...
it "can load data with alias", -> $inputor.atwho at: "@", alias: "at" $inputor.atwho "load", "at", data expect(controller.model.fetch().length).toBe data.length it "can run it handly", -> app.setContextFor null $inputor.caret('pos', 31) $inputor.atwho "run" expect(app.con...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
46
84
ichord/At.js:spec/javascripts/apis.spec.coffee:3:raw_corpus
raw_corpus
it 'isSelecting correctness', -> expect($inputor.atwho 'isSelecting').toBe false simulateTypingIn $inputor expect($inputor.atwho 'isSelecting').toBe true
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
86
89
ichord/At.js:spec/javascripts/apis.spec.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'isSelecting correctness', -> expect($inputor.atwho 'isSelecting').toBe false simulateTypingIn $inputor expect($inputor.atwho 'isSelecting').toBe true ```
it('isSelecting correctness', function() { expect($inputor.atwho('isSelecting')).toBe(false); simulateTypingIn($inputor); return expect($inputor.atwho('isSelecting')).toBe(true); });
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
86
89
ichord/At.js:spec/javascripts/apis.spec.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('isSelecting correctness', function() { expect($inputor.atwho('isSelecting')).toBe(false); simulateTypingIn($inputor); return expect($inputor.atwho('isSelecting')).toBe(true); }); ```
it 'isSelecting correctness', -> expect($inputor.atwho 'isSelecting').toBe false simulateTypingIn $inputor expect($inputor.atwho 'isSelecting').toBe true
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
86
89
ichord/At.js:spec/javascripts/apis.spec.coffee:3:completion
completion
it 'isSelecting correctness', -> expect($inputor.atwho 'isSelecting').toBe false
simulateTypingIn $inputor expect($inputor.atwho 'isSelecting').toBe true
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
3c7f59385b9364e436dd11a8fef205fb6832f708
5,250
https://github.com/ichord/At.js/blob/3c7f59385b9364e436dd11a8fef205fb6832f708/spec/javascripts/apis.spec.coffee
86
89
ichord/At.js:spec/javascripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null beforeEac...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e
5,250
https://github.com/ichord/At.js/blob/b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e/spec/javascripts/apis.spec.coffee
1
43
ichord/At.js:spec/javascripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); afterEach(function() { return $inputor.a...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e
5,250
https://github.com/ichord/At.js/blob/b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e/spec/javascripts/apis.spec.coffee
1
43
ichord/At.js:spec/javascripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor...
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null beforeEac...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e
5,250
https://github.com/ichord/At.js/blob/b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e/spec/javascripts/apis.spec.coffee
1
43
ichord/At.js:spec/javascripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor afterEach -> $inputor.atwho 'destroy' describe "inner", -> controller = null callbacks = null beforeEac...
simulateTypingIn $inputor expect(controller.model.fetch().length).toBe 24 it "can save current data", -> simulateTypingIn $inputor data = [{id: 1, name: "one"}, {id: 2, name: "two"}] controller.model.save(data) expect(controller.model.fetch().length).toBe 2 it "don't change data ...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e
5,250
https://github.com/ichord/At.js/blob/b15ea4cecccf837f3ecb79f3356ed5b8e8bf3e3e/spec/javascripts/apis.spec.coffee
1
43
ichord/At.js:spec/javascripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); return describe("inner", function() { va...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor...
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
expect(controller.model.fetch().length).toBe 24 it "can save current data", -> simulateTypingIn $inputor data = [{id: 1, name: "one"}, {id: 2, name: "two"}] controller.model.save(data) expect(controller.model.fetch().length).toBe 2 it "don't change data setting while using remote filte...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:2:raw_corpus
raw_corpus
expect(controller.get_opt("data")).toBe "/atwho.json" expect(controller.model.fetch().length).toBe 3 describe "public", -> controller = null data = [] beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load da...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
7ed28904c51e8fe61354aadbafbe06e2b27bd588
5,250
https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/apis.spec.coffee
43
81
ichord/At.js:spec/javascripts/apis.spec.coffee:2:completion
completion
expect(controller.get_opt("data")).toBe "/atwho.json" expect(controller.model.fetch().length).toBe 3 describe "public", -> controller = null data = [] beforeEach -> controller = app.controller() data = [ {one: 1} {two: 2} {three: 3} ] it "can load da...
it "can load data with alias", -> $inputor.atwho at: "@", alias: "at" $inputor.atwho "load", "at", data expect(controller.model.fetch().length).toBe data.length it "can run it handly", -> app.set_context_for null $inputor.caret('pos', 31) $inputor.atwho "run" expect(app.c...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
7ed28904c51e8fe61354aadbafbe06e2b27bd588
5,250
https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/apis.spec.coffee
43
81
ichord/At.js:spec/javascripts/apis.spec.coffee:1:raw_corpus
raw_corpus
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
f3e706542de650f6dd1f103d9826c37f032a6ed4
5,250
https://github.com/ichord/At.js/blob/f3e706542de650f6dd1f103d9826c37f032a6ed4/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null ...
var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor); }); return describe("inner", function() { va...
CoffeeScript
JavaScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
f3e706542de650f6dd1f103d9826c37f032a6ed4
5,250
https://github.com/ichord/At.js/blob/f3e706542de650f6dd1f103d9826c37f032a6ed4/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $inputor, app; $inputor = null; app = null; describe("api", function() { beforeEach(function() { loadFixtures("inputors.html"); $inputor = $("#inputor").atwho({ at: "@", data: fixtures["names"] }); return app = getAppOf($inputor...
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
JavaScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
f3e706542de650f6dd1f103d9826c37f032a6ed4
5,250
https://github.com/ichord/At.js/blob/f3e706542de650f6dd1f103d9826c37f032a6ed4/spec/javascripts/apis.spec.coffee
1
41
ichord/At.js:spec/javascripts/apis.spec.coffee:1:completion
completion
$inputor = null app = null describe "api", -> beforeEach -> loadFixtures("inputors.html") $inputor = $("#inputor").atwho at: "@", data: fixtures["names"] app = getAppOf $inputor describe "inner", -> controller = null callbacks = null beforeEach -> controller = app.controller() ...
expect(controller.model.fetch().length).toBe 23 it "can save current data", -> simulateTypingIn $inputor data = [{id: 1, name: "one"}, {id: 2, name: "two"}] controller.model.save(data) expect(controller.model.fetch().length).toBe 2 it "don't change data setting while using remote filte...
CoffeeScript
CoffeeScript
ichord/At.js
spec/javascripts/apis.spec.coffee
MIT
f3e706542de650f6dd1f103d9826c37f032a6ed4
5,250
https://github.com/ichord/At.js/blob/f3e706542de650f6dd1f103d9826c37f032a6ed4/spec/javascripts/apis.spec.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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 ...
return unless attrs.tableFixedHeader? && scope.$eval(attrs.tableFixedHeader) == true # # Initialize # $table = $(element) $tableHeaders = null $widgetBody = $table.parents '.widget-body' $container = $('<div id="container"></div>').ap...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:raw_corpus
raw_corpus
# Clone table for fixed header $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' }).appendTo($container) # Add fixed layout if there are no column groups if scope.columnGroups.length == 0 $cloned...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
45
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Clone table for fixed header $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' }).appendTo($container) # Add fixed layout if there are no column groups ...
// Clone table for fixed header var $clonedTable, resize; $clonedTable = $table.clone().empty(); $clonedTable.css({ 'position': 'relative' }).appendTo($container); // Add fixed layout if there are no column groups if (scope.columnGroups.length === 0) { $clonedTable.css('table-layout', 'fixed'); } // Handle res...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
45
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Clone table for fixed header var $clonedTable, resize; $clonedTable = $table.clone().empty(); $clonedTable.css({ 'position': 'relative' }).appendTo($container); // Add fixed layout if there are no column groups if (scope.columnGroups.length === 0) { $clon...
# Clone table for fixed header $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' }).appendTo($container) # Add fixed layout if there are no column groups if scope.columnGroups.length == 0 $cloned...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
45
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:completion
completion
# Clone table for fixed header $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' }).appendTo($container) # Add fixed layout if there are no column groups if scope.columnGroups.length == 0 $cloned...
pos.originalLeft = $table.offset().left $container.css { width: $widgetBody[0].clientWidth height: $tableHeaders.height() top: pos.originalTop } $clonedTable .empty() .wi...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
45
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:raw_corpus
raw_corpus
$widgetBody.on 'resize', _.throttle(resize, 250, { leading: false, maxWait: 500 }) scope.$watchGroup ['sortBy', 'sortedRows'], _.throttle(resize, 200, { leading: false, trailing: true }) # # Handle scroll events # $widgetBody.on 'scroll', _.debounce(-> ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
85
123
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:completion
completion
$widgetBody.on 'resize', _.throttle(resize, 250, { leading: false, maxWait: 500 }) scope.$watchGroup ['sortBy', 'sortedRows'], _.throttle(resize, 200, { leading: false, trailing: true }) # # Handle scroll events # $widgetBody.on 'scroll', _.debounce(-> ...
if not scope.visible resize() $container.show() scope.visible = true else $container.hide() scope.visible = false , 120, { leading: false, maxWait: 200 }) # ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
85
123
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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/table/directives.tableFixedHeader.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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 ...
return unless attrs.tableFixedHeader? && scope.$eval(attrs.tableFixedHeader) == true # # Initialize # $table = $(element) $tableHeaders = null $widgetBody = $table.parents '.widget-body' $container = $('<div id="container"></div>').ap...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
43
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:raw_corpus
raw_corpus
$widgetBody.on 'resize', _.throttle(resize, 250, { leading: false, maxWait: 500 }) scope.$watch 'sortBy+sortedRows', _.throttle(resize, 200, { leading: false, trailing: true }) # # Handle scroll events # $widgetBody.on 'scroll', _.debounce(-> ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
85
123
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:completion
completion
$widgetBody.on 'resize', _.throttle(resize, 250, { leading: false, maxWait: 500 }) scope.$watch 'sortBy+sortedRows', _.throttle(resize, 200, { leading: false, trailing: true }) # # Handle scroll events # $widgetBody.on 'scroll', _.debounce(-> ...
if not scope.visible resize() $container.show() scope.visible = true else $container.hide() scope.visible = false , 120, { leading: false, maxWait: 200 }) # ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
85
123
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
39
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.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) -> return unless attrs.tableFixedHeader? && scope.$eval(attrs.tableFixedHeader) == true # # Initialize # $table = $(element) $tableHeaders = null $parent = $table.parent() $container = $('<di...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
1
39
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:raw_corpus
raw_corpus
pos = originalTop: 0 originalLeft: $table.position().left $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' 'top': '0' }).appendTo($container) # # Handle resize ev...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
41
79
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:2:completion
completion
pos = originalTop: 0 originalLeft: $table.position().left $clonedTable = $table.clone().empty() $clonedTable.css({ 'position': 'relative' 'top': '0' }).appendTo($container) # # Handle resize ev...
$container.css({ width: $parent[0].clientWidth height: $tableHeaders.height() }) $clonedTable .empty() .width($table.outerWidth()) .append($tableHeaders.clone()) .find...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
41
79
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:raw_corpus
raw_corpus
# # Handle scroll events # $parent.on 'scroll', -> scrollTop = $parent.scrollTop() elementTop = $tableHeaders.offset().top diff = pos.originalTop - elementTop if (diff > 0 && scrollTop > diff && scrollTop <= (diff + $ta...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
81
115
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee:3:completion
completion
# # Handle scroll events # $parent.on 'scroll', -> scrollTop = $parent.scrollTop() elementTop = $tableHeaders.offset().top diff = pos.originalTop - elementTop if (diff > 0 && scrollTop > diff && scrollTop <= (diff + $ta...
else $container.hide() scope.visible = false # # Cleanup # scope.$on '$destroy', -> if $container? $container.remove() $container = null $parent.off 'resize' ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
MIT
d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d57e1ea8a1e73bb1b98d5b0d7b80dc356b595ce1/cyclotron-site/app/widgets/table/directives.tableFixedHeader.coffee
81
115
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:raw_corpus
raw_corpus
GitLog = require 'git-log-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitLogUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2b2a9b6ccc55dda0429a45aae913d1a0f6666439
1,111
https://github.com/littlebee/git-time-machine/blob/2b2a9b6ccc55dda0429a45aae913d1a0f6666439/spec/git-utils-spec.coffee
1
40
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitLog = require 'git-log-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitLogUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers...
var GitLog, expectedCommits, fs, path; GitLog = require('git-log-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitLogUtils", function() { return describe("when loading file history for known file in git", function() { beforeEach(f...
CoffeeScript
JavaScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2b2a9b6ccc55dda0429a45aae913d1a0f6666439
1,111
https://github.com/littlebee/git-time-machine/blob/2b2a9b6ccc55dda0429a45aae913d1a0f6666439/spec/git-utils-spec.coffee
1
40
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitLog, expectedCommits, fs, path; GitLog = require('git-log-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitLogUtils", function() { return describe("when loading file histor...
GitLog = require 'git-log-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitLogUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
JavaScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2b2a9b6ccc55dda0429a45aae913d1a0f6666439
1,111
https://github.com/littlebee/git-time-machine/blob/2b2a9b6ccc55dda0429a45aae913d1a0f6666439/spec/git-utils-spec.coffee
1
40
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:completion
completion
GitLog = require 'git-log-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitLogUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
pass = false if pass @message = -> "Expected commit #{@actual.hash} to not equal #{JSON.stringify(@expected)}" else @message = -> messages return pass projectRoot = __dirname testFileName = path.join projectRoot, 'test-data', 'fiveCommits.txt' @testdata = G...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2b2a9b6ccc55dda0429a45aae913d1a0f6666439
1,111
https://github.com/littlebee/git-time-machine/blob/2b2a9b6ccc55dda0429a45aae913d1a0f6666439/spec/git-utils-spec.coffee
1
40
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:raw_corpus
raw_corpus
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/spec/git-utils-spec.coffee
1
47
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatche...
var GitUtils, expectedCommits, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitUtils", function() { return describe("when loading file history for known file in git", function() { beforeEa...
CoffeeScript
JavaScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/spec/git-utils-spec.coffee
1
47
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitUtils, expectedCommits, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitUtils", function() { return describe("when loading file hi...
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
JavaScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/spec/git-utils-spec.coffee
1
47
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:completion
completion
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> @addMatchers toHaveKnownValues: (expected) -> pass = true ...
else @message = -> messages return pass projectRoot = __dirname testFileName = path.join projectRoot, 'test-data', 'fiveCommits.txt' @testdata = null GitUtils.getFileCommitHistory testFileName, (commits) => @testdata = commits return waitsFor => ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/spec/git-utils-spec.coffee
1
47
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:raw_corpus
raw_corpus
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoo...
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/spec/git-utils-spec.coffee
1
30
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectR...
var GitUtils, expectedCommits, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitUtils", function() { return describe("when loading file history for known file in git", function() { beforeEa...
CoffeeScript
JavaScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/spec/git-utils-spec.coffee
1
30
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitUtils, expectedCommits, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); expectedCommits = require('./test-data/fiveCommitsExpected'); describe("GitUtils", function() { return describe("when loading file hi...
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoo...
JavaScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/spec/git-utils-spec.coffee
1
30
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:completion
completion
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' expectedCommits = require './test-data/fiveCommitsExpected' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoo...
GitUtils.getFileCommitHistory testFileName, (commits) => @testdata = commits return waitsFor => return @testdata? it "should have 5 commits", -> expect(@testdata.length).toEqual(5) it "first 5 commits should match last known good", -> for knownCommit, index in expect...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
2e2083de16290ed3b83db2b5dfca96d090168d83
1,111
https://github.com/littlebee/git-time-machine/blob/2e2083de16290ed3b83db2b5dfca96d090168d83/spec/git-utils-spec.coffee
1
30
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:raw_corpus
raw_corpus
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoot, 'test-data', 'fiveCommits.txt' @testdata = null ...
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
3d03801db29c1f9d92550c8bfed32b21c08ced4c
1,111
https://github.com/littlebee/git-time-machine/blob/3d03801db29c1f9d92550c8bfed32b21c08ced4c/spec/git-utils-spec.coffee
1
20
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoot, 'te...
var GitUtils, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); describe("GitUtils", function() { return describe("when loading file history for known file in git", function() { beforeEach(function() { var projectRoot, testFileName; projectRoot = __dirna...
CoffeeScript
JavaScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
3d03801db29c1f9d92550c8bfed32b21c08ced4c
1,111
https://github.com/littlebee/git-time-machine/blob/3d03801db29c1f9d92550c8bfed32b21c08ced4c/spec/git-utils-spec.coffee
1
20
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitUtils, fs, path; GitUtils = require('../lib/git-utils'); fs = require('fs'); path = require('path'); describe("GitUtils", function() { return describe("when loading file history for known file in git", function() { beforeEach(function() { var...
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoot, 'test-data', 'fiveCommits.txt' @testdata = null ...
JavaScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
3d03801db29c1f9d92550c8bfed32b21c08ced4c
1,111
https://github.com/littlebee/git-time-machine/blob/3d03801db29c1f9d92550c8bfed32b21c08ced4c/spec/git-utils-spec.coffee
1
20
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:completion
completion
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoot, 'test-data', 'fiveCommits.txt' @testdata = null
GitUtils.getFileCommitHistory testFileName, (commits) => @testdata = commits return waitsFor => return @testdata? it "should have 5 commits", -> expect(@testdata.length).toEqual(5)
CoffeeScript
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
3d03801db29c1f9d92550c8bfed32b21c08ced4c
1,111
https://github.com/littlebee/git-time-machine/blob/3d03801db29c1f9d92550c8bfed32b21c08ced4c/spec/git-utils-spec.coffee
1
20
littlebee/git-time-machine:spec/git-utils-spec.coffee:1:raw_corpus
raw_corpus
GitUtils = require '../lib/git-utils' fs = require 'fs' path = require 'path' describe "GitUtils", -> describe "when loading file history for known file in git", -> beforeEach -> projectRoot = __dirname testFileName = path.join projectRoot, 'spec', 'test-data', 'fiveCommits.txt' @testdata = nul...
CoffeeScript
littlebee/git-time-machine
spec/git-utils-spec.coffee
MIT
bb7b15fc68e681347185003ddb534366465c5b36
1,111
https://github.com/littlebee/git-time-machine/blob/bb7b15fc68e681347185003ddb534366465c5b36/spec/git-utils-spec.coffee
1
21