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
jnordberg/wintersmith:src/content.coffee:6:raw_corpus
raw_corpus
Page.fromFile = (filename, base, callback) -> if !callback? callback = base base = path.dirname filename async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {markdown, metadata} = result ...
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
88
104
jnordberg/wintersmith:src/content.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Page.fromFile = (filename, base, callback) -> if !callback? callback = base base = path.dirname filename async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (...
Page.fromFile = function(filename, base, callback) { if (callback == null) { callback = base; base = path.dirname(filename); } return async.waterfall([ function(callback) { return fs.readFile(filename, callback); }, function(buffer, callback) { return parser(buffer.toString...
CoffeeScript
JavaScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
88
104
jnordberg/wintersmith:src/content.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript Page.fromFile = function(filename, base, callback) { if (callback == null) { callback = base; base = path.dirname(filename); } return async.waterfall([ function(callback) { return fs.readFile(filename, callback); }, function(buff...
Page.fromFile = (filename, base, callback) -> if !callback? callback = base base = path.dirname filename async.waterfall [ (callback) -> fs.readFile filename, callback (buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {markdown, metadata} = result ...
JavaScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
88
104
jnordberg/wintersmith:src/content.coffee:6:completion
completion
Page.fromFile = (filename, base, callback) -> if !callback? callback = base base = path.dirname filename async.waterfall [ (callback) -> fs.readFile filename, callback
(buffer, callback) -> parser buffer.toString(), callback (result, callback) -> {markdown, metadata} = result callback null, new Page path.relative(base, filename), markdown, metadata ], callback # Class ContentTree # not using Class since we need a clean prototype to iterate over
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
88
104
jnordberg/wintersmith:src/content.coffee:7:raw_corpus
raw_corpus
ContentTree = (filename) -> private = {} ['pages', 'directories', 'resources'].forEach (name) => private[name] = [] Object.defineProperty @, name, get: -> private[name] Object.defineProperty @, 'filename', get: -> filename Object.defineProperty @, 'index', get: -> @['index.md'] or @[...
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
105
115
jnordberg/wintersmith:src/content.coffee:7:completion
completion
ContentTree = (filename) -> private = {} ['pages', 'directories', 'resources'].forEach (name) => private[name] = [] Object.defineProperty @, name,
get: -> private[name] Object.defineProperty @, 'filename', get: -> filename Object.defineProperty @, 'index', get: -> @['index.md'] or @['index.markdown']
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
105
115
jnordberg/wintersmith:src/content.coffee:8:raw_corpus
raw_corpus
ContentTree.fromDirectory = (directory, base, callback) -> if !callback? callback = base base = directory tree = new ContentTree path.relative(base, directory) async.waterfall [ async.apply fs.readdir, directory (filenames, callback) -> async.forEach filenames, (filename, callback) -> ...
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
117
160
jnordberg/wintersmith:src/content.coffee:8:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ContentTree.fromDirectory = (directory, base, callback) -> if !callback? callback = base base = directory tree = new ContentTree path.relative(base, directory) async.waterfall [ async.apply fs.readdir, directory (filenames, callback) -> ...
ContentTree.fromDirectory = function(directory, base, callback) { var tree; if (callback == null) { callback = base; base = directory; } tree = new ContentTree(path.relative(base, directory)); return async.waterfall([ async.apply(fs.readdir, directory), function(filenames, callback) { ...
CoffeeScript
JavaScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
117
160
jnordberg/wintersmith:src/content.coffee:8:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ContentTree.fromDirectory = function(directory, base, callback) { var tree; if (callback == null) { callback = base; base = directory; } tree = new ContentTree(path.relative(base, directory)); return async.waterfall([ async.apply(fs.readdir, ...
ContentTree.fromDirectory = (directory, base, callback) -> if !callback? callback = base base = directory tree = new ContentTree path.relative(base, directory) async.waterfall [ async.apply fs.readdir, directory (filenames, callback) -> async.forEach filenames, (filename, callback) -> ...
JavaScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
117
160
jnordberg/wintersmith:src/content.coffee:8:completion
completion
ContentTree.fromDirectory = (directory, base, callback) -> if !callback? callback = base base = directory tree = new ContentTree path.relative(base, directory) async.waterfall [ async.apply fs.readdir, directory (filenames, callback) -> async.forEach filenames, (filename, callback) -> ...
basename = path.basename filename if ext == '.md' or ext == '.markdown' Page.fromFile filename, base, (error, page) -> page.metadata.fstats = stats tree[basename] = page tree.pages.push page callback error ...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
117
160
jnordberg/wintersmith:src/content.coffee:9:raw_corpus
raw_corpus
ContentTree.inspect = (tree, depth=0) -> rv = [] pad = '' for i in [0..depth] pad += ' ' for k, v of tree if v instanceof ContentTree s = "#{ k }/\n".bold s += ContentTree.inspect v, depth + 1 else if v instanceof Page s = k.green + " (url: #{ v.url }, template: #{ v.template })"....
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
162
176
jnordberg/wintersmith:src/content.coffee:9:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ContentTree.inspect = (tree, depth=0) -> rv = [] pad = '' for i in [0..depth] pad += ' ' for k, v of tree if v instanceof ContentTree s = "#{ k }/\n".bold s += ContentTree.inspect v, depth + 1 else if v instanceof Page s = k...
ContentTree.inspect = function(tree, depth = 0) { var i, j, k, pad, ref, rv, s, v; rv = []; pad = ''; for (i = j = 0, ref = depth; (0 <= ref ? j <= ref : j >= ref); i = 0 <= ref ? ++j : --j) { pad += ' '; } for (k in tree) { v = tree[k]; if (v instanceof ContentTree) { s = `${k}/\n`.bold;...
CoffeeScript
JavaScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
162
176
jnordberg/wintersmith:src/content.coffee:9:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ContentTree.inspect = function(tree, depth = 0) { var i, j, k, pad, ref, rv, s, v; rv = []; pad = ''; for (i = j = 0, ref = depth; (0 <= ref ? j <= ref : j >= ref); i = 0 <= ref ? ++j : --j) { pad += ' '; } for (k in tree) { v = tree[k]; if...
ContentTree.inspect = (tree, depth=0) -> rv = [] pad = '' for i in [0..depth] pad += ' ' for k, v of tree if v instanceof ContentTree s = "#{ k }/\n".bold s += ContentTree.inspect v, depth + 1 else if v instanceof Page s = k.green + " (url: #{ v.url }, template: #{ v.template })"....
JavaScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
162
176
jnordberg/wintersmith:src/content.coffee:9:completion
completion
ContentTree.inspect = (tree, depth=0) -> rv = [] pad = '' for i in [0..depth] pad += ' ' for k, v of tree if v instanceof ContentTree
s = "#{ k }/\n".bold s += ContentTree.inspect v, depth + 1 else if v instanceof Page s = k.green + " (url: #{ v.url }, template: #{ v.template })".grey else s = k + " (url: #{ v.url })".grey rv.push pad + s rv.join '\n'
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
162
176
jnordberg/wintersmith:src/content.coffee:10:raw_corpus
raw_corpus
ContentTree.flatten = (tree) -> items = tree.pages.concat tree.resources for dir in tree.directories items = items.concat ContentTree.flatten dir return items module.exports.Resource = Resource module.exports.Page = Page module.exports.ContentTree = ContentTree
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
178
186
jnordberg/wintersmith:src/content.coffee:10:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ContentTree.flatten = (tree) -> items = tree.pages.concat tree.resources for dir in tree.directories items = items.concat ContentTree.flatten dir return items module.exports.Resource = Resource module.exports.Page = Page module.exports.ContentTree = Co...
ContentTree.flatten = function(tree) { var dir, i, items, len, ref; items = tree.pages.concat(tree.resources); ref = tree.directories; for (i = 0, len = ref.length; i < len; i++) { dir = ref[i]; items = items.concat(ContentTree.flatten(dir)); } return items; }; module.exports.Resource = Resource; ...
CoffeeScript
JavaScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
178
186
jnordberg/wintersmith:src/content.coffee:10:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ContentTree.flatten = function(tree) { var dir, i, items, len, ref; items = tree.pages.concat(tree.resources); ref = tree.directories; for (i = 0, len = ref.length; i < len; i++) { dir = ref[i]; items = items.concat(ContentTree.flatten(dir)); } ...
ContentTree.flatten = (tree) -> items = tree.pages.concat tree.resources for dir in tree.directories items = items.concat ContentTree.flatten dir return items module.exports.Resource = Resource module.exports.Page = Page module.exports.ContentTree = ContentTree
JavaScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
178
186
jnordberg/wintersmith:src/content.coffee:10:completion
completion
ContentTree.flatten = (tree) -> items = tree.pages.concat tree.resources for dir in tree.directories items = items.concat ContentTree.flatten dir
return items module.exports.Resource = Resource module.exports.Page = Page module.exports.ContentTree = ContentTree
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
53c34112151122bfa5e603d6cce3f5e4742f9178
3,484
https://github.com/jnordberg/wintersmith/blob/53c34112151122bfa5e603d6cce3f5e4742f9178/src/content.coffee
178
186
jnordberg/wintersmith:src/content.coffee:5:raw_corpus
raw_corpus
class Page extends Model constructor: (@filename, @markdown, @metadata) -> getUrl: (base='/') -> name = stripExtension(@filename) if path.basename(name) is 'index' url = path.dirname name else url = name + '.html' path.join base, url getLocation: (base='/') -> path.join base, pa...
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/content.coffee
39
86
jnordberg/wintersmith:src/content.coffee:5:completion
completion
class Page extends Model constructor: (@filename, @markdown, @metadata) -> getUrl: (base='/') -> name = stripExtension(@filename) if path.basename(name) is 'index' url = path.dirname name else url = name + '.html' path.join base, url getLocation: (base='/') -> path.join base, pa...
@getHtml() @property 'title', -> @metadata.title or 'Untitled' @property 'template', -> @metadata.template or 'page' @property 'date', -> new Date(@metadata.date or 0) @property 'rfc822date', -> rfc822 @date @property 'intro', -> idx = ~@html.indexOf('<span class="more') or ~@html.ind...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/content.coffee
MIT
e667052259e523500a81ff104ea46f132acb1e04
3,484
https://github.com/jnordberg/wintersmith/blob/e667052259e523500a81ff104ea46f132acb1e04/src/content.coffee
39
86
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper') .empty() .scrollTop() if artistObject __artistObject = artistObject if __artistObject && $("#SideBar .active")....
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper') .empty() .scrollTop() if artistObject __artistObject = artistObject if __artistObject && $("#SideBar .active")....
$('#tmpl-tracklist-error') .tmpl({message: 'No tracks'}) .appendTo('#ContentWrapper') $ -> $('#ContentWrapper').on 'contextmenu', '.track-container', (e) -> _this = $(@) e.stopPropagation() menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
artist = _this.find('.artist').text() title = _this.find('.title').text() request url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&' + 'max-results=1&q=' + encodeURIComponent(artist + ' - ' + title) json: true, (error, response, data) -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:3:raw_corpus
raw_corpus
$(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active") $(@).addClass("active") if $(@).hasClass("fa-th") $('#ContentWrapper').removeClass("smallRows") else $('#ContentWrapper').addClass("smallRows") # Add to Favorites track_menu.items[0].click = -> Playlist...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
109
125
Atraci/Atraci:coffee/_tracklist.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active") $(@).addClass("active") if $(@).hasClass("fa-th") $('#ContentWrapper').removeClass("smallRows") else $('#ContentWrapper').addClass("smallRows") # Add t...
$(".trackListToolbar i").click(function() { $(".trackListToolbar i").removeClass("active"); $(this).addClass("active"); if ($(this).hasClass("fa-th")) { return $('#ContentWrapper').removeClass("smallRows"); } else { return $('#ContentWrapper').addClass("smallRows"); } }); // Add to Favorites track_me...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
109
125
Atraci/Atraci:coffee/_tracklist.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript $(".trackListToolbar i").click(function() { $(".trackListToolbar i").removeClass("active"); $(this).addClass("active"); if ($(this).hasClass("fa-th")) { return $('#ContentWrapper').removeClass("smallRows"); } else { return $('#ContentWrapper').addCl...
$(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active") $(@).addClass("active") if $(@).hasClass("fa-th") $('#ContentWrapper').removeClass("smallRows") else $('#ContentWrapper').addClass("smallRows") # Add to Favorites track_menu.items[0].click = -> Playlist...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
109
125
Atraci/Atraci:coffee/_tracklist.coffee:3:completion
completion
$(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active") $(@).addClass("active") if $(@).hasClass("fa-th") $('#ContentWrapper').removeClass("smallRows") else $('#ContentWrapper').addClass("smallRows")
# Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium'), currentContextTrack.find('.cover').attr('data-cover_url_large'), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
109
125
Atraci/Atraci:coffee/_tracklist.coffee:4:raw_corpus
raw_corpus
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 if $(this).position().top isnt $(this).prev().position().top return false divsInRow++ else divsInRow++ return divsInLastRow = $("#ContentWr...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
128
150
Atraci/Atraci:coffee/_tracklist.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 if $(this).position().top isnt $(this).prev().position().top return false divsInRow++ else ...
var calculateDivsInRow; calculateDivsInRow = function() { var divsInLastRow, divsInRow, to_add; $(".ghost").remove(); divsInRow = 0; $("#ContentWrapper .track-container").each(function() { if ($(this).prev().length > 0) { if ($(this).position().top !== $(this).prev().position().top) { return ...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
128
150
Atraci/Atraci:coffee/_tracklist.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var calculateDivsInRow; calculateDivsInRow = function() { var divsInLastRow, divsInRow, to_add; $(".ghost").remove(); divsInRow = 0; $("#ContentWrapper .track-container").each(function() { if ($(this).prev().length > 0) { if ($(this).position().t...
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 if $(this).position().top isnt $(this).prev().position().top return false divsInRow++ else divsInRow++ return divsInLastRow = $("#ContentWr...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
128
150
Atraci/Atraci:coffee/_tracklist.coffee:4:completion
completion
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 if $(this).position().top isnt $(this).prev().position().top return false divsInRow++ else divsInRow++ return
divsInLastRow = $("#ContentWrapper .track-container").length % divsInRow if divsInLastRow is 0 divsInLastRow = divsInRow to_add = divsInRow - divsInLastRow while to_add > 0 $("#ContentWrapper").append $("<div/>").addClass("track-container ghost") to_add-- return
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
128
150
Atraci/Atraci:coffee/_tracklist.coffee:5:raw_corpus
raw_corpus
window.onresize = -> clearTimeout addghost addghost = setTimeout(calculateDivsInRow, 100) return
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
152
155
Atraci/Atraci:coffee/_tracklist.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript window.onresize = -> clearTimeout addghost addghost = setTimeout(calculateDivsInRow, 100) return ```
window.onresize = function() { var addghost; clearTimeout(addghost); addghost = setTimeout(calculateDivsInRow, 100); };
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
152
155
Atraci/Atraci:coffee/_tracklist.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript window.onresize = function() { var addghost; clearTimeout(addghost); addghost = setTimeout(calculateDivsInRow, 100); }; ```
window.onresize = -> clearTimeout addghost addghost = setTimeout(calculateDivsInRow, 100) return
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
152
155
Atraci/Atraci:coffee/_tracklist.coffee:5:completion
completion
window.onresize = -> clearTimeout addghost
addghost = setTimeout(calculateDivsInRow, 100) return
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd
800
https://github.com/Atraci/Atraci/blob/ae12f0a9cbfb2919334b82274dbb8db5d77ff1dd/coffee/_tracklist.coffee
152
155
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
24d7afb1855b757ea89f9008008a0fb32d962ed7
800
https://github.com/Atraci/Atraci/blob/24d7afb1855b757ea89f9008008a0fb32d962ed7/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
title = _this.find('.title').text() request url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&' + 'max-results=1&q=' + encodeURIComponent(artist + ' - ' + title) json: true, (error, response, data) -> if not data.feed.entry # no results ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
24d7afb1855b757ea89f9008008a0fb32d962ed7
800
https://github.com/Atraci/Atraci/blob/24d7afb1855b757ea89f9008008a0fb32d962ed7/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find(...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
5714c6a83163cfe302d77a93a1efeb5e8af61f10
800
https://github.com/Atraci/Atraci/blob/5714c6a83163cfe302d77a93a1efeb5e8af61f10/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find(...
artist = _this.find('.artist').text() title = _this.find('.title').text() request # coffeelint: disable=max_line_length url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=' + encodeURIComponent(artist + ' - ' + title) # coffeelint: enable=max...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
5714c6a83163cfe302d77a93a1efeb5e8af61f10
800
https://github.com/Atraci/Atraci/blob/5714c6a83163cfe302d77a93a1efeb5e8af61f10/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:3:raw_corpus
raw_corpus
$('#ContentWrapper').addClass("smallRows") # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium'), currentContextTrack.f...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
5714c6a83163cfe302d77a93a1efeb5e8af61f10
800
https://github.com/Atraci/Atraci/blob/5714c6a83163cfe302d77a93a1efeb5e8af61f10/coffee/_tracklist.coffee
109
119
Atraci/Atraci:coffee/_tracklist.coffee:3:completion
completion
$('#ContentWrapper').addClass("smallRows") # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack(
currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium'), currentContextTrack.find('.cover').attr('data-cover_url_large'), 'Favorites' )
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
5714c6a83163cfe302d77a93a1efeb5e8af61f10
800
https://github.com/Atraci/Atraci/blob/5714c6a83163cfe302d77a93a1efeb5e8af61f10/coffee/_tracklist.coffee
109
119
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find(...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
54b12a273911ff60d0d40cabb2758cced9f68455
800
https://github.com/Atraci/Atraci/blob/54b12a273911ff60d0d40cabb2758cced9f68455/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find(...
artist = _this.find('.artist').text() title = _this.find('.title').text() request # coffeelint: disable=max_line_length url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=' + encodeURIComponent(artist + ' - ' + title) # coffeelint: enable=max...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
54b12a273911ff60d0d40cabb2758cced9f68455
800
https://github.com/Atraci/Atraci/blob/54b12a273911ff60d0d40cabb2758cced9f68455/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) menu.append new gui.MenuItem( label: 'Open in Youtube', click: -> artist = _this.find('.artist').text() title = _this.find('.title').text() request url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=' + encodeURIComponent(artist + ...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
65d6b1b27d7bf1b4046f25a7443fcee01bcf1f6e
800
https://github.com/Atraci/Atraci/blob/65d6b1b27d7bf1b4046f25a7443fcee01bcf1f6e/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) menu.append new gui.MenuItem( label: 'Open in Youtube', click: -> artist = _this.find('.artist').text() title = _this.find('.title').text() request url: 'http://gdata.youtube.com/feeds/api/videos?alt=json&max-results=1&q=' + encodeURIComponent(artist + ...
_this.find('.artist').text(), _this.find('.title').text(), playlist_name ) _this.remove() userTracking.event( "Playlist", "Remove Track to Playlist", playlist_name ).send() ) menu.popup e.clientX, e.clientY ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
65d6b1b27d7bf1b4046f25a7443fcee01bcf1f6e
800
https://github.com/Atraci/Atraci/blob/65d6b1b27d7bf1b4046f25a7443fcee01bcf1f6e/coffee/_tracklist.coffee
59
108
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
711494b66ceb9d2a3ede3d50a538c46c1d8d9db3
800
https://github.com/Atraci/Atraci/blob/711494b66ceb9d2a3ede3d50a538c46c1d8d9db3/coffee/_tracklist.coffee
59
99
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) if $('#SideBar li.active').hasClass('playlist') menu.append new gui.MenuItem(type: 'separator') playlist_name = $('#SideBar li.active').text() menu.append new gui.MenuItem( label: 'Remove from ' + playlist_name, click: -> Playlists.removeTrack( _this.find('...
menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active") $(@).addClass("active") if $(@).hasClass("fa-th") $('#ContentWrapper').removeClass("smallRows") else $('#ContentWrapper').addClass("smallRows") # Add to Favorites ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
711494b66ceb9d2a3ede3d50a538c46c1d8d9db3
800
https://github.com/Atraci/Atraci/blob/711494b66ceb9d2a3ede3d50a538c46c1d8d9db3/coffee/_tracklist.coffee
59
99
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper') .empty() .scrollTop() if artistObject __artistObject = artistObject if __artistObject && $("#SideBar .active")....
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper') .empty() .scrollTop() if artistObject __artistObject = artistObject if __artistObject && $("#SideBar .active")....
$('#tmpl-tracklist-error') .tmpl({message: 'No tracks'}) .appendTo('#ContentWrapper') $ -> $('#ContentWrapper').on 'contextmenu', '.track-container', (e) -> _this = $(@) e.stopPropagation() menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) __artistObject = artistObject if(__artistObject && $("#Sid...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) __artistObject = artistObject if(__artistObject && $("#Sid...
e.stopPropagation() menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( label: 'Add to ' + playlist.name, click: -> Playlists.addTrack( _this.find('.artist').text(), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
playlist_name ) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i")...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
59
84
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
playlist_name ) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i")...
$('#ContentWrapper').removeClass("smallRows"); else $('#ContentWrapper').addClass("smallRows"); # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
59
84
Atraci/Atraci:coffee/_tracklist.coffee:3:raw_corpus
raw_corpus
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 return false unless $(this).position().top is $(this).prev().position().top divsInRow++ else divsInRow++ return divsInLastRow = $("#ContentWrapper...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
87
104
Atraci/Atraci:coffee/_tracklist.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 return false unless $(this).position().top is $(this).prev().position().top divsInRow++ else div...
var calculateDivsInRow; calculateDivsInRow = function() { var divsInLastRow, divsInRow, to_add; $(".ghost").remove(); divsInRow = 0; $("#ContentWrapper .track-container").each(function() { if ($(this).prev().length > 0) { if ($(this).position().top !== $(this).prev().position().top) { return ...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
87
104
Atraci/Atraci:coffee/_tracklist.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var calculateDivsInRow; calculateDivsInRow = function() { var divsInLastRow, divsInRow, to_add; $(".ghost").remove(); divsInRow = 0; $("#ContentWrapper .track-container").each(function() { if ($(this).prev().length > 0) { if ($(this).position().t...
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 return false unless $(this).position().top is $(this).prev().position().top divsInRow++ else divsInRow++ return divsInLastRow = $("#ContentWrapper...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
87
104
Atraci/Atraci:coffee/_tracklist.coffee:3:completion
completion
calculateDivsInRow = -> $(".ghost").remove() divsInRow = 0 $("#ContentWrapper .track-container").each -> if $(this).prev().length > 0 return false unless $(this).position().top is $(this).prev().position().top divsInRow++ else divsInRow++
return divsInLastRow = $("#ContentWrapper .track-container").length % divsInRow divsInLastRow = divsInRow if divsInLastRow is 0 to_add = divsInRow - divsInLastRow while to_add > 0 $("#ContentWrapper").append $("<div/>").addClass("track-container ghost") to_add-- return
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e9937094358e8cd2e35215a3962c645bffc3c354
800
https://github.com/Atraci/Atraci/blob/e9937094358e8cd2e35215a3962c645bffc3c354/coffee/_tracklist.coffee
87
104
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) __artistObject = artistObject if(__artistObject && $("#Sid...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
4965b4c154a724ccf776595a7abeb52d31bc751c
800
https://github.com/Atraci/Atraci/blob/4965b4c154a724ccf776595a7abeb52d31bc751c/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
PopulateTrackList = (tracks, artistObject, fromSort) -> if tracks.length > 0 && !fromSort for x of tracks tracks[x].id = x tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) __artistObject = artistObject if(__artistObject && $("#Sid...
menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( label: 'Add to ' + playlist.name, click: -> Playlists.addTrack( _this.find('.artist').text(), _this.find('.titl...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
4965b4c154a724ccf776595a7abeb52d31bc751c
800
https://github.com/Atraci/Atraci/blob/4965b4c154a724ccf776595a7abeb52d31bc751c/coffee/_tracklist.coffee
9
58
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active"); $(@).a...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
4965b4c154a724ccf776595a7abeb52d31bc751c
800
https://github.com/Atraci/Atraci/blob/4965b4c154a724ccf776595a7abeb52d31bc751c/coffee/_tracklist.coffee
59
83
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active"); $(@).a...
$('#ContentWrapper').removeClass("smallRows"); else $('#ContentWrapper').addClass("smallRows"); # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
4965b4c154a724ccf776595a7abeb52d31bc751c
800
https://github.com/Atraci/Atraci/blob/4965b4c154a724ccf776595a7abeb52d31bc751c/coffee/_tracklist.coffee
59
83
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] __artistObject = {} PopulateTrackList = (tracks, artistObject) -> tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) _...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e633512de5320830baad253e1ed627e22e9a4ae3
800
https://github.com/Atraci/Atraci/blob/e633512de5320830baad253e1ed627e22e9a4ae3/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] __artistObject = {} PopulateTrackList = (tracks, artistObject) -> tracks = sortTracklist tracks $('#ContentWrapper').empty().scrollTop() if(artistObject) _...
$ -> $('#ContentWrapper').on 'contextmenu', '.track-container', (e) -> _this = $(@) e.stopPropagation() menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( label: 'Add to ' + playlist.name, click: -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e633512de5320830baad253e1ed627e22e9a4ae3
800
https://github.com/Atraci/Atraci/blob/e633512de5320830baad253e1ed627e22e9a4ae3/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
Playlists.removeTrack( _this.find('.artist').text(), _this.find('.title').text(), playlist_name ) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_nam...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e633512de5320830baad253e1ed627e22e9a4ae3
800
https://github.com/Atraci/Atraci/blob/e633512de5320830baad253e1ed627e22e9a4ae3/coffee/_tracklist.coffee
51
79
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
Playlists.removeTrack( _this.find('.artist').text(), _this.find('.title').text(), playlist_name ) _this.remove() userTracking.event("Playlist", "Remove Track to Playlist", playlist_nam...
$(@).addClass("active") if($(@).hasClass("fa-th")) $('#ContentWrapper').removeClass("smallRows"); else $('#ContentWrapper').addClass("smallRows"); # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist'...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e633512de5320830baad253e1ed627e22e9a4ae3
800
https://github.com/Atraci/Atraci/blob/e633512de5320830baad253e1ed627e22e9a4ae3/coffee/_tracklist.coffee
51
79
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks, artistObject) -> $('#ContentWrapper').empty().scrollTop() if(artistObject) $("#tmpl-artistPage").tmpl(artistObject).prependTo('#Con...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
47cca145dfde6fd19d075ea32e66409f81f2e6bf
800
https://github.com/Atraci/Atraci/blob/47cca145dfde6fd19d075ea32e66409f81f2e6bf/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks, artistObject) -> $('#ContentWrapper').empty().scrollTop() if(artistObject) $("#tmpl-artistPage").tmpl(artistObject).prependTo('#Con...
menu = new gui.Menu() $.each __playlists, (k, playlist) -> menu.append new gui.MenuItem( label: 'Add to ' + playlist.name, click: -> Playlists.addTrack( _this.find('.artist').text(), _this.find('.titl...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
47cca145dfde6fd19d075ea32e66409f81f2e6bf
800
https://github.com/Atraci/Atraci/blob/47cca145dfde6fd19d075ea32e66409f81f2e6bf/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks, artistObject) -> $('#ContentWrapper').empty().scrollTop() if(artistObject) $("#tmpl-artistPage").tmpl(artistObject).prependTo('#Con...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
56b8577abd2e023b7121ec902641537cadaddfdc
800
https://github.com/Atraci/Atraci/blob/56b8577abd2e023b7121ec902641537cadaddfdc/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks, artistObject) -> $('#ContentWrapper').empty().scrollTop() if(artistObject) $("#tmpl-artistPage").tmpl(artistObject).prependTo('#Con...
menu.append new gui.MenuItem( label: 'Add to ' + playlist.name, click: -> Playlists.addTrack( _this.find('.artist').text(), _this.find('.title').text(), _this.find('.cover').attr('data-cover_url_m...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
56b8577abd2e023b7121ec902641537cadaddfdc
800
https://github.com/Atraci/Atraci/blob/56b8577abd2e023b7121ec902641537cadaddfdc/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active"); $(@).addClass("active") if($(@).hasClass("fa-th")) ...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
56b8577abd2e023b7121ec902641537cadaddfdc
800
https://github.com/Atraci/Atraci/blob/56b8577abd2e023b7121ec902641537cadaddfdc/coffee/_tracklist.coffee
51
73
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false $(".trackListToolbar i").click -> $(".trackListToolbar i").removeClass("active"); $(@).addClass("active") if($(@).hasClass("fa-th")) ...
else $('#ContentWrapper').addClass("smallRows"); # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cov...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
56b8577abd2e023b7121ec902641537cadaddfdc
800
https://github.com/Atraci/Atraci/blob/56b8577abd2e023b7121ec902641537cadaddfdc/coffee/_tracklist.coffee
51
73
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentCo...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e089667bab6c51070baa53879d45f45d7dc5e3d8
800
https://github.com/Atraci/Atraci/blob/e089667bab6c51070baa53879d45f45d7dc5e3d8/coffee/_tracklist.coffee
51
67
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
userTracking.event("Playlist", "Remove Track to Playlist", playlist_name).send() ) menu.popup e.clientX, e.clientY false
# Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium'), currentContextTrack.find('.cover').at...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
e089667bab6c51070baa53879d45f45d7dc5e3d8
800
https://github.com/Atraci/Atraci/blob/e089667bab6c51070baa53879d45f45d7dc5e3d8/coffee/_tracklist.coffee
51
67
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#ContentWrapper').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#ContentWrapper') ...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#ContentWrapper').empty().scrollTop() if tracks.length > 0 $('#tmpl-...
var PopulateTrackList, __currentTracklist, currentContextTrack, track_menu; track_menu = new gui.Menu(); track_menu.append(new gui.MenuItem({ label: 'Add to Favorites' })); currentContextTrack = null; __currentTracklist = []; PopulateTrackList = function(tracks) { $('#ContentWrapper').empty().scrollTop(); if...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PopulateTrackList, __currentTracklist, currentContextTrack, track_menu; track_menu = new gui.Menu(); track_menu.append(new gui.MenuItem({ label: 'Add to Favorites' })); currentContextTrack = null; __currentTracklist = []; PopulateTrackList = function(tra...
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#ContentWrapper').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#ContentWrapper') ...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#ContentWrapper').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#ContentWrapper') ...
click: -> Playlists.addTrack( _this.find('.artist').text(), _this.find('.title').text(), _this.find('.cover').attr('data-cover_url_medium'), _this.find('.cover').attr('data-cover_url_large'), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:2:raw_corpus
raw_corpus
menu.popup e.clientX, e.clientY false # Add to Favorites track_menu.items[0].click = -> Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
51
64
Atraci/Atraci:coffee/_tracklist.coffee:2:completion
completion
menu.popup e.clientX, e.clientY false # Add to Favorites track_menu.items[0].click = ->
Playlists.addTrack( currentContextTrack.find('.artist').text(), currentContextTrack.find('.title').text(), currentContextTrack.find('.cover').attr('data-cover_url_medium'), currentContextTrack.find('.cover').attr('data-cover_url_large'), 'Favorites' ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
b5ad2c415ec35975980aca57333c3f138246c8c6
800
https://github.com/Atraci/Atraci/blob/b5ad2c415ec35975980aca57333c3f138246c8c6/coffee/_tracklist.coffee
51
64
Atraci/Atraci:coffee/_tracklist.coffee:1:raw_corpus
raw_corpus
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#tracklist-container').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#tracklist-contai...
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#tracklist-container').empty().scrollTop() if tracks.length > 0 $('#...
var PopulateTrackList, __currentTracklist, currentContextTrack, track_menu; track_menu = new gui.Menu(); track_menu.append(new gui.MenuItem({ label: 'Add to Favorites' })); currentContextTrack = null; __currentTracklist = []; PopulateTrackList = function(tracks) { $('#tracklist-container').empty().scrollTop();...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var PopulateTrackList, __currentTracklist, currentContextTrack, track_menu; track_menu = new gui.Menu(); track_menu.append(new gui.MenuItem({ label: 'Add to Favorites' })); currentContextTrack = null; __currentTracklist = []; PopulateTrackList = function(tra...
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#tracklist-container').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#tracklist-contai...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_tracklist.coffee
1
50
Atraci/Atraci:coffee/_tracklist.coffee:1:completion
completion
track_menu = new gui.Menu() track_menu.append new gui.MenuItem(label: 'Add to Favorites') currentContextTrack = null __currentTracklist = [] PopulateTrackList = (tracks) -> $('#tracklist-container').empty().scrollTop() if tracks.length > 0 $('#tmpl-tracklist').tmpl(tracks).appendTo('#tracklist-contai...
click: -> Playlists.addTrack( _this.find('.artist').text(), _this.find('.title').text(), _this.find('.cover').attr('data-cover_url_medium'), _this.find('.cover').attr('data-cover_url_large'), ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_tracklist.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_tracklist.coffee
1
50
jianliaoim/talk-os:talk-web/client/util/find.coffee:1:raw_corpus
raw_corpus
orders = require './orders' exports.byId = (list, id) -> res = list .filter (x) -> x._id is id res[0] exports.maxId = (list) -> res = list .sort orders.imMsgByLargerId .map (x) -> x.get('_id') res.get(0) exports.minId = (list) -> res = list .sort orders.imMsgBySmallerId .map (x) -> x.get('_id') ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/find.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/find.coffee
1
18
jianliaoim/talk-os:talk-web/client/util/find.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript orders = require './orders' exports.byId = (list, id) -> res = list .filter (x) -> x._id is id res[0] exports.maxId = (list) -> res = list .sort orders.imMsgByLargerId .map (x) -> x.get('_id') res.get(0) exports.minId = (list) -> res = list ....
var orders; orders = require('./orders'); exports.byId = function(list, id) { var res; res = list.filter(function(x) { return x._id === id; }); return res[0]; }; exports.maxId = function(list) { var res; res = list.sort(orders.imMsgByLargerId).map(function(x) { return x.get('_id'); }); return...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/find.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/find.coffee
1
18
jianliaoim/talk-os:talk-web/client/util/find.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var orders; orders = require('./orders'); exports.byId = function(list, id) { var res; res = list.filter(function(x) { return x._id === id; }); return res[0]; }; exports.maxId = function(list) { var res; res = list.sort(orders.imMsgByLargerId).ma...
orders = require './orders' exports.byId = (list, id) -> res = list .filter (x) -> x._id is id res[0] exports.maxId = (list) -> res = list .sort orders.imMsgByLargerId .map (x) -> x.get('_id') res.get(0) exports.minId = (list) -> res = list .sort orders.imMsgBySmallerId .map (x) -> x.get('_id') ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/find.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/find.coffee
1
18
jianliaoim/talk-os:talk-web/client/util/find.coffee:1:completion
completion
orders = require './orders' exports.byId = (list, id) -> res = list .filter (x) -> x._id is id res[0] exports.maxId = (list) -> res = list
.sort orders.imMsgByLargerId .map (x) -> x.get('_id') res.get(0) exports.minId = (list) -> res = list .sort orders.imMsgBySmallerId .map (x) -> x.get('_id') res.get(0)
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/find.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/find.coffee
1
18
jianliaoim/talk-os:talk-account/test/client/util/detect.coffee:1:raw_corpus
raw_corpus
should = require 'should' detect = require '../../../client/util/detect' describe 'client/util/detect', -> it 'should recognize QQ format email', (done) -> emails = [ '12345@qq.com', 'abcde@qq.cn' '12345@foxmail.com', 'abcde@foxmail.com' '12345@QQ.com', 'abcde@QQ.com' '12345@qqe.com', ...
CoffeeScript
jianliaoim/talk-os
talk-account/test/client/util/detect.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/test/client/util/detect.coffee
1
29
jianliaoim/talk-os:talk-account/test/client/util/detect.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript should = require 'should' detect = require '../../../client/util/detect' describe 'client/util/detect', -> it 'should recognize QQ format email', (done) -> emails = [ '12345@qq.com', 'abcde@qq.cn' '12345@foxmail.com', 'abcde@foxmail.com' ...
var detect, should; should = require('should'); detect = require('../../../client/util/detect'); describe('client/util/detect', function() { return it('should recognize QQ format email', function(done) { var emails, expectResult, result; emails = ['12345@qq.com', 'abcde@qq.cn', '12345@foxmail.com', 'abcde@...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-account/test/client/util/detect.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/test/client/util/detect.coffee
1
29
jianliaoim/talk-os:talk-account/test/client/util/detect.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var detect, should; should = require('should'); detect = require('../../../client/util/detect'); describe('client/util/detect', function() { return it('should recognize QQ format email', function(done) { var emails, expectResult, result; emails = ['123...
should = require 'should' detect = require '../../../client/util/detect' describe 'client/util/detect', -> it 'should recognize QQ format email', (done) -> emails = [ '12345@qq.com', 'abcde@qq.cn' '12345@foxmail.com', 'abcde@foxmail.com' '12345@QQ.com', 'abcde@QQ.com' '12345@qqe.com', ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-account/test/client/util/detect.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/test/client/util/detect.coffee
1
29
jianliaoim/talk-os:talk-account/test/client/util/detect.coffee:1:completion
completion
should = require 'should' detect = require '../../../client/util/detect' describe 'client/util/detect', -> it 'should recognize QQ format email', (done) -> emails = [ '12345@qq.com', 'abcde@qq.cn' '12345@foxmail.com', 'abcde@foxmail.com' '12345@QQ.com', 'abcde@QQ.com' '12345@qqe.com', ...
] expectResult = [ true, true false, false true, true false, false false, false ] result = emails.map (email) -> detect.isQQEmail email result.should.eql expectResult done()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-account/test/client/util/detect.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/test/client/util/detect.coffee
1
29
flosse/sloc:spec/i18n.spec.coffee:1:raw_corpus
raw_corpus
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.total .should.equal "Physical" i18n.en.source .should.equal "Source" ...
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
e26044011821c4e170859362f2de657d64118711
969
https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/spec/i18n.spec.coffee
1
33
flosse/sloc:spec/i18n.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.total .should.equa...
var chai, i18n, should; chai = require('chai'); should = chai.should(); i18n = require("../src/i18n"); describe("The i18n module", function() { it("should be a object", function() { return i18n.should.be.a('object'); }); return it("should contain at least the english strings", function() { i18n.en.tot...
CoffeeScript
JavaScript
flosse/sloc
spec/i18n.spec.coffee
MIT
e26044011821c4e170859362f2de657d64118711
969
https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/spec/i18n.spec.coffee
1
33
flosse/sloc:spec/i18n.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var chai, i18n, should; chai = require('chai'); should = chai.should(); i18n = require("../src/i18n"); describe("The i18n module", function() { it("should be a object", function() { return i18n.should.be.a('object'); }); return it("should contain at l...
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.total .should.equal "Physical" i18n.en.source .should.equal "Source" ...
JavaScript
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
e26044011821c4e170859362f2de657d64118711
969
https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/spec/i18n.spec.coffee
1
33
flosse/sloc:spec/i18n.spec.coffee:1:completion
completion
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.total .should.equal "Physical" i18n.en.source .should.equal "Source" ...
i18n.en.empty .should.equal "Empty" i18n.en.mixed .should.equal "Mixed" i18n.en.Result .should.equal "Result" i18n.en.Total .should.equal "Total" i18n.en.Error .should.equal "Error" i18n.en.Details .should.equal "Details" i18n.en.Path .should.equal "Path" i18n.en.BadDir .sho...
CoffeeScript
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
e26044011821c4e170859362f2de657d64118711
969
https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/spec/i18n.spec.coffee
1
33
flosse/sloc:spec/i18n.spec.coffee:1:raw_corpus
raw_corpus
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.loc .should.equal "Physical" i18n.en.sloc .should.equal "Source" ...
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
dccfbc207600750a7689dea1ca9148af59d3d740
969
https://github.com/flosse/sloc/blob/dccfbc207600750a7689dea1ca9148af59d3d740/spec/i18n.spec.coffee
1
32
flosse/sloc:spec/i18n.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.loc .should.equa...
var chai, i18n, should; chai = require('chai'); should = chai.should(); i18n = require("../src/i18n"); describe("The i18n module", function() { it("should be a object", function() { return i18n.should.be.a('object'); }); return it("should contain at least the english strings", function() { i18n.en.loc...
CoffeeScript
JavaScript
flosse/sloc
spec/i18n.spec.coffee
MIT
dccfbc207600750a7689dea1ca9148af59d3d740
969
https://github.com/flosse/sloc/blob/dccfbc207600750a7689dea1ca9148af59d3d740/spec/i18n.spec.coffee
1
32
flosse/sloc:spec/i18n.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var chai, i18n, should; chai = require('chai'); should = chai.should(); i18n = require("../src/i18n"); describe("The i18n module", function() { it("should be a object", function() { return i18n.should.be.a('object'); }); return it("should contain at l...
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.loc .should.equal "Physical" i18n.en.sloc .should.equal "Source" ...
JavaScript
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
dccfbc207600750a7689dea1ca9148af59d3d740
969
https://github.com/flosse/sloc/blob/dccfbc207600750a7689dea1ca9148af59d3d740/spec/i18n.spec.coffee
1
32
flosse/sloc:spec/i18n.spec.coffee:1:completion
completion
chai = require 'chai' should = chai.should() i18n = require "../src/i18n" describe "The i18n module", -> it "should be a object", -> i18n.should.be.a 'object' it "should contain at least the english strings", -> i18n.en.loc .should.equal "Physical" i18n.en.sloc .should.equal "Source" ...
i18n.en.nloc .should.equal "Empty" i18n.en.Result .should.equal "Result" i18n.en.Total .should.equal "Total" i18n.en.Error .should.equal "Error" i18n.en.Details .should.equal "Details" i18n.en.Path .should.equal "Path" i18n.en.BadDir .should.equal "Bad directory" i18n.en.BadF...
CoffeeScript
CoffeeScript
flosse/sloc
spec/i18n.spec.coffee
MIT
dccfbc207600750a7689dea1ca9148af59d3d740
969
https://github.com/flosse/sloc/blob/dccfbc207600750a7689dea1ca9148af59d3d740/spec/i18n.spec.coffee
1
32