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
jianliaoim/talk-os:talk-web/client/updater/mentioned-message.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, isMap, sortByCreatedAt; Immutable = require('immutable'); isMap = Immutable.Map.isMap; // 根据 createdAt 排序搜索到的数据 sortByCreatedAt = function(prev, next) { var nextDate, prevDate; if (!(isMap(prev) && isMap(next))) { return 0; } if (!(pre...
Immutable = require 'immutable' isMap = Immutable.Map.isMap # 根据 createdAt 排序搜索到的数据 sortByCreatedAt = (prev, next) -> if not (isMap(prev) and isMap(next)) return 0 if not (prev.has('createdAt') and next.has('createdAt')) return 0 prevDate = new Date(prev.get('createdAt')) nextDate = new Date(next.ge...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/mentioned-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/mentioned-message.coffee
1
50
jianliaoim/talk-os:talk-web/client/updater/mentioned-message.coffee:1:completion
completion
Immutable = require 'immutable' isMap = Immutable.Map.isMap # 根据 createdAt 排序搜索到的数据 sortByCreatedAt = (prev, next) -> if not (isMap(prev) and isMap(next)) return 0 if not (prev.has('createdAt') and next.has('createdAt')) return 0 prevDate = new Date(prev.get('createdAt')) nextDate = new Date(next.ge...
store .update 'mentionedMessages', (teams) -> if not Immutable.Map.isMap teams teams = Immutable.Map() teams.set _teamId, Immutable.List() ### * API: http://talk.ci/doc/restful/message.mentions.html * * 读取对应的 mentions message * * @param {Immutable.Map} store * @param {params<Immutable.Map>, data<...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/mentioned-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/mentioned-message.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:1:raw_corpus
raw_corpus
serviceLoader = require 'talk-services' Promise = require 'bluebird' Err = require 'err1st' util = require '../util' {limbo, socket, logger} = require '../components' { IntegrationModel MemberModel RoomModel NotificationModel } = limbo.use 'talk' _removeIntegrations = (room) -> IntegrationModel.findAndRemov...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript serviceLoader = require 'talk-services' Promise = require 'bluebird' Err = require 'err1st' util = require '../util' {limbo, socket, logger} = require '../components' { IntegrationModel MemberModel RoomModel NotificationModel } = limbo.use 'talk' _remov...
var Err, IntegrationModel, MemberModel, NotificationModel, Promise, RoomModel, RoomSchema, _initNewRoom, _removeIntegrations, limbo, logger, serviceLoader, socket, util; serviceLoader = require('talk-services'); Promise = require('bluebird'); Err = require('err1st'); util = require('../util'); ({limbo, socket, log...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Err, IntegrationModel, MemberModel, NotificationModel, Promise, RoomModel, RoomSchema, _initNewRoom, _removeIntegrations, limbo, logger, serviceLoader, socket, util; serviceLoader = require('talk-services'); Promise = require('bluebird'); Err = require('err1...
serviceLoader = require 'talk-services' Promise = require 'bluebird' Err = require 'err1st' util = require '../util' {limbo, socket, logger} = require '../components' { IntegrationModel MemberModel RoomModel NotificationModel } = limbo.use 'talk' _removeIntegrations = (room) -> IntegrationModel.findAndRemov...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:1:completion
completion
serviceLoader = require 'talk-services' Promise = require 'bluebird' Err = require 'err1st' util = require '../util' {limbo, socket, logger} = require '../components' { IntegrationModel MemberModel RoomModel NotificationModel } = limbo.use 'talk' _removeIntegrations = (room) -> IntegrationModel.findAndRemov...
# Set creator to room owner MemberModel = @model 'Member' member = new MemberModel user: room._creatorId room: room._id joinAt: new Date role: 'owner' member.save (err, member) -> room.memberCount += 1 callback err RoomSchema = RoomModel.schema RoomSchema.pre 'save', (callback) -> if @...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:2:raw_corpus
raw_corpus
MemberModel.remove room: room._id RoomSchema.post 'archive', (room) -> _removeIntegrations room NotificationModel.removeByOptionsAsync target: room._id, team: room._teamId .catch (err) -> logger.warn err.stack
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
51
57
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript MemberModel.remove room: room._id RoomSchema.post 'archive', (room) -> _removeIntegrations room NotificationModel.removeByOptionsAsync target: room._id, team: room._teamId .catch (err) -> logger.warn err.stack ```
MemberModel.remove({ room: room._id }); RoomSchema.post('archive', function(room) { _removeIntegrations(room); return NotificationModel.removeByOptionsAsync({ target: room._id, team: room._teamId }).catch(function(err) { return logger.warn(err.stack); }); });
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
51
57
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript MemberModel.remove({ room: room._id }); RoomSchema.post('archive', function(room) { _removeIntegrations(room); return NotificationModel.removeByOptionsAsync({ target: room._id, team: room._teamId }).catch(function(err) { return logger.warn(err....
MemberModel.remove room: room._id RoomSchema.post 'archive', (room) -> _removeIntegrations room NotificationModel.removeByOptionsAsync target: room._id, team: room._teamId .catch (err) -> logger.warn err.stack
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
51
57
jianliaoim/talk-os:talk-api2x/server/observers/room.coffee:2:completion
completion
MemberModel.remove room: room._id RoomSchema.post 'archive', (room) ->
_removeIntegrations room NotificationModel.removeByOptionsAsync target: room._id, team: room._teamId .catch (err) -> logger.warn err.stack
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/room.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/room.coffee
51
57
mojotech/pioneer:src/dill.coffee:1:raw_corpus
raw_corpus
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() execOptions = process.argv or [] execOptions.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length execOptions.push "--require" execOptions.push "#{lib}/support" requ...
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
cb0db4ce0b7b5056871a65a49893e420ceeb2df5
523
https://github.com/mojotech/pioneer/blob/cb0db4ce0b7b5056871a65a49893e420ceeb2df5/src/dill.coffee
1
17
mojotech/pioneer:src/dill.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() execOptions = process.argv or [] execOptions.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length execOptions.pus...
var checkForErrorFormatter, moment; moment = require('moment'); module.exports = function(lib, eformatter) { var cucumber, execOptions, timeStart; timeStart = new Date().getTime(); execOptions = process.argv || []; if (!process.argv.filter(checkForErrorFormatter).length) { execOptions.push(`--error_format...
CoffeeScript
JavaScript
mojotech/pioneer
src/dill.coffee
MIT
cb0db4ce0b7b5056871a65a49893e420ceeb2df5
523
https://github.com/mojotech/pioneer/blob/cb0db4ce0b7b5056871a65a49893e420ceeb2df5/src/dill.coffee
1
17
mojotech/pioneer:src/dill.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var checkForErrorFormatter, moment; moment = require('moment'); module.exports = function(lib, eformatter) { var cucumber, execOptions, timeStart; timeStart = new Date().getTime(); execOptions = process.argv || []; if (!process.argv.filter(checkForErrorFo...
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() execOptions = process.argv or [] execOptions.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length execOptions.push "--require" execOptions.push "#{lib}/support" requ...
JavaScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
cb0db4ce0b7b5056871a65a49893e420ceeb2df5
523
https://github.com/mojotech/pioneer/blob/cb0db4ce0b7b5056871a65a49893e420ceeb2df5/src/dill.coffee
1
17
mojotech/pioneer:src/dill.coffee:1:completion
completion
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() execOptions = process.argv or [] execOptions.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length execOptions.push "--require" execOptions.push "#{lib}/support"
require('./environment')() cucumber = require 'cucumber' cucumber.Cli(execOptions).run -> testTime = moment.duration(new Date().getTime() - timeStart)._data console.log "Duration " + "(" + testTime.minutes + "m:" + testTime.seconds + "s:" + testTime.milliseconds + "ms)" checkForErrorFormatter = (element) ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
cb0db4ce0b7b5056871a65a49893e420ceeb2df5
523
https://github.com/mojotech/pioneer/blob/cb0db4ce0b7b5056871a65a49893e420ceeb2df5/src/dill.coffee
1
17
mojotech/pioneer:src/dill.coffee:1:raw_corpus
raw_corpus
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() process.argv.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')() require...
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
9a4baf4b91fea32416b43aaa2cb080c74c674856
523
https://github.com/mojotech/pioneer/blob/9a4baf4b91fea32416b43aaa2cb080c74c674856/src/dill.coffee
1
16
mojotech/pioneer:src/dill.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() process.argv.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length process.argv.push "--require" process.argv.push...
var checkForErrorFormatter, moment; moment = require('moment'); module.exports = function(lib, eformatter) { var timeStart; timeStart = new Date().getTime(); if (!process.argv.filter(checkForErrorFormatter).length) { process.argv.push(`--error_formatter=${eformatter}`); } process.argv.push("--require");...
CoffeeScript
JavaScript
mojotech/pioneer
src/dill.coffee
MIT
9a4baf4b91fea32416b43aaa2cb080c74c674856
523
https://github.com/mojotech/pioneer/blob/9a4baf4b91fea32416b43aaa2cb080c74c674856/src/dill.coffee
1
16
mojotech/pioneer:src/dill.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var checkForErrorFormatter, moment; moment = require('moment'); module.exports = function(lib, eformatter) { var timeStart; timeStart = new Date().getTime(); if (!process.argv.filter(checkForErrorFormatter).length) { process.argv.push(`--error_formatter...
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() process.argv.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')() require...
JavaScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
9a4baf4b91fea32416b43aaa2cb080c74c674856
523
https://github.com/mojotech/pioneer/blob/9a4baf4b91fea32416b43aaa2cb080c74c674856/src/dill.coffee
1
16
mojotech/pioneer:src/dill.coffee:1:completion
completion
moment = require 'moment' module.exports = (lib, eformatter) -> timeStart = new Date().getTime() process.argv.push("--error_formatter=#{eformatter}") unless process.argv.filter(checkForErrorFormatter).length process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')()
require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js') process.on 'exit', -> testTime = moment.duration(new Date().getTime() - timeStart)._data console.log "Duration " + "(" + testTime.minutes + "m:" + testTime.seconds + "s:" + testTime.milliseconds + "ms)" checkForErrorFormatt...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
9a4baf4b91fea32416b43aaa2cb080c74c674856
523
https://github.com/mojotech/pioneer/blob/9a4baf4b91fea32416b43aaa2cb080c74c674856/src/dill.coffee
1
16
mojotech/pioneer:src/dill.coffee:1:raw_corpus
raw_corpus
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js') process.on 'exit', -> testTime = moment....
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
2ef801ac1b9af963f764603d050a4986152e91b2
523
https://github.com/mojotech/pioneer/blob/2ef801ac1b9af963f764603d050a4986152e91b2/src/dill.coffee
1
12
mojotech/pioneer:src/dill.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucu...
var moment; moment = require('moment'); module.exports = function(lib) { var timeStart; timeStart = new Date().getTime(); process.argv.push("--require"); process.argv.push(`${lib}/support`); require('./environment')(); require(require.resolve('cucumber').replace(/lib\/cucumber\.js$/, 'bin/cucumber.js')); ...
CoffeeScript
JavaScript
mojotech/pioneer
src/dill.coffee
MIT
2ef801ac1b9af963f764603d050a4986152e91b2
523
https://github.com/mojotech/pioneer/blob/2ef801ac1b9af963f764603d050a4986152e91b2/src/dill.coffee
1
12
mojotech/pioneer:src/dill.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var moment; moment = require('moment'); module.exports = function(lib) { var timeStart; timeStart = new Date().getTime(); process.argv.push("--require"); process.argv.push(`${lib}/support`); require('./environment')(); require(require.resolve('cucumbe...
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js') process.on 'exit', -> testTime = moment....
JavaScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
2ef801ac1b9af963f764603d050a4986152e91b2
523
https://github.com/mojotech/pioneer/blob/2ef801ac1b9af963f764603d050a4986152e91b2/src/dill.coffee
1
12
mojotech/pioneer:src/dill.coffee:1:completion
completion
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support"
require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js') process.on 'exit', -> testTime = moment.duration(new Date().getTime() - timeStart)._data console.log "Duration " + "(" + testTime.minutes + "m:" + testTime.seconds + "s:" + testTime.milliseconds ...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
2ef801ac1b9af963f764603d050a4986152e91b2
523
https://github.com/mojotech/pioneer/blob/2ef801ac1b9af963f764603d050a4986152e91b2/src/dill.coffee
1
12
mojotech/pioneer:src/dill.coffee:1:raw_corpus
raw_corpus
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'b...
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
275997d0d075a8daa14a0a618a888d87058bbd30
523
https://github.com/mojotech/pioneer/blob/275997d0d075a8daa14a0a618a888d87058bbd30/src/dill.coffee
1
15
mojotech/pioneer:src/dill.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(req...
var moment; moment = require('moment'); module.exports = function(lib) { var timeStart; timeStart = new Date().getTime(); process.argv.push("--require"); process.argv.push(`${lib}/support`); process.argv.push("--require"); process.argv.push("features"); require('./environment')(); require(require.reso...
CoffeeScript
JavaScript
mojotech/pioneer
src/dill.coffee
MIT
275997d0d075a8daa14a0a618a888d87058bbd30
523
https://github.com/mojotech/pioneer/blob/275997d0d075a8daa14a0a618a888d87058bbd30/src/dill.coffee
1
15
mojotech/pioneer:src/dill.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var moment; moment = require('moment'); module.exports = function(lib) { var timeStart; timeStart = new Date().getTime(); process.argv.push("--require"); process.argv.push(`${lib}/support`); process.argv.push("--require"); process.argv.push("features"...
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'b...
JavaScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
275997d0d075a8daa14a0a618a888d87058bbd30
523
https://github.com/mojotech/pioneer/blob/275997d0d075a8daa14a0a618a888d87058bbd30/src/dill.coffee
1
15
mojotech/pioneer:src/dill.coffee:1:completion
completion
moment = require 'moment' module.exports = (lib) -> timeStart = new Date().getTime() process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require"
process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js') process.on 'exit', -> testTime = moment.duration(new Date().getTime() - timeStart)._data console.log "Duration " + "(" + testTime.minutes + "m:" + testTime.seconds...
CoffeeScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
275997d0d075a8daa14a0a618a888d87058bbd30
523
https://github.com/mojotech/pioneer/blob/275997d0d075a8daa14a0a618a888d87058bbd30/src/dill.coffee
1
15
mojotech/pioneer:src/dill.coffee:1:raw_corpus
raw_corpus
module.exports = (lib) -> process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js')
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9
523
https://github.com/mojotech/pioneer/blob/e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9/src/dill.coffee
1
9
mojotech/pioneer:src/dill.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lib) -> process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/c...
module.exports = function(lib) { process.argv.push("--require"); process.argv.push(`${lib}/support`); process.argv.push("--require"); process.argv.push("features"); require('./environment')(); return require(require.resolve('cucumber').replace(/lib\/cucumber\.js$/, 'bin/cucumber.js')); };
CoffeeScript
JavaScript
mojotech/pioneer
src/dill.coffee
MIT
e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9
523
https://github.com/mojotech/pioneer/blob/e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9/src/dill.coffee
1
9
mojotech/pioneer:src/dill.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lib) { process.argv.push("--require"); process.argv.push(`${lib}/support`); process.argv.push("--require"); process.argv.push("features"); require('./environment')(); return require(require.resolve('cucumber').replace(/lib\/cuc...
module.exports = (lib) -> process.argv.push "--require" process.argv.push "#{lib}/support" process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js')
JavaScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9
523
https://github.com/mojotech/pioneer/blob/e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9/src/dill.coffee
1
9
mojotech/pioneer:src/dill.coffee:1:completion
completion
module.exports = (lib) -> process.argv.push "--require" process.argv.push "#{lib}/support"
process.argv.push "--require" process.argv.push "features" require('./environment')() require(require.resolve('cucumber').replace /lib\/cucumber\.js$/, 'bin/cucumber.js')
CoffeeScript
CoffeeScript
mojotech/pioneer
src/dill.coffee
MIT
e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9
523
https://github.com/mojotech/pioneer/blob/e9fdc7a7ba2009bbc9b1ac7e53b8659124d901f9/src/dill.coffee
1
9
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
kill: -> _.each currentLinemanRuns, (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn(linemanBinPath, args) result = "" child.stdout.on "data", (data) -> result += data.toString() child.on "close"...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:2:raw_corpus
raw_corpus
chdir = (newPath, doStuff) -> oldPath = process.cwd() process.chdir(newPath) val = doStuff() process.cwd(oldPath) return val standardResponder = (callback, done) -> (result) -> if done? callback(result) done() else callback()
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
51
65
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chdir = (newPath, doStuff) -> oldPath = process.cwd() process.chdir(newPath) val = doStuff() process.cwd(oldPath) return val standardResponder = (callback, done) -> (result) -> if done? callback(result) done() else callback(...
var chdir, standardResponder; chdir = function(newPath, doStuff) { var oldPath, val; oldPath = process.cwd(); process.chdir(newPath); val = doStuff(); process.cwd(oldPath); return val; }; standardResponder = function(callback, done) { return function(result) { if (done != null) { callback(resu...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
51
65
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var chdir, standardResponder; chdir = function(newPath, doStuff) { var oldPath, val; oldPath = process.cwd(); process.chdir(newPath); val = doStuff(); process.cwd(oldPath); return val; }; standardResponder = function(callback, done) { return functio...
chdir = (newPath, doStuff) -> oldPath = process.cwd() process.chdir(newPath) val = doStuff() process.cwd(oldPath) return val standardResponder = (callback, done) -> (result) -> if done? callback(result) done() else callback()
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
51
65
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:2:completion
completion
chdir = (newPath, doStuff) -> oldPath = process.cwd() process.chdir(newPath) val = doStuff() process.cwd(oldPath) return val
standardResponder = (callback, done) -> (result) -> if done? callback(result) done() else callback()
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/spec-e2e/helpers/lineman.coffee
51
65
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
406b7ffe9601b57ccd18905b63faba05b712bc4f
1,168
https://github.com/linemanjs/lineman/blob/406b7ffe9601b57ccd18905b63faba05b712bc4f/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
406b7ffe9601b57ccd18905b63faba05b712bc4f
1,168
https://github.com/linemanjs/lineman/blob/406b7ffe9601b57ccd18905b63faba05b712bc4f/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
406b7ffe9601b57ccd18905b63faba05b712bc4f
1,168
https://github.com/linemanjs/lineman/blob/406b7ffe9601b57ccd18905b63faba05b712bc4f/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
kill: -> _(currentLinemanRuns).each (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn(linemanBinPath, args) result = "" child.stdout.on "data", (data) -> result += data.toString() child.on "close"...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
406b7ffe9601b57ccd18905b63faba05b712bc4f
1,168
https://github.com/linemanjs/lineman/blob/406b7ffe9601b57ccd18905b63faba05b712bc4f/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
kill: -> _(currentLinemanRuns).each (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn(linemanBinPath, args) result = "" child.stdout.on "data", (data) -> result += data.toString() child.on "close"...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
kill: -> _(currentLinemanRuns).each (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn(linemanBinPath, args) result = "" child.stdout.on "data", (data) -> result += data.toString() child.on "close"...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
d3c86eaf60679abfcde9d2935909a77167339417
1,168
https://github.com/linemanjs/lineman/blob/d3c86eaf60679abfcde9d2935909a77167339417/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
kill: -> _(currentLinemanRuns).each (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn(linemanBinPath, args) result = "" child.stdout.on "data", (data) -> result += data.toString() child.on "close"...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
80ff661f7d9e4622034a1f006f3c470a442d01b4
1,168
https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLine...
var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process.cwd()}/../cli.js`; currentPort = 8001; global.linema...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var currentLinemanPath, currentLinemanRuns, currentPort, exec, grunt, linemanBinPath, spawn, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; currentLinemanRuns = []; linemanBinPath = `${process...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null currentLinemanRuns = [] linemanBinPath = "#{process.cwd()}/../cli.js" currentPort = 8001 global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR name += "-#{new D...
_(currentLinemanRuns).each (process) -> process.kill('SIGKILL') currentLinemanRuns = [] exec = (args..., callback) -> chdir currentLinemanPath, -> child = spawn linemanBinPath, args #, # env: # WEB_PORT: currentPort++ result = "" child.stdout.on "data", (data) -> result += d...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ccf8a96f9d1d80460794d6dbef05d91b440ab067
1,168
https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", "--stack", name, standardResponder(callback, don...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
101a7532a26fa6956d676f35cc331740708eacba
1,168
https://github.com/linemanjs/lineman/blob/101a7532a26fa6956d676f35cc331740708eacba/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", "--stack", name, standardResponder(callback, don...
child.stdout.on "data", (data) -> result += data.toString() child.on "close", (code) -> if Number(code) == 0 callback?(result) else throw new Error """ Failed when running `lineman #{args.join(' ')}`. Message: ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
101a7532a26fa6956d676f35cc331740708eacba
1,168
https://github.com/linemanjs/lineman/blob/101a7532a26fa6956d676f35cc331740708eacba/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(callback, done)) cur...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = module.exports = new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(callback, done)) cur...
child.stdout.on "data", (data) -> result += data.toString() child.on "close", (code) -> if Number(code) == 0 callback?(result) else throw new Error """ Failed when running `lineman #{args.join(' ')}`. Message: ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
221e35f69b4221369ff5e5a124965a2991639339
1,168
https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.S...
var chdir, currentLinemanPath, exec, grunt, linemanBinPath, spawn, standardResponder, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; linemanBinPath = `${process.cwd()}/../cli.js`; global.lineman = { projectPath: function() { return currentLi...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var chdir, currentLinemanPath, exec, grunt, linemanBinPath, spawn, standardResponder, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; linemanBinPath = `${process.cwd()}/../cli.js`; global.linem...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
result += data.toString() child.on "close", (code) -> if Number(code) == 0 callback?(result) else throw new Error """ Failed when running `lineman #{args.join(' ')}`. Message: #{result} """ ...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4
1,168
https://github.com/linemanjs/lineman/blob/0c4c84368a5dc3661eb53bb23d805fae0e1a6cd4/test/spec-e2e/helpers/lineman.coffee
1
50
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:raw_corpus
raw_corpus
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/helpers/lineman.coffee
1
49
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.S...
var chdir, currentLinemanPath, exec, grunt, linemanBinPath, spawn, standardResponder, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; linemanBinPath = `${process.cwd()}/../cli.js`; global.lineman = { projectPath: function() { return currentLi...
CoffeeScript
JavaScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/helpers/lineman.coffee
1
49
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var chdir, currentLinemanPath, exec, grunt, linemanBinPath, spawn, standardResponder, splice = [].splice; grunt = require('grunt'); spawn = require("child_process").spawn; currentLinemanPath = null; linemanBinPath = `${process.cwd()}/../cli.js`; global.linem...
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
JavaScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/helpers/lineman.coffee
1
49
linemanjs/lineman:test/spec-e2e/helpers/lineman.coffee:1:completion
completion
grunt = require('grunt') spawn = require("child_process").spawn currentLinemanPath = null linemanBinPath = "#{process.cwd()}/../cli.js" global.lineman = projectPath: -> currentLinemanPath new: (name, callback, done) -> currentLinemanPath = process.env.SPEC_TEMP_DIR exec("new", name, standardResponder(call...
if code == 0 callback(result) else throw new Error """ Failed when running `lineman #{args.join(' ')}`. Message: #{result} """ child chdir = (newPath, doStuff) -> oldPath = process.cwd() proce...
CoffeeScript
CoffeeScript
linemanjs/lineman
test/spec-e2e/helpers/lineman.coffee
MIT
ba9f6d686ebff975e7f826ce86624111d50f0691
1,168
https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/spec-e2e/helpers/lineman.coffee
1
49
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:raw_corpus
raw_corpus
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _.each grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/**/*.js" ]), (f) -> coffee = js2coffee.build(gr...
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _.each grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/...
var _, grunt, js2coffee; grunt = require('./requires-grunt').require(); _ = require("lodash"); js2coffee = require('js2coffee'); module.exports = { coffeeify: function(dest) { return _.each(grunt.file.expand([`${dest}/**/*.js`, `!${dest}/spec/helpers/**/*.js`, `!${dest}/vendor/js/**/*.js`]), function(f) { ...
CoffeeScript
JavaScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, grunt, js2coffee; grunt = require('./requires-grunt').require(); _ = require("lodash"); js2coffee = require('js2coffee'); module.exports = { coffeeify: function(dest) { return _.each(grunt.file.expand([`${dest}/**/*.js`, `!${dest}/spec/helpers/**/*...
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _.each grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/**/*.js" ]), (f) -> coffee = js2coffee.build(gr...
JavaScript
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:completion
completion
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _.each grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js",
"!#{dest}/vendor/js/**/*.js" ]), (f) -> coffee = js2coffee.build(grunt.file.read(f)). replace(/# \*/g, '# '). #<-- remove extra asterisks in block comments replace(/\s*return\n/g,''). #<-- remove un-implicitification of returns replace(/(Given|When|Then)( ->)\n\s*/g, '$1$2 ') #<-- one-...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:raw_corpus
raw_corpus
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _(grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/**/*.js" ])).each (f) -> coffee = js2coffee.build(gr...
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _(grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/**/*....
var _, grunt, js2coffee; grunt = require('./requires-grunt').require(); _ = require("lodash"); js2coffee = require('js2coffee'); module.exports = { coffeeify: function(dest) { return _(grunt.file.expand([`${dest}/**/*.js`, `!${dest}/spec/helpers/**/*.js`, `!${dest}/vendor/js/**/*.js`])).each(function(f) { ...
CoffeeScript
JavaScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, grunt, js2coffee; grunt = require('./requires-grunt').require(); _ = require("lodash"); js2coffee = require('js2coffee'); module.exports = { coffeeify: function(dest) { return _(grunt.file.expand([`${dest}/**/*.js`, `!${dest}/spec/helpers/**/*.js`,...
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _(grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js", "!#{dest}/vendor/js/**/*.js" ])).each (f) -> coffee = js2coffee.build(gr...
JavaScript
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:lib/coffeeifies-archetype.coffee:1:completion
completion
grunt = require('./requires-grunt').require() _ = require("lodash") js2coffee = require('js2coffee') module.exports = coffeeify: (dest) -> _(grunt.file.expand([ "#{dest}/**/*.js", "!#{dest}/spec/helpers/**/*.js",
"!#{dest}/vendor/js/**/*.js" ])).each (f) -> coffee = js2coffee.build(grunt.file.read(f)). replace(/# \*/g, '# '). #<-- remove extra asterisks in block comments replace(/\s*return\n/g,''). #<-- remove un-implicitification of returns replace(/(Given|When|Then)( ->)\n\s*/g, '$1$2 ') #<--...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/coffeeifies-archetype.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/coffeeifies-archetype.coffee
1
18
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>" keepOriginalFiles: false dist: files: [ expand: true cwd: "dist" ...
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/asset-fingerprint.coffee
1
20
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>" keepOriginalFiles: false dist: ...
module.exports = function(lineman) { return { config: { assetFingerprint: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>", findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>", keepOriginalFiles: false }, dist: { f...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/asset-fingerprint.coffee
1
20
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { assetFingerprint: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>", findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>", keepOrig...
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>" keepOriginalFiles: false dist: files: [ expand: true cwd: "dist" ...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/asset-fingerprint.coffee
1
20
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:completion
completion
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" findAndReplaceFiles: "<%= files.assetFingerprint.textFiles %>" keepOriginalFiles: false dist: files: [
expand: true cwd: "dist" src: [ "<%= files.img.root %>/**/*", "<%= files.webfonts.root %>/**/*", "<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>" ] dest: "dist" ]
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/asset-fingerprint.coffee
1
20
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] ...
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
3ef72c8289b9180f4b27eb9077aacd7fb3ae5210
1,168
https://github.com/linemanjs/lineman/blob/3ef72c8289b9180f4b27eb9077aacd7fb3ae5210/config/plugins/asset-fingerprint.coffee
1
13
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelativ...
module.exports = function(lineman) { return { config: { assetFingerprint: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>" }, dist: { files: [ { expand: true, cwd: "dist", src: ["<%= files.js...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
3ef72c8289b9180f4b27eb9077aacd7fb3ae5210
1,168
https://github.com/linemanjs/lineman/blob/3ef72c8289b9180f4b27eb9077aacd7fb3ae5210/config/plugins/asset-fingerprint.coffee
1
13
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { assetFingerprint: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>" }, dist: { files: [ { expand: true, ...
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] ...
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
3ef72c8289b9180f4b27eb9077aacd7fb3ae5210
1,168
https://github.com/linemanjs/lineman/blob/3ef72c8289b9180f4b27eb9077aacd7fb3ae5210/config/plugins/asset-fingerprint.coffee
1
13
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:completion
completion
module.exports = (lineman) -> config: assetFingerprint: options: manifestPath: "<%= files.assetFingerprint.manifest %>"
dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] dest: "dist" ]
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
3ef72c8289b9180f4b27eb9077aacd7fb3ae5210
1,168
https://github.com/linemanjs/lineman/blob/3ef72c8289b9180f4b27eb9077aacd7fb3ae5210/config/plugins/asset-fingerprint.coffee
1
13
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] dest: "dist" ]
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/asset-fingerprint.coffee
1
12
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRel...
module.exports = function(lineman) { return { config: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>" }, dist: { files: [ { expand: true, cwd: "dist", src: ["<%= files.js.minifiedWebRelative %>", "<%= fil...
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/asset-fingerprint.coffee
1
12
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { options: { manifestPath: "<%= files.assetFingerprint.manifest %>" }, dist: { files: [ { expand: true, cwd: "dist", src: ["<...
module.exports = (lineman) -> config: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist: files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] dest: "dist" ]
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/asset-fingerprint.coffee
1
12
linemanjs/lineman:config/plugins/asset-fingerprint.coffee:1:completion
completion
module.exports = (lineman) -> config: options: manifestPath: "<%= files.assetFingerprint.manifest %>" dist:
files: [ expand: true cwd: "dist" src: ["<%= files.js.minifiedWebRelative %>", "<%= files.css.minifiedWebRelative %>"] dest: "dist" ]
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/asset-fingerprint.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/asset-fingerprint.coffee
1
12
jianliaoim/talk-os:talk-web/client/actions/favorite.coffee:1:raw_corpus
raw_corpus
Immutable = require 'immutable' dispatcher = require '../dispatcher' api = require '../network/api' lang = require '../locales/lang' notifyActions = require '../actions/notify' exports.createFavorite = (message, success, fail) -> api.favorites.create.post(data: _messageId: message.get('_id')) .then (re...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/favorite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/favorite.coffee
1
47
jianliaoim/talk-os:talk-web/client/actions/favorite.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Immutable = require 'immutable' dispatcher = require '../dispatcher' api = require '../network/api' lang = require '../locales/lang' notifyActions = require '../actions/notify' exports.createFavorite = (message, success, fail) -> api.favorites.create...
var Immutable, api, dispatcher, lang, notifyActions; Immutable = require('immutable'); dispatcher = require('../dispatcher'); api = require('../network/api'); lang = require('../locales/lang'); notifyActions = require('../actions/notify'); exports.createFavorite = function(message, success, fail) { return api.f...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/favorite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/favorite.coffee
1
47
jianliaoim/talk-os:talk-web/client/actions/favorite.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, api, dispatcher, lang, notifyActions; Immutable = require('immutable'); dispatcher = require('../dispatcher'); api = require('../network/api'); lang = require('../locales/lang'); notifyActions = require('../actions/notify'); exports.createFavor...
Immutable = require 'immutable' dispatcher = require '../dispatcher' api = require '../network/api' lang = require '../locales/lang' notifyActions = require '../actions/notify' exports.createFavorite = (message, success, fail) -> api.favorites.create.post(data: _messageId: message.get('_id')) .then (re...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/favorite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/favorite.coffee
1
47
jianliaoim/talk-os:talk-web/client/actions/favorite.coffee:1:completion
completion
Immutable = require 'immutable' dispatcher = require '../dispatcher' api = require '../network/api' lang = require '../locales/lang' notifyActions = require '../actions/notify' exports.createFavorite = (message, success, fail) -> api.favorites.create.post(data: _messageId: message.get('_id')) .then (re...
success? Immutable.fromJS(resp) .catch (error) -> fail? error exports.removeFavorite = (_messageId, success, fail) -> api.favorites.remove.delete(pathParams: id: _messageId) .then (resp) -> notifyActions.success lang.getText('favorite-cancelled') dispatcher.handleViewAction type: 'favorite/...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/favorite.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/favorite.coffee
1
47
octoblu/meshblu:lib/clearCacheRedis.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' redis = require './redis' clearCacheRedis = (uuid, callback=->) -> return callback() unless uuid? redis.del redis.CACHE_KEY + uuid callback() module.exports = clearCacheRedis
CoffeeScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
494f8e5c6b395879c8e33c0122939d053af84ae7
815
https://github.com/octoblu/meshblu/blob/494f8e5c6b395879c8e33c0122939d053af84ae7/lib/clearCacheRedis.coffee
1
9
octoblu/meshblu:lib/clearCacheRedis.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' redis = require './redis' clearCacheRedis = (uuid, callback=->) -> return callback() unless uuid? redis.del redis.CACHE_KEY + uuid callback() module.exports = clearCacheRedis ```
var _, clearCacheRedis, redis; _ = require('lodash'); redis = require('./redis'); clearCacheRedis = function(uuid, callback = function() {}) { if (uuid == null) { return callback(); } redis.del(redis.CACHE_KEY + uuid); return callback(); }; module.exports = clearCacheRedis;
CoffeeScript
JavaScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
494f8e5c6b395879c8e33c0122939d053af84ae7
815
https://github.com/octoblu/meshblu/blob/494f8e5c6b395879c8e33c0122939d053af84ae7/lib/clearCacheRedis.coffee
1
9
octoblu/meshblu:lib/clearCacheRedis.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, clearCacheRedis, redis; _ = require('lodash'); redis = require('./redis'); clearCacheRedis = function(uuid, callback = function() {}) { if (uuid == null) { return callback(); } redis.del(redis.CACHE_KEY + uuid); return callback(); }; module.e...
_ = require 'lodash' redis = require './redis' clearCacheRedis = (uuid, callback=->) -> return callback() unless uuid? redis.del redis.CACHE_KEY + uuid callback() module.exports = clearCacheRedis
JavaScript
CoffeeScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
494f8e5c6b395879c8e33c0122939d053af84ae7
815
https://github.com/octoblu/meshblu/blob/494f8e5c6b395879c8e33c0122939d053af84ae7/lib/clearCacheRedis.coffee
1
9
octoblu/meshblu:lib/clearCacheRedis.coffee:1:completion
completion
_ = require 'lodash' redis = require './redis' clearCacheRedis = (uuid, callback=->) ->
return callback() unless uuid? redis.del redis.CACHE_KEY + uuid callback() module.exports = clearCacheRedis
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
494f8e5c6b395879c8e33c0122939d053af84ae7
815
https://github.com/octoblu/meshblu/blob/494f8e5c6b395879c8e33c0122939d053af84ae7/lib/clearCacheRedis.coffee
1
9
octoblu/meshblu:lib/clearCacheRedis.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' redis = require './redis' clearCache = (uuid, callback=->) -> if uuid redis.del redis.CACHE_KEY + uuid, callback module.exports = clearCache
CoffeeScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
cb391c74d09b0a15a42c95b0dc884034632400d8
815
https://github.com/octoblu/meshblu/blob/cb391c74d09b0a15a42c95b0dc884034632400d8/lib/clearCacheRedis.coffee
1
8
octoblu/meshblu:lib/clearCacheRedis.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' redis = require './redis' clearCache = (uuid, callback=->) -> if uuid redis.del redis.CACHE_KEY + uuid, callback module.exports = clearCache ```
var _, clearCache, redis; _ = require('lodash'); redis = require('./redis'); clearCache = function(uuid, callback = function() {}) { if (uuid) { return redis.del(redis.CACHE_KEY + uuid, callback); } }; module.exports = clearCache;
CoffeeScript
JavaScript
octoblu/meshblu
lib/clearCacheRedis.coffee
MIT
cb391c74d09b0a15a42c95b0dc884034632400d8
815
https://github.com/octoblu/meshblu/blob/cb391c74d09b0a15a42c95b0dc884034632400d8/lib/clearCacheRedis.coffee
1
8