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/config/sample.configService.coffee:3:raw_corpus
raw_corpus
# Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default values, e.g. default URLs for Data Sources # 2) Set proxy options for Data Sources # ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
86
130
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default values, e.g. default URLs for Data Sources ...
// Changelog location, displayed on the home page footer //changelogLink: 'https://.../CHANGELOG.md' // Overrides for Dashboard properties // 1) Provide environment-specific default values, e.g. default URLs for Data Sources // 2) Set proxy options for Data Sources ({ dashboard: { properties: { dataSourc...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
86
130
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Changelog location, displayed on the home page footer //changelogLink: 'https://.../CHANGELOG.md' // Overrides for Dashboard properties // 1) Provide environment-specific default values, e.g. default URLs for Data Sources // 2) Set proxy options for Data Sourc...
# Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default values, e.g. default URLs for Data Sources # 2) Set proxy options for Data Sources # ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
86
130
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion
completion
# Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default values, e.g. default URLs for Data Sources # 2) Set proxy options for Data Sources # ...
proxy: options: proxyOptions json: properties: proxy: options: proxyOptions splunk: properties: ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
86
130
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:raw_corpus
raw_corpus
# Merge overrides with commonConfigService # Settings in this file will override/extend those in the commonConfigService merged = _.merge(commonConfigService, exports, _["default"]) # Add a custom welcome message to the Help page # Additional messages can be added, e.g. support mailing list merged....
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
132
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Merge overrides with commonConfigService # Settings in this file will override/extend those in the commonConfigService merged = _.merge(commonConfigService, exports, _["default"]) # Add a custom welcome message to the Help page # Additional mes...
// Merge overrides with commonConfigService // Settings in this file will override/extend those in the commonConfigService var merged; merged = _.merge(commonConfigService, exports, _["default"]); // Add a custom welcome message to the Help page // Additional messages can be added, e.g. support mailing list merged.he...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
132
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Merge overrides with commonConfigService // Settings in this file will override/extend those in the commonConfigService var merged; merged = _.merge(commonConfigService, exports, _["default"]); // Add a custom welcome message to the Help page // Additional mes...
# Merge overrides with commonConfigService # Settings in this file will override/extend those in the commonConfigService merged = _.merge(commonConfigService, exports, _["default"]) # Add a custom welcome message to the Help page # Additional messages can be added, e.g. support mailing list merged....
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
132
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:completion
completion
# Merge overrides with commonConfigService # Settings in this file will override/extend those in the commonConfigService merged = _.merge(commonConfigService, exports, _["default"]) # Add a custom welcome message to the Help page # Additional messages can be added, e.g. support mailing list
merged.help[0].messages = [{ type: 'info', html: 'Welcome to Cyclotron!', icon: 'fa-info-circle' }]; return merged;
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
c52faac40da944a4bc82d25fbebffb49e0637f79
1,544
https://github.com/ExpediaGroup/cyclotron/blob/c52faac40da944a4bc82d25fbebffb49e0637f79/cyclotron-site/app/scripts/config/sample.configService.coffee
132
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus
raw_corpus
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion
completion
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
enableDebug: false # New Users newUser: # Enables/disables welcome message for new users enableMessage: true # List of neighboring Cyclotron instances cyclotronEnvironments: cyclotronEnvironments # Changelog location, displayed on the home page footer ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus
raw_corpus
url: options: proxyOptions graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
96
117
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript url: options: proxyOptions graphite: properties: url: # The default Graphite hostname, so it does not need ...
({ url: { options: proxyOptions }, graphite: { properties: { url: { // The default Graphite hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'http://sampleGraphiteHost:80' }, proxy: { o...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
96
117
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ url: { options: proxyOptions }, graphite: { properties: { url: { // The default Graphite hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'http://s...
url: options: proxyOptions graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
96
117
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion
completion
url: options: proxyOptions graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard ...
properties: proxy: options: proxyOptions splunk: properties: host: # The default Splunk hostname, so it does not need to be specifie...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
fb283092f9ecd2432be6f510f370cc98ded05e31
1,544
https://github.com/ExpediaGroup/cyclotron/blob/fb283092f9ecd2432be6f510f370cc98ded05e31/cyclotron-site/app/scripts/config/sample.configService.coffee
96
117
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus
raw_corpus
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} ex...
// Convert cyclotronEnvironments into the correct format for property options var exports, proxyOptions; proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) { options[environment.name] = { value: environment.serviceUrl }; return options; }, {}); exports = { // Cyclotron-svc endpo...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Convert cyclotronEnvironments into the correct format for property options var exports, proxyOptions; proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) { options[environment.name] = { value: environment.serviceUrl }; return...
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion
completion
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
# New Users newUser: # Enables/disables welcome message for new users enableMessage: true # List of neighboring Cyclotron instances cyclotronEnvironments: cyclotronEnvironments # Changelog location, displayed on the home page footer #changelogLink: 'htt...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus
raw_corpus
graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
96
115
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard # (Remove if ther...
({ graphite: { properties: { url: { // The default Graphite hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'http://sampleGraphiteHost:80' }, proxy: { options: proxyOptions } } }, ...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
96
115
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ graphite: { properties: { url: { // The default Graphite hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'http://sampleGraphiteHost:80' }, pro...
graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
96
115
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion
completion
graphite: properties: url: # The default Graphite hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) ...
proxy: options: proxyOptions splunk: properties: host: # The default Splunk hostname, so it does not need to be specified in each Dashboard ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
2c2eb7bc16616a8b1d9601b8307884f5f6be40de
1,544
https://github.com/ExpediaGroup/cyclotron/blob/2c2eb7bc16616a8b1d9601b8307884f5f6be40de/cyclotron-site/app/scripts/config/sample.configService.coffee
96
115
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus
raw_corpus
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} ex...
// Convert cyclotronEnvironments into the correct format for property options var exports, proxyOptions; proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) { options[environment.name] = { value: environment.serviceUrl }; return options; }, {}); exports = { // Cyclotron-svc endpo...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Convert cyclotronEnvironments into the correct format for property options var exports, proxyOptions; proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) { options[environment.name] = { value: environment.serviceUrl }; return...
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion
completion
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
# List of neighboring Cyclotron instances cyclotronEnvironments: cyclotronEnvironments # Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default val...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus
raw_corpus
proxy: options: proxyOptions json: properties: proxy: options: proxyOptions splunk: properties: ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
96
109
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript proxy: options: proxyOptions json: properties: proxy: options: proxyOptions splunk:...
({ proxy: { options: proxyOptions }, json: { properties: { proxy: { options: proxyOptions } } }, splunk: { properties: { host: { // The default Splunk hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
96
109
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ proxy: { options: proxyOptions }, json: { properties: { proxy: { options: proxyOptions } } }, splunk: { properties: { host: { // The default Splunk hostname, so it does not need to be specified in each ...
proxy: options: proxyOptions json: properties: proxy: options: proxyOptions splunk: properties: ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
96
109
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion
completion
proxy: options: proxyOptions json: properties: proxy: options: proxyOptions splunk:
properties: host: # The default Splunk hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) default: 'splunk' ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
0d7d6f843df6f4dc02ea758dc88423d6884d20be
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0d7d6f843df6f4dc02ea758dc88423d6884d20be/cyclotron-site/app/scripts/config/sample.configService.coffee
96
109
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus
raw_corpus
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion
completion
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
# List of neighboring Cyclotron instances cyclotronEnvironments: cyclotronEnvironments # Changelog location, displayed on the home page footer #changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default val...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus
raw_corpus
proxy: options: proxyOptions splunk: properties: host: # The default Splunk hostname, so it does not need to be specified in each Dashboard ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
96
105
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript proxy: options: proxyOptions splunk: properties: host: # The default Splunk hostname, so it does not need t...
({ proxy: { options: proxyOptions }, splunk: { properties: { host: { // The default Splunk hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'splunk' }, proxy: { options: proxyOptions ...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
96
105
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ proxy: { options: proxyOptions }, splunk: { properties: { host: { // The default Splunk hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'splunk' ...
proxy: options: proxyOptions splunk: properties: host: # The default Splunk hostname, so it does not need to be specified in each Dashboard ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
96
105
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion
completion
proxy: options: proxyOptions splunk: properties: host:
# The default Splunk hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) default: 'splunk' proxy: options: proxyOptions
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/scripts/config/sample.configService.coffee
96
105
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus
raw_corpus
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion
completion
# Convert cyclotronEnvironments into the correct format for property options proxyOptions = _.reduce cyclotronEnvironments, (options, environment) -> options[environment.name] = { value: environment.serviceUrl } return options , {} exports = # Cyclotron-svc endpoint restServ...
#changelogLink: 'https://.../CHANGELOG.md' # Overrides for Dashboard properties # # 1) Provide environment-specific default values, e.g. default URLs for Data Sources # 2) Set proxy options for Data Sources # dashboard: properties: dataSources...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/config/sample.configService.coffee
46
95
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus
raw_corpus
host: # The default Splunk hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) default: 'splunk' proxy: ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/config/sample.configService.coffee
96
101
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript host: # The default Splunk hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) default: 'splunk' ...
({ host: { // The default Splunk hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'splunk' }, proxy: { options: proxyOptions } });
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/config/sample.configService.coffee
96
101
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ host: { // The default Splunk hostname, so it does not need to be specified in each Dashboard // (Remove if there is no appropriate default) default: 'splunk' }, proxy: { options: proxyOptions } }); ```
host: # The default Splunk hostname, so it does not need to be specified in each Dashboard # (Remove if there is no appropriate default) default: 'splunk' proxy: ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/config/sample.configService.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/config/sample.configService.coffee
96
101
jianliaoim/talk-os:talk-web/client/app/not-found.coffee:1:raw_corpus
raw_corpus
React = require 'react' lang = require '../locales/lang' url = require '../util/url' handlers = require '../handlers' { div, p, a } = React.DOM module.exports = React.createClass displayName: 'not-found' onBack: (event) -> event.preventDefault() handlers.routerHome() render: -> div className: 'n...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/not-found.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/not-found.coffee
1
23
jianliaoim/talk-os:talk-web/client/app/not-found.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' lang = require '../locales/lang' url = require '../util/url' handlers = require '../handlers' { div, p, a } = React.DOM module.exports = React.createClass displayName: 'not-found' onBack: (event) -> event.preventDefault() ...
var React, a, div, handlers, lang, p, url; React = require('react'); lang = require('../locales/lang'); url = require('../util/url'); handlers = require('../handlers'); ({div, p, a} = React.DOM); module.exports = React.createClass({ displayName: 'not-found', onBack: function(event) { event.preventDefault(...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/not-found.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/not-found.coffee
1
23
jianliaoim/talk-os:talk-web/client/app/not-found.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var React, a, div, handlers, lang, p, url; React = require('react'); lang = require('../locales/lang'); url = require('../util/url'); handlers = require('../handlers'); ({div, p, a} = React.DOM); module.exports = React.createClass({ displayName: 'not-found'...
React = require 'react' lang = require '../locales/lang' url = require '../util/url' handlers = require '../handlers' { div, p, a } = React.DOM module.exports = React.createClass displayName: 'not-found' onBack: (event) -> event.preventDefault() handlers.routerHome() render: -> div className: 'n...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/not-found.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/not-found.coffee
1
23
jianliaoim/talk-os:talk-web/client/app/not-found.coffee:1:completion
completion
React = require 'react' lang = require '../locales/lang' url = require '../util/url' handlers = require '../handlers' { div, p, a } = React.DOM module.exports = React.createClass displayName: 'not-found'
onBack: (event) -> event.preventDefault() handlers.routerHome() render: -> div className: 'not-found', div className: 'not-found-wrapper flex-vert flex-vcenter', div className: 'not-found-background background-contain' p className: 'not-found-tip', lang.getText('not-found-tip') ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/not-found.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/not-found.coffee
1
23
buttercoin/buttercoin:lib/engine_server.coffee:1:raw_corpus
raw_corpus
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {} @options.journalname = @options.journalname...
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/engine_server.coffee
1
23
buttercoin/buttercoin:lib/engine_server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @optio...
var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { constructor(options) { this.start = this.start.bind(this...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/engine_server.coffee
1
23
buttercoin/buttercoin:lib/engine_server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { const...
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {} @options.journalname = @options.journalname...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/engine_server.coffee
1
23
buttercoin/buttercoin:lib/engine_server.coffee:1:completion
completion
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {}
@options.journalname = @options.journalname or 'testjournal' @engine = new BE.TradeEngine() @journal = new BE.Journal(@options.journalname) @pce = new ProcessingChainEntrance( @engine, @journal ) start: => throw Error("Not Implemented") send_all: ( obj ) => throw Error("Not Implemented")
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/engine_server.coffee
1
23
buttercoin/buttercoin:lib/engine_server.coffee:1:raw_corpus
raw_corpus
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {} @options.journalname = @options.journalname...
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a557f655fbd8ff5f37d35d3ca94d025585bb08d2
663
https://github.com/buttercoin/buttercoin/blob/a557f655fbd8ff5f37d35d3ca94d025585bb08d2/lib/engine_server.coffee
1
24
buttercoin/buttercoin:lib/engine_server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @optio...
var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { constructor(options) { this.start = this.start.bind(this...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a557f655fbd8ff5f37d35d3ca94d025585bb08d2
663
https://github.com/buttercoin/buttercoin/blob/a557f655fbd8ff5f37d35d3ca94d025585bb08d2/lib/engine_server.coffee
1
24
buttercoin/buttercoin:lib/engine_server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { const...
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {} @options.journalname = @options.journalname...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a557f655fbd8ff5f37d35d3ca94d025585bb08d2
663
https://github.com/buttercoin/buttercoin/blob/a557f655fbd8ff5f37d35d3ca94d025585bb08d2/lib/engine_server.coffee
1
24
buttercoin/buttercoin:lib/engine_server.coffee:1:completion
completion
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@options) -> stump.stumpify(@, @constructor.name) @options = @options or {}
@options.journalname = @options.journalname or 'testjournal' @engine = new BE.TradeEngine() @journal = new BE.Journal(@options.journalname) @replication = new BE.Replication() @pce = new ProcessingChainEntrance( @engine, @journal, @replication ) start: => throw Error("Not Implemented") send_a...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a557f655fbd8ff5f37d35d3ca94d025585bb08d2
663
https://github.com/buttercoin/buttercoin/blob/a557f655fbd8ff5f37d35d3ca94d025585bb08d2/lib/engine_server.coffee
1
24
buttercoin/buttercoin:lib/engine_server.coffee:1:raw_corpus
raw_corpus
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@journalname) -> stump.stumpify(@, @constructor.name) @journalname = @journalname or 'testjournal' @engine = new BE.Tra...
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a1de439f06a3861506d0377ae70d11349fec0ed4
663
https://github.com/buttercoin/buttercoin/blob/a1de439f06a3861506d0377ae70d11349fec0ed4/lib/engine_server.coffee
1
22
buttercoin/buttercoin:lib/engine_server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@journalname) -> stump.stumpify(@, @constructor.name) @journalname ...
var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { constructor(journalname) { this.start = this.start.bind(...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a1de439f06a3861506d0377ae70d11349fec0ed4
663
https://github.com/buttercoin/buttercoin/blob/a1de439f06a3861506d0377ae70d11349fec0ed4/lib/engine_server.coffee
1
22
buttercoin/buttercoin:lib/engine_server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BE, EngineServer, Journal, ProcessingChainEntrance, stump; stump = require('stump'); BE = require('buttercoin-engine'); Journal = BE.Journal; ProcessingChainEntrance = BE.ProcessingChainEntrance; module.exports = EngineServer = class EngineServer { const...
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@journalname) -> stump.stumpify(@, @constructor.name) @journalname = @journalname or 'testjournal' @engine = new BE.Tra...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a1de439f06a3861506d0377ae70d11349fec0ed4
663
https://github.com/buttercoin/buttercoin/blob/a1de439f06a3861506d0377ae70d11349fec0ed4/lib/engine_server.coffee
1
22
buttercoin/buttercoin:lib/engine_server.coffee:1:completion
completion
stump = require('stump') BE = require('buttercoin-engine') Journal = BE.Journal ProcessingChainEntrance = BE.ProcessingChainEntrance module.exports = class EngineServer constructor: (@journalname) -> stump.stumpify(@, @constructor.name) @journalname = @journalname or 'testjournal'
@engine = new BE.TradeEngine() @journal = new BE.Journal(@journalname) @replication = new BE.Replication() @pce = new ProcessingChainEntrance( @engine, @journal, @replication ) start: => throw Error("Not Implemented") send_all: ( obj ) => throw Error("Not Implemented")
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/engine_server.coffee
MIT
a1de439f06a3861506d0377ae70d11349fec0ed4
663
https://github.com/buttercoin/buttercoin/blob/a1de439f06a3861506d0377ae70d11349fec0ed4/lib/engine_server.coffee
1
22
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:raw_corpus
raw_corpus
module.exports = subscriptions: null conf: [] isEnable: false currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) enable: -> @isEnable = true @i...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = subscriptions: null conf: [] isEnable: false currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key...
module.exports = { subscriptions: null, conf: [], isEnable: false, currentStreak: 0, level: 0, maxStreakReached: false, observe: function(key) { return this.subscriptions.add(atom.config.observe(`activate-power-mode.comboMode.${key}`, (value) => { return this.conf[key] = value; })); }, e...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { subscriptions: null, conf: [], isEnable: false, currentStreak: 0, level: 0, maxStreakReached: false, observe: function(key) { return this.subscriptions.add(atom.config.observe(`activate-power-mode.comboMode.${key}`, (value) => {...
module.exports = subscriptions: null conf: [] isEnable: false currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) enable: -> @isEnable = true @i...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:completion
completion
module.exports = subscriptions: null conf: [] isEnable: false currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) enable: -> @isEnable = true @i...
@container?.parentNode?.removeChild @container destroy: -> @isEnable = false @reset() @subscriptions.dispose() @container = null @debouncedEndStreak?.cancel() @debouncedEndStreak = null @streakTimeoutObserver?.dispose() @opacityObserver?.dispose() @currentStreak = 0 @level = 0...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:raw_corpus
raw_corpus
@container.classList.add "combo-zero" @title = @createElement "title", @container @title.textContent = "Combo" @max = @createElement "max", @container @max.textContent = "Max #{@maxStreak}" @counter = @createElement "counter", @container @bar = @createElement "bar", @container ...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:completion
completion
@container.classList.add "combo-zero" @title = @createElement "title", @container @title.textContent = "Combo" @max = @createElement "max", @container @max.textContent = "Max #{@maxStreak}" @counter = @createElement "counter", @container @bar = @createElement "bar", @container ...
leftTimeout = @streakTimeout - (performance.now() - @lastStreak) @refreshStreakBar leftTimeout @renderStreak() resetCounter: -> @modifyStreak(-@currentStreak) @endStreak() modifyStreak: (n) -> @lastStreak = performance.now() @debouncedEndStreak() n = n * (@level + 1) if n > 0 ...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:raw_corpus
raw_corpus
@container.classList.remove "combo-zero" if @currentStreak > @maxStreak @increaseMaxStreak() return if @checkLevel() if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:completion
completion
@container.classList.remove "combo-zero" if @currentStreak > @maxStreak @increaseMaxStreak() return if @checkLevel() if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down...
if level != @level @container.classList.remove "level-#{@level}" @container.classList.add "level-#{level}" @showExclamation "#{level+1}x", 'level' @level = level return true getLevel: -> @level endStreak: -> @currentStreak = 0 @maxStreakReached = false @container.clas...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:raw_corpus
raw_corpus
refreshStreakBar: (leftTimeout = @streakTimeout) -> scale = leftTimeout / @streakTimeout @bar.style.transition = "none" @bar.style.transform = "scaleX(#{scale})" setTimeout => @bar.style.transform = "" @bar.style.transition = "transform #{leftTimeout}ms linear" , 100 showExclamation:...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
156
196
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript refreshStreakBar: (leftTimeout = @streakTimeout) -> scale = leftTimeout / @streakTimeout @bar.style.transition = "none" @bar.style.transform = "scaleX(#{scale})" setTimeout => @bar.style.transform = "" @bar.style.transition = "transfo...
({ refreshStreakBar: function(leftTimeout = this.streakTimeout) { var scale; scale = leftTimeout / this.streakTimeout; this.bar.style.transition = "none"; this.bar.style.transform = `scaleX(${scale})`; return setTimeout(() => { this.bar.style.transform = ""; return this.bar.style.trans...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
156
196
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ refreshStreakBar: function(leftTimeout = this.streakTimeout) { var scale; scale = leftTimeout / this.streakTimeout; this.bar.style.transition = "none"; this.bar.style.transform = `scaleX(${scale})`; return setTimeout(() => { this.bar....
refreshStreakBar: (leftTimeout = @streakTimeout) -> scale = leftTimeout / @streakTimeout @bar.style.transition = "none" @bar.style.transform = "scaleX(#{scale})" setTimeout => @bar.style.transform = "" @bar.style.transition = "transform #{leftTimeout}ms linear" , 100 showExclamation:...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
156
196
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:completion
completion
refreshStreakBar: (leftTimeout = @streakTimeout) -> scale = leftTimeout / @streakTimeout @bar.style.transition = "none" @bar.style.transform = "scaleX(#{scale})" setTimeout => @bar.style.transform = "" @bar.style.transition = "transform #{leftTimeout}ms linear" , 100 showExclamation:...
@exclamations.removeChild exclamation , 2000 getMaxStreak: -> maxStreak = localStorage.getItem "activate-power-mode.maxStreak" maxStreak = 0 if maxStreak is null maxStreak increaseMaxStreak: -> localStorage.setItem "activate-power-mode.maxStreak", @currentStreak @maxStreak = @currentStreak...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b
3,570
https://github.com/JoelBesada/activate-power-mode/blob/1ebbd9a89ce7af7b088e28b300cad6c8cbb9c73b/lib/combo-renderer.coffee
156
196
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:raw_corpus
raw_corpus
module.exports = subscriptions: null conf: [] currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) initConfigSubscribers: -> @subscriptions = new Compo...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = subscriptions: null conf: [] currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) ...
module.exports = { subscriptions: null, conf: [], currentStreak: 0, level: 0, maxStreakReached: false, observe: function(key) { return this.subscriptions.add(atom.config.observe(`activate-power-mode.comboMode.${key}`, (value) => { return this.conf[key] = value; })); }, initConfigSubscriber...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { subscriptions: null, conf: [], currentStreak: 0, level: 0, maxStreakReached: false, observe: function(key) { return this.subscriptions.add(atom.config.observe(`activate-power-mode.comboMode.${key}`, (value) => { return this....
module.exports = subscriptions: null conf: [] currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) initConfigSubscribers: -> @subscriptions = new Compo...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:1:completion
completion
module.exports = subscriptions: null conf: [] currentStreak: 0 level: 0 maxStreakReached: false observe: (key) -> @subscriptions.add atom.config.observe( "activate-power-mode.comboMode.#{key}", (value) => @conf[key] = value ) initConfigSubscribers: -> @subscriptions = new Compo...
@container = null @debouncedEndStreak?.cancel() @debouncedEndStreak = null @streakTimeoutObserver?.dispose() @opacityObserver?.dispose() @currentStreak = 0 @level = 0 @maxStreakReached = false createElement: (name, parent)-> @element = document.createElement "div" @element.classLi...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
6
55
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:raw_corpus
raw_corpus
@bar = @createElement "bar", @container @exclamations = @createElement "exclamations", @container @streakTimeoutObserver?.dispose() @streakTimeoutObserver = atom.config.observe 'activate-power-mode.comboMode.streakTimeout', (value) => @streakTimeout = value * 1000 @endStreak() ...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:completion
completion
@bar = @createElement "bar", @container @exclamations = @createElement "exclamations", @container @streakTimeoutObserver?.dispose() @streakTimeoutObserver = atom.config.observe 'activate-power-mode.comboMode.streakTimeout', (value) => @streakTimeout = value * 1000 @endStreak() ...
resetCounter: -> @modifyStreak(-@currentStreak) @endStreak() modifyStreak: (n) -> @lastStreak = performance.now() @debouncedEndStreak() n = n * (@level + 1) if n > 0 @currentStreak += n @currentStreak = 0 if @currentStreak < 0 @streakIncreased n if n > 0 @streakDecreased n if n...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:raw_corpus
raw_corpus
if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "combo-zero" checkLevel: -> level = 0 for thres...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "...
if (this.currentStreak % this.conf['exclamationEvery'] === 0) { this.showExclamation(); } else { this.showExclamation(`+${n}`, 'up'); } ({ streakDecreased: function(n) { this.showExclamation(`${n}`, 'down'); this.checkLevel(); if (this.currentStreak === 0) { return this.container.classList.add(...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (this.currentStreak % this.conf['exclamationEvery'] === 0) { this.showExclamation(); } else { this.showExclamation(`+${n}`, 'up'); } ({ streakDecreased: function(n) { this.showExclamation(`${n}`, 'down'); this.checkLevel(); if (this.currentStr...
if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "combo-zero" checkLevel: -> level = 0 for thres...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:completion
completion
if @currentStreak % @conf['exclamationEvery'] is 0 @showExclamation() else @showExclamation "+#{n}", 'up' streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "combo-zero" checkLevel: -> level = 0 for thres...
getLevel: -> @level endStreak: -> @currentStreak = 0 @maxStreakReached = false @container.classList.add "combo-zero" @container.classList.remove "level-#{@level}" @level = 0 @container.classList.add "level-#{@level}" @renderStreak() renderStreak: -> @counter.textContent = @curr...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:raw_corpus
raw_corpus
@bar.style.transform = "" @bar.style.transition = "transform #{leftTimeout}ms linear" , 100 showExclamation: (text = null, type = 'message') -> exclamation = document.createElement "span" exclamation.classList.add "exclamation" exclamation.classList.add type text = sample @conf['exclamation...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
156
190
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:completion
completion
@bar.style.transform = "" @bar.style.transition = "transform #{leftTimeout}ms linear" , 100 showExclamation: (text = null, type = 'message') -> exclamation = document.createElement "span" exclamation.classList.add "exclamation" exclamation.classList.add type text = sample @conf['exclamation...
getMaxStreak: -> maxStreak = localStorage.getItem "activate-power-mode.maxStreak" maxStreak = 0 if maxStreak is null maxStreak increaseMaxStreak: -> localStorage.setItem "activate-power-mode.maxStreak", @currentStreak @maxStreak = @currentStreak @max.textContent = "Max #{@maxStreak}" @sho...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
0163b2eeb7762b829b4b1957092ca8d7c4808984
3,570
https://github.com/JoelBesada/activate-power-mode/blob/0163b2eeb7762b829b4b1957092ca8d7c4808984/lib/combo-renderer.coffee
156
190
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:raw_corpus
raw_corpus
@bar = @createElement "bar", @container @exclamations = @createElement "exclamations", @container @streakTimeoutObserver?.dispose() @streakTimeoutObserver = atom.config.observe 'activate-power-mode.comboMode.streakTimeout', (value) => @streakTimeout = value * 1000 @endStreak() ...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:2:completion
completion
@bar = @createElement "bar", @container @exclamations = @createElement "exclamations", @container @streakTimeoutObserver?.dispose() @streakTimeoutObserver = atom.config.observe 'activate-power-mode.comboMode.streakTimeout', (value) => @streakTimeout = value * 1000 @endStreak() ...
@modifyStreak(-@currentStreak) @endStreak() modifyStreak: (n) -> @lastStreak = performance.now() @debouncedEndStreak() n = n * (@level + 1) if n > 0 @currentStreak += n @currentStreak = 0 if @currentStreak < 0 @streakIncreased n if n > 0 @streakDecreased n if n < 0 @refreshStr...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
56
105
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:raw_corpus
raw_corpus
else @showExclamation "+#{n}", 'up' @checkLevel() streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "combo-zero" checkLevel: -> level = 0 for threshold, i in @conf['activationThreshold'] break if @curre...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:3:completion
completion
else @showExclamation "+#{n}", 'up' @checkLevel() streakDecreased: (n) -> @showExclamation "#{n}", 'down' @checkLevel() if @currentStreak == 0 @container.classList.add "combo-zero" checkLevel: -> level = 0 for threshold, i in @conf['activationThreshold'] break if @curre...
endStreak: -> @currentStreak = 0 @maxStreakReached = false @container.classList.add "combo-zero" @container.classList.remove "level-#{@level}" @level = 0 @container.classList.add "level-#{@level}" @renderStreak() renderStreak: -> @counter.textContent = @currentStreak @counter.clas...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
106
155
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:raw_corpus
raw_corpus
, 100 showExclamation: (text = null, type = null) -> exclamation = document.createElement "span" exclamation.classList.add "exclamation" exclamation.classList.add type if type text = sample @conf['exclamationTexts'] if text is null exclamation.textContent = text @exclamations.insertBefore ex...
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
156
188
JoelBesada/activate-power-mode:lib/combo-renderer.coffee:4:completion
completion
, 100 showExclamation: (text = null, type = null) -> exclamation = document.createElement "span" exclamation.classList.add "exclamation" exclamation.classList.add type if type text = sample @conf['exclamationTexts'] if text is null exclamation.textContent = text @exclamations.insertBefore ex...
maxStreak = localStorage.getItem "activate-power-mode.maxStreak" maxStreak = 0 if maxStreak is null maxStreak increaseMaxStreak: -> localStorage.setItem "activate-power-mode.maxStreak", @currentStreak @maxStreak = @currentStreak @max.textContent = "Max #{@maxStreak}" @showExclamation "NEW MAX...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/combo-renderer.coffee
MIT
fc00617fdb85a6700e22ab191c33f61077470e2f
3,570
https://github.com/JoelBesada/activate-power-mode/blob/fc00617fdb85a6700e22ab191c33f61077470e2f/lib/combo-renderer.coffee
156
188
js2coffee/js2coffee:lib/transforms/objects.coffee:1:raw_corpus
raw_corpus
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) @catchEmptyArraySlots(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, paren...
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/objects.coffee
1
50
js2coffee/js2coffee:lib/transforms/objects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) @catchEmptyArraySlots(node) ObjectExpression: (...
var TransformerBase, hasNullIn; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = class extends TransformerBase { ArrayExpression(node) { this.braceObjectsInElements(node); return this.catchEmptyArraySlots(node); } ObjectExpression(node, p...
CoffeeScript
JavaScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/objects.coffee
1
50
js2coffee/js2coffee:lib/transforms/objects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TransformerBase, hasNullIn; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = class extends TransformerBase { ArrayExpression(node) { this.braceObjectsInElements(node); return this.catc...
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) @catchEmptyArraySlots(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, paren...
JavaScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/objects.coffee
1
50
js2coffee/js2coffee:lib/transforms/objects.coffee:1:completion
completion
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) @catchEmptyArraySlots(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, paren...
else node._braced = true return ### # Ensures that an Array's elements objects are braced. ### braceObjectsInElements: (node) -> for item in node.elements if item?.type is 'ObjectExpression' item._braced = true node catchEmptyArraySlots: (node) -> if hasNullIn(node.ele...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/lib/transforms/objects.coffee
1
50
js2coffee/js2coffee:lib/transforms/objects.coffee:1:raw_corpus
raw_corpus
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Braces an object ...
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
8e7a0aec522dada8e85f93b3fff99cf85a51480b
2,082
https://github.com/js2coffee/js2coffee/blob/8e7a0aec522dada8e85f93b3fff99cf85a51480b/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjec...
var TransformerBase; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = class extends TransformerBase { ArrayExpression(node) { return this.braceObjectsInElements(node); } ObjectExpression(node, parent) { return this.braceObjectInExpression...
CoffeeScript
JavaScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
8e7a0aec522dada8e85f93b3fff99cf85a51480b
2,082
https://github.com/js2coffee/js2coffee/blob/8e7a0aec522dada8e85f93b3fff99cf85a51480b/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TransformerBase; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = class extends TransformerBase { ArrayExpression(node) { return this.braceObjectsInElements(node); } ObjectExpression(...
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Braces an object ...
JavaScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
8e7a0aec522dada8e85f93b3fff99cf85a51480b
2,082
https://github.com/js2coffee/js2coffee/blob/8e7a0aec522dada8e85f93b3fff99cf85a51480b/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:completion
completion
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Braces an object ...
braceObjectInExpression: (node, parent) -> if parent.type is 'ExpressionStatement' isLastInScope = @scope.body?[@scope.body?.length-1] is parent if isLastInScope node._last = true else node._braced = true return ### # Ensures that an Array's elements objects are braced. ...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
8e7a0aec522dada8e85f93b3fff99cf85a51480b
2,082
https://github.com/js2coffee/js2coffee/blob/8e7a0aec522dada8e85f93b3fff99cf85a51480b/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:raw_corpus
raw_corpus
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class ObjectTransforms extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Br...
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4
2,082
https://github.com/js2coffee/js2coffee/blob/aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class ObjectTransforms extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) ->...
var ObjectTransforms, TransformerBase; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = ObjectTransforms = class ObjectTransforms extends TransformerBase { ArrayExpression(node) { return this.braceObjectsInElements(node); } ObjectExpression(n...
CoffeeScript
JavaScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4
2,082
https://github.com/js2coffee/js2coffee/blob/aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ObjectTransforms, TransformerBase; TransformerBase = require('./base'); /* * Mangles the AST with various CoffeeScript tweaks. */ module.exports = ObjectTransforms = class ObjectTransforms extends TransformerBase { ArrayExpression(node) { return this....
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class ObjectTransforms extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Br...
JavaScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4
2,082
https://github.com/js2coffee/js2coffee/blob/aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4/lib/transforms/objects.coffee
1
37
js2coffee/js2coffee:lib/transforms/objects.coffee:1:completion
completion
TransformerBase = require('./base') ### # Mangles the AST with various CoffeeScript tweaks. ### module.exports = class ObjectTransforms extends TransformerBase ArrayExpression: (node) -> @braceObjectsInElements(node) ObjectExpression: (node, parent) -> @braceObjectInExpression(node, parent) ### # Br...
braceObjectInExpression: (node, parent) -> if parent.type is 'ExpressionStatement' isLastInScope = @scope.body?[@scope.body?.length-1] is parent if isLastInScope node._last = true else node._braced = true return ### # Ensures that an Array's elements objects are braced. ...
CoffeeScript
CoffeeScript
js2coffee/js2coffee
lib/transforms/objects.coffee
MIT
aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4
2,082
https://github.com/js2coffee/js2coffee/blob/aeaa3cbb7c6c0f43c9bfc3f62b7eea4a0c1acfe4/lib/transforms/objects.coffee
1
37
buttercoin/buttercoin:lib/ews/ew_server.coffee:1:raw_corpus
raw_corpus
_ = require ('underscore') stump = require('stump') Q = require('q') WebsocketListener = require('./ws_listener') EngineProtocol = require('./e_protocol') EngineServer = require('../engine_server') helpers = require('enkihelpers') module.exports = class EngineWebsocketServer extends EngineServer @default_options =...
CoffeeScript
buttercoin/buttercoin
lib/ews/ew_server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/ews/ew_server.coffee
1
50