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-api2x/server/components/tps.coffee:4:raw_corpus | raw_corpus | _broadcastBulk = ->
# Clear timer
clearTimeout tpsOptions.timer
tpsOptions.cleared = true
return unless bulk.payloads.length
options =
method: 'POST'
url: config.tps.apiHost + '/messages/bulk'
headers:
'x-app-key': config.tps.appKey
'x-app-secret': config.tps.appSecret
json: true... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 61 | 81 | ||
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_broadcastBulk = ->
# Clear timer
clearTimeout tpsOptions.timer
tpsOptions.cleared = true
return unless bulk.payloads.length
options =
method: 'POST'
url: config.tps.apiHost + '/messages/bulk'
headers:
'x-app-key': config.tps.appKey
... | var _broadcastBulk;
_broadcastBulk = function() {
var options;
// Clear timer
clearTimeout(tpsOptions.timer);
tpsOptions.cleared = true;
if (!bulk.payloads.length) {
return;
}
options = {
method: 'POST',
url: config.tps.apiHost + '/messages/bulk',
headers: {
'x-app-key': config.tps.... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 61 | 81 |
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _broadcastBulk;
_broadcastBulk = function() {
var options;
// Clear timer
clearTimeout(tpsOptions.timer);
tpsOptions.cleared = true;
if (!bulk.payloads.length) {
return;
}
options = {
method: 'POST',
url: config.tps.apiHost + '/messag... | _broadcastBulk = ->
# Clear timer
clearTimeout tpsOptions.timer
tpsOptions.cleared = true
return unless bulk.payloads.length
options =
method: 'POST'
url: config.tps.apiHost + '/messages/bulk'
headers:
'x-app-key': config.tps.appKey
'x-app-secret': config.tps.appSecret
json: true... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 61 | 81 |
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:4:completion | completion | _broadcastBulk = ->
# Clear timer
clearTimeout tpsOptions.timer
tpsOptions.cleared = true
return unless bulk.payloads.length
options =
method: 'POST'
url: config.tps.apiHost + '/messages/bulk' | headers:
'x-app-key': config.tps.appKey
'x-app-secret': config.tps.appSecret
json: true
body: payloads: bulk.payloads
# Clear bulks
bulk.payloads = []
requestAsync options
.catch (err) -> logger.warn err.stack | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 61 | 81 |
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:5:raw_corpus | raw_corpus | tps.broadcast = (channelKeys, payload, bodyOptions = {}, callback = ->) ->
return callback(new Err('CONFIG_MISSING', 'tps')) unless config.tps
body = _.assign
payload: payload
, bodyOptions
if toString.call(channelKeys) is '[object Array]'
body.channelKeys = channelKeys
else if toString.call(channel... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 83 | 108 | ||
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
tps.broadcast = (channelKeys, payload, bodyOptions = {}, callback = ->) ->
return callback(new Err('CONFIG_MISSING', 'tps')) unless config.tps
body = _.assign
payload: payload
, bodyOptions
if toString.call(channelKeys) is '[object Array]'
body.... | tps.broadcast = function(channelKeys, payload, bodyOptions = {}, callback = function() {}) {
var body;
if (!config.tps) {
return callback(new Err('CONFIG_MISSING', 'tps'));
}
body = _.assign({
payload: payload
}, bodyOptions);
if (toString.call(channelKeys) === '[object Array]') {
body.channelKe... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 83 | 108 |
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
tps.broadcast = function(channelKeys, payload, bodyOptions = {}, callback = function() {}) {
var body;
if (!config.tps) {
return callback(new Err('CONFIG_MISSING', 'tps'));
}
body = _.assign({
payload: payload
}, bodyOptions);
if (toString.call(... | tps.broadcast = (channelKeys, payload, bodyOptions = {}, callback = ->) ->
return callback(new Err('CONFIG_MISSING', 'tps')) unless config.tps
body = _.assign
payload: payload
, bodyOptions
if toString.call(channelKeys) is '[object Array]'
body.channelKeys = channelKeys
else if toString.call(channel... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 83 | 108 |
jianliaoim/talk-os:talk-api2x/server/components/tps.coffee:5:completion | completion | tps.broadcast = (channelKeys, payload, bodyOptions = {}, callback = ->) ->
return callback(new Err('CONFIG_MISSING', 'tps')) unless config.tps
body = _.assign
payload: payload
, bodyOptions
if toString.call(channelKeys) is '[object Array]'
body.channelKeys = channelKeys
else if toString.call(channel... | bulk.payloads.push body
if bulk.payloads.length > tpsOptions.max
_broadcastBulk()
else if tpsOptions.cleared
tpsOptions.timer = setTimeout _broadcastBulk, tpsOptions.interval
tpsOptions.cleared = false
callback()
Promise.promisifyAll tps | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/components/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/tps.coffee | 83 | 108 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
# The layer mask is the overarching data structure that describes both
# the layers/groups in the PSD document, and the global mask.
# This part of the document is ordered as such:
#
# * Layers
# * Layer images
# * Global Mask
#
# The... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 1 | 50 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
# The layer mask is the overarching data structure that describes both
# the layers/groups in the PSD document, and the global mask.
# This part of the document is ordered as su... | var Layer, LayerMask, Util, _;
_ = require('lodash');
Util = require('./util.coffee');
Layer = require('./layer.coffee');
// The layer mask is the overarching data structure that describes both
// the layers/groups in the PSD document, and the global mask.
// This part of the document is ordered as such:
// * Laye... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Layer, LayerMask, Util, _;
_ = require('lodash');
Util = require('./util.coffee');
Layer = require('./layer.coffee');
// The layer mask is the overarching data structure that describes both
// the layers/groups in the PSD document, and the global mask.
// T... | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
# The layer mask is the overarching data structure that describes both
# the layers/groups in the PSD document, and the global mask.
# This part of the document is ordered as such:
#
# * Layers
# * Layer images
# * Global Mask
#
# The... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
# The layer mask is the overarching data structure that describes both
# the layers/groups in the PSD document, and the global mask.
# This part of the document is ordered as such:
#
# * Layers
# * Layer images
# * Global Mask
#
# The... | finish = maskSize + @file.tell()
return if maskSize <= 0
@parseLayers()
@parseGlobalMask()
# The layers are stored in the reverse order that we would like them. In other
# words, they're stored bottom to top and we want them top to bottom.
@layers.reverse()
@file.seek finish
parseLaye... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:2:raw_corpus | raw_corpus | layer.parseChannelImage() for layer in @layers
parseGlobalMask: ->
length = @file.readInt()
return if length <= 0
maskEnd = @file.tell() + length
@globalMask = _({}).tap (mask) =>
mask.overlayColorSpace = @file.readShort()
mask.colorComponents = [
@file.readShort() >> 8
... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 51 | 73 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:2:completion | completion | layer.parseChannelImage() for layer in @layers
parseGlobalMask: ->
length = @file.readInt()
return if length <= 0
maskEnd = @file.tell() + length
@globalMask = _({}).tap (mask) =>
mask.overlayColorSpace = @file.readShort()
mask.colorComponents = [ | @file.readShort() >> 8
@file.readShort() >> 8
@file.readShort() >> 8
@file.readShort() >> 8
]
mask.opacity = @file.readShort() / 16.0
# 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer_mask.coffee | 51 | 73 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish =... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c895ffd782a64323324b3d744bb3bbbece05398f | 2,846 | https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer_mask.coffee | 1 | 50 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish =... | parseLayers: ->
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true
for i in [0...layerCount]
@layers.push new Layer(@file, @header).parse()
layer.... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c895ffd782a64323324b3d744bb3bbbece05398f | 2,846 | https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:2:raw_corpus | raw_corpus | @file.readShort() >> 8
@file.readShort() >> 8
@file.readShort() >> 8
]
mask.opacity = @file.readShort() / 16.0
# 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c895ffd782a64323324b3d744bb3bbbece05398f | 2,846 | https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer_mask.coffee | 51 | 61 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:2:completion | completion | @file.readShort() >> 8
@file.readShort() >> 8
@file.readShort() >> 8
] | mask.opacity = @file.readShort() / 16.0
# 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c895ffd782a64323324b3d744bb3bbbece05398f | 2,846 | https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer_mask.coffee | 51 | 61 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish =... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | e6b4e8287fe33581e5cdcf33560085f2cc5848ed | 2,846 | https://github.com/meltingice/psd.js/blob/e6b4e8287fe33581e5cdcf33560085f2cc5848ed/lib/psd/layer_mask.coffee | 1 | 50 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | _ = require 'lodash'
Util = require './util.coffee'
Layer = require './layer.coffee'
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish =... | parseLayers: ->
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true
for i in [0...layerCount]
@layers.push new Layer(@file, @header).parse()
parseGloba... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | e6b4e8287fe33581e5cdcf33560085f2cc5848ed | 2,846 | https://github.com/meltingice/psd.js/blob/e6b4e8287fe33581e5cdcf33560085f2cc5848ed/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:2:raw_corpus | raw_corpus | @file.readShort() >> 8
]
mask.opacity = @file.readShort() / 16.0
# 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | e6b4e8287fe33581e5cdcf33560085f2cc5848ed | 2,846 | https://github.com/meltingice/psd.js/blob/e6b4e8287fe33581e5cdcf33560085f2cc5848ed/lib/psd/layer_mask.coffee | 51 | 59 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:2:completion | completion | @file.readShort() >> 8
]
mask.opacity = @file.readShort() / 16.0 | # 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | e6b4e8287fe33581e5cdcf33560085f2cc5848ed | 2,846 | https://github.com/meltingice/psd.js/blob/e6b4e8287fe33581e5cdcf33560085f2cc5848ed/lib/psd/layer_mask.coffee | 51 | 59 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 143a31793e7d4e1c89be2feddc3c3a1d033037f2 | 2,846 | https://github.com/meltingice/psd.js/blob/143a31793e7d4e1c89be2feddc3c3a1d033037f2/lib/psd/layer_mask.coffee | 1 | 50 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true
for i in [0...layerCount]
@layers.push new Layer(@file, @header).parse()
parseGlobalMask: ->
length... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 143a31793e7d4e1c89be2feddc3c3a1d033037f2 | 2,846 | https://github.com/meltingice/psd.js/blob/143a31793e7d4e1c89be2feddc3c3a1d033037f2/lib/psd/layer_mask.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer_mask.coffee:2:raw_corpus | raw_corpus | ]
mask.opacity = @file.readShort() / 16.0
# 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 143a31793e7d4e1c89be2feddc3c3a1d033037f2 | 2,846 | https://github.com/meltingice/psd.js/blob/143a31793e7d4e1c89be2feddc3c3a1d033037f2/lib/psd/layer_mask.coffee | 51 | 58 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:2:completion | completion | ]
mask.opacity = @file.readShort() / 16.0 | # 0 = color selected, 1 = color protected, 128 = use value per layer
mask.kind = @file.readByte()
@file.seek maskEnd | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 143a31793e7d4e1c89be2feddc3c3a1d033037f2 | 2,846 | https://github.com/meltingice/psd.js/blob/143a31793e7d4e1c89be2feddc3c3a1d033037f2/lib/psd/layer_mask.coffee | 51 | 58 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | d9eb995eb5dd81f1811e9e14c09d3ba70d31c992 | 2,846 | https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd/layer_mask.coffee | 1 | 38 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
m... | var Layer, LayerMask, Util;
Util = require('./util.coffee');
Layer = require('./layer.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
skip() {
... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | d9eb995eb5dd81f1811e9e14c09d3ba70d31c992 | 2,846 | https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd/layer_mask.coffee | 1 | 38 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Layer, LayerMask, Util;
Util = require('./util.coffee');
Layer = require('./layer.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlph... | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | d9eb995eb5dd81f1811e9e14c09d3ba70d31c992 | 2,846 | https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd/layer_mask.coffee | 1 | 38 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | @layers.reverse()
@file.seek finish
parseLayers: ->
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true
for i in [0...layerCount]
@layers.push new... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | d9eb995eb5dd81f1811e9e14c09d3ba70d31c992 | 2,846 | https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd/layer_mask.coffee | 1 | 38 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer_mask.coffee | 1 | 32 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
m... | var Layer, LayerMask, Util;
Util = require('./util.coffee');
Layer = require('./layer.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
skip() {
... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer_mask.coffee | 1 | 32 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Layer, LayerMask, Util;
Util = require('./util.coffee');
Layer = require('./layer.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlph... | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer_mask.coffee | 1 | 32 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
Layer = require('./layer.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.t... | layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true
for i in [0...layerCount]
@layers.push new Layer(@file, @header).parse()
@layers.reverse()
@file... | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer_mask.coffee | 1 | 32 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
re... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 4c8ab8d623693821bd73a31de24010c21bae7577 | 2,846 | https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/layer_mask.coffee | 1 | 26 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
fini... | var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
skip() {
return this.file.seek(this.file.readInt... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 4c8ab8d623693821bd73a31de24010c21bae7577 | 2,846 | https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
... | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
re... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 4c8ab8d623693821bd73a31de24010c21bae7577 | 2,846 | https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt(), true
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell() | @file.seek finish
return
return if maskSize <= 0
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 4c8ab8d623693821bd73a31de24010c21bae7577 | 2,846 | https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt()
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
return
... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 969ddd48118b35cd134364eb7793fce4bf4dd162 | 2,846 | https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/layer_mask.coffee | 1 | 26 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt()
parse: ->
maskSize = @file.readInt()
finish = m... | var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
skip() {
return this.file.seek(this.file.readInt... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 969ddd48118b35cd134364eb7793fce4bf4dd162 | 2,846 | https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
... | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt()
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
return
... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 969ddd48118b35cd134364eb7793fce4bf4dd162 | 2,846 | https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
skip: -> @file.seek @file.readInt()
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell() | @file.seek finish
return
return if maskSize <= 0
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | 969ddd48118b35cd134364eb7793fce4bf4dd162 | 2,846 | https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/layer_mask.coffee | 1 | 26 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:raw_corpus | raw_corpus | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
return
return if maskSize <= 0
layerI... | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c3e7db58a568a9cbfa31ebf197e062844c3f6015 | 2,846 | https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/layer_mask.coffee | 1 | 24 | ||
meltingice/psd.js:lib/psd/layer_mask.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek f... | var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
parse() {
var finish, layerCount, layerInfoSize,... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c3e7db58a568a9cbfa31ebf197e062844c3f6015 | 2,846 | https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/layer_mask.coffee | 1 | 24 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var LayerMask, Util;
Util = require('./util.coffee');
module.exports = LayerMask = class LayerMask {
constructor(file, header) {
this.file = file;
this.header = header;
this.layers = [];
this.mergedAlpha = false;
this.globalMask = null;
}
... | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish
return
return if maskSize <= 0
layerI... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c3e7db58a568a9cbfa31ebf197e062844c3f6015 | 2,846 | https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/layer_mask.coffee | 1 | 24 |
meltingice/psd.js:lib/psd/layer_mask.coffee:1:completion | completion | Util = require('./util.coffee')
module.exports = class LayerMask
constructor: (@file, @header) ->
@layers = []
@mergedAlpha = false
@globalMask = null
parse: ->
maskSize = @file.readInt()
finish = maskSize + @file.tell()
@file.seek finish | return
return if maskSize <= 0
layerInfoSize = Util.pad2 @file.readInt()
if layerInfoSize > 0
layerCount = @file.readShort()
if layerCount < 0
layerCount = Math.abs layerCount
@mergedAlpha = true | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer_mask.coffee | MIT | c3e7db58a568a9cbfa31ebf197e062844c3f6015 | 2,846 | https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/layer_mask.coffee | 1 | 24 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/Gruntfile.coffee | 1 | 25 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode: | showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
defaultTimeoutInterval: 20000
onComplete: ->
lineman?.kill... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 80ff661f7d9e4622034a1f006f3c470a442d01b4 | 1,168 | https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/Gruntfile.coffee | 1 | 25 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 80ff661f7d9e4622034a1f006f3c470a442d01b4 | 1,168 | https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 80ff661f7d9e4622034a1f006f3c470a442d01b4 | 1,168 | https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode: | showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
defaultTimeoutInterval: 10000
onComplete: ->
lineman?.kill... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 80ff661f7d9e4622034a1f006f3c470a442d01b4 | 1,168 | https://github.com/linemanjs/lineman/blob/80ff661f7d9e4622034a1f006f3c470a442d01b4/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ccf8a96f9d1d80460794d6dbef05d91b440ab067 | 1,168 | https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/Gruntfile.coffee | 1 | 26 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ccf8a96f9d1d80460794d6dbef05d91b440ab067 | 1,168 | https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/Gruntfile.coffee | 1 | 26 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ccf8a96f9d1d80460794d6dbef05d91b440ab067 | 1,168 | https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/Gruntfile.coffee | 1 | 26 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true | e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
defaultTimeoutInterval: 10000
onComplete: ->
console.log("onComplete running")
... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ccf8a96f9d1d80460794d6dbef05d91b440ab067 | 1,168 | https://github.com/linemanjs/lineman/blob/ccf8a96f9d1d80460794d6dbef05d91b440ab067/test/Gruntfile.coffee | 1 | 26 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 47d0cad03f6a0d008152e75ba57a5e444b63fabe | 1,168 | https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/Gruntfile.coffee | 1 | 25 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 47d0cad03f6a0d008152e75ba57a5e444b63fabe | 1,168 | https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 47d0cad03f6a0d008152e75ba57a5e444b63fabe | 1,168 | https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode: | showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
defaultTimeoutInterval: 10000
onComplete: ->
require("./sp... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 47d0cad03f6a0d008152e75ba57a5e444b63fabe | 1,168 | https://github.com/linemanjs/lineman/blob/47d0cad03f6a0d008152e75ba57a5e444b63fabe/test/Gruntfile.coffee | 1 | 25 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 221e35f69b4221369ff5e5a124965a2991639339 | 1,168 | https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/Gruntfile.coffee | 1 | 24 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 221e35f69b4221369ff5e5a124965a2991639339 | 1,168 | https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/Gruntfile.coffee | 1 | 24 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 221e35f69b4221369ff5e5a124965a2991639339 | 1,168 | https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/Gruntfile.coffee | 1 | 24 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode: | showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
defaultTimeoutInterval: 10000
onComplete: ->
require("./sp... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 221e35f69b4221369ff5e5a124965a2991639339 | 1,168 | https://github.com/linemanjs/lineman/blob/221e35f69b4221369ff5e5a124965a2991639339/test/Gruntfile.coffee | 1 | 24 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ba9f6d686ebff975e7f826ce86624111d50f0691 | 1,168 | https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/Gruntfile.coffee | 1 | 23 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ba9f6d686ebff975e7f826ce86624111d50f0691 | 1,168 | https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/Gruntfile.coffee | 1 | 23 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ba9f6d686ebff975e7f826ce86624111d50f0691 | 1,168 | https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/Gruntfile.coffee | 1 | 23 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}" | minijasminenode:
showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
onComplete: ->
require("./spec-e2e/helper... | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | ba9f6d686ebff975e7f826ce86624111d50f0691 | 1,168 | https://github.com/linemanjs/lineman/blob/ba9f6d686ebff975e7f826ce86624111d50f0691/test/Gruntfile.coffee | 1 | 23 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e2... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 0af6711c0ec0b192705a7fee01ef9e6d834ffe47 | 1,168 | https://github.com/linemanjs/lineman/blob/0af6711c0ec0b192705a7fee01ef9e6d834ffe47/test/Gruntfile.coffee | 1 | 20 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*.{js,coffee}",
minijasminenode: {
... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 0af6711c0ec0b192705a7fee01ef9e6d834ffe47 | 1,168 | https://github.com/linemanjs/lineman/blob/0af6711c0ec0b192705a7fee01ef9e6d834ffe47/test/Gruntfile.coffee | 1 | 20 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}",
specs: "spec-unit/**/*... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
minijasminenode:
showColors: true
e2... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 0af6711c0ec0b192705a7fee01ef9e6d834ffe47 | 1,168 | https://github.com/linemanjs/lineman/blob/0af6711c0ec0b192705a7fee01ef9e6d834ffe47/test/Gruntfile.coffee | 1 | 20 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}" | minijasminenode:
showColors: true
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"]
minijasminenode:
showColors: true
onComplete: -> browser?.quit() | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 0af6711c0ec0b192705a7fee01ef9e6d834ffe47 | 1,168 | https://github.com/linemanjs/lineman/blob/0af6711c0ec0b192705a7fee01ef9e6d834ffe47/test/Gruntfile.coffee | 1 | 20 |
linemanjs/lineman:test/Gruntfile.coffee:1:raw_corpus | raw_corpus | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
options:
minijasminenode:
showColors: true
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee... | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 337b9a757f630cb9103e1a2a84469d7b2cca5e54 | 1,168 | https://github.com/linemanjs/lineman/blob/337b9a757f630cb9103e1a2a84469d7b2cca5e54/test/Gruntfile.coffee | 1 | 19 | ||
linemanjs/lineman:test/Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
options:
minijasminenode:
showColors: true
unit:
options:
helpers: "spec-unit/helpers/**/*... | //global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
options: {
minijasminenode: {
showColors: true
}
},
unit: {
options: {
helpers: "spec-unit/helpers/**/*.{js,coffee}... | CoffeeScript | JavaScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 337b9a757f630cb9103e1a2a84469d7b2cca5e54 | 1,168 | https://github.com/linemanjs/lineman/blob/337b9a757f630cb9103e1a2a84469d7b2cca5e54/test/Gruntfile.coffee | 1 | 19 |
linemanjs/lineman:test/Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//global module:false
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-jasmine-bundle');
return grunt.initConfig({
spec: {
options: {
minijasminenode: {
showColors: true
}
},
unit: {
options: {... | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
options:
minijasminenode:
showColors: true
unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee... | JavaScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 337b9a757f630cb9103e1a2a84469d7b2cca5e54 | 1,168 | https://github.com/linemanjs/lineman/blob/337b9a757f630cb9103e1a2a84469d7b2cca5e54/test/Gruntfile.coffee | 1 | 19 |
linemanjs/lineman:test/Gruntfile.coffee:1:completion | completion | #global module:false
module.exports = (grunt) ->
grunt.loadNpmTasks('grunt-jasmine-bundle')
grunt.initConfig
spec:
options:
minijasminenode:
showColors: true | unit:
options:
helpers: "spec-unit/helpers/**/*.{js,coffee}"
specs: "spec-unit/**/*.{js,coffee}"
e2e:
options:
helpers: "spec-e2e/helpers/**/*.{js,coffee}"
specs: ["spec-e2e/**/*.{js,coffee}", "!spec-e2e/tmp/**"] | CoffeeScript | CoffeeScript | linemanjs/lineman | test/Gruntfile.coffee | MIT | 337b9a757f630cb9103e1a2a84469d7b2cca5e54 | 1,168 | https://github.com/linemanjs/lineman/blob/337b9a757f630cb9103e1a2a84469d7b2cca5e54/test/Gruntfile.coffee | 1 | 19 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:raw_corpus | raw_corpus | {JSONStorage} = require('../')
path = require('path')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, path.resolve('./scratch'))
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'somethi... | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | b45249ecdc97374f1f20f0d260c2a4f7c6e701f5 | 460 | https://github.com/lmaccherone/node-localstorage/blob/b45249ecdc97374f1f20f0d260c2a4f7c6e701f5/test/JSONStorageTest.coffee | 1 | 48 | ||
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{JSONStorage} = require('../')
path = require('path')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, path.resolve('./scratch'))
localStorage.setItem('/', 'somet... | var JSONStorage, path;
({JSONStorage} = require('../'));
path = require('path');
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage._location, path.resolve('./scratch'));
localStorage.setItem('/'... | CoffeeScript | JavaScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | b45249ecdc97374f1f20f0d260c2a4f7c6e701f5 | 460 | https://github.com/lmaccherone/node-localstorage/blob/b45249ecdc97374f1f20f0d260c2a4f7c6e701f5/test/JSONStorageTest.coffee | 1 | 48 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var JSONStorage, path;
({JSONStorage} = require('../'));
path = require('path');
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage._location, p... | {JSONStorage} = require('../')
path = require('path')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, path.resolve('./scratch'))
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'somethi... | JavaScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | b45249ecdc97374f1f20f0d260c2a4f7c6e701f5 | 460 | https://github.com/lmaccherone/node-localstorage/blob/b45249ecdc97374f1f20f0d260c2a4f7c6e701f5/test/JSONStorageTest.coffee | 1 | 48 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:completion | completion | {JSONStorage} = require('../')
path = require('path')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, path.resolve('./scratch'))
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'somethi... | test.equal(localStorage.getItem('2'), null)
test.deepEqual(localStorage._keys, ['/'])
test.equal(localStorage.length, 1)
test.equal(localStorage.key(0), '/')
localStorage.clear()
test.equal(localStorage.length, 0)
localStorage._deleteLocation()
test.done()
testNoNewKeyword: (test) ->
... | CoffeeScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | b45249ecdc97374f1f20f0d260c2a4f7c6e701f5 | 460 | https://github.com/lmaccherone/node-localstorage/blob/b45249ecdc97374f1f20f0d260c2a4f7c6e701f5/test/JSONStorageTest.coffee | 1 | 48 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:raw_corpus | raw_corpus | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c... | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | 6a2bbc63ab19c432ba8e2e677abb7f77de527724 | 460 | https://github.com/lmaccherone/node-localstorage/blob/6a2bbc63ab19c432ba8e2e677abb7f77de527724/test/JSONStorageTest.coffee | 1 | 47 | ||
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.ge... | var JSONStorage;
({JSONStorage} = require('../'));
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage._location, './scratch');
localStorage.setItem('/', 'something');
test.equal(localStorage.g... | CoffeeScript | JavaScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | 6a2bbc63ab19c432ba8e2e677abb7f77de527724 | 460 | https://github.com/lmaccherone/node-localstorage/blob/6a2bbc63ab19c432ba8e2e677abb7f77de527724/test/JSONStorageTest.coffee | 1 | 47 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var JSONStorage;
({JSONStorage} = require('../'));
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage._location, './scratch');
localStorage.s... | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c... | JavaScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | 6a2bbc63ab19c432ba8e2e677abb7f77de527724 | 460 | https://github.com/lmaccherone/node-localstorage/blob/6a2bbc63ab19c432ba8e2e677abb7f77de527724/test/JSONStorageTest.coffee | 1 | 47 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:completion | completion | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage._location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c... | test.equal(localStorage.getItem('2'), null)
test.deepEqual(localStorage._keys, ['/'])
test.equal(localStorage.length, 1)
test.equal(localStorage.key(0), '/')
localStorage.clear()
test.equal(localStorage.length, 0)
localStorage._deleteLocation()
test.done()
testNoNewKeyword: (test) ->
... | CoffeeScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | 6a2bbc63ab19c432ba8e2e677abb7f77de527724 | 460 | https://github.com/lmaccherone/node-localstorage/blob/6a2bbc63ab19c432ba8e2e677abb7f77de527724/test/JSONStorageTest.coffee | 1 | 47 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:raw_corpus | raw_corpus | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage.location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c:... | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | a2f00fc1e207c477910dd6636c7d9e678bc1d6d7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/a2f00fc1e207c477910dd6636c7d9e678bc1d6d7/test/JSONStorageTest.coffee | 1 | 47 | ||
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage.location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.get... | var JSONStorage;
({JSONStorage} = require('../'));
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage.location, './scratch');
localStorage.setItem('/', 'something');
test.equal(localStorage.ge... | CoffeeScript | JavaScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | a2f00fc1e207c477910dd6636c7d9e678bc1d6d7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/a2f00fc1e207c477910dd6636c7d9e678bc1d6d7/test/JSONStorageTest.coffee | 1 | 47 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var JSONStorage;
({JSONStorage} = require('../'));
exports.JSONStorageTest = {
testJSONStorage: function(test) {
var a, localStorage, o;
localStorage = new JSONStorage('./scratch');
test.equal(localStorage.location, './scratch');
localStorage.se... | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage.location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c:... | JavaScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | a2f00fc1e207c477910dd6636c7d9e678bc1d6d7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/a2f00fc1e207c477910dd6636c7d9e678bc1d6d7/test/JSONStorageTest.coffee | 1 | 47 |
lmaccherone/node-localstorage:test/JSONStorageTest.coffee:1:completion | completion | {JSONStorage} = require('../')
exports.JSONStorageTest =
testJSONStorage: (test) ->
localStorage = new JSONStorage('./scratch')
test.equal(localStorage.location, './scratch')
localStorage.setItem('/', 'something')
test.equal(localStorage.getItem('/'), 'something')
o = {a:1, b:'some string', c:... | test.equal(localStorage.getItem('2'), null)
test.deepEqual(localStorage.keys, ['/'])
test.equal(localStorage.length, 1)
test.equal(localStorage.key(0), '/')
localStorage.clear()
test.equal(localStorage.length, 0)
localStorage._deleteLocation()
test.done()
testNoNewKeyword: (test) ->
... | CoffeeScript | CoffeeScript | lmaccherone/node-localstorage | test/JSONStorageTest.coffee | MIT | a2f00fc1e207c477910dd6636c7d9e678bc1d6d7 | 460 | https://github.com/lmaccherone/node-localstorage/blob/a2f00fc1e207c477910dd6636c7d9e678bc1d6d7/test/JSONStorageTest.coffee | 1 | 47 |
jianliaoim/talk-os:talk-api2x/server/schemas/plugins/makestatic.coffee:1:raw_corpus | raw_corpus | ###*
* Transform methods to statics
###
Err = require 'err1st'
module.exports = makestatic = (schema, options) ->
{methodNames} = options
methodNames.forEach (methodName) ->
unless schema.methods[methodName]
throw new Err("Instance method #{methodName} is not existing")
if schema.statics[methodName... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/schemas/plugins/makestatic.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/plugins/makestatic.coffee | 1 | 24 | ||
jianliaoim/talk-os:talk-api2x/server/schemas/plugins/makestatic.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###*
* Transform methods to statics
###
Err = require 'err1st'
module.exports = makestatic = (schema, options) ->
{methodNames} = options
methodNames.forEach (methodName) ->
unless schema.methods[methodName]
throw new Err("Instance method #{metho... | /**
* Transform methods to statics
*/
var Err, makestatic;
Err = require('err1st');
module.exports = makestatic = function(schema, options) {
var methodNames;
({methodNames} = options);
return methodNames.forEach(function(methodName) {
if (!schema.methods[methodName]) {
throw new Err(`Instance metho... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/schemas/plugins/makestatic.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/plugins/makestatic.coffee | 1 | 24 |
jianliaoim/talk-os:talk-api2x/server/schemas/plugins/makestatic.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/**
* Transform methods to statics
*/
var Err, makestatic;
Err = require('err1st');
module.exports = makestatic = function(schema, options) {
var methodNames;
({methodNames} = options);
return methodNames.forEach(function(methodName) {
if (!schema.met... | ###*
* Transform methods to statics
###
Err = require 'err1st'
module.exports = makestatic = (schema, options) ->
{methodNames} = options
methodNames.forEach (methodName) ->
unless schema.methods[methodName]
throw new Err("Instance method #{methodName} is not existing")
if schema.statics[methodName... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/schemas/plugins/makestatic.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/plugins/makestatic.coffee | 1 | 24 |
jianliaoim/talk-os:talk-api2x/server/schemas/plugins/makestatic.coffee:1:completion | completion | ###*
* Transform methods to statics
###
Err = require 'err1st'
module.exports = makestatic = (schema, options) ->
{methodNames} = options
methodNames.forEach (methodName) ->
unless schema.methods[methodName]
throw new Err("Instance method #{methodName} is not existing")
if schema.statics[methodName... | throw new Err("Static method #{methodName} is existing")
schema.statics[methodName] = (_id, args...) ->
Model = this
return _id[methodName].apply _id, args if _id instanceof Model
if toString.call(args[args.length - 1]) is '[object Function]'
callback = args[args.length - 1]
else
... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/schemas/plugins/makestatic.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/plugins/makestatic.coffee | 1 | 24 |
gss/engine:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = ->
# Project configuration
@initConfig
pkg: @file.readJSON 'package.json'
clean:
dist:
src: ['dist/**/*.js']
spec:
src: ['spec/js/**/*.js']
browserify:
options:
transform: ['coffeeify']
browserifyOptions:
extensions: ['.coffe... | CoffeeScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 1 | 50 | ||
gss/engine:Gruntfile.coffee:1:completion | completion | module.exports = ->
# Project configuration
@initConfig
pkg: @file.readJSON 'package.json'
clean:
dist:
src: ['dist/**/*.js']
spec:
src: ['spec/js/**/*.js']
browserify:
options:
transform: ['coffeeify']
browserifyOptions:
extensions: ['.coffe... | }]
spec:
files:
'spec/js/specs.js': ['spec/specs.coffee']
# Automated recompilation and testing when developing
watch:
spec:
files: ['spec/**/*.coffee']
tasks: ['browserify:spec']
src:
files: ['src/**/*.coffee']
tasks: ['browserify:dist']
... | CoffeeScript | CoffeeScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 1 | 50 |
gss/engine:Gruntfile.coffee:3:raw_corpus | raw_corpus | options:
reporter: 'node_modules/mocha/lib/reporters/spec.js'
urls: ['http://127.0.0.1:9999/spec/runner.html']
'saucelabs-mocha':
all:
options:
urls: ['http://127.0.0.1:9999/spec/runner.html']
browsers: [
browserName: 'googlechrome'
plat... | CoffeeScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 101 | 150 | ||
gss/engine:Gruntfile.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
options:
reporter: 'node_modules/mocha/lib/reporters/spec.js'
urls: ['http://127.0.0.1:9999/spec/runner.html']
'saucelabs-mocha':
all:
options:
urls: ['http://127.0.0.1:9999/spec/runner.html']
browsers: [... | ({
options: {
reporter: 'node_modules/mocha/lib/reporters/spec.js',
urls: ['http://127.0.0.1:9999/spec/runner.html']
},
'saucelabs-mocha': {
all: {
options: {
urls: ['http://127.0.0.1:9999/spec/runner.html'],
browsers: [
{
browserName: 'googlechrome',
... | CoffeeScript | JavaScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 101 | 150 |
gss/engine:Gruntfile.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
options: {
reporter: 'node_modules/mocha/lib/reporters/spec.js',
urls: ['http://127.0.0.1:9999/spec/runner.html']
},
'saucelabs-mocha': {
all: {
options: {
urls: ['http://127.0.0.1:9999/spec/runner.html'],
browsers: [
... | options:
reporter: 'node_modules/mocha/lib/reporters/spec.js'
urls: ['http://127.0.0.1:9999/spec/runner.html']
'saucelabs-mocha':
all:
options:
urls: ['http://127.0.0.1:9999/spec/runner.html']
browsers: [
browserName: 'googlechrome'
plat... | JavaScript | CoffeeScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 101 | 150 |
gss/engine:Gruntfile.coffee:3:completion | completion | options:
reporter: 'node_modules/mocha/lib/reporters/spec.js'
urls: ['http://127.0.0.1:9999/spec/runner.html']
'saucelabs-mocha':
all:
options:
urls: ['http://127.0.0.1:9999/spec/runner.html']
browsers: [
browserName: 'googlechrome'
plat... | ,
browserName: 'internet explorer'
version: '10'
,
browserName: 'internet explorer'
version: '9'
,
browserName: 'iPhone'
platform: "OS X 10.10"
version: '8.0'
,
browserName: "android"
... | CoffeeScript | CoffeeScript | gss/engine | Gruntfile.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/Gruntfile.coffee | 101 | 150 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.