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-timeplot.coffee:3:completion
completion
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
left += (@popup.width() + 7) @$hoverMarker.css 'left': left return return unless @isMouseInElement @popup?.hide().remove() [commits, start, end] = @_filterCommitData(@commitData) @popup = new GitTimeplotPopup(commits, @file, start, end) left = @$hoverMarker.offset().left if left +...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus
raw_corpus
_filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour').add(1, 'minute') commits = _.filter @commitData, (c) ...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour')....
({ _filterCommitData: function() { var commits, left, relativeLeft, tEnd, tStart; left = this.$hoverMarker.offset().left; relativeLeft = left - this.$element.offset().left - 5; tStart = moment(this.x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute'); tEnd = moment(this.x.invert(relativeL...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _filterCommitData: function() { var commits, left, relativeLeft, tEnd, tStart; left = this.$hoverMarker.offset().left; relativeLeft = left - this.$element.offset().left - 5; tStart = moment(this.x.invert(relativeLeft)).startOf('hour').subtract(...
_filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour').add(1, 'minute') commits = _.filter @commitData, (c) ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
7d69b948fd73afe191937b724f928c75d6cf1d01
1,111
https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:1:raw_corpus
raw_corpus
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) @_debouncedRenderPopup = _.debounce(@_renderPopup, 50) @_debouncedHidePopup = _.debounce(@_hidePopup, 50) hide: () -> @popup?.remove() show: () -> # nothing to do here # @commitData - array of javas...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
10
59
littlebee/git-time-machine:lib/git-timeplot.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) @_debouncedRenderPopup = _.debounce(@_renderPopup, 50) @_debouncedHidePopup = _.debounce(@_hidePopup, 50) hide: () -> @popup?.remove() show: () -> ...
var GitTimeplot; module.exports = GitTimeplot = class GitTimeplot { constructor(element) { this.element = element; this.$element = $(this.element); this._debouncedRenderPopup = _.debounce(this._renderPopup, 50); this._debouncedHidePopup = _.debounce(this._hidePopup, 50); } hide() { var ref; ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
10
59
littlebee/git-time-machine:lib/git-timeplot.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitTimeplot; module.exports = GitTimeplot = class GitTimeplot { constructor(element) { this.element = element; this.$element = $(this.element); this._debouncedRenderPopup = _.debounce(this._renderPopup, 50); this._debouncedHidePopup = _.debou...
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) @_debouncedRenderPopup = _.debounce(@_renderPopup, 50) @_debouncedHidePopup = _.debounce(@_hidePopup, 50) hide: () -> @popup?.remove() show: () -> # nothing to do here # @commitData - array of javas...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
10
59
littlebee/git-time-machine:lib/git-timeplot.coffee:1:completion
completion
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) @_debouncedRenderPopup = _.debounce(@_renderPopup, 50) @_debouncedHidePopup = _.debounce(@_hidePopup, 50) hide: () -> @popup?.remove() show: () -> # nothing to do here # @commitData - array of javas...
if @commitData.length <= 0 @$timeplot.html("<div class='placeholder'>No commits, nothing to see here.</div>") return; svg = d3.select(@$timeplot.get(0)) .append("svg") .attr("width", @$element.width()) .attr("height", 100) @_renderAxis(svg) @_renderBlobs(svg) @_renderHoverMark...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
10
59
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus
raw_corpus
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left'...
({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverMarker.css('left', relativeX); } else { this.$...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverM...
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion
completion
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
left += (@popup.width() + 7) @$hoverMarker.css 'left': left return return unless @isMouseInElement @popup?.hide().remove() [commits, start, end] = @_filterCommitData(@commitData) @popup = new GitTimeplotPopup(commits, start, end) left = @$hoverMarker.offset().left if left + @popup...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d
1,111
https://github.com/littlebee/git-time-machine/blob/d194bcea22c2c3ff92abbb26ba45a84c8ca7ff8d/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus
raw_corpus
_filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour').add(1, 'minute') commits = _.filter @commitData, (c) ...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9f1dfd730005422e9313cc59cc6654603ec5ab2a
1,111
https://github.com/littlebee/git-time-machine/blob/9f1dfd730005422e9313cc59cc6654603ec5ab2a/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour')....
({ _filterCommitData: function() { var commits, left, relativeLeft, tEnd, tStart; left = this.$hoverMarker.offset().left; relativeLeft = left - this.$element.offset().left - 5; tStart = moment(this.x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute'); tEnd = moment(this.x.invert(relativeL...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9f1dfd730005422e9313cc59cc6654603ec5ab2a
1,111
https://github.com/littlebee/git-time-machine/blob/9f1dfd730005422e9313cc59cc6654603ec5ab2a/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _filterCommitData: function() { var commits, left, relativeLeft, tEnd, tStart; left = this.$hoverMarker.offset().left; relativeLeft = left - this.$element.offset().left - 5; tStart = moment(this.x.invert(relativeLeft)).startOf('hour').subtract(...
_filterCommitData: () -> left = @$hoverMarker.offset().left relativeLeft = left - @$element.offset().left - 5 tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute') tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour').add(1, 'minute') commits = _.filter @commitData, (c) ...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9f1dfd730005422e9313cc59cc6654603ec5ab2a
1,111
https://github.com/littlebee/git-time-machine/blob/9f1dfd730005422e9313cc59cc6654603ec5ab2a/lib/git-timeplot.coffee
160
177
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus
raw_corpus
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8
1,111
https://github.com/littlebee/git-time-machine/blob/f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left'...
({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverMarker.css('left', relativeX); } else { this.$...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8
1,111
https://github.com/littlebee/git-time-machine/blob/f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverM...
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8
1,111
https://github.com/littlebee/git-time-machine/blob/f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion
completion
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
left += (@popup.width() + 7) @$hoverMarker.css 'left': left return return unless @isMouseInElement @popup?.hide().remove() @popup = new GitTimeplotPopup(@commitData) left = @$hoverMarker.offset().left if left + @popup.outerWidth() + 10 > @$element.offset().left + @$element.width() ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8
1,111
https://github.com/littlebee/git-time-machine/blob/f698aa72d59d191ae2ebd2f47ed8fb1ac984eeb8/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus
raw_corpus
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left'...
({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverMarker.css('left', relativeX); } else { this.$...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _onMouseenter: function(evt) { return this.isMouseInElement = true; }, _onMousemove: function(evt) { var relativeX; relativeX = evt.clientX - this.$element.offset().left; if (relativeX < this.$hoverMarker.offset().left) { this.$hoverM...
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion
completion
_onMouseenter: (evt) -> @isMouseInElement = true _onMousemove: (evt) -> relativeX = evt.clientX - @$element.offset().left if relativeX < @$hoverMarker.offset().left @$hoverMarker.css('left', relativeX) else @$hoverMarker.css('left', relativeX - @$hoverMarker.width()) @_debouncedRend...
left += (@popup.width() + 7) @$hoverMarker.css 'left': left return return unless @isMouseInElement @popup?.hide().remove() @popup = new GitTimeplotPopup(@commitData) left = @$hoverMarker.offset().left if left + @popup.outerWidth() + 10 > @$element.offset().left + @$element.width() ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
9e6c62fcea046ac6f87415948719fbc4637edf99
1,111
https://github.com/littlebee/git-time-machine/blob/9e6c62fcea046ac6f87415948719fbc4637edf99/lib/git-timeplot.coffee
110
159
littlebee/git-time-machine:lib/git-timeplot.coffee:1:raw_corpus
raw_corpus
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) # commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory render: (commitData) -> @$timeplot = @$element.find('.timeplot') if @$timeplot.length <= 0 @$timeplot = $("<div...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
6
55
littlebee/git-time-machine:lib/git-timeplot.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) # commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory render: (commitData) -> @$timeplot = @$element.find('.timeplot')...
var GitTimeplot; module.exports = GitTimeplot = class GitTimeplot { constructor(element) { this.element = element; this.$element = $(this.element); } // commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory render(commitData) { var svg; this.$timeplot = ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
6
55
littlebee/git-time-machine:lib/git-timeplot.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitTimeplot; module.exports = GitTimeplot = class GitTimeplot { constructor(element) { this.element = element; this.$element = $(this.element); } // commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory ...
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) # commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory render: (commitData) -> @$timeplot = @$element.find('.timeplot') if @$timeplot.length <= 0 @$timeplot = $("<div...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
6
55
littlebee/git-time-machine:lib/git-timeplot.coffee:1:completion
completion
module.exports = class GitTimeplot constructor: (@element) -> @$element = $(@element) # commitData - array of javascript objects like those returned by GitUtils.getFileCommitHistory render: (commitData) -> @$timeplot = @$element.find('.timeplot') if @$timeplot.length <= 0 @$timeplot = $("<div...
@_renderHoverMarker(svg, commitData) return @$timeplot; _renderAxis: (svg, commitData) -> w = @$element.width() h = 100 left_pad = 20 pad = 20 minDate = moment.unix(commitData[commitData.length-1].authorDate).toDate() maxDate = moment.unix(commitData[0].authorDate).toDate() minHour ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
6
55
littlebee/git-time-machine:lib/git-timeplot.coffee:2:raw_corpus
raw_corpus
svg.append("g") .attr("class", "axis") .attr("transform", "translate(#{left_pad-pad}, 0)") .call(yAxis); _renderBlobs: (svg, commitData) -> max_r = d3.max(commitData.map((d)->return d.linesAdded + d.linesDeleted)) r = d3.scale.linear() .domain([0, max_r]) .range([3, 15]) svg.selectA...
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
56
101
littlebee/git-time-machine:lib/git-timeplot.coffee:2:completion
completion
svg.append("g") .attr("class", "axis") .attr("transform", "translate(#{left_pad-pad}, 0)") .call(yAxis); _renderBlobs: (svg, commitData) -> max_r = d3.max(commitData.map((d)->return d.linesAdded + d.linesDeleted)) r = d3.scale.linear() .domain([0, max_r]) .range([3, 15]) svg.selectA...
# hover marker is the green vertical line that follows the mouse on the timeplot _renderHoverMarker: (svg, commitData) -> @$hoverMarker = @$element.find('.hover-marker') unless @$hoverMarker.length > 0 @$hoverMarker = $("<div class='hover-marker'>") @$element.append(@$hoverMarker) _this = @ ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-timeplot.coffee
MIT
bc1d686b3f7b01c80cf789e77c469c734536f7c7
1,111
https://github.com/littlebee/git-time-machine/blob/bc1d686b3f7b01c80cf789e77c469c734536f7c7/lib/git-timeplot.coffee
56
101
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, tex...
var NodeType, XMLCharacterData, XMLText; NodeType = require('./NodeType'); XMLCharacterData = require('./XMLCharacterData'); // Represents a text node module.exports = XMLText = (function() { class XMLText extends XMLCharacterData { // Initializes a new instance of `XMLText` // `text` element text con...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLCharacterData, XMLText; NodeType = require('./NodeType'); XMLCharacterData = require('./XMLCharacterData'); // Represents a text node module.exports = XMLText = (function() { class XMLText extends XMLCharacterData { // Initializes a new in...
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
Object.defineProperty @::, 'wholeText', get: () -> str = '' prev = @previousSibling while prev str = prev.data + str prev = prev.previousSibling str += @data next = @nextSibling while next str = str + next.data next = next.nextSibling ret...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLText.coffee:2:raw_corpus
raw_corpus
# # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.text @, @options.writer.filterOptions(op...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
51
64
oozcitak/xmlbuilder-js:src/XMLText.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> ...
// `options.pretty` pretty prints the result // `options.indent` indentation for pretty print // `options.offset` how many indentations to add to every line for pretty print // `options.newline` newline sequence for pretty print ({ toString: function(options) { return this.options.writer.text(this, this.options.w...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
51
64
oozcitak/xmlbuilder-js:src/XMLText.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // `options.pretty` pretty prints the result // `options.indent` indentation for pretty print // `options.offset` how many indentations to add to every line for pretty print // `options.newline` newline sequence for pretty print ({ toString: function(options) { ...
# # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.text @, @options.writer.filterOptions(op...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
51
64
oozcitak/xmlbuilder-js:src/XMLText.coffee:2:completion
completion
# # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.text @, @options.writer.filterOptions(op...
# DOM level 1 functions to be implemented later splitText: (offset) -> throw new Error "This DOM method is not implemented." + @debugInfo() # DOM level 3 functions to be implemented later replaceWholeText: (content) -> throw new Error "This DOM method is not implemented." + @debugInfo()
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLText.coffee
51
64
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/src/XMLText.coffee
1
38
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, tex...
var NodeType, XMLCharacterData, XMLText; NodeType = require('./NodeType'); XMLCharacterData = require('./XMLCharacterData'); // Represents a text node module.exports = XMLText = class XMLText extends XMLCharacterData { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text)...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/src/XMLText.coffee
1
38
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLCharacterData, XMLText; NodeType = require('./NodeType'); XMLCharacterData = require('./XMLCharacterData'); // Represents a text node module.exports = XMLText = class XMLText extends XMLCharacterData { // Initializes a new instance of `XMLText...
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/src/XMLText.coffee
1
38
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
NodeType = require './NodeType' XMLCharacterData = require './XMLCharacterData' # Represents a text node module.exports = class XMLText extends XMLCharacterData # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new ...
# Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
6f18c8edefd0f3ed1192e4129fb1b032b8c9918f
926
https://github.com/oozcitak/xmlbuilder-js/blob/6f18c8edefd0f3ed1192e4129fb1b032b8c9918f/src/XMLText.coffee
1
38
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLText.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent ...
var NodeType, XMLNode, XMLText; XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); if (text =...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLText.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLNode, XMLText; XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constr...
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLText.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
@type = NodeType.Text @value = @stringify.text text # Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentat...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLText.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
d8de14769590b262e56b467df05db50855a0ad24
926
https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLText.coffee
1
33
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent ...
var NodeType, XMLNode, XMLText; XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); if (text =...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
d8de14769590b262e56b467df05db50855a0ad24
926
https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLText.coffee
1
33
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLNode, XMLText; XMLNode = require('./XMLNode'); NodeType = require('./NodeType'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constr...
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
d8de14769590b262e56b467df05db50855a0ad24
926
https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLText.coffee
1
33
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
XMLNode = require './XMLNode' NodeType = require './NodeType' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text...
@type = NodeType.Text @value = @stringify.text text # Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentat...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
d8de14769590b262e56b467df05db50855a0ad24
926
https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLText.coffee
1
33
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Er...
var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); if (text == null) { throw new Error("Missing elem...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); ...
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo()
@value = @stringify.text text # Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every line ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Er...
var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); if (text == null) { throw new Error("Missing elem...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); ...
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo()
@value = @stringify.eleText text # Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every li...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Er...
var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); if (text == null) { throw new Error("Missing elem...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLNode, XMLText; XMLNode = require('./XMLNode'); // Represents a text node module.exports = XMLText = class XMLText extends XMLNode { // Initializes a new instance of `XMLText` // `text` element text constructor(parent, text) { super(parent); ...
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo() @value =...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLText.coffee
1
31
oozcitak/xmlbuilder-js:src/XMLText.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a text node module.exports = class XMLText extends XMLNode # Initializes a new instance of `XMLText` # # `text` element text constructor: (parent, text) -> super parent if not text? throw new Error "Missing element text. " + @debugInfo()
@value = @stringify.eleText text # Creates and returns a deep clone of `this` clone: () -> Object.create @ # Converts the XML fragment to string # # `options.pretty` pretty prints the result # `options.indent` indentation for pretty print # `options.offset` how many indentations to add to every li...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLText.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLText.coffee
1
31
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:1:raw_corpus
raw_corpus
module.exports = class Gherkin extends Beautifier name: "Gherkin formatter" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/gherkin.coffee" options: { gherkin: true } beautify: (text, language, options) -> Lexer = require('gherkin').Lexer('en') logger = @logger ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
7
56
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:1:completion
completion
module.exports = class Gherkin extends Beautifier name: "Gherkin formatter" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/gherkin.coffee" options: { gherkin: true } beautify: (text, language, options) -> Lexer = require('gherkin').Lexer('en') logger = @logger ...
write_indented: (content, indent = 0) -> for line in content.trim().split("\n") @lines.push("#{@indent_to(indent)}#{line.trim()}") write_comments: (indent = 0) -> for comment in @comments.splice(0, @comments.length) @write_indented(comment, indent) write_tag...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
7
56
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:2:raw_corpus
raw_corpus
@write_indented("#{keyword}: #{name}", '') @write_indented(description, 1) if description background: (keyword, name, description, line) -> logger.verbose({token: 'background', keyword: keyword, name: name, description: description, line: line}) @write_blank() @write_co...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
57
106
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:2:completion
completion
@write_indented("#{keyword}: #{name}", '') @write_indented(description, 1) if description background: (keyword, name, description, line) -> logger.verbose({token: 'background', keyword: keyword, name: name, description: description, line: line}) @write_blank() @write_co...
@write_tags(1) @write_indented("#{keyword}: #{name}", 1) @write_indented(description, 2) if description examples: (keyword, name, description, line) -> logger.verbose({token: 'examples', keyword: keyword, name: name, description: description, line: line}) @write_blank()...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
57
106
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:3:raw_corpus
raw_corpus
row: (cells, line) -> logger.verbose({token: 'row', cells: cells, line: line}) # TODO: need to collect rows so that we can align the vertical pipes to the widest columns # See Gherkin::Formatter::PrettyFormatter#table(rows) @write_comments(3) @write_indented("| #{cells...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
107
131
Glavin001/atom-beautify:src/beautifiers/gherkin.coffee:3:completion
completion
row: (cells, line) -> logger.verbose({token: 'row', cells: cells, line: line}) # TODO: need to collect rows so that we can align the vertical pipes to the widest columns # See Gherkin::Formatter::PrettyFormatter#table(rows) @write_comments(3) @write_indented("| #{cells...
} lexer = new Lexer(recorder) lexer.scan(text) loggerLevel = atom?.config.get('atom-beautify.general.loggerLevel') if loggerLevel is 'verbose' for line in recorder.lines logger.verbose("> #{line}") resolve recorder.lines.join("\n") )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/gherkin.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/gherkin.coffee
107
131
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if os.platform() is "win32" awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global....
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
4deba7087cfbcf772ec18ce95cba2f5d340f2071
458
https://github.com/iostreamer-X/Awkward/blob/4deba7087cfbcf772ec18ce95cba2f5d340f2071/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if os.platform() is "win32" awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostream...
var _, awkward, chalk, os, user, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); os = require('os'); user = process.env.USER; if (os.platform() === "win32") { user = process.env.USERNAME; } awkward = vorpal().delimiter(user + '@awk').localStorage('awkward@iostreamer').his...
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
4deba7087cfbcf772ec18ce95cba2f5d340f2071
458
https://github.com/iostreamer-X/Awkward/blob/4deba7087cfbcf772ec18ce95cba2f5d340f2071/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, awkward, chalk, os, user, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); os = require('os'); user = process.env.USER; if (os.platform() === "win32") { user = process.env.USERNAME; } awkward = vorpal().delimite...
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if os.platform() is "win32" awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global....
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
4deba7087cfbcf772ec18ce95cba2f5d340f2071
458
https://github.com/iostreamer-X/Awkward/blob/4deba7087cfbcf772ec18ce95cba2f5d340f2071/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if os.platform() is "win32" awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer'
.history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/main')(awkward) awkward.exec 'repl' awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
4deba7087cfbcf772ec18ce95cba2f5d340f2071
458
https://github.com/iostreamer-X/Awkward/blob/4deba7087cfbcf772ec18ce95cba2f5d340f2071/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if (os.platform() is "win32") awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' globa...
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
3ac557dd2190a9ee983393509f3d2085f1368c8f
458
https://github.com/iostreamer-X/Awkward/blob/3ac557dd2190a9ee983393509f3d2085f1368c8f/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if (os.platform() is "win32") awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostre...
var _, awkward, chalk, os, user, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); os = require('os'); user = process.env.USER; if (os.platform() === "win32") { user = process.env.USERNAME; } awkward = vorpal().delimiter(user + '@awk').localStorage('awkward@iostreamer').his...
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
3ac557dd2190a9ee983393509f3d2085f1368c8f
458
https://github.com/iostreamer-X/Awkward/blob/3ac557dd2190a9ee983393509f3d2085f1368c8f/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, awkward, chalk, os, user, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); os = require('os'); user = process.env.USER; if (os.platform() === "win32") { user = process.env.USERNAME; } awkward = vorpal().delimite...
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if (os.platform() is "win32") awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' globa...
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
3ac557dd2190a9ee983393509f3d2085f1368c8f
458
https://github.com/iostreamer-X/Awkward/blob/3ac557dd2190a9ee983393509f3d2085f1368c8f/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' os = require 'os' user = process.env.USER user = process.env.USERNAME if (os.platform() is "win32") awkward = vorpal() .delimiter user + '@awk' .localStorage 'awkward@iostreamer'
.history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/main')(awkward) awkward.exec 'repl' awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
3ac557dd2190a9ee983393509f3d2085f1368c8f
458
https://github.com/iostreamer-X/Awkward/blob/3ac557dd2190a9ee983393509f3d2085f1368c8f/main.coffee
1
22
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/main')(awkward) ...
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
33aefea1f2355581790fc5323aa1b6ae8e1568fa
458
https://github.com/iostreamer-X/Awkward/blob/33aefea1f2355581790fc5323aa1b6ae8e1568fa/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = a...
var _, awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkward; global._ = _; require('....
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
33aefea1f2355581790fc5323aa1b6ae8e1568fa
458
https://github.com/iostreamer-X/Awkward/blob/33aefea1f2355581790fc5323aa1b6ae8e1568fa/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk...
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/main')(awkward) ...
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
33aefea1f2355581790fc5323aa1b6ae8e1568fa
458
https://github.com/iostreamer-X/Awkward/blob/33aefea1f2355581790fc5323aa1b6ae8e1568fa/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history'
global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/main')(awkward) awkward.exec 'repl' awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
33aefea1f2355581790fc5323aa1b6ae8e1568fa
458
https://github.com/iostreamer-X/Awkward/blob/33aefea1f2355581790fc5323aa1b6ae8e1568fa/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/default.coffee')...
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
bfe15a7e96adbd60cc563c14336b43b03f140ec8
458
https://github.com/iostreamer-X/Awkward/blob/bfe15a7e96adbd60cc563c14336b43b03f140ec8/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = a...
var _, awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkward; global._ = _; require('....
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
bfe15a7e96adbd60cc563c14336b43b03f140ec8
458
https://github.com/iostreamer-X/Awkward/blob/bfe15a7e96adbd60cc563c14336b43b03f140ec8/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; _ = require('underscore'); awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk...
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/default.coffee')...
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
bfe15a7e96adbd60cc563c14336b43b03f140ec8
458
https://github.com/iostreamer-X/Awkward/blob/bfe15a7e96adbd60cc563c14336b43b03f140ec8/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk _ = require 'underscore' awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history'
global.chalk = chalk global.awkward = awkward global._ = _ require('./terminal/default.coffee')(awkward) awkward.exec 'repl' awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
bfe15a7e96adbd60cc563c14336b43b03f140ec8
458
https://github.com/iostreamer-X/Awkward/blob/bfe15a7e96adbd60cc563c14336b43b03f140ec8/main.coffee
1
18
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.exec 'repl' awkwar...
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
5e618ddc7229bd82cc472632426678ef7e4e1ee3
458
https://github.com/iostreamer-X/Awkward/blob/5e618ddc7229bd82cc472632426678ef7e4e1ee3/main.coffee
1
16
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('./termin...
var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkward; require('./terminal/default.coffee')(awkward); awkward....
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
5e618ddc7229bd82cc472632426678ef7e4e1ee3
458
https://github.com/iostreamer-X/Awkward/blob/5e618ddc7229bd82cc472632426678ef7e4e1ee3/main.coffee
1
16
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awk').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkward; r...
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.exec 'repl' awkwar...
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
5e618ddc7229bd82cc472632426678ef7e4e1ee3
458
https://github.com/iostreamer-X/Awkward/blob/5e618ddc7229bd82cc472632426678ef7e4e1ee3/main.coffee
1
16
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awk' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history'
global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.exec 'repl' awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
5e618ddc7229bd82cc472632426678ef7e4e1ee3
458
https://github.com/iostreamer-X/Awkward/blob/5e618ddc7229bd82cc472632426678ef7e4e1ee3/main.coffee
1
16
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.show().parse...
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
9ca1f0dfa84484d82dc936c0c53da38029d0c290
458
https://github.com/iostreamer-X/Awkward/blob/9ca1f0dfa84484d82dc936c0c53da38029d0c290/main.coffee
1
14
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('....
var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awkward:~$').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkward; require('./terminal/default.coffee')(awkward); a...
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
9ca1f0dfa84484d82dc936c0c53da38029d0c290
458
https://github.com/iostreamer-X/Awkward/blob/9ca1f0dfa84484d82dc936c0c53da38029d0c290/main.coffee
1
14
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awkward:~$').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); global.chalk = chalk; global.awkward = awkw...
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.show().parse...
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
9ca1f0dfa84484d82dc936c0c53da38029d0c290
458
https://github.com/iostreamer-X/Awkward/blob/9ca1f0dfa84484d82dc936c0c53da38029d0c290/main.coffee
1
14
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history'
global.chalk = chalk global.awkward = awkward require('./terminal/default.coffee')(awkward) awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
9ca1f0dfa84484d82dc936c0c53da38029d0c290
458
https://github.com/iostreamer-X/Awkward/blob/9ca1f0dfa84484d82dc936c0c53da38029d0c290/main.coffee
1
14
iostreamer-X/Awkward:main.coffee:1:raw_corpus
raw_corpus
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' require('./terminal/default.coffee')(awkward) awkward.show().parse process.argv
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5
458
https://github.com/iostreamer-X/Awkward/blob/0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5/main.coffee
1
11
iostreamer-X/Awkward:main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' require('./terminal/default.coffee')(awkward) awkward.sh...
var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awkward:~$').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); require('./terminal/default.coffee')(awkward); awkward.show().parse(process.argv);
CoffeeScript
JavaScript
iostreamer-X/Awkward
main.coffee
MIT
0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5
458
https://github.com/iostreamer-X/Awkward/blob/0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5/main.coffee
1
11
iostreamer-X/Awkward:main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var awkward, chalk, vorpal; vorpal = require('vorpal'); chalk = vorpal().chalk; awkward = vorpal().delimiter(process.env.USER + '@awkward:~$').localStorage('awkward@iostreamer').history('awkward@iostreamer/history'); require('./terminal/default.coffee')(awkward...
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$' .localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' require('./terminal/default.coffee')(awkward) awkward.show().parse process.argv
JavaScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5
458
https://github.com/iostreamer-X/Awkward/blob/0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5/main.coffee
1
11
iostreamer-X/Awkward:main.coffee:1:completion
completion
vorpal = require 'vorpal' chalk = vorpal().chalk awkward = vorpal() .delimiter process.env.USER+'@awkward:~$'
.localStorage 'awkward@iostreamer' .history 'awkward@iostreamer/history' require('./terminal/default.coffee')(awkward) awkward.show().parse process.argv
CoffeeScript
CoffeeScript
iostreamer-X/Awkward
main.coffee
MIT
0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5
458
https://github.com/iostreamer-X/Awkward/blob/0bc0e35654897b8c8b7867bd83a0b098d1a1c1c5/main.coffee
1
11
jianliaoim/talk-os:talk-web/client/actions/search-message.coffee:1:raw_corpus
raw_corpus
dispatcher = require '../dispatcher' api = require '../network/api' exports.search = (data, success, fail) -> api.messages.read.get(queryParams: data) .then (resp) -> dispatcher.handleViewAction type: 'search-message/search' data: resp success? resp .catch (error) -> consol...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search-message.coffee
1
36
jianliaoim/talk-os:talk-web/client/actions/search-message.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript dispatcher = require '../dispatcher' api = require '../network/api' exports.search = (data, success, fail) -> api.messages.read.get(queryParams: data) .then (resp) -> dispatcher.handleViewAction type: 'search-message/search' data: re...
var api, dispatcher; dispatcher = require('../dispatcher'); api = require('../network/api'); exports.search = function(data, success, fail) { return api.messages.read.get({ queryParams: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'search-message/search', data: resp }...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search-message.coffee
1
36
jianliaoim/talk-os:talk-web/client/actions/search-message.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var api, dispatcher; dispatcher = require('../dispatcher'); api = require('../network/api'); exports.search = function(data, success, fail) { return api.messages.read.get({ queryParams: data }).then(function(resp) { dispatcher.handleViewAction({ ...
dispatcher = require '../dispatcher' api = require '../network/api' exports.search = (data, success, fail) -> api.messages.read.get(queryParams: data) .then (resp) -> dispatcher.handleViewAction type: 'search-message/search' data: resp success? resp .catch (error) -> consol...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search-message.coffee
1
36
jianliaoim/talk-os:talk-web/client/actions/search-message.coffee:1:completion
completion
dispatcher = require '../dispatcher' api = require '../network/api' exports.search = (data, success, fail) -> api.messages.read.get(queryParams: data) .then (resp) -> dispatcher.handleViewAction type: 'search-message/search' data: resp success? resp .catch (error) -> consol...
dispatcher.handleViewAction type: 'search-message/before' data: resp success? resp .catch (error) -> console.error 'search-message.before', error fail? error exports.after = (data, success, fail) -> api.messages.read.get(queryParams: data) .then (resp) -> dispatcher.ha...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search-message.coffee
1
36
buttercoin/buttercoin:perf/market_throughput.coffee:3:raw_corpus
raw_corpus
makeRandomOrder = -> currencies = ['BTC', 'USD'] currencies = currencies.reverse() if randomBool() new Order({name: "user-#{acctID++}"}, currencies[0], randomInt(1, 5000), currencies[1], randomInt(1, 5000))
CoffeeScript
buttercoin/buttercoin
perf/market_throughput.coffee
MIT
a9ed301e4930199af5b144d6c3e2d482f424fe3d
663
https://github.com/buttercoin/buttercoin/blob/a9ed301e4930199af5b144d6c3e2d482f424fe3d/perf/market_throughput.coffee
13
16