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
soyjavi/QuoJS:source/quo.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # --------------------------------------------------------------------------- $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> target[key] = source[key] for key of source target $$.toType = (obj) -> OBJECT_PROTOTYP...
// --------------------------------------------------------------------------- var _Quo, _getDOMObject; $$.extend = function(target) { var key; Array.prototype.slice.call(arguments, 1).forEach(function(source) {}); for (key in source) { target[key] = source[key]; } return target; }; $$.toType = function...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // --------------------------------------------------------------------------- var _Quo, _getDOMObject; $$.extend = function(target) { var key; Array.prototype.slice.call(arguments, 1).forEach(function(source) {}); for (key in source) { target[key] = sou...
# --------------------------------------------------------------------------- $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> target[key] = source[key] for key of source target $$.toType = (obj) -> OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCa...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:completion
completion
# --------------------------------------------------------------------------- $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> target[key] = source[key] for key of source target $$.toType = (obj) -> OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCa...
values.push value if value? _flatten values # --------------------------------------------------------------------------- # Private Methods # --------------------------------------------------------------------------- _Quo = (dom = EMPTY_ARRAY, selector = "") -> dom = dom or EMPTY_ARRAY dom.__proto...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus
raw_corpus
if children if domain.length is 1 domain = $$.query(domain[0], children) else #@TODO: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children) else if ELEMENT_TYPES.indexOf(selector.nodeType) >= 0 or selector is window domain = [selector] sel...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
111
148
soyjavi/QuoJS:source/quo.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if children if domain.length is 1 domain = $$.query(domain[0], children) else #@TODO: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children) else if ELEMENT_TYPES.indexOf(selector.nodeType) >= 0 ...
var _compact, _flatten, domain, selector; if (children) { if (domain.length === 1) { domain = $$.query(domain[0], children); } else { //@TODO: BUG if selector count > 1 domain = $$.map(function() { return $$.query(domain, children); }); } } else if (ELEMENT_TYPES.indexOf(selector.nodeType) ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
111
148
soyjavi/QuoJS:source/quo.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _compact, _flatten, domain, selector; if (children) { if (domain.length === 1) { domain = $$.query(domain[0], children); } else { //@TODO: BUG if selector count > 1 domain = $$.map(function() { return $$.query(domain, children); }); ...
if children if domain.length is 1 domain = $$.query(domain[0], children) else #@TODO: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children) else if ELEMENT_TYPES.indexOf(selector.nodeType) >= 0 or selector is window domain = [selector] sel...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
111
148
soyjavi/QuoJS:source/quo.coffee:3:completion
completion
if children if domain.length is 1 domain = $$.query(domain[0], children) else #@TODO: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children) else if ELEMENT_TYPES.indexOf(selector.nodeType) >= 0 or selector is window domain = [selector] sel...
# --------------------------------------------------------------------------- # Exports # --------------------------------------------------------------------------- _Quo:: = $$.fn = {} $$.fn.each = (callback) -> @forEach (element, index) -> callback.call element, index, element $$.fn.filter = (selector...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
a10944e3905ca69b824ecc9662681677bff8749c
2,055
https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee
111
148
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus
raw_corpus
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ ### Basic Instance of QuoJS @method $$ @param {string/instan...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ ### Basi...
var Quo; Quo = (function() { /* Basic Instance of QuoJS @method $$ @param {string/instance} [OPTIONAL] Selector for handler @param {string} [OPTIONAL] Children in selector */ var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR, _Quo, _getDOM...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Quo; Quo = (function() { /* Basic Instance of QuoJS @method $$ @param {string/instance} [OPTIONAL] Selector for handler @param {string} [OPTIONAL] Children in selector */ var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_...
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ ### Basic Instance of QuoJS @method $$ @param {string/instan...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:completion
completion
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ ### Basic Instance of QuoJS @method $$ @param {string/instan...
dom = _getDOMObject(selector, children) _Quo(dom, selector) # --------------------------------------------------------------------------- # Static Methods # --------------------------------------------------------------------------- $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (sou...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus
raw_corpus
if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector.trim(), RegExp.$1) selector = null else if type is "string" domain = _query(...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector.trim(), RegExp.$1) selector = ...
var _compact, _query, domain, selector; if (selector instanceof _Quo && !children) { //@TODO: If selector it's array, fails :/ domain = _compact(selector); } else if (type === "string" && IS_HTML_FRAGMENT.test(selector)) { domain = $$.fragment(selector.trim(), RegExp.$1); selector = null; } else if (type === "...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _compact, _query, domain, selector; if (selector instanceof _Quo && !children) { //@TODO: If selector it's array, fails :/ domain = _compact(selector); } else if (type === "string" && IS_HTML_FRAGMENT.test(selector)) { domain = $$.fragment(selector.trim(...
if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector.trim(), RegExp.$1) selector = null else if type is "string" domain = _query(...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:completion
completion
if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector.trim(), RegExp.$1) selector = null else if type is "string" domain = _query(...
_query = (domain, selector) -> if CLASS_SELECTOR.test(selector) elements = domain.getElementsByClassName selector.replace(".", "") else if TAG_SELECTOR.test(selector) elements = domain.getElementsByTagName(selector) else if ID_SELECTOR.test(selector) and domain is document elements = domai...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus
raw_corpus
console.log "selector", selector.length $$ EMPTY_ARRAY.filter.call(@, (el) -> el.parentNode and _query(el.parentNode, selector).indexOf(el) >= 0) $$.fn.forEach = EMPTY_ARRAY.forEach $$.fn.indexOf = EMPTY_ARRAY.indexOf $$ @Quo = @$$ = Quo
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
111
121
soyjavi/QuoJS:source/quo.coffee:3:completion
completion
console.log "selector", selector.length $$ EMPTY_ARRAY.filter.call(@, (el) -> el.parentNode and _query(el.parentNode, selector).indexOf(el) >= 0) $$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf $$ @Quo = @$$ = Quo
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
41c65ae444d494fc7ca9b0778a305666c0aaf904
2,055
https://github.com/soyjavi/QuoJS/blob/41c65ae444d494fc7ca9b0778a305666c0aaf904/source/quo.coffee
111
121
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus
raw_corpus
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ---------...
var Quo; Quo = (function() { var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR, _Quo; EMPTY_ARRAY = []; OBJECT_PROTOTYPE = Object.prototype; IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/; ELEMENT_TYPES = [1, 9, 11]; CLASS_SELECTOR = /^\.([\w-]+)$/; ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Quo; Quo = (function() { var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR, _Quo; EMPTY_ARRAY = []; OBJECT_PROTOTYPE = Object.prototype; IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/; ELEMENT_...
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:completion
completion
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
$$(document).ready selector else dom = _getDOMObject(selector, children) _Quo(dom, selector) # --------------------------------------------------------------------------- # Static Methods # --------------------------------------------------------------------------- $$.extend = (target) -> ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus
raw_corpus
_getDOMObject = (selector, children) -> domain = null type = $$.toType selector if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector....
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _getDOMObject = (selector, children) -> domain = null type = $$.toType selector if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRA...
var _compact, _getDOMObject, _query; _getDOMObject = function(selector, children) { var domain, type; domain = null; type = $$.toType(selector); if (selector instanceof _Quo && !children) { //@TODO: If selector it's array, fails :/ domain = _compact(selector); } else if (type === "string" && IS_HTML_...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _compact, _getDOMObject, _query; _getDOMObject = function(selector, children) { var domain, type; domain = null; type = $$.toType(selector); if (selector instanceof _Quo && !children) { //@TODO: If selector it's array, fails :/ domain = _compac...
_getDOMObject = (selector, children) -> domain = null type = $$.toType selector if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector....
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:completion
completion
_getDOMObject = (selector, children) -> domain = null type = $$.toType selector if selector instanceof _Quo and not children #@TODO: If selector it's array, fails :/ domain = _compact selector else if type is "string" and IS_HTML_FRAGMENT.test(selector) domain = $$.fragment(selector....
domain _query = (domain, selector) -> if CLASS_SELECTOR.test(selector) elements = domain.getElementsByClassName selector.replace(".", "") else if TAG_SELECTOR.test(selector) elements = domain.getElementsByTagName(selector) else if ID_SELECTOR.test(selector) and domain is document elemen...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus
raw_corpus
@forEach (element, index) -> callback.call element, index, element $$.fn.filter = (selector) -> console.log "selector", selector.length $$ EMPTY_ARRAY.filter.call(@, (el) -> el.parentNode and _query(el.parentNode, selector).indexOf(el) >= 0) $$.fn.forEach = EMPTY_ARRAY.forEach $$.fn.indexOf = EMP...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
111
125
soyjavi/QuoJS:source/quo.coffee:3:completion
completion
@forEach (element, index) -> callback.call element, index, element $$.fn.filter = (selector) -> console.log "selector", selector.length $$ EMPTY_ARRAY.filter.call(@, (el) -> el.parentNode and _query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach $$.fn.indexOf = EMPTY_ARRAY.indexOf $$ @Quo = @$$ = Quo
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
70ceedb0ceff0c1f43944382dd89c1d766b70ed5
2,055
https://github.com/soyjavi/QuoJS/blob/70ceedb0ceff0c1f43944382dd89c1d766b70ed5/source/quo.coffee
111
125
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus
raw_corpus
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ---------...
var Quo; Quo = (function() { var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR; EMPTY_ARRAY = []; OBJECT_PROTOTYPE = Object.prototype; IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/; ELEMENT_TYPES = [1, 9, 11]; CLASS_SELECTOR = /^\.([\w-]+)$/; ID_S...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Quo; Quo = (function() { var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR; EMPTY_ARRAY = []; OBJECT_PROTOTYPE = Object.prototype; IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/; ELEMENT_TYPES ...
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:1:completion
completion
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ ELEMENT_TYPES = [ 1, 9, 11 ] CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ # ------------------------------------------------------------------...
else dom = $$.getDOMObject(selector, children) _Quo(dom, selector) # Static Methods $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> target[key] = source[key] for key of source target $$.toType = (obj) -> OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
11
60
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus
raw_corpus
selector = null else if type is "string" domain = _query(document, selector) if children if domain.length is 1 domain = _query(domain[0], children) else #@todo: BUG if selector count > 1 domain = $$.map(-> _query domain, children ) else if ELEMENT_TYP...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:2:completion
completion
selector = null else if type is "string" domain = _query(document, selector) if children if domain.length is 1 domain = _query(domain[0], children) else #@todo: BUG if selector count > 1 domain = $$.map(-> _query domain, children ) else if ELEMENT_TYP...
dom _query = (domain, selector) -> selector = selector.trim() if CLASS_SELECTOR.test(selector) elements = domain.getElementsByClassName selector.replace(".", "") else if TAG_SELECTOR.test(selector) elements = domain.getElementsByTagName(selector) else if ID_SELECTOR.test(selector) and do...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
61
110
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus
raw_corpus
# Instance Methods _Quo::forEach = [].forEach _Quo::indexOf = EMPTY_ARRAY.indexOf _Quo::each = (callback) -> @forEach (element, index) -> callback.call element, index, element # Exports # --------------------------------------------------------------------------- _Quo:: = $$.fn = {} # Instance Met...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
111
134
soyjavi/QuoJS:source/quo.coffee:3:completion
completion
# Instance Methods _Quo::forEach = [].forEach _Quo::indexOf = EMPTY_ARRAY.indexOf _Quo::each = (callback) -> @forEach (element, index) -> callback.call element, index, element # Exports # --------------------------------------------------------------------------- _Quo:: = $$.fn = {}
# Instance Methods $$.fn.forEach = EMPTY_ARRAY.forEach $$.fn.indexOf = EMPTY_ARRAY.indexOf $$.fn.each = (callback) -> @forEach (element, index) -> callback.call element, index, element $$ @Quo = @$$ = Quo
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
4b3afeff3c378850f7b84eecf0e45db2a05c99f5
2,055
https://github.com/soyjavi/QuoJS/blob/4b3afeff3c378850f7b84eecf0e45db2a05c99f5/source/quo.coffee
111
134
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus
raw_corpus
# Instance Methods _Quo::forEach = [].forEach _Quo::indexOf = EMPTY_ARRAY.indexOf _Quo::each = (callback) -> @forEach (element, index) -> callback.call element, index, element # Exports # --------------------------------------------------------------------------- _Quo:: = $$.fn = {} # Instance Met...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
f3ed40727f537f38953fe5d753063e372641497f
2,055
https://github.com/soyjavi/QuoJS/blob/f3ed40727f537f38953fe5d753063e372641497f/source/quo.coffee
111
134
soyjavi/QuoJS:source/quo.coffee:3:completion
completion
# Instance Methods _Quo::forEach = [].forEach _Quo::indexOf = EMPTY_ARRAY.indexOf _Quo::each = (callback) -> @forEach (element, index) -> callback.call element, index, element # Exports # --------------------------------------------------------------------------- _Quo:: = $$.fn = {}
# Instance Methods $$.fn.forEach = [].forEach $$.fn.indexOf = EMPTY_ARRAY.indexOf $$.fn.each = (callback) -> @forEach (element, index) -> callback.call element, index, element $$ @Quo = @$$ = Quo
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
f3ed40727f537f38953fe5d753063e372641497f
2,055
https://github.com/soyjavi/QuoJS/blob/f3ed40727f537f38953fe5d753063e372641497f/source/quo.coffee
111
134
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus
raw_corpus
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ $$ = (selector, children) -> unless selector Q() else if $$.toType(selector) is "function"...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
9becd344c755a00536e0471cbbca4958a3c0f589
2,055
https://github.com/soyjavi/QuoJS/blob/9becd344c755a00536e0471cbbca4958a3c0f589/source/quo.coffee
1
50
soyjavi/QuoJS:source/quo.coffee:1:completion
completion
Quo = do -> EMPTY_ARRAY = [] OBJECT_PROTOTYPE = Object:: IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/ CLASS_SELECTOR = /^\.([\w-]+)$/ ID_SELECTOR = /^#[\w\d-]+$/ TAG_SELECTOR = /^[\w-]+$/ $$ = (selector, children) -> unless selector Q() else if $$.toType(selector) is "function"...
$$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> target[key] = source[key] for key of source target $$.toType = (obj) -> OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase() $$.getDOMObject = (selector, children) -> domain = null element...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
9becd344c755a00536e0471cbbca4958a3c0f589
2,055
https://github.com/soyjavi/QuoJS/blob/9becd344c755a00536e0471cbbca4958a3c0f589/source/quo.coffee
1
50
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus
raw_corpus
domain = $$.query(document, selector) if children if domain.length is 1 domain = $$.query(domain[0], children) else #@todo: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children ) else if elementTypes.indexOf(selector.nodeType) >= 0 or selector i...
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
9becd344c755a00536e0471cbbca4958a3c0f589
2,055
https://github.com/soyjavi/QuoJS/blob/9becd344c755a00536e0471cbbca4958a3c0f589/source/quo.coffee
51
90
soyjavi/QuoJS:source/quo.coffee:2:completion
completion
domain = $$.query(document, selector) if children if domain.length is 1 domain = $$.query(domain[0], children) else #@todo: BUG if selector count > 1 domain = $$.map(-> $$.query domain, children ) else if elementTypes.indexOf(selector.nodeType) >= 0 or selector i...
else if TAG_SELECTOR.test(selector) elements = domain.getElementsByTagName(selector) else if ID_SELECTOR.test(selector) and domain is document elements = domain.getElementById selector.replace("#", "") unless elements then elements = [] else elements = domain.querySelectorAll selector ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.coffee
MIT
9becd344c755a00536e0471cbbca4958a3c0f589
2,055
https://github.com/soyjavi/QuoJS/blob/9becd344c755a00536e0471cbbca4958a3c0f589/source/quo.coffee
51
90
xhan/qqbot:tests/leak.coffee:1:raw_corpus
raw_corpus
#!/usr/bin/env coffee log = new (require 'log')('debug') class Group on: (@callback)-> dispatch: (msg)-> log.info 'dispatch',msg @callback(msg) if @callback cb: -> @callback class Bot constructor:(@list = [])-> setInterval => o('bbb' ) for o in @list ...
CoffeeScript
xhan/qqbot
tests/leak.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/leak.coffee
1
50
xhan/qqbot:tests/leak.coffee:1:completion
completion
#!/usr/bin/env coffee log = new (require 'log')('debug') class Group on: (@callback)-> dispatch: (msg)-> log.info 'dispatch',msg @callback(msg) if @callback cb: -> @callback class Bot constructor:(@list = [])-> setInterval => o('bbb' ) for o in @list ...
### DEMO1 bot = new Bot() # ggg = null bot.listen_group 'group', (group)-> group.on (msg)-> log.info '- received',msg group.dispatch 'aaa' k = group.dispatch k('single') # ggg = group ### # ggg.dispatch 'ccc' # # setInterval -> # ggg.dispatch 'ddd' # ,500 ###期待 dispatch - receive ...
CoffeeScript
CoffeeScript
xhan/qqbot
tests/leak.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/leak.coffee
1
50
xhan/qqbot:tests/leak.coffee:2:raw_corpus
raw_corpus
实际结果 dispatch only 原因猜测 - js中没class概念 传给list的是个函数,破坏了里面的 this.xx 的概念 ### # DEMO2 group = new Group() group.on (msg)-> log.info '- received',msg group.dispatch 'kk' # obj = group # method = group.dispatch group['dispatch'] 'str'
CoffeeScript
xhan/qqbot
tests/leak.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/leak.coffee
51
71
xhan/qqbot:tests/leak.coffee:2:completion
completion
实际结果 dispatch only 原因猜测 - js中没class概念 传给list的是个函数,破坏了里面的 this.xx 的概念 ###
# DEMO2 group = new Group() group.on (msg)-> log.info '- received',msg group.dispatch 'kk' # obj = group # method = group.dispatch group['dispatch'] 'str'
CoffeeScript
CoffeeScript
xhan/qqbot
tests/leak.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/tests/leak.coffee
51
71
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
when undefined require("js-beautify").html(text, options) else undefined when "script" require("js-beautify")(text, options) when "style" switch lang when "scss" options = _.merge(options, ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:2:raw_corpus
raw_corpus
undefined ) result = if beautifiedText then match.replace(replaceText, "\n#{beautifiedText.trim()}\n") else match @verbose("Vue part", match, begin, type, text, lang, result) return result ) @verbose("Vue final results", results) resolve(results) )
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/vue-beautifier.coffee
51
59
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:2:completion
completion
undefined ) result = if beautifiedText then match.replace(replaceText, "\n#{beautifiedText.trim()}\n") else match @verbose("Vue part", match, begin, type, text, lang, result)
return result ) @verbose("Vue final results", results) resolve(results) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/vue-beautifier.coffee
51
59
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: false beautify: (text, language, options) -> return new @...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7c2c0d3541047f44454e9d5623ccd0d7d78eabbd
1,503
https://github.com/Glavin001/atom-beautify/blob/7c2c0d3541047f44454e9d5623ccd0d7d78eabbd/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: false beautify: (text, language, options) -> return new @...
when undefined require("js-beautify").html(text, options) else undefined when "script" require("js-beautify")(text, options) when "style" switch lang when "scss" options = _.merge(options, ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7c2c0d3541047f44454e9d5623ccd0d7d78eabbd
1,503
https://github.com/Glavin001/atom-beautify/blob/7c2c0d3541047f44454e9d5623ccd0d7d78eabbd/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
when undefined require("js-beautify").html(text, options) else undefined when "script" require("js-beautify")(text, options) when "style" switch lang when "scss" options = _.merge(options, ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
3c14757b4db2e5d48bed1a84ffb112ef3bbeba0d
1,503
https://github.com/Glavin001/atom-beautify/blob/3c14757b4db2e5d48bed1a84ffb112ef3bbeba0d/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
when undefined require("js-beautify").html(text, options) else undefined when "script" require("js-beautify")(text, options) when "style" switch lang when "scss" options = _.merge(options, ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
3c14757b4db2e5d48bed1a84ffb112ef3bbeba0d
1,503
https://github.com/Glavin001/atom-beautify/blob/3c14757b4db2e5d48bed1a84ffb112ef3bbeba0d/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
3435e16eb45fe1cb8bdbc5f47a1a3df1e944198a
1,503
https://github.com/Glavin001/atom-beautify/blob/3435e16eb45fe1cb8bdbc5f47a1a3df1e944198a/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true beautify: (text, language, options) -> return new @P...
when undefined require("js-beautify").html(text, options) else undefined when "script" require("js-beautify")(text, options) when "style" switch lang when "sass", "scss" options = _.merge(options, ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
3435e16eb45fe1cb8bdbc5f47a1a3df1e944198a
1,503
https://github.com/Glavin001/atom-beautify/blob/3435e16eb45fe1cb8bdbc5f47a1a3df1e944198a/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
a1b19ba8aabb8b9216ce78a271a70002d37b7dcf
1,503
https://github.com/Glavin001/atom-beautify/blob/a1b19ba8aabb8b9216ce78a271a70002d37b7dcf/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beauti...
"use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(text, language, options) { return new this.Promise...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
a1b19ba8aabb8b9216ce78a271a70002d37b7dcf
1,503
https://github.com/Glavin001/atom-beautify/blob/a1b19ba8aabb8b9216ce78a271a70002d37b7dcf/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(t...
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
a1b19ba8aabb8b9216ce78a271a70002d37b7dcf
1,503
https://github.com/Glavin001/atom-beautify/blob/a1b19ba8aabb8b9216ce78a271a70002d37b7dcf/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
match.replace(text, "\n" + require("js-beautify").html(text, options) + "\n") else match when "script" match.replace(text, "\n" + require("js-beautify")(text, options) + "\n") when "style" switch lang when "sass", "scss" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
a1b19ba8aabb8b9216ce78a271a70002d37b7dcf
1,503
https://github.com/Glavin001/atom-beautify/blob/a1b19ba8aabb8b9216ce78a271a70002d37b7dcf/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beauti...
"use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(text, language, options) { return new this.Promise...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(t...
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" link: "https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/vue-beautifier.coffee" options: Vue: true ...
match.replace(text, "\n" + require("js-beautify").html(text, options) + "\n") else match when "script" match.replace(text, "\n" + require("js-beautify")(text, options) + "\n") when "style" switch lang when "sass", "scss" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/vue-beautifier.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(^...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
f9d643cc5f6b0e4132b0b1301d2230140ba9609b
1,503
https://github.com/Glavin001/atom-beautify/blob/f9d643cc5f6b0e4132b0b1301d2230140ba9609b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> re...
"use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(text, language, options) { return new this.Promise...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
f9d643cc5f6b0e4132b0b1301d2230140ba9609b
1,503
https://github.com/Glavin001/atom-beautify/blob/f9d643cc5f6b0e4132b0b1301d2230140ba9609b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(t...
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(^...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
f9d643cc5f6b0e4132b0b1301d2230140ba9609b
1,503
https://github.com/Glavin001/atom-beautify/blob/f9d643cc5f6b0e4132b0b1301d2230140ba9609b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(^...
match.replace(text, "\n" + require("js-beautify").html(text, options) + "\n") else match when "script" match.replace(text, "\n" + require("js-beautify")(text, options) + "\n") when "style" switch lang when "sass", "scss" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
f9d643cc5f6b0e4132b0b1301d2230140ba9609b
1,503
https://github.com/Glavin001/atom-beautify/blob/f9d643cc5f6b0e4132b0b1301d2230140ba9609b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(<...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7ebc41be64fba0e037221344ec937e070533909b
1,503
https://github.com/Glavin001/atom-beautify/blob/7ebc41be64fba0e037221344ec937e070533909b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> re...
"use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(text, language, options) { return new this.Promise...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7ebc41be64fba0e037221344ec937e070533909b
1,503
https://github.com/Glavin001/atom-beautify/blob/7ebc41be64fba0e037221344ec937e070533909b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, VueBeautifier, _, prettydiff; Beautifier = require('./beautifier'); prettydiff = require("prettydiff"); _ = require('lodash'); module.exports = VueBeautifier = (function() { class VueBeautifier extends Beautifier { beautify(t...
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(<...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7ebc41be64fba0e037221344ec937e070533909b
1,503
https://github.com/Glavin001/atom-beautify/blob/7ebc41be64fba0e037221344ec937e070533909b/src/beautifiers/vue-beautifier.coffee
1
49
Glavin001/atom-beautify:src/beautifiers/vue-beautifier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettydiff = require("prettydiff") _ = require('lodash') module.exports = class VueBeautifier extends Beautifier name: "Vue Beautifier" options: Vue: true beautify: (text, language, options) -> return new @Promise((resolve, reject) -> regexp = /(<...
match.replace(text, "\n" + require("js-beautify").html(text, options) + "\n") else match when "script" match.replace(text, "\n" + require("js-beautify")(text, options) + "\n") when "style" switch lang when "sass", "scss" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/vue-beautifier.coffee
MIT
7ebc41be64fba0e037221344ec937e070533909b
1,503
https://github.com/Glavin001/atom-beautify/blob/7ebc41be64fba0e037221344ec937e070533909b/src/beautifiers/vue-beautifier.coffee
1
49
meltingice/psd.js:lib/psd/layer/helpers.coffee:1:raw_corpus
raw_corpus
module.exports = isFolder: -> if @adjustments['sectionDivider']? @adjustments['sectionDivider'].isFolder else if @adjustments['nestedSectionDivider']? @adjustments['nestedSectionDivider'].isFolder else @name is "<Layer group>" isFolderEnd: -> if @adjustments['sectionDivider']? ...
CoffeeScript
meltingice/psd.js
lib/psd/layer/helpers.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/helpers.coffee
1
16
meltingice/psd.js:lib/psd/layer/helpers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = isFolder: -> if @adjustments['sectionDivider']? @adjustments['sectionDivider'].isFolder else if @adjustments['nestedSectionDivider']? @adjustments['nestedSectionDivider'].isFolder else @name is "<Layer group>" i...
module.exports = { isFolder: function() { if (this.adjustments['sectionDivider'] != null) { return this.adjustments['sectionDivider'].isFolder; } else if (this.adjustments['nestedSectionDivider'] != null) { return this.adjustments['nestedSectionDivider'].isFolder; } else { return this.na...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/helpers.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/helpers.coffee
1
16
meltingice/psd.js:lib/psd/layer/helpers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { isFolder: function() { if (this.adjustments['sectionDivider'] != null) { return this.adjustments['sectionDivider'].isFolder; } else if (this.adjustments['nestedSectionDivider'] != null) { return this.adjustments['nestedSecti...
module.exports = isFolder: -> if @adjustments['sectionDivider']? @adjustments['sectionDivider'].isFolder else if @adjustments['nestedSectionDivider']? @adjustments['nestedSectionDivider'].isFolder else @name is "<Layer group>" isFolderEnd: -> if @adjustments['sectionDivider']? ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/helpers.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/helpers.coffee
1
16
meltingice/psd.js:lib/psd/layer/helpers.coffee:1:completion
completion
module.exports = isFolder: -> if @adjustments['sectionDivider']? @adjustments['sectionDivider'].isFolder else if @adjustments['nestedSectionDivider']? @adjustments['nestedSectionDivider'].isFolder else @name is "<Layer group>"
isFolderEnd: -> if @adjustments['sectionDivider']? @adjustments['sectionDivider'].isHidden else if @adjustments['nestedSectionDivider']? @adjustments['nestedSectionDivider'].isHidden else @name is "</Layer group>"
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/helpers.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/helpers.coffee
1
16
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:1:raw_corpus
raw_corpus
React = require 'react' cx = require 'classnames' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' query = require '../query' mixinQuery = require '../mixin/query' mixinSubscribe = require '../mixin/sub...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' cx = require 'classnames' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' query = require '../query' mixinQuery = requir...
var Immutable, LiteLoadingCircle, PureRenderMixin, React, SearchList, T, TeamName, cx, div, handlers, input, l, lang, mixinQuery, mixinSubscribe, orders, query, recorder, span; React = require('react'); cx = require('classnames'); recorder = require('actions-recorder'); Immutable = require('immutable'); PureRender...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, LiteLoadingCircle, PureRenderMixin, React, SearchList, T, TeamName, cx, div, handlers, input, l, lang, mixinQuery, mixinSubscribe, orders, query, recorder, span; React = require('react'); cx = require('classnames'); recorder = require('actions-rec...
React = require 'react' cx = require 'classnames' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' query = require '../query' mixinQuery = require '../mixin/query' mixinSubscribe = require '../mixin/sub...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:1:completion
completion
React = require 'react' cx = require 'classnames' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' query = require '../query' mixinQuery = require '../mixin/query' mixinSubscribe = require '../mixin/sub...
module.exports = React.createClass displayName: 'forward-menu' mixins: [ mixinQuery, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired onTeamSwitch: T.func.isRequired getInitialState: -> teams: @getTeams() componentDidMount: -> @subscribe recorder, => @setState...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:2:raw_corpus
raw_corpus
large: false showSource: true showUnread: false onClick: @onTeamSwitch data: team if @state.selectedId is team.get('_id') LiteLoadingCircle size: 24 stroke: '#FA6855' render: -> div className: 'forward-team flex-ver...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
51
63
jianliaoim/talk-os:talk-web/client/app/forward-team.coffee:2:completion
completion
large: false showSource: true showUnread: false onClick: @onTeamSwitch data: team if @state.selectedId is team.get('_id')
LiteLoadingCircle size: 24 stroke: '#FA6855' render: -> div className: 'forward-team flex-vert', @renderTeamList()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/forward-team.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/forward-team.coffee
51
63
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:1:raw_corpus
raw_corpus
cx = require 'classnames' React = require 'react' recorder = require 'actions-recorder' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' detect = require '../util/detect' { div } = React.DOM module...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cx = require 'classnames' React = require 'react' recorder = require 'actions-recorder' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' detect...
var PureRenderMixin, React, cx, detect, div, lang, mixinSubscribe, query, recorder; cx = require('classnames'); React = require('react'); recorder = require('actions-recorder'); PureRenderMixin = require('react-addons-pure-render-mixin'); query = require('../query'); lang = require('../locales/lang'); mixinSubsc...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PureRenderMixin, React, cx, detect, div, lang, mixinSubscribe, query, recorder; cx = require('classnames'); React = require('react'); recorder = require('actions-recorder'); PureRenderMixin = require('react-addons-pure-render-mixin'); query = require('../q...
cx = require 'classnames' React = require 'react' recorder = require 'actions-recorder' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' detect = require '../util/detect' { div } = React.DOM module...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:1:completion
completion
cx = require 'classnames' React = require 'react' recorder = require 'actions-recorder' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' detect = require '../util/detect' { div } = React.DOM module...
alias: @getAlias() componentDidMount: -> @subscribe recorder, => @setState displayMode: @getDisplayMode() alias: @getAlias() getDisplayMode: -> query.prefs(recorder.getState())?.get('displayMode') or 'default' getAlias: -> alias = query.contactPrefsBy(recorder.getState(), @pro...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:2:raw_corpus
raw_corpus
div className: 'contact-banner', div className: displayModeClass, if @state.displayMode is 'default' div className: 'avatar img-circle img-60' style: backgroundImage: "url('#{@props.data.get('avatarUrl')}')" div className: 'box', div classN...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
51
61
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript div className: 'contact-banner', div className: displayModeClass, if @state.displayMode is 'default' div className: 'avatar img-circle img-60' style: backgroundImage: "url('#{@props.data.get('avatarUrl...
div({ className: 'contact-banner' }, div({ className: displayModeClass }, this.state.displayMode === 'default' ? div({ className: 'avatar img-circle img-60', style: { backgroundImage: `url('${this.props.data.get('avatarUrl')}')` } }) : void 0, div({ className: 'box' }, div({ className: 'name' }, this....
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
51
61
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript div({ className: 'contact-banner' }, div({ className: displayModeClass }, this.state.displayMode === 'default' ? div({ className: 'avatar img-circle img-60', style: { backgroundImage: `url('${this.props.data.get('avatarUrl')}')` } }) : void 0, div({ ...
div className: 'contact-banner', div className: displayModeClass, if @state.displayMode is 'default' div className: 'avatar img-circle img-60' style: backgroundImage: "url('#{@props.data.get('avatarUrl')}')" div className: 'box', div classN...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
51
61
jianliaoim/talk-os:talk-web/client/app/contact-banner.coffee:2:completion
completion
div className: 'contact-banner', div className: displayModeClass, if @state.displayMode is 'default' div className: 'avatar img-circle img-60'
style: backgroundImage: "url('#{@props.data.get('avatarUrl')}')" div className: 'box', div className: 'name', @getAlias() or name div className: 'about', note
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/contact-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/contact-banner.coffee
51
61
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:raw_corpus
raw_corpus
zxcvbn = require('../zxcvbn'); assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).score, 0...
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
5a7f58cd246323ef6aac0c41803fa8f98142b953
15,961
https://github.com/dropbox/zxcvbn/blob/5a7f58cd246323ef6aac0c41803fa8f98142b953/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript zxcvbn = require('../zxcvbn'); assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); ...
var assert, zxcvbn; zxcvbn = require('../zxcvbn'); assert = require('assert'); describe('zxcvbn', function() { return describe('#scoring', function() { return it('should be stateless', function() { var password; password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 befor...
CoffeeScript
JavaScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
5a7f58cd246323ef6aac0c41803fa8f98142b953
15,961
https://github.com/dropbox/zxcvbn/blob/5a7f58cd246323ef6aac0c41803fa8f98142b953/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var assert, zxcvbn; zxcvbn = require('../zxcvbn'); assert = require('assert'); describe('zxcvbn', function() { return describe('#scoring', function() { return it('should be stateless', function() { var password; password = 'jhakef-87'; as...
zxcvbn = require('../zxcvbn'); assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).score, 0...
JavaScript
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
5a7f58cd246323ef6aac0c41803fa8f98142b953
15,961
https://github.com/dropbox/zxcvbn/blob/5a7f58cd246323ef6aac0c41803fa8f98142b953/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:completion
completion
zxcvbn = require('../zxcvbn'); assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', ->
it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).score, 0, 'score drops to 0 when password is added to user_inputs'); assert.equal(zxcvbn(password).score, 4, "scor...
CoffeeScript
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
5a7f58cd246323ef6aac0c41803fa8f98142b953
15,961
https://github.com/dropbox/zxcvbn/blob/5a7f58cd246323ef6aac0c41803fa8f98142b953/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:raw_corpus
raw_corpus
zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).s...
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
482ed03a10779ec125100721c2d828b97abf9ea6
15,961
https://github.com/dropbox/zxcvbn/blob/482ed03a10779ec125100721c2d828b97abf9ea6/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inpu...
var assert, zxcvbn; zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe('zxcvbn', function() { return describe('#scoring', function() { return it('should be stateless', function() { var password; password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is ...
CoffeeScript
JavaScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
482ed03a10779ec125100721c2d828b97abf9ea6
15,961
https://github.com/dropbox/zxcvbn/blob/482ed03a10779ec125100721c2d828b97abf9ea6/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var assert, zxcvbn; zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe('zxcvbn', function() { return describe('#scoring', function() { return it('should be stateless', function() { var password; password = 'jhakef-87'; ...
zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', -> it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).s...
JavaScript
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
482ed03a10779ec125100721c2d828b97abf9ea6
15,961
https://github.com/dropbox/zxcvbn/blob/482ed03a10779ec125100721c2d828b97abf9ea6/test/test-zxcvbn.coffee
1
11
dropbox/zxcvbn:test/test-zxcvbn.coffee:1:completion
completion
zxcvbn = require('../zxcvbn').zxcvbn; assert = require('assert'); describe 'zxcvbn', -> describe '#scoring', ->
it 'should be stateless', -> password = 'jhakef-87'; assert.equal(zxcvbn(password).score, 4, 'score is 4 before adding to user_inputs'); assert.equal(zxcvbn(password, [ password ]).score, 0, 'score drops to 0 when password is added to user_inputs'); assert.equal(zxcvbn(password).score, 4, "scor...
CoffeeScript
CoffeeScript
dropbox/zxcvbn
test/test-zxcvbn.coffee
MIT
482ed03a10779ec125100721c2d828b97abf9ea6
15,961
https://github.com/dropbox/zxcvbn/blob/482ed03a10779ec125100721c2d828b97abf9ea6/test/test-zxcvbn.coffee
1
11
twilson63/express-coffee:test/users_test.coffee:1:raw_corpus
raw_corpus
cleanDB = (done) -> User.remove {}, -> done() describe 'User', -> before cleanDB user_id = null it "should be created", (done) -> request(app) .post("/users/create") .send(INITIAL_DATA) .expect 201, (err, res) -> res.body.should.containEql(INITIAL_DATA) res.body.shou...
CoffeeScript
twilson63/express-coffee
test/users_test.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/test/users_test.coffee
15
64