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/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `pa...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (@parent, name, value) -> if @parent...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (@parent, name, value) -> if @parent...
@isId = false @schemaTypeInfo = null # DOM level 1 Object.defineProperty @::, 'nodeType', get: () -> @type Object.defineProperty @::, 'ownerElement', get: () -> @parent # DOM level 3 Object.defineProperty @::, 'textContent', get: () -> @value set: (value) -> @value = value or '' # DOM leve...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:raw_corpus
raw_corpus
# 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 line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer....
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
51
78
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # 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 line for pretty print # `options.newline` newline sequence for p...
// 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 line for pretty print // `options.newline` newline sequence for pretty print ({ toString: function(options) { return this....
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
51
78
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // 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 line for pretty print // `options.newline` newline sequence for pretty pr...
# 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 line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer....
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
51
78
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:completion
completion
# 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 line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer....
if not name? "parent: <" + @parent.name + ">" else "attribute: {" + name + "}, parent: <" + @parent.name + ">" isEqualNode: (node) -> if node.namespaceURI isnt @namespaceURI then return false if node.prefix isnt @prefix then return false if node.localName isnt @localName then return fals...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLAttribute.coffee
51
78
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (@parent, name, value) -> if @parent...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute valu...
var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `pa...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (@parent, name, value) -> if @parent...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (@parent, name, value) -> if @parent...
@schemaTypeInfo = null # DOM level 1 Object.defineProperty @::, 'nodeType', get: () -> @type Object.defineProperty @::, 'ownerElement', get: () -> @parent # DOM level 4 Object.defineProperty @::, 'namespaceURI', get: () -> '' Object.defineProperty @::, 'prefix', get: () -> '' Object.defineProperty @::...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:raw_corpus
raw_corpus
# `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.attribute @, @options.writer.filterOptions(options) # Returns debug string for this node debugInfo: (name) -> name = name or @name if not name? "parent: <" + @parent.name + ">" else "attribu...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
51
63
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.attribute @, @options.writer.filterOptions(options) # Returns debug string for this node debugInfo: (name) -> name = name or @name if not name? ...
// `options.newline` newline sequence for pretty print ({ toString: function(options) { return this.options.writer.attribute(this, this.options.writer.filterOptions(options)); }, // Returns debug string for this node debugInfo: function(name) { name = name || this.name; if (name == null) { ret...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
51
63
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // `options.newline` newline sequence for pretty print ({ toString: function(options) { return this.options.writer.attribute(this, this.options.writer.filterOptions(options)); }, // Returns debug string for this node debugInfo: function(name) { name...
# `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.attribute @, @options.writer.filterOptions(options) # Returns debug string for this node debugInfo: (name) -> name = name or @name if not name? "parent: <" + @parent.name + ">" else "attribu...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
51
63
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:completion
completion
# `options.newline` newline sequence for pretty print toString: (options) -> @options.writer.attribute @, @options.writer.filterOptions(options) # Returns debug string for this node
debugInfo: (name) -> name = name or @name if not name? "parent: <" + @parent.name + ">" else "attribute: {" + name + "}, parent: <" + @parent.name + ">"
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
731c0e0c4226598187e6577969b815a22663d695
926
https://github.com/oozcitak/xmlbuilder-js/blob/731c0e0c4226598187e6577969b815a22663d695/src/XMLAttribute.coffee
51
63
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value...
var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` att...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttrib...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
@schemaTypeInfo = null # DOM level 1 Object.defineProperty @::, 'ownerElement', get: () -> @parent # 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 pr...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:raw_corpus
raw_corpus
if not name? "parent: <" + @parent.name + ">" else "attribute: {" + name + "}, parent: <" + @parent.name + ">"
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if not name? "parent: <" + @parent.name + ">" else "attribute: {" + name + "}, parent: <" + @parent.name + ">" ```
if (typeof name === "undefined" || name === null) { "parent: <" + this.parent.name + ">"; } else { "attribute: {" + name + "}, parent: <" + this.parent.name + ">"; }
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof name === "undefined" || name === null) { "parent: <" + this.parent.name + ">"; } else { "attribute: {" + name + "}, parent: <" + this.parent.name + ">"; } ```
if not name? "parent: <" + @parent.name + ">" else "attribute: {" + name + "}, parent: <" + @parent.name + ">"
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:2:completion
completion
if not name? "parent: <" + @parent.name + ">"
else "attribute: {" + name + "}, parent: <" + @parent.name + ">"
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
51b902d6945014c3d4cf4f0b62997965c2c6781f
926
https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLAttribute.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
68552eda87d08b71507e70e032d7619b46096fe3
926
https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value...
var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` att...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
68552eda87d08b71507e70e032d7619b46096fe3
926
https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = (function() { class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttrib...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
68552eda87d08b71507e70e032d7619b46096fe3
926
https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
68552eda87d08b71507e70e032d7619b46096fe3
926
https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value...
var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `va...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f6ad2df8c2551b47423405066312422d972aa32f
926
https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value...
var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `va...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute, XMLNode; NodeType = require('./NodeType'); XMLNode = require('./XMLNode'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute extends XMLNode { // Initializes a new instance of `XMLAttribute` // `parent...
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' XMLNode = require './XMLNode' # Represents an attribute module.exports = class XMLAttribute extends XMLNode # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) ->...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b3f243ffbeb47486162b212d976fe7e97918e6dc
926
https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
NodeType = require './NodeType' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
3ea28fa414af4cf62b9583bb975ad1f1fb194372
926
https://github.com/oozcitak/xmlbuilder-js/blob/3ea28fa414af4cf62b9583bb975ad1f1fb194372/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeType = require './NodeType' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name...
var NodeType, XMLAttribute; NodeType = require('./NodeType'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
3ea28fa414af4cf62b9583bb975ad1f1fb194372
926
https://github.com/oozcitak/xmlbuilder-js/blob/3ea28fa414af4cf62b9583bb975ad1f1fb194372/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeType, XMLAttribute; NodeType = require('./NodeType'); // Represents an attribute module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value...
NodeType = require './NodeType' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
3ea28fa414af4cf62b9583bb975ad1f1fb194372
926
https://github.com/oozcitak/xmlbuilder-js/blob/3ea28fa414af4cf62b9583bb975ad1f1fb194372/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
NodeType = require './NodeType' # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify ...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
3ea28fa414af4cf62b9583bb975ad1f1fb194372
926
https://github.com/oozcitak/xmlbuilder-js/blob/3ea28fa414af4cf62b9583bb975ad1f1fb194372/src/XMLAttribute.coffee
1
47
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent...
// Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { this.options = parent.options; this.s...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name,...
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
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 line for pretty print # `options.newline` newline sequence for pretty print toStri...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
782540c408a8fdbe1a425f16f67644fbd9b60492
926
https://github.com/oozcitak/xmlbuilder-js/blob/782540c408a8fdbe1a425f16f67644fbd9b60492/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent...
// Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { this.options = parent.options; this.s...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
782540c408a8fdbe1a425f16f67644fbd9b60492
926
https://github.com/oozcitak/xmlbuilder-js/blob/782540c408a8fdbe1a425f16f67644fbd9b60492/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name,...
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
782540c408a8fdbe1a425f16f67644fbd9b60492
926
https://github.com/oozcitak/xmlbuilder-js/blob/782540c408a8fdbe1a425f16f67644fbd9b60492/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
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 line for pretty print # `options.newline` newline sequence for pretty print toStri...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
782540c408a8fdbe1a425f16f67644fbd9b60492
926
https://github.com/oozcitak/xmlbuilder-js/blob/782540c408a8fdbe1a425f16f67644fbd9b60492/src/XMLAttribute.coffee
1
44
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent...
// Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { this.options = parent.options; this.s...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name,...
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a
926
https://github.com/oozcitak/xmlbuilder-js/blob/abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent...
// Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { this.options = parent.options; this.s...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a
926
https://github.com/oozcitak/xmlbuilder-js/blob/abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name,...
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a
926
https://github.com/oozcitak/xmlbuilder-js/blob/abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
# 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 line for pretty print # `options.newl...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a
926
https://github.com/oozcitak/xmlbuilder-js/blob/abd6ee7e392a4d52dd877b6134ed25c9b1f98c6a/src/XMLAttribute.coffee
1
46
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:raw_corpus
raw_corpus
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent...
// Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name, value) { this.options = parent.options; this.s...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents an attribute var XMLAttribute; module.exports = XMLAttribute = class XMLAttribute { // Initializes a new instance of `XMLAttribute` // `parent` the parent node // `name` attribute target // `value` attribute value constructor(parent, name,...
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLAttribute.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLAttribute.coffee:1:completion
completion
# Represents an attribute module.exports = class XMLAttribute # Initializes a new instance of `XMLAttribute` # # `parent` the parent node # `name` attribute target # `value` attribute value constructor: (parent, name, value) -> @options = parent.options @stringify = parent.stringify @parent = ...
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 line for pretty print # `options.newline` newline sequence for pretty print toString: (options) -> ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLAttribute.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLAttribute.coffee
1
50
alekseykulikov/backbone-offline:spec/index_spec.coffee:1:raw_corpus
raw_corpus
describe 'Offline.Index', -> beforeEach -> localStorage.setItem('ideas', '2,3') @records = new Offline.Index('ideas') describe 'constructor', -> it 'sets @name', -> expect(@records.name).toEqual('ideas') it 'sets @values', -> expect(@records.values).toEqual(['2', '3']) describe 'add', -> bef...
CoffeeScript
alekseykulikov/backbone-offline
spec/index_spec.coffee
MIT
5218380e875537d4bcd04f19954acda4e553de41
717
https://github.com/alekseykulikov/backbone-offline/blob/5218380e875537d4bcd04f19954acda4e553de41/spec/index_spec.coffee
1
22
alekseykulikov/backbone-offline:spec/index_spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'Offline.Index', -> beforeEach -> localStorage.setItem('ideas', '2,3') @records = new Offline.Index('ideas') describe 'constructor', -> it 'sets @name', -> expect(@records.name).toEqual('ideas') it 'sets @values', -> expect(@records....
describe('Offline.Index', function() { beforeEach(function() { localStorage.setItem('ideas', '2,3'); return this.records = new Offline.Index('ideas'); }); describe('constructor', function() { it('sets @name', function() { return expect(this.records.name).toEqual('ideas'); }); return it('...
CoffeeScript
JavaScript
alekseykulikov/backbone-offline
spec/index_spec.coffee
MIT
5218380e875537d4bcd04f19954acda4e553de41
717
https://github.com/alekseykulikov/backbone-offline/blob/5218380e875537d4bcd04f19954acda4e553de41/spec/index_spec.coffee
1
22
alekseykulikov/backbone-offline:spec/index_spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('Offline.Index', function() { beforeEach(function() { localStorage.setItem('ideas', '2,3'); return this.records = new Offline.Index('ideas'); }); describe('constructor', function() { it('sets @name', function() { return expect(this....
describe 'Offline.Index', -> beforeEach -> localStorage.setItem('ideas', '2,3') @records = new Offline.Index('ideas') describe 'constructor', -> it 'sets @name', -> expect(@records.name).toEqual('ideas') it 'sets @values', -> expect(@records.values).toEqual(['2', '3']) describe 'add', -> bef...
JavaScript
CoffeeScript
alekseykulikov/backbone-offline
spec/index_spec.coffee
MIT
5218380e875537d4bcd04f19954acda4e553de41
717
https://github.com/alekseykulikov/backbone-offline/blob/5218380e875537d4bcd04f19954acda4e553de41/spec/index_spec.coffee
1
22
alekseykulikov/backbone-offline:spec/index_spec.coffee:1:completion
completion
describe 'Offline.Index', -> beforeEach -> localStorage.setItem('ideas', '2,3') @records = new Offline.Index('ideas') describe 'constructor', -> it 'sets @name', -> expect(@records.name).toEqual('ideas') it 'sets @values', -> expect(@records.values).toEqual(['2', '3']) describe 'add', -> bef...
it 'should add value in to the end of array', -> expect(@records.values).toEqual(['2', '3', '5']) it "should rewrite localStorage's item", -> expect(localStorage.getItem 'ideas').toEqual('2,3,5') it 'does not duplicate values', -> @records.add('5') expect(@records.values).toEqual(['2', '3', '5']) ...
CoffeeScript
CoffeeScript
alekseykulikov/backbone-offline
spec/index_spec.coffee
MIT
5218380e875537d4bcd04f19954acda4e553de41
717
https://github.com/alekseykulikov/backbone-offline/blob/5218380e875537d4bcd04f19954acda4e553de41/spec/index_spec.coffee
1
22
Pagedraw/pagedraw:src/model_differ.coffee:1:raw_corpus
raw_corpus
_l = require 'lodash' # returns a delta object diff = (original, newer) -> if _l.isPlainObject(original) and _l.isPlainObject(newer) orig_keys = _l.keys(original) new_keys = _l.keys(newer) deletions = _l.difference(orig_keys, new_keys) additions = _l.difference(new_keys, orig_keys)...
CoffeeScript
Pagedraw/pagedraw
src/model_differ.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/model_differ.coffee
1
46
Pagedraw/pagedraw:src/model_differ.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _l = require 'lodash' # returns a delta object diff = (original, newer) -> if _l.isPlainObject(original) and _l.isPlainObject(newer) orig_keys = _l.keys(original) new_keys = _l.keys(newer) deletions = _l.difference(orig_keys, new_key...
var _l, diff, patch, hasProp = {}.hasOwnProperty; _l = require('lodash'); // returns a delta object diff = function(original, newer) { var additions, deletions, mutations, new_keys, orig_keys; if (_l.isPlainObject(original) && _l.isPlainObject(newer)) { orig_keys = _l.keys(original); new_keys = _l.keys(...
CoffeeScript
JavaScript
Pagedraw/pagedraw
src/model_differ.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/model_differ.coffee
1
46
Pagedraw/pagedraw:src/model_differ.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _l, diff, patch, hasProp = {}.hasOwnProperty; _l = require('lodash'); // returns a delta object diff = function(original, newer) { var additions, deletions, mutations, new_keys, orig_keys; if (_l.isPlainObject(original) && _l.isPlainObject(newer)) { ...
_l = require 'lodash' # returns a delta object diff = (original, newer) -> if _l.isPlainObject(original) and _l.isPlainObject(newer) orig_keys = _l.keys(original) new_keys = _l.keys(newer) deletions = _l.difference(orig_keys, new_keys) additions = _l.difference(new_keys, orig_keys)...
JavaScript
CoffeeScript
Pagedraw/pagedraw
src/model_differ.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/model_differ.coffee
1
46
Pagedraw/pagedraw:src/model_differ.coffee:1:completion
completion
_l = require 'lodash' # returns a delta object diff = (original, newer) -> if _l.isPlainObject(original) and _l.isPlainObject(newer) orig_keys = _l.keys(original) new_keys = _l.keys(newer) deletions = _l.difference(orig_keys, new_keys) additions = _l.difference(new_keys, orig_keys)...
return {op: 'replace', value: _l.cloneDeep(newer)} # non-mutating; returns a new json patch = (json, delta) -> if delta.op == 'patch' clone = _l.assign {}, json, delta.additions for key in delta.deletions delete clone[key] for own key, update of delta.mutations cl...
CoffeeScript
CoffeeScript
Pagedraw/pagedraw
src/model_differ.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/model_differ.coffee
1
46
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
[createVariableRegExpString, Color] = [] module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> unless createVariableRegExpString? {createVariableRegEx...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript [createVariableRegExpString, Color] = [] module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> unle...
var Color, ColorExpression, createVariableRegExpString; [createVariableRegExpString, Color] = []; module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariables()); } static colorExpressionRegexpF...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Color, ColorExpression, createVariableRegExpString; [createVariableRegExpString, Color] = []; module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.get...
[createVariableRegExpString, Color] = [] module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> unless createVariableRegExpString? {createVariableRegEx...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
[createVariableRegExpString, Color] = [] module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> unless createVariableRegExpString? {createVariableRegEx...
evaluated = context.readColorExpression(name) return @invalid = true if evaluated is name baseColor = context.readColor(evaluated) @colorExpression = name @variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:2:raw_corpus
raw_corpus
@handle.call(color, @regexp.exec(expression), expression, context) color search: (text, start=0) -> results = undefined re = new RegExp(@regexpString, 'g') re.lastIndex = start if [match] = re.exec(text) {lastIndex} = re range = [lastIndex - match.length, lastIndex] results = ...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
51
65
abe33/atom-pigments:lib/color-expression.coffee:2:completion
completion
@handle.call(color, @regexp.exec(expression), expression, context) color search: (text, start=0) -> results = undefined re = new RegExp(@regexpString, 'g') re.lastIndex = start
if [match] = re.exec(text) {lastIndex} = re range = [lastIndex - match.length, lastIndex] results = range: range match: text[range[0]...range[1]] results
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/color-expression.coffee
51
65
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVar...
var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariable...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.co...
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
return @invalid = true if evaluated is name baseColor = context.readColor(evaluated) @colorExpression = name @variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @scopes, @priori...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:2:raw_corpus
raw_corpus
results = undefined re = new RegExp(@regexpString, 'g') re.lastIndex = start if [match] = re.exec(text) {lastIndex} = re range = [lastIndex - match.length, lastIndex] results = range: range match: text[range[0]...range[1]] results
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
51
61
abe33/atom-pigments:lib/color-expression.coffee:2:completion
completion
results = undefined re = new RegExp(@regexpString, 'g') re.lastIndex = start if [match] = re.exec(text) {lastIndex} = re
range = [lastIndex - match.length, lastIndex] results = range: range match: text[range[0]...range[1]] results
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
fccbdeb8e6b926940f667b37d9d593f158261d10
518
https://github.com/abe33/atom-pigments/blob/fccbdeb8e6b926940f667b37d9d593f158261d10/lib/color-expression.coffee
51
61
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
a2ae863f0bee366d797cc98fa97a8c378aed688e
518
https://github.com/abe33/atom-pigments/blob/a2ae863f0bee366d797cc98fa97a8c378aed688e/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVar...
var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariable...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
a2ae863f0bee366d797cc98fa97a8c378aed688e
518
https://github.com/abe33/atom-pigments/blob/a2ae863f0bee366d797cc98fa97a8c378aed688e/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.co...
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
a2ae863f0bee366d797cc98fa97a8c378aed688e
518
https://github.com/abe33/atom-pigments/blob/a2ae863f0bee366d797cc98fa97a8c378aed688e/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
return @invalid = true if evaluated is name baseColor = context.readColor(evaluated) @colorExpression = name @variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @scopes, @priori...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
a2ae863f0bee366d797cc98fa97a8c378aed688e
518
https://github.com/abe33/atom-pigments/blob/a2ae863f0bee366d797cc98fa97a8c378aed688e/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVar...
var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariable...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.co...
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
baseColor = context.readColor(evaluated) @colorExpression = name @variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @scopes, @priority, @handle}) -> @regexp = new RegExp("^#{@regexp...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:2:raw_corpus
raw_corpus
re.lastIndex = start if [match] = re.exec(text) {lastIndex} = re range = [lastIndex - match.length, lastIndex] results = range: range match: text[range[0]...range[1]] results
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
51
59
abe33/atom-pigments:lib/color-expression.coffee:2:completion
completion
re.lastIndex = start if [match] = re.exec(text) {lastIndex} = re range = [lastIndex - match.length, lastIndex]
results = range: range match: text[range[0]...range[1]] results
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8320424639a43af871dedb4d857ab4aaaa4bc418
518
https://github.com/abe33/atom-pigments/blob/8320424639a43af871dedb4d857ab4aaaa4bc418/lib/color-expression.coffee
51
59
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
73fcc5a0b187e39a526597aa1e7b78ed58113a49
518
https://github.com/abe33/atom-pigments/blob/73fcc5a0b187e39a526597aa1e7b78ed58113a49/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
@variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @scopes, @priority, @handle}) -> @regexp = new RegExp("^#{@regexpString}$") match: (expression) -> @regexp.test expression parse: (expressio...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
73fcc5a0b187e39a526597aa1e7b78ed58113a49
518
https://github.com/abe33/atom-pigments/blob/73fcc5a0b187e39a526597aa1e7b78ed58113a49/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
b8918c7ec066777bd5243c753779e638b7238887
518
https://github.com/abe33/atom-pigments/blob/b8918c7ec066777bd5243c753779e638b7238887/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVar...
var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariable...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
b8918c7ec066777bd5243c753779e638b7238887
518
https://github.com/abe33/atom-pigments/blob/b8918c7ec066777bd5243c753779e638b7238887/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.co...
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
b8918c7ec066777bd5243c753779e638b7238887
518
https://github.com/abe33/atom-pigments/blob/b8918c7ec066777bd5243c753779e638b7238887/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
@variables = baseColor?.variables return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @scopes, @priority, @handle}) -> @regexp = new RegExp("^#{@regexpString}$") match: (expression) -> @regexp.test expression parse: (expressio...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
b8918c7ec066777bd5243c753779e638b7238887
518
https://github.com/abe33/atom-pigments/blob/b8918c7ec066777bd5243c753779e638b7238887/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @handle}) -> @regexp = new RegExp("^#{@regexpString}$") match: (expression) -> @regexp.test expression parse: (expression, context) -> return null unless @match(expression) c...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
c27ca8038732673a30f66631e48e07165a2466dc
518
https://github.com/abe33/atom-pigments/blob/c27ca8038732673a30f66631e48e07165a2466dc/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:completion
completion
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionRegexpForColorVariables: (colorVariables) -> createVariableRegExpStrin...
return @invalid = true if context.isInvalid(baseColor) @rgba = baseColor.rgba constructor: ({@name, @regexpString, @handle}) -> @regexp = new RegExp("^#{@regexpString}$") match: (expression) -> @regexp.test expression parse: (expression, context) -> return null unless @match(expression) c...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
c27ca8038732673a30f66631e48e07165a2466dc
518
https://github.com/abe33/atom-pigments/blob/c27ca8038732673a30f66631e48e07165a2466dc/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:raw_corpus
raw_corpus
Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionForColorVariables: (colorVariables) -> paletteRegexpString = createVar...
CoffeeScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
10dd02cd2aff39c8bc995d9d5914c9b0b2007048
518
https://github.com/abe33/atom-pigments/blob/10dd02cd2aff39c8bc995d9d5914c9b0b2007048/lib/color-expression.coffee
1
50
abe33/atom-pigments:lib/color-expression.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Color = require './color' {createVariableRegExpString} = require './regexes' module.exports = class ColorExpression @colorExpressionForContext: (context) -> @colorExpressionForColorVariables(context.getColorVariables()) @colorExpressionForColorVariables...
var Color, ColorExpression, createVariableRegExpString; Color = require('./color'); ({createVariableRegExpString} = require('./regexes')); module.exports = ColorExpression = class ColorExpression { static colorExpressionForContext(context) { return this.colorExpressionForColorVariables(context.getColorVariable...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-expression.coffee
MIT
10dd02cd2aff39c8bc995d9d5914c9b0b2007048
518
https://github.com/abe33/atom-pigments/blob/10dd02cd2aff39c8bc995d9d5914c9b0b2007048/lib/color-expression.coffee
1
50