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-revision-view.coffee:2:raw_corpus
raw_corpus
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:completion
completion
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
fileContents = "" stdout = (output) => fileContents += output exit = (code) => if code is 0 @_showRevision(file, editor, revHash, fileContents, options) else atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})" @_loadRevision fil...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line...
# reopen it promise = atom.workspace.open file, split: "left" activatePane: false activateItem: true searchAllPanes: false promise.then (editor) => promise = atom.workspace.open outputFilePath, split: "right" activatePane: false ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
# HACK ALERT: this is prone to eventually fail. Don't show user change # "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newT...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
# HACK ALERT: this is prone to eventually fail. Don't show user change # "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newT...
@_splitDiff: (editor, newTextEditor) -> editors = editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff._setConfig 'rightEditorColor', 'green' SplitDiff._setConfig 'leftEditorColor', 'red' SplitDiff._setConfig 'diffWords', true SplitDiff._setCo...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
ec0b167fb79c1ba3d94d57308bdb843281b6ceb3
1,111
https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1
1,111
https://github.com/littlebee/git-time-machine/blob/756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff._setConfig 'rightEditorColor', 'green' SplitDiff._setConfig 'leftEditorColor', 'red' SplitDiff._setConfig 'diffWords', true SplitDiff._setConfig 'ignoreWhitespace', true SplitDiff._setConfig 'sync...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1
1,111
https://github.com/littlebee/git-time-machine/blob/756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:5:raw_corpus
raw_corpus
@_syncScroll: (editor, newTextEditor) -> # without the delay, the scroll position will fluctuate slightly beween # calls to editor setText _.delay => return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1
1,111
https://github.com/littlebee/git-time-machine/blob/756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1/lib/git-revision-view.coffee
162
168
littlebee/git-time-machine:lib/git-revision-view.coffee:5:completion
completion
@_syncScroll: (editor, newTextEditor) -> # without the delay, the scroll position will fluctuate slightly beween # calls to editor setText
_.delay => return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1
1,111
https://github.com/littlebee/git-time-machine/blob/756d05a14dc9fb7c74a94c6e95cd189fdcd5e3c1/lib/git-revision-view.coffee
162
168
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff._setConfig 'rightEditorColor', 'green' SplitDiff._setConfig 'leftEditorColor', 'red' SplitDiff._setConfig 'diffWords', true SplitDiff._setConfig 'ignoreWhitespace', true SplitDiff.editorSubscripti...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:5:raw_corpus
raw_corpus
# calls to editor setText _.delay => return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
162
166
littlebee/git-time-machine:lib/git-revision-view.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # calls to editor setText _.delay => return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50 ```
// calls to editor setText _.delay(() => { if (newTextEditor.isDestroyed()) { return; } return newTextEditor.scrollToBufferPosition({ row: this._getInitialLineNumber(editor), column: 0 }); }, 50);
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
162
166
littlebee/git-time-machine:lib/git-revision-view.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // calls to editor setText _.delay(() => { if (newTextEditor.isDestroyed()) { return; } return newTextEditor.scrollToBufferPosition({ row: this._getInitialLineNumber(editor), column: 0 }); }, 50); ```
# calls to editor setText _.delay => return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
162
166
littlebee/git-time-machine:lib/git-revision-view.coffee:5:completion
completion
# calls to editor setText _.delay =>
return if newTextEditor.isDestroyed() newTextEditor.scrollToBufferPosition({row: @_getInitialLineNumber(editor), column: 0}) , 50
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
0259ad65d873daadf036370d1ba9275521ec202b
1,111
https://github.com/littlebee/git-time-machine/blob/0259ad65d873daadf036370d1ba9275521ec202b/lib/git-revision-view.coffee
162
166
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
2fbfc94e1ff84ecde415395ea4bafcda12238b66
1,111
https://github.com/littlebee/git-time-machine/blob/2fbfc94e1ff84ecde415395ea4bafcda12238b66/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
# "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, revHash) ->...
editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff.setConfig 'rightEditorColor', 'green' SplitDiff.setConfig 'leftEditorColor', 'red' SplitDiff.setConfig 'diffWords', true SplitDiff.setConfig 'ignoreWhitespace', true SplitDiff.editorSubscriptions ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
2fbfc94e1ff84ecde415395ea4bafcda12238b66
1,111
https://github.com/littlebee/git-time-machine/blob/2fbfc94e1ff84ecde415395ea4bafcda12238b66/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
143fa0e4ef916d0170e4745d54529ebf822ef309
1,111
https://github.com/littlebee/git-time-machine/blob/143fa0e4ef916d0170e4745d54529ebf822ef309/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
@_updateNewTextEditor: (newTextEditor, editor, revHash, fileContents) -> # slight delay so the user gets feedback on their action _.delay => lineEnding = editor.buffer?.lineEndingForRow(0) || "\n" fileContents = fileContents.replace(/(\r\n|\n)/g, lineEnding) newTextEditor.buffer.setPreferredLi...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
143fa0e4ef916d0170e4745d54529ebf822ef309
1,111
https://github.com/littlebee/git-time-machine/blob/143fa0e4ef916d0170e4745d54529ebf822ef309/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
143fa0e4ef916d0170e4745d54529ebf822ef309
1,111
https://github.com/littlebee/git-time-machine/blob/143fa0e4ef916d0170e4745d54529ebf822ef309/lib/git-revision-view.coffee
112
143
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
SplitDiff.setConfig 'leftEditorColor', 'red' SplitDiff.setConfig 'diffWords', true SplitDiff.setConfig 'ignoreWhitespace', false SplitDiff.editorSubscriptions = new CompositeDisposable() SplitDiff.editorSubscriptions.add editors.editor1.onDidStopChanging => SplitDiff.updateDiff(editors) if editors...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
143fa0e4ef916d0170e4745d54529ebf822ef309
1,111
https://github.com/littlebee/git-time-machine/blob/143fa0e4ef916d0170e4745d54529ebf822ef309/lib/git-revision-view.coffee
112
143
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b2182517b324c0b3f5affb2418ecd0d55c26bc13
1,111
https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
newTextEditor.setText(fileContents) # HACK ALERT: this is prone to eventually fail. Don't show user change # "would you like to save" message between changes to rev being viewed newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) @_affixTabTitle new...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b2182517b324c0b3f5affb2418ecd0d55c26bc13
1,111
https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
@_splitDiff: (editor, newTextEditor) -> editors = editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff.setConfig 'leftEditorColor', 'green' SplitDiff.setConfig 'leftEditorColor', 'red' SplitDiff.setConfig 'diffWords', true SplitDiff.setConfig ...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b2182517b324c0b3f5affb2418ecd0d55c26bc13
1,111
https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-revision-view.coffee
112
133
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
@_splitDiff: (editor, newTextEditor) -> editors = editor1: newTextEditor # the older revision editor2: editor # current rev SplitDiff.setConfig 'leftEditorColor', 'green' SplitDiff.setConfig 'leftEditorColor', 'red' SplitDiff.setConfig 'diffWords', true SplitDiff.setConfig ...
SplitDiff.updateDiff(editors) if editors? SplitDiff.editorSubscriptions.add editors.editor2.onDidStopChanging => SplitDiff.updateDiff(editors) if editors? SplitDiff.editorSubscriptions.add editors.editor1.onDidDestroy => editors = null; SplitDiff.disable(false) SplitDiff.editorSubscription...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b2182517b324c0b3f5affb2418ecd0d55c26bc13
1,111
https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-revision-view.coffee
112
133
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
@_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line number ...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8
1,111
https://github.com/littlebee/git-time-machine/blob/b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
@_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line number ...
searchAllPanes: true promise.then (newTextEditor) => @_updateNewTextEditor(newTextEditor, editor, revHash, fileContents) @_updateNewTextEditor: (newTextEditor, editor, revHash, fileContents) -> # slight delay so the user gets feedback on their action _.delay => newTextEditor.setT...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8
1,111
https://github.com/littlebee/git-time-machine/blob/b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> editors = editor1: newTextEditor # the older revision editor...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8
1,111
https://github.com/littlebee/git-time-machine/blob/b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8/lib/git-revision-view.coffee
112
154
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> editors = editor1: newTextEditor # the older revision editor...
SplitDiff.disable(false) SplitDiff.editorSubscriptions.add editors.editor2.onDidDestroy => editors = null; SplitDiff.disable(false) SplitDiff.editorSubscriptions.add atom.config.onDidChange 'split-diff.ignoreWhitespace', ({newValue, oldValue}) => SplitDiff.updateDiff(editors) SplitDiff.u...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8
1,111
https://github.com/littlebee/git-time-machine/blob/b9e37a6bda57b71e68d7986f61f4e4a105ee7ae8/lib/git-revision-view.coffee
112
154
littlebee/git-time-machine:lib/git-revision-view.coffee:2:raw_corpus
raw_corpus
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:completion
completion
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
fileContents = "" stdout = (output) => fileContents += output exit = (code) => if code is 0 @_showRevision(file, editor, revHash, fileContents, options) else atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})" @_loadRevision fil...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line n...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line n...
split: "right" activatePane: false activateItem: true searchAllPanes: true promise.then (newTextEditor) => @_updateNewTextEditor(newTextEditor, editor, revHash, fileContents) @_updateNewTextEditor: (newTextEditor, editor, revHash, fileContents) -> # slig...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
@_affixTabTitle: (newTextEditor, revHash) -> # speaking of hacks this is also hackish, there has to be a better way to change to # tab title and unlinking it from the file name $el = $(atom.views.getView(newTextEditor)) $tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $t...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
112
160
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
@_affixTabTitle: (newTextEditor, revHash) -> # speaking of hacks this is also hackish, there has to be a better way to change to # tab title and unlinking it from the file name $el = $(atom.views.getView(newTextEditor)) $tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $t...
SplitDiff.editorSubscriptions.add editors.editor1.onDidDestroy => editors = null; SplitDiff.disable(false) SplitDiff.editorSubscriptions.add editors.editor2.onDidDestroy => editors = null; SplitDiff.disable(false) SplitDiff.editorSubscriptions.add atom.config.onDidChange 'split-diff.ign...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
61da16a41fb31e51bfaf503ecdd8d897fd76f1e0
1,111
https://github.com/littlebee/git-time-machine/blob/61da16a41fb31e51bfaf503ecdd8d897fd76f1e0/lib/git-revision-view.coffee
112
160
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line n...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
} @_getInitialLineNumber: (editor) -> editorEle = atom.views.getView editor lineNumber = 0 if editor? && editor != '' lineNumber = editorEle.getLastVisibleScreenRow() # console.log "_getInitialLineNumber", lineNumber # TODO: why -5? this is what it took to actually sync the last line n...
activatePane: false activateItem: true searchAllPanes: true promise.then (newTextEditor) => @_updateNewTextEditor(newTextEditor, editor, revHash, fileContents) @_updateNewTextEditor: (newTextEditor, editor, revHash, fileContents) -> # slight delay so the user gets f...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-revision-view.coffee
112
155
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
SplitDiff.disable(false) SplitDiff.editorSubscriptions.add editors.editor2.onDidDestroy => editors = null; SplitDiff.disable(false) SplitDiff.editorSubscriptions.add atom.config.onDidChange 'split-diff.ignoreWhitespace', ({newValue, oldValue}) => SplitDiff.updateDiff(editors) SplitDiff.u...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
98b864ebf66d473e0c559fbc6004982c7fc378cb
1,111
https://github.com/littlebee/git-time-machine/blob/98b864ebf66d473e0c559fbc6004982c7fc378cb/lib/git-revision-view.coffee
112
155
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
c77574460a92e81de526184f1d1d7db98322767f
1,111
https://github.com/littlebee/git-time-machine/blob/c77574460a92e81de526184f1d1d7db98322767f/lib/git-revision-view.coffee
112
153
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
$tabTitle = $el.parents('atom-pane').find('li.tab.active .title') titleText = $tabTitle.text() if titleText.indexOf('@') >= 0 titleText = titleText.replace(/\@.*/, "@#{revHash}") else titleText += " @#{revHash}" $tabTitle.text(titleText) @_splitDiff: (editor, newTextEditor) -> edito...
SplitDiff.disable(false) SplitDiff.editorSubscriptions.add editors.editor2.onDidDestroy => SplitDiff.disable(false) SplitDiff.editorSubscriptions.add atom.config.onDidChange 'split-diff.ignoreWhitespace', ({newValue, oldValue}) => SplitDiff.updateDiff(editors) SplitDiff.updateDiff editors ...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
c77574460a92e81de526184f1d1d7db98322767f
1,111
https://github.com/littlebee/git-time-machine/blob/c77574460a92e81de526184f1d1d7db98322767f/lib/git-revision-view.coffee
112
153
littlebee/git-time-machine:lib/git-revision-view.coffee:2:raw_corpus
raw_corpus
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
76c5e41d187366981cc8cc2861f22843c99440c7
1,111
https://github.com/littlebee/git-time-machine/blob/76c5e41d187366981cc8cc2861f22843c99440c7/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:completion
completion
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
fileContents = "" stdout = (output) => fileContents += output exit = (code) => if code is 0 @_showRevision(file, editor, revHash, fileContents, options) else atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})" @_loadRevision fil...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
76c5e41d187366981cc8cc2861f22843c99440c7
1,111
https://github.com/littlebee/git-time-machine/blob/76c5e41d187366981cc8cc2861f22843c99440c7/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:raw_corpus
raw_corpus
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in ...
var GitRevisionView; GitRevisionView = (function() { class GitRevisionView { /* This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in ...
CoffeeScript
JavaScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitRevisionView; GitRevisionView = (function() { class GitRevisionView { /* This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes ...
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
JavaScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:2:completion
completion
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
fileContents = "" stdout = (output) => fileContents += output exit = (code) => if code is 0 @_showRevision(file, editor, revHash, fileContents, options) else atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})" @_loadRevision fil...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
12
61
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
showArgs = [ "-C", path.dirname(file), "show", "#{hash}:#{atom.project.relativize(file).replace(/\\/g, '/')}" ] # console.log "calling git" new BufferedProcess { command: "git", args: if options.diff then diffArgs else showArgs, stdout, exit } @_getIni...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
showArgs = [ "-C", path.dirname(file), "show", "#{hash}:#{atom.project.relativize(file).replace(/\\/g, '/')}" ] # console.log "calling git" new BufferedProcess { command: "git", args: if options.diff then diffArgs else showArgs, stdout, exit } @_getIni...
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
62
111
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) # split diff will keep the scroll sync'd, but doesn't seem to initially sync themes @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, ...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
newTextEditor.buffer.cachedDiskContents = fileContents @_splitDiff(editor, newTextEditor) # split diff will keep the scroll sync'd, but doesn't seem to initially sync themes @_syncScroll(editor, newTextEditor) @_affixTabTitle newTextEditor, revHash , 300 @_affixTabTitle: (newTextEditor, ...
editor2: editor # current rev SplitDiff.editorSubscriptions = new CompositeDisposable() SplitDiff.editorSubscriptions.add editors.editor1.onDidStopChanging => SplitDiff.updateDiff(editors) SplitDiff.editorSubscriptions.add editors.editor2.onDidStopChanging => SplitDiff.updateDiff(edit...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
112
161
littlebee/git-time-machine:lib/git-revision-view.coffee:5:raw_corpus
raw_corpus
newTextEditor.scrollToBufferPosition({ row: @_getInitialLineNumber(editor), column: 0 }) , 50
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
8b0f9e9086672d721567c67fb73c9e69afd9a9a2
1,111
https://github.com/littlebee/git-time-machine/blob/8b0f9e9086672d721567c67fb73c9e69afd9a9a2/lib/git-revision-view.coffee
162
165
littlebee/git-time-machine:lib/git-revision-view.coffee:2:raw_corpus
raw_corpus
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
9
58
littlebee/git-time-machine:lib/git-revision-view.coffee:2:completion
completion
class GitRevisionView @FILE_PREFIX = "TimeMachine - " ### This code and technique was originally from git-history package, see https://github.com/jakesankey/git-history/blob/master/lib/git-history-view.coffee Changes to permit click and drag in the time plot to travel in time: - don't write revisi...
fileContents += output exit = (code) => if code is 0 @_showRevision(file, editor, revHash, fileContents, options) else atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})" @_loadRevision file, revHash, stdout, exit @_loadRevision: (file,...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
9
58
littlebee/git-time-machine:lib/git-revision-view.coffee:3:raw_corpus
raw_corpus
path.dirname(file), "show", "#{hash}:#{atom.project.relativize(file).replace(/\\/g, '/')}" ] # console.log "calling git" new BufferedProcess { command: "git", args: if options.diff then diffArgs else showArgs, stdout, exit } @_getInitialLineNumber: (editor) -> ...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
59
108
littlebee/git-time-machine:lib/git-revision-view.coffee:3:completion
completion
path.dirname(file), "show", "#{hash}:#{atom.project.relativize(file).replace(/\\/g, '/')}" ] # console.log "calling git" new BufferedProcess { command: "git", args: if options.diff then diffArgs else showArgs, stdout, exit } @_getInitialLineNumber: (editor) -> ...
@_showRevision: (file, editor, revHash, fileContents, options={}) -> outputDir = "#{atom.getConfigDirPath()}/git-time-machine" fs.mkdir outputDir if not fs.existsSync outputDir outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}" outputFilePath += ".diff" if options.diff tempContent...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
59
108
littlebee/git-time-machine:lib/git-revision-view.coffee:4:raw_corpus
raw_corpus
@_affixTabTitle(newTextEditor, revHash) , 300 @_affixTabTitle: (newTextEditor, revHash) -> # speaking of hacks this is also hackish, there has to be a better way to change to # tab title and unlinking it from the file name $el = $(atom.views.getView(newTextEditor)) $tabTitle = $el.parents('atom-...
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
109
134
littlebee/git-time-machine:lib/git-revision-view.coffee:4:completion
completion
@_affixTabTitle(newTextEditor, revHash) , 300 @_affixTabTitle: (newTextEditor, revHash) -> # speaking of hacks this is also hackish, there has to be a better way to change to # tab title and unlinking it from the file name $el = $(atom.views.getView(newTextEditor)) $tabTitle = $el.parents('atom-...
titleText += " @#{revHash}" $tabTitle.text(titleText) # sync scroll to editor that we are show revision for @_syncScroll: (editor, newTextEditor) -> # without the delay, the scroll position will fluctuate slightly beween # calls to editor setText _.delay => newTextEditor.scrollToBufferPositi...
CoffeeScript
CoffeeScript
littlebee/git-time-machine
lib/git-revision-view.coffee
MIT
85147d9eeffff51adcc778c24fbe0eb2bf371fc9
1,111
https://github.com/littlebee/git-time-machine/blob/85147d9eeffff51adcc778c24fbe0eb2bf371fc9/lib/git-revision-view.coffee
109
134
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
cyclotronApp.controller 'HelpController', ($scope, $location, configService) -> $scope.config = configService $scope.menu = configService.help $scope.selectItem = (item) -> $scope.selectedItem = item $location.search 'q', item.name $scope.feelingLucky = -> $scope.$broadcast '...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d
1,544
https://github.com/ExpediaGroup/cyclotron/blob/bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d
1,544
https://github.com/ExpediaGroup/cyclotron/blob/bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d
1,544
https://github.com/ExpediaGroup/cyclotron/blob/bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
cyclotronApp.controller 'HelpController', ($scope, $location, configService) -> $scope.config = configService $scope.menu = configService.help $scope.selectItem = (item) -> $scope.selectedItem = item $location.search 'q', item.name $scope.feelingLucky = -> $scope.$broadcast '...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d
1,544
https://github.com/ExpediaGroup/cyclotron/blob/bc4b0328fb9e7d1f539ede0b874aba475a4c8f0d/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
38
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
35
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
35
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
35
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.help.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# Help controller -- for viewing help pages # cyclotronApp.controller 'HelpController', ($scope, $location, configService) -> $scope.config = configService $scope.menu = configService.help $scope.selectItem = (item) -> $scope.selectedItem = item $location.search 'q', item.name $scope...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/controller.help.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.help.coffee
1
35
jashkenas/coffeescript:src/register.coffee:1:raw_corpus
raw_corpus
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' {patchStackTrace} = CoffeeScript # Check if Node's built-in source map stack trace transformations are enabled. nodeSourceMapsSupportEnabled = process? and ( process.execArgv.inclu...
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' {patchStackTrace} = CoffeeScript # Check if Node's built-in source map stack trace transformations are enabled. nodeSourceMap...
var CoffeeScript, Module, cacheSourceMaps, child_process, ext, findExtension, helpers, i, len, loadFile, nodeSourceMapsSupportEnabled, patchStackTrace, path, ref, ref1; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); ({patchStackTrace}...
CoffeeScript
JavaScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CoffeeScript, Module, cacheSourceMaps, child_process, ext, findExtension, helpers, i, len, loadFile, nodeSourceMapsSupportEnabled, patchStackTrace, path, ref, ref1; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./...
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' {patchStackTrace} = CoffeeScript # Check if Node's built-in source map stack trace transformations are enabled. nodeSourceMapsSupportEnabled = process? and ( process.execArgv.inclu...
JavaScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:completion
completion
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' {patchStackTrace} = CoffeeScript # Check if Node's built-in source map stack trace transformations are enabled. nodeSourceMapsSupportEnabled = process? and ( process.execArgv.inclu...
js = CoffeeScript._compileFile filename, options module._compile js, filename # If the installed version of Node supports `require.extensions`, register # CoffeeScript as an extension. if require.extensions for ext in CoffeeScript.FILE_EXTENSIONS require.extensions[ext] = loadFile # Patch Node's module loa...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:2:raw_corpus
raw_corpus
@filename = filename @paths = Module._nodeModulePaths path.dirname filename extension = findExtension filename Module._extensions[extension](this, filename) @loaded = true # If we're on Node, patch `child_process.fork` so that Coffee scripts are able # to fork both CoffeeScript files, and JavaScript fi...
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
51
73
jashkenas/coffeescript:src/register.coffee:2:completion
completion
@filename = filename @paths = Module._nodeModulePaths path.dirname filename extension = findExtension filename Module._extensions[extension](this, filename) @loaded = true # If we're on Node, patch `child_process.fork` so that Coffee scripts are able # to fork both CoffeeScript files, and JavaScript fi...
child_process.fork = (path, args, options) -> if helpers.isCoffee path unless Array.isArray args options = args or {} args = [] args = [path].concat args path = binary fork path, args, options # Utility function to find the `options` object attached to the topmost module. getR...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/src/register.coffee
51
73
jashkenas/coffeescript:src/register.coffee:1:raw_corpus
raw_corpus
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> options = module.options or getRootModule(module).options answer = CoffeeScript...
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> options = module.options...
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFi...
CoffeeScript
JavaScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load and run a C...
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> options = module.options or getRootModule(module).options answer = CoffeeScript...
JavaScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:completion
completion
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> options = module.options or getRootModule(module).options answer = CoffeeScript...
# Start with the longest possible extension and work our way shortwards. while extensions.shift() curExtension = '.' + extensions.join '.' return curExtension if Module._extensions[curExtension] '.js' Module::load = (filename) -> @filename = filename @paths = Module._nodeModulePaths path....
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:2:raw_corpus
raw_corpus
fork path, args, options # Utility function to find the `options` object attached to the topmost module. getRootModule = (module) -> if module.parent then getRootModule module.parent else module
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
51
55
jashkenas/coffeescript:src/register.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fork path, args, options # Utility function to find the `options` object attached to the topmost module. getRootModule = (module) -> if module.parent then getRootModule module.parent else module ```
var getRootModule; fork(path, args, options); // Utility function to find the `options` object attached to the topmost module. getRootModule = function(module) { if (module.parent) { return getRootModule(module.parent); } else { return module; } };
CoffeeScript
JavaScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
51
55
jashkenas/coffeescript:src/register.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var getRootModule; fork(path, args, options); // Utility function to find the `options` object attached to the topmost module. getRootModule = function(module) { if (module.parent) { return getRootModule(module.parent); } else { return module; } }; ...
fork path, args, options # Utility function to find the `options` object attached to the topmost module. getRootModule = (module) -> if module.parent then getRootModule module.parent else module
JavaScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
51
55
jashkenas/coffeescript:src/register.coffee:2:completion
completion
fork path, args, options
# Utility function to find the `options` object attached to the topmost module. getRootModule = (module) -> if module.parent then getRootModule module.parent else module
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7
16,577
https://github.com/jashkenas/coffeescript/blob/a2037e799f3e38fb83c2fa06daad4a8f5f8d2ce7/src/register.coffee
51
55
jashkenas/coffeescript:src/register.coffee:1:raw_corpus
raw_corpus
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compile answer, fi...
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
8407dd885a2de4b9b061177f67e41f3df84f53b2
16,577
https://github.com/jashkenas/coffeescript/blob/8407dd885a2de4b9b061177f67e41f3df84f53b2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._c...
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFi...
CoffeeScript
JavaScript
jashkenas/coffeescript
src/register.coffee
MIT
8407dd885a2de4b9b061177f67e41f3df84f53b2
16,577
https://github.com/jashkenas/coffeescript/blob/8407dd885a2de4b9b061177f67e41f3df84f53b2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load and run a C...
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compile answer, fi...
JavaScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
8407dd885a2de4b9b061177f67e41f3df84f53b2
16,577
https://github.com/jashkenas/coffeescript/blob/8407dd885a2de4b9b061177f67e41f3df84f53b2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:completion
completion
CoffeeScript = require './' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compile answer, fi...
while extensions.shift() curExtension = '.' + extensions.join '.' return curExtension if Module._extensions[curExtension] '.js' Module::load = (filename) -> @filename = filename @paths = Module._nodeModulePaths path.dirname filename extension = findExtension filename Module._extension...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
8407dd885a2de4b9b061177f67e41f3df84f53b2
16,577
https://github.com/jashkenas/coffeescript/blob/8407dd885a2de4b9b061177f67e41f3df84f53b2/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:raw_corpus
raw_corpus
CoffeeScript = require './coffeescript' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compil...
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
4cc701a9da0132efbb5c58c142cec0348443ec1d
16,577
https://github.com/jashkenas/coffeescript/blob/4cc701a9da0132efbb5c58c142cec0348443ec1d/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript CoffeeScript = require './coffeescript' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = Cof...
var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./coffeescript'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load and run a CoffeeScript file for Node, stripping any `B...
CoffeeScript
JavaScript
jashkenas/coffeescript
src/register.coffee
MIT
4cc701a9da0132efbb5c58c142cec0348443ec1d
16,577
https://github.com/jashkenas/coffeescript/blob/4cc701a9da0132efbb5c58c142cec0348443ec1d/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var CoffeeScript, Module, binary, child_process, ext, findExtension, fork, helpers, i, len, loadFile, path, ref; CoffeeScript = require('./coffeescript'); child_process = require('child_process'); helpers = require('./helpers'); path = require('path'); // Load...
CoffeeScript = require './coffeescript' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compil...
JavaScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
4cc701a9da0132efbb5c58c142cec0348443ec1d
16,577
https://github.com/jashkenas/coffeescript/blob/4cc701a9da0132efbb5c58c142cec0348443ec1d/src/register.coffee
1
50
jashkenas/coffeescript:src/register.coffee:1:completion
completion
CoffeeScript = require './coffeescript' child_process = require 'child_process' helpers = require './helpers' path = require 'path' # Load and run a CoffeeScript file for Node, stripping any `BOM`s. loadFile = (module, filename) -> answer = CoffeeScript._compileFile filename, no, yes module._compil...
while extensions.shift() curExtension = '.' + extensions.join '.' return curExtension if Module._extensions[curExtension] '.js' Module::load = (filename) -> @filename = filename @paths = Module._nodeModulePaths path.dirname filename extension = findExtension filename Module._extension...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
src/register.coffee
MIT
4cc701a9da0132efbb5c58c142cec0348443ec1d
16,577
https://github.com/jashkenas/coffeescript/blob/4cc701a9da0132efbb5c58c142cec0348443ec1d/src/register.coffee
1
50
rs/pushd:lib/pushservices/c2dm.coffee:1:raw_corpus
raw_corpus
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) ->...
var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } } constructor(conf, logger, tokenResolver) { ...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } ...
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:completion
completion
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
subOptions: subOptions, payload: payload _pushTask: (task, done) -> task.subscriber.get (info) => note = registration_id: info.token collapse_key: task.payload.event?.name if task.subOptions?.ignore_message isnt true if tit...
CoffeeScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:raw_corpus
raw_corpus
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
7ceb220702d1a84dfe235ee2be0329783f1e6f19
1,157
https://github.com/rs/pushd/blob/7ceb220702d1a84dfe235ee2be0329783f1e6f19/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) ->...
var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } } constructor(conf, logger, tokenResolver) { ...
CoffeeScript
JavaScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
7ceb220702d1a84dfe235ee2be0329783f1e6f19
1,157
https://github.com/rs/pushd/blob/7ceb220702d1a84dfe235ee2be0329783f1e6f19/lib/pushservices/c2dm.coffee
1
48
rs/pushd:lib/pushservices/c2dm.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PushServiceC2DM, async, c2dm; async = require('async'); c2dm = require('c2dm'); PushServiceC2DM = (function() { class PushServiceC2DM { validateToken(token) { if (PushServiceC2DM.prototype.tokenFormat.test(token)) { return token; } ...
async = require 'async' c2dm = require 'c2dm' class PushServiceC2DM tokenFormat: /^[a-zA-Z0-9_-]+$/ validateToken: (token) -> if PushServiceC2DM::tokenFormat.test(token) return token constructor: (conf, @logger, tokenResolver) -> conf.concurrency ?= 10 conf.keepAlive = ...
JavaScript
CoffeeScript
rs/pushd
lib/pushservices/c2dm.coffee
MIT
7ceb220702d1a84dfe235ee2be0329783f1e6f19
1,157
https://github.com/rs/pushd/blob/7ceb220702d1a84dfe235ee2be0329783f1e6f19/lib/pushservices/c2dm.coffee
1
48