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
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _renderTimeline: function() { var commits; this.timeplot || (this.timeplot = new GitTimeplot(this.$element)); commits = GitLog.getCommitHistory(this.file); this.timeplot.render(this.editor, commits); this._renderStats(commits); }, _rend...
_renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) commits = GitLog.getCommitHistory @file @timeplot.render(@editor, commits) @_renderStats(commits) return _renderStats: (commits) -> content = "" if commits.length > 0 byAuthor = _.indexBy commits, 'authorName' au...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-time-machine-view.coffee
62
84
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:completion
completion
_renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) commits = GitLog.getCommitHistory @file @timeplot.render(@editor, commits) @_renderStats(commits) return _renderStats: (commits) -> content = "" if commits.length > 0
byAuthor = _.indexBy commits, 'authorName' authorCount = _.keys(byAuthor).length durationInMs = moment.unix(commits[commits.length - 1].authorDate).diff(moment.unix(commits[0].authorDate)) timeSpan = moment.duration(durationInMs).humanize() content = "<span class='total-commits'>#{commits.length...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-time-machine-view.coffee
62
84
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:raw_corpus
raw_corpus
_renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(@editor, commits) @_renderStats(commits) return return _renderStats: (commits) -> content = "" if commits.length > 0 byAuthor = _.indexBy com...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-time-machine-view.coffee
62
85
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(@editor, commits) @_renderStats(commits) return return _renderStats: (commits) -> content = ""...
({ _renderTimeline: function() { this.timeplot || (this.timeplot = new GitTimeplot(this.$element)); GitUtils.getFileCommitHistory(this.file, (commits) => { this.timeplot.render(this.editor, commits); this._renderStats(commits); }); }, _renderStats: function(commits) { var authorCount, ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-time-machine-view.coffee
62
85
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _renderTimeline: function() { this.timeplot || (this.timeplot = new GitTimeplot(this.$element)); GitUtils.getFileCommitHistory(this.file, (commits) => { this.timeplot.render(this.editor, commits); this._renderStats(commits); }); }, ...
_renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(@editor, commits) @_renderStats(commits) return return _renderStats: (commits) -> content = "" if commits.length > 0 byAuthor = _.indexBy com...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-time-machine-view.coffee
62
85
littlebee/git-time-machine:lib/git-time-machine-view.coffee:3:completion
completion
_renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(@editor, commits) @_renderStats(commits) return return _renderStats: (commits) -> content = ""
if commits.length > 0 byAuthor = _.indexBy commits, 'authorName' authorCount = _.keys(byAuthor).length durationInMs = moment.unix(commits[commits.length - 1].authorDate).diff(moment.unix(commits[0].authorDate)) timeSpan = moment.duration(durationInMs).humanize() content = "<span class='tot...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
190e4717715c947fa83ea1d1a65569452b12fc8f
1,111
https://github.com/littlebee/git-time-machine/blob/190e4717715c947fa83ea1d1a65569452b12fc8f/lib/git-time-machine-view.coffee
62
85
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' GitRevisionView = require './git-revision-view' module.exports = class GitTimeMachineView constructor: (serializedS...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' GitRevisionView = require './git-revision-view' module.expor...
var $, GitRevisionView, GitTimeMachineView, GitTimeplot, GitUtils, View, _, path, str; ({$, View} = require("atom-space-pen-views")); path = require('path'); _ = require('underscore-plus'); str = require('bumble-strings'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); GitRevisionVie...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitRevisionView, GitTimeMachineView, GitTimeplot, GitUtils, View, _, path, str; ({$, View} = require("atom-space-pen-views")); path = require('path'); _ = require('underscore-plus'); str = require('bumble-strings'); GitUtils = require('./git-utils'); G...
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' GitRevisionView = require './git-revision-view' module.exports = class GitTimeMachineView constructor: (serializedS...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' GitRevisionView = require './git-revision-view' module.exports = class GitTimeMachineView constructor: (serializedS...
render: () -> unless @file? @_renderPlaceholder() else @$element.text("") @_renderTimeline() return @$element # Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> return @$element.rem...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:raw_corpus
raw_corpus
@timeplot?.show() getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (co...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
51
77
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @timeplot?.show() getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplo...
var ref; if ((ref = this.timeplot) != null) { ref.show()({ getElement: function() { return this.$element.get(0); }, _renderPlaceholder: function() { this.$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>"); }, _renderTimeline: function() { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
51
77
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref; if ((ref = this.timeplot) != null) { ref.show()({ getElement: function() { return this.$element.get(0); }, _renderPlaceholder: function() { this.$element.html("<div class='placeholder'>Select a file in the git repo to see timelin...
@timeplot?.show() getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (co...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
51
77
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:completion
completion
@timeplot?.show() getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element)
GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(@editor, commits) @_renderStats(commits) return return _renderStats: (commits) -> @$element.append """ <div class='stats'> <span class='total-commits'>#{commits.length}</span> total commits </div> ""...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
308af35936f03f539a0eb47bac5933a5e5889410
1,111
https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-time-machine-view.coffee
51
77
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) ...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (se...
var $, GitTimeMachineView, GitTimeplot, GitUtils, View, _, path, str; ({$, View} = require("atom-space-pen-views")); path = require('path'); _ = require('underscore-plus'); str = require('bumble-strings'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachine...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitTimeplot, GitUtils, View, _, path, str; ({$, View} = require("atom-space-pen-views")); path = require('path'); _ = require('underscore-plus'); str = require('bumble-strings'); GitUtils = require('./git-utils'); GitTimeplot = requ...
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
{$, View} = require "atom-space-pen-views" path = require('path') _ = require('underscore-plus') str = require('bumble-strings') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) ...
@_renderPlaceholder() else @$element.text("") @_renderTimeline() return @$element # Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> return @$element.remove() hide: -> @timeplot?.hide...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:raw_corpus
raw_corpus
getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element, @file) GitUtils.getFileCommitHistory @file, (commits) => ...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
51
74
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element, @file) ...
({ getElement: function() { return this.$element.get(0); }, _renderPlaceholder: function() { this.$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>"); }, _renderTimeline: function() { this.timeplot || (this.timeplot = new GitTimeplot(this.$element, this.fi...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
51
74
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ getElement: function() { return this.$element.get(0); }, _renderPlaceholder: function() { this.$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>"); }, _renderTimeline: function() { this.timeplot || ...
getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element, @file) GitUtils.getFileCommitHistory @file, (commits) => ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
51
74
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:completion
completion
getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element, @file) GitUtils.getFileCommitHistory @file, (commits) => ...
@_renderStats(commits) return return _renderStats: (commits) -> @$element.append """ <div class='stats'> <span class='total-commits'>#{commits.length}</span> total commits </div> """ return
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-time-machine-view.coffee
51
74
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
{$, View} = require "atom-space-pen-views" _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@f...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {$, View} = require "atom-space-pen-views" _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file)...
var $, GitTimeMachineView, GitTimeplot, GitUtils, View, _; ({$, View} = require("atom-space-pen-views")); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, optio...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitTimeplot, GitUtils, View, _; ({$, View} = require("atom-space-pen-views")); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class Gi...
{$, View} = require "atom-space-pen-views" _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@f...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
{$, View} = require "atom-space-pen-views" _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@f...
# Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> return @$element.remove() hide: -> @timeplot?.hide() # so it knows to hide the popup show: -> @timeplot?.show() getElement: -> return @$ele...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:raw_corpus
raw_corpus
@$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(commits) @_renderStats(commits) return return ...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
51
69
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:completion
completion
@$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</div>") return _renderTimeline: () -> @timeplot ||= new GitTimeplot(@$element) GitUtils.getFileCommitHistory @file, (commits) => @timeplot.render(commits) @_renderStats(commits) return
return _renderStats: (commits) -> @$element.append """ <div class='stats'> <span class='total-commits'>#{commits.length}</span> total commits </div> """ return
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-time-machine-view.coffee
51
69
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile...
var $, GitTimeMachineView, GitTimeplot, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitTimeplot, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class GitTimeMachineV...
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
# Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> return @$element.remove() hide: -> @timeplot?.hide() # so it knows to hide the popup show: -> @timeplot?.show() getElement: -> return @$ele...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile...
var $, GitTimeMachineView, GitTimeplot, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitTimeplot, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); GitTimeplot = require('./git-timeplot'); module.exports = GitTimeMachineView = class GitTimeMachineV...
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' GitTimeplot = require './git-timeplot' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> ...
# Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> return @$element.remove() getElement: -> return @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
1
50
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:raw_corpus
raw_corpus
return return _renderStats: (commits) -> @$element.append """ <div class='stats'> <span class='total-commits'>#{commits.length}</span> total commits </div> """ return
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
51
60
littlebee/git-time-machine:lib/git-time-machine-view.coffee:2:completion
completion
return return _renderStats: (commits) -> @$element.append """
<div class='stats'> <span class='total-commits'>#{commits.length}</span> total commits </div> """ return
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
b02b7c15645ffd2a7b53c73f3f89441ffe5ab009
1,111
https://github.com/littlebee/git-time-machine/blob/b02b7c15645ffd2a7b53c73f3f89441ffe5ab009/lib/git-time-machine-view.coffee
51
60
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-time-machine-view.coffee
1
48
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) rende...
var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { this.render(options.file); } setFile(file) { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-time-machine-view.coffee
1
48
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { ...
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-time-machine-view.coffee
1
48
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
# Returns an object that can be retrieved when package is activated serialize: -> return null # Tear down any state and detach destroy: -> @$element.remove() getElement: -> @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo t...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
75db344a83bc61673bfb7c5d59cd3ac78c90e095
1,111
https://github.com/littlebee/git-time-machine/blob/75db344a83bc61673bfb7c5d59cd3ac78c90e095/lib/git-time-machine-view.coffee
1
48
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-time-machine-view.coffee
1
47
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) rende...
var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { this.render(options.file); } setFile(file) { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-time-machine-view.coffee
1
47
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { ...
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-time-machine-view.coffee
1
47
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> @render(file) render: (@file) -> @$element = $("<div class='git-time-mac...
# Returns an object that can be retrieved when package is activated serialize: -> # Tear down any state and detach destroy: -> @$element.remove() getElement: -> @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git repo to see timeline</...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
df9b6e09e4d049ee5092ade4d27faebf55fa0fb6
1,111
https://github.com/littlebee/git-time-machine/blob/df9b6e09e4d049ee5092ade4d27faebf55fa0fb6/lib/git-time-machine-view.coffee
1
47
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:raw_corpus
raw_corpus
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> render(file) render: (@file) -> @$element = $("<div class='git-time-mach...
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-time-machine-view.coffee
1
45
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> render(file) render...
var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { this.render(options.file); } setFile(file) { ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-time-machine-view.coffee
1
45
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $, GitTimeMachineView, GitUtils, _, jQuery; $ = jQuery = require('jquery'); _ = require('underscore-plus'); GitUtils = require('./git-utils'); module.exports = GitTimeMachineView = class GitTimeMachineView { constructor(serializedState, options = {}) { ...
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> render(file) render: (@file) -> @$element = $("<div class='git-time-mach...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-time-machine-view.coffee
1
45
littlebee/git-time-machine:lib/git-time-machine-view.coffee:1:completion
completion
$ = jQuery = require('jquery') _ = require('underscore-plus') GitUtils = require './git-utils' module.exports = class GitTimeMachineView constructor: (serializedState, options={}) -> @render(options.file) setFile: (file) -> render(file) render: (@file) -> @$element = $("<div class='git-time-mach...
return @$element # Returns an object that can be retrieved when package is activated serialize: -> # Tear down any state and detach destroy: -> @$element.remove() getElement: -> @$element.get(0) _renderPlaceholder: () -> @$element.html("<div class='placeholder'>Select a file in the git r...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-time-machine-view.coffee
MIT
5545cea64434a8c151856e362471555ead365199
1,111
https://github.com/littlebee/git-time-machine/blob/5545cea64434a8c151856e362471555ead365199/lib/git-time-machine-view.coffee
1
45
mauricemach/zappa:test/all.test.coffee:1:raw_corpus
raw_corpus
puts = console.log soda = require 'soda' assert = require 'assert' {spawn} = require 'child_process' zappa_a = spawn 'zappa', ['-p', '4440', 'hi.coffee'], {cwd: 'examples/'} zappa_b = spawn 'zappa', ['-p', '4441', 'partials.coffee'], {cwd: 'examples/'} zappa_c = spawn 'zappa', ['-p', '4442', 'websockets.coffee'], ...
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
1
43
mauricemach/zappa:test/all.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript puts = console.log soda = require 'soda' assert = require 'assert' {spawn} = require 'child_process' zappa_a = spawn 'zappa', ['-p', '4440', 'hi.coffee'], {cwd: 'examples/'} zappa_b = spawn 'zappa', ['-p', '4441', 'partials.coffee'], {cwd: 'examples/'} zappa...
var assert, browser, browser_b, puts, soda, spawn, zappa_a, zappa_b, zappa_c; puts = console.log; soda = require('soda'); assert = require('assert'); ({spawn} = require('child_process')); zappa_a = spawn('zappa', ['-p', '4440', 'hi.coffee'], { cwd: 'examples/' }); zappa_b = spawn('zappa', ['-p', '4441', 'partia...
CoffeeScript
JavaScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
1
43
mauricemach/zappa:test/all.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var assert, browser, browser_b, puts, soda, spawn, zappa_a, zappa_b, zappa_c; puts = console.log; soda = require('soda'); assert = require('assert'); ({spawn} = require('child_process')); zappa_a = spawn('zappa', ['-p', '4440', 'hi.coffee'], { cwd: 'examples...
puts = console.log soda = require 'soda' assert = require 'assert' {spawn} = require 'child_process' zappa_a = spawn 'zappa', ['-p', '4440', 'hi.coffee'], {cwd: 'examples/'} zappa_b = spawn 'zappa', ['-p', '4441', 'partials.coffee'], {cwd: 'examples/'} zappa_c = spawn 'zappa', ['-p', '4442', 'websockets.coffee'], ...
JavaScript
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
1
43
mauricemach/zappa:test/all.test.coffee:1:completion
completion
puts = console.log soda = require 'soda' assert = require 'assert' {spawn} = require 'child_process' zappa_a = spawn 'zappa', ['-p', '4440', 'hi.coffee'], {cwd: 'examples/'} zappa_b = spawn 'zappa', ['-p', '4441', 'partials.coffee'], {cwd: 'examples/'} zappa_c = spawn 'zappa', ['-p', '4442', 'websockets.coffee'], ...
host: 'localhost' port: 4444 url: 'http://localhost:4440' browser: 'firefox' browser.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser.session (err) -> browser.open '/', (err, body) -> browser.assertTextPresent 'hi', (error, body) -> if error c...
CoffeeScript
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
1
43
mauricemach/zappa:test/all.test.coffee:2:raw_corpus
raw_corpus
browser_b.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser_b.session (error) -> browser_b.open '/', (error, body) -> browser_b.assertTextPresent 'coffeescript', (error, body) -> throw error if error browser_b.assertTextPresent 'ruby', (error, body) ->...
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
45
83
mauricemach/zappa:test/all.test.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript browser_b.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser_b.session (error) -> browser_b.open '/', (error, body) -> browser_b.assertTextPresent 'coffeescript', (error, body) -> throw error if error ...
var browser_c; browser_b.on('command', function(cmd, args) { return console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ')); }); browser_b.session(function(error) { return browser_b.open('/', function(error, body) { return browser_b.assertTextPresent('coffeescript', function(error, body) { if (error...
CoffeeScript
JavaScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
45
83
mauricemach/zappa:test/all.test.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var browser_c; browser_b.on('command', function(cmd, args) { return console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ')); }); browser_b.session(function(error) { return browser_b.open('/', function(error, body) { return browser_b.assertTextPresent(...
browser_b.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser_b.session (error) -> browser_b.open '/', (error, body) -> browser_b.assertTextPresent 'coffeescript', (error, body) -> throw error if error browser_b.assertTextPresent 'ruby', (error, body) ->...
JavaScript
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
45
83
mauricemach/zappa:test/all.test.coffee:2:completion
completion
browser_b.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser_b.session (error) -> browser_b.open '/', (error, body) -> browser_b.assertTextPresent 'coffeescript', (error, body) -> throw error if error browser_b.assertTextPresent 'ruby', (error, body) ->...
port: 4444 url: 'http://localhost:4442' browser: 'firefox' browser_c.on 'command', (cmd, args) -> console.log ' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', ') browser_c.session (error) -> browser_c.open '/', (error, body) -> browser_c.type 'box', 'ping', (error, body) -> browser_c.setTimeout 5000, (er...
CoffeeScript
CoffeeScript
mauricemach/zappa
test/all.test.coffee
MIT
27def6bea67fe61916c8befcbd699066a320348f
943
https://github.com/mauricemach/zappa/blob/27def6bea67fe61916c8befcbd699066a320348f/test/all.test.coffee
45
83
jnordberg/wintersmith:src/plugins/jade.coffee:1:raw_corpus
raw_corpus
async = require 'async' fs = require 'fs' jade = require 'jade-legacy' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, Buffer.from @fn(locals) catch error ...
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
ceb76edfb08fe710d3ecee5390b46007821fc9f1
3,484
https://github.com/jnordberg/wintersmith/blob/ceb76edfb08fe710d3ecee5390b46007821fc9f1/src/plugins/jade.coffee
1
33
jnordberg/wintersmith:src/plugins/jade.coffee:1:completion
completion
async = require 'async' fs = require 'fs' jade = require 'jade-legacy' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, Buffer.from @fn(locals) catch error ...
JadeTemplate.fromFile = (filepath, callback) -> async.waterfall [ (callback) -> fs.readFile filepath.full, callback (buffer, callback) => conf = env.config.jade or {} conf.filename = filepath.full try rv = jade.compile buffer.toString(), conf callback ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
ceb76edfb08fe710d3ecee5390b46007821fc9f1
3,484
https://github.com/jnordberg/wintersmith/blob/ceb76edfb08fe710d3ecee5390b46007821fc9f1/src/plugins/jade.coffee
1
33
jnordberg/wintersmith:src/plugins/jade.coffee:1:raw_corpus
raw_corpus
async = require 'async' fs = require 'fs' jade = require 'jade-legacy' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, new Buffer @fn(locals) catch error ...
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
31ddafaa45306b3b8ac57cd99873c9157c703822
3,484
https://github.com/jnordberg/wintersmith/blob/31ddafaa45306b3b8ac57cd99873c9157c703822/src/plugins/jade.coffee
1
33
jnordberg/wintersmith:src/plugins/jade.coffee:1:completion
completion
async = require 'async' fs = require 'fs' jade = require 'jade-legacy' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, new Buffer @fn(locals) catch error ...
JadeTemplate.fromFile = (filepath, callback) -> async.waterfall [ (callback) -> fs.readFile filepath.full, callback (buffer, callback) => conf = env.config.jade or {} conf.filename = filepath.full try rv = jade.compile buffer.toString(), conf callback ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
31ddafaa45306b3b8ac57cd99873c9157c703822
3,484
https://github.com/jnordberg/wintersmith/blob/31ddafaa45306b3b8ac57cd99873c9157c703822/src/plugins/jade.coffee
1
33
jnordberg/wintersmith:src/plugins/jade.coffee:1:raw_corpus
raw_corpus
async = require 'async' fs = require 'fs' jade = require 'jade' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, new Buffer @fn(locals) catch error call...
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
c9efc8b503a1a4248f5b6a14d7bc672f7d9ad89f
3,484
https://github.com/jnordberg/wintersmith/blob/c9efc8b503a1a4248f5b6a14d7bc672f7d9ad89f/src/plugins/jade.coffee
1
33
jnordberg/wintersmith:src/plugins/jade.coffee:1:completion
completion
async = require 'async' fs = require 'fs' jade = require 'jade' path = require 'path' module.exports = (env, callback) -> class JadeTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, new Buffer @fn(locals) catch error call...
JadeTemplate.fromFile = (filepath, callback) -> async.waterfall [ (callback) -> fs.readFile filepath.full, callback (buffer, callback) => conf = env.config.jade or {} conf.filename = filepath.full try rv = jade.compile buffer.toString(), conf callback ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/plugins/jade.coffee
MIT
c9efc8b503a1a4248f5b6a14d7bc672f7d9ad89f
3,484
https://github.com/jnordberg/wintersmith/blob/c9efc8b503a1a4248f5b6a14d7bc672f7d9ad89f/src/plugins/jade.coffee
1
33
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:1:raw_corpus
raw_corpus
helpers.index_of: index_of: (array, item, from) -> return array.indexOf item, from if array.indexOf for other, index in array if other is item and (not from or (from <= index)) return index -1 # Does a list include a value?
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
10
17
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:1:completion
completion
helpers.index_of: index_of: (array, item, from) -> return array.indexOf item, from if array.indexOf for other, index in array if other is item and (not from or (from <= index))
return index -1 # Does a list include a value?
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
10
17
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:2:raw_corpus
raw_corpus
helpers.include: include: (list, value) -> index_of(list, value) >= 0 # Peek at the beginning of a given string to see if it matches a sequence.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
18
21
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:3:raw_corpus
raw_corpus
helpers.starts: starts: (string, literal, start) -> string.substring(start, (start or 0) + literal.length) is literal # Trim out all falsy values from an array.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
22
25
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:5:raw_corpus
raw_corpus
helpers.count: count: (string, letter) -> num: 0 pos: index_of string, letter while pos isnt -1 num: + 1 pos: index_of string, letter, pos + 1 num # Merge objects, returning a fresh copy with attributes from both sides. # Used every time `BaseNode#compile` is called, to allow properties in the # option...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
29
39
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:5:completion
completion
helpers.count: count: (string, letter) -> num: 0 pos: index_of string, letter while pos isnt -1 num: + 1
pos: index_of string, letter, pos + 1 num # Merge objects, returning a fresh copy with attributes from both sides. # Used every time `BaseNode#compile` is called, to allow properties in the # options hash to propagate down the tree without polluting other branches.
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
29
39
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:6:raw_corpus
raw_corpus
helpers.merge: merge: (options, overrides) -> fresh: {} (fresh[key]: val) for key, val of options (fresh[key]: val) for key, val of overrides if overrides fresh # Extend a source object with the properties of another object (shallow copy). # We use this to simulate Node's deprecated `process.mixin`
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
40
47
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:6:completion
completion
helpers.merge: merge: (options, overrides) -> fresh: {} (fresh[key]: val) for key, val of options (fresh[key]: val) for key, val of overrides if overrides
fresh # Extend a source object with the properties of another object (shallow copy). # We use this to simulate Node's deprecated `process.mixin`
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
40
47
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:7:raw_corpus
raw_corpus
helpers.extend: extend: (object, properties) -> (object[key]: val) for key, val of properties # Return a completely flattened version of an array. Handy for getting a # list of `children` from the nodes.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
48
52
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:8:raw_corpus
raw_corpus
helpers.flatten: flatten: (array) -> memo: [] for item in array if item instanceof Array then memo: memo.concat(item) else memo.push(item) memo # Delete a key from an object, returning the value. Useful when a node is # looking for a particular method in an options hash.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
53
60
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:8:completion
completion
helpers.flatten: flatten: (array) -> memo: [] for item in array if item instanceof Array then memo: memo.concat(item) else memo.push(item)
memo # Delete a key from an object, returning the value. Useful when a node is # looking for a particular method in an options hash.
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
53
60
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:9:raw_corpus
raw_corpus
helpers.del: del: (obj, key) -> val: obj[key] delete obj[key] val # Matches a balanced group such as a single or double-quoted string. Pass in # a series of delimiters, all of which must be nested correctly within the # contents of the string. This method allows us to have strings within # interpolations within ...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
61
69
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:10:raw_corpus
raw_corpus
helpers.balanced_string: balanced_string: (str, delimited, options) -> options: or {} slash: delimited[0][0] is '/' levels: [] i: 0 while i < str.length if levels.length and starts str, '\\', i i: + 1 else for pair in delimited [open, close]: pair if levels.length and start...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
70
95
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/helpers.coffee:10:completion
completion
helpers.balanced_string: balanced_string: (str, delimited, options) -> options: or {} slash: delimited[0][0] is '/' levels: [] i: 0 while i < str.length if levels.length and starts str, '\\', i i: + 1 else for pair in delimited [open, close]: pair if levels.length and start...
i: + close.length - 1 i: + 1 unless levels.length break else if starts str, open, i levels.push(pair) i: + open.length - 1 break break if not levels.length or slash and starts str, '\n', i i: + 1 if levels.length return false if slash throw new...
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/helpers.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/helpers.coffee
70
95
Pagedraw/pagedraw:e2e-tests/editor-load-clean-test.coffee:1:raw_corpus
raw_corpus
_l = require 'lodash' jsondiffpatch = require 'jsondiffpatch' {foreachDoc, serializeAddress} = require '../src/migrations/map_prod' start_browser = require './start-browser' load_editor = (browser, docjson, addr) -> browser.newPage().then (page) -> # page.on('console', (msg) -> console.log('PAGE LOG:', ms...
CoffeeScript
Pagedraw/pagedraw
e2e-tests/editor-load-clean-test.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/editor-load-clean-test.coffee
1
46
Pagedraw/pagedraw:e2e-tests/editor-load-clean-test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _l = require 'lodash' jsondiffpatch = require 'jsondiffpatch' {foreachDoc, serializeAddress} = require '../src/migrations/map_prod' start_browser = require './start-browser' load_editor = (browser, docjson, addr) -> browser.newPage().then (page) -> ...
var _l, foreachDoc, found_difference, jsondiffpatch, load_editor, serializeAddress, start_browser; _l = require('lodash'); jsondiffpatch = require('jsondiffpatch'); ({foreachDoc, serializeAddress} = require('../src/migrations/map_prod')); start_browser = require('./start-browser'); load_editor = function(browser, ...
CoffeeScript
JavaScript
Pagedraw/pagedraw
e2e-tests/editor-load-clean-test.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/editor-load-clean-test.coffee
1
46
Pagedraw/pagedraw:e2e-tests/editor-load-clean-test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _l, foreachDoc, found_difference, jsondiffpatch, load_editor, serializeAddress, start_browser; _l = require('lodash'); jsondiffpatch = require('jsondiffpatch'); ({foreachDoc, serializeAddress} = require('../src/migrations/map_prod')); start_browser = requir...
_l = require 'lodash' jsondiffpatch = require 'jsondiffpatch' {foreachDoc, serializeAddress} = require '../src/migrations/map_prod' start_browser = require './start-browser' load_editor = (browser, docjson, addr) -> browser.newPage().then (page) -> # page.on('console', (msg) -> console.log('PAGE LOG:', ms...
JavaScript
CoffeeScript
Pagedraw/pagedraw
e2e-tests/editor-load-clean-test.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/editor-load-clean-test.coffee
1
46
Pagedraw/pagedraw:e2e-tests/editor-load-clean-test.coffee:1:completion
completion
_l = require 'lodash' jsondiffpatch = require 'jsondiffpatch' {foreachDoc, serializeAddress} = require '../src/migrations/map_prod' start_browser = require './start-browser' load_editor = (browser, docjson, addr) -> browser.newPage().then (page) -> # page.on('console', (msg) -> console.log('PAGE LOG:', ms...
page.close() return postLoad found_difference = false start_browser().then (browser) -> foreachDoc (docjson, addr) -> load_editor(browser, docjson, addr).then(([after_load, after_normalize]) -> if not _l.isEqual(docjson, after_load) console.log 'FOUND DIFFERENCE...
CoffeeScript
CoffeeScript
Pagedraw/pagedraw
e2e-tests/editor-load-clean-test.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/editor-load-clean-test.coffee
1
46
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false Vue: false } beautify: (text, lang...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/eslint.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { Java...
"use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Beautifier { beautify(text, language, options) { ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/eslint.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Bea...
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false Vue: false } beautify: (text, lang...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/eslint.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false Vue: false } beautify: (text, lang...
editor = atom.workspace.getActiveTextEditor() filePath = editor.getPath() projectPath = atom.project.relativizePath(filePath)[0] result = null allowUnsafeNewFunction -> importPath = Path.join(projectPath, 'node_modules', 'eslint') try CLIEngine = require(importPath).CL...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/eslint.coffee
1
34
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
7627a9239a53e788827e2552adb2c3fadbeb4cde
1,503
https://github.com/Glavin001/atom-beautify/blob/7627a9239a53e788827e2552adb2c3fadbeb4cde/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { Java...
"use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Beautifier { beautify(text, language, options) { ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
7627a9239a53e788827e2552adb2c3fadbeb4cde
1,503
https://github.com/Glavin001/atom-beautify/blob/7627a9239a53e788827e2552adb2c3fadbeb4cde/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Bea...
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
7627a9239a53e788827e2552adb2c3fadbeb4cde
1,503
https://github.com/Glavin001/atom-beautify/blob/7627a9239a53e788827e2552adb2c3fadbeb4cde/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
editor = atom.workspace.getActiveTextEditor() filePath = editor.getPath() projectPath = atom.project.relativizePath(filePath)[0] result = null allowUnsafeNewFunction -> importPath = Path.join(projectPath, 'node_modules', 'eslint') try CLIEngine = require(importPath).CL...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
7627a9239a53e788827e2552adb2c3fadbeb4cde
1,503
https://github.com/Glavin001/atom-beautify/blob/7627a9239a53e788827e2552adb2c3fadbeb4cde/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
e314fdf0992148e782b66a4d49dc0524fd349401
1,503
https://github.com/Glavin001/atom-beautify/blob/e314fdf0992148e782b66a4d49dc0524fd349401/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { Java...
"use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Beautifier { beautify(text, language, options) { ...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
e314fdf0992148e782b66a4d49dc0524fd349401
1,503
https://github.com/Glavin001/atom-beautify/blob/e314fdf0992148e782b66a4d49dc0524fd349401/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, ESLintFixer, Path, allowUnsafeNewFunction; Beautifier = require('./beautifier'); Path = require('path'); ({allowUnsafeNewFunction} = require('loophole')); module.exports = ESLintFixer = (function() { class ESLintFixer extends Bea...
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
e314fdf0992148e782b66a4d49dc0524fd349401
1,503
https://github.com/Glavin001/atom-beautify/blob/e314fdf0992148e782b66a4d49dc0524fd349401/src/beautifiers/eslint.coffee
1
33
Glavin001/atom-beautify:src/beautifiers/eslint.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') Path = require('path') {allowUnsafeNewFunction} = require 'loophole' module.exports = class ESLintFixer extends Beautifier name: "ESLint Fixer" link: "https://github.com/eslint/eslint" options: { JavaScript: false } beautify: (text, language, options) ...
editor = atom.workspace.getActiveTextEditor() filePath = editor.getPath() projectPath = atom.project.relativizePath(filePath)[0] result = null allowUnsafeNewFunction => importPath = Path.join(projectPath, 'node_modules', 'eslint') try CLIEngine = require(importPath).CL...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/eslint.coffee
MIT
e314fdf0992148e782b66a4d49dc0524fd349401
1,503
https://github.com/Glavin001/atom-beautify/blob/e314fdf0992148e782b66a4d49dc0524fd349401/src/beautifiers/eslint.coffee
1
33
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: (@$log, @personService) -> setPeople = => @personService.get().then (results) => @people = results @insertPerson = (person) => @personService.save(person) .success (results) => @error = '' @person = {} setPeople() .error (results, status) => if status...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/personController.coffee
1
22
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: (@$log, @personService) -> setPeople = => @personService.get().then (results) => @people = results @insertPerson = (person) => @personService.save(person) .success (results) => @error = '' @person = {} ...
var Controller; Controller = class Controller { constructor($log, personService) { var setPeople; this.$log = $log; this.personService = personService; setPeople = () => { return this.personService.get().then((results) => { return this.people = results; }); }; this.insertP...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/personController.coffee
1
22
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Controller; Controller = class Controller { constructor($log, personService) { var setPeople; this.$log = $log; this.personService = personService; setPeople = () => { return this.personService.get().then((results) => { return t...
class Controller constructor: (@$log, @personService) -> setPeople = => @personService.get().then (results) => @people = results @insertPerson = (person) => @personService.save(person) .success (results) => @error = '' @person = {} setPeople() .error (results, status) => if status...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/personController.coffee
1
22
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:completion
completion
class Controller constructor: (@$log, @personService) -> setPeople = => @personService.get().then (results) => @people = results @insertPerson = (person) => @personService.save(person) .success (results) => @error = '' @person = {}
setPeople() .error (results, status) => if status is 403 @error = results .then (results) -> results setPeople() angular.module('app').controller 'personController', ['$log', 'personService', Controller]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/personController.coffee
1
22
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: ($log, $location, personService) -> setPeople = => personService.get().then (results) => @people = results @insertPerson = (person) => personService.save(person) .success (results) => @error = '' @person = {} setPeople() .error (results, status) => if...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/personController.coffee
1
22
CaryLandholt/AngularFun:src/scripts/controllers/personController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: ($log, $location, personService) -> setPeople = => personService.get().then (results) => @people = results @insertPerson = (person) => personService.save(person) .success (results) => @error = '' @person = ...
var Controller; Controller = class Controller { constructor($log, $location, personService) { var setPeople; setPeople = () => { return personService.get().then((results) => { return this.people = results; }); }; this.insertPerson = (person) => { return personService.save(pe...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/personController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/personController.coffee
1
22