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
meltingice/psd.js:lib/psd/image.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Calculates the length of the image data. ({ calculateLength: function() { this.length = (function() { switch (this.depth()) { case 1: return (this.width() + 7) / 8 * this.height(); case 16: return this.width() * th...
# Calculates the length of the image data. calculateLength: -> @length = switch @depth() when 1 then (@width() + 7) / 8 * @height() when 16 then @width() * @height() * 2 else @width() * @height() @channelLength = @length @length *= @channels() # Parses the image and formats the image...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
1ccf630905de90ab1f5eedf8a9527491d6ac4ef1
2,846
https://github.com/meltingice/psd.js/blob/1ccf630905de90ab1f5eedf8a9527491d6ac4ef1/lib/psd/image.coffee
60
100
meltingice/psd.js:lib/psd/image.coffee:2:completion
completion
# Calculates the length of the image data. calculateLength: -> @length = switch @depth() when 1 then (@width() + 7) / 8 * @height() when 16 then @width() * @height() * 2 else @width() * @height() @channelLength = @length @length *= @channels() # Parses the image and formats the image...
# Parses the compression mode. parseCompression: -> @file.readShort() # Parses the image data based on the compression mode. parseImageData: -> switch @compression when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip() else @file.seek(@endPos) @processImageDat...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
1ccf630905de90ab1f5eedf8a9527491d6ac4ef1
2,846
https://github.com/meltingice/psd.js/blob/1ccf630905de90ab1f5eedf8a9527491d6ac4ef1/lib/psd/image.coffee
60
100
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
module.exports = class Image extends Module # Here we include all of our important mixins. @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.Greyscale @includes ImageMode.RGB @includes ImageMode.CMYK @includes Export.PNG # Images can be 1 of 4 different compression types. RLE is t...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
e6f041259756b67021bcaf1136655263fe6c3c8a
2,846
https://github.com/meltingice/psd.js/blob/e6f041259756b67021bcaf1136655263fe6c3c8a/lib/psd/image.coffee
10
59
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
module.exports = class Image extends Module # Here we include all of our important mixins. @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.Greyscale @includes ImageMode.RGB @includes ImageMode.CMYK @includes Export.PNG # Images can be 1 of 4 different compression types. RLE is t...
# The resulting array that stores the pixel data, formatted in RGBA format. pixelData: [] # This temporarily holds the raw channel data after it's been parsed, but not # processed. @channelData = [] @opacity = 1.0 @hasMask = false @startPos = @file.tell() @endPos = @startPos + @length ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
e6f041259756b67021bcaf1136655263fe6c3c8a
2,846
https://github.com/meltingice/psd.js/blob/e6f041259756b67021bcaf1136655263fe6c3c8a/lib/psd/image.coffee
10
59
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.Greyscale @includes ImageMode.RGB @includes ImageMode.CMYK @includes Export.PNG COMPRESSIONS = [ 'Raw' 'RLE' 'ZIP' 'ZIPPrediction' ] constructor: (@file, @header) -> ...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
dcdec79219bb8b08f1d546a243320f799333a471
2,846
https://github.com/meltingice/psd.js/blob/dcdec79219bb8b08f1d546a243320f799333a471/lib/psd/image.coffee
7
56
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.Greyscale @includes ImageMode.RGB @includes ImageMode.CMYK @includes Export.PNG COMPRESSIONS = [ 'Raw' 'RLE' 'ZIP' 'ZIPPrediction' ] constructor: (@file, @header) -> ...
@startPos = @file.tell() @endPos = @startPos + @length @setChannelsInfo() for attr in ['width', 'height', 'channels', 'depth', 'mode'] then do (attr) => @::[attr] = -> @header[attr] setChannelsInfo: -> switch @mode() when 1 then @setGreyscaleChannels() when 3 then @setRgbChannels() ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
dcdec79219bb8b08f1d546a243320f799333a471
2,846
https://github.com/meltingice/psd.js/blob/dcdec79219bb8b08f1d546a243320f799333a471/lib/psd/image.coffee
7
56
meltingice/psd.js:lib/psd/image.coffee:2:raw_corpus
raw_corpus
@compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip() else @...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
dcdec79219bb8b08f1d546a243320f799333a471
2,846
https://github.com/meltingice/psd.js/blob/dcdec79219bb8b08f1d546a243320f799333a471/lib/psd/image.coffee
57
82
meltingice/psd.js:lib/psd/image.coffee:2:completion
completion
@compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw()
when 1 then @parseRLE() when 2, 3 then @parseZip() else @file.seek(@endPos) @processImageData() processImageData: -> switch @mode() when 1 then @combineGreyscaleChannel() when 3 then @combineRgbChannel() when 4 then @combineCmykChannel() @channelData = null
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
dcdec79219bb8b08f1d546a243320f799333a471
2,846
https://github.com/meltingice/psd.js/blob/dcdec79219bb8b08f1d546a243320f799333a471/lib/psd/image.coffee
57
82
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
a2cae2d804efae8776f8124dbc890c59acf15423
2,846
https://github.com/meltingice/psd.js/blob/a2cae2d804efae8776f8124dbc890c59acf15423/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
@calculateLength() @channelData = [] @pixelData = [] @opacity = 1.0 @hasMask = false @startPos = @file.tell() @endPos = @startPos + @length @setChannelsInfo() for attr in ['width', 'height', 'channels', 'depth', 'mode'] then do (attr) => @::[attr] = -> @header[attr] setChannelsI...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
a2cae2d804efae8776f8124dbc890c59acf15423
2,846
https://github.com/meltingice/psd.js/blob/a2cae2d804efae8776f8124dbc890c59acf15423/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:2:raw_corpus
raw_corpus
@channelLength = @length @length *= @channels() parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw() ...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
a2cae2d804efae8776f8124dbc890c59acf15423
2,846
https://github.com/meltingice/psd.js/blob/a2cae2d804efae8776f8124dbc890c59acf15423/lib/psd/image.coffee
51
80
meltingice/psd.js:lib/psd/image.coffee:2:completion
completion
@channelLength = @length @length *= @channels() parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: ->
switch @compression when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip() else @file.seek(@endPos) @processImageData() processImageData: -> switch @mode() when 1 then @combineGreyscaleChannel() when 3 then @combineRgbChannel() when 4 then @combi...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
a2cae2d804efae8776f8124dbc890c59acf15423
2,846
https://github.com/meltingice/psd.js/blob/a2cae2d804efae8776f8124dbc890c59acf15423/lib/psd/image.coffee
51
80
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
@channelData = [] @pixelData = [] @opacity = 1.0 @hasMask = false @startPos = @file.tell() @endPos = @startPos + @length @setChannelsInfo() for attr in ['width', 'height', 'channels', 'depth', 'mode'] then do (attr) => @::[attr] = -> @header[attr] setChannelsInfo: -> switch @mode...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:2:raw_corpus
raw_corpus
parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip(...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
51
78
meltingice/psd.js:lib/psd/image.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw() ...
({ parse: function() { var ref; this.compression = this.parseCompression(); if ((ref = this.compression) === 2 || ref === 3) { this.file.seek(this.endPos); return; } return this.parseImageData(); }, parseCompression: function() { return this.file.readShort(); }, parseImageD...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
51
78
meltingice/psd.js:lib/psd/image.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ parse: function() { var ref; this.compression = this.parseCompression(); if ((ref = this.compression) === 2 || ref === 3) { this.file.seek(this.endPos); return; } return this.parseImageData(); }, parseCompression: function()...
parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip(...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
51
78
meltingice/psd.js:lib/psd/image.coffee:2:completion
completion
parse: -> @compression = @parseCompression() if @compression in [2, 3] @file.seek @endPos return @parseImageData() parseCompression: -> @file.readShort() parseImageData: -> switch @compression
when 0 then @parseRaw() when 1 then @parseRLE() when 2, 3 then @parseZip() else @file.seek(@endPos) @processImageData() processImageData: -> switch @mode() when 1 then @combineGreyscaleChannel() when 3 then @combineRgbChannel() when 4 then @combineCmykChannel() @chan...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
111ea5a8d4e208b7de98d94d4f3cc0cce04d9140
2,846
https://github.com/meltingice/psd.js/blob/111ea5a8d4e208b7de98d94d4f3cc0cce04d9140/lib/psd/image.coffee
51
78
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
f92d255ce85a63a336aedf83424ffa13f756cbec
2,846
https://github.com/meltingice/psd.js/blob/f92d255ce85a63a336aedf83424ffa13f756cbec/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' Export = require './image_export.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB @includes ...
@channelData = [] @pixelData = [] @opacity = 1.0 @hasMask = false @startPos = @file.tell() @endPos = @startPos + @length @channelsInfo = [ {id: 0} {id: 1} {id: 2} ] @channelsInfo.push {id: -1} if @channels() is 4 for attr in ['width', 'height', 'channels', 'depth'...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
f92d255ce85a63a336aedf83424ffa13f756cbec
2,846
https://github.com/meltingice/psd.js/blob/f92d255ce85a63a336aedf83424ffa13f756cbec/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB COMPRESSIONS = [ 'Raw' 'RLE' 'ZIP' 'ZIPP...
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
{Module} = require 'coffeescript-module' ImageFormat = require './image_format.coffee' ImageMode = require './image_mode.coffee' module.exports = class Image extends Module @includes ImageFormat.RAW @includes ImageFormat.RLE @includes ImageMode.RGB COMPRESSIONS = [ 'Raw' 'RLE' 'ZIP' 'ZIPP...
@opacity = 1.0 @hasMask = false @startPos = @file.tell() @endPos = @startPos + @length @channelsInfo = [ {id: 0} {id: 1} {id: 2} ] @channelsInfo.push {id: -1} if @channels() is 4 for attr in ['width', 'height', 'channels', 'depth', 'mode'] then do (attr) => @::[attr] ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
4c8ab8d623693821bd73a31de24010c21bae7577
2,846
https://github.com/meltingice/psd.js/blob/4c8ab8d623693821bd73a31de24010c21bae7577/lib/psd/image.coffee
1
50
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
module.exports = class Image constructor: (@file, @header) -> @width = @header.width @height = @header.height parse: -> console.log "parse!"
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/image.coffee
1
7
meltingice/psd.js:lib/psd/image.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Image constructor: (@file, @header) -> @width = @header.width @height = @header.height parse: -> console.log "parse!" ```
var Image; module.exports = Image = class Image { constructor(file, header) { this.file = file; this.header = header; this.width = this.header.width; this.height = this.header.height; } parse() { return console.log("parse!"); } };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/image.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/image.coffee
1
7
meltingice/psd.js:lib/psd/image.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Image; module.exports = Image = class Image { constructor(file, header) { this.file = file; this.header = header; this.width = this.header.width; this.height = this.header.height; } parse() { return console.log("parse!"); } }; ```
module.exports = class Image constructor: (@file, @header) -> @width = @header.width @height = @header.height parse: -> console.log "parse!"
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/image.coffee
1
7
meltingice/psd.js:lib/psd/image.coffee:1:completion
completion
module.exports = class Image constructor: (@file, @header) -> @width = @header.width
@height = @header.height parse: -> console.log "parse!"
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd/image.coffee
1
7
meltingice/psd.js:lib/psd/image.coffee:1:raw_corpus
raw_corpus
module.exports = class Image constructor: (@file, @header) -> parse: ->
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/image.coffee
1
4
meltingice/psd.js:lib/psd/image.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Image constructor: (@file, @header) -> parse: -> ```
var Image; module.exports = Image = class Image { constructor(file, header) { this.file = file; this.header = header; } parse() {} };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/image.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/image.coffee
1
4
meltingice/psd.js:lib/psd/image.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Image; module.exports = Image = class Image { constructor(file, header) { this.file = file; this.header = header; } parse() {} }; ```
module.exports = class Image constructor: (@file, @header) -> parse: ->
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/image.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd/image.coffee
1
4
oozcitak/xmlbuilder-js:src/XMLDOMErrorHandler.coffee:1:raw_corpus
raw_corpus
# Represents the error handler for DOM operations module.exports = class XMLDOMErrorHandler # Initializes a new instance of `XMLDOMErrorHandler` # constructor: () -> # Called on the error handler when an error occurs. # # `error` the error message as a string handleError: (error) -> throw new Error...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDOMErrorHandler.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDOMErrorHandler.coffee
1
13
oozcitak/xmlbuilder-js:src/XMLDOMErrorHandler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents the error handler for DOM operations module.exports = class XMLDOMErrorHandler # Initializes a new instance of `XMLDOMErrorHandler` # constructor: () -> # Called on the error handler when an error occurs. # # `error` the error message ...
// Represents the error handler for DOM operations var XMLDOMErrorHandler; module.exports = XMLDOMErrorHandler = class XMLDOMErrorHandler { // Initializes a new instance of `XMLDOMErrorHandler` constructor() {} // Called on the error handler when an error occurs. // `error` the error message as a string h...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDOMErrorHandler.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDOMErrorHandler.coffee
1
13
oozcitak/xmlbuilder-js:src/XMLDOMErrorHandler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents the error handler for DOM operations var XMLDOMErrorHandler; module.exports = XMLDOMErrorHandler = class XMLDOMErrorHandler { // Initializes a new instance of `XMLDOMErrorHandler` constructor() {} // Called on the error handler when an error ...
# Represents the error handler for DOM operations module.exports = class XMLDOMErrorHandler # Initializes a new instance of `XMLDOMErrorHandler` # constructor: () -> # Called on the error handler when an error occurs. # # `error` the error message as a string handleError: (error) -> throw new Error...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDOMErrorHandler.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDOMErrorHandler.coffee
1
13
oozcitak/xmlbuilder-js:src/XMLDOMErrorHandler.coffee:1:completion
completion
# Represents the error handler for DOM operations module.exports = class XMLDOMErrorHandler # Initializes a new instance of `XMLDOMErrorHandler` #
constructor: () -> # Called on the error handler when an error occurs. # # `error` the error message as a string handleError: (error) -> throw new Error(error)
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDOMErrorHandler.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDOMErrorHandler.coffee
1
13
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') MeshbluFirehose = require('meshblu-core-firehose-socket.io') WebhookWorker = require('meshblu-core-worker-webhook') debug ...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') MeshbluFirehose = require('meshblu-core-firehose-socket.io') WebhookWorker = require('meshblu-core-worker-webhook') debug ...
tasks.push @meshbluFirehose.stop if @meshbluFirehose? tasks.push @dispatcherWorker.stop tasks.push @webhookWorker.stop if @webhookWorker? async.parallel tasks, callback prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare callback reportError: => debug '->reportError' @di...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:2:raw_corpus
raw_corpus
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback _isFirehoseEnabled: (options) => return false unless options.meshbluFirehose? return !options.mes...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
51
69
octoblu/meshblu:src/meshblu-core-runner.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback _isFirehoseEnabled: (options) => return fals...
var ref, ref1; this.emit('error', error(typeof error !== "undefined" && error !== null ? ((ref = this.webhookWorker) != null ? ref.start((error) => { if (error != null) { return this.emit('error', error); } }) : void 0, (ref1 = this.meshbluFirehose) != null ? ref1.run((error) => { if (error != null) { re...
CoffeeScript
JavaScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
51
69
octoblu/meshblu:src/meshblu-core-runner.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref, ref1; this.emit('error', error(typeof error !== "undefined" && error !== null ? ((ref = this.webhookWorker) != null ? ref.start((error) => { if (error != null) { return this.emit('error', error); } }) : void 0, (ref1 = this.meshbluFirehose) != nul...
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback _isFirehoseEnabled: (options) => return false unless options.meshbluFirehose? return !options.mes...
JavaScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
51
69
octoblu/meshblu:src/meshblu-core-runner.coffee:2:completion
completion
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback
_isFirehoseEnabled: (options) => return false unless options.meshbluFirehose? return !options.meshbluFirehose.disable _isWebhookWorkerEnabled: (options) => return false unless options.webhookWorker? return !options.webhookWorker.disable module.exports = MeshbluCoreRunner
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
e017c997642ef6e839c1a13aca1c5fc1d13d544c
815
https://github.com/octoblu/meshblu/blob/e017c997642ef6e839c1a13aca1c5fc1d13d544c/src/meshblu-core-runner.coffee
51
69
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') MeshbluFirehose = require('meshblu-core-firehose-socket.io') WebhookWorker = require('meshblu-core-worker-webhook') debug ...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') MeshbluFirehose = require('meshblu-core-firehose-socket.io') WebhookWorker = require('meshblu-core-worker-webhook') debug ...
tasks.push @meshbluFirehose.stop if @meshbluFirehose? tasks.push @dispatcherWorker.stop tasks.push @webhookWorker.stop if @webhookWorker? async.parallel tasks, callback prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare callback reportError: => debug '->reportError' @di...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:2:raw_corpus
raw_corpus
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
51
61
octoblu/meshblu:src/meshblu-core-runner.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner ```
var ref, ref1; this.emit('error', error(typeof error !== "undefined" && error !== null ? ((ref = this.webhookWorker) != null ? ref.start((error) => { if (error != null) { return this.emit('error', error); } }) : void 0, (ref1 = this.meshbluFirehose) != null ? ref1.run((error) => { if (error != null) { re...
CoffeeScript
JavaScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
51
61
octoblu/meshblu:src/meshblu-core-runner.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref, ref1; this.emit('error', error(typeof error !== "undefined" && error !== null ? ((ref = this.webhookWorker) != null ? ref.start((error) => { if (error != null) { return this.emit('error', error); } }) : void 0, (ref1 = this.meshbluFirehose) != nul...
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
JavaScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
51
61
octoblu/meshblu:src/meshblu-core-runner.coffee:2:completion
completion
@emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error?
@meshbluFirehose?.run (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
5a76f2f9acad116031a949560ca94c662a19daa0
815
https://github.com/octoblu/meshblu/blob/5a76f2f9acad116031a949560ca94c662a19daa0/src/meshblu-core-runner.coffee
51
61
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
969f88ab57718b1ca72957b7ac03a7a111467085
815
https://github.com/octoblu/meshblu/blob/969f88ab57718b1ca72957b7ac03a7a111467085/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
async.parallel tasks, callback prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare callback reportError: => debug '->reportError' @dispatcherWorker.reportError arguments... stop: (callback) => debug '->stop' tasks = [] tasks.push @meshbluHttp.stop tasks.push @disp...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
969f88ab57718b1ca72957b7ac03a7a111467085
815
https://github.com/octoblu/meshblu/blob/969f88ab57718b1ca72957b7ac03a7a111467085/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
next() @dispatcherWorker.stop (error) => throw error if error? tasks.push (next) => return next() unless @webhookWorker? @webhookWorker.stop (error) => next error async.parallel tasks, callback prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare call...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:2:raw_corpus
raw_corpus
run: (callback) => debug '->run' @dispatcherWorker.run (error) => @emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
51
62
octoblu/meshblu:src/meshblu-core-runner.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript run: (callback) => debug '->run' @dispatcherWorker.run (error) => @emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner ```
({ run: (callback) => { var ref; debug('->run'); this.dispatcherWorker.run((error) => { if (error != null) { return this.emit('error', error); } }); if ((ref = this.webhookWorker) != null) { ref.start((error) => { if (error != null) { return this.emit('e...
CoffeeScript
JavaScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
51
62
octoblu/meshblu:src/meshblu-core-runner.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ run: (callback) => { var ref; debug('->run'); this.dispatcherWorker.run((error) => { if (error != null) { return this.emit('error', error); } }); if ((ref = this.webhookWorker) != null) { ref.start((error) => { ...
run: (callback) => debug '->run' @dispatcherWorker.run (error) => @emit 'error', error if error? @webhookWorker?.start (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
JavaScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
51
62
octoblu/meshblu:src/meshblu-core-runner.coffee:2:completion
completion
run: (callback) => debug '->run' @dispatcherWorker.run (error) => @emit 'error', error if error?
@webhookWorker?.start (error) => @emit 'error', error if error? @meshbluHttp.run callback module.exports = MeshbluCoreRunner
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b6370eb935539673364fe86defbaf7d29a54b92e
815
https://github.com/octoblu/meshblu/blob/b6370eb935539673364fe86defbaf7d29a54b92e/src/meshblu-core-runner.coffee
51
62
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b343a9ff92141ff251625b9fe938f07df29bc227
815
https://github.com/octoblu/meshblu/blob/b343a9ff92141ff251625b9fe938f07df29bc227/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare(callback) reportError: => debug '->reportError' @dispatcherWorker.reportError arguments... stop: (callback) => debug '->stop' async.parallel [ @meshbluHttp.stop, @dispatcherWorker.stop @webhookWorker.stop ...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b343a9ff92141ff251625b9fe938f07df29bc227
815
https://github.com/octoblu/meshblu/blob/b343a9ff92141ff251625b9fe938f07df29bc227/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
7653c1e887e22c41f8a50eca746e62a5d89b30cd
815
https://github.com/octoblu/meshblu/blob/7653c1e887e22c41f8a50eca746e62a5d89b30cd/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare(callback) reportError: => debug '->reportError' @dispatcherWorker.reportError arguments... stop: (callback) => debug '->stop' async.parallel [ @meshbluHttp.stop, @dispatcherWorker.stop @webhookWorker.stop ...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
7653c1e887e22c41f8a50eca746e62a5d89b30cd
815
https://github.com/octoblu/meshblu/blob/7653c1e887e22c41f8a50eca746e62a5d89b30cd/src/meshblu-core-runner.coffee
1
50
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
bd44795428af16be6c55bfa93de67177a4d3d289
815
https://github.com/octoblu/meshblu/blob/bd44795428af16be6c55bfa93de67177a4d3d289/src/meshblu-core-runner.coffee
1
44
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') {EventEmitter} = require 'events' DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') cla...
debug '->prepare' @dispatcherWorker.prepare(callback) stop: (callback) => debug '->stop' async.series [ @meshbluHttp.stop, @dispatcherWorker.stop @webhookWorker.stop ], callback run: (callback) => debug '->run' @dispatcherWorker.run (error) => @emit 'error', error i...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
bd44795428af16be6c55bfa93de67177a4d3d289
815
https://github.com/octoblu/meshblu/blob/bd44795428af16be6c55bfa93de67177a4d3d289/src/meshblu-core-runner.coffee
1
44
octoblu/meshblu:src/meshblu-core-runner.coffee:1:raw_corpus
raw_corpus
async = require('async') DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') class MeshbluCoreRunner constructor: ...
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b060a8d154ae1979a69b30f8ed16ff6f29acc21f
815
https://github.com/octoblu/meshblu/blob/b060a8d154ae1979a69b30f8ed16ff6f29acc21f/src/meshblu-core-runner.coffee
1
41
octoblu/meshblu:src/meshblu-core-runner.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript async = require('async') DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshb...
var DispatcherWorker, MeshbluCoreRunner, MeshbluHttp, WebhookWorker, async, debug; async = require('async'); DispatcherWorker = require('meshblu-core-dispatcher'); MeshbluHttp = require('meshblu-core-protocol-adapter-http'); WebhookWorker = require('meshblu-core-worker-webhook'); debug = require('debug')('meshblu:...
CoffeeScript
JavaScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b060a8d154ae1979a69b30f8ed16ff6f29acc21f
815
https://github.com/octoblu/meshblu/blob/b060a8d154ae1979a69b30f8ed16ff6f29acc21f/src/meshblu-core-runner.coffee
1
41
octoblu/meshblu:src/meshblu-core-runner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var DispatcherWorker, MeshbluCoreRunner, MeshbluHttp, WebhookWorker, async, debug; async = require('async'); DispatcherWorker = require('meshblu-core-dispatcher'); MeshbluHttp = require('meshblu-core-protocol-adapter-http'); WebhookWorker = require('meshblu-cor...
async = require('async') DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') class MeshbluCoreRunner constructor: ...
JavaScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b060a8d154ae1979a69b30f8ed16ff6f29acc21f
815
https://github.com/octoblu/meshblu/blob/b060a8d154ae1979a69b30f8ed16ff6f29acc21f/src/meshblu-core-runner.coffee
1
41
octoblu/meshblu:src/meshblu-core-runner.coffee:1:completion
completion
async = require('async') DispatcherWorker = require('meshblu-core-dispatcher') MeshbluHttp = require('meshblu-core-protocol-adapter-http') WebhookWorker = require('meshblu-core-worker-webhook') debug = require('debug')('meshblu:meshblu-core-runner') class MeshbluCoreRunner constructor: ...
prepare: (callback) => debug '->prepare' @dispatcherWorker.prepare(callback) stop: (callback) => debug '->stop' async.series [ @meshbluHttp.stop, @dispatcherWorker.stop @webhookWorker.stop ], callback run: (callback) => debug '->run' async.parallel [ @meshbluHtt...
CoffeeScript
CoffeeScript
octoblu/meshblu
src/meshblu-core-runner.coffee
MIT
b060a8d154ae1979a69b30f8ed16ff6f29acc21f
815
https://github.com/octoblu/meshblu/blob/b060a8d154ae1979a69b30f8ed16ff6f29acc21f/src/meshblu-core-runner.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/cljfmt/index.coffee:1:raw_corpus
raw_corpus
"use strict" path = require('path') Beautifier = require('../beautifier') module.exports = class Cljfmt extends Beautifier name: "cljfmt" link: "https://github.com/snoe/node-cljfmt" options: { Clojure: false } beautify: (text, language, options) -> formatPath = path.resolve(__dirname, "fmt.edn") ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/cljfmt/index.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/cljfmt/index.coffee
1
22
Glavin001/atom-beautify:src/beautifiers/cljfmt/index.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" path = require('path') Beautifier = require('../beautifier') module.exports = class Cljfmt extends Beautifier name: "cljfmt" link: "https://github.com/snoe/node-cljfmt" options: { Clojure: false } beautify: (text, language, options)...
"use strict"; var Beautifier, Cljfmt, path; path = require('path'); Beautifier = require('../beautifier'); module.exports = Cljfmt = (function() { class Cljfmt extends Beautifier { beautify(text, language, options) { var cljfmt, formatPath; formatPath = path.resolve(__dirname, "fmt.edn"); clj...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/cljfmt/index.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/cljfmt/index.coffee
1
22
Glavin001/atom-beautify:src/beautifiers/cljfmt/index.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Cljfmt, path; path = require('path'); Beautifier = require('../beautifier'); module.exports = Cljfmt = (function() { class Cljfmt extends Beautifier { beautify(text, language, options) { var cljfmt, formatPath; for...
"use strict" path = require('path') Beautifier = require('../beautifier') module.exports = class Cljfmt extends Beautifier name: "cljfmt" link: "https://github.com/snoe/node-cljfmt" options: { Clojure: false } beautify: (text, language, options) -> formatPath = path.resolve(__dirname, "fmt.edn") ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/cljfmt/index.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/cljfmt/index.coffee
1
22
Glavin001/atom-beautify:src/beautifiers/cljfmt/index.coffee:1:completion
completion
"use strict" path = require('path') Beautifier = require('../beautifier') module.exports = class Cljfmt extends Beautifier name: "cljfmt" link: "https://github.com/snoe/node-cljfmt" options: { Clojure: false
} beautify: (text, language, options) -> formatPath = path.resolve(__dirname, "fmt.edn") cljfmt = path.resolve(__dirname, "..", "..", "..", "node_modules/.bin/cljfmt") @tempFile("input", text).then((filePath) => @run(cljfmt, [ filePath, "--edn=" + formatPath ]).then(=> ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/cljfmt/index.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/cljfmt/index.coffee
1
22
octoblu/meshblu:lib/MessageIOSocketHandler.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' debug = require('debug')('meshblu:message-io-socket-handler') class MessageIOSocketHandler initialize: (@socket) => @id = @socket.id @socket.on 'subscribe', @onSubscribe @socket.on 'unsubscribe', @onUnsubscribe onSubscribe: (data) => debug @socket.id, 'joining', data retu...
CoffeeScript
octoblu/meshblu
lib/MessageIOSocketHandler.coffee
MIT
9f0d16e1ef81885b49209576efb615dc89b21d52
815
https://github.com/octoblu/meshblu/blob/9f0d16e1ef81885b49209576efb615dc89b21d52/lib/MessageIOSocketHandler.coffee
1
20
octoblu/meshblu:lib/MessageIOSocketHandler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' debug = require('debug')('meshblu:message-io-socket-handler') class MessageIOSocketHandler initialize: (@socket) => @id = @socket.id @socket.on 'subscribe', @onSubscribe @socket.on 'unsubscribe', @onUnsubscribe onSubscribe:...
var MessageIOSocketHandler, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:message-io-socket-handler'); MessageIOSocketHandler = class MessageIOSocketHandler { constructor() { this.initialize = this.initialize.bind(this); this.onSubscribe = this.onSubscribe.bind(this); this.onUnsubs...
CoffeeScript
JavaScript
octoblu/meshblu
lib/MessageIOSocketHandler.coffee
MIT
9f0d16e1ef81885b49209576efb615dc89b21d52
815
https://github.com/octoblu/meshblu/blob/9f0d16e1ef81885b49209576efb615dc89b21d52/lib/MessageIOSocketHandler.coffee
1
20
octoblu/meshblu:lib/MessageIOSocketHandler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MessageIOSocketHandler, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:message-io-socket-handler'); MessageIOSocketHandler = class MessageIOSocketHandler { constructor() { this.initialize = this.initialize.bind(this); this.onSub...
_ = require 'lodash' debug = require('debug')('meshblu:message-io-socket-handler') class MessageIOSocketHandler initialize: (@socket) => @id = @socket.id @socket.on 'subscribe', @onSubscribe @socket.on 'unsubscribe', @onUnsubscribe onSubscribe: (data) => debug @socket.id, 'joining', data retu...
JavaScript
CoffeeScript
octoblu/meshblu
lib/MessageIOSocketHandler.coffee
MIT
9f0d16e1ef81885b49209576efb615dc89b21d52
815
https://github.com/octoblu/meshblu/blob/9f0d16e1ef81885b49209576efb615dc89b21d52/lib/MessageIOSocketHandler.coffee
1
20
octoblu/meshblu:lib/MessageIOSocketHandler.coffee:1:completion
completion
_ = require 'lodash' debug = require('debug')('meshblu:message-io-socket-handler') class MessageIOSocketHandler initialize: (@socket) => @id = @socket.id @socket.on 'subscribe', @onSubscribe @socket.on 'unsubscribe', @onUnsubscribe
onSubscribe: (data) => debug @socket.id, 'joining', data return if _.contains @socket.rooms, data @socket.join data onUnsubscribe: (data) => debug @socket.id, 'leaving', data @socket.leave data module.exports = MessageIOSocketHandler
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/MessageIOSocketHandler.coffee
MIT
9f0d16e1ef81885b49209576efb615dc89b21d52
815
https://github.com/octoblu/meshblu/blob/9f0d16e1ef81885b49209576efb615dc89b21d52/lib/MessageIOSocketHandler.coffee
1
20
linemanjs/lineman:lib/cli/main.coffee:1:raw_corpus
raw_corpus
module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman project in the specified folder : lineman new my-project"). ...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
14
63
linemanjs/lineman:lib/cli/main.coffee:1:completion
completion
module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman project in the specified folder : lineman new my-project"). ...
command("build"). description(" - compiles all assets into a production ready form in the /dist folder"). action -> cli.tasks = if commander.skipClean ["common", "dist"] else ["clean", "common", "dist"] invokeGrunt(name: "build", chainable: true) commander. command("spec...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
14
63
linemanjs/lineman:lib/cli/main.coffee:2:raw_corpus
raw_corpus
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _.isString(@args[0]) then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command("...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _.isString(@args[0]) then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPr...
description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _.isString(this.args[0]) ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process); return console.log(prettyPrintsValue.prettyPrint(valu...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _.isString(this.args[0]) ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process); ...
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _.isString(@args[0]) then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command("...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:completion
completion
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _.isString(@args[0]) then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command("...
options: gruntfile: "#{__dirname}/../../Gruntfile.coffee" commander. command('fetch'). description("Fetch a library and add it to your Lineman project"). action -> recipes = _.filter(@args, _.isString) recipeRepo = buildsAppConfig.withUserOverrides().application.fetcher?.recipeRepo ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:3:raw_corpus
raw_corpus
invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable grunt.cli(config.options || {}, done)
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable grunt.cli(config.options || {}, done) ```
var invokeGrunt; invokeGrunt = function(config = {}) { var done; if (config.chainable) { done = new RunsNextCommand(commander, config.name).run; } return grunt.cli(config.options || {}, done); };
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var invokeGrunt; invokeGrunt = function(config = {}) { var done; if (config.chainable) { done = new RunsNextCommand(commander, config.name).run; } return grunt.cli(config.options || {}, done); }; ```
invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable grunt.cli(config.options || {}, done)
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:3:raw_corpus
raw_corpus
invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable? grunt.cli(config.options || {}, done)
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable? grunt.cli(config.options || {}, done) ```
var invokeGrunt; invokeGrunt = function(config = {}) { var done; if (config.chainable != null) { done = new RunsNextCommand(commander, config.name).run; } return grunt.cli(config.options || {}, done); };
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var invokeGrunt; invokeGrunt = function(config = {}) { var done; if (config.chainable != null) { done = new RunsNextCommand(commander, config.name).run; } return grunt.cli(config.options || {}, done); }; ```
invokeGrunt = (config = {}) -> done = new RunsNextCommand(commander, config.name).run if config.chainable? grunt.cli(config.options || {}, done)
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/main.coffee
105
107
linemanjs/lineman:lib/cli/main.coffee:2:raw_corpus
raw_corpus
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(pretty...
description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process); return console.log(prettyPrintsValue.prettyPrint(va...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process)...
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:completion
completion
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
options: gruntfile: "#{__dirname}/../../Gruntfile.coffee" commander. command('fetch'). description("Fetch a library and add it to your Lineman project"). action -> recipes = _(@args).filter(_.isString) recipeRepo = buildsAppConfig.withUserOverrides().application.fetcher?.recipeRepo ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/main.coffee
64
103
linemanjs/lineman:lib/cli/main.coffee:2:raw_corpus
raw_corpus
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/main.coffee
63
100
linemanjs/lineman:lib/cli/main.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(pretty...
description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process); return console.log(prettyPrintsValue.prettyPrint(va...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/main.coffee
63
100
linemanjs/lineman:lib/cli/main.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process)...
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/main.coffee
63
100
linemanjs/lineman:lib/cli/main.coffee:2:completion
completion
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
invokeGrunt options: gruntfile: "#{__dirname}/../../Gruntfile.coffee" commander. command('fetch'). description("Fetch a library and add it to your Lineman project"). action -> recipes = _(@args).filter(_.isString) require('./lineman-fetch')(recipes) process.argv[2] = "h...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/main.coffee
63
100
linemanjs/lineman:lib/cli/main.coffee:1:raw_corpus
raw_corpus
module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman project in the specified folder : lineman new my-project"). ...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
13
62
linemanjs/lineman:lib/cli/main.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman proje...
module.exports = function() { require("./setup-env")(); commander.version(packageJson.version); require("./setup-options")(commander, cli); require("./ensure-appropriate-version")(); commander.command("new").description(" - generates a new lineman project in the specified folder : lineman new my-project").act...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
13
62
linemanjs/lineman:lib/cli/main.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function() { require("./setup-env")(); commander.version(packageJson.version); require("./setup-options")(commander, cli); require("./ensure-appropriate-version")(); commander.command("new").description(" - generates a new lineman project...
module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman project in the specified folder : lineman new my-project"). ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
13
62
linemanjs/lineman:lib/cli/main.coffee:1:completion
completion
module.exports = -> require("./setup-env")() commander.version(packageJson.version) require("./setup-options")(commander, cli) require("./ensure-appropriate-version")() commander. command("new"). description(" - generates a new lineman project in the specified folder : lineman new my-project"). ...
command("build"). description(" - compiles all assets into a production ready form in the /dist folder"). action -> process.env["LINEMAN_ENV"] = "production" cli.tasks = if commander.skipClean ["common", "dist"] else ["clean", "common", "dist"] invokeGrunt(name: "build", ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
13
62
linemanjs/lineman:lib/cli/main.coffee:2:raw_corpus
raw_corpus
commander. command("config"). description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyP...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
63
103
linemanjs/lineman:lib/cli/main.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript commander. command("config"). description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, comma...
commander.command("config").description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configPropertyPath, commander.process); return console.log(pret...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
63
103
linemanjs/lineman:lib/cli/main.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript commander.command("config").description(" - get a value from lineman's configuration").action(function() { var configPropertyPath, value; configPropertyPath = _(this.args[0]).isString() ? this.args[0] : void 0; value = new ReadsConfiguration().read(configProp...
commander. command("config"). description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyP...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
63
103
linemanjs/lineman:lib/cli/main.coffee:2:completion
completion
commander. command("config"). description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyP...
cli.tasks = _(arguments).chain().toArray().initial().without("grunt").value() invokeGrunt options: gruntfile: "#{__dirname}/../../Gruntfile.coffee" commander. command('fetch'). description("Fetch a library and add it to your Lineman project"). action -> recipes = _(@args).fi...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
ea05b888a17c56fbe28a880f4f275538cb82d420
1,168
https://github.com/linemanjs/lineman/blob/ea05b888a17c56fbe28a880f4f275538cb82d420/lib/cli/main.coffee
63
103
linemanjs/lineman:lib/cli/main.coffee:2:raw_corpus
raw_corpus
description(" - get a value from lineman's configuration"). action -> configPropertyPath = if _(@args[0]).isString() then @args[0] else undefined value = new ReadsConfiguration().read(configPropertyPath, commander.process) console.log(prettyPrintsValue.prettyPrint(value)) commander. command...
CoffeeScript
linemanjs/lineman
lib/cli/main.coffee
MIT
1b4ccf7807d87486224883078b53ffb4d4c11776
1,168
https://github.com/linemanjs/lineman/blob/1b4ccf7807d87486224883078b53ffb4d4c11776/lib/cli/main.coffee
63
110