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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
yakyak/yakyak:src/ui/views/convlist.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if... | module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('showanimatedthumbs');
}
return div({
class: clz.joi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0718d4b73e253d7a46a9006e978708d068a7a3d8 | 3,762 | https://github.com/yakyak/yakyak/blob/0718d4b73e253d7a46a9006e978708d068a7a3d8/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('show... | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if !viewstate.useSystemDateFormat
moment.locale... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0718d4b73e253d7a46a9006e978708d068a7a3d8 | 3,762 | https://github.com/yakyak/yakyak/blob/0718d4b73e253d7a46a9006e978708d068a7a3d8/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if !viewstate.useSystemDateFormat
moment.locale... | clz.push "unread" if ur
clz.push "purehang" if pureHang
div key:cid, class:clz.join(' '), ->
part = c?.current_participant ? []
ents = for p in part when not entity.isSelf p.chat_id
entity[p.chat_id]
name = nameofconv c
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0718d4b73e253d7a46a9006e978708d068a7a3d8 | 3,762 | https://github.com/yakyak/yakyak/blob/0718d4b73e253d7a46a9006e978708d068a7a3d8/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
else
if ur > 0 and not conv.isQuiet(c)
lbl = if ur >= conv.MAX_UNREAD then "#{conv.MAX_UNREAD}+" else ur + ''
... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0718d4b73e253d7a46a9006e978708d068a7a3d8 | 3,762 | https://github.com/yakyak/yakyak/blob/0718d4b73e253d7a46a9006e978708d068a7a3d8/src/ui/views/convlist.coffee | 54 | 89 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
else
if ur > 0 and not conv.isQuiet(c)
lbl = if ur >= conv.MAX_UNREAD then "#{conv.MAX_UNREAD}+" else ur + ''
... | , onclick: (ev) ->
ev.preventDefault()
action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
if starred.length > 0
div class: 'label',... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0718d4b73e253d7a46a9006e978708d068a7a3d8 | 3,762 | https://github.com/yakyak/yakyak/blob/0718d4b73e253d7a46a9006e978708d068a7a3d8/src/ui/views/convlist.coffee | 54 | 89 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if !viewstate.useSystemDateFormat
moment.locale... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 4 | 53 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if... | module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('showanimatedthumbs');
}
return div({
class: clz.joi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('show... | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if !viewstate.useSystemDateFormat
moment.locale... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if !viewstate.useSystemDateFormat
moment.locale... | part = c?.current_participant ? []
ents = for p in part when not entity.isSelf p.chat_id
entity[p.chat_id]
name = nameofconv c
if viewstate.showConvThumbs or viewstate.showConvMin
div class: 'thumbs thumbs-'+(if ents.length>4 then '... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | else
if ur > 0 and not conv.isQuiet(c)
lbl = if ur >= conv.MAX_UNREAD then "#{conv.MAX_UNREAD}+" else ur + ''
span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 54 | 86 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | else
if ur > 0 and not conv.isQuiet(c)
lbl = if ur >= conv.MAX_UNREAD then "#{conv.MAX_UNREAD}+" else ur + ''
span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
... | ev.preventDefault()
action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
if starred.length > 0
div class: 'label', i18n.__n('favorite.title:Favorites... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | c193a7e13fdc0c50603d815fbb17252a30126810 | 3,762 | https://github.com/yakyak/yakyak/blob/c193a7e13fdc0c50603d815fbb17252a30126810/src/ui/views/convlist.coffee | 54 | 86 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if viewstate.dateformatFollowLanguage
moment.lo... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 88864e44099a957c8edd4e186a79d6f1d6557cb7 | 3,762 | https://github.com/yakyak/yakyak/blob/88864e44099a957c8edd4e186a79d6f1d6557cb7/src/ui/views/convlist.coffee | 4 | 53 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if... | module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('showanimatedthumbs');
}
return div({
class: clz.joi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 88864e44099a957c8edd4e186a79d6f1d6557cb7 | 3,762 | https://github.com/yakyak/yakyak/blob/88864e44099a957c8edd4e186a79d6f1d6557cb7/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('show... | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if viewstate.dateformatFollowLanguage
moment.lo... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 88864e44099a957c8edd4e186a79d6f1d6557cb7 | 3,762 | https://github.com/yakyak/yakyak/blob/88864e44099a957c8edd4e186a79d6f1d6557cb7/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
if viewstate.dateformatFollowLanguage
moment.lo... | part = c?.current_participant ? []
ents = for p in part when not entity.isSelf p.chat_id
entity[p.chat_id]
name = nameofconv c
if viewstate.showConvThumbs or viewstate.showConvMin
div class: 'thumbs thumbs-'+(if ents.length>4 then '... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 88864e44099a957c8edd4e186a79d6f1d6557cb7 | 3,762 | https://github.com/yakyak/yakyak/blob/88864e44099a957c8edd4e186a79d6f1d6557cb7/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
moment.locale(i18n.getLocale())
convs = conv.list()... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 4 | 53 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
mo... | module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('showanimatedthumbs');
}
return div({
class: clz.joi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var clz, conv, entity, viewstate;
({conv, entity, viewstate} = models);
clz = ['convlist'];
if (viewstate.showConvThumbs) {
clz.push('showconvthumbs');
}
if (viewstate.showAnimatedThumbs) {
clz.push('show... | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
moment.locale(i18n.getLocale())
convs = conv.list()... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
moment.locale(i18n.getLocale())
convs = conv.list()... | name = nameofconv c
if viewstate.showConvThumbs or viewstate.showConvMin
div class: 'thumbs thumbs-'+(if ents.length>4 then '4' else ents.length), ->
additional = []
for p, index in ents
# if there are up to ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lastti... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 54 | 83 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lastti... | starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
if starred.length > 0
div class: 'label', i18n.__n('favorite.title:Favorites', 2)
starred.forEach renderConv
div class: ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | ec1c6b41583e712d3c2316f9812f7c832feeca34 | 3,762 | https://github.com/yakyak/yakyak/blob/ec1c6b41583e712d3c2316f9812f7c832feeca34/src/ui/views/convlist.coffee | 54 | 83 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lastti... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | d31f9da5eed0ed2ced367714eb2380425723154f | 3,762 | https://github.com/yakyak/yakyak/blob/d31f9da5eed0ed2ced367714eb2380425723154f/src/ui/views/convlist.coffee | 54 | 85 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | span class:'unreadcount', lbl
if ents.length == 1
div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lastti... | action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
if starred.length > 0
div class: 'label', i18n.__n('favorite.title:Favorites', 2)
starred.forEac... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | d31f9da5eed0ed2ced367714eb2380425723154f | 3,762 | https://github.com/yakyak/yakyak/blob/d31f9da5eed0ed2ced367714eb2380425723154f/src/ui/views/convlist.coffee | 54 | 85 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convlist.coffee | 6 | 55 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | div class: 'thumbs thumbs-'+(if ents.length>4 then '4' else ents.length), ->
additional = []
for p, index in ents
# if there are up to 4 people in the conversation
# then draw them all, otherwise, draw 3 avatars
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convlist.coffee | 6 | 55 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convlist.coffee | 56 | 85 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
if starred.length > 0
div class: 'label', i18n.__n('favorite.title:Favorites', 2)
starred.forEach renderConv
div class: ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/convlist.coffee | 56 | 85 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convlist.coffee | 56 | 83 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
div class: 'label', i18n.__n('favorite.title', 2) if starred.length > 0
starred.forEach renderConv
div class... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/convlist.coffee | 56 | 83 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convlist.coffee | 56 | 83 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
div class: 'label', i18n.__n('favorite', 0) if starred.length > 0
starred.forEach renderConv
div class: 'oth... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convlist.coffee | 56 | 83 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convlist.coffee | 56 | 83 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
div class: 'label', i18n.__ 'Favorites' if starred.length > 0
starred.forEach renderConv
div class: 'others'... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convlist.coffee | 56 | 83 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 6c4f7269a3e8fc41aeff72bdb65b18f126f364f3 | 3,762 | https://github.com/yakyak/yakyak/blob/6c4f7269a3e8fc41aeff72bdb65b18f126f364f3/src/ui/views/convlist.coffee | 54 | 81 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'presence '+ents[0].presence
unless viewstate.showConvMin
div class:'convinfos', ->
if viewstate.showConvTime
span class:'lasttime', moment(conv.lastChanged(c)).calendar()
span class:'convname', nam... | action 'selectConv', c
starred = (c for c in convs when conv.isStarred(c))
others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
div class: 'label', 'Favorites' if starred.length > 0
starred.forEach renderConv
div class: 'others', ->
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 6c4f7269a3e8fc41aeff72bdb65b18f126f364f3 | 3,762 | https://github.com/yakyak/yakyak/blob/6c4f7269a3e8fc41aeff72bdb65b18f126f364f3/src/ui/views/convlist.coffee | 54 | 81 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 4 | 53 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | div class: 'thumbs thumbs-'+(if ents.length>4 then '4' else ents.length), ->
for p, index in ents
break if index >= 4
entity.needEntity(p.id)
drawAvatar(p.id, viewstate, entity)
if ents.l... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:raw_corpus | raw_corpus | div class:'lastmessage', ->
drawMessage(c?.event?.slice(-1)[0], entity)
, onDOMSubtreeModified: (e) ->
window.twemoji?.parse e.target if process.platform == 'win32'
div class:'divider'
, onclick: (ev)... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 54 | 74 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
div class:'lastmessage', ->
drawMessage(c?.event?.slice(-1)[0], entity)
, onDOMSubtreeModified: (e) ->
window.twemoji?.parse e.target if process.platform == 'win32'
... | var MESSAGE_CLASSES, c, others, starred;
div({
class: 'lastmessage'
}, function() {
var ref;
return drawMessage(typeof c !== "undefined" && c !== null ? (ref = c.event) != null ? ref.slice(-1)[0] : void 0 : void 0, entity);
}, {
onDOMSubtreeModified: function(e) {
var ref;
if (process.platform === 'win... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 54 | 74 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var MESSAGE_CLASSES, c, others, starred;
div({
class: 'lastmessage'
}, function() {
var ref;
return drawMessage(typeof c !== "undefined" && c !== null ? (ref = c.event) != null ? ref.slice(-1)[0] : void 0 : void 0, entity);
}, {
onDOMSubtreeModified: funct... | div class:'lastmessage', ->
drawMessage(c?.event?.slice(-1)[0], entity)
, onDOMSubtreeModified: (e) ->
window.twemoji?.parse e.target if process.platform == 'win32'
div class:'divider'
, onclick: (ev)... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 54 | 74 |
yakyak/yakyak:src/ui/views/convlist.coffee:2:completion | completion | div class:'lastmessage', ->
drawMessage(c?.event?.slice(-1)[0], entity)
, onDOMSubtreeModified: (e) ->
window.twemoji?.parse e.target if process.platform == 'win32'
div class:'divider'
, onclick: (ev)... | others = (c for c in convs when not conv.isStarred(c))
div class: 'starred', ->
div class: 'label', 'Favorites' if starred.length > 0
starred.forEach renderConv
div class: 'others', ->
div class: 'label', 'Recent' if starred.length > 0
others.forEach rende... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 0e36bbb37da3cb1f9e8abba3022d49017b6cda19 | 3,762 | https://github.com/yakyak/yakyak/blob/0e36bbb37da3cb1f9e8abba3022d49017b6cda19/src/ui/views/convlist.coffee | 54 | 74 |
yakyak/yakyak:src/ui/views/convlist.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 4da5592e0fd7d42712ea03de5b50b2a4f71a5c55 | 3,762 | https://github.com/yakyak/yakyak/blob/4da5592e0fd7d42712ea03de5b50b2a4f71a5c55/src/ui/views/convlist.coffee | 4 | 53 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:1:completion | completion | module.exports = view (models) ->
{conv, entity, viewstate} = models
clz = ['convlist']
clz.push 'showconvthumbs' if viewstate.showConvThumbs
clz.push 'showanimatedthumbs' if viewstate.showAnimatedThumbs
div class:clz.join(' '), ->
convs = conv.list()
renderConv = (c) ->
... | div class: 'thumbs thumbs-'+(if ents.length>4 then '4' else ents.length), ->
for p, index in ents
break if index >= 4
entity.needEntity(p.id)
drawAvatar(p.id, viewstate, entity)
if ents.l... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 4da5592e0fd7d42712ea03de5b50b2a4f71a5c55 | 3,762 | https://github.com/yakyak/yakyak/blob/4da5592e0fd7d42712ea03de5b50b2a4f71a5c55/src/ui/views/convlist.coffee | 4 | 53 |
yakyak/yakyak:src/ui/views/convlist.coffee:3:raw_corpus | raw_corpus | drawMessage = (e, entity) ->
mclz = ['message']
mclz.push c for c in MESSAGE_CLASSES when e[c]?
title = if e.timestamp then moment(e.timestamp / 1000).calendar() else null
div id:e.event_id, key:e.event_id, class:mclz.join(' '), title:title, ->
if e.chat_message
content = e.chat_mess... | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 7436d1cb9c8be24ecc705c776af2e07bf527148e | 3,762 | https://github.com/yakyak/yakyak/blob/7436d1cb9c8be24ecc705c776af2e07bf527148e/src/ui/views/convlist.coffee | 76 | 94 | ||
yakyak/yakyak:src/ui/views/convlist.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
drawMessage = (e, entity) ->
mclz = ['message']
mclz.push c for c in MESSAGE_CLASSES when e[c]?
title = if e.timestamp then moment(e.timestamp / 1000).calendar() else null
div id:e.event_id, key:e.event_id, class:mclz.join(' '), title:title, ->
... | var drawMessage;
drawMessage = function(e, entity) {
var c, i, len, mclz, title;
mclz = ['message'];
for (i = 0, len = MESSAGE_CLASSES.length; i < len; i++) {
c = MESSAGE_CLASSES[i];
if (e[c] != null) {
mclz.push(c);
}
}
title = e.timestamp ? moment(e.timestamp / 1000).calendar() : null;
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 7436d1cb9c8be24ecc705c776af2e07bf527148e | 3,762 | https://github.com/yakyak/yakyak/blob/7436d1cb9c8be24ecc705c776af2e07bf527148e/src/ui/views/convlist.coffee | 76 | 94 |
yakyak/yakyak:src/ui/views/convlist.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var drawMessage;
drawMessage = function(e, entity) {
var c, i, len, mclz, title;
mclz = ['message'];
for (i = 0, len = MESSAGE_CLASSES.length; i < len; i++) {
c = MESSAGE_CLASSES[i];
if (e[c] != null) {
mclz.push(c);
}
}
title = e.times... | drawMessage = (e, entity) ->
mclz = ['message']
mclz.push c for c in MESSAGE_CLASSES when e[c]?
title = if e.timestamp then moment(e.timestamp / 1000).calendar() else null
div id:e.event_id, key:e.event_id, class:mclz.join(' '), title:title, ->
if e.chat_message
content = e.chat_mess... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 7436d1cb9c8be24ecc705c776af2e07bf527148e | 3,762 | https://github.com/yakyak/yakyak/blob/7436d1cb9c8be24ecc705c776af2e07bf527148e/src/ui/views/convlist.coffee | 76 | 94 |
yakyak/yakyak:src/ui/views/convlist.coffee:3:completion | completion | drawMessage = (e, entity) ->
mclz = ['message']
mclz.push c for c in MESSAGE_CLASSES when e[c]?
title = if e.timestamp then moment(e.timestamp / 1000).calendar() else null
div id:e.event_id, key:e.event_id, class:mclz.join(' '), title:title, ->
if e.chat_message
content = e.chat_mess... | pass "renamed conversation to #{e.conversation_rename.new_name}"
# {new_name: "labbot" old_name: ""}
else if e.membership_change
t = e.membership_change.type
ents = e.membership_change.participant_ids.map (p) -> entity[p.chat_id]
names = ents.map(nameof).join(', '... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/convlist.coffee | MIT | 7436d1cb9c8be24ecc705c776af2e07bf527148e | 3,762 | https://github.com/yakyak/yakyak/blob/7436d1cb9c8be24ecc705c776af2e07bf527148e/src/ui/views/convlist.coffee | 76 | 94 |
yakyak/yakyak:src/seqreq.coffee:1:raw_corpus | raw_corpus | totallyunique = (as...) -> String(Date.now()) + (Math.random() * 1000000)
# fn is expected to return a promised that finishes
# when fn is finished.
#
# retry is whether we retry failures of fn
#
# dedupe is a function that mashes the arguments to fn
# into a dedupe value.
module.exports = (fn, retry, dedupe = totally... | CoffeeScript | yakyak/yakyak | src/seqreq.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/seqreq.coffee | 1 | 43 | ||
yakyak/yakyak:src/seqreq.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
totallyunique = (as...) -> String(Date.now()) + (Math.random() * 1000000)
# fn is expected to return a promised that finishes
# when fn is finished.
#
# retry is whether we retry failures of fn
#
# dedupe is a function that mashes the arguments to fn
# into a de... | var totallyunique;
totallyunique = function(...as) {
return String(Date.now()) + (Math.random() * 1000000);
};
// fn is expected to return a promised that finishes
// when fn is finished.
// retry is whether we retry failures of fn
// dedupe is a function that mashes the arguments to fn
// into a dedupe value.
mo... | CoffeeScript | JavaScript | yakyak/yakyak | src/seqreq.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/seqreq.coffee | 1 | 43 |
yakyak/yakyak:src/seqreq.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var totallyunique;
totallyunique = function(...as) {
return String(Date.now()) + (Math.random() * 1000000);
};
// fn is expected to return a promised that finishes
// when fn is finished.
// retry is whether we retry failures of fn
// dedupe is a function tha... | totallyunique = (as...) -> String(Date.now()) + (Math.random() * 1000000)
# fn is expected to return a promised that finishes
# when fn is finished.
#
# retry is whether we retry failures of fn
#
# dedupe is a function that mashes the arguments to fn
# into a dedupe value.
module.exports = (fn, retry, dedupe = totally... | JavaScript | CoffeeScript | yakyak/yakyak | src/seqreq.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/seqreq.coffee | 1 | 43 |
yakyak/yakyak:src/seqreq.coffee:1:completion | completion | totallyunique = (as...) -> String(Date.now()) + (Math.random() * 1000000)
# fn is expected to return a promised that finishes
# when fn is finished.
#
# retry is whether we retry failures of fn
#
# dedupe is a function that mashes the arguments to fn
# into a dedupe value.
module.exports = (fn, retry, dedupe = totally... | args = queue[0] # next args to try
fn(args...).then ->
# it finished, drop args
queue.shift(); deduped.shift()
.fail (err) ->
# it failed.
# no retry? then just drop args
(queue.shift(); deduped.shift()) unless retry
.then ->
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/seqreq.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/seqreq.coffee | 1 | 43 |
jianliaoim/talk-os:talk-web/client/app/notify-upgrade.coffee:1:raw_corpus | raw_corpus | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
time = require '../util/time'
lang = require '../locales/lang'
div = React.createFactory 'div'
span = React.createFactory 'span'
a = React.createFactory 'a'
T = React.PropTypes
module.exports = React.createClass
displayName: '... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-upgrade.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-upgrade.coffee | 1 | 49 | ||
jianliaoim/talk-os:talk-web/client/app/notify-upgrade.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
time = require '../util/time'
lang = require '../locales/lang'
div = React.createFactory 'div'
span = React.createFactory 'span'
a = React.createFactory 'a'
T = React.PropT... | var PureRenderMixin, React, T, a, div, lang, span, time;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
time = require('../util/time');
lang = require('../locales/lang');
div = React.createFactory('div');
span = React.createFactory('span');
a = React.createFactory('a');
T... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/notify-upgrade.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-upgrade.coffee | 1 | 49 |
jianliaoim/talk-os:talk-web/client/app/notify-upgrade.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PureRenderMixin, React, T, a, div, lang, span, time;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
time = require('../util/time');
lang = require('../locales/lang');
div = React.createFactory('div');
span = React.c... | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
time = require '../util/time'
lang = require '../locales/lang'
div = React.createFactory 'div'
span = React.createFactory 'span'
a = React.createFactory 'a'
T = React.PropTypes
module.exports = React.createClass
displayName: '... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-upgrade.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-upgrade.coffee | 1 | 49 |
jianliaoim/talk-os:talk-web/client/app/notify-upgrade.coffee:1:completion | completion | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
time = require '../util/time'
lang = require '../locales/lang'
div = React.createFactory 'div'
span = React.createFactory 'span'
a = React.createFactory 'a'
T = React.PropTypes
module.exports = React.createClass
displayName: '... | @_timer = time.every 1000, @countDown
countDown: ->
if @state.wait > 0
then @setState wait: (@state.wait - 1)
else @onUpgrade()
onUpgrade: ->
clearInterval @_timer
location.reload()
onDismiss: ->
clearInterval @_timer
@props.onDismiss()
render: ->
div className: 'notify-upgr... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-upgrade.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-upgrade.coffee | 1 | 49 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | perf 'Create simple object', 100000, (run) ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/perf/basic/object.coffee | 1 | 21 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
perf 'Create simple object', 100000, (run) ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
... | perf('Create simple object', 100000, function(run) {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "I... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
perf('Create simple object', 100000, function(run) {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#... | perf 'Create simple object', 100000, (run) ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | perf 'Create simple object', 100000, (run) ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped: | '#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
contact:
phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
run () -> xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | perf 'Create simple object', 100000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wi... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 64f5865756026722410337c6b9bf070509391cbc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/64f5865756026722410337c6b9bf070509391cbc/perf/basic/object.coffee | 1 | 21 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
perf 'Create simple object', 100000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
... | perf('Create simple object', 100000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Ista... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 64f5865756026722410337c6b9bf070509391cbc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/64f5865756026722410337c6b9bf070509391cbc/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
perf('Create simple object', 100000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw... | perf 'Create simple object', 100000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wi... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 64f5865756026722410337c6b9bf070509391cbc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/64f5865756026722410337c6b9bf070509391cbc/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | perf 'Create simple object', 100000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped: | '#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
contact:
phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 64f5865756026722410337c6b9bf070509391cbc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/64f5865756026722410337c6b9bf070509391cbc/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | perf 'Create simple object', 10000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and win... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 0a8ee95a6b91eeddebfffa80b5c112eeca494b21 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/0a8ee95a6b91eeddebfffa80b5c112eeca494b21/perf/basic/object.coffee | 1 | 21 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
perf 'Create simple object', 10000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
... | perf('Create simple object', 10000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Istan... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 0a8ee95a6b91eeddebfffa80b5c112eeca494b21 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/0a8ee95a6b91eeddebfffa80b5c112eeca494b21/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
perf('Create simple object', 10000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw'... | perf 'Create simple object', 10000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and win... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 0a8ee95a6b91eeddebfffa80b5c112eeca494b21 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/0a8ee95a6b91eeddebfffa80b5c112eeca494b21/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | perf 'Create simple object', 10000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped: | '#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
contact:
phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 0a8ee95a6b91eeddebfffa80b5c112eeca494b21 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/0a8ee95a6b91eeddebfffa80b5c112eeca494b21/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wind... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2/perf/basic/object.coffee | 1 | 21 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
... | perf('Create simple object', 1000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Istanb... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
perf('Create simple object', 1000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw':... | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wind... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped: | '#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
contact:
phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/d67f08d1bf765c5fa25e9ecb2ec3c1d6febe8dd2/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wind... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 78d314aefecc34375514b3e5164a3baa85b784b3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/78d314aefecc34375514b3e5164a3baa85b784b3/perf/basic/object.coffee | 1 | 30 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
... | perf('Create simple object', 1000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Istanb... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 78d314aefecc34375514b3e5164a3baa85b784b3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/78d314aefecc34375514b3e5164a3baa85b784b3/perf/basic/object.coffee | 1 | 30 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
perf('Create simple object', 1000, function() {
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw':... | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wind... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 78d314aefecc34375514b3e5164a3baa85b784b3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/78d314aefecc34375514b3e5164a3baa85b784b3/perf/basic/object.coffee | 1 | 30 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | perf 'Create simple object', 1000, () ->
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and wind... | phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
xml(obj)
perf 'Character escaping ', 1000, () ->
obj =
node: "simple element"
ele:
'#text': '&<>\r'
'@att': '&<"\t\n\r'
xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 78d314aefecc34375514b3e5164a3baa85b784b3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/78d314aefecc34375514b3e5164a3baa85b784b3/perf/basic/object.coffee | 1 | 30 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:raw_corpus | raw_corpus | obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
c... | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 287f30ab4393244a1ce1cb83496e2673169cc5dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/287f30ab4393244a1ce1cb83496e2673169cc5dc/perf/basic/object.coffee | 1 | 21 | ||
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
... | var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Istanbul",
street: "End of long and winding road"
},
contact: {
... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 287f30ab4393244a1ce1cb83496e2673169cc5dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/287f30ab4393244a1ce1cb83496e2673169cc5dc/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var obj;
obj = {
ele: "simple element",
person: {
name: "John",
'@age': 35,
'?pi': 'mypi',
'#comment': 'Good guy',
'#cdata': 'well formed!',
unescaped: {
'#raw': '&<>&'
},
address: {
city: "Istanbul",
street: "... | obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&'
address:
city: "Istanbul"
street: "End of long and winding road"
c... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 287f30ab4393244a1ce1cb83496e2673169cc5dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/287f30ab4393244a1ce1cb83496e2673169cc5dc/perf/basic/object.coffee | 1 | 21 |
oozcitak/xmlbuilder-js:perf/basic/object.coffee:1:completion | completion | obj =
ele: "simple element"
person:
name: "John"
'@age': 35
'?pi': 'mypi'
'#comment': 'Good guy'
'#cdata': 'well formed!'
unescaped:
'#raw': '&<>&' | address:
city: "Istanbul"
street: "End of long and winding road"
contact:
phone: [ "555-1234", "555-1235" ]
id: () -> return 42
details:
'#text': 'classified'
perf 'Create simple object', 1000, () ->
xml(obj) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | perf/basic/object.coffee | MIT | 287f30ab4393244a1ce1cb83496e2673169cc5dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/287f30ab4393244a1ce1cb83496e2673169cc5dc/perf/basic/object.coffee | 1 | 21 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// licen... | module.exports = function(grunt) {
// Initialise
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n'
},
coffee: {
build: {
... | CoffeeScript | JavaScript | discolabs/cartjs | Gruntfile.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
// Initialise
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.lice... | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | JavaScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | 'src/core.coffee'
'src/data.coffee'
'src/rivets.coffee'
'src/export.coffee'
]
concat:
build:
options:
banner: '<%= meta.banner %>'
files:
'dist/rivets-cart.js': [
'node_modules/sightglass/index.js',
'nod... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 291d04de24d32296ae6faaffc4bb0aed6fb9e499 | 493 | https://github.com/discolabs/cartjs/blob/291d04de24d32296ae6faaffc4bb0aed6fb9e499/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// licen... | module.exports = function(grunt) {
// Initialise
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n'
},
coffee: {
build: {
... | CoffeeScript | JavaScript | discolabs/cartjs | Gruntfile.coffee | MIT | 291d04de24d32296ae6faaffc4bb0aed6fb9e499 | 493 | https://github.com/discolabs/cartjs/blob/291d04de24d32296ae6faaffc4bb0aed6fb9e499/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
// Initialise
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.lice... | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | JavaScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 291d04de24d32296ae6faaffc4bb0aed6fb9e499 | 493 | https://github.com/discolabs/cartjs/blob/291d04de24d32296ae6faaffc4bb0aed6fb9e499/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Initialise
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
bui... | 'src/core.coffee'
'src/data.coffee'
'src/rivets.coffee'
'src/export.coffee'
]
concat:
build:
options:
banner: '<%= meta.banner %>'
files:
'dist/rivets-cart.js': [
'node_modules/rivets/node_modules/sightglass/index.j... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 291d04de24d32296ae6faaffc4bb0aed6fb9e499 | 493 | https://github.com/discolabs/cartjs/blob/291d04de24d32296ae6faaffc4bb0aed6fb9e499/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Define a list of the core source files to use for compilation.
sources = [
'src/cart.coffee'
'src/item.coffee'
'src/cartjs.coffee'
'src/utils.coffee'
'src/queue.coffee'
'src/core.coffee'
'src/data.coffee'
'src/rivets.coffee'
'src/export.coffee'
]
... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | e36dfbe63ff6a9ff9abc3d3e919c4f90e110be5b | 493 | https://github.com/discolabs/cartjs/blob/e36dfbe63ff6a9ff9abc3d3e919c4f90e110be5b/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Define a list of the core source files to use for compilation.
sources = [
'src/cart.coffee'
'src/item.coffee'
'src/cartjs.coffee'
'src/utils.coffee'
'src/queue.coffee'
'src/core.coffee'
'src/data.coffee'
'src/rivets.coffee'
'src/export.coffee'
]
... | coffee:
build:
options:
join: true
files:
'dist/cart.js': sources
'dist/cart-compatibility.js': sources.concat ['src/compatibility.coffee']
concat:
build:
options:
banner: '<%= meta.banner %>'
files:
'dist/rivets-cart.js'... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | e36dfbe63ff6a9ff9abc3d3e919c4f90e110be5b | 493 | https://github.com/discolabs/cartjs/blob/e36dfbe63ff6a9ff9abc3d3e919c4f90e110be5b/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1b76b0a1cbf48719816883621109129612258764 | 493 | https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.lice... | module.exports = function(grunt) {
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n'
},
coffee: {
build: {
options:... | CoffeeScript | JavaScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1b76b0a1cbf48719816883621109129612258764 | 493 | https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\... | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | JavaScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1b76b0a1cbf48719816883621109129612258764 | 493 | https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | 'src/export.coffee'
]
'dist/cart-ie8.js': [
'src/cart.coffee'
'src/item.coffee'
'src/cartjs.coffee'
'src/utils.coffee'
'src/queue.coffee'
'src/core.coffee'
'src/data.coffee'
'src/rivets.coffee'
... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1b76b0a1cbf48719816883621109129612258764 | 493 | https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | d84afbd81b7349ca151e672efe7f0633c07a833c | 493 | https://github.com/discolabs/cartjs/blob/d84afbd81b7349ca151e672efe7f0633c07a833c/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.lice... | module.exports = function(grunt) {
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\n'
},
coffee: {
build: {
options:... | CoffeeScript | JavaScript | discolabs/cartjs | Gruntfile.coffee | MIT | d84afbd81b7349ca151e672efe7f0633c07a833c | 493 | https://github.com/discolabs/cartjs/blob/d84afbd81b7349ca151e672efe7f0633c07a833c/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '// Cart.js\n' + '// version: <%= pkg.version %>\n' + '// author: <%= pkg.author %>\n' + '// license: <%= pkg.licenses[0].type %>\... | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | JavaScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | d84afbd81b7349ca151e672efe7f0633c07a833c | 493 | https://github.com/discolabs/cartjs/blob/d84afbd81b7349ca151e672efe7f0633c07a833c/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | 'src/export.coffee'
]
concat:
build:
options:
banner: '<%= meta.banner %>'
files:
'dist/rivets-cart.js': [
'node_modules/rivets/node_modules/sightglass/index.js',
'node_modules/rivets/dist/rivets.js',
'dist/cart.js'
]... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | d84afbd81b7349ca151e672efe7f0633c07a833c | 493 | https://github.com/discolabs/cartjs/blob/d84afbd81b7349ca151e672efe7f0633c07a833c/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1beabacda6ffdf67ad6cb0ac6ef024eab867584e | 493 | https://github.com/discolabs/cartjs/blob/1beabacda6ffdf67ad6cb0ac6ef024eab867584e/Gruntfile.coffee | 1 | 50 | ||
discolabs/cartjs:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | 'src/export.coffee'
]
concat:
build:
options:
banner: '<%= meta.banner %>'
files:
'dist/rivets-cart.js': ['node_modules/rivets/node_modules/sightglass/index.js', 'node_modules/rivets/dist/rivets.js', 'dist/cart.js']
uglify:
build:
options:
... | CoffeeScript | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | 1beabacda6ffdf67ad6cb0ac6ef024eab867584e | 493 | https://github.com/discolabs/cartjs/blob/1beabacda6ffdf67ad6cb0ac6ef024eab867584e/Gruntfile.coffee | 1 | 50 |
discolabs/cartjs:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
meta:
banner:
'// Cart.js\n' +
'// version: <%= pkg.version %>\n' +
'// author: <%= pkg.author %>\n' +
'// license: <%= pkg.licenses[0].type %>\n'
coffee:
build:
opti... | CoffeeScript | discolabs/cartjs | Gruntfile.coffee | MIT | ff74ba8074843ebc39683394f08c0b073634f248 | 493 | https://github.com/discolabs/cartjs/blob/ff74ba8074843ebc39683394f08c0b073634f248/Gruntfile.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.