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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mojotech/pioneer:src/scaffold_builder.coffee:2:raw_corpus | raw_corpus | prompt.get({
message: "It looks like you already have a #{file} , are you sure that you would like to overwrite this? y/n"
required: true
}, (err, r) =>
if(['y', 'yes'].indexOf(r.question.toLowerCase()) > -1)
fs.writeFileSync(file, data)
else
console.log("You chose not to ove... | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee | 51 | 62 | ||
mojotech/pioneer:src/scaffold_builder.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
prompt.get({
message: "It looks like you already have a #{file} , are you sure that you would like to overwrite this? y/n"
required: true
}, (err, r) =>
if(['y', 'yes'].indexOf(r.question.toLowerCase()) > -1)
fs.writeFileSync(file, d... | prompt.get({
message: `It looks like you already have a ${file} , are you sure that you would like to overwrite this? y/n`,
required: true
}, (err, r) => {
if (['y', 'yes'].indexOf(r.question.toLowerCase()) > -1) {
return fs.writeFileSync(file, data);
} else {
return console.log(`You chose not to overwr... | CoffeeScript | JavaScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee | 51 | 62 |
mojotech/pioneer:src/scaffold_builder.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
prompt.get({
message: `It looks like you already have a ${file} , are you sure that you would like to overwrite this? y/n`,
required: true
}, (err, r) => {
if (['y', 'yes'].indexOf(r.question.toLowerCase()) > -1) {
return fs.writeFileSync(file, data);
}... | prompt.get({
message: "It looks like you already have a #{file} , are you sure that you would like to overwrite this? y/n"
required: true
}, (err, r) =>
if(['y', 'yes'].indexOf(r.question.toLowerCase()) > -1)
fs.writeFileSync(file, data)
else
console.log("You chose not to ove... | JavaScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee | 51 | 62 |
mojotech/pioneer:src/scaffold_builder.coffee:2:completion | completion | prompt.get({
message: "It looks like you already have a #{file} , are you sure that you would like to overwrite this? y/n"
required: true
}, (err, r) =>
if(['y', 'yes'].indexOf(r.question.toLowerCase()) > -1) | fs.writeFileSync(file, data)
else
console.log("You chose not to overwrite #{file} to run the scaffold files include tests/features in the feature option of your config files.")
)
_logCompleted: ->
console.log('Scaffold created. You may now run your first test'.inverse.green) | CoffeeScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/scaffold_builder.coffee | 51 | 62 |
mojotech/pioneer:src/scaffold_builder.coffee:1:raw_corpus | raw_corpus | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 937638bd003018a6abd46c918b14fdcaa7d7653b | 523 | https://github.com/mojotech/pioneer/blob/937638bd003018a6abd46c918b14fdcaa7d7653b/src/scaffold_builder.coffee | 1 | 50 | ||
mojotech/pioneer:src/scaffold_builder.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a fea... | var _, color, fs, path, readlineSync;
fs = require('fs');
path = require('path');
readlineSync = require('readline-sync');
color = require('colors');
_ = require('lodash');
module.exports = {
featureNotSpecified: function() {
var ans;
ans = readlineSync.question("You did not specify a feature path. Woul... | CoffeeScript | JavaScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 937638bd003018a6abd46c918b14fdcaa7d7653b | 523 | https://github.com/mojotech/pioneer/blob/937638bd003018a6abd46c918b14fdcaa7d7653b/src/scaffold_builder.coffee | 1 | 50 |
mojotech/pioneer:src/scaffold_builder.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, color, fs, path, readlineSync;
fs = require('fs');
path = require('path');
readlineSync = require('readline-sync');
color = require('colors');
_ = require('lodash');
module.exports = {
featureNotSpecified: function() {
var ans;
ans = readline... | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | JavaScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 937638bd003018a6abd46c918b14fdcaa7d7653b | 523 | https://github.com/mojotech/pioneer/blob/937638bd003018a6abd46c918b14fdcaa7d7653b/src/scaffold_builder.coffee | 1 | 50 |
mojotech/pioneer:src/scaffold_builder.coffee:1:completion | completion | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | widgets = path.join(p, '/widgets')
if(!fs.existsSync(widgets))
fs.mkdirSync(widgets)
steps = path.join(p, '/steps')
if(!fs.existsSync(steps))
fs.mkdirSync(steps)
fs.writeFileSync(path.join(features, 'simple.feature'), fs.readFileSync(path.join(__dirname, "scaffold/simple.txt"), 'utf8'))
... | CoffeeScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | 937638bd003018a6abd46c918b14fdcaa7d7653b | 523 | https://github.com/mojotech/pioneer/blob/937638bd003018a6abd46c918b14fdcaa7d7653b/src/scaffold_builder.coffee | 1 | 50 |
mojotech/pioneer:src/scaffold_builder.coffee:1:raw_corpus | raw_corpus | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | d4ef6d40be2cc4f9f8b8acef52b0da52ae011414 | 523 | https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/scaffold_builder.coffee | 1 | 50 | ||
mojotech/pioneer:src/scaffold_builder.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a fea... | var _, color, fs, path, readlineSync;
fs = require('fs');
path = require('path');
readlineSync = require('readline-sync');
color = require('colors');
_ = require('lodash');
module.exports = {
featureNotSpecified: function() {
var ans;
ans = readlineSync.question("You did not specify a feature path. Woul... | CoffeeScript | JavaScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | d4ef6d40be2cc4f9f8b8acef52b0da52ae011414 | 523 | https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/scaffold_builder.coffee | 1 | 50 |
mojotech/pioneer:src/scaffold_builder.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, color, fs, path, readlineSync;
fs = require('fs');
path = require('path');
readlineSync = require('readline-sync');
color = require('colors');
_ = require('lodash');
module.exports = {
featureNotSpecified: function() {
var ans;
ans = readline... | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | JavaScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | d4ef6d40be2cc4f9f8b8acef52b0da52ae011414 | 523 | https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/scaffold_builder.coffee | 1 | 50 |
mojotech/pioneer:src/scaffold_builder.coffee:1:completion | completion | fs = require 'fs'
path = require 'path'
readlineSync = require 'readline-sync'
color = require 'colors'
_ = require 'lodash'
module.exports =
featureNotSpecified: ->
ans = readlineSync.question("You did not specify a feature path. Would you like Pioneer to generate one for you... | widgets = path.join(p, '/widgets')
if(!fs.existsSync(widgets))
fs.mkdirSync(widgets)
steps = path.join(p, '/steps')
if(!fs.existsSync(steps))
fs.mkdirSync(steps)
fs.writeFileSync(path.join(features, 'simple.feature'), fs.readFileSync(path.join(__dirname, "scaffold/simple.txt"), 'utf8'))
... | CoffeeScript | CoffeeScript | mojotech/pioneer | src/scaffold_builder.coffee | MIT | d4ef6d40be2cc4f9f8b8acef52b0da52ae011414 | 523 | https://github.com/mojotech/pioneer/blob/d4ef6d40be2cc4f9f8b8acef52b0da52ae011414/src/scaffold_builder.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:1:raw_corpus | raw_corpus | dropUndefinedProps = (obj) ->
newObj = {}
Object.keys(obj).forEach (key) ->
if obj[key]?
newObj[key] = obj[key]
else
console.warn "Contains undefined value: #{key}"
newObj | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 3 | 10 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
dropUndefinedProps = (obj) ->
newObj = {}
Object.keys(obj).forEach (key) ->
if obj[key]?
newObj[key] = obj[key]
else
console.warn "Contains undefined value: #{key}"
newObj
``` | var dropUndefinedProps;
dropUndefinedProps = function(obj) {
var newObj;
newObj = {};
Object.keys(obj).forEach(function(key) {
if (obj[key] != null) {
return newObj[key] = obj[key];
} else {
return console.warn(`Contains undefined value: ${key}`);
}
});
return newObj;
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 3 | 10 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var dropUndefinedProps;
dropUndefinedProps = function(obj) {
var newObj;
newObj = {};
Object.keys(obj).forEach(function(key) {
if (obj[key] != null) {
return newObj[key] = obj[key];
} else {
return console.warn(`Contains undefined value: ... | dropUndefinedProps = (obj) ->
newObj = {}
Object.keys(obj).forEach (key) ->
if obj[key]?
newObj[key] = obj[key]
else
console.warn "Contains undefined value: #{key}"
newObj | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 3 | 10 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:1:completion | completion | dropUndefinedProps = (obj) ->
newObj = {}
Object.keys(obj).forEach (key) ->
if obj[key]? | newObj[key] = obj[key]
else
console.warn "Contains undefined value: #{key}"
newObj | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 3 | 10 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:2:raw_corpus | raw_corpus | exports.go = (info) ->
dispatcher.handleViewAction
type: 'router/go'
data:
name: info.name
data: dropUndefinedProps(info.data or {})
query: dropUndefinedProps(info.query or {}) | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 12 | 18 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.go = (info) ->
dispatcher.handleViewAction
type: 'router/go'
data:
name: info.name
data: dropUndefinedProps(info.data or {})
query: dropUndefinedProps(info.query or {})
``` | exports.go = function(info) {
return dispatcher.handleViewAction({
type: 'router/go',
data: {
name: info.name,
data: dropUndefinedProps(info.data || {}),
query: dropUndefinedProps(info.query || {})
}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 12 | 18 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.go = function(info) {
return dispatcher.handleViewAction({
type: 'router/go',
data: {
name: info.name,
data: dropUndefinedProps(info.data || {}),
query: dropUndefinedProps(info.query || {})
}
});
};
``` | exports.go = (info) ->
dispatcher.handleViewAction
type: 'router/go'
data:
name: info.name
data: dropUndefinedProps(info.data or {})
query: dropUndefinedProps(info.query or {}) | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 12 | 18 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:2:completion | completion | exports.go = (info) ->
dispatcher.handleViewAction
type: 'router/go' | data:
name: info.name
data: dropUndefinedProps(info.data or {})
query: dropUndefinedProps(info.query or {}) | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 12 | 18 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:3:raw_corpus | raw_corpus | exports.team = (_teamId, searchQuery) ->
exports.go
name: 'team'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 20 | 24 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.team = (_teamId, searchQuery) ->
exports.go
name: 'team'
data: {_teamId}
query: searchQuery
``` | exports.team = function(_teamId, searchQuery) {
return exports.go({
name: 'team',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 20 | 24 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.team = function(_teamId, searchQuery) {
return exports.go({
name: 'team',
data: {_teamId},
query: searchQuery
});
};
``` | exports.team = (_teamId, searchQuery) ->
exports.go
name: 'team'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 20 | 24 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:4:raw_corpus | raw_corpus | exports.room = (_teamId, _roomId, searchQuery) ->
exports.go
name: 'room'
data: {_teamId, _roomId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 26 | 30 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.room = (_teamId, _roomId, searchQuery) ->
exports.go
name: 'room'
data: {_teamId, _roomId}
query: searchQuery
``` | exports.room = function(_teamId, _roomId, searchQuery) {
return exports.go({
name: 'room',
data: {_teamId, _roomId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 26 | 30 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.room = function(_teamId, _roomId, searchQuery) {
return exports.go({
name: 'room',
data: {_teamId, _roomId},
query: searchQuery
});
};
``` | exports.room = (_teamId, _roomId, searchQuery) ->
exports.go
name: 'room'
data: {_teamId, _roomId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 26 | 30 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:5:raw_corpus | raw_corpus | exports.chat = (_teamId, _toId, searchQuery) ->
exports.go
name: 'chat'
data: {_teamId, _toId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 32 | 36 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.chat = (_teamId, _toId, searchQuery) ->
exports.go
name: 'chat'
data: {_teamId, _toId}
query: searchQuery
``` | exports.chat = function(_teamId, _toId, searchQuery) {
return exports.go({
name: 'chat',
data: {_teamId, _toId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 32 | 36 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.chat = function(_teamId, _toId, searchQuery) {
return exports.go({
name: 'chat',
data: {_teamId, _toId},
query: searchQuery
});
};
``` | exports.chat = (_teamId, _toId, searchQuery) ->
exports.go
name: 'chat'
data: {_teamId, _toId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 32 | 36 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:6:raw_corpus | raw_corpus | exports.story = (_teamId, _storyId, searchQuery) ->
data = { _teamId, _storyId }
exports.go
name: 'story'
data: data
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 38 | 44 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.story = (_teamId, _storyId, searchQuery) ->
data = { _teamId, _storyId }
exports.go
name: 'story'
data: data
query: searchQuery
``` | exports.story = function(_teamId, _storyId, searchQuery) {
var data;
data = {_teamId, _storyId};
return exports.go({
name: 'story',
data: data,
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 38 | 44 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.story = function(_teamId, _storyId, searchQuery) {
var data;
data = {_teamId, _storyId};
return exports.go({
name: 'story',
data: data,
query: searchQuery
});
};
``` | exports.story = (_teamId, _storyId, searchQuery) ->
data = { _teamId, _storyId }
exports.go
name: 'story'
data: data
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 38 | 44 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:6:completion | completion | exports.story = (_teamId, _storyId, searchQuery) ->
data = { _teamId, _storyId } | exports.go
name: 'story'
data: data
query: searchQuery | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 38 | 44 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:7:raw_corpus | raw_corpus | exports.collection = (_teamId, searchQuery) ->
exports.go
name: 'collection'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 46 | 50 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:7:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.collection = (_teamId, searchQuery) ->
exports.go
name: 'collection'
data: {_teamId}
query: searchQuery
``` | exports.collection = function(_teamId, searchQuery) {
return exports.go({
name: 'collection',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 46 | 50 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:7:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.collection = function(_teamId, searchQuery) {
return exports.go({
name: 'collection',
data: {_teamId},
query: searchQuery
});
};
``` | exports.collection = (_teamId, searchQuery) ->
exports.go
name: 'collection'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 46 | 50 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:8:raw_corpus | raw_corpus | exports.favorites = (_teamId, searchQuery) ->
exports.go
name: 'favorites'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 52 | 56 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:8:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.favorites = (_teamId, searchQuery) ->
exports.go
name: 'favorites'
data: {_teamId}
query: searchQuery
``` | exports.favorites = function(_teamId, searchQuery) {
return exports.go({
name: 'favorites',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 52 | 56 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:8:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.favorites = function(_teamId, searchQuery) {
return exports.go({
name: 'favorites',
data: {_teamId},
query: searchQuery
});
};
``` | exports.favorites = (_teamId, searchQuery) ->
exports.go
name: 'favorites'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 52 | 56 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:9:raw_corpus | raw_corpus | exports.create = (_teamId, searchQuery) ->
exports.go
name: 'create'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 58 | 62 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:9:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.create = (_teamId, searchQuery) ->
exports.go
name: 'create'
data: {_teamId}
query: searchQuery
``` | exports.create = function(_teamId, searchQuery) {
return exports.go({
name: 'create',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 58 | 62 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:9:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.create = function(_teamId, searchQuery) {
return exports.go({
name: 'create',
data: {_teamId},
query: searchQuery
});
};
``` | exports.create = (_teamId, searchQuery) ->
exports.go
name: 'create'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 58 | 62 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:10:raw_corpus | raw_corpus | exports.tags = (_teamId, searchQuery) ->
exports.go
name: 'tags'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 64 | 68 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:10:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.tags = (_teamId, searchQuery) ->
exports.go
name: 'tags'
data: {_teamId}
query: searchQuery
``` | exports.tags = function(_teamId, searchQuery) {
return exports.go({
name: 'tags',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 64 | 68 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:10:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.tags = function(_teamId, searchQuery) {
return exports.go({
name: 'tags',
data: {_teamId},
query: searchQuery
});
};
``` | exports.tags = (_teamId, searchQuery) ->
exports.go
name: 'tags'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 64 | 68 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:11:raw_corpus | raw_corpus | exports.integrations = (_teamId, searchQuery) ->
exports.go
name: 'integrations'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 70 | 74 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:11:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.integrations = (_teamId, searchQuery) ->
exports.go
name: 'integrations'
data: {_teamId}
query: searchQuery
``` | exports.integrations = function(_teamId, searchQuery) {
return exports.go({
name: 'integrations',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 70 | 74 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:11:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.integrations = function(_teamId, searchQuery) {
return exports.go({
name: 'integrations',
data: {_teamId},
query: searchQuery
});
};
``` | exports.integrations = (_teamId, searchQuery) ->
exports.go
name: 'integrations'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 70 | 74 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:12:raw_corpus | raw_corpus | exports.settingRookie = ->
exports.go
name: 'setting-rookie'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 76 | 80 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:12:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.settingRookie = ->
exports.go
name: 'setting-rookie'
data: {}
query: {}
``` | exports.settingRookie = function() {
return exports.go({
name: 'setting-rookie',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 76 | 80 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:12:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.settingRookie = function() {
return exports.go({
name: 'setting-rookie',
data: {},
query: {}
});
};
``` | exports.settingRookie = ->
exports.go
name: 'setting-rookie'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 76 | 80 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:13:raw_corpus | raw_corpus | exports.settingTeams = ->
exports.go
name: 'setting-teams'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 82 | 86 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:13:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.settingTeams = ->
exports.go
name: 'setting-teams'
data: {}
query: {}
``` | exports.settingTeams = function() {
return exports.go({
name: 'setting-teams',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 82 | 86 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:13:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.settingTeams = function() {
return exports.go({
name: 'setting-teams',
data: {},
query: {}
});
};
``` | exports.settingTeams = ->
exports.go
name: 'setting-teams'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 82 | 86 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:14:raw_corpus | raw_corpus | exports.profile = (searchQuery) ->
exports.go
name: 'profile'
data: {}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 88 | 92 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:14:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.profile = (searchQuery) ->
exports.go
name: 'profile'
data: {}
query: searchQuery
``` | exports.profile = function(searchQuery) {
return exports.go({
name: 'profile',
data: {},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 88 | 92 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:14:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.profile = function(searchQuery) {
return exports.go({
name: 'profile',
data: {},
query: searchQuery
});
};
``` | exports.profile = (searchQuery) ->
exports.go
name: 'profile'
data: {}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 88 | 92 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:15:raw_corpus | raw_corpus | exports.teamCreate = ->
exports.go
name: 'setting-team-create'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 94 | 98 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:15:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.teamCreate = ->
exports.go
name: 'setting-team-create'
data: {}
query: {}
``` | exports.teamCreate = function() {
return exports.go({
name: 'setting-team-create',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 94 | 98 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:15:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.teamCreate = function() {
return exports.go({
name: 'setting-team-create',
data: {},
query: {}
});
};
``` | exports.teamCreate = ->
exports.go
name: 'setting-team-create'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 94 | 98 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:16:raw_corpus | raw_corpus | exports.teamSync = ->
exports.go
name: 'setting-sync'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 100 | 104 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:16:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.teamSync = ->
exports.go
name: 'setting-sync'
data: {}
query: {}
``` | exports.teamSync = function() {
return exports.go({
name: 'setting-sync',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 100 | 104 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:16:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.teamSync = function() {
return exports.go({
name: 'setting-sync',
data: {},
query: {}
});
};
``` | exports.teamSync = ->
exports.go
name: 'setting-sync'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 100 | 104 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:17:raw_corpus | raw_corpus | exports.teamSyncList = ->
exports.go
name: 'setting-sync-teams'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 106 | 110 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:17:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.teamSyncList = ->
exports.go
name: 'setting-sync-teams'
data: {}
query: {}
``` | exports.teamSyncList = function() {
return exports.go({
name: 'setting-sync-teams',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 106 | 110 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:17:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.teamSyncList = function() {
return exports.go({
name: 'setting-sync-teams',
data: {},
query: {}
});
};
``` | exports.teamSyncList = ->
exports.go
name: 'setting-sync-teams'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 106 | 110 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:18:raw_corpus | raw_corpus | exports.settingHome = ->
exports.go
name: 'setting-home'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 112 | 116 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:18:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.settingHome = ->
exports.go
name: 'setting-home'
data: {}
query: {}
``` | exports.settingHome = function() {
return exports.go({
name: 'setting-home',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 112 | 116 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:18:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.settingHome = function() {
return exports.go({
name: 'setting-home',
data: {},
query: {}
});
};
``` | exports.settingHome = ->
exports.go
name: 'setting-home'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 112 | 116 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:19:raw_corpus | raw_corpus | exports.guestDisabled = ->
exports.go
name: 'disabled'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 118 | 122 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:19:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.guestDisabled = ->
exports.go
name: 'disabled'
data: {}
query: {}
``` | exports.guestDisabled = function() {
return exports.go({
name: 'disabled',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 118 | 122 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:19:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.guestDisabled = function() {
return exports.go({
name: 'disabled',
data: {},
query: {}
});
};
``` | exports.guestDisabled = ->
exports.go
name: 'disabled'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 118 | 122 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:20:raw_corpus | raw_corpus | exports.guestRoom = (_roomId) ->
exports.go
name: 'room'
data:
_roomId: _roomId
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 124 | 129 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:20:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.guestRoom = (_roomId) ->
exports.go
name: 'room'
data:
_roomId: _roomId
query: {}
``` | exports.guestRoom = function(_roomId) {
return exports.go({
name: 'room',
data: {
_roomId: _roomId
},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 124 | 129 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:20:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.guestRoom = function(_roomId) {
return exports.go({
name: 'room',
data: {
_roomId: _roomId
},
query: {}
});
};
``` | exports.guestRoom = (_roomId) ->
exports.go
name: 'room'
data:
_roomId: _roomId
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 124 | 129 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:21:raw_corpus | raw_corpus | exports.guestSignup = ->
exports.go
name: 'signup'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 131 | 135 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:21:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.guestSignup = ->
exports.go
name: 'signup'
data: {}
query: {}
``` | exports.guestSignup = function() {
return exports.go({
name: 'signup',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 131 | 135 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:21:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.guestSignup = function() {
return exports.go({
name: 'signup',
data: {},
query: {}
});
};
``` | exports.guestSignup = ->
exports.go
name: 'signup'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 131 | 135 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:22:raw_corpus | raw_corpus | exports.guest404 = ->
exports.go
name: '404'
data: {}
query: {} | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 137 | 141 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:22:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.guest404 = ->
exports.go
name: '404'
data: {}
query: {}
``` | exports.guest404 = function() {
return exports.go({
name: '404',
data: {},
query: {}
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 137 | 141 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:22:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.guest404 = function() {
return exports.go({
name: '404',
data: {},
query: {}
});
};
``` | exports.guest404 = ->
exports.go
name: '404'
data: {}
query: {} | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 137 | 141 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:23:raw_corpus | raw_corpus | exports.mentions = (params, searchQuery) ->
exports.go
name: 'mentions'
data: params
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 143 | 147 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:23:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.mentions = (params, searchQuery) ->
exports.go
name: 'mentions'
data: params
query: searchQuery
``` | exports.mentions = function(params, searchQuery) {
return exports.go({
name: 'mentions',
data: params,
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 143 | 147 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:23:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.mentions = function(params, searchQuery) {
return exports.go({
name: 'mentions',
data: params,
query: searchQuery
});
};
``` | exports.mentions = (params, searchQuery) ->
exports.go
name: 'mentions'
data: params
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 143 | 147 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:24:raw_corpus | raw_corpus | exports.overview = (_teamId, searchQuery) ->
exports.go
name: 'overview'
data: {_teamId}
query: searchQuery | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 149 | 153 | ||
jianliaoim/talk-os:talk-web/client/actions/router.coffee:24:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.overview = (_teamId, searchQuery) ->
exports.go
name: 'overview'
data: {_teamId}
query: searchQuery
``` | exports.overview = function(_teamId, searchQuery) {
return exports.go({
name: 'overview',
data: {_teamId},
query: searchQuery
});
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 149 | 153 |
jianliaoim/talk-os:talk-web/client/actions/router.coffee:24:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.overview = function(_teamId, searchQuery) {
return exports.go({
name: 'overview',
data: {_teamId},
query: searchQuery
});
};
``` | exports.overview = (_teamId, searchQuery) ->
exports.go
name: 'overview'
data: {_teamId}
query: searchQuery | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/router.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/router.coffee | 149 | 153 |
gss/engine:src/engine/utilities/Console.coffee:1:raw_corpus | raw_corpus | class Console
constructor: (@level) ->
@level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0)
if !Console.bind
@level = 0
@stack = []
@buffer = []
self.addEventListener 'error', @onError, true
methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd... | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 3 | 52 | ||
gss/engine:src/engine/utilities/Console.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Console
constructor: (@level) ->
@level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0)
if !Console.bind
@level = 0
@stack = []
@buffer = []
self.addEventListener 'error', @onError, true
met... | var Console;
Console = (function() {
class Console {
constructor(level) {
var ref, ref1, ref2;
this.onError = this.onError.bind(this);
this.level = level;
if (this.level == null) {
this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !=... | CoffeeScript | JavaScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 3 | 52 |
gss/engine:src/engine/utilities/Console.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Console;
Console = (function() {
class Console {
constructor(level) {
var ref, ref1, ref2;
this.onError = this.onError.bind(this);
this.level = level;
if (this.level == null) {
this.level = (ref = self.GSS_LOG) != null ? r... | class Console
constructor: (@level) ->
@level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0)
if !Console.bind
@level = 0
@stack = []
@buffer = []
self.addEventListener 'error', @onError, true
methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd... | JavaScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 3 | 52 |
gss/engine:src/engine/utilities/Console.coffee:1:completion | completion | class Console
constructor: (@level) ->
@level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0)
if !Console.bind
@level = 0
@stack = []
@buffer = []
self.addEventListener 'error', @onError, true
methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd... | @stack.push(index - 5)
pop: (d, type = @row, update) ->
if (@level > 0.5 || type != @row) && @stack.length
index = @stack.pop()
@buffer[index + 3] = d
if type != @row
@buffer[index + 2] = @getTime(@buffer[index + 2])
unless @stack.length
@flush()
return true
retu... | CoffeeScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 3 | 52 |
gss/engine:src/engine/utilities/Console.coffee:2:raw_corpus | raw_corpus | openGroup: (name, reason = '', time, result = '') ->
fmt = '%c%s'
switch typeof reason
when 'string'
fmt += '%s'
reason = @pad(reason, 16)
when 'object'
fmt += '%O\t'
unless reason.length?
fmt += '\t'
switch typeof result
when 'string'
f... | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 53 | 102 | ||
gss/engine:src/engine/utilities/Console.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
openGroup: (name, reason = '', time, result = '') ->
fmt = '%c%s'
switch typeof reason
when 'string'
fmt += '%s'
reason = @pad(reason, 16)
when 'object'
fmt += '%O\t'
unless reason.length?
fmt += '\t... | ({
openGroup: function(name, reason = '', time, result = '') {
var fmt, method;
fmt = '%c%s';
switch (typeof reason) {
case 'string':
fmt += '%s';
reason = this.pad(reason, 16);
break;
case 'object':
fmt += '%O\t';
if (reason.length == null) {
... | CoffeeScript | JavaScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 53 | 102 |
gss/engine:src/engine/utilities/Console.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
openGroup: function(name, reason = '', time, result = '') {
var fmt, method;
fmt = '%c%s';
switch (typeof reason) {
case 'string':
fmt += '%s';
reason = this.pad(reason, 16);
break;
case 'object':
fmt += ... | openGroup: (name, reason = '', time, result = '') ->
fmt = '%c%s'
switch typeof reason
when 'string'
fmt += '%s'
reason = @pad(reason, 16)
when 'object'
fmt += '%O\t'
unless reason.length?
fmt += '\t'
switch typeof result
when 'string'
f... | JavaScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 53 | 102 |
gss/engine:src/engine/utilities/Console.coffee:2:completion | completion | openGroup: (name, reason = '', time, result = '') ->
fmt = '%c%s'
switch typeof reason
when 'string'
fmt += '%s'
reason = @pad(reason, 16)
when 'object'
fmt += '%O\t'
unless reason.length?
fmt += '\t'
switch typeof result
when 'string'
f... | if @level <= 1.5
method = 'groupCollapsed'
@[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time)
closeGroup: ->
@groupEnd()
stringify: (obj) ->
return '' unless obj
if obj.push
obj.map @stringify, @
els... | CoffeeScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 53 | 102 |
gss/engine:src/engine/utilities/Console.coffee:3:raw_corpus | raw_corpus | breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1]
row: (a, b = '', c = '', d = '') ->
return if @level < 1
a = a.name || a
return if typeof a != 'string'
p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t')
if (index = c.indexOf(@DESCEN... | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 103 | 152 | ||
gss/engine:src/engine/utilities/Console.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1]
row: (a, b = '', c = '', d = '') ->
return if @level < 1
a = a.name || a
return if typeof a != 'string'
p1 = Array(4 - Math.floor((a.length... | ({
breakpoint: decodeURIComponent(((typeof document !== "undefined" && document !== null ? document.location.search.match(/breakpoint=([^&]+)/, '') : void 0) || ['', ''])[1]({
row: function(a, b = '', c = '', d = '') {
var fmt, index, p1;
if (this.level < 1) {
return;
}
a = a.name ... | CoffeeScript | JavaScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 103 | 152 |
gss/engine:src/engine/utilities/Console.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
breakpoint: decodeURIComponent(((typeof document !== "undefined" && document !== null ? document.location.search.match(/breakpoint=([^&]+)/, '') : void 0) || ['', ''])[1]({
row: function(a, b = '', c = '', d = '') {
var fmt, index, p1;
if (this... | breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1]
row: (a, b = '', c = '', d = '') ->
return if @level < 1
a = a.name || a
return if typeof a != 'string'
p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t')
if (index = c.indexOf(@DESCEN... | JavaScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 103 | 152 |
gss/engine:src/engine/utilities/Console.coffee:3:completion | completion | breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1]
row: (a, b = '', c = '', d = '') ->
return if @level < 1
a = a.name || a
return if typeof a != 'string'
p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t')
if (index = c.indexOf(@DESCEN... | #fmt += ''
switch typeof d
when 'string', 'boolean', 'number'
fmt += ' %s '
d = @pad(String(d), 17)
when 'object'
fmt += ' %O\t '
if d.item
d = Array.prototype.slice.call(d)
else unless d.length?
d = [d]
if document?
@log(fmt + ... | CoffeeScript | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 103 | 152 |
gss/engine:src/engine/utilities/Console.coffee:4:raw_corpus | raw_corpus | end: (result) ->
@buffer.push(undefined, undefined, undefined, undefined, @closeGroup)
@pop(result, @openGroup, true)
getTime: (other, time) ->
time ||= performance?.now?() || Date.now?() || + (new Date)
return time if time && !other
return Math.floor((time - other) * 100) / 100
for method in C... | CoffeeScript | gss/engine | src/engine/utilities/Console.coffee | MIT | be430ea249f8030e11c8e03a8e170dcc8b8cf5fb | 2,854 | https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/engine/utilities/Console.coffee | 153 | 173 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.