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.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent...
environment.bind "touchcancel", _cancel add = (gesture) -> HANDLERS[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> STARTED = true _or...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
51
74
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @
_handle = (eventName, target, data) -> for name, handler of HANDLERS when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobile() then event.touches else [event] return ({x: t.pageX, y: t.pageY} for t in touches) add : ad...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
51
74
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback _handle = (eventName, target...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3e94097849c8265b1e1f85eded77562ec42e7672
2,055
https://github.com/soyjavi/QuoJS/blob/3e94097849c8265b1e1f85eded77562ec42e7672/source/quo.gestures.coffee
51
73
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback
_handle = (eventName, target, data) -> for name, handler of HANDLERS when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobile() then event.touches else [event] return ({x: t.pageX, y: t.pageY} for t in touches) add : ad...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3e94097849c8265b1e1f85eded77562ec42e7672
2,055
https://github.com/soyjavi/QuoJS/blob/3e94097849c8265b1e1f85eded77562ec42e7672/source/quo.gestures.coffee
51
73
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = $$.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _o...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = $$.gesture = do ($$ = Quo) -> STARTED = fa...
/* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.gesture = $$.gesture = (function($$) { var HANDLERS, STARTED, _data, _end, _move, _originalEvent, _start, add, trigger; ...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.gesture = $$.gesture = (function($$) { var HANDLERS, STARTED, _dat...
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = $$.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _o...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = $$.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _o...
environment.bind "touchcancel", _cancel add = (gesture) -> HANDLERS[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> STARTED = true _or...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ff24a23aa557eabf4db8c0adbe9712f8a960293d
2,055
https://github.com/soyjavi/QuoJS/blob/ff24a23aa557eabf4db8c0adbe9712f8a960293d/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = do ($$ = Quo) -> STARTED = false HANDLER...
/* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.gesture = (function($$) { var HANDLERS, STARTED, _data, _end, _move, _originalEvent, _start, add, trigger; STARTED = fa...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.gesture = (function($$) { var HANDLERS, STARTED, _data, _end, _mov...
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.gesture = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent ...
environment.bind "touchcancel", _cancel add = (gesture) -> HANDLERS[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> STARTED = true _or...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event) -> $$.fn[event] = (callback) -> event_name = if event is "touch" then "touchend" else event $$(document.body).delegate @sele...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
51
74
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_handle "end", ev.target, _data STARTED = false _cancel = (ev) -> STARTED = false _handle "cancel" _addDelegations = (events) -> events.forEach (event) -> $$.fn[event] = (callback) -> event_name = if event is "touch" then "touchend" else event $$(document.body).delegate @sele...
_handle = (eventName, target, data) -> for name, handler of HANDLERS when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobile() then event.touches else [event] return ({x: t.pageX, y: t.pageY} for t in touches) add : ad...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
c5b858856bd2fb3f2b9d54d724df6127ae364049
2,055
https://github.com/soyjavi/QuoJS/blob/c5b858856bd2fb3f2b9d54d724df6127ae364049/source/quo.gestures.coffee
51
74
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:raw_corpus
raw_corpus
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:completion
completion
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
force: "force_indentation" quoteConvert: "convert_quotes" vertical: ['align_assignments', (align_assignments) -> if (align_assignments is true ) then \ "all" else "none" ] wrap: "wrap_line_length" space: "space_after_anon_function" noleadzero: "no_lead_zero" e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, la...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, la...
# Select Prettydiff language lang = "auto" switch language when "CSV" lang = "csv" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handleba...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments args = source: text ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
104
133
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments args =
source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) result = prettydiff(options) # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettydiff.coffee
104
133
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, la...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, la...
# Select Prettydiff language lang = "auto" switch language when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig",...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
when "JSTL" lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arg...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
when "JSTL" lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arg...
args = source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) result = prettydiff(options) # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
d57c90c2e3115de7187a6ec0b51d417d7345bba3
1,503
https://github.com/Glavin001/atom-beautify/blob/d57c90c2e3115de7187a6ec0b51d417d7345bba3/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> ret...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0d3649a9f70b6575430e5fa83f07f33974a09a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/0d3649a9f70b6575430e5fa83f07f33974a09a9f/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> ret...
lang = "auto" switch language when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" l...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0d3649a9f70b6575430e5fa83f07f33974a09a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/0d3649a9f70b6575430e5fa83f07f33974a09a9f/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0d3649a9f70b6575430e5fa83f07f33974a09a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/0d3649a9f70b6575430e5fa83f07f33974a09a9f/src/beautifiers/prettydiff.coffee
104
133
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text
lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0d3649a9f70b6575430e5fa83f07f33974a09a9f
1,503
https://github.com/Glavin001/atom-beautify/blob/0d3649a9f70b6575430e5fa83f07f33974a09a9f/src/beautifiers/prettydiff.coffee
104
133
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:raw_corpus
raw_corpus
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:completion
completion
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
force: "force_indentation" quoteConvert: "convert_quotes" vertical: ['align_assignments', (align_assignments) -> if (align_assignments is true ) then \ "all" else "none" ] wrap: "wrap_line_length" space: "space_after_anon_function" noleadzero: "no_lead_zero" e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> options.crlf = @ge...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> options.crlf = @ge...
switch language when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Me...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
104
132
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text
lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
77da64f4f02d5823d1238453c71a67e79e6bb8bf
1,503
https://github.com/Glavin001/atom-beautify/blob/77da64f4f02d5823d1238453c71a67e79e6bb8bf/src/beautifiers/prettydiff.coffee
104
132
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:raw_corpus
raw_corpus
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:completion
completion
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
force: "force_indentation" quoteConvert: "convert_quotes" vertical: ['align_assignments', (align_assignments) -> if (align_assignments is true ) then \ "all" else "none" ] wrap: "wrap_line_length" space: "space_after_anon_function" noleadzero: "no_lead_zero" e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
CSV: true Coldfusion: true ERB: true EJS: true HTML: true Handlebars: true Nunjucks: true XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": tru...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
CSV: true Coldfusion: true ERB: true EJS: true HTML: true Handlebars: true Nunjucks: true XML: true SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": tru...
beautify: (text, language, options) -> options.crlf = options.crlf ? @getDefaultLineEnding(true,false) return new @Promise((resolve, reject) => prettydiff = require("prettydiff") _ = require('lodash') # Select Prettydiff language lang = "auto" switch language when "CSV" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "html" when "JavaScript" lang = "javascript" when "JSON" lang = "json" when "JSX" lang = "jsx" when "JSTL" lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
104
141
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "html" when "JavaScript" lang = "javascript" when "JSON" lang = "json" when "JSX" lang = "jsx" when "JSTL" lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang ...
# Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5
1,503
https://github.com/Glavin001/atom-beautify/blob/c7d20d0c10d4b301add6d8dedd52ab4c435a9ed5/src/beautifiers/prettydiff.coffee
104
141
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promi...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
97d62680e4057dc20cd7d8f92b00c9038c785fa3
1,503
https://github.com/Glavin001/atom-beautify/blob/97d62680e4057dc20cd7d8f92b00c9038c785fa3/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promi...
switch language when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
97d62680e4057dc20cd7d8f92b00c9038c785fa3
1,503
https://github.com/Glavin001/atom-beautify/blob/97d62680e4057dc20cd7d8f92b00c9038c785fa3/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, language, option...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f
1,503
https://github.com/Glavin001/atom-beautify/blob/6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
SVG: true Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true "Golang Template": true } beautify: (text, language, option...
lang = "auto" switch language when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" l...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f
1,503
https://github.com/Glavin001/atom-beautify/blob/6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments args = ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f
1,503
https://github.com/Glavin001/atom-beautify/blob/6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments args =
source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f
1,503
https://github.com/Glavin001/atom-beautify/blob/6f9f36ac4a9e592e51e90a3611d5a83d25f5a44f/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments args = ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
40a1a4237a80375ad4e94003f8930b527459d77f
1,503
https://github.com/Glavin001/atom-beautify/blob/40a1a4237a80375ad4e94003f8930b527459d77f/src/beautifiers/prettydiff.coffee
104
134
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "go" else lang = "auto" # Prettydiff Arguments
args = source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) result = prettydiff(options) # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
40a1a4237a80375ad4e94003f8930b527459d77f
1,503
https://github.com/Glavin001/atom-beautify/blob/40a1a4237a80375ad4e94003f8930b527459d77f/src/beautifiers/prettydiff.coffee
104
134
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "gohtml" else lang = "auto" # Prettydiff Arguments args ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
63947d851e3e8f7b6d9ef4369a765d4e44291816
1,503
https://github.com/Glavin001/atom-beautify/blob/63947d851e3e8f7b6d9ef4369a765d4e44291816/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "jsp" when "CSS" lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" when "Golang Template" lang = "gohtml" else lang = "auto" # Prettydiff Arguments args ...
source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
63947d851e3e8f7b6d9ef4369a765d4e44291816
1,503
https://github.com/Glavin001/atom-beautify/blob/63947d851e3e8f7b6d9ef4369a765d4e44291816/src/beautifiers/prettydiff.coffee
104
135
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:raw_corpus
raw_corpus
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:completion
completion
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
force: "force_indentation" quoteConvert: "convert_quotes" vertical: ['align_assignments', (align_assignments) -> if (align_assignments is true ) then \ "all" else "none" ] wrap: "wrap_line_length" space: "space_after_anon_function" noleadzero: "no_lead_zero" e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, r...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true "UX Markup": true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, r...
when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" when "SGML" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Merge args intos option...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
104
131
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "css" when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang
mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
0f82daa55c8707472268c254c66fd8eb3718aa2a
1,503
https://github.com/Glavin001/atom-beautify/blob/0f82daa55c8707472268c254c66fd8eb3718aa2a/src/beautifiers/prettydiff.coffee
104
131
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => pretty...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
5b083d21c6e8e4dea54fad65e6e8478163a1cf46
1,503
https://github.com/Glavin001/atom-beautify/blob/5b083d21c6e8e4dea54fad65e6e8478163a1cf46/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
Spacebars: true JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => pretty...
lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" when "SGML" lang = "markup" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
5b083d21c6e8e4dea54fad65e6e8478163a1cf46
1,503
https://github.com/Glavin001/atom-beautify/blob/5b083d21c6e8e4dea54fad65e6e8478163a1cf46/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Merge args intos options _.merge(optio...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
5b083d21c6e8e4dea54fad65e6e8478163a1cf46
1,503
https://github.com/Glavin001/atom-beautify/blob/5b083d21c6e8e4dea54fad65e6e8478163a1cf46/src/beautifiers/prettydiff.coffee
104
130
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
when "LESS" lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang
mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
5b083d21c6e8e4dea54fad65e6e8478163a1cf46
1,503
https://github.com/Glavin001/atom-beautify/blob/5b083d21c6e8e4dea54fad65e6e8478163a1cf46/src/beautifiers/prettydiff.coffee
104
130
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:raw_corpus
raw_corpus
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:1:completion
completion
module.exports = class PrettyDiff extends Beautifier name: "Pretty Diff" link: "https://github.com/prettydiff/prettydiff" options: { # Apply these options first / globally, for all languages _: inchar: ["indent_with_tabs", "indent_char", (indent_with_tabs, indent_char) -> if (indent_with_tab...
force: "force_indentation" quoteConvert: "convert_quotes" vertical: ['align_assignments', (align_assignments) -> if (align_assignments is true ) then \ "all" else "none" ] wrap: "wrap_line_length" space: "space_after_anon_function" noleadzero: "no_lead_zero" e...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
4
53
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => prettydiff = require("pret...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
JSX: true JavaScript: true CSS: true SCSS: true JSON: true TSS: true Twig: true LESS: true Swig: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => prettydiff = require("pret...
when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" when "SGML" lang = "markup" when "XML", "...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Merge args intos options _.merge(options, args) # Bea...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
104
129
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "less" when "SCSS" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify"
# Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
69aefcd1cb9cdfa83f40eb3a4a697ca101503241
1,503
https://github.com/Glavin001/atom-beautify/blob/69aefcd1cb9cdfa83f40eb3a4a697ca101503241/src/beautifiers/prettydiff.coffee
104
129
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:raw_corpus
raw_corpus
JSX: true JavaScript: true CSS: true SCSS: true Sass: true JSON: true TSS: true Twig: true LESS: true Swig: true UX: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
2fa06c020331982ecdb358b2a01235f6e8eb394b
1,503
https://github.com/Glavin001/atom-beautify/blob/2fa06c020331982ecdb358b2a01235f6e8eb394b/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:2:completion
completion
JSX: true JavaScript: true CSS: true SCSS: true Sass: true JSON: true TSS: true Twig: true LESS: true Swig: true UX: true Visualforce: true "Riot.js": true XTemplate: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) => ...
when "CSV" lang = "csv" when "Coldfusion" lang = "html" when "EJS", "Twig" lang = "ejs" when "ERB" lang = "html_ruby" when "Handlebars", "Mustache", "Spacebars", "Swig", "Riot.js", "XTemplate" lang = "handlebars" when "SGML" ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
2fa06c020331982ecdb358b2a01235f6e8eb394b
1,503
https://github.com/Glavin001/atom-beautify/blob/2fa06c020331982ecdb358b2a01235f6e8eb394b/src/beautifiers/prettydiff.coffee
54
103
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:raw_corpus
raw_corpus
lang = "css" when "LESS" lang = "less" when "SCSS", "Sass" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang mode: "beautify" # Merge args into...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
2fa06c020331982ecdb358b2a01235f6e8eb394b
1,503
https://github.com/Glavin001/atom-beautify/blob/2fa06c020331982ecdb358b2a01235f6e8eb394b/src/beautifiers/prettydiff.coffee
104
131
Glavin001/atom-beautify:src/beautifiers/prettydiff.coffee:3:completion
completion
lang = "css" when "LESS" lang = "less" when "SCSS", "Sass" lang = "scss" when "TSS" lang = "tss" else lang = "auto" # Prettydiff Arguments args = source: text lang: lang
mode: "beautify" # Merge args intos options _.merge(options, args) # Beautify @verbose('prettydiff', options) output = prettydiff.api(options) result = output[0] # Return beautified text resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettydiff.coffee
MIT
2fa06c020331982ecdb358b2a01235f6e8eb394b
1,503
https://github.com/Glavin001/atom-beautify/blob/2fa06c020331982ecdb358b2a01235f6e8eb394b/src/beautifiers/prettydiff.coffee
104
131
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:raw_corpus
raw_corpus
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func f: -> func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> ...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func f: -> func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) ->...
var func, outerobj; func = function(text, ...expressions) { return `text: [${text.join('|')}] expressions: [${expressions.join('|')}]`; }; outerobj = { obj: { func: func, f: function() { return func; } } }; // Example use test("tagged template literal for html templating", function() { var ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var func, outerobj; func = function(text, ...expressions) { return `text: [${text.join('|')}] expressions: [${expressions.join('|')}]`; }; outerobj = { obj: { func: func, f: function() { return func; } } }; // Example use test("tagged tem...
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func f: -> func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> ...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:completion
completion
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func f: -> func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> ...
Hi #{state.name}. You're looking #{state.adjective}! </p> """ # Simple, non-interpolated strings test "tagged template literal with a single-line single-quote string", -> eq 'text: [single-line single quotes] expressions: []', func'single-line single quotes' test "tagged template literal with a single-l...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:2:raw_corpus
raw_corpus
test "tagged template literal with a multi-line double-quote string", -> eq 'text: [multi-line double quotes] expressions: []', func"multi-line double quotes" test "tagged template literal with a multi-line single-quote block string", -> eq 'text: [multi-line\nblock string] expressions: []', func''' ...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
65
114
jashkenas/coffeescript:test/tagged_template_literals.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "tagged template literal with a multi-line double-quote string", -> eq 'text: [multi-line double quotes] expressions: []', func"multi-line double quotes" test "tagged template literal with a multi-line single-quote block string", -> eq 'text: [...
test("tagged template literal with a multi-line double-quote string", function() { return eq('text: [multi-line double quotes] expressions: []', func`multi-line double quotes`); }); test("tagged template literal with a multi-line single-quote block string", function() { return eq('text: [multi-line\nblock string] ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
65
114
jashkenas/coffeescript:test/tagged_template_literals.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("tagged template literal with a multi-line double-quote string", function() { return eq('text: [multi-line double quotes] expressions: []', func`multi-line double quotes`); }); test("tagged template literal with a multi-line single-quote block string", func...
test "tagged template literal with a multi-line double-quote string", -> eq 'text: [multi-line double quotes] expressions: []', func"multi-line double quotes" test "tagged template literal with a multi-line single-quote block string", -> eq 'text: [multi-line\nblock string] expressions: []', func''' ...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
65
114
jashkenas/coffeescript:test/tagged_template_literals.coffee:2:completion
completion
test "tagged template literal with a multi-line double-quote string", -> eq 'text: [multi-line double quotes] expressions: []', func"multi-line double quotes" test "tagged template literal with a multi-line single-quote block string", -> eq 'text: [multi-line\nblock string] expressions: []', func''' ...
test "tagged template literal with a single-line double-quote block interpolated string", -> eq 'text: [single-line | block string | interpolation] expressions: [incredible|48]', func"""single-line #{'incredible'} block string #{6 * 8} interpolation""" test "tagged template literal with a multi-line double-quote i...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
65
114
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:raw_corpus
raw_corpus
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq '...
test("tagged template literal mixed dot and bracket notation recognized as a callable function", function() { return eq('text: [mixed notation] expressions: []', outerobj['obj'].func`mixed notation`); }); // Edge cases test("tagged template literal with an empty string", function() { return eq('text: [] expression...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("tagged template literal mixed dot and bracket notation recognized as a callable function", function() { return eq('text: [mixed notation] expressions: []', outerobj['obj'].func`mixed notation`); }); // Edge cases test("tagged template literal with an empty...
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:completion
completion
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
func"inner tagged #{func"#{'template'}"} literal" test "tagged template literal with backticks", -> eq 'text: [ES template literals look like this: `foo bar`] expressions: []', func"ES template literals look like this: `foo bar`" test "tagged template literal with escaped backticks", -> eq 'text: [ES template l...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:raw_corpus
raw_corpus
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template literal special escaping", -> eq 'text: [` ` \\` \\` \\\\...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
165
176
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template li...
test("tagged template literal with unnecessarily escaped ES interpolation", function() { return eq('text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func`ES template literals also look like this: \`3 + 5 = \${3+5}\``); }); test("tagged template literal special escaping", function(...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
165
176
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("tagged template literal with unnecessarily escaped ES interpolation", function() { return eq('text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func`ES template literals also look like this: \`3 + 5 = \${3+5}\``); }); tes...
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template literal special escaping", -> eq 'text: [` ` \\` \\` \\\\...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
165
176
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:completion
completion
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template literal special escaping", ->
eq 'text: [` ` \\` \\` \\\\` $ { ${ ${ \\${ \\${ \\\\${ | ` ${] expressions: [1]', func"` \` \\` \\\` \\\\` $ { ${ \${ \\${ \\\${ \\\\${ #{1} ` ${" test '#4467: tagged template literal call recognized as a callable function', -> eq 'text: [dot notation] expressions: []', outerobj.obj.f()'dot notation'
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
817c39a13065a900725943c33a79252a69d779e2
16,577
https://github.com/jashkenas/coffeescript/blob/817c39a13065a900725943c33a79252a69d779e2/test/tagged_template_literals.coffee
165
176
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:raw_corpus
raw_corpus
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> fullHtml ...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragme...
var func, outerobj; func = function(text, ...expressions) { return `text: [${text.join('|')}] expressions: [${expressions.join('|')}]`; }; outerobj = { obj: { func: func } }; // Example use test("tagged template literal for html templating", function() { var html, state; html = function(htmlFragments, ...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var func, outerobj; func = function(text, ...expressions) { return `text: [${text.join('|')}] expressions: [${expressions.join('|')}]`; }; outerobj = { obj: { func: func } }; // Example use test("tagged template literal for html templating", function()...
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> fullHtml ...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:1:completion
completion
func = (text, expressions...) -> "text: [#{text.join '|'}] expressions: [#{expressions.join '|'}]" outerobj = obj: func: func # Example use test "tagged template literal for html templating", -> html = (htmlFragments, expressions...) -> htmlFragments.reduce (fullHtml, htmlFragment, i) -> fullHtml ...
Hi #{state.name}. You're looking #{state.adjective}! </p> """ # Simple, non-interpolated strings test "tagged template literal with a single-line single-quote string", -> eq 'text: [single-line single quotes] expressions: []', func'single-line single quotes' test "tagged template literal with a single-l...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
15
64
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:raw_corpus
raw_corpus
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template literal special escaping", -> eq 'text: [` ` \\` \\` \\\\...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
165
171
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template li...
test("tagged template literal with unnecessarily escaped ES interpolation", function() { return eq('text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func`ES template literals also look like this: \`3 + 5 = \${3+5}\``); }); test("tagged template literal special escaping", function(...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
165
171
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("tagged template literal with unnecessarily escaped ES interpolation", function() { return eq('text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func`ES template literals also look like this: \`3 + 5 = \${3+5}\``); }); tes...
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`" test "tagged template literal special escaping", -> eq 'text: [` ` \\` \\` \\\\...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
165
171
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:completion
completion
test "tagged template literal with unnecessarily escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = ${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`"
test "tagged template literal special escaping", -> eq 'text: [` ` \\` \\` \\\\` $ { ${ ${ \\${ \\${ \\\\${ | ` ${] expressions: [1]', func"` \` \\` \\\` \\\\` $ { ${ \${ \\${ \\\${ \\\\${ #{1} ` ${"
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d45d78086934740645a1905ac9b8c56fd484383a
16,577
https://github.com/jashkenas/coffeescript/blob/d45d78086934740645a1905ac9b8c56fd484383a/test/tagged_template_literals.coffee
165
171
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:raw_corpus
raw_corpus
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d8abfae45749d99b409202408fcf845e1af0554b
16,577
https://github.com/jashkenas/coffeescript/blob/d8abfae45749d99b409202408fcf845e1af0554b/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq '...
test("tagged template literal mixed dot and bracket notation recognized as a callable function", function() { return eq('text: [mixed notation] expressions: []', outerobj['obj'].func`mixed notation`); }); // Edge cases test("tagged template literal with an empty string", function() { return eq('text: [] expression...
CoffeeScript
JavaScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d8abfae45749d99b409202408fcf845e1af0554b
16,577
https://github.com/jashkenas/coffeescript/blob/d8abfae45749d99b409202408fcf845e1af0554b/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript test("tagged template literal mixed dot and bracket notation recognized as a callable function", function() { return eq('text: [mixed notation] expressions: []', outerobj['obj'].func`mixed notation`); }); // Edge cases test("tagged template literal with an empty...
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
JavaScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d8abfae45749d99b409202408fcf845e1af0554b
16,577
https://github.com/jashkenas/coffeescript/blob/d8abfae45749d99b409202408fcf845e1af0554b/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:3:completion
completion
test "tagged template literal mixed dot and bracket notation recognized as a callable function", -> eq 'text: [mixed notation] expressions: []', outerobj['obj'].func'mixed notation' # Edge cases test "tagged template literal with an empty string", -> eq 'text: [] expressions: []', func'' test "tagged templat...
func"inner tagged #{func"#{'template'}"} literal" test "tagged template literal with backticks", -> eq 'text: [ES template literals look like this: `foo bar`] expressions: []', func"ES template literals look like this: `foo bar`" test "tagged template literal with escaped backticks", -> eq 'text: [ES template l...
CoffeeScript
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d8abfae45749d99b409202408fcf845e1af0554b
16,577
https://github.com/jashkenas/coffeescript/blob/d8abfae45749d99b409202408fcf845e1af0554b/test/tagged_template_literals.coffee
115
164
jashkenas/coffeescript:test/tagged_template_literals.coffee:4:raw_corpus
raw_corpus
test "tagged template literal with invalidly escaped ES interpolation", -> eq 'text: [ES template literals also look like this: `3 + 5 = \${3+5}`] expressions: []', func"ES template literals also look like this: `3 + 5 = \${3+5}`"
CoffeeScript
jashkenas/coffeescript
test/tagged_template_literals.coffee
MIT
d8abfae45749d99b409202408fcf845e1af0554b
16,577
https://github.com/jashkenas/coffeescript/blob/d8abfae45749d99b409202408fcf845e1af0554b/test/tagged_template_literals.coffee
165
167