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
octoblu/meshblu:lib/Publisher.coffee:1:completion
completion
class Publisher constructor: ({@uuid, @namespace}, {@client}={}) -> {createClient} = require './redis' @client ?= createClient() _channel: =>
"#{@namespace}:#{@uuid}" publish: (message, callback) => @client.publish @_channel(), JSON.stringify(message), callback module.exports = Publisher
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/Publisher.coffee
MIT
32803658e5d5b6cdd2553cd353c4d589d36e5306
815
https://github.com/octoblu/meshblu/blob/32803658e5d5b6cdd2553cd353c4d589d36e5306/lib/Publisher.coffee
1
12
Glavin001/atom-beautify:src/languages/html.coffee:2:raw_corpus
raw_corpus
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/languages/html.coffee
51
100
Glavin001/atom-beautify:src/languages/html.coffee:2:completion
completion
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
'a', 'abbr', 'area', 'audio', 'b', 'bdi', 'bdo', 'br', 'button', 'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'map', 'mark', 'math', 'meter', 'noscript', 'object', 'output', 'progress', 'q',...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/languages/html.coffee
51
100
Glavin001/atom-beautify:src/languages/html.coffee:2:raw_corpus
raw_corpus
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
a3accd137378bb29968ba4f9ddf0d82548e460e6
1,503
https://github.com/Glavin001/atom-beautify/blob/a3accd137378bb29968ba4f9ddf0d82548e460e6/src/languages/html.coffee
51
100
Glavin001/atom-beautify:src/languages/html.coffee:2:completion
completion
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
'acronym', 'address', 'big', 'dt', 'ins', 'small', 'strike', 'tt', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ] items: type: 'string' description: "(Deprecated for most scenarios - consider inline or content_unformatted) List of tags that should not be reformatted at a...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
a3accd137378bb29968ba4f9ddf0d82548e460e6
1,503
https://github.com/Glavin001/atom-beautify/blob/a3accd137378bb29968ba4f9ddf0d82548e460e6/src/languages/html.coffee
51
100
Glavin001/atom-beautify:src/languages/html.coffee:2:raw_corpus
raw_corpus
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
4a3c093199ab1fa92ffa92afa32e7ed1bf073870
1,503
https://github.com/Glavin001/atom-beautify/blob/4a3c093199ab1fa92ffa92afa32e7ed1bf073870/src/languages/html.coffee
51
100
Glavin001/atom-beautify:src/languages/html.coffee:2:completion
completion
default: "auto" enum: ["auto", "aligned-multiple", "force", "force-aligned", "force-expand-multiline"] description: "Wrap attributes to new lines [auto|aligned-multiple|force|force-aligned|force-expand-multiline]" wrap_attributes_indent_size: type: 'integer' default: null minimum: 0 ...
'acronym', 'address', 'big', 'dt', 'ins', 'small', 'strike', 'tt', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ] items: type: 'string' description: "(Depracated for most scenarios) List of tags that should not be reformatted at all. NOTE: Set this to [] to get improved...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/languages/html.coffee
MIT
4a3c093199ab1fa92ffa92afa32e7ed1bf073870
1,503
https://github.com/Glavin001/atom-beautify/blob/4a3c093199ab1fa92ffa92afa32e7ed1bf073870/src/languages/html.coffee
51
100
jianliaoim/talk-os:talk-web/test/spec/actions/topic-prefs.spec.coffee:1:raw_corpus
raw_corpus
xdescribe 'Actions: topic-prefs', -> beforeEach -> @action = require 'actions/topic-prefs' @api = require 'network/api' describe 'Method: update', -> it 'should call api', -> spyOn(@api.rooms.prefs, 'put').and.callThrough() roomId = 1 data = {} config = pathParams: ...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/topic-prefs.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/topic-prefs.spec.coffee
1
19
jianliaoim/talk-os:talk-web/test/spec/actions/topic-prefs.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript xdescribe 'Actions: topic-prefs', -> beforeEach -> @action = require 'actions/topic-prefs' @api = require 'network/api' describe 'Method: update', -> it 'should call api', -> spyOn(@api.rooms.prefs, 'put').and.callThrough() roomId =...
xdescribe('Actions: topic-prefs', function() { beforeEach(function() { this.action = require('actions/topic-prefs'); return this.api = require('network/api'); }); return describe('Method: update', function() { return it('should call api', function() { var config, data, roomId; spyOn(this.a...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/actions/topic-prefs.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/topic-prefs.spec.coffee
1
19
jianliaoim/talk-os:talk-web/test/spec/actions/topic-prefs.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript xdescribe('Actions: topic-prefs', function() { beforeEach(function() { this.action = require('actions/topic-prefs'); return this.api = require('network/api'); }); return describe('Method: update', function() { return it('should call api', function...
xdescribe 'Actions: topic-prefs', -> beforeEach -> @action = require 'actions/topic-prefs' @api = require 'network/api' describe 'Method: update', -> it 'should call api', -> spyOn(@api.rooms.prefs, 'put').and.callThrough() roomId = 1 data = {} config = pathParams: ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/topic-prefs.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/topic-prefs.spec.coffee
1
19
jianliaoim/talk-os:talk-web/test/spec/actions/topic-prefs.spec.coffee:1:completion
completion
xdescribe 'Actions: topic-prefs', -> beforeEach -> @action = require 'actions/topic-prefs' @api = require 'network/api' describe 'Method: update', -> it 'should call api', -> spyOn(@api.rooms.prefs, 'put').and.callThrough()
roomId = 1 data = {} config = pathParams: id: roomId data: data @action.update(roomId, data) expect(@api.rooms.prefs.put).toHaveBeenCalledWith config
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/actions/topic-prefs.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/topic-prefs.spec.coffee
1
19
jianliaoim/talk-os:talk-web/client/updater/topic-prefs.coffee:1:raw_corpus
raw_corpus
# http://talk.ci/doc/event/room.prefs.update.html # dataSchema = # type: 'object' # properties: # _userId: {type: 'string'} # _roomId: {type: 'string'} # _teamId: {type: 'string'} exports.push = (store, actionData) -> _teamId = actionData.get('_teamId') _roomId = actionData.get('_roomId') prefsDat...
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/topic-prefs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/topic-prefs.coffee
1
29
jianliaoim/talk-os:talk-web/client/updater/topic-prefs.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # http://talk.ci/doc/event/room.prefs.update.html # dataSchema = # type: 'object' # properties: # _userId: {type: 'string'} # _roomId: {type: 'string'} # _teamId: {type: 'string'} exports.push = (store, actionData) -> _teamId = actionData.get('_...
// http://talk.ci/doc/event/room.prefs.update.html // dataSchema = // type: 'object' // properties: // _userId: {type: 'string'} // _roomId: {type: 'string'} // _teamId: {type: 'string'} exports.push = function(store, actionData) { var _roomId, _teamId, prefsData; _teamId = actionData.get('_teamId')...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/topic-prefs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/topic-prefs.coffee
1
29
jianliaoim/talk-os:talk-web/client/updater/topic-prefs.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // http://talk.ci/doc/event/room.prefs.update.html // dataSchema = // type: 'object' // properties: // _userId: {type: 'string'} // _roomId: {type: 'string'} // _teamId: {type: 'string'} exports.push = function(store, actionData) { var _roomId, _t...
# http://talk.ci/doc/event/room.prefs.update.html # dataSchema = # type: 'object' # properties: # _userId: {type: 'string'} # _roomId: {type: 'string'} # _teamId: {type: 'string'} exports.push = (store, actionData) -> _teamId = actionData.get('_teamId') _roomId = actionData.get('_roomId') prefsDat...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/topic-prefs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/topic-prefs.coffee
1
29
jianliaoim/talk-os:talk-web/client/updater/topic-prefs.coffee:1:completion
completion
# http://talk.ci/doc/event/room.prefs.update.html # dataSchema = # type: 'object' # properties: # _userId: {type: 'string'} # _roomId: {type: 'string'} # _teamId: {type: 'string'} exports.push = (store, actionData) -> _teamId = actionData.get('_teamId') _roomId = actionData.get('_roomId') prefsDat...
cursor.update _roomId, (prefs) -> prefs.merge prefsData else cursor # room object http://talk.ci/doc/restful/room.updateprefs.html exports.update = (store, roomData) -> _teamId = roomData.get('_teamId') _roomId = roomData.get('_id') prefsData = roomData.get('prefs') store.update 'topicPrefs', (cur...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/topic-prefs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/topic-prefs.coffee
1
29
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:raw_corpus
raw_corpus
path = require 'path' VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' scopeFromFileName = require '../lib/scope-from-file-name' describe 'VariableScanner', -> [scanner, editor, text, scope] = [] withTextEditor = (fixture, block) -> describe "with #{fixture}...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
1
40
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript path = require 'path' VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' scopeFromFileName = require '../lib/scope-from-file-name' describe 'VariableScanner', -> [scanner, editor, text, scope] = [] withTextE...
var VariableScanner, path, registry, scopeFromFileName; path = require('path'); VariableScanner = require('../lib/variable-scanner'); registry = require('../lib/variable-expressions'); scopeFromFileName = require('../lib/scope-from-file-name'); describe('VariableScanner', function() { var editor, scanner, scope,...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
1
40
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var VariableScanner, path, registry, scopeFromFileName; path = require('path'); VariableScanner = require('../lib/variable-scanner'); registry = require('../lib/variable-expressions'); scopeFromFileName = require('../lib/scope-from-file-name'); describe('Varia...
path = require 'path' VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' scopeFromFileName = require '../lib/scope-from-file-name' describe 'VariableScanner', -> [scanner, editor, text, scope] = [] withTextEditor = (fixture, block) -> describe "with #{fixture}...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
1
40
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:completion
completion
path = require 'path' VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' scopeFromFileName = require '../lib/scope-from-file-name' describe 'VariableScanner', -> [scanner, editor, text, scope] = [] withTextEditor = (fixture, block) -> describe "with #{fixture}...
do block withScannerForTextEditor = (fixture, block) -> withTextEditor fixture, -> beforeEach -> scanner = new VariableScanner({registry, scope}) afterEach -> scanner = null do block describe '::search', -> [result] = [] withScannerForTextEditor 'four-variables.styl', -> bef...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
1
40
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:raw_corpus
raw_corpus
describe 'the result object', -> it 'has a match string', -> expect(result.match).toEqual('base-color = #fff') it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'ha...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
42
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'the result object', -> it 'has a match string', -> expect(result.match).toEqual('base-color = #fff') it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> ...
describe('the result object', function() { it('has a match string', function() { return expect(result.match).toEqual('base-color = #fff'); }); it('has a lastIndex property', function() { return expect(result.lastIndex).toEqual(17); }); it('has a range property', function() { return expect(result.r...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
42
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('the result object', function() { it('has a match string', function() { return expect(result.match).toEqual('base-color = #fff'); }); it('has a lastIndex property', function() { return expect(result.lastIndex).toEqual(17); }); it('has a r...
describe 'the result object', -> it 'has a match string', -> expect(result.match).toEqual('base-color = #fff') it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'ha...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
42
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:completion
completion
describe 'the result object', -> it 'has a match string', -> expect(result.match).toEqual('base-color = #fff') it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'ha...
it 'has a match string', -> expect(result.match).toEqual('other-color = transparentize(base-color, 50%)') it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(64) it 'has a range property', -> expect(result.range).toEqual([19,64]) it 'has a variable...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
42
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:raw_corpus
raw_corpus
expect(doSearch()).toBeDefined() expect(doSearch()).toBeDefined() expect(doSearch()).toBeDefined() expect(doSearch()).toBeUndefined() withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any varia...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:completion
completion
expect(doSearch()).toBeDefined() expect(doSearch()).toBeDefined() expect(doSearch()).toBeDefined() expect(doSearch()).toBeUndefined() withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any varia...
beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-conditions.scss', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:raw_corpus
raw_corpus
doSearch() it 'finds the variable after the mixin', -> expect(result).toBeDefined() withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds t...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
124
148
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:completion
completion
doSearch() it 'finds the variable after the mixin', -> expect(result).toBeDefined() withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch()
it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined() withScannerForTextEditor 'crlf.styl', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() doSearch() it 'finds all the variab...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/variable-scanner-spec.coffee
124
148
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:raw_corpus
raw_corpus
VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
1
39
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach ...
var VariableScanner, registry; VariableScanner = require('../lib/variable-scanner'); registry = require('../lib/variable-expressions'); describe('VariableScanner', function() { var editor, scanner, text, withScannerForTextEditor, withTextEditor; [scanner, editor, text] = []; withTextEditor = function(fixture, ...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
1
39
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var VariableScanner, registry; VariableScanner = require('../lib/variable-scanner'); registry = require('../lib/variable-expressions'); describe('VariableScanner', function() { var editor, scanner, text, withScannerForTextEditor, withTextEditor; [scanner, ed...
VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
1
39
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:completion
completion
VariableScanner = require '../lib/variable-scanner' registry = require '../lib/variable-expressions' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture...
withTextEditor fixture, -> beforeEach -> scanner = new VariableScanner({registry}) afterEach -> scanner = null do block describe '::search', -> [result] = [] withScannerForTextEditor 'four-variables.styl', -> beforeEach -> result = scanner.search(text) it 'returns th...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
1
39
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:raw_corpus
raw_corpus
it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') ...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
41
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') ...
it('has a lastIndex property', function() { return expect(result.lastIndex).toEqual(17); }); it('has a range property', function() { return expect(result.range).toEqual([0, 17]); }); it('has a variable result', function() { expect(result[0].name).toEqual('base-color'); expect(result[0].value).toEqual('#fff');...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
41
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('has a lastIndex property', function() { return expect(result.lastIndex).toEqual(17); }); it('has a range property', function() { return expect(result.range).toEqual([0, 17]); }); it('has a variable result', function() { expect(result[0].name).toEqual('b...
it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') ...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
41
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:completion
completion
it 'has a lastIndex property', -> expect(result.lastIndex).toEqual(17) it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') ...
expect(result.lastIndex).toEqual(64) it 'has a range property', -> expect(result.range).toEqual([19,64]) it 'has a variable result', -> expect(result[0].name).toEqual('other-color') expect(result[0].value).toEqual('transparentize(base-color, 50%)') expect(result...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
41
80
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:raw_corpus
raw_corpus
withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', ->...
withScannerForTextEditor('incomplete-stylus-hash.styl', function() { beforeEach(function() { var result; return result = scanner.search(text); }); return it('does not find any variables', function() { return expect(result).toBeUndefined(); }); }); withScannerForTextEditor('variables-in-arguments.sc...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript withScannerForTextEditor('incomplete-stylus-hash.styl', function() { beforeEach(function() { var result; return result = scanner.search(text); }); return it('does not find any variables', function() { return expect(result).toBeUndefined(); }); }...
withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:completion
completion
withScannerForTextEditor 'incomplete-stylus-hash.styl', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text...
withScannerForTextEditor 'variables-in-conditions.scss', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() doSearch() it 'does not find the variable in the if clause', -> expect(result).toBeUndefined() with...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
82
122
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:raw_corpus
raw_corpus
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined() withScannerForTextE...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
124
143
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> ...
withScannerForTextEditor('variables-from-other-process.less', function() { beforeEach(function() { var doSearch, result; result = null; doSearch = function() { return result = scanner.search(text, result != null ? result.lastIndex : void 0); }; return doSearch(); }); return it('finds the...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
124
143
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript withScannerForTextEditor('variables-from-other-process.less', function() { beforeEach(function() { var doSearch, result; result = null; doSearch = function() { return result = scanner.search(text, result != null ? result.lastIndex : void 0); ...
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined() withScannerForTextE...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
124
143
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:completion
completion
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined()
withScannerForTextEditor 'crlf.styl', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() doSearch() it 'finds all the variables even with crlf mode', -> expect(result).toBeDefined()
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
07117e1fe1c5215bc921085dd516ce72d6af6604
518
https://github.com/abe33/atom-pigments/blob/07117e1fe1c5215bc921085dd516ce72d6af6604/spec/variable-scanner-spec.coffee
124
143
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:raw_corpus
raw_corpus
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined()
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
c62a322078c417a780cdeee1d99caf703843873e
518
https://github.com/abe33/atom-pigments/blob/c62a322078c417a780cdeee1d99caf703843873e/spec/variable-scanner-spec.coffee
124
132
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> ...
withScannerForTextEditor('variables-from-other-process.less', function() { beforeEach(function() { var doSearch, result; result = null; doSearch = function() { return result = scanner.search(text, result != null ? result.lastIndex : void 0); }; return doSearch(); }); return it('finds the...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
c62a322078c417a780cdeee1d99caf703843873e
518
https://github.com/abe33/atom-pigments/blob/c62a322078c417a780cdeee1d99caf703843873e/spec/variable-scanner-spec.coffee
124
132
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript withScannerForTextEditor('variables-from-other-process.less', function() { beforeEach(function() { var doSearch, result; result = null; doSearch = function() { return result = scanner.search(text, result != null ? result.lastIndex : void 0); ...
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined()
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
c62a322078c417a780cdeee1d99caf703843873e
518
https://github.com/abe33/atom-pigments/blob/c62a322078c417a780cdeee1d99caf703843873e/spec/variable-scanner-spec.coffee
124
132
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:completion
completion
withScannerForTextEditor 'variables-from-other-process.less', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex)
doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined()
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
c62a322078c417a780cdeee1d99caf703843873e
518
https://github.com/abe33/atom-pigments/blob/c62a322078c417a780cdeee1d99caf703843873e/spec/variable-scanner-spec.coffee
124
132
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:raw_corpus
raw_corpus
VariableScanner = require '../lib/variable-scanner' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture) runs -> editor = atom.workspa...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
1
41
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript VariableScanner = require '../lib/variable-scanner' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open...
var VariableScanner; VariableScanner = require('../lib/variable-scanner'); describe('VariableScanner', function() { var editor, scanner, text, withScannerForTextEditor, withTextEditor; [scanner, editor, text] = []; withTextEditor = function(fixture, block) { return describe(`with ${fixture} buffer`, functio...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
1
41
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var VariableScanner; VariableScanner = require('../lib/variable-scanner'); describe('VariableScanner', function() { var editor, scanner, text, withScannerForTextEditor, withTextEditor; [scanner, editor, text] = []; withTextEditor = function(fixture, block) ...
VariableScanner = require '../lib/variable-scanner' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture) runs -> editor = atom.workspa...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
1
41
abe33/atom-pigments:spec/variable-scanner-spec.coffee:1:completion
completion
VariableScanner = require '../lib/variable-scanner' describe 'VariableScanner', -> [scanner, editor, text] = [] withTextEditor = (fixture, block) -> describe "with #{fixture} buffer", -> beforeEach -> waitsForPromise -> atom.workspace.open(fixture) runs -> editor = atom.workspa...
afterEach -> scanner = null do block describe '::search', -> [result] = [] withScannerForTextEditor 'four-variables.styl', -> beforeEach -> result = scanner.search(text) it 'returns the first match', -> expect(result).toBeDefined() describe 'the result object', -> ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
1
41
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:raw_corpus
raw_corpus
it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') expect(result[0].range).toEqual([0,17]) expect(result[0].line).toEqual(0) ...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
43
83
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') expect(result[0].range).toEqual...
it('has a range property', function() { return expect(result.range).toEqual([0, 17]); }); it('has a variable result', function() { expect(result[0].name).toEqual('base-color'); expect(result[0].value).toEqual('#fff'); expect(result[0].range).toEqual([0, 17]); return expect(result[0].line).toEqual(0); }); de...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
43
83
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('has a range property', function() { return expect(result.range).toEqual([0, 17]); }); it('has a variable result', function() { expect(result[0].name).toEqual('base-color'); expect(result[0].value).toEqual('#fff'); expect(result[0].range).toEqual([0, 17...
it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') expect(result[0].range).toEqual([0,17]) expect(result[0].line).toEqual(0) ...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
43
83
abe33/atom-pigments:spec/variable-scanner-spec.coffee:2:completion
completion
it 'has a range property', -> expect(result.range).toEqual([0,17]) it 'has a variable result', -> expect(result[0].name).toEqual('base-color') expect(result[0].value).toEqual('#fff') expect(result[0].range).toEqual([0,17]) expect(result[0].line).toEqual(0) ...
expect(result.range).toEqual([19,64]) it 'has a variable result', -> expect(result[0].name).toEqual('other-color') expect(result[0].value).toEqual('transparentize(base-color, 50%)') expect(result[0].range).toEqual([19,64]) expect(result[0].line).toEqual(2) describ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
43
83
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:raw_corpus
raw_corpus
it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'attribut...
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
85
126
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result...
it('does not find any variables', function() { return expect(result).toBeUndefined(); }); withScannerForTextEditor('variables-in-arguments.scss', function() { beforeEach(function() { var result; return result = scanner.search(text); }); return it('does not find any variables', function() { return e...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
85
126
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('does not find any variables', function() { return expect(result).toBeUndefined(); }); withScannerForTextEditor('variables-in-arguments.scss', function() { beforeEach(function() { var result; return result = scanner.search(text); }); return it('...
it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'attribut...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
85
126
abe33/atom-pigments:spec/variable-scanner-spec.coffee:3:completion
completion
it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-in-arguments.scss', -> beforeEach -> result = scanner.search(text) it 'does not find any variables', -> expect(result).toBeUndefined() withScannerForTextEditor 'attribut...
doSearch() doSearch() it 'does not find the variable in the if clause', -> expect(result).toBeUndefined() withScannerForTextEditor 'variables-after-mixins.scss', -> beforeEach -> result = null doSearch = -> result = scanner.search(text, result?.lastIndex) doSea...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
85
126
abe33/atom-pigments:spec/variable-scanner-spec.coffee:4:raw_corpus
raw_corpus
doSearch() it 'finds the variable with an interpolation tag', -> expect(result).toBeDefined()
CoffeeScript
abe33/atom-pigments
spec/variable-scanner-spec.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/variable-scanner-spec.coffee
128
131
jianliaoim/talk-os:talk-web/client/util/fields-reader.coffee:1:raw_corpus
raw_corpus
# fields is plain mutable array exports.hasField = (fields, field) -> theFields = fields.filter (item) -> item.key is field theFields.length > 0 exports.getField = (fields, field) -> theFields = fields.filter (item) -> item.key is field if theFields.length is 0 throw new Error 'matched fields are empty' ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/fields-reader.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/fields-reader.coffee
1
11
jianliaoim/talk-os:talk-web/client/util/fields-reader.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # fields is plain mutable array exports.hasField = (fields, field) -> theFields = fields.filter (item) -> item.key is field theFields.length > 0 exports.getField = (fields, field) -> theFields = fields.filter (item) -> item.key is field if theFields.leng...
// fields is plain mutable array exports.hasField = function(fields, field) { var theFields; theFields = fields.filter(function(item) { return item.key === field; }); return theFields.length > 0; }; exports.getField = function(fields, field) { var theFields; theFields = fields.filter(function(item) { ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/fields-reader.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/fields-reader.coffee
1
11
jianliaoim/talk-os:talk-web/client/util/fields-reader.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // fields is plain mutable array exports.hasField = function(fields, field) { var theFields; theFields = fields.filter(function(item) { return item.key === field; }); return theFields.length > 0; }; exports.getField = function(fields, field) { var th...
# fields is plain mutable array exports.hasField = (fields, field) -> theFields = fields.filter (item) -> item.key is field theFields.length > 0 exports.getField = (fields, field) -> theFields = fields.filter (item) -> item.key is field if theFields.length is 0 throw new Error 'matched fields are empty' ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/fields-reader.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/fields-reader.coffee
1
11
jianliaoim/talk-os:talk-web/client/util/fields-reader.coffee:1:completion
completion
# fields is plain mutable array exports.hasField = (fields, field) -> theFields = fields.filter (item) -> item.key is field theFields.length > 0
exports.getField = (fields, field) -> theFields = fields.filter (item) -> item.key is field if theFields.length is 0 throw new Error 'matched fields are empty' else theFields[0]
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/fields-reader.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/fields-reader.coffee
1
11
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:raw_corpus
raw_corpus
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value) in create()', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' ) test 'Issue #117 (0 as element value) in begin()', -> r = '' doc((c) -> r += c).ele('root').ele('test', ...
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/117.coffee
1
15
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value) in create()', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' ) test 'Issue #117 (0 as element value) in begin()', -> ...
suite('Tests specific to issues:', function() { test('Issue #117 (0 as element value) in create()', function() { return eq(xml('root').ele('test', 0).end(), '<?xml version="1.0"?><root><test>0</test></root>'); }); return test('Issue #117 (0 as element value) in begin()', function() { var r; r = ''; ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/117.coffee
1
15
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Tests specific to issues:', function() { test('Issue #117 (0 as element value) in create()', function() { return eq(xml('root').ele('test', 0).end(), '<?xml version="1.0"?><root><test>0</test></root>'); }); return test('Issue #117 (0 as element val...
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value) in create()', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' ) test 'Issue #117 (0 as element value) in begin()', -> r = '' doc((c) -> r += c).ele('root').ele('test', ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/117.coffee
1
15
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:completion
completion
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value) in create()', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' )
test 'Issue #117 (0 as element value) in begin()', -> r = '' doc((c) -> r += c).ele('root').ele('test', 0).end() eq( r '<root><test>0</test></root>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/117.coffee
1
15
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:raw_corpus
raw_corpus
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value)', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' )
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
579f361e81b4d28ca402016dcf28357d13e1601f
926
https://github.com/oozcitak/xmlbuilder-js/blob/579f361e81b4d28ca402016dcf28357d13e1601f/test/issues/117.coffee
1
6
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value)', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' ) ```
suite('Tests specific to issues:', function() { return test('Issue #117 (0 as element value)', function() { return eq(xml('root').ele('test', 0).end(), '<?xml version="1.0"?><root><test>0</test></root>'); }); });
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
579f361e81b4d28ca402016dcf28357d13e1601f
926
https://github.com/oozcitak/xmlbuilder-js/blob/579f361e81b4d28ca402016dcf28357d13e1601f/test/issues/117.coffee
1
6
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Tests specific to issues:', function() { return test('Issue #117 (0 as element value)', function() { return eq(xml('root').ele('test', 0).end(), '<?xml version="1.0"?><root><test>0</test></root>'); }); }); ```
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value)', -> eq( xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' )
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
579f361e81b4d28ca402016dcf28357d13e1601f
926
https://github.com/oozcitak/xmlbuilder-js/blob/579f361e81b4d28ca402016dcf28357d13e1601f/test/issues/117.coffee
1
6
oozcitak/xmlbuilder-js:test/issues/117.coffee:1:completion
completion
suite 'Tests specific to issues:', -> test 'Issue #117 (0 as element value)', -> eq(
xml('root').ele('test', 0).end() '<?xml version="1.0"?><root><test>0</test></root>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/issues/117.coffee
MIT
579f361e81b4d28ca402016dcf28357d13e1601f
926
https://github.com/oozcitak/xmlbuilder-js/blob/579f361e81b4d28ca402016dcf28357d13e1601f/test/issues/117.coffee
1
6
outsideris/popularconvention:test/timeline.test.coffee:1:raw_corpus
raw_corpus
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, should, timeline; should = require('should'); fs = require('fs'); timeline = require('../src/timeline'); describe('timeline >', function() { var timel...
CoffeeScript
JavaScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, should, timeline; should = require('should'); fs = require('fs'); timeline = require('../src/timel...
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
JavaScript
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:completion
completion
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
it 'check commits urls', -> fixture = payload: shas: [ ["dff0c78f5af1d1bb38ac07363ea881f0df0f7535", true] ["0649e5e9d2f71c96517bca1b582c706e665bca6a", true] ] repository: name: "test" owner: "mockrepo" urls = timeline.getCommitUrls fixture url...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
4e14df19a1d7fd3747c73620648df56853902087
730
https://github.com/outsideris/popularconvention/blob/4e14df19a1d7fd3747c73620648df56853902087/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:raw_corpus
raw_corpus
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
d5cced919f11b68e8b159171d3ca9d3f973544e9
730
https://github.com/outsideris/popularconvention/blob/d5cced919f11b68e8b159171d3ca9d3f973544e9/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> ...
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, should, timeline; should = require('should'); fs = require('fs'); timeline = require('../src/timeline'); describe('timeline >', function() { var timel...
CoffeeScript
JavaScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
d5cced919f11b68e8b159171d3ca9d3f973544e9
730
https://github.com/outsideris/popularconvention/blob/d5cced919f11b68e8b159171d3ca9d3f973544e9/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> // Licensed under the MIT license. // <http://outsider.mit-license.org/> var fs, should, timeline; should = require('should'); fs = require('fs'); timeline = require('../src/timel...
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
JavaScript
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
d5cced919f11b68e8b159171d3ca9d3f973544e9
730
https://github.com/outsideris/popularconvention/blob/d5cced919f11b68e8b159171d3ca9d3f973544e9/test/timeline.test.coffee
1
37
outsideris/popularconvention:test/timeline.test.coffee:1:completion
completion
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/> # Licensed under the MIT license. # <http://outsider.mit-license.org/> should = require 'should' fs = require 'fs' timeline = require '../src/timeline' describe 'timeline >', -> timelineFixture = '' before -> timelineFixture =...
it 'check commits urls', -> fixture = payload: shas: [ ["dff0c78f5af1d1bb38ac07363ea881f0df0f7535", true] ["0649e5e9d2f71c96517bca1b582c706e665bca6a", true] ] repository: name: "test" owner: "mockrepo" urls = timeline.getCommitUrls fixture url...
CoffeeScript
CoffeeScript
outsideris/popularconvention
test/timeline.test.coffee
MIT
d5cced919f11b68e8b159171d3ca9d3f973544e9
730
https://github.com/outsideris/popularconvention/blob/d5cced919f11b68e8b159171d3ca9d3f973544e9/test/timeline.test.coffee
1
37
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:raw_corpus
raw_corpus
###global define### define ['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', ca...
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $r...
/*global define*/ define(['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos = { ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { ...
###global define### define ['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', ca...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:completion
completion
###global define### define ['libs/angular', 'services/services', 'services/message', 'libs/angularResource'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', ca...
get = (criteria, success, failure) -> repos.result = activity.get user: criteria , (Resource, getResponseHeaders) -> message.publish 'search', source: 'GitHub', criteria: criteria success.apply(this, arguments) if angular.isFunction success , failure get: get repos: repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
4d1f0e38f7f87729adcf7c80bc4242ce73098f46
672
https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:raw_corpus
raw_corpus
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', callback: 'JSON_CALLBACK',...
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f
672
https://github.com/CaryLandholt/AngularFun/blob/721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.git...
/*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos = { result: {} ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f
672
https://github.com/CaryLandholt/AngularFun/blob/721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, ge...
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', callback: 'JSON_CALLBACK',...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f
672
https://github.com/CaryLandholt/AngularFun/blob/721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:completion
completion
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://api.github.com/users/:user/repos', callback: 'JSON_CALLBACK',...
get = (criteria, success, failure) -> repos.result = activity.get user: criteria , (Resource, getResponseHeaders) -> message.publish 'search', source: 'GitHub', criteria: criteria success.apply(this, arguments) if angular.isFunction success , failure get: get repos: repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f
672
https://github.com/CaryLandholt/AngularFun/blob/721e45c08cdee6730a3f1d3e1f0b45120f1fcd6f/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:raw_corpus
raw_corpus
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
a0fe3a453e28b488b6b711d2110bb1eeb574c8eb
672
https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github....
/*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos = { result: {} ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
a0fe3a453e28b488b6b711d2110bb1eeb574c8eb
672
https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, ge...
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
a0fe3a453e28b488b6b711d2110bb1eeb574c8eb
672
https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:completion
completion
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
get = (criteria, success, failure) -> repos.result = activity.get user: criteria , (Resource, getResponseHeaders) -> message.publish 'search', source: 'GitHub', criteria: criteria success.apply(this, arguments) if angular.isFunction success , failure get: get repos: repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
a0fe3a453e28b488b6b711d2110bb1eeb574c8eb
672
https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/services/gitHub.coffee
1
24
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:raw_corpus
raw_corpus
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
83e68a53d7c24f7d417b494e4fef7451cf0e3d9b
672
https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/services/gitHub.coffee
1
23
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github....
/*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos = { result: {} ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
83e68a53d7c24f7d417b494e4fef7451cf0e3d9b
672
https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/services/gitHub.coffee
1
23
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['libs/angular', 'services/services', 'services/message'], function(angular, services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, ge...
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
83e68a53d7c24f7d417b494e4fef7451cf0e3d9b
672
https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/services/gitHub.coffee
1
23
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:completion
completion
###global define### define ['libs/angular', 'services/services', 'services/message'], (angular, services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', callback: 'JSON_CAL...
method: 'JSONP' get = (criteria, success, failure) -> repos.result = activity.get user: criteria, -> message.publish 'search', source: 'GitHub', criteria: criteria success.apply(this, arguments) if angular.isFunction success , failure get: get repos: repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
83e68a53d7c24f7d417b494e4fef7451cf0e3d9b
672
https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/services/gitHub.coffee
1
23
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:raw_corpus
raw_corpus
###global define### define ['services/services', 'services/message'], (services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', { callback: 'JSON_CALLBACK' } { ...
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
0ae299ec8a05ddbfb2e26f04898245b95f7ab37c
672
https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/gitHub.coffee
1
26
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['services/services', 'services/message'], (services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/sho...
/*global define*/ define(['services/services', 'services/message'], function(services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos = { result: {} }; activity = $reso...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
0ae299ec8a05ddbfb2e26f04898245b95f7ab37c
672
https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/gitHub.coffee
1
26
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['services/services', 'services/message'], function(services) { 'use strict'; return services.factory('gitHub', [ '$resource', 'message', function($resource, message) { var activity, get, repos; repos...
###global define### define ['services/services', 'services/message'], (services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', { callback: 'JSON_CALLBACK' } { ...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
0ae299ec8a05ddbfb2e26f04898245b95f7ab37c
672
https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/gitHub.coffee
1
26
CaryLandholt/AngularFun:scripts/services/gitHub.coffee:1:completion
completion
###global define### define ['services/services', 'services/message'], (services) -> 'use strict' services.factory 'gitHub', ['$resource', 'message', ($resource, message) -> repos = result: {} activity = $resource 'https://github.com/api/v2/json/repos/show/:user', { callback: 'JSON_CALLBACK' } {
get: method: 'JSONP' } get = (criteria, success, failure) -> repos.result = activity.get user: criteria, -> message.publish 'search', source: 'GitHub', criteria: criteria success.apply this, arguments , failure get: get repos: repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
scripts/services/gitHub.coffee
MIT
0ae299ec8a05ddbfb2e26f04898245b95f7ab37c
672
https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/gitHub.coffee
1
26