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
Atraci/Atraci:coffee/_Playlists.class.coffee:1:raw_corpus
raw_corpus
class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DROP TABLE playlists' success?() @addTrack: (artist, title, cover_url_medium, cover_url_large, playlist) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) ...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_Playlists.class.coffee
7
56
Atraci/Atraci:coffee/_Playlists.class.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DROP TABLE playlists' success?() @addTrack: (artist, title, cover_url_medium, cover_url_large, playlist) -> unix_...
var Playlists; Playlists = class Playlists { static clear(success) { return db.transaction(function(tx) { tx.executeSql('DROP TABLE playlist_tracks'); tx.executeSql('DROP TABLE playlists'); return typeof success === "function" ? success() : void 0; }); } static addTrack(artist, title, ...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_Playlists.class.coffee
7
56
Atraci/Atraci:coffee/_Playlists.class.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Playlists; Playlists = class Playlists { static clear(success) { return db.transaction(function(tx) { tx.executeSql('DROP TABLE playlist_tracks'); tx.executeSql('DROP TABLE playlists'); return typeof success === "function" ? success() :...
class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DROP TABLE playlists' success?() @addTrack: (artist, title, cover_url_medium, cover_url_large, playlist) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) ...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_Playlists.class.coffee
7
56
Atraci/Atraci:coffee/_Playlists.class.coffee:1:completion
completion
class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DROP TABLE playlists' success?() @addTrack: (artist, title, cover_url_medium, cover_url_large, playlist) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) ...
) @removeTrack: (artist, title, playlist) -> db.transaction (tx) -> tx.executeSql( 'DELETE FROM playlist_tracks WHERE ' + 'artist = ? and title = ? and playlist = ?', [artist, title, playlist] ) @create: (name) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) d...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f
800
https://github.com/Atraci/Atraci/blob/a4e3a69e284a1ef05051d95c0dc9bbb90c15b74f/coffee/_Playlists.class.coffee
7
56
Atraci/Atraci:coffee/_Playlists.class.coffee:1:raw_corpus
raw_corpus
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'D...
// Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) { return db.transaction(function(tx) { tx.exec...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) {...
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:completion
completion
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
@create: (name) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) db.transaction (tx) -> tx.executeSql 'DELETE FROM playlists WHERE name = ?', [name] tx.executeSql 'INSERT INTO playlists (name, created) VALUES (?, ?)', [name, unix_timestamp] @delete: (name) -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:2:raw_corpus
raw_corpus
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_name...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
51
67
Atraci/Atraci:coffee/_Playlists.class.coffee:2:completion
completion
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_name...
db.transaction (tx) -> tx.executeSql 'UPDATE playlists SET name = ? WHERE name = ?', [new_name, name] Playlists.getTracksForPlaylist(name, ((tracks) -> i = 0 while i < tracks.length Playlists.addTrack(tracks[i].artist, tracks[i].title, tracks[i].cover_url_medi...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88
800
https://github.com/Atraci/Atraci/blob/77ea980a3f8e3ac740a4c93a6cdcd51a6b663a88/coffee/_Playlists.class.coffee
51
67
Atraci/Atraci:coffee/_Playlists.class.coffee:2:raw_corpus
raw_corpus
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_name...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
4672097af7a945536fa017c29567b44b75f96a7e
800
https://github.com/Atraci/Atraci/blob/4672097af7a945536fa017c29567b44b75f96a7e/coffee/_Playlists.class.coffee
51
60
Atraci/Atraci:coffee/_Playlists.class.coffee:2:completion
completion
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++
success? tracks @rename: (name, new_name) -> db.transaction (tx) -> tx.executeSql 'UPDATE playlists SET name = ? WHERE name = ?', [new_name, name]
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
4672097af7a945536fa017c29567b44b75f96a7e
800
https://github.com/Atraci/Atraci/blob/4672097af7a945536fa017c29567b44b75f96a7e/coffee/_Playlists.class.coffee
51
60
Atraci/Atraci:coffee/_Playlists.class.coffee:2:raw_corpus
raw_corpus
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_name...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
585f12d2b63114c06d415891df4f2c9654600a96
800
https://github.com/Atraci/Atraci/blob/585f12d2b63114c06d415891df4f2c9654600a96/coffee/_Playlists.class.coffee
51
69
Atraci/Atraci:coffee/_Playlists.class.coffee:2:completion
completion
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_name...
tx.executeSql 'UPDATE playlists SET name = ? WHERE name = ?', [new_name, name] Playlists.getTracksForPlaylist(name, ((tracks) -> i = 0 while i < tracks.length Playlists.addTrack(tracks[i].artist, tracks[i].title, tracks[i].cover_url_medium, tracks[i].cover_url_large, new_...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
585f12d2b63114c06d415891df4f2c9654600a96
800
https://github.com/Atraci/Atraci/blob/585f12d2b63114c06d415891df4f2c9654600a96/coffee/_Playlists.class.coffee
51
69
Atraci/Atraci:coffee/_Playlists.class.coffee:1:raw_corpus
raw_corpus
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'D...
// Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) { return db.transaction(function(tx) { tx.exec...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) {...
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:completion
completion
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
@create: (name) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) db.transaction (tx) -> tx.executeSql 'DELETE FROM playlists WHERE name = ?', [name] tx.executeSql 'INSERT INTO playlists (name, created) VALUES (?, ?)', [name, unix_timestamp] @delete: (name) -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:2:raw_corpus
raw_corpus
db.transaction (tx) -> tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? t...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
51
70
Atraci/Atraci:coffee/_Playlists.class.coffee:2:completion
completion
db.transaction (tx) -> tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added ASC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? t...
tx.executeSql 'UPDATE playlists SET name = ? WHERE name = ?', [new_name, name] Playlists.getTracksForPlaylist(name, ((tracks) -> i = 0 while i < tracks.length Playlists.addTrack(tracks[i].artist, tracks[i].title, tracks[i].cover_url_medium, tracks[i].cover_url_large, new_...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
e6f380c20daf8a2f53850111346745834a4c6733
800
https://github.com/Atraci/Atraci/blob/e6f380c20daf8a2f53850111346745834a4c6733/coffee/_Playlists.class.coffee
51
70
Atraci/Atraci:coffee/_Playlists.class.coffee:1:raw_corpus
raw_corpus
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'D...
// Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) { return db.transaction(function(tx) { tx.exec...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Init preparation (should be improved later) var Playlists, __playlists; db.transaction(function(tx) { return tx.executeSql('CREATE TABLE IF NOT EXISTS playlists (name, created)'); }); __playlists = []; Playlists = class Playlists { static clear(success) {...
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:1:completion
completion
# Init preparation (should be improved later) db.transaction (tx) -> tx.executeSql 'CREATE TABLE IF NOT EXISTS playlists (name, created)' __playlists = [] class Playlists @clear = (success) -> db.transaction (tx) -> tx.executeSql 'DROP TABLE playlist_tracks' tx.executeSql 'DRO...
@create: (name) -> unix_timestamp = Math.round((new Date()).getTime() / 1000) db.transaction (tx) -> tx.executeSql 'DELETE FROM playlists WHERE name = ?', [name] tx.executeSql 'INSERT INTO playlists (name, created) VALUES (?, ?)', [name, unix_timestamp] @delete: (name) -> ...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
1
50
Atraci/Atraci:coffee/_Playlists.class.coffee:2:raw_corpus
raw_corpus
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added DESC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++ success? tracks @rename: (name, new_nam...
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
51
60
Atraci/Atraci:coffee/_Playlists.class.coffee:2:completion
completion
tx.executeSql 'SELECT * FROM playlist_tracks WHERE playlist = ? ORDER BY added DESC', [playlist], (tx, results) -> i = 0 while i < results.rows.length tracks.push results.rows.item(i) i++
success? tracks @rename: (name, new_name) -> db.transaction (tx) -> tx.executeSql 'UPDATE playlists SET name = ? WHERE name = ?', [new_name, name]
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_Playlists.class.coffee
MIT
d4b7f952575352efeff69f232ab345bac48fe586
800
https://github.com/Atraci/Atraci/blob/d4b7f952575352efeff69f232ab345bac48fe586/coffee/_Playlists.class.coffee
51
60
xhan/qqbot:plugins/hitokoto.coffee:1:raw_corpus
raw_corpus
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data a...
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.h...
/* http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 */ module.exports = function(content, send, robot, message) { if (content.match(/^comic$/i)) { return robot.request.get({ url: "http://api.hitokoto.us/rand", json: tru...
CoffeeScript
JavaScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 */ module.exports = function(content, send, robot, message) { if (content.match(/^comic$/i)) { return robot.request.get({ ...
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data a...
JavaScript
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:completion
completion
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)->
if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data and data.hitokoto send data.hitokoto + " --" + data.source else send e
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0
1,435
https://github.com/xhan/qqbot/blob/f3b62a4a6e423cd85a7a2e06da5e5e51da940fe0/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:raw_corpus
raw_corpus
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data a...
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
6e0c8d82bc891c629b88e996779b91f0a80c7618
1,435
https://github.com/xhan/qqbot/blob/6e0c8d82bc891c629b88e996779b91f0a80c7618/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.h...
/* http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 */ module.exports = function(content, send, robot, message) { if (content.match(/^comic$/i)) { return robot.request.get({ url: "http://api.hitokoto.us/rand", json: tru...
CoffeeScript
JavaScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
6e0c8d82bc891c629b88e996779b91f0a80c7618
1,435
https://github.com/xhan/qqbot/blob/6e0c8d82bc891c629b88e996779b91f0a80c7618/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 */ module.exports = function(content, send, robot, message) { if (content.match(/^comic$/i)) { return robot.request.get({ ...
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)-> if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data a...
JavaScript
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
6e0c8d82bc891c629b88e996779b91f0a80c7618
1,435
https://github.com/xhan/qqbot/blob/6e0c8d82bc891c629b88e996779b91f0a80c7618/plugins/hitokoto.coffee
1
14
xhan/qqbot:plugins/hitokoto.coffee:1:completion
completion
### http://hitokoto.us/ 简单来说,一言(ヒトコト)指的是就是一句话,可以是动漫中的台词,可以是小说中的语句,也可以是网络上的各种小段子。 或是感动,或是开心,又或是单纯的回忆,来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。 ### module.exports = (content ,send, robot, message)->
if content.match /^comic$/i robot.request.get {url:"http://api.hitokoto.us/rand",json:true}, (e,r,data)-> if data and data.hitokoto send data.hitokoto else send e
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/hitokoto.coffee
MIT
6e0c8d82bc891c629b88e996779b91f0a80c7618
1,435
https://github.com/xhan/qqbot/blob/6e0c8d82bc891c629b88e996779b91f0a80c7618/plugins/hitokoto.coffee
1
14
jianliaoim/talk-os:talk-account/config/default.coffee:1:raw_corpus
raw_corpus
countries = require './util/countries' module.exports = env: 'static' debug: true cdn: '/account' isMinified: no webpackDevPort: 8011 useCDN: no checkToken: 'Check token for heartbeat' resourceDomain: 'http://localhost:7001/account' useAnalytics: no # URL accountUrl: 'http://localhost:7001/accoun...
CoffeeScript
jianliaoim/talk-os
talk-account/config/default.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/config/default.coffee
1
33
jianliaoim/talk-os:talk-account/config/default.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript countries = require './util/countries' module.exports = env: 'static' debug: true cdn: '/account' isMinified: no webpackDevPort: 8011 useCDN: no checkToken: 'Check token for heartbeat' resourceDomain: 'http://localhost:7001/account' useAnalytic...
var countries; countries = require('./util/countries'); module.exports = { env: 'static', debug: true, cdn: '/account', isMinified: false, webpackDevPort: 8011, useCDN: false, checkToken: 'Check token for heartbeat', resourceDomain: 'http://localhost:7001/account', useAnalytics: false, // URL ac...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-account/config/default.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/config/default.coffee
1
33
jianliaoim/talk-os:talk-account/config/default.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var countries; countries = require('./util/countries'); module.exports = { env: 'static', debug: true, cdn: '/account', isMinified: false, webpackDevPort: 8011, useCDN: false, checkToken: 'Check token for heartbeat', resourceDomain: 'http://localh...
countries = require './util/countries' module.exports = env: 'static' debug: true cdn: '/account' isMinified: no webpackDevPort: 8011 useCDN: no checkToken: 'Check token for heartbeat' resourceDomain: 'http://localhost:7001/account' useAnalytics: no # URL accountUrl: 'http://localhost:7001/accoun...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-account/config/default.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/config/default.coffee
1
33
jianliaoim/talk-os:talk-account/config/default.coffee:1:completion
completion
countries = require './util/countries' module.exports = env: 'static' debug: true cdn: '/account' isMinified: no webpackDevPort: 8011 useCDN: no checkToken: 'Check token for heartbeat' resourceDomain: 'http://localhost:7001/account' useAnalytics: no # URL accountUrl: 'http://localhost:7001/accoun...
firimLogin: "http://localhost:7001/account/union/firim?method=bind&next_url=#{encodeURIComponent 'http://localhost:7001/v2/firim/landing'}", githubLogin: "http://localhost:7001/account/union/github?method=bind&service=talk&nologin=1&next_url=#{encodeURIComponent 'http://localhost:7001/v2/github/landing'}", trelloLo...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-account/config/default.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/config/default.coffee
1
33
oozcitak/xmlbuilder-js:test/basic/comment.coffee:1:raw_corpus
raw_corpus
suite 'Comments', -> test 'Nothing gets escaped', -> eq( xml('comment', { headless: true }) .comment('<>\'"&\t\n\r').end() '<comment><!-- <>\'"&\t\n\r --></comment>' ) test 'Comments before and after root', -> eq( xml('comment', { headless: true }) .commentBefore('pre'...
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/comment.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/comment.coffee
1
14
oozcitak/xmlbuilder-js:test/basic/comment.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Comments', -> test 'Nothing gets escaped', -> eq( xml('comment', { headless: true }) .comment('<>\'"&\t\n\r').end() '<comment><!-- <>\'"&\t\n\r --></comment>' ) test 'Comments before and after root', -> eq( xml('c...
suite('Comments', function() { test('Nothing gets escaped', function() { return eq(xml('comment', { headless: true }).comment('<>\'"&\t\n\r').end(), '<comment><!-- <>\'"&\t\n\r --></comment>'); }); return test('Comments before and after root', function() { return eq(xml('comment', { headle...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/basic/comment.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/comment.coffee
1
14
oozcitak/xmlbuilder-js:test/basic/comment.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Comments', function() { test('Nothing gets escaped', function() { return eq(xml('comment', { headless: true }).comment('<>\'"&\t\n\r').end(), '<comment><!-- <>\'"&\t\n\r --></comment>'); }); return test('Comments before and after root', f...
suite 'Comments', -> test 'Nothing gets escaped', -> eq( xml('comment', { headless: true }) .comment('<>\'"&\t\n\r').end() '<comment><!-- <>\'"&\t\n\r --></comment>' ) test 'Comments before and after root', -> eq( xml('comment', { headless: true }) .commentBefore('pre'...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/comment.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/comment.coffee
1
14
oozcitak/xmlbuilder-js:test/basic/comment.coffee:1:completion
completion
suite 'Comments', -> test 'Nothing gets escaped', -> eq( xml('comment', { headless: true }) .comment('<>\'"&\t\n\r').end() '<comment><!-- <>\'"&\t\n\r --></comment>' )
test 'Comments before and after root', -> eq( xml('comment', { headless: true }) .commentBefore('pre').commentAfter('post').end() '<!-- pre --><comment/><!-- post -->' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/comment.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/comment.coffee
1
14
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._custom_method_name = (collection_name, method_name) -> Houston._houstonize("#{collection_name}/#{method_name}") # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 ...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/lib/shared.coffee
1
42
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._custom_method_name = (collection_name, method_name) -> Houston._houstonize("#{collection_name}/#{method_name}") # change _MAX_DOCS_TO_EXPLORE if you need us...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._custom_method_name = function(collection_name, method_name) { return Houston._houstonize(`${colle...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/lib/shared.coffee
1
42
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._custom_method_name = function(collection_nam...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._custom_method_name = (collection_name, method_name) -> Houston._houstonize("#{collection_name}/#{method_name}") # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 ...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/lib/shared.coffee
1
42
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._custom_method_name = (collection_name, method_name) -> Houston._houstonize("#{collection_name}/#{method_name}") # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 ...
if typeof value is 'object' # handle dates like strings if value instanceof Date full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt '...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/lib/shared.coffee
1
42
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
cb55ba7cbb4cf58e2e03a7588a8639f75c21965a
802
https://github.com/gterrono/houston/blob/cb55ba7cbb4cf58e2e03a7588a8639f75c21965a/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100; Hous...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
cb55ba7cbb4cf58e2e03a7588a8639f75c21965a
802
https://github.com/gterrono/houston/blob/cb55ba7cbb4cf58e2e03a7588a8639f75c21965a/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to expl...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
cb55ba7cbb4cf58e2e03a7588a8639f75c21965a
802
https://github.com/gterrono/houston/blob/cb55ba7cbb4cf58e2e03a7588a8639f75c21965a/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
# handle dates like strings if value instanceof Date full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
cb55ba7cbb4cf58e2e03a7588a8639f75c21965a
802
https://github.com/gterrono/houston/blob/cb55ba7cbb4cf58e2e03a7588a8639f75c21965a/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
d3c3ae922935e2dc560f16f86fc1d18a96d705f8
802
https://github.com/gterrono/houston/blob/d3c3ae922935e2dc560f16f86fc1d18a96d705f8/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100; Hous...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
d3c3ae922935e2dc560f16f86fc1d18a96d705f8
802
https://github.com/gterrono/houston/blob/d3c3ae922935e2dc560f16f86fc1d18a96d705f8/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to expl...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
d3c3ae922935e2dc560f16f86fc1d18a96d705f8
802
https://github.com/gterrono/houston/blob/d3c3ae922935e2dc560f16f86fc1d18a96d705f8/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
d3c3ae922935e2dc560f16f86fc1d18a96d705f8
802
https://github.com/gterrono/houston/blob/d3c3ae922935e2dc560f16f86fc1d18a96d705f8/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
566208c2c8bd6fc97073076974a0c544afa9721a
802
https://github.com/gterrono/houston/blob/566208c2c8bd6fc97073076974a0c544afa9721a/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100; Hous...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
566208c2c8bd6fc97073076974a0c544afa9721a
802
https://github.com/gterrono/houston/blob/566208c2c8bd6fc97073076974a0c544afa9721a/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to expl...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
566208c2c8bd6fc97073076974a0c544afa9721a
802
https://github.com/gterrono/houston/blob/566208c2c8bd6fc97073076974a0c544afa9721a/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
566208c2c8bd6fc97073076974a0c544afa9721a
802
https://github.com/gterrono/houston/blob/566208c2c8bd6fc97073076974a0c544afa9721a/lib/shared.coffee
1
45
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
41c5fcf9d8f42ed9b8d338372cae2031a88e95b6
802
https://github.com/gterrono/houston/blob/41c5fcf9d8f42ed9b8d338372cae2031a88e95b6/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100; Hous...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
41c5fcf9d8f42ed9b8d338372cae2031a88e95b6
802
https://github.com/gterrono/houston/blob/41c5fcf9d8f42ed9b8d338372cae2031a88e95b6/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; // change _MAX_DOCS_TO_EXPLORE if you need us to expl...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
41c5fcf9d8f42ed9b8d338372cae2031a88e95b6
802
https://github.com/gterrono/houston/blob/41c5fcf9d8f42ed9b8d338372cae2031a88e95b6/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" # change _MAX_DOCS_TO_EXPLORE if you need us to explore more docs Houston._MAX_DOCS_TO_EXPLORE = 100 Houston._get_fields_from_collection = (collection) -> # TODO(AMK) randomly sample the documents in question Houston._ge...
# handle dates like strings if value instanceof Date full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
41c5fcf9d8f42ed9b8d338372cae2031a88e95b6
802
https://github.com/gterrono/houston/blob/41c5fcf9d8f42ed9b8d338372cae2031a88e95b6/lib/shared.coffee
1
39
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
5a86528d804c4d2665ec6e697da465c0a708e842
802
https://github.com/gterrono/houston/blob/5a86528d804c4d2665ec6e697da465c0a708e842/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if ...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, ...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
5a86528d804c4d2665ec6e697da465c0a708e842
802
https://github.com/gterrono/houston/blob/5a86528d804c4d2665ec6e697da465c0a708e842/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var doc...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
5a86528d804c4d2665ec6e697da465c0a708e842
802
https://github.com/gterrono/houston/blob/5a86528d804c4d2665ec6e697da465c0a708e842/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
key_to_type[full_path_key] = "Date" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for document in documents find_fields docum...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
5a86528d804c4d2665ec6e697da465c0a708e842
802
https://github.com/gterrono/houston/blob/5a86528d804c4d2665ec6e697da465c0a708e842/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c61a76f1a8dde40028eb6b822d80822311406ebc
802
https://github.com/gterrono/houston/blob/c61a76f1a8dde40028eb6b822d80822311406ebc/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if ...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, ...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
c61a76f1a8dde40028eb6b822d80822311406ebc
802
https://github.com/gterrono/houston/blob/c61a76f1a8dde40028eb6b822d80822311406ebc/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var doc...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c61a76f1a8dde40028eb6b822d80822311406ebc
802
https://github.com/gterrono/houston/blob/c61a76f1a8dde40028eb6b822d80822311406ebc/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' # handle dates like str...
key_to_type[full_path_key] = "String" # recurse into sub documents else find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for document in documents find_fields doc...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c61a76f1a8dde40028eb6b822d80822311406ebc
802
https://github.com/gterrono/houston/blob/c61a76f1a8dde40028eb6b822d80822311406ebc/lib/shared.coffee
1
32
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{pre...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c64d37df458f49f3aec190bdf793fa665473895a
802
https://github.com/gterrono/houston/blob/c64d37df458f49f3aec190bdf793fa665473895a/lib/shared.coffee
1
23
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if t...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, ...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
c64d37df458f49f3aec190bdf793fa665473895a
802
https://github.com/gterrono/houston/blob/c64d37df458f49f3aec190bdf793fa665473895a/lib/shared.coffee
1
23
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._houstonize = function(name) { return `_houston_${name}`; }; Houston._get_fields = function(documents) { var doc...
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{pre...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c64d37df458f49f3aec190bdf793fa665473895a
802
https://github.com/gterrono/houston/blob/c64d37df458f49f3aec190bdf793fa665473895a/lib/shared.coffee
1
23
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._houstonize = (name) -> "_houston_#{name}" Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object'
find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for document in documents find_fields document (name: key, type: value for key, value of key_to_type) Houston._get_field_names = (docume...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
c64d37df458f49f3aec190bdf793fa665473895a
802
https://github.com/gterrono/houston/blob/c64d37df458f49f3aec190bdf793fa665473895a/lib/shared.coffee
1
23
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.Houston ?= {} Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." else if typeof value isnt 'functi...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
93e06a251afa99843d47e26f6bfde1ba3c93c47e
802
https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/lib/shared.coffee
1
21
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.Houston ?= {} Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, value; key_to_type = { _id: 'ObjectId' }; find_fields = functi...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
93e06a251afa99843d47e26f6bfde1ba3c93c47e
802
https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/lib/shared.coffee
1
21
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; if (root.Houston == null) { root.Houston = {}; } Houston._get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, value; key_to_t...
root = exports ? this root.Houston ?= {} Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." else if typeof value isnt 'functi...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
93e06a251afa99843d47e26f6bfde1ba3c93c47e
802
https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/lib/shared.coffee
1
21
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.Houston ?= {} Houston._get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}."
else if typeof value isnt 'function' full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for document in documents find_fields document (name: key, type: value for key, value of key_to_type) Houston._get_field_names = (documents) -> _.pluck(Houston._get_fields(docume...
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
93e06a251afa99843d47e26f6bfde1ba3c93c47e
802
https://github.com/gterrono/houston/blob/93e06a251afa99843d47e26f6bfde1ba3c93c47e/lib/shared.coffee
1
21
gterrono/houston:lib/shared.coffee:1:raw_corpus
raw_corpus
root = exports ? this root.get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_ke...
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
3100fa1dc6400b701d528c78a54050b3cc8af877
802
https://github.com/gterrono/houston/blob/3100fa1dc6400b701d528c78a54050b3cc8af877/lib/shared.coffee
1
19
gterrono/houston:lib/shared.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript root = exports ? this root.get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." ...
var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; root.get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, value; key_to_type = { _id: 'ObjectId' }; find_fields = function(document, prefix = '') { var full_path_key, key, ...
CoffeeScript
JavaScript
gterrono/houston
lib/shared.coffee
MIT
3100fa1dc6400b701d528c78a54050b3cc8af877
802
https://github.com/gterrono/houston/blob/3100fa1dc6400b701d528c78a54050b3cc8af877/lib/shared.coffee
1
19
gterrono/houston:lib/shared.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; root.get_fields = function(documents) { var document, find_fields, i, key, key_to_type, len, results, value; key_to_type = { _id: 'ObjectId' }; find_fields = functio...
root = exports ? this root.get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function' full_path_ke...
JavaScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
3100fa1dc6400b701d528c78a54050b3cc8af877
802
https://github.com/gterrono/houston/blob/3100fa1dc6400b701d528c78a54050b3cc8af877/lib/shared.coffee
1
19
gterrono/houston:lib/shared.coffee:1:completion
completion
root = exports ? this root.get_fields = (documents) -> key_to_type = {_id: 'ObjectId'} find_fields = (document, prefix='') -> for key, value of _.omit(document, '_id') if typeof value is 'object' find_fields value, "#{prefix}#{key}." else if typeof value isnt 'function'
full_path_key = "#{prefix}#{key}" key_to_type[full_path_key] = typeof value for document in documents find_fields document (name: key, type: value for key, value of key_to_type) root.get_field_names = (documents) -> _.pluck(get_fields(documents), 'name')
CoffeeScript
CoffeeScript
gterrono/houston
lib/shared.coffee
MIT
3100fa1dc6400b701d528c78a54050b3cc8af877
802
https://github.com/gterrono/houston/blob/3100fa1dc6400b701d528c78a54050b3cc8af877/lib/shared.coffee
1
19
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettier.coffee
1
48
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "ind...
"use strict"; var Beautifier, Prettier, path, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); path = require("path"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options, context) { return new this.Promise(functio...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettier.coffee
1
48
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Prettier, path, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); path = require("path"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, op...
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettier.coffee
1
48
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
} beautify: (text, language, options, context) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] options.parser = parser ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/prettier.coffee
1
48
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
50172154c5571f14711072d6d96d0b2a0d35fad6
1,503
https://github.com/Glavin001/atom-beautify/blob/50172154c5571f14711072d6d96d0b2a0d35fad6/src/beautifiers/prettier.coffee
1
47
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "ind...
"use strict"; var Beautifier, Prettier, path, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); path = require("path"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options, context) { return new this.Promise(functio...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
50172154c5571f14711072d6d96d0b2a0d35fad6
1,503
https://github.com/Glavin001/atom-beautify/blob/50172154c5571f14711072d6d96d0b2a0d35fad6/src/beautifiers/prettier.coffee
1
47
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Prettier, path, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); path = require("path"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, op...
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
50172154c5571f14711072d6d96d0b2a0d35fad6
1,503
https://github.com/Glavin001/atom-beautify/blob/50172154c5571f14711072d6d96d0b2a0d35fad6/src/beautifiers/prettier.coffee
1
47
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") path = require("path") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_cha...
Markdown: false } beautify: (text, language, options, context) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] else ...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
50172154c5571f14711072d6d96d0b2a0d35fad6
1,503
https://github.com/Glavin001/atom-beautify/blob/50172154c5571f14711072d6d96d0b2a0d35fad6/src/beautifiers/prettier.coffee
1
47
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1
1,503
https://github.com/Glavin001/atom-beautify/blob/db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1/src/beautifiers/prettier.coffee
1
46
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs...
"use strict"; var Beautifier, Prettier, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var _, err,...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1
1,503
https://github.com/Glavin001/atom-beautify/blob/db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1/src/beautifiers/prettier.coffee
1
46
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Prettier, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options) { return new this....
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1
1,503
https://github.com/Glavin001/atom-beautify/blob/db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1/src/beautifiers/prettier.coffee
1
46
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
} beautify: (text, language, options) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] else reject(new Error("Unknown...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1
1,503
https://github.com/Glavin001/atom-beautify/blob/db80ba6ac794284f88f1f3d8d7c1fd3ae9ef27f1/src/beautifiers/prettier.coffee
1
46
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3
1,503
https://github.com/Glavin001/atom-beautify/blob/152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3/src/beautifiers/prettier.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs...
"use strict"; var Beautifier, Prettier, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var _, err,...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3
1,503
https://github.com/Glavin001/atom-beautify/blob/152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3/src/beautifiers/prettier.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var Beautifier, Prettier, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options) { return new this....
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3
1,503
https://github.com/Glavin001/atom-beautify/blob/152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3/src/beautifiers/prettier.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: ["indent_with_tabs", "indent_char", (indent_with_tabs, ...
Markdown: false } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> _ = require('lodash') prettierLanguage = _.find(prettier.getSupportInfo().languages, 'name': language) if prettierLanguage parser = prettierLanguage.parsers[0] else reject(...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3
1,503
https://github.com/Glavin001/atom-beautify/blob/152d6967bc4ce20cf8dc37b3ab8d31f51b2599b3/src/beautifiers/prettier.coffee
1
44
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs: "indent_with_tabs" JavaScript: bracketSpacing...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
c661bff7afea6cc33425dfb0a423c12e31c49f43
1,503
https://github.com/Glavin001/atom-beautify/blob/c661bff7afea6cc33425dfb0a423c12e31c49f43/src/beautifiers/prettier.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/prettier.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') prettier = require("prettier") module.exports = class Prettier extends Beautifier name: "Prettier" link: "https://github.com/prettier/prettier" options: { _: tabWidth: "indent_size" useTabs...
"use strict"; var Beautifier, Prettier, prettier; Beautifier = require('./beautifier'); prettier = require("prettier"); module.exports = Prettier = (function() { class Prettier extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var _, err,...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/prettier.coffee
MIT
c661bff7afea6cc33425dfb0a423c12e31c49f43
1,503
https://github.com/Glavin001/atom-beautify/blob/c661bff7afea6cc33425dfb0a423c12e31c49f43/src/beautifiers/prettier.coffee
1
41