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
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : "pinch,pinching,pinchIn,pinchOut".split(",") handler : do (gm = Quo.gestur...
/* Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone */ "use strict"; Quo.gesture.add({ name: "pinch", events: "pinch,pinching,pinchIn,pinchOut".split(","), handler: (function(gm) { var TRIGGER_PIXELS, _check, _distance, _last, _start, _target,...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone */ "use strict"; Quo.gesture.add({ name: "pinch", events: "pinch,pinching,pinchIn,pinchOut".split(","), handler: (function(gm) { var TRI...
### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : "pinch,pinching,pinchIn,pinchOut".split(",") handler : do (gm = Quo.gesture) -> TRIGGER_PIXELS = 20 _target = null _s...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:completion
completion
### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : "pinch,pinching,pinchIn,pinchOut".split(",") handler : do (gm = Quo.gesture) -> TRIGGER_PIXELS = 20 _target = null _s...
if _start and data.length is 2 distance = _distance data[0], data[1] _last = touches: data, delta: (distance - _start) _check(true) end = (target, data) -> if _start and _last _check(false) _start = null _last = null _distance = (A, B) -> Math.sqrt((...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:raw_corpus
raw_corpus
### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : ["pinch", "pinching", "pinchIn", "pinchOut"] handler : do (gm = Quo.gesture) -> TRIGGER_PIXELS = 20 _target = null _s...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : ["pinch", "pinching", "pinchIn", "pinchOut"] handler : do (gm = Quo.gestur...
/* Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone */ "use strict"; Quo.gesture.add({ name: "pinch", events: ["pinch", "pinching", "pinchIn", "pinchOut"], handler: (function(gm) { var TRIGGER_PIXELS, _check, _distance, _last, _start, _target,...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone */ "use strict"; Quo.gesture.add({ name: "pinch", events: ["pinch", "pinching", "pinchIn", "pinchOut"], handler: (function(gm) { var TRI...
### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : ["pinch", "pinching", "pinchIn", "pinchOut"] handler : do (gm = Quo.gesture) -> TRIGGER_PIXELS = 20 _target = null _s...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.pinch.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.pinch.coffee:1:completion
completion
### Quo Pinch Gestures: pinch, pinching, pinchIn, pinchOut @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone ### "use strict" Quo.gesture.add name : "pinch" events : ["pinch", "pinching", "pinchIn", "pinchOut"] handler : do (gm = Quo.gesture) -> TRIGGER_PIXELS = 20 _target = null _s...
if _start and data.length is 2 distance = _distance data[0], data[1] _last = touches: data, delta: (distance - _start) _check(true) end = (target, data) -> if _start and _last _check(false) _start = null _last = null _distance = (A, B) -> Math.sqrt((...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.pinch.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.pinch.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.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/directives/directives.editor.view.objectArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.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 ...
templateUrl: '/partials/editor/objectArray.html' transclude: true controller: ($scope) -> $scope.removeItem = (index) -> $scope.model.splice(index, 1) # Clones an item $scope.cloneItem = (index) -> cloned = angular.copy($scope.model[...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee:2:raw_corpus
raw_corpus
$scope.model.splice(spliceIndex+1, 0, cloned) $scope.goToSubState = (state, item, index) -> $scope.$parent.goToSubState(state, item, index) # Initialize $scope.model = [] unless $scope.model? link: (scope, element, attrs) -> scope.label ?= 'Ite...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
51
64
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee:2:completion
completion
$scope.model.splice(spliceIndex+1, 0, cloned) $scope.goToSubState = (state, item, index) -> $scope.$parent.goToSubState(state, item, index) # Initialize $scope.model = [] unless $scope.model?
link: (scope, element, attrs) -> scope.label ?= 'Item' return }
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
51
64
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.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/directives/directives.editor.view.objectArray.coffee
MIT
df26fc48ea0296697e2755b7a1d9ce5cf50a4483
1,544
https://github.com/ExpediaGroup/cyclotron/blob/df26fc48ea0296697e2755b7a1d9ce5cf50a4483/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.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 ...
templateUrl: '/partials/editor/objectArray.html' transclude: true controller: ($scope) -> $scope.removeItem = (index) -> $scope.model.splice(index, 1) # Clones an item $scope.cloneItem = (index) -> cloned = angular.copy($scope.model[...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
df26fc48ea0296697e2755b7a1d9ce5cf50a4483
1,544
https://github.com/ExpediaGroup/cyclotron/blob/df26fc48ea0296697e2755b7a1d9ce5cf50a4483/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee:2:raw_corpus
raw_corpus
$scope.model.splice(spliceIndex+1, 0, cloned) # Moves an item to a new location $scope.moveItem = (oldIndex, newIndex) -> return unless $scope.model? return if newIndex < 0 || newIndex >= $scope.model.length item = $scope.model.splice(oldIndex, 1...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
51
78
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee:2:completion
completion
$scope.model.splice(spliceIndex+1, 0, cloned) # Moves an item to a new location $scope.moveItem = (oldIndex, newIndex) -> return unless $scope.model? return if newIndex < 0 || newIndex >= $scope.model.length item = $scope.model.splice(oldIndex, 1...
$scope.moveItem(index, index + 1) $scope.goToSubState = (state, item, index) -> $scope.$parent.goToSubState(state, item, index) # Initialize $scope.model = [] unless $scope.model? link: (scope, element, attrs) -> scope.label ?= 'Item' ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.objectArray.coffee
51
78
snd/url-pattern:util.coffee:1:raw_corpus
raw_corpus
_ = require 'underscore' module.exports = util = getNames: (arg) -> return [] if _.isRegExp arg regex = /:([^\/]+)/g names = [] results = regex.exec arg while results? names.push results[1] results = regex.exec arg names toRegex: (arg)...
CoffeeScript
snd/url-pattern
util.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/util.coffee
1
23
snd/url-pattern:util.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'underscore' module.exports = util = getNames: (arg) -> return [] if _.isRegExp arg regex = /:([^\/]+)/g names = [] results = regex.exec arg while results? names.push results[1] r...
var _, util; _ = require('underscore'); module.exports = util = { getNames: function(arg) { var names, regex, results; if (_.isRegExp(arg)) { return []; } regex = /:([^\/]+)/g; names = []; results = regex.exec(arg); while (results != null) { names.push(results[1]); resu...
CoffeeScript
JavaScript
snd/url-pattern
util.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/util.coffee
1
23
snd/url-pattern:util.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, util; _ = require('underscore'); module.exports = util = { getNames: function(arg) { var names, regex, results; if (_.isRegExp(arg)) { return []; } regex = /:([^\/]+)/g; names = []; results = regex.exec(arg); while (resu...
_ = require 'underscore' module.exports = util = getNames: (arg) -> return [] if _.isRegExp arg regex = /:([^\/]+)/g names = [] results = regex.exec arg while results? names.push results[1] results = regex.exec arg names toRegex: (arg)...
JavaScript
CoffeeScript
snd/url-pattern
util.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/util.coffee
1
23
snd/url-pattern:util.coffee:1:completion
completion
_ = require 'underscore' module.exports = util = getNames: (arg) -> return [] if _.isRegExp arg regex = /:([^\/]+)/g names = [] results = regex.exec arg
while results? names.push results[1] results = regex.exec arg names toRegex: (arg) -> if _.isRegExp arg then arg else new RegExp util.toRegexString arg toRegexString: (arg) -> _.each util.getNames(arg), (name) -> arg = arg.replace(':' + name, '([^\/]+)') arg = a...
CoffeeScript
CoffeeScript
snd/url-pattern
util.coffee
MIT
b7f1d2060e83973e3a5310ea3d7b299f58ad25bb
588
https://github.com/snd/url-pattern/blob/b7f1d2060e83973e3a5310ea3d7b299f58ad25bb/util.coffee
1
23
jianliaoim/talk-os:talk-api2x/server/components/pusher.coffee:1:raw_corpus
raw_corpus
# @osv return module.exports = {} pusher = require 'node-push' config = require 'config' pusherConfig = config.pusher pusher.configure pusherConfig module.exports = pusher
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/pusher.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/pusher.coffee
1
10
jianliaoim/talk-os:talk-api2x/server/components/pusher.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @osv return module.exports = {} pusher = require 'node-push' config = require 'config' pusherConfig = config.pusher pusher.configure pusherConfig module.exports = pusher ```
// @osv var config, pusher, pusherConfig; return module.exports = {}; pusher = require('node-push'); config = require('config'); pusherConfig = config.pusher; pusher.configure(pusherConfig); module.exports = pusher;
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/components/pusher.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/pusher.coffee
1
10
jianliaoim/talk-os:talk-api2x/server/components/pusher.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @osv var config, pusher, pusherConfig; return module.exports = {}; pusher = require('node-push'); config = require('config'); pusherConfig = config.pusher; pusher.configure(pusherConfig); module.exports = pusher; ```
# @osv return module.exports = {} pusher = require 'node-push' config = require 'config' pusherConfig = config.pusher pusher.configure pusherConfig module.exports = pusher
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/pusher.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/pusher.coffee
1
10
jianliaoim/talk-os:talk-api2x/server/components/pusher.coffee:1:completion
completion
# @osv return module.exports = {} pusher = require 'node-push' config = require 'config'
pusherConfig = config.pusher pusher.configure pusherConfig module.exports = pusher
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/pusher.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/pusher.coffee
1
10
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done() ) describe "404 Routing", -> it "should not b...
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done() ...
var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(200, {}, done()); }); }); return describe("404 Ro...
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(20...
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done() ) describe "404 Routing", -> it "should not b...
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {},
done() ) describe "404 Routing", -> it "should not be here", (done) -> request(app) .get('/nonexistent/action') .send( {} ) .expect(404, {}, done() )
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ) describe "404 Routing", -> it "should not be ...
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
155e42bb67f25168bb46ae21e19538f97c5126ea
622
https://github.com/twilson63/express-coffee/blob/155e42bb67f25168bb46ae21e19538f97c5126ea/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ...
var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(200, {}, done); }); }); return describe("404 Rout...
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
155e42bb67f25168bb46ae21e19538f97c5126ea
622
https://github.com/twilson63/express-coffee/blob/155e42bb67f25168bb46ae21e19538f97c5126ea/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(20...
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ) describe "404 Routing", -> it "should not be ...
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
155e42bb67f25168bb46ae21e19538f97c5126ea
622
https://github.com/twilson63/express-coffee/blob/155e42bb67f25168bb46ae21e19538f97c5126ea/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {},
done ) describe "404 Routing", -> it "should not be here", (done) -> request(app) .get('/nonexistent/action') .send( {} ) .expect(404, {}, done )
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
155e42bb67f25168bb46ae21e19538f97c5126ea
622
https://github.com/twilson63/express-coffee/blob/155e42bb67f25168bb46ae21e19538f97c5126ea/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ) describe "Bad Routing", -> it "should not be ...
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
63c412c61179b3eb48d1a8d01ce4046ced481748
622
https://github.com/twilson63/express-coffee/blob/63c412c61179b3eb48d1a8d01ce4046ced481748/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ...
var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(200, {}, done); }); }); return describe("Bad Rout...
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
63c412c61179b3eb48d1a8d01ce4046ced481748
622
https://github.com/twilson63/express-coffee/blob/63c412c61179b3eb48d1a8d01ce4046ced481748/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(20...
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ) describe "Bad Routing", -> it "should not be ...
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
63c412c61179b3eb48d1a8d01ce4046ced481748
622
https://github.com/twilson63/express-coffee/blob/63c412c61179b3eb48d1a8d01ce4046ced481748/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {},
done ) describe "Bad Routing", -> it "should not be here", (done) -> request(app) .get('/nonexistent/action') .send( {} ) .expect(404, {}, done )
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
63c412c61179b3eb48d1a8d01ce4046ced481748
622
https://github.com/twilson63/express-coffee/blob/63c412c61179b3eb48d1a8d01ce4046ced481748/test/app_test.coffee
1
22
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done )
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/test/app_test.coffee
1
13
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done ...
var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { return describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).expect(200, {}, done); }); }); });
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/test/app_test.coffee
1
13
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, request; request = require('supertest'); app = require(process.cwd() + '/.app'); describe('General', function() { return describe('Main page', function() { return it("should be here", function(done) { return request(app).get("/").send({}).ex...
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done )
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/test/app_test.coffee
1
13
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'supertest' app = require process.cwd() + '/.app' describe 'General', -> describe 'Main page', ->
it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, done )
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/test/app_test.coffee
1
13
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'supertest' app = require process.cwd() + '/.app' puts = (obj) -> console.log(require('treeify').asTree(obj,true)) describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, d...
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/test/app_test.coffee
1
37
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'supertest' app = require process.cwd() + '/.app' puts = (obj) -> console.log(require('treeify').asTree(obj,true)) describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") ...
var app, puts, request; request = require('supertest'); app = require(process.cwd() + '/.app'); puts = function(obj) { return console.log(require('treeify').asTree(obj, true)); }; describe('General', function() { describe('Main page', function() { return it("should be here", function(done) { return re...
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/test/app_test.coffee
1
37
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, puts, request; request = require('supertest'); app = require(process.cwd() + '/.app'); puts = function(obj) { return console.log(require('treeify').asTree(obj, true)); }; describe('General', function() { describe('Main page', function() { retur...
request = require 'supertest' app = require process.cwd() + '/.app' puts = (obj) -> console.log(require('treeify').asTree(obj,true)) describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, d...
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/test/app_test.coffee
1
37
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'supertest' app = require process.cwd() + '/.app' puts = (obj) -> console.log(require('treeify').asTree(obj,true)) describe 'General', -> describe 'Main page', -> it "should be here", (done) -> request(app) .get("/") .send( {} ) .expect(200, {}, d...
.expect(200, {"hello":["world"]}, done) it "should respond with sent data", (done) -> pongData = {"pong":"data"} query = {"q":"something"} id = "4" request(app) .post("/ping/pong/#{id}?q=something") .send(pongData) .expect(200, (err, res) -> # puts res ...
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/test/app_test.coffee
1
37
twilson63/express-coffee:test/app_test.coffee:1:raw_corpus
raw_corpus
request = require 'request' describe 'Sample test', -> it 'should be true', -> true.should.equal true describe 'GET /', -> response = null before (done) -> request 'http://localhost:3000', (e, r, b) -> response = r done() it 'should return 200', (done) -> response.statusCode.should.equ...
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
62d97e60c968c0bd89fd9513a48fb00a8e6750c5
622
https://github.com/twilson63/express-coffee/blob/62d97e60c968c0bd89fd9513a48fb00a8e6750c5/test/app_test.coffee
1
15
twilson63/express-coffee:test/app_test.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'request' describe 'Sample test', -> it 'should be true', -> true.should.equal true describe 'GET /', -> response = null before (done) -> request 'http://localhost:3000', (e, r, b) -> response = r done() it 'should ...
var request; request = require('request'); describe('Sample test', function() { return it('should be true', function() { return true.should.equal(true); }); }); describe('GET /', function() { var response; response = null; before(function(done) { return request('http://localhost:3000', function(e, ...
CoffeeScript
JavaScript
twilson63/express-coffee
test/app_test.coffee
MIT
62d97e60c968c0bd89fd9513a48fb00a8e6750c5
622
https://github.com/twilson63/express-coffee/blob/62d97e60c968c0bd89fd9513a48fb00a8e6750c5/test/app_test.coffee
1
15
twilson63/express-coffee:test/app_test.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var request; request = require('request'); describe('Sample test', function() { return it('should be true', function() { return true.should.equal(true); }); }); describe('GET /', function() { var response; response = null; before(function(done) { ...
request = require 'request' describe 'Sample test', -> it 'should be true', -> true.should.equal true describe 'GET /', -> response = null before (done) -> request 'http://localhost:3000', (e, r, b) -> response = r done() it 'should return 200', (done) -> response.statusCode.should.equ...
JavaScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
62d97e60c968c0bd89fd9513a48fb00a8e6750c5
622
https://github.com/twilson63/express-coffee/blob/62d97e60c968c0bd89fd9513a48fb00a8e6750c5/test/app_test.coffee
1
15
twilson63/express-coffee:test/app_test.coffee:1:completion
completion
request = require 'request' describe 'Sample test', -> it 'should be true', -> true.should.equal true describe 'GET /', -> response = null
before (done) -> request 'http://localhost:3000', (e, r, b) -> response = r done() it 'should return 200', (done) -> response.statusCode.should.equal 200 done()
CoffeeScript
CoffeeScript
twilson63/express-coffee
test/app_test.coffee
MIT
62d97e60c968c0bd89fd9513a48fb00a8e6750c5
622
https://github.com/twilson63/express-coffee/blob/62d97e60c968c0bd89fd9513a48fb00a8e6750c5/test/app_test.coffee
1
15
mauricemach/zappa:tests/run.coffee:1:raw_corpus
raw_corpus
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> @get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', r...
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> @get '/': 'default' c = t.client 'http://localhost:...
var port, zappa; zappa = require('../src/zappa'); port = 15800; this.tests = { 'default host and port (INADDR_ANY / 3000)': function(t) { var c, c2, c3, c4, zapp; t.expect('localhost', '127.0.0.1', '0.0.0.0', '::1'); t.wait(3000); zapp = zappa(function() { return this.get({ '/': 'defa...
CoffeeScript
JavaScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var port, zappa; zappa = require('../src/zappa'); port = 15800; this.tests = { 'default host and port (INADDR_ANY / 3000)': function(t) { var c, c2, c3, c4, zapp; t.expect('localhost', '127.0.0.1', '0.0.0.0', '::1'); t.wait(3000); zapp = zappa(...
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> @get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', r...
JavaScript
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:completion
completion
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> @get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', r...
@get '/': 'number port' c = t.client 'http://localhost:15801' c.get '/', (err, res) -> t.equal 'localhost', res.body, 'number port' c2 = t.client 'http://127.0.0.1:15801' c2.get '/', (err, res) -> t.equal '127.0.0.1', res.body, 'number port' 'default host, specified port as string': (t) -> t.exp...
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:2:raw_corpus
raw_corpus
c = t.client 'http://localhost:15803' c.get '/', (err, res) -> t.equal 'localhost', res.body, 'host + string port' c2 = t.client 'http://127.0.0.1:15803' c2.get '/', (err, res) -> t.equal '127.0.0.1', res.body, 'host + string port'
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
51
55
mauricemach/zappa:tests/run.coffee:2:completion
completion
c = t.client 'http://localhost:15803' c.get '/', (err, res) -> t.equal 'localhost', res.body, 'host + string port'
c2 = t.client 'http://127.0.0.1:15803' c2.get '/', (err, res) -> t.equal '127.0.0.1', res.body, 'host + string port'
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
725e0103755c9a92fe84de06cee82db00e51a1f8
943
https://github.com/mauricemach/zappa/blob/725e0103755c9a92fe84de06cee82db00e51a1f8/tests/run.coffee
51
55
mauricemach/zappa:tests/run.coffee:1:raw_corpus
raw_corpus
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', re...
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
64c97637156ed6ea85ffeb3336a2c3bc0fad743f
943
https://github.com/mauricemach/zappa/blob/64c97637156ed6ea85ffeb3336a2c3bc0fad743f/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> get '/': 'default' c = t.client 'http://localhost:3...
var port, zappa; zappa = require('../src/zappa'); port = 15800; this.tests = { 'default host and port (INADDR_ANY / 3000)': function(t) { var c, c2, c3, c4, zapp; t.expect('localhost', '127.0.0.1', '0.0.0.0', '::1'); t.wait(3000); zapp = zappa(function() { return get({ '/': 'default' ...
CoffeeScript
JavaScript
mauricemach/zappa
tests/run.coffee
MIT
64c97637156ed6ea85ffeb3336a2c3bc0fad743f
943
https://github.com/mauricemach/zappa/blob/64c97637156ed6ea85ffeb3336a2c3bc0fad743f/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var port, zappa; zappa = require('../src/zappa'); port = 15800; this.tests = { 'default host and port (INADDR_ANY / 3000)': function(t) { var c, c2, c3, c4, zapp; t.expect('localhost', '127.0.0.1', '0.0.0.0', '::1'); t.wait(3000); zapp = zappa(...
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', re...
JavaScript
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
64c97637156ed6ea85ffeb3336a2c3bc0fad743f
943
https://github.com/mauricemach/zappa/blob/64c97637156ed6ea85ffeb3336a2c3bc0fad743f/tests/run.coffee
1
50
mauricemach/zappa:tests/run.coffee:1:completion
completion
zappa = require '../src/zappa' port = 15800 @tests = 'default host and port (INADDR_ANY / 3000)': (t) -> t.expect 'localhost', '127.0.0.1', '0.0.0.0', '::1' t.wait 3000 zapp = zappa -> get '/': 'default' c = t.client 'http://localhost:3000' c.get '/', (err, res) -> t.equal 'localhost', re...
get '/': 'number port' c = t.client 'http://localhost:15801' c.get '/', (err, res) -> t.equal 'localhost', res.body, 'number port' c2 = t.client 'http://127.0.0.1:15801' c2.get '/', (err, res) -> t.equal '127.0.0.1', res.body, 'number port' 'default host, specified port as string': (t) -> t.expe...
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/run.coffee
MIT
64c97637156ed6ea85ffeb3336a2c3bc0fad743f
943
https://github.com/mauricemach/zappa/blob/64c97637156ed6ea85ffeb3336a2c3bc0fad743f/tests/run.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'inte-rss' mixins: [ mixinCreateTopic, mixinInteHandler LinkedStateMixin PureRenderMixin ] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object....
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'inte-rss' mixins: [ mixinCreateTopic, mixinInteHandler LinkedStateMixin PureRenderMixin ] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func....
module.exports = React.createClass({ displayName: 'inte-rss', mixins: [mixinCreateTopic, mixinInteHandler, LinkedStateMixin, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _roomId: T.string.isRequired, onPageBack: T.func.isRequired, inte: T.object, settings: T.object.isRequired /...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'inte-rss', mixins: [mixinCreateTopic, mixinInteHandler, LinkedStateMixin, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _roomId: T.string.isRequired, onPageBack: T.func.isRequired, ...
module.exports = React.createClass displayName: 'inte-rss' mixins: [ mixinCreateTopic, mixinInteHandler LinkedStateMixin PureRenderMixin ] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object....
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:1:completion
completion
module.exports = React.createClass displayName: 'inte-rss' mixins: [ mixinCreateTopic, mixinInteHandler LinkedStateMixin PureRenderMixin ] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object....
url = @state.url.trim() if url.length is 0 then return @setState step: 'loading' inteActions.checkRss url, (resp) => @setState step: 'ok', title: resp.title, description: resp.description (error) => error = JSON.parse error.response if error.code is 410 @setSt...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
21
70
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:2:raw_corpus
raw_corpus
# events onUrlChange: (event) -> @setState url: event.target.value, step: null @debouncedDetectUrl() onCreate: -> return false unless @state._roomId? and @state.step is 'ok' return false if @state.isSending data = _teamId: @props._teamId _roomId: @state._roomId category: 'rs...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
71
120
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # events onUrlChange: (event) -> @setState url: event.target.value, step: null @debouncedDetectUrl() onCreate: -> return false unless @state._roomId? and @state.step is 'ok' return false if @state.isSending data = _teamId: @props....
// events ({ onUrlChange: function(event) { this.setState({ url: event.target.value, step: null }); return this.debouncedDetectUrl(); }, onCreate: function() { var data; if (!((this.state._roomId != null) && this.state.step === 'ok')) { return false; } if (this.state....
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
71
120
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // events ({ onUrlChange: function(event) { this.setState({ url: event.target.value, step: null }); return this.debouncedDetectUrl(); }, onCreate: function() { var data; if (!((this.state._roomId != null) && this.state.step ===...
# events onUrlChange: (event) -> @setState url: event.target.value, step: null @debouncedDetectUrl() onCreate: -> return false unless @state._roomId? and @state.step is 'ok' return false if @state.isSending data = _teamId: @props._teamId _roomId: @state._roomId category: 'rs...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
71
120
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:2:completion
completion
# events onUrlChange: (event) -> @setState url: event.target.value, step: null @debouncedDetectUrl() onCreate: -> return false unless @state._roomId? and @state.step is 'ok' return false if @state.isSending data = _teamId: @props._teamId _roomId: @state._roomId category: 'rs...
@props.onPageBack true (error) => @setState isSending: false onUpdate: -> return false unless @hasChanges() return false if @state.isSending inte = @props.inte data = {} data._roomId = @state._roomId if @state._roomId isnt inte._roomId data.url = @state.url if @state.url isnt ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
71
120
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:3:raw_corpus
raw_corpus
# renderers renderHint: -> switch @state.step when 'loading' then LiteLoadingIndicator() when 'error' then p className: 'info error-info text-danger', "× #{lang.getText('no-rss-found')}" when 'invalid' then p className: 'info invalid-info text-danger', "× #{lang.getText('rss-url...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
121
157
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # renderers renderHint: -> switch @state.step when 'loading' then LiteLoadingIndicator() when 'error' then p className: 'info error-info text-danger', "× #{lang.getText('no-rss-found')}" when 'invalid' then p className: 'info inva...
// renderers ({ renderHint: function() { switch (this.state.step) { case 'loading': return LiteLoadingIndicator(); case 'error': return p({ className: 'info error-info text-danger' }, `× ${lang.getText('no-rss-found')}`); case 'invalid': return p({ ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
121
157
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // renderers ({ renderHint: function() { switch (this.state.step) { case 'loading': return LiteLoadingIndicator(); case 'error': return p({ className: 'info error-info text-danger' }, `× ${lang.getText('no-rss-fou...
# renderers renderHint: -> switch @state.step when 'loading' then LiteLoadingIndicator() when 'error' then p className: 'info error-info text-danger', "× #{lang.getText('no-rss-found')}" when 'invalid' then p className: 'info invalid-info text-danger', "× #{lang.getText('rss-url...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
121
157
jianliaoim/talk-os:talk-web/client/app/inte-rss.coffee:3:completion
completion
# renderers renderHint: -> switch @state.step when 'loading' then LiteLoadingIndicator() when 'error' then p className: 'info error-info text-danger', "× #{lang.getText('no-rss-found')}" when 'invalid' then p className: 'info invalid-info text-danger', "× #{lang.getText('rss-url...
@renderHint() render: -> div className: 'inte-rss inte-board lm-content', @renderInteHeader() @renderTopicRow() @renderRssEntry() @renderInteTitle() @renderInteDesc() @renderInteIcon() if @props.inte? @renderInteModify() else @renderInteCreate() ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-rss.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-rss.coffee
121
157
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:raw_corpus
raw_corpus
class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run] ```
var Run; Run = class Run { constructor($log, $httpBackend) { this.$log = $log; this.$httpBackend = $httpBackend; this.$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Run; Run = class Run { constructor($log, $httpBackend) { this.$log = $log; this.$httpBackend = $httpBackend; this.$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]); ```
class Run constructor: (@$log, @$httpBackend) -> @$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:completion
completion
class Run constructor: (@$log, @$httpBackend) ->
@$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:raw_corpus
raw_corpus
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
587d6a1bcaf71edbccc52986ba30c22fc9fd872e
672
https://github.com/CaryLandholt/AngularFun/blob/587d6a1bcaf71edbccc52986ba30c22fc9fd872e/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run] ```
var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
587d6a1bcaf71edbccc52986ba30c22fc9fd872e
672
https://github.com/CaryLandholt/AngularFun/blob/587d6a1bcaf71edbccc52986ba30c22fc9fd872e/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]); ```
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
587d6a1bcaf71edbccc52986ba30c22fc9fd872e
672
https://github.com/CaryLandholt/AngularFun/blob/587d6a1bcaf71edbccc52986ba30c22fc9fd872e/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:completion
completion
class Run constructor: ($log, $httpBackend) ->
$httpBackend.whenGET(/^.*\.(html|htm)$/).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
587d6a1bcaf71edbccc52986ba30c22fc9fd872e
672
https://github.com/CaryLandholt/AngularFun/blob/587d6a1bcaf71edbccc52986ba30c22fc9fd872e/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:raw_corpus
raw_corpus
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^\/views\//).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^\/views\//).passThrough() angular.module('app').run ['$log', '$httpBackend', Run] ```
var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenGET(/^\/views\//).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Run; Run = class Run { constructor($log, $httpBackend) { $httpBackend.whenGET(/^\/views\//).passThrough(); } }; angular.module('app').run(['$log', '$httpBackend', Run]); ```
class Run constructor: ($log, $httpBackend) -> $httpBackend.whenGET(/^\/views\//).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/viewsBackend.coffee
1
5
CaryLandholt/AngularFun:src/scripts/backend/viewsBackend.coffee:1:completion
completion
class Run constructor: ($log, $httpBackend) ->
$httpBackend.whenGET(/^\/views\//).passThrough() angular.module('app').run ['$log', '$httpBackend', Run]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/backend/viewsBackend.coffee
MIT
d7d979cc7f70d5686fbb756258a061f373c58a71
672
https://github.com/CaryLandholt/AngularFun/blob/d7d979cc7f70d5686fbb756258a061f373c58a71/src/scripts/backend/viewsBackend.coffee
1
5
jianliaoim/talk-os:talk-web/client/actions/search.coffee:1:raw_corpus
raw_corpus
exports.query = (_teamId, q, page, success, fail) -> config = queryParams: _teamId: _teamId q: q page: page api.messages.search.get(config) .then (resp) -> success? resp .catch (error) -> fail? error
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
8
18
jianliaoim/talk-os:talk-web/client/actions/search.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.query = (_teamId, q, page, success, fail) -> config = queryParams: _teamId: _teamId q: q page: page api.messages.search.get(config) .then (resp) -> success? resp .catch (error) -> fail? error ```
exports.query = function(_teamId, q, page, success, fail) { var config; config = { queryParams: { _teamId: _teamId, q: q, page: page } }; return api.messages.search.get(config).then(function(resp) { return typeof success === "function" ? success(resp) : void 0; }).catch(function(...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
8
18
jianliaoim/talk-os:talk-web/client/actions/search.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.query = function(_teamId, q, page, success, fail) { var config; config = { queryParams: { _teamId: _teamId, q: q, page: page } }; return api.messages.search.get(config).then(function(resp) { return typeof success === "f...
exports.query = (_teamId, q, page, success, fail) -> config = queryParams: _teamId: _teamId q: q page: page api.messages.search.get(config) .then (resp) -> success? resp .catch (error) -> fail? error
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
8
18
jianliaoim/talk-os:talk-web/client/actions/search.coffee:1:completion
completion
exports.query = (_teamId, q, page, success, fail) -> config = queryParams: _teamId: _teamId q: q
page: page api.messages.search.get(config) .then (resp) -> success? resp .catch (error) -> fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
8
18
jianliaoim/talk-os:talk-web/client/actions/search.coffee:2:raw_corpus
raw_corpus
exports.collection = (data, success, fail) -> if not data.q and data.hasTag dataFormat = [ '_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange'] config = queryParams: assign util.formatObject(data, dataFormat), { limit: 10 } api.messages.tags.get(config) ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
20
43
jianliaoim/talk-os:talk-web/client/actions/search.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.collection = (data, success, fail) -> if not data.q and data.hasTag dataFormat = [ '_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange'] config = queryParams: assign util.formatObject(data, dataFormat...
exports.collection = function(data, success, fail) { var config, dataFormat; if (!data.q && data.hasTag) { dataFormat = ['_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange']; config = { queryParams: assign(util.formatObject(data, dataFormat), { limit: 10...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
20
43
jianliaoim/talk-os:talk-web/client/actions/search.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.collection = function(data, success, fail) { var config, dataFormat; if (!data.q && data.hasTag) { dataFormat = ['_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange']; config = { queryParams: assign(u...
exports.collection = (data, success, fail) -> if not data.q and data.hasTag dataFormat = [ '_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange'] config = queryParams: assign util.formatObject(data, dataFormat), { limit: 10 } api.messages.tags.get(config) ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
20
43
jianliaoim/talk-os:talk-web/client/actions/search.coffee:2:completion
completion
exports.collection = (data, success, fail) -> if not data.q and data.hasTag dataFormat = [ '_teamId', 'q', 'isDirectMessage', '_creatorId', '_roomId', '_tagId', '_maxId', 'timeRange'] config = queryParams: assign util.formatObject(data, dataFormat), { limit: 10 } api.messages.tags.get(config) ...
else dataFormat = [ '_teamId', '_roomId', '_creatorId', '_creatorIds', 'type', 'fileCategory', 'q', 'page', 'sort', 'isDirectMessage', '_tagId', 'hasTag', '_storyId', 'timeRange' ] data = util.formatObject(data, dataFormat) api.messages.search.post(data: data) .then (resp) -> ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
20
43
jianliaoim/talk-os:talk-web/client/actions/search.coffee:3:raw_corpus
raw_corpus
exports.collectionFile = (data, success, fail) -> data.type = 'file' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/file' data: messages: resp.messages data: data success? resp .catch (error) -> fail? e...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
45
56
jianliaoim/talk-os:talk-web/client/actions/search.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.collectionFile = (data, success, fail) -> data.type = 'file' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/file' data: messages: resp.messages data: dat...
exports.collectionFile = function(data, success, fail) { data.type = 'file'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/file', data: { messages: resp.messages, data: data } }); return typeo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
45
56
jianliaoim/talk-os:talk-web/client/actions/search.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.collectionFile = function(data, success, fail) { data.type = 'file'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/file', data: { messages: resp.messag...
exports.collectionFile = (data, success, fail) -> data.type = 'file' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/file' data: messages: resp.messages data: data success? resp .catch (error) -> fail? e...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
45
56
jianliaoim/talk-os:talk-web/client/actions/search.coffee:3:completion
completion
exports.collectionFile = (data, success, fail) -> data.type = 'file' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/file'
data: messages: resp.messages data: data success? resp .catch (error) -> fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
45
56
jianliaoim/talk-os:talk-web/client/actions/search.coffee:4:raw_corpus
raw_corpus
exports.collectionPost = (data, success, fail) -> data.type = 'rtf' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/post' data: messages: resp.messages data: data success? resp .catch (error) -> fail? er...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
58
69
jianliaoim/talk-os:talk-web/client/actions/search.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.collectionPost = (data, success, fail) -> data.type = 'rtf' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/post' data: messages: resp.messages data: data...
exports.collectionPost = function(data, success, fail) { data.type = 'rtf'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/post', data: { messages: resp.messages, data: data } }); return typeof...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
58
69
jianliaoim/talk-os:talk-web/client/actions/search.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.collectionPost = function(data, success, fail) { data.type = 'rtf'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/post', data: { messages: resp.message...
exports.collectionPost = (data, success, fail) -> data.type = 'rtf' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/post' data: messages: resp.messages data: data success? resp .catch (error) -> fail? er...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
58
69
jianliaoim/talk-os:talk-web/client/actions/search.coffee:4:completion
completion
exports.collectionPost = (data, success, fail) -> data.type = 'rtf' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/post'
data: messages: resp.messages data: data success? resp .catch (error) -> fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
58
69
jianliaoim/talk-os:talk-web/client/actions/search.coffee:5:raw_corpus
raw_corpus
exports.collectionLink = (data, success, fail) -> data.type = 'url' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/link' data: messages: resp.messages data: data success? resp .catch (error) -> fail? er...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
71
82
jianliaoim/talk-os:talk-web/client/actions/search.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.collectionLink = (data, success, fail) -> data.type = 'url' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/link' data: messages: resp.messages data: data...
exports.collectionLink = function(data, success, fail) { data.type = 'url'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/link', data: { messages: resp.messages, data: data } }); return typeof...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
71
82
jianliaoim/talk-os:talk-web/client/actions/search.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.collectionLink = function(data, success, fail) { data.type = 'url'; return api.messages.search.post({ data: data }).then(function(resp) { dispatcher.handleViewAction({ type: 'collection/link', data: { messages: resp.message...
exports.collectionLink = (data, success, fail) -> data.type = 'url' api.messages.search.post(data: data) .then (resp) -> dispatcher.handleViewAction type: 'collection/link' data: messages: resp.messages data: data success? resp .catch (error) -> fail? er...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/search.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/search.coffee
71
82