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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee:2:raw_corpus | raw_corpus | dashboardService.getRevisionDiff($scope.dashboardName, $scope.rev1, $scope.rev2).then (diff) ->
$scope.diff = $sce.trustAsHtml(diff)
$scope.updateDiff()
$scope.$watch 'rev1 + rev2', ->
$scope.updateDiff()
]
resolve: {
... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | 51 | 62 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee:2:completion | completion | dashboardService.getRevisionDiff($scope.dashboardName, $scope.rev1, $scope.rev2).then (diff) ->
$scope.diff = $sce.trustAsHtml(diff)
$scope.updateDiff()
$scope.$watch 'rev1 + rev2', -> | $scope.updateDiff()
]
resolve: {
rev: -> rev
}
} | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | 51 | 62 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee:1:raw_corpus | raw_corpus | ###
# Copyright (c) 2013-2016 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | MIT | 2c2eb7bc16616a8b1d9601b8307884f5f6be40de | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | 1 | 50 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee:1:completion | completion | ###
# Copyright (c) 2013-2016 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | dashboardService.getDashboard($scope.dashboardName).then (dashboard) ->
$scope.dashboard = dashboard
dashboardService.getRevisions($scope.dashboardName).then (revisions) ->
$scope.revisions = revisions
$scope.revisionsCount = revisions.length
$scope.diffWithLatest = (rev) ->
# D... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | MIT | 2c2eb7bc16616a8b1d9601b8307884f5f6be40de | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/mgmt/controller.dashboardHistory.coffee | 1 | 50 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:3:raw_corpus | raw_corpus | clear_show_progress_line = ->
return if not process.stdout.isTTY
updateLine("")
##
StreamObject = require 'stream-json/utils/StreamObject'
inputStream = fs.createReadStream('/dev/stdin')
parser = StreamObject.make()
inputStream.pipe(parser.input)
##
require('../coffeescript-register-web')
compile = require ... | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 22 | 42 | ||
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
clear_show_progress_line = ->
return if not process.stdout.isTTY
updateLine("")
##
StreamObject = require 'stream-json/utils/StreamObject'
inputStream = fs.createReadStream('/dev/stdin')
parser = StreamObject.make()
inputStream.pipe(parser.input)
##
r... | var StreamObject, clear_show_progress_line, compile, config, inputStream, parser;
clear_show_progress_line = function() {
if (!process.stdout.isTTY) {
return;
}
return updateLine("");
};
//#
StreamObject = require('stream-json/utils/StreamObject');
inputStream = fs.createReadStream('/dev/stdin');
parser =... | CoffeeScript | JavaScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 22 | 42 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var StreamObject, clear_show_progress_line, compile, config, inputStream, parser;
clear_show_progress_line = function() {
if (!process.stdout.isTTY) {
return;
}
return updateLine("");
};
//#
StreamObject = require('stream-json/utils/StreamObject');
inp... | clear_show_progress_line = ->
return if not process.stdout.isTTY
updateLine("")
##
StreamObject = require 'stream-json/utils/StreamObject'
inputStream = fs.createReadStream('/dev/stdin')
parser = StreamObject.make()
inputStream.pipe(parser.input)
##
require('../coffeescript-register-web')
compile = require ... | JavaScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 22 | 42 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:3:completion | completion | clear_show_progress_line = ->
return if not process.stdout.isTTY
updateLine("")
##
StreamObject = require 'stream-json/utils/StreamObject'
inputStream = fs.createReadStream('/dev/stdin')
parser = StreamObject.make()
inputStream.pipe(parser.input) | ##
require('../coffeescript-register-web')
compile = require '../compiler-blob-builder/compile'
##
config = require '../src/config'
## | CoffeeScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 22 | 42 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:5:raw_corpus | raw_corpus | print_failure = (error) ->
# try to pretty up the stack a bit
trace = error.stack.split('\n').map((line) -> line.trim())
assertCallIndex = _l.findLastIndex trace, (line) -> line.startsWith('at assert')
if assertCallIndex == -1
# if it's not an assert failure, it's an exception; just use the fir... | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 69 | 118 | ||
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
print_failure = (error) ->
# try to pretty up the stack a bit
trace = error.stack.split('\n').map((line) -> line.trim())
assertCallIndex = _l.findLastIndex trace, (line) -> line.startsWith('at assert')
if assertCallIndex == -1
# if it's n... | var at_least_one_doc_has_failed, bump_progress_counter, print_failure;
print_failure = function(error) {
var assertCallIndex, error_name, line, trace;
// try to pretty up the stack a bit
trace = error.stack.split('\n').map(function(line) {
return line.trim();
});
assertCallIndex = _l.findLastIndex(trace,... | CoffeeScript | JavaScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 69 | 118 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var at_least_one_doc_has_failed, bump_progress_counter, print_failure;
print_failure = function(error) {
var assertCallIndex, error_name, line, trace;
// try to pretty up the stack a bit
trace = error.stack.split('\n').map(function(line) {
return line.tr... | print_failure = (error) ->
# try to pretty up the stack a bit
trace = error.stack.split('\n').map((line) -> line.trim())
assertCallIndex = _l.findLastIndex trace, (line) -> line.startsWith('at assert')
if assertCallIndex == -1
# if it's not an assert failure, it's an exception; just use the fir... | JavaScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 69 | 118 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:5:completion | completion | print_failure = (error) ->
# try to pretty up the stack a bit
trace = error.stack.split('\n').map((line) -> line.trim())
assertCallIndex = _l.findLastIndex trace, (line) -> line.startsWith('at assert')
if assertCallIndex == -1
# if it's not an assert failure, it's an exception; just use the fir... | A = safe_compile(docjson)
config.old_version = true
B = safe_compile(docjson)
if not _l.isEqual(A.files, B.files)
clear_show_progress_line()
at_least_one_doc_has_failed = true
console.log "[failed on #{docid}]"
# console.log docid
# for results in [A.files, B.file... | CoffeeScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 69 | 118 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:6:raw_corpus | raw_corpus | bump_progress_counter()
parser.output.on 'finish', ->
if at_least_one_doc_has_failed == false
process.exit(0)
else
process.exit(1) | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 119 | 127 | ||
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
bump_progress_counter()
parser.output.on 'finish', ->
if at_least_one_doc_has_failed == false
process.exit(0)
else
process.exit(1)
``` | bump_progress_counter();
parser.output.on('finish', function() {
if (at_least_one_doc_has_failed === false) {
return process.exit(0);
} else {
return process.exit(1);
}
}); | CoffeeScript | JavaScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 119 | 127 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
bump_progress_counter();
parser.output.on('finish', function() {
if (at_least_one_doc_has_failed === false) {
return process.exit(0);
} else {
return process.exit(1);
}
});
``` | bump_progress_counter()
parser.output.on 'finish', ->
if at_least_one_doc_has_failed == false
process.exit(0)
else
process.exit(1) | JavaScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 119 | 127 |
Pagedraw/pagedraw:e2e-tests/refactor-testing.coffee:6:completion | completion | bump_progress_counter()
parser.output.on 'finish', -> | if at_least_one_doc_has_failed == false
process.exit(0)
else
process.exit(1) | CoffeeScript | CoffeeScript | Pagedraw/pagedraw | e2e-tests/refactor-testing.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/e2e-tests/refactor-testing.coffee | 119 | 127 |
jianliaoim/talk-os:talk-api2x/migrations/1419298321261-add-system-message-badge.coffee:1:raw_corpus | raw_corpus | exports.up = (next) ->
mongo ->
messages = db.messages.find()
num = 0
messages.forEach (message) ->
return if message.isManual?
num += 1
if message.category is 'system'
message.isManual = false
message.displayMode = 'system'
message.isPushable = false
mess... | CoffeeScript | jianliaoim/talk-os | talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | 1 | 33 | ||
jianliaoim/talk-os:talk-api2x/migrations/1419298321261-add-system-message-badge.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.up = (next) ->
mongo ->
messages = db.messages.find()
num = 0
messages.forEach (message) ->
return if message.isManual?
num += 1
if message.category is 'system'
message.isManual = false
message.displayMode =... | exports.up = function(next) {
mongo(function() {
var messages, num;
messages = db.messages.find();
num = 0;
return messages.forEach(function(message) {
if (message.isManual != null) {
return;
}
num += 1;
if (message.category === 'system') {
message.isManual = fa... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | 1 | 33 |
jianliaoim/talk-os:talk-api2x/migrations/1419298321261-add-system-message-badge.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.up = function(next) {
mongo(function() {
var messages, num;
messages = db.messages.find();
num = 0;
return messages.forEach(function(message) {
if (message.isManual != null) {
return;
}
num += 1;
if (message... | exports.up = (next) ->
mongo ->
messages = db.messages.find()
num = 0
messages.forEach (message) ->
return if message.isManual?
num += 1
if message.category is 'system'
message.isManual = false
message.displayMode = 'system'
message.isPushable = false
mess... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | 1 | 33 |
jianliaoim/talk-os:talk-api2x/migrations/1419298321261-add-system-message-badge.coffee:1:completion | completion | exports.up = (next) ->
mongo ->
messages = db.messages.find()
num = 0
messages.forEach (message) ->
return if message.isManual?
num += 1
if message.category is 'system'
message.isManual = false
message.displayMode = 'system'
message.isPushable = false
mess... | message.displayMode = 'normal'
message.isPushable = true
message.isMailable = true
if message.file
message.isSearchable = true
message.displayMode = 'normal'
delete message.category
db.messages.save(message)
print("#{num} messages saved") unless num % 1000
n... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/migrations/1419298321261-add-system-message-badge.coffee | 1 | 33 |
buttercoin/buttercoin:lib/front/auth.coffee:1:raw_corpus | raw_corpus | module.exports = (account, callback) ->
if(account.id is "Marak" and account.password is "foo")
callback null, true
else
callback null, false | CoffeeScript | buttercoin/buttercoin | lib/front/auth.coffee | MIT | c6eb8f6b9ca6cbea633614875c39b9ba5fc75614 | 663 | https://github.com/buttercoin/buttercoin/blob/c6eb8f6b9ca6cbea633614875c39b9ba5fc75614/lib/front/auth.coffee | 1 | 5 | ||
buttercoin/buttercoin:lib/front/auth.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (account, callback) ->
if(account.id is "Marak" and account.password is "foo")
callback null, true
else
callback null, false
``` | module.exports = function(account, callback) {
if (account.id === "Marak" && account.password === "foo") {
return callback(null, true);
} else {
return callback(null, false);
}
}; | CoffeeScript | JavaScript | buttercoin/buttercoin | lib/front/auth.coffee | MIT | c6eb8f6b9ca6cbea633614875c39b9ba5fc75614 | 663 | https://github.com/buttercoin/buttercoin/blob/c6eb8f6b9ca6cbea633614875c39b9ba5fc75614/lib/front/auth.coffee | 1 | 5 |
buttercoin/buttercoin:lib/front/auth.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(account, callback) {
if (account.id === "Marak" && account.password === "foo") {
return callback(null, true);
} else {
return callback(null, false);
}
};
``` | module.exports = (account, callback) ->
if(account.id is "Marak" and account.password is "foo")
callback null, true
else
callback null, false | JavaScript | CoffeeScript | buttercoin/buttercoin | lib/front/auth.coffee | MIT | c6eb8f6b9ca6cbea633614875c39b9ba5fc75614 | 663 | https://github.com/buttercoin/buttercoin/blob/c6eb8f6b9ca6cbea633614875c39b9ba5fc75614/lib/front/auth.coffee | 1 | 5 |
gss/engine:src/document/types/Easing.coffee:1:raw_corpus | raw_corpus | Command = require '../../engine/commands/Variable'
class Easing extends Command
constructor: (obj) ->
if typeof obj == 'string'
if obj = @Type.Timings[obj]
return obj
else if obj[0] == 'steps' || obj[0] == 'cubic-bezier'
return obj
@define
'ease': ['cubic-bezier', .42, 0, 1,... | CoffeeScript | gss/engine | src/document/types/Easing.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Easing.coffee | 1 | 20 | ||
gss/engine:src/document/types/Easing.coffee:1:completion | completion | Command = require '../../engine/commands/Variable'
class Easing extends Command
constructor: (obj) ->
if typeof obj == 'string'
if obj = @Type.Timings[obj]
return obj
else if obj[0] == 'steps' || obj[0] == 'cubic-bezier'
return obj | @define
'ease': ['cubic-bezier', .42, 0, 1, 1]
'ease-in': ['cubic-bezier', .42, 0, 1, 1]
'ease-out': ['cubic-bezier', 0, 0, .58, 1]
'ease-in-out': ['cubic-bezier', .42, 0, .58, 1]
'linear': ['cubic-bezier', 0, 0, 1, 1]
'step-start': 'step-start'
'step-end': '... | CoffeeScript | CoffeeScript | gss/engine | src/document/types/Easing.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Easing.coffee | 1 | 20 |
jianliaoim/talk-os:talk-web/client/module/no-content.coffee:1:raw_corpus | raw_corpus | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'no-content'
mixins: [PureRenderMixin]
propTypes:
tip: React.PropTypes.string.isRequired
render: ->
di... | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/no-content.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/no-content.coffee | 1 | 17 | ||
jianliaoim/talk-os:talk-web/client/module/no-content.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'no-content'
mixins: [PureRenderMixin]
propTypes:
ti... | var PureRenderMixin, React, div, span;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
div = React.createFactory('div');
span = React.createFactory('span');
module.exports = React.createClass({
displayName: 'no-content',
mixins: [PureRenderMixin],
propTypes: {
tip: ... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/module/no-content.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/no-content.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/module/no-content.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PureRenderMixin, React, div, span;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
div = React.createFactory('div');
span = React.createFactory('span');
module.exports = React.createClass({
displayName: 'no-content'... | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'no-content'
mixins: [PureRenderMixin]
propTypes:
tip: React.PropTypes.string.isRequired
render: ->
di... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/no-content.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/no-content.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/module/no-content.coffee:1:completion | completion | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'no-content' | mixins: [PureRenderMixin]
propTypes:
tip: React.PropTypes.string.isRequired
render: ->
div className: 'no-content',
span className: "ti ti-alert-solid"
div className: "tip", @props.tip | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/no-content.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/no-content.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/module/relative-time.coffee:1:raw_corpus | raw_corpus | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
lang = require '../locales/lang'
time = require '../util/time'
clock = require '../util/clock'
shortid = require 'shortid'
span = React.createFactory 'span'
T = React.PropTypes
module.exports = React.createClass
displayName: 'rel... | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/relative-time.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/relative-time.coffee | 1 | 45 | ||
jianliaoim/talk-os:talk-web/client/module/relative-time.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
lang = require '../locales/lang'
time = require '../util/time'
clock = require '../util/clock'
shortid = require 'shortid'
span = React.createFactory 'span'
T = React.PropType... | var PureRenderMixin, React, T, clock, lang, shortid, span, time;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
lang = require('../locales/lang');
time = require('../util/time');
clock = require('../util/clock');
shortid = require('shortid');
span = React.createFactory('sp... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/module/relative-time.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/relative-time.coffee | 1 | 45 |
jianliaoim/talk-os:talk-web/client/module/relative-time.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PureRenderMixin, React, T, clock, lang, shortid, span, time;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
lang = require('../locales/lang');
time = require('../util/time');
clock = require('../util/clock');
shorti... | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
lang = require '../locales/lang'
time = require '../util/time'
clock = require '../util/clock'
shortid = require 'shortid'
span = React.createFactory 'span'
T = React.PropTypes
module.exports = React.createClass
displayName: 'rel... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/relative-time.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/relative-time.coffee | 1 | 45 |
jianliaoim/talk-os:talk-web/client/module/relative-time.coffee:1:completion | completion | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
lang = require '../locales/lang'
time = require '../util/time'
clock = require '../util/clock'
shortid = require 'shortid'
span = React.createFactory 'span'
T = React.PropTypes
module.exports = React.createClass
displayName: 'rel... | now: (new Date).toISOString()
clockId: shortid.generate()
componentDidMount: ->
clock.add @state.clockId, @setNow
componentWillUnmount: ->
clock.remove @state.clockId
setNow: ->
@setState now: (new Date).toISOString()
render: ->
text = time.calendar @props.data
if @props.edited? and ... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/module/relative-time.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/relative-time.coffee | 1 | 45 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../core/templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback ... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/plugins/jade-template.coffee | 1 | 32 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../core/templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback ... | JadeTemplate.fromFile = (env, filepath, callback) ->
async.waterfall [
(callback) ->
fs.readFile filepath.full, callback
(buffer, callback) =>
conf = env.config.jade or {}
conf.filename = filepath.full
try
rv = jade.compile buffer.toString(), conf
callback null, new thi... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 1cad02556f9f384086b05d7d914be5dcacc13294 | 3,484 | https://github.com/jnordberg/wintersmith/blob/1cad02556f9f384086b05d7d914be5dcacc13294/src/plugins/jade-template.coffee | 1 | 32 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 32c41818ecdd40fee28375b2b23f4419536cf280 | 3,484 | https://github.com/jnordberg/wintersmith/blob/32c41818ecdd40fee28375b2b23f4419536cf280/src/plugins/jade-template.coffee | 1 | 33 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error | JadeTemplate.fromFile = (filename, base, callback) ->
fullpath = path.join base, filename
async.waterfall [
(callback) ->
fs.readFile fullpath, callback
(buffer, callback) =>
try
rv = jade.compile buffer.toString(),
filename: fullpath
pretty: true
callback nul... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 32c41818ecdd40fee28375b2b23f4419536cf280 | 3,484 | https://github.com/jnordberg/wintersmith/blob/32c41818ecdd40fee28375b2b23f4419536cf280/src/plugins/jade-template.coffee | 1 | 33 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 3a0c21e29ce4469ecbdbab4b05631dcda4a1ea6f | 3,484 | https://github.com/jnordberg/wintersmith/blob/3a0c21e29ce4469ecbdbab4b05631dcda4a1ea6f/src/plugins/jade-template.coffee | 1 | 33 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error | JadeTemplate.fromFile = (filename, base, callback) ->
fullpath = path.join base, filename
async.waterfall [
(callback) ->
fs.readFile fullpath, callback
(buffer, callback) =>
try
rv = jade.compile buffer.toString(),
filename: fullpath
pretty: false
callback nu... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 3a0c21e29ce4469ecbdbab4b05631dcda4a1ea6f | 3,484 | https://github.com/jnordberg/wintersmith/blob/3a0c21e29ce4469ecbdbab4b05631dcda4a1ea6f/src/plugins/jade-template.coffee | 1 | 33 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 170ae90039c618902ba6505a0359bd832da7661c | 3,484 | https://github.com/jnordberg/wintersmith/blob/170ae90039c618902ba6505a0359bd832da7661c/src/plugins/jade-template.coffee | 1 | 33 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error | JadeTemplate.fromFile = (filename, base, callback) ->
fullpath = path.join base, filename
async.waterfall [
(callback) ->
fs.readFile fullpath, callback
(buffer, callback) ->
try
rv = jade.compile buffer.toString(),
filename: fullpath
pretty: true
callback nul... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 170ae90039c618902ba6505a0359bd832da7661c | 3,484 | https://github.com/jnordberg/wintersmith/blob/170ae90039c618902ba6505a0359bd832da7661c/src/plugins/jade-template.coffee | 1 | 33 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 62a941e9760d9e4431baaf7258442f9185c52b3f | 3,484 | https://github.com/jnordberg/wintersmith/blob/62a941e9760d9e4431baaf7258442f9185c52b3f/src/plugins/jade-template.coffee | 1 | 32 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
path = require 'path'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error | JadeTemplate.fromFile = (filename, base, callback) ->
fullpath = path.join base, filename
async.waterfall [
(callback) ->
fs.readFile fullpath, callback
(buffer, callback) ->
try
rv = jade.compile buffer.toString(),
filename: fullpath
callback null, new JadeTemplate rv
... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 62a941e9760d9e4431baaf7258442f9185c52b3f | 3,484 | https://github.com/jnordberg/wintersmith/blob/62a941e9760d9e4431baaf7258442f9185c52b3f/src/plugins/jade-template.coffee | 1 | 32 |
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:raw_corpus | raw_corpus | async = require 'async'
jade = require 'jade'
fs = require 'fs'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error
JadeTemplate.fromFil... | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64 | 3,484 | https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/plugins/jade-template.coffee | 1 | 30 | ||
jnordberg/wintersmith:src/plugins/jade-template.coffee:1:completion | completion | async = require 'async'
jade = require 'jade'
fs = require 'fs'
{TemplatePlugin} = require './../templates'
class JadeTemplate extends TemplatePlugin
constructor: (@fn) ->
render: (locals, callback) ->
try
callback null, new Buffer @fn(locals)
catch error
callback error | JadeTemplate.fromFile = (filename, callback) ->
async.waterfall [
(callback) ->
fs.readFile filename, callback
(buffer, callback) ->
try
rv = jade.compile buffer.toString(),
filename: filename
callback null, new JadeTemplate rv
catch error
callback error
]... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/plugins/jade-template.coffee | MIT | 98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64 | 3,484 | https://github.com/jnordberg/wintersmith/blob/98712ce0ad2b01ae2c5fa855d0e41d8b82c45f64/src/plugins/jade-template.coffee | 1 | 30 |
cdglabs/apparatus:test/DynamicScope.test.coffee:1:raw_corpus | raw_corpus | test = require("tape")
DynamicScope = require("../src/Dataflow/DynamicScope")
test "Dynamic Scope works", (t) ->
ds = new DynamicScope({a: 1})
t.equal(ds.context.a, 1)
ds.with {a: 2}, ->
t.equal(ds.context.a, 2)
ds.with {b: 4}, ->
t.equal(ds.context.a, 2)
t.equal(ds.context.b, 4)
ds.with... | CoffeeScript | cdglabs/apparatus | test/DynamicScope.test.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DynamicScope.test.coffee | 1 | 27 | ||
cdglabs/apparatus:test/DynamicScope.test.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
test = require("tape")
DynamicScope = require("../src/Dataflow/DynamicScope")
test "Dynamic Scope works", (t) ->
ds = new DynamicScope({a: 1})
t.equal(ds.context.a, 1)
ds.with {a: 2}, ->
t.equal(ds.context.a, 2)
ds.with {b: 4}, ->
t.equal(ds... | var DynamicScope, test;
test = require("tape");
DynamicScope = require("../src/Dataflow/DynamicScope");
test("Dynamic Scope works", function(t) {
var ds;
ds = new DynamicScope({
a: 1
});
t.equal(ds.context.a, 1);
ds.with({
a: 2
}, function() {
t.equal(ds.context.a, 2);
ds.with({
b: ... | CoffeeScript | JavaScript | cdglabs/apparatus | test/DynamicScope.test.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DynamicScope.test.coffee | 1 | 27 |
cdglabs/apparatus:test/DynamicScope.test.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var DynamicScope, test;
test = require("tape");
DynamicScope = require("../src/Dataflow/DynamicScope");
test("Dynamic Scope works", function(t) {
var ds;
ds = new DynamicScope({
a: 1
});
t.equal(ds.context.a, 1);
ds.with({
a: 2
}, function() ... | test = require("tape")
DynamicScope = require("../src/Dataflow/DynamicScope")
test "Dynamic Scope works", (t) ->
ds = new DynamicScope({a: 1})
t.equal(ds.context.a, 1)
ds.with {a: 2}, ->
t.equal(ds.context.a, 2)
ds.with {b: 4}, ->
t.equal(ds.context.a, 2)
t.equal(ds.context.b, 4)
ds.with... | JavaScript | CoffeeScript | cdglabs/apparatus | test/DynamicScope.test.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DynamicScope.test.coffee | 1 | 27 |
cdglabs/apparatus:test/DynamicScope.test.coffee:1:completion | completion | test = require("tape")
DynamicScope = require("../src/Dataflow/DynamicScope")
test "Dynamic Scope works", (t) ->
ds = new DynamicScope({a: 1})
t.equal(ds.context.a, 1)
ds.with {a: 2}, ->
t.equal(ds.context.a, 2)
ds.with {b: 4}, ->
t.equal(ds.context.a, 2)
t.equal(ds.context.b, 4)
ds.with... | t.equal(ds.context.a, 3)
t.equal(ds.context.a, 2)
t.equal(ds.context.a, 1)
t.end()
test "Throwing an exception still clears scope properly", (t) ->
ds = new DynamicScope({a: 1})
t.equal(ds.context.a, 1)
try
ds.with {a: 2}, ->
t.equal(ds.context.a, 2)
throw "exception"
t.equal(ds.context... | CoffeeScript | CoffeeScript | cdglabs/apparatus | test/DynamicScope.test.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/test/DynamicScope.test.coffee | 1 | 27 |
oozcitak/xmlbuilder-js:test/issues/195.coffee:1:raw_corpus | raw_corpus | suite 'Tests specific to issues:', ->
test 'Missing callbacks if {pretty: true} and only one method called on element?. Issue 195', ->
debugStr = ''
root = xml('root')
root.ele('textDirect', null, '[1]')
root.ele('textSingle').txt('[2]')
root.ele('rawSingle').raw('[3]')
root.ele('textDirectDu... | CoffeeScript | oozcitak/xmlbuilder-js | test/issues/195.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/195.coffee | 1 | 50 | ||
oozcitak/xmlbuilder-js:test/issues/195.coffee:1:completion | completion | suite 'Tests specific to issues:', ->
test 'Missing callbacks if {pretty: true} and only one method called on element?. Issue 195', ->
debugStr = ''
root = xml('root')
root.ele('textDirect', null, '[1]')
root.ele('textSingle').txt('[2]')
root.ele('rawSingle').raw('[3]')
root.ele('textDirectDu... | @_element node, options, level
))
# trim last newline
debugStr = debugStr.slice(0, -1)
eq(
debugStr
"""
ELEMENT root
ELEMENT textDirect
TEXT [1]
ELEMENT textSingle
TEXT [2]
ELEMENT rawSingle
RAW [3]
ELEMENT textDirectDumm... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | test/issues/195.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/issues/195.coffee | 1 | 50 |
Pagedraw/pagedraw:deploy-checks/fetch-prod-docs.coffee:1:raw_corpus | raw_corpus | _l = require 'lodash'
request = require 'request'
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.env['DOCSERVER_HOST'] || 'https://pagedraw.firebaseio.com/'
})
dataclip_url = process.env['REACHABLE_DOCS_DATACLIP_URL']
exports.fetch_all_docs = fetch_all_docs = (c... | CoffeeScript | Pagedraw/pagedraw | deploy-checks/fetch-prod-docs.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/deploy-checks/fetch-prod-docs.coffee | 1 | 38 | ||
Pagedraw/pagedraw:deploy-checks/fetch-prod-docs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_l = require 'lodash'
request = require 'request'
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.env['DOCSERVER_HOST'] || 'https://pagedraw.firebaseio.com/'
})
dataclip_url = process.env['REACHABLE_DOCS_DAT... | var _l, dataclip_url, fetch_all_docs, fetch_docjsons, fetch_important_docs, pagedraw_api_client, request;
_l = require('lodash');
request = require('request');
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.env['DOCSERVER_HOST'] || 'https://pagedraw.firebaseio.com... | CoffeeScript | JavaScript | Pagedraw/pagedraw | deploy-checks/fetch-prod-docs.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/deploy-checks/fetch-prod-docs.coffee | 1 | 38 |
Pagedraw/pagedraw:deploy-checks/fetch-prod-docs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _l, dataclip_url, fetch_all_docs, fetch_docjsons, fetch_important_docs, pagedraw_api_client, request;
_l = require('lodash');
request = require('request');
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.en... | _l = require 'lodash'
request = require 'request'
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.env['DOCSERVER_HOST'] || 'https://pagedraw.firebaseio.com/'
})
dataclip_url = process.env['REACHABLE_DOCS_DATACLIP_URL']
exports.fetch_all_docs = fetch_all_docs = (c... | JavaScript | CoffeeScript | Pagedraw/pagedraw | deploy-checks/fetch-prod-docs.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/deploy-checks/fetch-prod-docs.coffee | 1 | 38 |
Pagedraw/pagedraw:deploy-checks/fetch-prod-docs.coffee:1:completion | completion | _l = require 'lodash'
request = require 'request'
pagedraw_api_client = require('../src/editor/server').server_for_config({
docserver_host: process.env['DOCSERVER_HOST'] || 'https://pagedraw.firebaseio.com/'
})
dataclip_url = process.env['REACHABLE_DOCS_DATACLIP_URL']
exports.fetch_all_docs = fetch_all_docs = (c... | exports.fetch_important_docs = fetch_important_docs = (callback) ->
fetch_all_docs (docs) ->
callback (
docs.filter ({app_id}) -> app_id in [857, 1178, 121]
)
fetch_docjsons = (docs, callback) ->
return Promise.all(docs.map (doc) ->
docRef = pagedraw_api_client.getDocRefFrom... | CoffeeScript | CoffeeScript | Pagedraw/pagedraw | deploy-checks/fetch-prod-docs.coffee | MIT | aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e | 3,558 | https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/deploy-checks/fetch-prod-docs.coffee | 1 | 38 |
jianliaoim/talk-os:talk-account/client/actions.coffee:1:raw_corpus | raw_corpus | recorder = require 'actions-recorder'
dispatch = recorder.dispatch
# exposed actions
# router
exports.go = (info) -> dispatch 'route/go', info
exports.routeSignIn = -> dispatch 'route/signin'
exports.routeSignUp = -> dispatch 'route/signup'
exports.routeForgotPassword = -> dispatch 'route/forgot-password'
expor... | CoffeeScript | jianliaoim/talk-os | talk-account/client/actions.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/actions.coffee | 1 | 37 | ||
jianliaoim/talk-os:talk-account/client/actions.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
recorder = require 'actions-recorder'
dispatch = recorder.dispatch
# exposed actions
# router
exports.go = (info) -> dispatch 'route/go', info
exports.routeSignIn = -> dispatch 'route/signin'
exports.routeSignUp = -> dispatch 'route/signup'
exports.routeFo... | var dispatch, recorder;
recorder = require('actions-recorder');
dispatch = recorder.dispatch;
// exposed actions
// router
exports.go = function(info) {
return dispatch('route/go', info);
};
exports.routeSignIn = function() {
return dispatch('route/signin');
};
exports.routeSignUp = function() {
return disp... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-account/client/actions.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/actions.coffee | 1 | 37 |
jianliaoim/talk-os:talk-account/client/actions.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var dispatch, recorder;
recorder = require('actions-recorder');
dispatch = recorder.dispatch;
// exposed actions
// router
exports.go = function(info) {
return dispatch('route/go', info);
};
exports.routeSignIn = function() {
return dispatch('route/signin'... | recorder = require 'actions-recorder'
dispatch = recorder.dispatch
# exposed actions
# router
exports.go = (info) -> dispatch 'route/go', info
exports.routeSignIn = -> dispatch 'route/signin'
exports.routeSignUp = -> dispatch 'route/signup'
exports.routeForgotPassword = -> dispatch 'route/forgot-password'
expor... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-account/client/actions.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/actions.coffee | 1 | 37 |
jianliaoim/talk-os:talk-account/client/actions.coffee:1:completion | completion | recorder = require 'actions-recorder'
dispatch = recorder.dispatch
# exposed actions
# router
exports.go = (info) -> dispatch 'route/go', info
exports.routeSignIn = -> dispatch 'route/signin'
exports.routeSignUp = -> dispatch 'route/signup'
exports.routeForgotPassword = -> dispatch 'route/forgot-password'
expor... | exports.routeSucceedBinding = -> dispatch 'route/succeed-binding'
exports.routeEmailSent = -> dispatch 'route/email-sent'
exports.clientAccount = (account) -> dispatch 'client/account', account
exports.clientPassword = (password) -> dispatch 'client/password', password
exports.clientLoading = (status) -> dispatch '... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-account/client/actions.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/client/actions.coffee | 1 | 37 |
jianliaoim/talk-os:talk-web/client/app/notify-banner.coffee:1:raw_corpus | raw_corpus | React = require 'react'
PureRenderMixin = PureRenderMixin
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'notify-banner'
mixin: [PureRenderMixin]
propsTypes:
data: T.object.isRequired # Immutable
render: ->
type = 'is-' + (@props.data.get('type'... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-banner.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-banner.coffee | 1 | 17 | ||
jianliaoim/talk-os:talk-web/client/app/notify-banner.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
PureRenderMixin = PureRenderMixin
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'notify-banner'
mixin: [PureRenderMixin]
propsTypes:
data: T.object.isRequired # Immutable... | var PureRenderMixin, React, T, div;
React = require('react');
PureRenderMixin = PureRenderMixin;
div = React.createFactory('div');
T = React.PropTypes;
module.exports = React.createClass({
displayName: 'notify-banner',
mixin: [PureRenderMixin],
propsTypes: {
data: T.object.isRequired // Immutable
},
... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/notify-banner.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-banner.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/app/notify-banner.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PureRenderMixin, React, T, div;
React = require('react');
PureRenderMixin = PureRenderMixin;
div = React.createFactory('div');
T = React.PropTypes;
module.exports = React.createClass({
displayName: 'notify-banner',
mixin: [PureRenderMixin],
propsType... | React = require 'react'
PureRenderMixin = PureRenderMixin
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'notify-banner'
mixin: [PureRenderMixin]
propsTypes:
data: T.object.isRequired # Immutable
render: ->
type = 'is-' + (@props.data.get('type'... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-banner.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-banner.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/app/notify-banner.coffee:1:completion | completion | React = require 'react'
PureRenderMixin = PureRenderMixin
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass | displayName: 'notify-banner'
mixin: [PureRenderMixin]
propsTypes:
data: T.object.isRequired # Immutable
render: ->
type = 'is-' + (@props.data.get('type') or 'empty')
div className: "notify-banner #{type}", @props.data.get('text') | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/notify-banner.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/notify-banner.coffee | 1 | 17 |
soulwire/Coffee-Physics:source/engine/integrator/Integrator.coffee:1:raw_corpus | raw_corpus | ### Integrator ###
class Integrator
integrate: (particles, dt) ->
# Override. | CoffeeScript | soulwire/Coffee-Physics | source/engine/integrator/Integrator.coffee | MIT | df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d | 1,053 | https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/integrator/Integrator.coffee | 1 | 7 | ||
soulwire/Coffee-Physics:source/engine/integrator/Integrator.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
### Integrator ###
class Integrator
integrate: (particles, dt) ->
# Override.
``` | /* Integrator */
var Integrator;
Integrator = class Integrator {
integrate(particles, dt) {}
};
// Override. | CoffeeScript | JavaScript | soulwire/Coffee-Physics | source/engine/integrator/Integrator.coffee | MIT | df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d | 1,053 | https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/integrator/Integrator.coffee | 1 | 7 |
soulwire/Coffee-Physics:source/engine/integrator/Integrator.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/* Integrator */
var Integrator;
Integrator = class Integrator {
integrate(particles, dt) {}
};
// Override.
``` | ### Integrator ###
class Integrator
integrate: (particles, dt) ->
# Override. | JavaScript | CoffeeScript | soulwire/Coffee-Physics | source/engine/integrator/Integrator.coffee | MIT | df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d | 1,053 | https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/integrator/Integrator.coffee | 1 | 7 |
soulwire/Coffee-Physics:source/engine/integrator/Integrator.coffee:1:completion | completion | ### Integrator ###
class Integrator | integrate: (particles, dt) ->
# Override. | CoffeeScript | CoffeeScript | soulwire/Coffee-Physics | source/engine/integrator/Integrator.coffee | MIT | df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d | 1,053 | https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/integrator/Integrator.coffee | 1 | 7 |
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
marginLeft: '2'
'pretty-error > header':
display: 'block'
'pretty-error > header > title > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > title > wrapper':
marginRight: '1'
color: 'grey'
'pretty-error > header ... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | 5fcaf1f7a7f628bb9313e97fd7598e1d11fb168f | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/5fcaf1f7a7f628bb9313e97fd7598e1d11fb168f/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
marginLeft: '2'
'pretty-error > header':
display: 'block'
'pretty-error > header > title > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > title > wrapper':
margin: '0 1'
color: 'grey'
'pretty-error > header > c... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | b3987590a56b3f1537a94ba5f94a16e4b26d9d70 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/b3987590a56b3f1537a94ba5f94a16e4b26d9d70/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
'pretty-error > header':
display: 'block'
'pretty-error > header > title > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > title > wrapper':
margin: '0 1'
color: 'grey'
'pretty-error > header > colon':
color: 'g... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | f6a9ba08c5a957956d105d3e3b1155d1b8fe6820 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/f6a9ba08c5a957956d105d3e3b1155d1b8fe6820/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
'pretty-error > header':
display: 'block'
'pretty-error > header > title > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > title > wrapper':
margin: '0 1'
color: 'bright-white'
'pretty-error > header > colon':
c... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | 70c921401715f1235817456be92e2b87882a8ec8 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/70c921401715f1235817456be92e2b87882a8ec8/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
'pretty-error > header':
display: 'block'
'pretty-error > header > title > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > title > wrapper':
# background: 'cyan'
margin: '0 1'
color: 'bright-white'
'pretty-error... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | dfee02211c33490e599b498403d89eb91b40226a | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/dfee02211c33490e599b498403d89eb91b40226a/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
'pretty-error > header':
display: 'block'
'pretty-error > header > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > colon':
color: 'grey'
marginRight: 1
'pretty-error > header > message':
color: 'bright-white'
... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | 8b158eb81c88ba85701f53bbb7de0183094ad676 | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/8b158eb81c88ba85701f53bbb7de0183094ad676/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
marginBottom: 1
'pretty-error > header':
display: 'block'
marginBottom: 1
'pretty-error > header > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > colon':
color: 'grey'
marginRight: 1
'pretty-error > header >... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | fc8c237668e5fd4c5a30adf54285cc829047d7ea | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/fc8c237668e5fd4c5a30adf54285cc829047d7ea/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
AriaMinaei/pretty-error:scripts/coffee/lib/prettyError/defaultStyle.coffee:1:raw_corpus | raw_corpus | module.exports = -> {
'pretty-error':
display: 'block'
marginBottom: 1
'pretty-error > header':
display: 'block'
marginBottom: 1
'pretty-error > header > kind':
background: 'red'
color: 'bright-white'
'pretty-error > header > colon':
color: 'grey'
'pretty-error > header > message':
colo... | CoffeeScript | AriaMinaei/pretty-error | scripts/coffee/lib/prettyError/defaultStyle.coffee | MIT | f4d5dd691ed4f9eaa59ca7589e007dd352406dcd | 1,524 | https://github.com/AriaMinaei/pretty-error/blob/f4d5dd691ed4f9eaa59ca7589e007dd352406dcd/scripts/coffee/lib/prettyError/defaultStyle.coffee | 1 | 50 | ||
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:raw_corpus | raw_corpus | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) ... | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a825a9ea31d695f8abb600f3f27ff635a839c0c2 | 663 | https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/e_protocol.coffee | 1 | 32 | ||
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connectio... | var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
Protocol = require('./protocol');
module.exports = Eng... | CoffeeScript | JavaScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a825a9ea31d695f8abb600f3f27ff635a839c0c2 | 663 | https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/e_protocol.coffee | 1 | 32 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
... | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) ... | JavaScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a825a9ea31d695f8abb600f3f27ff635a839c0c2 | 663 | https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/e_protocol.coffee | 1 | 32 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:completion | completion | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) ... | @info 'SNAPSHOT DONE'
result =
operation:
kind: 'SNAPSHOT_RESULT'
opid: parsed_data.opid
serial: result.serial
snapshot: result.snapshot
@options.send_all( result )
#.done()
else
# Received Operation from connected client. Execute... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a825a9ea31d695f8abb600f3f27ff635a839c0c2 | 663 | https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/e_protocol.coffee | 1 | 32 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:raw_corpus | raw_corpus | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) ... | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a029c1a623369cb4df0af6e982a2420b6c0d1a62 | 663 | https://github.com/buttercoin/buttercoin/blob/a029c1a623369cb4df0af6e982a2420b6c0d1a62/lib/ews/e_protocol.coffee | 1 | 19 | ||
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connectio... | var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
Protocol = require('./protocol');
module.exports = Eng... | CoffeeScript | JavaScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a029c1a623369cb4df0af6e982a2420b6c0d1a62 | 663 | https://github.com/buttercoin/buttercoin/blob/a029c1a623369cb4df0af6e982a2420b6c0d1a62/lib/ews/e_protocol.coffee | 1 | 19 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
... | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up.
@info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) ... | JavaScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a029c1a623369cb4df0af6e982a2420b6c0d1a62 | 663 | https://github.com/buttercoin/buttercoin/blob/a029c1a623369cb4df0af6e982a2420b6c0d1a62/lib/ews/e_protocol.coffee | 1 | 19 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:completion | completion | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
# Protocol closed - tell the server to clean up. | @info 'PROTOCOL CLOSED'
@options.connection_lost(@connection)
handle_parsed_data: (parsed_data) =>
# Received Operation from connected client. Execute it through the PCE.
@options.pce.forward_operation( parsed_data ).then (result) =>
@info 'PCE COMPLETED', result
@options.send_all( result )
... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | a029c1a623369cb4df0af6e982a2420b6c0d1a62 | 663 | https://github.com/buttercoin/buttercoin/blob/a029c1a623369cb4df0af6e982a2420b6c0d1a62/lib/ews/e_protocol.coffee | 1 | 19 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:raw_corpus | raw_corpus | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
@info 'PROTOCOL CLOSED'
@engine_server.connection_lost(@connection)
handle_parsed_data: (parsed_data) =>
# @info 'RECEIVED', parsed_data
@pce... | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | 0364a0e6aa1a0bae70e4d310d7c36195eb9171b8 | 663 | https://github.com/buttercoin/buttercoin/blob/0364a0e6aa1a0bae70e4d310d7c36195eb9171b8/lib/ews/e_protocol.coffee | 1 | 18 | ||
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
@info 'PROTOCOL CLOSED'
@engine_server.connection_lost(@connection)
handle_parsed_data: (par... | var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
Protocol = require('./protocol');
module.exports = Eng... | CoffeeScript | JavaScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | 0364a0e6aa1a0bae70e4d310d7c36195eb9171b8 | 663 | https://github.com/buttercoin/buttercoin/blob/0364a0e6aa1a0bae70e4d310d7c36195eb9171b8/lib/ews/e_protocol.coffee | 1 | 18 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineProtocol, Protocol, Q, helpers,
boundMethodCheck = function(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new Error('Bound instance method accessed before binding'); } };
helpers = require('enkihelpers');
Q = require('q');
... | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
@info 'PROTOCOL CLOSED'
@engine_server.connection_lost(@connection)
handle_parsed_data: (parsed_data) =>
# @info 'RECEIVED', parsed_data
@pce... | JavaScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | 0364a0e6aa1a0bae70e4d310d7c36195eb9171b8 | 663 | https://github.com/buttercoin/buttercoin/blob/0364a0e6aa1a0bae70e4d310d7c36195eb9171b8/lib/ews/e_protocol.coffee | 1 | 18 |
buttercoin/buttercoin:lib/ews/e_protocol.coffee:1:completion | completion | helpers = require('enkihelpers')
Q = require('q')
Protocol = require('./protocol')
module.exports = class EngineProtocol extends Protocol
handle_close: =>
@info 'PROTOCOL CLOSED' | @engine_server.connection_lost(@connection)
handle_parsed_data: (parsed_data) =>
# @info 'RECEIVED', parsed_data
@pce.forward_operation( parsed_data ).then (result) =>
@info 'PCE COMPLETED', result
@engine_server.send_all( result )
.done() | CoffeeScript | CoffeeScript | buttercoin/buttercoin | lib/ews/e_protocol.coffee | MIT | 0364a0e6aa1a0bae70e4d310d7c36195eb9171b8 | 663 | https://github.com/buttercoin/buttercoin/blob/0364a0e6aa1a0bae70e4d310d7c36195eb9171b8/lib/ews/e_protocol.coffee | 1 | 18 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:raw_corpus | raw_corpus | ###
# Copyright (c) 2013-2018 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
# Copyright (c) 2013-2018 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licens... | /*
* Copyright (c) 2013-2018 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/mit-license.php
*
* Unless required by applica... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
* Copyright (c) 2013-2018 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/li... | ###
# Copyright (c) 2013-2018 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:completion | completion | ###
# Copyright (c) 2013-2018 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | #
# GenericErrorModalController controller -- for modal dialog
#
cyclotronApp.controller 'GenericErrorModalController', ($scope, $uibModalInstance, $state) ->
$scope.goHome = ->
$uibModalInstance.dismiss()
$state.go('home')
$scope.reload = ->
$uibModalInstance.dismiss()
$state.... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:raw_corpus | raw_corpus | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0d7d6f843df6f4dc02ea758dc88423d6884d20be | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licens... | /*
* Copyright (c) 2013-2015 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/mit-license.php
*
* Unless required by applica... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0d7d6f843df6f4dc02ea758dc88423d6884d20be | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
* Copyright (c) 2013-2015 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/li... | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0d7d6f843df6f4dc02ea758dc88423d6884d20be | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:completion | completion | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | #
# GenericErrorModalController controller -- for modal dialog
#
cyclotronApp.controller 'GenericErrorModalController', ($scope, $uibModalInstance, $state) ->
$scope.goHome = ->
$uibModalInstance.dismiss()
$state.go('home')
$scope.reload = ->
$uibModalInstance.dismiss()
$state.... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 0d7d6f843df6f4dc02ea758dc88423d6884d20be | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:raw_corpus | raw_corpus | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 14b0e411415be801f94fe13ea6f63d5ad957c2ed | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licens... | /*
* Copyright (c) 2013-2015 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/mit-license.php
*
* Unless required by applica... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 14b0e411415be801f94fe13ea6f63d5ad957c2ed | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
* Copyright (c) 2013-2015 the original author or authors.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/li... | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 14b0e411415be801f94fe13ea6f63d5ad957c2ed | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee:1:completion | completion | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law ... | #
# GenericErrorModalController controller -- for modal dialog
#
cyclotronApp.controller 'GenericErrorModalController', ($scope, $modalInstance, $state) ->
$scope.goHome = ->
$modalInstance.dismiss()
$state.go('home')
$scope.reload = ->
$modalInstance.dismiss()
$state.reload()
... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | MIT | 14b0e411415be801f94fe13ea6f63d5ad957c2ed | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/controller.genericErrorModal.coffee | 1 | 33 |
jianliaoim/talk-os:talk-web/client/guest-app/landing.coffee:1:raw_corpus | raw_corpus | React = require 'react'
lang = require '../locales/lang'
div = React.createFactory 'div'
module.exports = React.createClass
displayName: 'app-loading'
render: ->
div id: 'app-view',
div className: 'app-loading',
div className: 'talk-logo'
div className: 'muted', lang.getText('landing... | CoffeeScript | jianliaoim/talk-os | talk-web/client/guest-app/landing.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/landing.coffee | 1 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.