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/notifications.coffee:2:completion | completion | return if !text or quietIf(c, chat_id)
if viewstate.showPopUpNotifications and not (mainWindow.isVisible() and mainWindow.isFocused())
isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
... | wait: true
hint: "int:transient:1"
category: 'im.received'
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIc... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | f5f80a0116b33e2aff80d0231bb62e59e4735174 | 3,762 | https://github.com/yakyak/yakyak/blob/f5f80a0116b33e2aff80d0231bb62e59e4735174/src/ui/views/notifications.coffee | 71 | 112 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4 | 3,762 | https://github.com/yakyak/yakyak/blob/cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject:Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('calls.a... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4 | 3,762 | https://github.com/yakyak/yakyak/blob/cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4 | 3,762 | https://github.com/yakyak/yakyak/blob/cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4/src/ui/views/notifications.coffee | 71 | 106 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIconNotification
contentImage: contentImage
, (err, re... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4 | 3,762 | https://github.com/yakyak/yakyak/blob/cfa419f0d7c3ab38a71b34df9ad835f0e930ffa4/src/ui/views/notifications.coffee | 71 | 106 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject:Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('calls.a... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:raw_corpus | raw_corpus | textMessage = (cont, proxied) ->
if cont?.segment?
unless viewstate.showMessageInNotification
i18n.__('conversation.new_message:New message received')
else
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2
continue unless seg.text
... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 108 | 119 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
textMessage = (cont, proxied) ->
if cont?.segment?
unless viewstate.showMessageInNotification
i18n.__('conversation.new_message:New message received')
else
segs = for seg, i in cont?.segment ? []
continue if proxi... | var textMessage;
textMessage = function(cont, proxied) {
var i, seg, segs;
if ((cont != null ? cont.segment : void 0) != null) {
if (!viewstate.showMessageInNotification) {
return i18n.__('conversation.new_message:New message received');
} else {
segs = (function() {
var j, len, ref, re... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 108 | 119 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var textMessage;
textMessage = function(cont, proxied) {
var i, seg, segs;
if ((cont != null ? cont.segment : void 0) != null) {
if (!viewstate.showMessageInNotification) {
return i18n.__('conversation.new_message:New message received');
} else {... | textMessage = (cont, proxied) ->
if cont?.segment?
unless viewstate.showMessageInNotification
i18n.__('conversation.new_message:New message received')
else
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2
continue unless seg.text
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 108 | 119 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:completion | completion | textMessage = (cont, proxied) ->
if cont?.segment?
unless viewstate.showMessageInNotification
i18n.__('conversation.new_message:New message received')
else
segs = for seg, i in cont?.segment ? [] | continue if proxied and i < 2
continue unless seg.text
seg.text
segs.join('')
else if cont?.attachment?
i18n.__('conversation.new_attachment:New message received (image or video)') | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c7b94053c2ed7f94e237bf7e231a7e164b9fc646 | 3,762 | https://github.com/yakyak/yakyak/blob/c7b94053c2ed7f94e237bf7e231a7e164b9fc646/src/ui/views/notifications.coffee | 108 | 119 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conver... | module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !== null ? document.hasFocus() : void 0) || conv.isQuiet(c... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !==... | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | html: "#{i18n.__('call.incoming_from:Incoming call from %s', sender)}. " +
"<a href=\"#\" class=\"accept\">#{i18n.__ 'call.accept:Accept'}</a> / " +
"<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject:Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | if viewstate.showPopUpNotifications
isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNot... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 71 | 108 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
if viewstate.showPopUpNotifications
isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
... | var contentImage, icon, isNotificationCenter, mainWindow, ref;
if (viewstate.showPopUpNotifications) {
isNotificationCenter = notifier.constructor.name === 'NotificationCenter';
icon = path.join(__dirname, '..', '..', 'icons', 'icon@8.png');
// Only for NotificationCenter (darwin)
if (isNotificationCenter && ... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 71 | 108 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var contentImage, icon, isNotificationCenter, mainWindow, ref;
if (viewstate.showPopUpNotifications) {
isNotificationCenter = notifier.constructor.name === 'NotificationCenter';
icon = path.join(__dirname, '..', '..', 'icons', 'icon@8.png');
// Only for Not... | if viewstate.showPopUpNotifications
isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNot... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 71 | 108 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | if viewstate.showPopUpNotifications
isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNot... | message: text
wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIconNotification
contentImage: conte... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | b8c17efd385510fb0920d10e40f2d3cca993ea67 | 3,762 | https://github.com/yakyak/yakyak/blob/b8c17efd385510fb0920d10e40f2d3cca993ea67/src/ui/views/notifications.coffee | 71 | 108 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 71 | 111 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | i18n.__('conversation.new_message:New Message')
wait: true
hint: "int:transient:1"
category: 'im.received'
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 71 | 111 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:raw_corpus | raw_corpus | textMessage = (cont, proxied) ->
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2
continue unless seg.text
seg.text
segs.join('') | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 113 | 118 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
textMessage = (cont, proxied) ->
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2
continue unless seg.text
seg.text
segs.join('')
``` | var textMessage;
textMessage = function(cont, proxied) {
var i, seg, segs;
segs = (function() {
var j, len, ref, ref1, results;
ref1 = (ref = cont != null ? cont.segment : void 0) != null ? ref : [];
results = [];
for (i = j = 0, len = ref1.length; j < len; i = ++j) {
seg = ref1[i];
if ... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 113 | 118 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var textMessage;
textMessage = function(cont, proxied) {
var i, seg, segs;
segs = (function() {
var j, len, ref, ref1, results;
ref1 = (ref = cont != null ? cont.segment : void 0) != null ? ref : [];
results = [];
for (i = j = 0, len = ref1.len... | textMessage = (cont, proxied) ->
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2
continue unless seg.text
seg.text
segs.join('') | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 113 | 118 |
yakyak/yakyak:src/ui/views/notifications.coffee:3:completion | completion | textMessage = (cont, proxied) ->
segs = for seg, i in cont?.segment ? []
continue if proxied and i < 2 | continue unless seg.text
seg.text
segs.join('') | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 108dc50ab1f71ce2b0e3d64851c3d9a813930bca | 3,762 | https://github.com/yakyak/yakyak/blob/108dc50ab1f71ce2b0e3d64851c3d9a813930bca/src/ui/views/notifications.coffee | 113 | 118 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> (remote.getCurrentWindow().isVisible() and remote.getCurrentWindow().isFocused()) or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.co... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 56ef7332e38c1c26b59266aca47bd157ba0d0e9d | 3,762 | https://github.com/yakyak/yakyak/blob/56ef7332e38c1c26b59266aca47bd157ba0d0e9d/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> (remote.getCurrentWindow().isVisible() and remote.getCurrentWindow().isFocused()) or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.co... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject:Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('calls.a... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 56ef7332e38c1c26b59266aca47bd157ba0d0e9d | 3,762 | https://github.com/yakyak/yakyak/blob/56ef7332e38c1c26b59266aca47bd157ba0d0e9d/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 56ef7332e38c1c26b59266aca47bd157ba0d0e9d | 3,762 | https://github.com/yakyak/yakyak/blob/56ef7332e38c1c26b59266aca47bd157ba0d0e9d/src/ui/views/notifications.coffee | 71 | 112 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIconNotification
contentImage: contentImage
, (err, re... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 56ef7332e38c1c26b59266aca47bd157ba0d0e9d | 3,762 | https://github.com/yakyak/yakyak/blob/56ef7332e38c1c26b59266aca47bd157ba0d0e9d/src/ui/views/notifications.coffee | 71 | 112 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 75bfe25b07d2a18a4f23f2e687b09750a00696fd | 3,762 | https://github.com/yakyak/yakyak/blob/75bfe25b07d2a18a4f23f2e687b09750a00696fd/src/ui/views/notifications.coffee | 71 | 109 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | else
i18n.__('conversation.new_message:New Message')
wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && v... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 75bfe25b07d2a18a4f23f2e687b09750a00696fd | 3,762 | https://github.com/yakyak/yakyak/blob/75bfe25b07d2a18a4f23f2e687b09750a00696fd/src/ui/views/notifications.coffee | 71 | 109 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject:Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('calls.a... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 20 | 69 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conver... | module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !== null ? document.hasFocus() : void 0) || conv.isQuiet(c... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 20 | 69 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !==... | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 20 | 69 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | '<a href="#" class="reject">Reject</a>'
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:'Accepted', stay:1000, id:"hang#{conv_id}"})
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 20 | 69 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | #
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink entity[cid]?.photo_url
else
contentImage = undefined
... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 70 | 107 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | #
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink entity[cid]?.photo_url
else
contentImage = undefined
... | 'New Message'
wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIconNotification
contentImage: conte... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 944e7315dae76b63909a2d3ade05df66a509b135 | 3,762 | https://github.com/yakyak/yakyak/blob/944e7315dae76b63909a2d3ade05df66a509b135/src/ui/views/notifications.coffee | 70 | 107 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'call.reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('calls.accepted... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/notifications.coffee | 71 | 109 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | isNotificationCenter = notifier.constructor.name == 'NotificationCenter'
#
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink... | else
i18n.__('conversation.new_message')
wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.sho... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/notifications.coffee | 71 | 109 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conver... | module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !== null ? document.hasFocus() : void 0) || conv.isQuiet(c... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(models) {
var conv, entity, notify, quietIf, tonot, viewstate;
({conv, notify, entity, viewstate} = models);
tonot = notify.popToNotify();
quietIf = function(c, chat_id) {
return (typeof document !== "undefined" && document !==... | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('Accepted'), stay:10... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 21 | 70 |
yakyak/yakyak:src/ui/views/notifications.coffee:2:raw_corpus | raw_corpus | #
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink entity[cid]?.photo_url
else
contentImage = undefined
... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 71 | 108 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:2:completion | completion | #
icon = path.join __dirname, '..', '..', 'icons', 'icon@8.png'
# Only for NotificationCenter (darwin)
if isNotificationCenter && viewstate.showIconNotification
contentImage = fixlink entity[cid]?.photo_url
else
contentImage = undefined
... | i18n.__('New Message')
wait: true
sender: 'com.github.yakyak'
sound: !viewstate.muteSoundNotification && (notifierSupportsSound && !viewstate.forceCustomSound)
icon: icon if !isNotificationCenter && viewstate.showIconNotification
contentIma... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | c598a2705877bc3f718cbe3dca15fcf0e38de9fa | 3,762 | https://github.com/yakyak/yakyak/blob/c598a2705877bc3f718cbe3dca15fcf0e38de9fa/src/ui/views/notifications.coffee | 71 | 108 |
yakyak/yakyak:src/ui/views/notifications.coffee:1:raw_corpus | raw_corpus | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 8a9e12c220d7c9551c9723076d057c01def7c85d | 3,762 | https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/notifications.coffee | 21 | 70 | ||
yakyak/yakyak:src/ui/views/notifications.coffee:1:completion | completion | module.exports = (models) ->
{conv, notify, entity, viewstate} = models
tonot = notify.popToNotify()
quietIf = (c, chat_id) -> document?.hasFocus() or conv.isQuiet(c) or entity.isSelf(chat_id)
tonot.forEach (msg) ->
conv_id = msg?.conversation_id?.id
c = conv[conv_id]
chat_id =... | "<a href=\"#\" class=\"reject\">#{i18n.__ 'Reject'}</a>"
stay: 0
id: "hang#{conv_id}"
onclick: (e) ->
delete callNeedAnswer[conv_id]
if e?.target?.className == 'accept'
notr({html:i18n.__('Accepted'), stay:10... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/notifications.coffee | MIT | 8a9e12c220d7c9551c9723076d057c01def7c85d | 3,762 | https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/notifications.coffee | 21 | 70 |
buttercoin/buttercoin:lib/businessqueue.coffee:1:raw_corpus | raw_corpus | Q = require('q')
module.exports = class BusinessQueue
constructor: -> | CoffeeScript | buttercoin/buttercoin | lib/businessqueue.coffee | MIT | c7e8ce829e7c41ea120f5afc7997ecad7102eeb5 | 663 | https://github.com/buttercoin/buttercoin/blob/c7e8ce829e7c41ea120f5afc7997ecad7102eeb5/lib/businessqueue.coffee | 1 | 4 | ||
buttercoin/buttercoin:lib/businessqueue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Q = require('q')
module.exports = class BusinessQueue
constructor: ->
``` | var BusinessQueue, Q;
Q = require('q');
module.exports = BusinessQueue = class BusinessQueue {
constructor() {}
}; | CoffeeScript | JavaScript | buttercoin/buttercoin | lib/businessqueue.coffee | MIT | c7e8ce829e7c41ea120f5afc7997ecad7102eeb5 | 663 | https://github.com/buttercoin/buttercoin/blob/c7e8ce829e7c41ea120f5afc7997ecad7102eeb5/lib/businessqueue.coffee | 1 | 4 |
buttercoin/buttercoin:lib/businessqueue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var BusinessQueue, Q;
Q = require('q');
module.exports = BusinessQueue = class BusinessQueue {
constructor() {}
};
``` | Q = require('q')
module.exports = class BusinessQueue
constructor: -> | JavaScript | CoffeeScript | buttercoin/buttercoin | lib/businessqueue.coffee | MIT | c7e8ce829e7c41ea120f5afc7997ecad7102eeb5 | 663 | https://github.com/buttercoin/buttercoin/blob/c7e8ce829e7c41ea120f5afc7997ecad7102eeb5/lib/businessqueue.coffee | 1 | 4 |
gterrono/houston:client/partials/custom_actions.coffee:1:raw_corpus | raw_corpus | Template._houston_custom_actions.helpers
actions: ->
if @collection_info.method_names
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@colle... | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/custom_actions.coffee | 1 | 8 | ||
gterrono/houston:client/partials/custom_actions.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_custom_actions.helpers
actions: ->
if @collection_info.method_names
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDef... | Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
if (this.collection_info.method_names) {
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
action = ref[i];
results.push(_.ext... | CoffeeScript | JavaScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/custom_actions.coffee | 1 | 8 |
gterrono/houston:client/partials/custom_actions.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
if (this.collection_info.method_names) {
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++... | Template._houston_custom_actions.helpers
actions: ->
if @collection_info.method_names
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@colle... | JavaScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/custom_actions.coffee | 1 | 8 |
gterrono/houston:client/partials/custom_actions.coffee:1:completion | completion | Template._houston_custom_actions.helpers
actions: ->
if @collection_info.method_names
(_.extend({action}, @) for action in @collection_info.method_names) | Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, Houston._show_flash | CoffeeScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/custom_actions.coffee | 1 | 8 |
gterrono/houston:client/partials/custom_actions.coffee:1:raw_corpus | raw_corpus | Template._houston_custom_actions.helpers
actions: ->
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, H... | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | f4ad0d5343aadbad84597aaaaa849e5753db37ce | 802 | https://github.com/gterrono/houston/blob/f4ad0d5343aadbad84597aaaaa849e5753db37ce/client/partials/custom_actions.coffee | 1 | 7 | ||
gterrono/houston:client/partials/custom_actions.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_custom_actions.helpers
actions: ->
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_... | Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
action = ref[i];
results.push(_.extend({action}, this));
}
return results;
}
});... | CoffeeScript | JavaScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | f4ad0d5343aadbad84597aaaaa849e5753db37ce | 802 | https://github.com/gterrono/houston/blob/f4ad0d5343aadbad84597aaaaa849e5753db37ce/client/partials/custom_actions.coffee | 1 | 7 |
gterrono/houston:client/partials/custom_actions.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
action = ref[i];
results.push(_.ext... | Template._houston_custom_actions.helpers
actions: ->
(_.extend({action}, @) for action in @collection_info.method_names)
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, H... | JavaScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | f4ad0d5343aadbad84597aaaaa849e5753db37ce | 802 | https://github.com/gterrono/houston/blob/f4ad0d5343aadbad84597aaaaa849e5753db37ce/client/partials/custom_actions.coffee | 1 | 7 |
gterrono/houston:client/partials/custom_actions.coffee:1:completion | completion | Template._houston_custom_actions.helpers
actions: ->
(_.extend({action}, @) for action in @collection_info.method_names) | Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, Houston._show_flash | CoffeeScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | f4ad0d5343aadbad84597aaaaa849e5753db37ce | 802 | https://github.com/gterrono/houston/blob/f4ad0d5343aadbad84597aaaaa849e5753db37ce/client/partials/custom_actions.coffee | 1 | 7 |
gterrono/houston:client/partials/custom_actions.coffee:1:raw_corpus | raw_corpus | Template._houston_custom_actions.helpers
actions: ->
_.extend(@, {action}) for action in @collection_info.method_names
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, Hou... | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2 | 802 | https://github.com/gterrono/houston/blob/6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2/client/partials/custom_actions.coffee | 1 | 7 | ||
gterrono/houston:client/partials/custom_actions.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Template._houston_custom_actions.helpers
actions: ->
_.extend(@, {action}) for action in @collection_info.method_names
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_me... | Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
action = ref[i];
results.push(_.extend(this, {action}));
}
return results;
}
});... | CoffeeScript | JavaScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2 | 802 | https://github.com/gterrono/houston/blob/6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2/client/partials/custom_actions.coffee | 1 | 7 |
gterrono/houston:client/partials/custom_actions.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Template._houston_custom_actions.helpers({
actions: function() {
var action, i, len, ref, results;
ref = this.collection_info.method_names;
results = [];
for (i = 0, len = ref.length; i < len; i++) {
action = ref[i];
results.push(_.ext... | Template._houston_custom_actions.helpers
actions: ->
_.extend(@, {action}) for action in @collection_info.method_names
Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, Hou... | JavaScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2 | 802 | https://github.com/gterrono/houston/blob/6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2/client/partials/custom_actions.coffee | 1 | 7 |
gterrono/houston:client/partials/custom_actions.coffee:1:completion | completion | Template._houston_custom_actions.helpers
actions: ->
_.extend(@, {action}) for action in @collection_info.method_names | Template._houston_custom_actions.events
'click .custom-houston-action': (e) ->
e.preventDefault()
Meteor.call Houston._custom_method_name(@collection_info.name, @action), @document, Houston._show_flash | CoffeeScript | CoffeeScript | gterrono/houston | client/partials/custom_actions.coffee | MIT | 6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2 | 802 | https://github.com/gterrono/houston/blob/6d01bcad22bfa222aa9dab6eded3f0bbe1e9bfe2/client/partials/custom_actions.coffee | 1 | 7 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:raw_corpus | raw_corpus | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 11 | 60 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes ... | var XMLDocument;
module.exports = XMLDocument = (function() {
class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
// `options.keepNullAttributes` whether attributes ... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 11 | 60 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var XMLDocument;
module.exports = XMLDocument = (function() {
class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
... | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 11 | 60 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:completion | completion | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | @documentURI = null
@domConfig = new XMLDOMConfiguration()
options or= {}
if not options.writer then options.writer = new XMLStringWriter()
@options = options
@stringify = new XMLStringifier options
# DOM level 1
Object.defineProperty @::, 'implementation', value: new XMLDOMImplementation()
... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 11 | 60 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:raw_corpus | raw_corpus | else
return null
Object.defineProperty @::, 'xmlStandalone', get: () ->
if @children.length isnt 0 and @children[0].type is NodeType.Declaration
return @children[0].standalone is 'yes'
else
return false
Object.defineProperty @::, 'xmlVersion', get: () ->
if @children.length isnt 0 and ... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 61 | 110 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:completion | completion | else
return null
Object.defineProperty @::, 'xmlStandalone', get: () ->
if @children.length isnt 0 and @children[0].type is NodeType.Declaration
return @children[0].standalone is 'yes'
else
return false
Object.defineProperty @::, 'xmlVersion', get: () ->
if @children.length isnt 0 and ... | # constructor of the default XML writer. The default writer is assigned when
# creating the XML document. Following flags are recognized by the
# built-in XMLStringWriter:
# `writer.pretty` pretty prints the result
# `writer.indent` indentation for pretty print
# `writer.offset` how many indentations to... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 61 | 110 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:raw_corpus | raw_corpus | toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implemented later
createElement: (tagName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createDocumentFragment: () -> throw new Error "This DOM method is not impl... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 111 | 142 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implemented later
createElement: (tagName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createDocumentFra... | ({
toString: function(options) {
return this.options.writer.document(this, this.options.writer.filterOptions(options));
},
// DOM level 1 functions to be implemented later
createElement: function(tagName) {
throw new Error("This DOM method is not implemented." + this.debugInfo());
},
createDocumentF... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 111 | 142 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
toString: function(options) {
return this.options.writer.document(this, this.options.writer.filterOptions(options));
},
// DOM level 1 functions to be implemented later
createElement: function(tagName) {
throw new Error("This DOM method is not im... | toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implemented later
createElement: (tagName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createDocumentFragment: () -> throw new Error "This DOM method is not impl... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 111 | 142 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:completion | completion | toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implemented later
createElement: (tagName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createDocumentFragment: () -> throw new Error "This DOM method is not impl... | createElementNS: (namespaceURI, qualifiedName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttributeNS: (namespaceURI, qualifiedName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
getElementsByTagNameNS: (namespaceURI, localName) -> throw new Error "This D... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLDocument.coffee | 111 | 142 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:raw_corpus | raw_corpus | else
return null
Object.defineProperty @::, 'xmlStandalone', get: () ->
if @children.length isnt 0 and @children[0].type is NodeType.Declaration
return @children[0].standalone is 'yes'
else
return false
Object.defineProperty @::, 'xmlVersion', get: () ->
if @children.length isnt 0 and ... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 61 | 110 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:completion | completion | else
return null
Object.defineProperty @::, 'xmlStandalone', get: () ->
if @children.length isnt 0 and @children[0].type is NodeType.Declaration
return @children[0].standalone is 'yes'
else
return false
Object.defineProperty @::, 'xmlVersion', get: () ->
if @children.length isnt 0 and ... | writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the XML document to string
#
# `options.pretty` pretty prints the result
# `... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 61 | 110 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:raw_corpus | raw_corpus | createCDATASection: (data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createProcessingInstruction: (target, data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttribute: (name) -> throw new Error "This DOM method is not implemented." + @debugInfo()
cre... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 111 | 127 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
createCDATASection: (data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createProcessingInstruction: (target, data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttribute: (name) -> throw new Error "... | ({
createCDATASection: function(data) {
throw new Error("This DOM method is not implemented." + this.debugInfo()({
createProcessingInstruction: function(target, data) {
throw new Error("This DOM method is not implemented." + this.debugInfo());
},
createAttribute: function(name) {
... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 111 | 127 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
createCDATASection: function(data) {
throw new Error("This DOM method is not implemented." + this.debugInfo()({
createProcessingInstruction: function(target, data) {
throw new Error("This DOM method is not implemented." + this.debugInfo());
... | createCDATASection: (data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createProcessingInstruction: (target, data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttribute: (name) -> throw new Error "This DOM method is not implemented." + @debugInfo()
cre... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 111 | 127 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:3:completion | completion | createCDATASection: (data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createProcessingInstruction: (target, data) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttribute: (name) -> throw new Error "This DOM method is not implemented." + @debugInfo()
cre... | createElementNS: (namespaceURI, qualifiedName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createAttributeNS: (namespaceURI, qualifiedName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
getElementsByTagNameNS: (namespaceURI, localName) -> throw new Error "This D... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 51b902d6945014c3d4cf4f0b62997965c2c6781f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/51b902d6945014c3d4cf4f0b62997965c2c6781f/src/XMLDocument.coffee | 111 | 127 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:raw_corpus | raw_corpus | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 10 | 59 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes ... | var XMLDocument;
module.exports = XMLDocument = (function() {
class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
// `options.keepNullAttributes` whether attributes ... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var XMLDocument;
module.exports = XMLDocument = (function() {
class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
... | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:completion | completion | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | options or= {}
if not options.writer then options.writer = new XMLStringWriter()
@options = options
@stringify = new XMLStringifier options
# DOM level 1
Object.defineProperty @::, 'implementation', value: new XMLDOMImplementation()
Object.defineProperty @::, 'doctype', get: () ->
for child in @... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:raw_corpus | raw_corpus | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 60 | 98 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @... | // `writer.newline` newline sequence for pretty print
({
end: function(writer) {
var writerOptions;
writerOptions = {};
if (!writer) {
writer = this.options.writer;
} else if (isPlainObject(writer)) {
writerOptions = writer;
writer = this.options.writer;
}
return writer.doc... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 60 | 98 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// `writer.newline` newline sequence for pretty print
({
end: function(writer) {
var writerOptions;
writerOptions = {};
if (!writer) {
writer = this.options.writer;
} else if (isPlainObject(writer)) {
writerOptions = writer;
wr... | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 60 | 98 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:completion | completion | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implemented later
createElement: (tagName) -> throw new Error "This DOM method is not implemented." + @debugInfo()
createDocumentFragment: () -> throw new Error "This DOM method is not impl... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 68552eda87d08b71507e70e032d7619b46096fe3 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/68552eda87d08b71507e70e032d7619b46096fe3/src/XMLDocument.coffee | 60 | 98 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:raw_corpus | raw_corpus | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | f6ad2df8c2551b47423405066312422d972aa32f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLDocument.coffee | 10 | 59 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes ... | var XMLDocument;
module.exports = XMLDocument = class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
// `options.keepNullAttributes` whether attributes with null values will be... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | f6ad2df8c2551b47423405066312422d972aa32f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var XMLDocument;
module.exports = XMLDocument = class XMLDocument extends XMLNode {
// Initializes a new instance of `XMLDocument`
// `options.keepNullNodes` whether nodes with null values will be kept
// or ignored: true or false
// `options.keepNull... | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | f6ad2df8c2551b47423405066312422d972aa32f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:completion | completion | module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocument`
#
# `options.keepNullNodes` whether nodes with null values will be kept
# or ignored: true or false
# `options.keepNullAttributes` whether attributes with null values will be
# kept or ignored: true or... | options or= {}
if not options.writer then options.writer = new XMLStringWriter()
@options = options
@stringify = new XMLStringifier options
# DOM level 1
Object.defineProperty @, 'implementation', value: new XMLDOMImplementation()
Object.defineProperty @, 'doctype', get: () ->
for child ... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | f6ad2df8c2551b47423405066312422d972aa32f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/f6ad2df8c2551b47423405066312422d972aa32f/src/XMLDocument.coffee | 10 | 59 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:raw_corpus | raw_corpus | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | b3f243ffbeb47486162b212d976fe7e97918e6dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLDocument.coffee | 60 | 91 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @... | // `writer.newline` newline sequence for pretty print
({
end: function(writer) {
var writerOptions;
writerOptions = {};
if (!writer) {
writer = this.options.writer;
} else if (isPlainObject(writer)) {
writerOptions = writer;
writer = this.options.writer;
}
return writer.doc... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | b3f243ffbeb47486162b212d976fe7e97918e6dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLDocument.coffee | 60 | 91 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// `writer.newline` newline sequence for pretty print
({
end: function(writer) {
var writerOptions;
writerOptions = {};
if (!writer) {
writer = this.options.writer;
} else if (isPlainObject(writer)) {
writerOptions = writer;
wr... | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | b3f243ffbeb47486162b212d976fe7e97918e6dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLDocument.coffee | 60 | 91 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:2:completion | completion | # `writer.newline` newline sequence for pretty print
end: (writer) ->
writerOptions = {}
if not writer
writer = @options.writer
else if isPlainObject(writer)
writerOptions = writer
writer = @options.writer
writer.document @, writer.filterOptions(writerOptions)
# Converts the ... | # `options.indent` indentation for pretty print
# `options.offset` how many indentations to add to every line for pretty print
# `options.newline` newline sequence for pretty print
toString: (options) ->
@options.writer.document @, @options.writer.filterOptions(options)
# DOM level 1 functions to be implem... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | b3f243ffbeb47486162b212d976fe7e97918e6dc | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/b3f243ffbeb47486162b212d976fe7e97918e6dc/src/XMLDocument.coffee | 60 | 91 |
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:raw_corpus | raw_corpus | { isPlainObject } = require './Utility'
XMLNode = require './XMLNode'
NodeType = require './NodeType'
XMLStringifier = require './XMLStringifier'
XMLStringWriter = require './XMLStringWriter'
# Represents an XML builder
module.exports = class XMLDocument extends XMLNode
# Initializes a new instance of `XMLDocumen... | CoffeeScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 2111c3b992121037c2f3ef01eeb56f8dc4a39976 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/2111c3b992121037c2f3ef01eeb56f8dc4a39976/src/XMLDocument.coffee | 1 | 50 | ||
oozcitak/xmlbuilder-js:src/XMLDocument.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{ isPlainObject } = require './Utility'
XMLNode = require './XMLNode'
NodeType = require './NodeType'
XMLStringifier = require './XMLStringifier'
XMLStringWriter = require './XMLStringWriter'
# Represents an XML builder
module.exports = class XMLDocument extend... | var NodeType, XMLDocument, XMLNode, XMLStringWriter, XMLStringifier, isPlainObject;
({isPlainObject} = require('./Utility'));
XMLNode = require('./XMLNode');
NodeType = require('./NodeType');
XMLStringifier = require('./XMLStringifier');
XMLStringWriter = require('./XMLStringWriter');
// Represents an XML builder... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | src/XMLDocument.coffee | MIT | 2111c3b992121037c2f3ef01eeb56f8dc4a39976 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/2111c3b992121037c2f3ef01eeb56f8dc4a39976/src/XMLDocument.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.