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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super pa... | var NodeType, XMLComment, XMLNode;
XMLNode = require('./XMLNode');
NodeType = require('./NodeType');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
super(parent);... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | c82ecdf27a636f7a0d2882fd51560d99211b0037 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/c82ecdf27a636f7a0d2882fd51560d99211b0037/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var NodeType, XMLComment, XMLNode;
XMLNode = require('./XMLNode');
NodeType = require('./NodeType');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` commen... | XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing com... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | c82ecdf27a636f7a0d2882fd51560d99211b0037 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/c82ecdf27a636f7a0d2882fd51560d99211b0037/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:completion | completion | XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing com... | @type = NodeType.Comment
@value = @stringify.comment text
# Creates and returns a deep clone of `this`
clone: () ->
Object.create @
# Converts the XML fragment to string
#
# `options.pretty` pretty prints the result
# `options.indent` indentation for pretty print
# `options.offset` how many in... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | c82ecdf27a636f7a0d2882fd51560d99211b0037 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/c82ecdf27a636f7a0d2882fd51560d99211b0037/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:raw_corpus | raw_corpus | XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing com... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | d8de14769590b262e56b467df05db50855a0ad24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLComment.coffee | 1 | 33 | ||
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super pa... | var NodeType, XMLComment, XMLNode;
XMLNode = require('./XMLNode');
NodeType = require('./NodeType');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
super(parent);... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | d8de14769590b262e56b467df05db50855a0ad24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var NodeType, XMLComment, XMLNode;
XMLNode = require('./XMLNode');
NodeType = require('./NodeType');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` commen... | XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing com... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | d8de14769590b262e56b467df05db50855a0ad24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:completion | completion | XMLNode = require './XMLNode'
NodeType = require './NodeType'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing com... | @type = NodeType.Comment
@text = @stringify.comment text
# Creates and returns a deep clone of `this`
clone: () ->
Object.create @
# Converts the XML fragment to string
#
# `options.pretty` pretty prints the result
# `options.indent` indentation for pretty print
# `options.offset` how many ind... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | d8de14769590b262e56b467df05db50855a0ad24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d8de14769590b262e56b467df05db50855a0ad24/src/XMLComment.coffee | 1 | 33 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:raw_corpus | raw_corpus | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo()
... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | b6c2503daa774b02579fb8c98c31877ea24861a1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLComment.coffee | 1 | 31 | ||
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
thr... | var XMLComment, XMLNode;
XMLNode = require('./XMLNode');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
super(parent);
if (text == null) {
throw new Erro... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | b6c2503daa774b02579fb8c98c31877ea24861a1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLComment.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var XMLComment, XMLNode;
XMLNode = require('./XMLNode');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
supe... | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo()
... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | b6c2503daa774b02579fb8c98c31877ea24861a1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLComment.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:completion | completion | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo() | @text = @stringify.comment text
# Creates and returns a deep clone of `this`
clone: () ->
Object.create @
# Converts the XML fragment to string
#
# `options.pretty` pretty prints the result
# `options.indent` indentation for pretty print
# `options.offset` how many indentations to add to every lin... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | b6c2503daa774b02579fb8c98c31877ea24861a1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLComment.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:raw_corpus | raw_corpus | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo()
... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | f066a3151d269e738ea37d87e5bf2470ef948b24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLComment.coffee | 1 | 31 | ||
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
thr... | var XMLComment, XMLNode;
XMLNode = require('./XMLNode');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
super(parent);
if (text == null) {
throw new Erro... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | f066a3151d269e738ea37d87e5bf2470ef948b24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLComment.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var XMLComment, XMLNode;
XMLNode = require('./XMLNode');
// Represents a comment node
module.exports = XMLComment = class XMLComment extends XMLNode {
// Initializes a new instance of `XMLComment`
// `text` comment text
constructor(parent, text) {
supe... | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo()
... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | f066a3151d269e738ea37d87e5bf2470ef948b24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLComment.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:src/XMLComment.coffee:1:completion | completion | XMLNode = require './XMLNode'
# Represents a comment node
module.exports = class XMLComment extends XMLNode
# Initializes a new instance of `XMLComment`
#
# `text` comment text
constructor: (parent, text) ->
super parent
if not text?
throw new Error "Missing comment text. " + @debugInfo() | @text = @stringify.comment text
# Creates and returns a deep clone of `this`
clone: () ->
Object.create @
# Converts the XML fragment to string
#
# `options.pretty` pretty prints the result
# `options.indent` indentation for pretty print
# `options.offset` how many indentations to add to every lin... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLComment.coffee | MIT | f066a3151d269e738ea37d87e5bf2470ef948b24 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLComment.coffee | 1 | 31 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/export.coffee | 1 | 50 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 31a2c6e68b60d5a043db3f568521dc36c2522d23 | 493 | https://github.com/discolabs/cartjs/blob/31a2c6e68b60d5a043db3f568521dc36c2522d23/src/export.coffee | 1 | 50 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 31a2c6e68b60d5a043db3f568521dc36c2522d23 | 493 | https://github.com/discolabs/cartjs/blob/31a2c6e68b60d5a043db3f568521dc36c2522d23/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 31a2c6e68b60d5a043db3f568521dc36c2522d23 | 493 | https://github.com/discolabs/cartjs/blob/31a2c6e68b60d5a043db3f568521dc36c2522d23/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS.Core.getNote
exports.setNote = Ca... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 31a2c6e68b60d5a043db3f568521dc36c2522d23 | 493 | https://github.com/discolabs/cartjs/blob/31a2c6e68b60d5a043db3f568521dc36c2522d23/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4be0092aa64a9c701af074fab1873e2d0e3244b7 | 493 | https://github.com/discolabs/cartjs/blob/4be0092aa64a9c701af074fab1873e2d0e3244b7/src/export.coffee | 1 | 50 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 4be0092aa64a9c701af074fab1873e2d0e3244b7 | 493 | https://github.com/discolabs/cartjs/blob/4be0092aa64a9c701af074fab1873e2d0e3244b7/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4be0092aa64a9c701af074fab1873e2d0e3244b7 | 493 | https://github.com/discolabs/cartjs/blob/4be0092aa64a9c701af074fab1873e2d0e3244b7/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS.Core.getNote
exports.setNote = Ca... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4be0092aa64a9c701af074fab1873e2d0e3244b7 | 493 | https://github.com/discolabs/cartjs/blob/4be0092aa64a9c701af074fab1873e2d0e3244b7/src/export.coffee | 1 | 50 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9 | 493 | https://github.com/discolabs/cartjs/blob/c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9/src/export.coffee | 1 | 49 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9 | 493 | https://github.com/discolabs/cartjs/blob/c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9 | 493 | https://github.com/discolabs/cartjs/blob/c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS.Core.getNote
exports.setNote = Ca... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9 | 493 | https://github.com/discolabs/cartjs/blob/c3f3eafddb171833063e4c6a3ca8a0bbad2c41c9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | a4faf3c33ed18cb11587c16ab937cf7af36cb3d7 | 493 | https://github.com/discolabs/cartjs/blob/a4faf3c33ed18cb11587c16ab937cf7af36cb3d7/src/export.coffee | 1 | 46 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | a4faf3c33ed18cb11587c16ab937cf7af36cb3d7 | 493 | https://github.com/discolabs/cartjs/blob/a4faf3c33ed18cb11587c16ab937cf7af36cb3d7/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | a4faf3c33ed18cb11587c16ab937cf7af36cb3d7 | 493 | https://github.com/discolabs/cartjs/blob/a4faf3c33ed18cb11587c16ab937cf7af36cb3d7/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | a4faf3c33ed18cb11587c16ab937cf7af36cb3d7 | 493 | https://github.com/discolabs/cartjs/blob/a4faf3c33ed18cb11587c16ab937cf7af36cb3d7/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4e8330da9f70c1cb5a2af50e2e0982144db31538 | 493 | https://github.com/discolabs/cartjs/blob/4e8330da9f70c1cb5a2af50e2e0982144db31538/src/export.coffee | 1 | 47 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 4e8330da9f70c1cb5a2af50e2e0982144db31538 | 493 | https://github.com/discolabs/cartjs/blob/4e8330da9f70c1cb5a2af50e2e0982144db31538/src/export.coffee | 1 | 47 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4e8330da9f70c1cb5a2af50e2e0982144db31538 | 493 | https://github.com/discolabs/cartjs/blob/4e8330da9f70c1cb5a2af50e2e0982144db31538/src/export.coffee | 1 | 47 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.removeAll = CartJS.Core.removeAll
exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Cor... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 4e8330da9f70c1cb5a2af50e2e0982144db31538 | 493 | https://github.com/discolabs/cartjs/blob/4e8330da9f70c1cb5a2af50e2e0982144db31538/src/export.coffee | 1 | 47 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 76626679641bc4755942f4619dae08b3cee96a4d | 493 | https://github.com/discolabs/cartjs/blob/76626679641bc4755942f4619dae08b3cee96a4d/src/export.coffee | 1 | 46 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export i... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
// Export initialisation and configuration.
exports.i... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 76626679641bc4755942f4619dae08b3cee96a4d | 493 | https://github.com/discolabs/cartjs/blob/76626679641bc4755942f4619dae08b3cee96a4d/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS (Don't export; only for testing.)
... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 76626679641bc4755942f4619dae08b3cee96a4d | 493 | https://github.com/discolabs/cartjs/blob/76626679641bc4755942f4619dae08b3cee96a4d/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS (Don't export; only for testing.)
# Export initialisation and configuration.
exports.init = CartJS.... | exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 76626679641bc4755942f4619dae08b3cee96a4d | 493 | https://github.com/discolabs/cartjs/blob/76626679641bc4755942f4619dae08b3cee96a4d/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 32c677302706343a99d297fd14634dfa6fbb8506 | 493 | https://github.com/discolabs/cartjs/blob/32c677302706343a99d297fd14634dfa6fbb8506/src/export.coffee | 1 | 46 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS
// Export initialisation and configuration.
exports.init = CartJS.init;
exports.confi... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 32c677302706343a99d297fd14634dfa6fbb8506 | 493 | https://github.com/discolabs/cartjs/blob/32c677302706343a99d297fd14634dfa6fbb8506/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS
// Export initialisation and confi... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 32c677302706343a99d297fd14634dfa6fbb8506 | 493 | https://github.com/discolabs/cartjs/blob/32c677302706343a99d297fd14634dfa6fbb8506/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 32c677302706343a99d297fd14634dfa6fbb8506 | 493 | https://github.com/discolabs/cartjs/blob/32c677302706343a99d297fd14634dfa6fbb8506/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 44f8a1cf4ed261a0860f06b8b38e264098e4efb9 | 493 | https://github.com/discolabs/cartjs/blob/44f8a1cf4ed261a0860f06b8b38e264098e4efb9/src/export.coffee | 1 | 46 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS
// Export initialisation and configuration.
exports.init = CartJS.init;
exports.confi... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 44f8a1cf4ed261a0860f06b8b38e264098e4efb9 | 493 | https://github.com/discolabs/cartjs/blob/44f8a1cf4ed261a0860f06b8b38e264098e4efb9/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
// exports._ = CartJS
// Export initialisation and confi... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 44f8a1cf4ed261a0860f06b8b38e264098e4efb9 | 493 | https://github.com/discolabs/cartjs/blob/44f8a1cf4ed261a0860f06b8b38e264098e4efb9/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
# exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.... | exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 44f8a1cf4ed261a0860f06b8b38e264098e4efb9 | 493 | https://github.com/discolabs/cartjs/blob/44f8a1cf4ed261a0860f06b8b38e264098e4efb9/src/export.coffee | 1 | 46 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | deb7f2f9f0b533183c1011d1fe09a40dd4dc410d | 493 | https://github.com/discolabs/cartjs/blob/deb7f2f9f0b533183c1011d1fe09a40dd4dc410d/src/export.coffee | 1 | 42 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
e... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS;
// Export initialisation and configuration.
exports.init = CartJS.init;
exports.configur... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | deb7f2f9f0b533183c1011d1fe09a40dd4dc410d | 493 | https://github.com/discolabs/cartjs/blob/deb7f2f9f0b533183c1011d1fe09a40dd4dc410d/src/export.coffee | 1 | 42 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS;
// Export initialisation and configur... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | deb7f2f9f0b533183c1011d1fe09a40dd4dc410d | 493 | https://github.com/discolabs/cartjs/blob/deb7f2f9f0b533183c1011d1fe09a40dd4dc410d/src/export.coffee | 1 | 42 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.clearAttributes = CartJS.Core.clearAttributes
exports.getNote = CartJS.Core.getNote
exports.setNote = Ca... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | deb7f2f9f0b533183c1011d1fe09a40dd4dc410d | 493 | https://github.com/discolabs/cartjs/blob/deb7f2f9f0b533183c1011d1fe09a40dd4dc410d/src/export.coffee | 1 | 42 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/export.coffee | 1 | 35 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
e... | // Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS;
// Export initialisation and configuration.
exports.init = CartJS.init;
exports.configur... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/export.coffee | 1 | 35 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the CartJS module.
// -------------------------
// CartJS module factory.
CartJS.factory = function(exports) {
// Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS;
// Export initialisation and configur... | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/export.coffee | 1 | 35 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the CartJS module.
# -------------------------
# CartJS module factory.
CartJS.factory = (exports) ->
# Exposes the full CartJS namespace. This is mainly used for isolated testing.
exports._ = CartJS
# Export initialisation and configuration.
exports.init = CartJS.init
exports.configure = CartJS.co... | exports.removeItem = CartJS.Core.removeItem
exports.clear = CartJS.Core.clear
exports.getAttribute = CartJS.Core.getAttribute
exports.setAttribute = CartJS.Core.setAttribute
exports.getAttributes = CartJS.Core.getAttributes
exports.setAttributes = CartJS.Core.setAttributes
exports.getNote = CartJS.Core.getN... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/export.coffee | 1 | 35 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | d848db3917551fe1d95aa75a906010b206efc0e9 | 493 | https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/export.coffee | 1 | 49 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Car... | // Export the Cart module.
// -----------------------
// Cart.js module factory.
Cart.factory = function(exports) {
// Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart;
// Exposes the settings object.
exports.settings = Cart.settings;
// Merges an object literal ont... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | d848db3917551fe1d95aa75a906010b206efc0e9 | 493 | https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the Cart module.
// -----------------------
// Cart.js module factory.
Cart.factory = function(exports) {
// Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart;
// Exposes the settings object.
exports.sett... | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | d848db3917551fe1d95aa75a906010b206efc0e9 | 493 | https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | exports.commit = commit;
# Item manipulation methods.
exports.addItem = addItem
exports.removeItem = removeItem
exports.updateItem = updateItem
exports.clearItems = clearItems
# Attribute methods.
exports.getAttribute = getAttribute
exports.setAttribute = setAttribute
exports.getAttributes = getAttr... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | d848db3917551fe1d95aa75a906010b206efc0e9 | 493 | https://github.com/discolabs/cartjs/blob/d848db3917551fe1d95aa75a906010b206efc0e9/src/export.coffee | 1 | 49 |
discolabs/cartjs:src/export.coffee:1:raw_corpus | raw_corpus | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 405adbcf3257d4584ade700660fc6eef5c97692b | 493 | https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/export.coffee | 1 | 47 | ||
discolabs/cartjs:src/export.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Car... | // Export the Cart module.
// -----------------------
// Cart.js module factory.
Cart.factory = function(exports) {
// Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart;
// Exposes the settings object.
exports.settings = Cart.settings;
// Merges an object literal ont... | CoffeeScript | JavaScript | discolabs/cartjs | src/export.coffee | MIT | 405adbcf3257d4584ade700660fc6eef5c97692b | 493 | https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/export.coffee | 1 | 47 |
discolabs/cartjs:src/export.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Export the Cart module.
// -----------------------
// Cart.js module factory.
Cart.factory = function(exports) {
// Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart;
// Exposes the settings object.
exports.sett... | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | JavaScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 405adbcf3257d4584ade700660fc6eef5c97692b | 493 | https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/export.coffee | 1 | 47 |
discolabs/cartjs:src/export.coffee:1:completion | completion | # Export the Cart module.
# -----------------------
# Cart.js module factory.
Cart.factory = (exports) ->
# Exposes the full Cart namespace. This is mainly used for isolated testing.
exports._ = Cart
# Exposes the settings object.
exports.settings = Cart.settings
# Merges an object literal onto the setting... | # General methods.
exports.commit = Cart.commit;
# Item manipulation methods.
exports.addItem = Cart.addItem
exports.removeItem = Cart.removeItem
exports.updateItem = Cart.updateItem
exports.clearItems = Cart.clearItems
# Attribute methods.
exports.getAttribute = Cart.getAttribute
exports.setAttribu... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/export.coffee | MIT | 405adbcf3257d4584ade700660fc6eef5c97692b | 493 | https://github.com/discolabs/cartjs/blob/405adbcf3257d4584ade700660fc6eef5c97692b/src/export.coffee | 1 | 47 |
AriaMinaei/pretty-error:test/pretty-error.coffee:2:raw_corpus | raw_corpus | error = (what) ->
if typeof what is 'string'
return error -> throw Error what
else if what instanceof Function
try
do what
catch e
return e
throw Error "bad argument for error"
PrettyError = mod 'pretty-error'
describe "constructor()"
it "should work", ->
new PrettyError
describe "getObject"
it "... | CoffeeScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 6 | 55 | ||
AriaMinaei/pretty-error:test/pretty-error.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
error = (what) ->
if typeof what is 'string'
return error -> throw Error what
else if what instanceof Function
try
do what
catch e
return e
throw Error "bad argument for error"
PrettyError = mod 'pretty-error'
describe "constructor()"
it "shou... | var PrettyError, error;
error = function(what) {
var e;
if (typeof what === 'string') {
return error(function() {
throw Error(what);
});
} else if (what instanceof Function) {
try {
what();
} catch (error1) {
e = error1;
return e;
}
}
throw Error("bad argument for ... | CoffeeScript | JavaScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 6 | 55 |
AriaMinaei/pretty-error:test/pretty-error.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PrettyError, error;
error = function(what) {
var e;
if (typeof what === 'string') {
return error(function() {
throw Error(what);
});
} else if (what instanceof Function) {
try {
what();
} catch (error1) {
e = error1;
... | error = (what) ->
if typeof what is 'string'
return error -> throw Error what
else if what instanceof Function
try
do what
catch e
return e
throw Error "bad argument for error"
PrettyError = mod 'pretty-error'
describe "constructor()"
it "should work", ->
new PrettyError
describe "getObject"
it "... | JavaScript | CoffeeScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 6 | 55 |
AriaMinaei/pretty-error:test/pretty-error.coffee:2:completion | completion | error = (what) ->
if typeof what is 'string'
return error -> throw Error what
else if what instanceof Function
try
do what
catch e
return e
throw Error "bad argument for error"
PrettyError = mod 'pretty-error'
describe "constructor()"
it "should work", ->
new PrettyError
describe "getObject"
it "... | describe "style"
it "should, by default, return the contents in prettyError/defaultStyle", ->
p = new PrettyError
defaultStyle = mod 'default-style'
p.style.should.be.like defaultStyle()
it "should return different contents after appending some styles", ->
p = new PrettyError
p.appendStyle 'some selector': 'disp... | CoffeeScript | CoffeeScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 6 | 55 |
AriaMinaei/pretty-error:test/pretty-error.coffee:3:raw_corpus | raw_corpus | e3 = "Plain error message"
console.log p.render e3, no
e4 =
message: "Custom error message"
kind: "Custom Error"
console.log p.render e4, no
e5 =
message: "Error with custom stack"
stack: ['line one', 'line two']
wrapper: 'UnhandledRejection'
console.log p.render e5, no
e6 = error -> PrettyError.so... | CoffeeScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 56 | 91 | ||
AriaMinaei/pretty-error:test/pretty-error.coffee:3:completion | completion | e3 = "Plain error message"
console.log p.render e3, no
e4 =
message: "Custom error message"
kind: "Custom Error"
console.log p.render e4, no
e5 =
message: "Error with custom stack"
stack: ['line one', 'line two']
wrapper: 'UnhandledRejection'
console.log p.render e5, no
e6 = error -> PrettyError.so... | console.log p.render e6, no
describe "start()"
it "throws unformatted error when not started", ->
try
throw new Error "foo bar"
catch exc
expect(isFormatted exc).to.be.false
it "throws formatted the error", ->
PrettyError.start()
try
throw new Error "foo bar"
catch exc
expect(isFormatted exc).to.be.true | CoffeeScript | CoffeeScript | AriaMinaei/pretty-error | test/pretty-error.coffee | MIT | 802927b6b05dbc95684e9ca0f3f346f52827ff56 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/802927b6b05dbc95684e9ca0f3f346f52827ff56/test/pretty-error.coffee | 56 | 91 |
jianliaoim/talk-os:talk-api2x/server/controllers/activity.coffee:1:raw_corpus | raw_corpus | Promise = require 'bluebird'
Err = require 'err1st'
_ = require 'lodash'
limbo = require 'limbo'
util = require '../util'
app = require '../server'
{
ActivityModel
} = limbo.use 'talk'
module.exports = activityController = app.controller 'activity', ->
@mixin require './mixins/permission'
@ensure '_teamId', ... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/activity.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/activity.coffee | 1 | 32 | ||
jianliaoim/talk-os:talk-api2x/server/controllers/activity.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Promise = require 'bluebird'
Err = require 'err1st'
_ = require 'lodash'
limbo = require 'limbo'
util = require '../util'
app = require '../server'
{
ActivityModel
} = limbo.use 'talk'
module.exports = activityController = app.controller 'activity', ->
@m... | var ActivityModel, Err, Promise, _, activityController, app, limbo, util;
Promise = require('bluebird');
Err = require('err1st');
_ = require('lodash');
limbo = require('limbo');
util = require('../util');
app = require('../server');
({ActivityModel} = limbo.use('talk'));
module.exports = activityController = a... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/controllers/activity.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/activity.coffee | 1 | 32 |
jianliaoim/talk-os:talk-api2x/server/controllers/activity.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ActivityModel, Err, Promise, _, activityController, app, limbo, util;
Promise = require('bluebird');
Err = require('err1st');
_ = require('lodash');
limbo = require('limbo');
util = require('../util');
app = require('../server');
({ActivityModel} = limbo... | Promise = require 'bluebird'
Err = require 'err1st'
_ = require 'lodash'
limbo = require 'limbo'
util = require '../util'
app = require '../server'
{
ActivityModel
} = limbo.use 'talk'
module.exports = activityController = app.controller 'activity', ->
@mixin require './mixins/permission'
@ensure '_teamId', ... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/activity.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/activity.coffee | 1 | 32 |
jianliaoim/talk-os:talk-api2x/server/controllers/activity.coffee:1:completion | completion | Promise = require 'bluebird'
Err = require 'err1st'
_ = require 'lodash'
limbo = require 'limbo'
util = require '../util'
app = require '../server'
{
ActivityModel
} = limbo.use 'talk'
module.exports = activityController = app.controller 'activity', ->
@mixin require './mixins/permission' | @ensure '_teamId', only: 'read'
@before 'isTeamMember', only: 'read'
@before 'deletableActivity', only: 'remove'
@action 'read', (req, res, callback) ->
options = _.assign {}, req.get(),
team: req.get('_teamId')
user: req.get('_sessionUserId')
ActivityModel.findByOptions options, callback
... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/activity.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/activity.coffee | 1 | 32 |
Atraci/Atraci:coffee/_player.coffee:1:raw_corpus | raw_corpus | PlayNext = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i < __playerTracklist.length - 1
t = __playerTracklist[i+1]
... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 26 | 38 | ||
Atraci/Atraci:coffee/_player.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
PlayNext = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i < __playerTracklist.length - 1... | var PlayNext;
PlayNext = function(artist, title, success) {
return $.each(__playerTracklist, function(i, track) {
var t;
if (track.artist === artist && track.title === title) {
$('#ContentWrapper .track-container').removeClass('playing');
if (i < __playerTracklist.length - 1) {
t = __play... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 26 | 38 |
Atraci/Atraci:coffee/_player.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PlayNext;
PlayNext = function(artist, title, success) {
return $.each(__playerTracklist, function(i, track) {
var t;
if (track.artist === artist && track.title === title) {
$('#ContentWrapper .track-container').removeClass('playing');
if ... | PlayNext = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i < __playerTracklist.length - 1
t = __playerTracklist[i+1]
... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 26 | 38 |
Atraci/Atraci:coffee/_player.coffee:1:completion | completion | PlayNext = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i < __playerTracklist.length - 1
t = __playerTracklist[i+1] | $('#ContentWrapper .track-container').eq(i+1).addClass('playing');
else
t = __playerTracklist[0]
$('#ContentWrapper .track-container').eq(0).addClass('playing');
PlayTrack(t.artist, t.title, t.cover_url_medium, t.cover_url_large) | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 26 | 38 |
Atraci/Atraci:coffee/_player.coffee:2:raw_corpus | raw_corpus | PlayPrevious = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i == 0
t = __playerTracklist[0]
$('#ContentWrapper .t... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 40 | 52 | ||
Atraci/Atraci:coffee/_player.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
PlayPrevious = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i == 0
t = _... | var PlayPrevious;
PlayPrevious = function(artist, title, success) {
return $.each(__playerTracklist, function(i, track) {
var t;
if (track.artist === artist && track.title === title) {
$('#ContentWrapper .track-container').removeClass('playing');
if (i === 0) {
t = __playerTracklist[0];
... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 40 | 52 |
Atraci/Atraci:coffee/_player.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PlayPrevious;
PlayPrevious = function(artist, title, success) {
return $.each(__playerTracklist, function(i, track) {
var t;
if (track.artist === artist && track.title === title) {
$('#ContentWrapper .track-container').removeClass('playing');
... | PlayPrevious = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i == 0
t = __playerTracklist[0]
$('#ContentWrapper .t... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 40 | 52 |
Atraci/Atraci:coffee/_player.coffee:2:completion | completion | PlayPrevious = (artist, title, success) ->
$.each __playerTracklist, (i, track) ->
if track.artist == artist and track.title == title
$('#ContentWrapper .track-container').removeClass('playing');
if i == 0
t = __playerTracklist[0] | $('#ContentWrapper .track-container').eq(0).addClass('playing');
else
t = __playerTracklist[i-1]
$('#ContentWrapper .track-container').eq(i-1).addClass('playing');
PlayTrack(t.artist, t.title, t.cover_url_medium, t.cover_url_large) | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 40 | 52 |
Atraci/Atraci:coffee/_player.coffee:3:raw_corpus | raw_corpus | PlayTrack = (artist, title, cover_url_medium, cover_url_large) ->
userTracking.event("Player", "Play", artist + ' - ' + title).send()
__currentTrack =
artist: artist
title: title
__playerTracklist = __currentTracklist
__CurrentSelectedTrack = Math.random()
__LastSelectedTrack = _... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 54 | 103 | ||
Atraci/Atraci:coffee/_player.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
PlayTrack = (artist, title, cover_url_medium, cover_url_large) ->
userTracking.event("Player", "Play", artist + ' - ' + title).send()
__currentTrack =
artist: artist
title: title
__playerTracklist = __currentTracklist
__Current... | var PlayTrack;
PlayTrack = function(artist, title, cover_url_medium, cover_url_large) {
var __CurrentSelectedTrack, __LastSelectedTrack, __currentTrack, __playerTracklist, spinner_cover;
userTracking.event("Player", "Play", artist + ' - ' + title).send();
__currentTrack = {
artist: artist,
title: title
... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 54 | 103 |
Atraci/Atraci:coffee/_player.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PlayTrack;
PlayTrack = function(artist, title, cover_url_medium, cover_url_large) {
var __CurrentSelectedTrack, __LastSelectedTrack, __currentTrack, __playerTracklist, spinner_cover;
userTracking.event("Player", "Play", artist + ' - ' + title).send();
__... | PlayTrack = (artist, title, cover_url_medium, cover_url_large) ->
userTracking.event("Player", "Play", artist + ' - ' + title).send()
__currentTrack =
artist: artist
title: title
__playerTracklist = __currentTracklist
__CurrentSelectedTrack = Math.random()
__LastSelectedTrack = _... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 54 | 103 |
Atraci/Atraci:coffee/_player.coffee:3:completion | completion | PlayTrack = (artist, title, cover_url_medium, cover_url_large) ->
userTracking.event("Player", "Play", artist + ' - ' + title).send()
__currentTrack =
artist: artist
title: title
__playerTracklist = __currentTracklist
__CurrentSelectedTrack = Math.random()
__LastSelectedTrack = _... | $('#PlayerContainer .cover #loading-overlay').show()
spinner_cover = new Spinner(spinner_cover_opts).spin($('#PlayerContainer .cover')[0])
$('#PlayerContainer .progress-current').css({'width': '0px'}) # not working ?
$('#PlayerContainer .info .track-info .artist').html(artist)
$('#PlayerContainer .inf... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 54 | 103 |
Atraci/Atraci:coffee/_player.coffee:4:raw_corpus | raw_corpus | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 104 | 153 | ||
Atraci/Atraci:coffee/_player.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
... | $.each(itag_priorities, function(i, itag) {
if (stream_urls[itag]) {
if (__CurrentSelectedTrack === __LastSelectedTrack) {
videojs('video_player').src(stream_urls[itag]).play();
userTracking.event("Playback Info", "itag", itag).send();
}
return false;
}
});
videojs('video_player');
// Keyb... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
$.each(itag_priorities, function(i, itag) {
if (stream_urls[itag]) {
if (__CurrentSelectedTrack === __LastSelectedTrack) {
videojs('video_player').src(stream_urls[itag]).play();
userTracking.event("Playback Info", "itag", itag).send();
}
r... | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:4:completion | completion | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | if $(@).hasClass('play')
videojs('video_player').play()
else
videojs('video_player').pause()
videojs('video_player').ready ->
@.on 'loadedmetadata', ->
$('#PlayerContainer .duration').text(moment(@duration()*1000).format('m:ss'))
videojs('video_player').play()
@.on 'timeupd... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:5:raw_corpus | raw_corpus | $('#PlayerContainer .info .track-info .action i.play').hide()
$('#PlayerContainer .info .track-info .action i.pause').show()
@.on 'pause', ->
$('#PlayerContainer .info .track-info .action i.pause').hide()
$('#PlayerContainer .info .track-info .action i.play').show()
@.on 'error', (e) ->... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 154 | 198 | ||
Atraci/Atraci:coffee/_player.coffee:5:completion | completion | $('#PlayerContainer .info .track-info .action i.play').hide()
$('#PlayerContainer .info .track-info .action i.pause').show()
@.on 'pause', ->
$('#PlayerContainer .info .track-info .action i.pause').hide()
$('#PlayerContainer .info .track-info .action i.play').show()
@.on 'error', (e) ->... | videojs('video_player').volume(percentage)
$('#PlayerContainer .volume-current').css({'width': (percentage) * 100 + '%'})
if percentage > 0.5
$('#PlayerContainer .controls .volume-icon .action i.fa-volume-up').show()
$('#PlayerContainer .controls .volume-icon .action i.fa-volume-down').hide()
... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | 5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3 | 800 | https://github.com/Atraci/Atraci/blob/5f87ced3b4e4d07f6fc7e7918382ef8b94c47ca3/coffee/_player.coffee | 154 | 198 |
Atraci/Atraci:coffee/_player.coffee:4:raw_corpus | raw_corpus | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | dd2c3b38f9c11d7208d14199ad27b3f9512f3a36 | 800 | https://github.com/Atraci/Atraci/blob/dd2c3b38f9c11d7208d14199ad27b3f9512f3a36/coffee/_player.coffee | 104 | 153 | ||
Atraci/Atraci:coffee/_player.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
... | $.each(itag_priorities, function(i, itag) {
if (stream_urls[itag]) {
if (__CurrentSelectedTrack === __LastSelectedTrack) {
videojs('video_player').src(stream_urls[itag]).play();
userTracking.event("Playback Info", "itag", itag).send();
}
return false;
}
});
videojs('video_player');
// Keyb... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_player.coffee | MIT | dd2c3b38f9c11d7208d14199ad27b3f9512f3a36 | 800 | https://github.com/Atraci/Atraci/blob/dd2c3b38f9c11d7208d14199ad27b3f9512f3a36/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
$.each(itag_priorities, function(i, itag) {
if (stream_urls[itag]) {
if (__CurrentSelectedTrack === __LastSelectedTrack) {
videojs('video_player').src(stream_urls[itag]).play();
userTracking.event("Playback Info", "itag", itag).send();
}
r... | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | dd2c3b38f9c11d7208d14199ad27b3f9512f3a36 | 800 | https://github.com/Atraci/Atraci/blob/dd2c3b38f9c11d7208d14199ad27b3f9512f3a36/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:4:completion | completion | $.each itag_priorities, (i, itag) ->
if stream_urls[itag]
if __CurrentSelectedTrack == __LastSelectedTrack
videojs('video_player').src(stream_urls[itag]).play()
userTracking.event("Playback Info", "itag",... | if $(@).hasClass('play')
videojs('video_player').play()
else
videojs('video_player').pause()
videojs('video_player').ready ->
@.on 'loadedmetadata', ->
$('#PlayerContainer .duration').text(moment(@duration()*1000).format('m:ss'))
videojs('video_player').play()
@.on 'timeupd... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | dd2c3b38f9c11d7208d14199ad27b3f9512f3a36 | 800 | https://github.com/Atraci/Atraci/blob/dd2c3b38f9c11d7208d14199ad27b3f9512f3a36/coffee/_player.coffee | 104 | 153 |
Atraci/Atraci:coffee/_player.coffee:5:raw_corpus | raw_corpus | $('#PlayerContainer .info .track-info .action i.play').show()
@.on 'error', (e) ->
code = if e.target.error then e.target.error.code else e.code
userTracking.event("Playback Error", video_error_codes[code], __currentTrack.artist + ' - ' + __currentTrack.title).send()
alert 'Playback Error (... | CoffeeScript | Atraci/Atraci | coffee/_player.coffee | MIT | dd2c3b38f9c11d7208d14199ad27b3f9512f3a36 | 800 | https://github.com/Atraci/Atraci/blob/dd2c3b38f9c11d7208d14199ad27b3f9512f3a36/coffee/_player.coffee | 154 | 191 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.