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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
xhan/qqbot:plugins/debug.coffee:1:raw_corpus | raw_corpus | ###
sendp people message
sendg group message
###
module.exports = (content ,send, robot, message)->
"nothing" | CoffeeScript | xhan/qqbot | plugins/debug.coffee | MIT | 25b0db311a5b2940536c410a008f7508b2a039f1 | 1,435 | https://github.com/xhan/qqbot/blob/25b0db311a5b2940536c410a008f7508b2a039f1/plugins/debug.coffee | 1 | 8 | ||
xhan/qqbot:plugins/debug.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
sendp people message
sendg group message
###
module.exports = (content ,send, robot, message)->
"nothing"
``` | /*
sendp people message
sendg group message
*/
module.exports = function(content, send, robot, message) {
return "nothing";
}; | CoffeeScript | JavaScript | xhan/qqbot | plugins/debug.coffee | MIT | 25b0db311a5b2940536c410a008f7508b2a039f1 | 1,435 | https://github.com/xhan/qqbot/blob/25b0db311a5b2940536c410a008f7508b2a039f1/plugins/debug.coffee | 1 | 8 |
xhan/qqbot:plugins/debug.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
sendp people message
sendg group message
*/
module.exports = function(content, send, robot, message) {
return "nothing";
};
``` | ###
sendp people message
sendg group message
###
module.exports = (content ,send, robot, message)->
"nothing" | JavaScript | CoffeeScript | xhan/qqbot | plugins/debug.coffee | MIT | 25b0db311a5b2940536c410a008f7508b2a039f1 | 1,435 | https://github.com/xhan/qqbot/blob/25b0db311a5b2940536c410a008f7508b2a039f1/plugins/debug.coffee | 1 | 8 |
xhan/qqbot:plugins/debug.coffee:1:completion | completion | ###
sendp people message
sendg group message | ###
module.exports = (content ,send, robot, message)->
"nothing" | CoffeeScript | CoffeeScript | xhan/qqbot | plugins/debug.coffee | MIT | 25b0db311a5b2940536c410a008f7508b2a039f1 | 1,435 | https://github.com/xhan/qqbot/blob/25b0db311a5b2940536c410a008f7508b2a039f1/plugins/debug.coffee | 1 | 8 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['libs/angular'], (angular) ->
'use strict'
angular.module 'services', [] | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/services.coffee | 1 | 6 | ||
CaryLandholt/AngularFun:scripts/services/services.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['libs/angular'], (angular) ->
'use strict'
angular.module 'services', []
``` | /*global define*/
define(['libs/angular'], function(angular) {
'use strict';
return angular.module('services', []);
}); | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/services.coffee | 1 | 6 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['libs/angular'], function(angular) {
'use strict';
return angular.module('services', []);
});
``` | ###global define###
define ['libs/angular'], (angular) ->
'use strict'
angular.module 'services', [] | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/services.coffee | 1 | 6 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:completion | completion | ###global define###
define ['libs/angular'], (angular) -> | 'use strict'
angular.module 'services', [] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/services/services.coffee | 1 | 6 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['angular', 'angularResource'], (angular) ->
'use strict'
angular.module 'services', ['ngResource'] | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | d1cdd10b75a390445a1180aeef6460f89f7bfedb | 672 | https://github.com/CaryLandholt/AngularFun/blob/d1cdd10b75a390445a1180aeef6460f89f7bfedb/scripts/services/services.coffee | 1 | 6 | ||
CaryLandholt/AngularFun:scripts/services/services.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['angular', 'angularResource'], (angular) ->
'use strict'
angular.module 'services', ['ngResource']
``` | /*global define*/
define(['angular', 'angularResource'], function(angular) {
'use strict';
return angular.module('services', ['ngResource']);
}); | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | d1cdd10b75a390445a1180aeef6460f89f7bfedb | 672 | https://github.com/CaryLandholt/AngularFun/blob/d1cdd10b75a390445a1180aeef6460f89f7bfedb/scripts/services/services.coffee | 1 | 6 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['angular', 'angularResource'], function(angular) {
'use strict';
return angular.module('services', ['ngResource']);
});
``` | ###global define###
define ['angular', 'angularResource'], (angular) ->
'use strict'
angular.module 'services', ['ngResource'] | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | d1cdd10b75a390445a1180aeef6460f89f7bfedb | 672 | https://github.com/CaryLandholt/AngularFun/blob/d1cdd10b75a390445a1180aeef6460f89f7bfedb/scripts/services/services.coffee | 1 | 6 |
CaryLandholt/AngularFun:scripts/services/services.coffee:1:completion | completion | ###global define###
define ['angular', 'angularResource'], (angular) -> | 'use strict'
angular.module 'services', ['ngResource'] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/services/services.coffee | MIT | d1cdd10b75a390445a1180aeef6460f89f7bfedb | 672 | https://github.com/CaryLandholt/AngularFun/blob/d1cdd10b75a390445a1180aeef6460f89f7bfedb/scripts/services/services.coffee | 1 | 6 |
jianliaoim/talk-os:talk-web/client/app/file-default.coffee:1:raw_corpus | raw_corpus | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
colors = require '../util/colors'
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'file-default'
mixins: [PureRenderMixin]
propTypes:
file... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-default.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-default.coffee | 1 | 24 | ||
jianliaoim/talk-os:talk-web/client/app/file-default.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
colors = require '../util/colors'
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'file-de... | var Immutable, PureRenderMixin, React, T, colors, div;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
colors = require('../util/colors');
div = React.createFactory('div');
T = React.PropTypes;
module.exports = React.createClass({
display... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-default.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-default.coffee | 1 | 24 |
jianliaoim/talk-os:talk-web/client/app/file-default.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Immutable, PureRenderMixin, React, T, colors, div;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
colors = require('../util/colors');
div = React.createFactory('div');
T = React.Pro... | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
colors = require '../util/colors'
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'file-default'
mixins: [PureRenderMixin]
propTypes:
file... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-default.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-default.coffee | 1 | 24 |
jianliaoim/talk-os:talk-web/client/app/file-default.coffee:1:completion | completion | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
colors = require '../util/colors'
div = React.createFactory 'div'
T = React.PropTypes
module.exports = React.createClass
displayName: 'file-default' | mixins: [PureRenderMixin]
propTypes:
file: T.instanceOf(Immutable.Map)
render: ->
extname = @props.file.get('fileType')
bgStyle =
backgroundColor: colors.files[extname] or colors.files['file']
div className: 'file-default',
div className: 'display short', style: bgStyle, extname | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-default.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-default.coffee | 1 | 24 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: requi... | var _, extend, extendTap, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('./requires-grunt').require();
path = require('path');
_ = require("lodash");
findsPluginModules = re... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, extendTap, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('./requires-grunt').require();
path = require('p... | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | forGrunt: ->
conf = @withUserOverrides()
freshExtend(conf.application, files: conf.files)
freshExtend = (extensions...) ->
extend(true, {}, extensions...)
extendTap = (object, tapper) ->
config = freshExtend(object)
tapper(config)
config
pluginFiles = ->
grunt.file.expand(pluginFilesFromLinemanCore... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:2:raw_corpus | raw_corpus | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_.tap require('./../lineman'), (lineman) ->
lineman.conf... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 51 | 67 | ||
linemanjs/lineman:lib/builds-app-config.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_.t... | var linemanWithPluginConfigSoFar, loadUserOverride, overrideAppConfig, overrideFilesConfig, requirePlugin;
requirePlugin = function(path, config) {
var plugin;
plugin = require(path);
return (typeof plugin === "function" ? plugin(linemanWithPluginConfigSoFar(config)) : void 0) || plugin;
};
loadUserOverride = f... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var linemanWithPluginConfigSoFar, loadUserOverride, overrideAppConfig, overrideFilesConfig, requirePlugin;
requirePlugin = function(path, config) {
var plugin;
plugin = require(path);
return (typeof plugin === "function" ? plugin(linemanWithPluginConfigSoFar... | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_.tap require('./../lineman'), (lineman) ->
lineman.conf... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:2:completion | completion | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) -> | _.tap require('./../lineman'), (lineman) ->
lineman.config.application = config.application
lineman.config.files = config.files
overrideAppConfig = (pluginConfig, config) ->
extend(true, config.application, pluginConfig) if pluginConfig?
overrideFilesConfig = (pluginFiles, config) ->
extend(true, config.f... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: requi... | var _, extend, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('./requires-grunt').require();
path = require('path');
_ = require("lodash");
findsPluginModules = require('./fi... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('./requires-grunt').require();
path = require('path');
_ =... | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('./requires-grunt').require()
path = require('path')
_ = require("lodash")
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../... | forGrunt: ->
conf = @withUserOverrides()
freshExtend(conf.application, files: conf.files)
freshExtend = (extensions...) ->
extend(true, {}, extensions...)
_.mixin
extendTap: (object, tap) ->
_(freshExtend(object)).tap(tap)
pluginFiles = ->
grunt.file.expand(pluginFilesFromLinemanCore().concat(plug... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:2:raw_corpus | raw_corpus | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_(require('./../lineman')).tap (lineman) ->
lineman.conf... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 51 | 67 | ||
linemanjs/lineman:lib/builds-app-config.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_(r... | var linemanWithPluginConfigSoFar, loadUserOverride, overrideAppConfig, overrideFilesConfig, requirePlugin;
requirePlugin = function(path, config) {
var plugin;
plugin = require(path);
return (typeof plugin === "function" ? plugin(linemanWithPluginConfigSoFar(config)) : void 0) || plugin;
};
loadUserOverride = f... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var linemanWithPluginConfigSoFar, loadUserOverride, overrideAppConfig, overrideFilesConfig, requirePlugin;
requirePlugin = function(path, config) {
var plugin;
plugin = require(path);
return (typeof plugin === "function" ? plugin(linemanWithPluginConfigSoFar... | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) ->
_(require('./../lineman')).tap (lineman) ->
lineman.conf... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:2:completion | completion | requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
loadUserOverride = (name, config) ->
requirePlugin("#{process.cwd()}/config/#{name}", config)
linemanWithPluginConfigSoFar = (config) -> | _(require('./../lineman')).tap (lineman) ->
lineman.config.application = config.application
lineman.config.files = config.files
overrideAppConfig = (pluginConfig, config) ->
extend(true, config.application, pluginConfig) if pluginConfig?
overrideFilesConfig = (pluginFiles, config) ->
extend(true, config.f... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/builds-app-config.coffee | 51 | 67 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../config/files")
withPlug... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 9610ff6435b6e325e1c67291fadd807f75d3c05e | 1,168 | https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/applicatio... | var _, extend, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
findsPluginModules = require('./finds-plugin-modules');
mod... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 9610ff6435b6e325e1c67291fadd807f75d3c05e | 1,168 | https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, findsPluginModules, freshExtend, grunt, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
finds... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../config/files")
withPlug... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 9610ff6435b6e325e1c67291fadd807f75d3c05e | 1,168 | https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: _.memoize ->
freshExtend
application: require("./../config/application")
files: require("./../config/files")
withPlug... | forGrunt: ->
conf = @withUserOverrides()
freshExtend(conf.application, files: conf.files)
freshExtend = (extensions...) ->
extend(true, {}, extensions...)
_.mixin
extendTap: (object, tap) ->
_(freshExtend(object)).tap(tap)
pluginFiles = ->
grunt.file.expand(pluginFilesFromLinemanCore().concat(plug... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 9610ff6435b6e325e1c67291fadd807f75d3c05e | 1,168 | https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 33f0d060d207ab07e032da98f88fc6a478b3bcd6 | 1,168 | https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
... | var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
findsPlug... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 33f0d060d207ab07e032da98f88fc6a478b3bcd6 | 1,168 | https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 33f0d060d207ab07e032da98f88fc6a478b3bcd6 | 1,168 | https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | pluginFiles = ->
grunt.file.expand(pluginFilesFromLinemanCore().concat(pluginModulesFromNpm(), pluginFilesFromUserProject()))
pluginFilesFromLinemanCore = ->
["#{__dirname}/../config/plugins/**/*"]
pluginModulesFromNpm = ->
moduleNames = findsPluginModules.find().map (pluginModule) ->
"#{pluginModule.dir}/c... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 33f0d060d207ab07e032da98f88fc6a478b3bcd6 | 1,168 | https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 88ca803be7b3f9013dcd3820c1993017c6c25958 | 1,168 | https://github.com/linemanjs/lineman/blob/88ca803be7b3f9013dcd3820c1993017c6c25958/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
... | var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
findsPlug... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 88ca803be7b3f9013dcd3820c1993017c6c25958 | 1,168 | https://github.com/linemanjs/lineman/blob/88ca803be7b3f9013dcd3820c1993017c6c25958/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, path, pluginFiles, pluginFilesFromLinemanCore, pluginFilesFromUserProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 88ca803be7b3f9013dcd3820c1993017c6c25958 | 1,168 | https://github.com/linemanjs/lineman/blob/88ca803be7b3f9013dcd3820c1993017c6c25958/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | pluginFiles = ->
grunt.file.expand(pluginFilesFromLinemanCore().concat(pluginModulesFromNpm(), pluginFilesFromUserProject()))
pluginFilesFromLinemanCore = ->
["#{__dirname}/../config/plugins/**/*"]
pluginModulesFromNpm = ->
moduleNames = findsPluginModules.find().map (pluginModule) ->
"#{process.cwd()}/node... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 88ca803be7b3f9013dcd3820c1993017c6c25958 | 1,168 | https://github.com/linemanjs/lineman/blob/88ca803be7b3f9013dcd3820c1993017c6c25958/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | c0d891164420dae9cddbd0d5e6cfc9ce0df3d618 | 1,168 | https://github.com/linemanjs/lineman/blob/c0d891164420dae9cddbd0d5e6cfc9ce0df3d618/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
... | var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, pluginFilesInsideProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
findsPluginModules... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | c0d891164420dae9cddbd0d5e6cfc9ce0df3d618 | 1,168 | https://github.com/linemanjs/lineman/blob/c0d891164420dae9cddbd0d5e6cfc9ce0df3d618/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, findsPluginModules, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, pluginFilesInsideProject, pluginModulesFromNpm, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = ... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | c0d891164420dae9cddbd0d5e6cfc9ce0df3d618 | 1,168 | https://github.com/linemanjs/lineman/blob/c0d891164420dae9cddbd0d5e6cfc9ce0df3d618/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
findsPluginModules = require('./finds-plugin-modules')
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ... | pluginFiles = ->
grunt.file.expand(pluginModulesFromNpm().concat(pluginFilesInsideProject()))
pluginModulesFromNpm = ->
moduleNames = findsPluginModules.find().map (pluginModule) ->
"#{process.cwd()}/node_modules/#{pluginModule}/config/plugins/**/*"
pluginFilesInsideProject = ->
["#{__dirname}/../config/plu... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | c0d891164420dae9cddbd0d5e6cfc9ce0df3d618 | 1,168 | https://github.com/linemanjs/lineman/blob/c0d891164420dae9cddbd0d5e6cfc9ce0df3d618/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/lib/builds-app-config.coffee | 1 | 45 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins... | var _, extend, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
module.exports = {
default: function() {
return extend(true, {}, {
applica... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/lib/builds-app-config.coffee | 1 | 45 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, extend, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
module.exports = {
default: f... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/lib/builds-app-config.coffee | 1 | 45 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | require("#{process.cwd()}/config/application"),
files: require("#{process.cwd()}/config/files")
pluginFiles = ->
grunt.file.expand([
"#{__dirname}/../config/plugins/**/*",
"#{process.cwd()}/config/plugins/**/*"
])
requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPlugin... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/lib/builds-app-config.coffee | 1 | 45 |
linemanjs/lineman:lib/builds-app-config.coffee:1:raw_corpus | raw_corpus | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 6318ce2aa0b785f49abde268edc68cbac20e522c | 1,168 | https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/lib/builds-app-config.coffee | 1 | 50 | ||
linemanjs/lineman:lib/builds-app-config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins... | var _, appConfigNameForPlugin, extend, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
module.exports = {
default: function() {
return extend(t... | CoffeeScript | JavaScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 6318ce2aa0b785f49abde268edc68cbac20e522c | 1,168 | https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, appConfigNameForPlugin, extend, grunt, linemanWithPluginConfigSoFar, overrideAppConfig, overrideFilesConfig, path, pluginFiles, requirePlugin;
extend = require('config-extend');
grunt = require('grunt');
path = require('path');
_ = grunt.util._;
module.... | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | JavaScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 6318ce2aa0b785f49abde268edc68cbac20e522c | 1,168 | https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/lib/builds-app-config.coffee | 1 | 50 |
linemanjs/lineman:lib/builds-app-config.coffee:1:completion | completion | extend = require('config-extend')
grunt = require('grunt')
path = require('path')
_ = grunt.util._
module.exports =
default: ->
extend true, {},
application: require("./../config/application")
files: require("./../config/files")
withPlugins: ->
_(@default()).tap (config) ->
_(pluginFile... | grunt.file.expand([
"#{__dirname}/../config/plugins/**/*",
"#{process.cwd()}/config/plugins/**/*",
])
requirePlugin = (path, config) ->
plugin = require(path)
plugin?(linemanWithPluginConfigSoFar(config)) || plugin
linemanWithPluginConfigSoFar = (config) ->
_(require('./../lineman')).tap (lineman) ->
... | CoffeeScript | CoffeeScript | linemanjs/lineman | lib/builds-app-config.coffee | MIT | 6318ce2aa0b785f49abde268edc68cbac20e522c | 1,168 | https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/lib/builds-app-config.coffee | 1 | 50 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:raw_corpus | raw_corpus | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formatters) ->
retur... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/pybeautifier.coffee | 1 | 50 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:completion | completion | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formatters) ->
retur... | response = ''
client.on 'data', (chunk) ->
response += chunk
client.on 'end', ->
response = JSON.parse(response)
if response.error?
reject(Error(response.error))
else
resolve(response.data)
client.destroy()
module.exports = class PythonBeautifier ... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/pybeautifier.coffee | 1 | 50 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:raw_corpus | raw_corpus | 'ignore': options.ignore
'max_line_length': options.max_line_length
}
else if options.formatter == 'yapf'
formatter.config = {'style_config': options.style_config}
formatters = [formatter]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/pybeautifier.coffee | 51 | 67 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:completion | completion | 'ignore': options.ignore
'max_line_length': options.max_line_length
}
else if options.formatter == 'yapf'
formatter.config = {'style_config': options.style_config}
formatters = [formatter]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output... | formatters.push
'name': 'isort'
'config': {'multi_line_output': multi_line_output}
return new @Promise (resolve, reject) ->
format(text, formatters)
.then (data) ->
resolve(data)
.catch (error) ->
reject(error) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/pybeautifier.coffee | 51 | 67 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:raw_corpus | raw_corpus | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formaters) ->
return... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 7e958d0db0d4e6256308a509dcc6a2fa8c457aeb | 1,503 | https://github.com/Glavin001/atom-beautify/blob/7e958d0db0d4e6256308a509dcc6a2fa8c457aeb/src/beautifiers/pybeautifier.coffee | 1 | 50 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:completion | completion | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formaters) ->
return... | response = ''
client.on 'data', (chunk) ->
response += chunk
client.on 'end', ->
response = JSON.parse(response)
if response.error?
reject(Error(response.error))
else
resolve(response.data)
client.destroy()
module.exports = class PythonBeautifier ... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 7e958d0db0d4e6256308a509dcc6a2fa8c457aeb | 1,503 | https://github.com/Glavin001/atom-beautify/blob/7e958d0db0d4e6256308a509dcc6a2fa8c457aeb/src/beautifiers/pybeautifier.coffee | 1 | 50 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:raw_corpus | raw_corpus | 'ignore': options.ignore
'max_line_length': options.max_line_length
}
else if options.formater == 'yapf'
formater.config = {'style_config': options.style_config}
formaters = [formater]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output]
... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 7e958d0db0d4e6256308a509dcc6a2fa8c457aeb | 1,503 | https://github.com/Glavin001/atom-beautify/blob/7e958d0db0d4e6256308a509dcc6a2fa8c457aeb/src/beautifiers/pybeautifier.coffee | 51 | 67 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:completion | completion | 'ignore': options.ignore
'max_line_length': options.max_line_length
}
else if options.formater == 'yapf'
formater.config = {'style_config': options.style_config}
formaters = [formater]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output] | formaters.push
'name': 'isort'
'config': {'multi_line_output': multi_line_output}
return new @Promise (resolve, reject) ->
format(text, formaters)
.then (data) ->
resolve(data)
.catch (error) ->
reject(error) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | 7e958d0db0d4e6256308a509dcc6a2fa8c457aeb | 1,503 | https://github.com/Glavin001/atom-beautify/blob/7e958d0db0d4e6256308a509dcc6a2fa8c457aeb/src/beautifiers/pybeautifier.coffee | 51 | 67 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:raw_corpus | raw_corpus | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formaters) ->
return... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78/src/beautifiers/pybeautifier.coffee | 1 | 50 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:1:completion | completion | 'use strict'
net = require('net')
Beautifier = require('./beautifier')
HOST = '127.0.0.1'
PORT = 36805
MULTI_LINE_OUTPUT_TABLE = {
'Grid': 0,
'Vertical': 1,
'Hanging Indent': 2,
'Vertical Hanging Indent': 3,
'Hanging Grid': 4,
'Hanging Grid Grouped': 5,
'NOQA': 6
}
format = (data, formaters) ->
return... | response = ''
client.on 'data', (chunk) ->
response += chunk
client.on 'end', ->
response = JSON.parse(response)
if response.error?
reject(Error(response.error))
else
resolve(response.data)
client.destroy()
module.exports = class PythonBeautifier ... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78/src/beautifiers/pybeautifier.coffee | 1 | 50 |
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:raw_corpus | raw_corpus | 'max_line_length': options.max_line_length
}
else if options.formater == 'yapf'
formater.config = {'style_config': options.style_config}
formaters = [formater]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output]
formaters.push
'name'... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78/src/beautifiers/pybeautifier.coffee | 51 | 66 | ||
Glavin001/atom-beautify:src/beautifiers/pybeautifier.coffee:2:completion | completion | 'max_line_length': options.max_line_length
}
else if options.formater == 'yapf'
formater.config = {'style_config': options.style_config}
formaters = [formater]
if options.sort_imports
multi_line_output = MULTI_LINE_OUTPUT_TABLE[options.multi_line_output]
formaters.push | 'name': 'isort'
'config': {'multi_line_output': multi_line_output}
return new @Promise (resolve, reject) ->
format(text, formaters)
.then (data) ->
resolve(data)
.catch (error) ->
reject(error) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/pybeautifier.coffee | MIT | d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/d85bd22bcb4bd19e9ebd81b20a9cf9084586fc78/src/beautifiers/pybeautifier.coffee | 51 | 66 |
octoblu/meshblu:lib/logElasticSearch.coffee:1:raw_corpus | raw_corpus | class LogElasticSearch
constructor: (options, dependencies={}) ->
ElasticSearch = dependencies.ElasticSearch ? require('elasticsearch').Client
{@logError} = dependencies
@logError ?= require './logError'
@elasticsearch = new ElasticSearch options
log: (eventCode, body) =>
@elasticsearch.create ... | CoffeeScript | octoblu/meshblu | lib/logElasticSearch.coffee | MIT | 1b93806a9321e5dda42d3d937968cab3d88ac39e | 815 | https://github.com/octoblu/meshblu/blob/1b93806a9321e5dda42d3d937968cab3d88ac39e/lib/logElasticSearch.coffee | 1 | 18 | ||
octoblu/meshblu:lib/logElasticSearch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class LogElasticSearch
constructor: (options, dependencies={}) ->
ElasticSearch = dependencies.ElasticSearch ? require('elasticsearch').Client
{@logError} = dependencies
@logError ?= require './logError'
@elasticsearch = new ElasticSearch option... | var LogElasticSearch;
LogElasticSearch = class LogElasticSearch {
constructor(options, dependencies = {}) {
var ElasticSearch, ref;
this.log = this.log.bind(this);
ElasticSearch = (ref = dependencies.ElasticSearch) != null ? ref : require('elasticsearch').Client;
({logError: this.logError} = dependen... | CoffeeScript | JavaScript | octoblu/meshblu | lib/logElasticSearch.coffee | MIT | 1b93806a9321e5dda42d3d937968cab3d88ac39e | 815 | https://github.com/octoblu/meshblu/blob/1b93806a9321e5dda42d3d937968cab3d88ac39e/lib/logElasticSearch.coffee | 1 | 18 |
octoblu/meshblu:lib/logElasticSearch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var LogElasticSearch;
LogElasticSearch = class LogElasticSearch {
constructor(options, dependencies = {}) {
var ElasticSearch, ref;
this.log = this.log.bind(this);
ElasticSearch = (ref = dependencies.ElasticSearch) != null ? ref : require('elasticsea... | class LogElasticSearch
constructor: (options, dependencies={}) ->
ElasticSearch = dependencies.ElasticSearch ? require('elasticsearch').Client
{@logError} = dependencies
@logError ?= require './logError'
@elasticsearch = new ElasticSearch options
log: (eventCode, body) =>
@elasticsearch.create ... | JavaScript | CoffeeScript | octoblu/meshblu | lib/logElasticSearch.coffee | MIT | 1b93806a9321e5dda42d3d937968cab3d88ac39e | 815 | https://github.com/octoblu/meshblu/blob/1b93806a9321e5dda42d3d937968cab3d88ac39e/lib/logElasticSearch.coffee | 1 | 18 |
octoblu/meshblu:lib/logElasticSearch.coffee:1:completion | completion | class LogElasticSearch
constructor: (options, dependencies={}) ->
ElasticSearch = dependencies.ElasticSearch ? require('elasticsearch').Client
{@logError} = dependencies
@logError ?= require './logError'
@elasticsearch = new ElasticSearch options
log: (eventCode, body) =>
@elasticsearch.create ... | return unless error?
try
throw error
catch error
error.createParams = index: "meshblu_events_#{eventCode}", type: 'event', body: body
@logError error
module.exports = LogElasticSearch | CoffeeScript | CoffeeScript | octoblu/meshblu | lib/logElasticSearch.coffee | MIT | 1b93806a9321e5dda42d3d937968cab3d88ac39e | 815 | https://github.com/octoblu/meshblu/blob/1b93806a9321e5dda42d3d937968cab3d88ac39e/lib/logElasticSearch.coffee | 1 | 18 |
elving/swag:test/templates/some_template.coffee:1:raw_corpus | raw_corpus | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
revision = Handlebars.COMPILER_REVISION
versions = Handlebars.REVISION_CHANGES[revision]
this.compilerInfo = [revision,versions]
helpers = helpers or Handlebars.helpers
foundHelpe... | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | e9c8788dfc9f640038c00eaafe33f4137ff5f465 | 675 | https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/templates/some_template.coffee | 1 | 10 | ||
elving/swag:test/templates/some_template.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
revision = Handlebars.COMPILER_REVISION
versions = Handlebars.REVISION_CHANGES[revision]
this.compilerInfo = [revision,versions]
... | var Handlebars;
Handlebars = require('handlebars');
module.exports = Handlebars.template(function(Handlebars, depth0, helpers, partials, data) {
var foundHelper, revision, self, versions;
revision = Handlebars.COMPILER_REVISION;
versions = Handlebars.REVISION_CHANGES[revision];
this.compilerInfo = [revision, ... | CoffeeScript | JavaScript | elving/swag | test/templates/some_template.coffee | MIT | e9c8788dfc9f640038c00eaafe33f4137ff5f465 | 675 | https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/templates/some_template.coffee | 1 | 10 |
elving/swag:test/templates/some_template.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Handlebars;
Handlebars = require('handlebars');
module.exports = Handlebars.template(function(Handlebars, depth0, helpers, partials, data) {
var foundHelper, revision, self, versions;
revision = Handlebars.COMPILER_REVISION;
versions = Handlebars.REVISI... | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
revision = Handlebars.COMPILER_REVISION
versions = Handlebars.REVISION_CHANGES[revision]
this.compilerInfo = [revision,versions]
helpers = helpers or Handlebars.helpers
foundHelpe... | JavaScript | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | e9c8788dfc9f640038c00eaafe33f4137ff5f465 | 675 | https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/templates/some_template.coffee | 1 | 10 |
elving/swag:test/templates/some_template.coffee:1:completion | completion | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
revision = Handlebars.COMPILER_REVISION
versions = Handlebars.REVISION_CHANGES[revision] | this.compilerInfo = [revision,versions]
helpers = helpers or Handlebars.helpers
foundHelper = undefined
self = this
'A partial.' | CoffeeScript | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | e9c8788dfc9f640038c00eaafe33f4137ff5f465 | 675 | https://github.com/elving/swag/blob/e9c8788dfc9f640038c00eaafe33f4137ff5f465/test/templates/some_template.coffee | 1 | 10 |
elving/swag:test/templates/some_template.coffee:1:raw_corpus | raw_corpus | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
helpers = helpers or Handlebars.helpers
foundHelper = undefined
self = this
'A partial.' | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | 5e45f8e30f1605c8b521997024c9a49806571fc8 | 675 | https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/templates/some_template.coffee | 1 | 7 | ||
elving/swag:test/templates/some_template.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
helpers = helpers or Handlebars.helpers
foundHelper = undefined
self = this
'A partial.'
``` | var Handlebars;
Handlebars = require('handlebars');
module.exports = Handlebars.template(function(Handlebars, depth0, helpers, partials, data) {
var foundHelper, self;
helpers = helpers || Handlebars.helpers;
foundHelper = void 0;
self = this;
return 'A partial.';
}); | CoffeeScript | JavaScript | elving/swag | test/templates/some_template.coffee | MIT | 5e45f8e30f1605c8b521997024c9a49806571fc8 | 675 | https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/templates/some_template.coffee | 1 | 7 |
elving/swag:test/templates/some_template.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Handlebars;
Handlebars = require('handlebars');
module.exports = Handlebars.template(function(Handlebars, depth0, helpers, partials, data) {
var foundHelper, self;
helpers = helpers || Handlebars.helpers;
foundHelper = void 0;
self = this;
return 'A... | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) ->
helpers = helpers or Handlebars.helpers
foundHelper = undefined
self = this
'A partial.' | JavaScript | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | 5e45f8e30f1605c8b521997024c9a49806571fc8 | 675 | https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/templates/some_template.coffee | 1 | 7 |
elving/swag:test/templates/some_template.coffee:1:completion | completion | Handlebars = require 'handlebars'
module.exports = Handlebars.template (Handlebars, depth0, helpers, partials, data) -> | helpers = helpers or Handlebars.helpers
foundHelper = undefined
self = this
'A partial.' | CoffeeScript | CoffeeScript | elving/swag | test/templates/some_template.coffee | MIT | 5e45f8e30f1605c8b521997024c9a49806571fc8 | 675 | https://github.com/elving/swag/blob/5e45f8e30f1605c8b521997024c9a49806571fc8/test/templates/some_template.coffee | 1 | 7 |
nicolaskruchten/pivottable:locales/pivot.pl.coffee:1:raw_corpus | raw_corpus | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | CoffeeScript | nicolaskruchten/pivottable | locales/pivot.pl.coffee | MIT | 838ec2fc38747749c28d2fd1cb6c4ace9e9cc520 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.pl.coffee | 1 | 50 | ||
nicolaskruchten/pivottable:locales/pivot.pl.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain brow... | var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return define(["jquery"], pivotModule);
} else {
// Plain br... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | locales/pivot.pl.coffee | MIT | 838ec2fc38747749c28d2fd1cb6c4ace9e9cc520 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.pl.coffee | 1 | 50 |
nicolaskruchten/pivottable:locales/pivot.pl.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return defi... | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | locales/pivot.pl.coffee | MIT | 838ec2fc38747749c28d2fd1cb6c4ace9e9cc520 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.pl.coffee | 1 | 50 |
nicolaskruchten/pivottable:locales/pivot.pl.coffee:1:completion | completion | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | filterResults: "Filtruj wartości"
apply: "Zastosuj"
cancel: "Anuluj"
totals: "Podsumowanie"
vs: "vs"
by: "przez"
aggregators:
"Liczba": tpl.count(plFmtInt)
"Liczba Unikatowych Wartości": tpl.countUnique(p... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | locales/pivot.pl.coffee | MIT | 838ec2fc38747749c28d2fd1cb6c4ace9e9cc520 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.pl.coffee | 1 | 50 |
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_if.coffee:1:raw_corpus | raw_corpus | a: b: d: true
c: false
result: if a
if b
if c then false else
if d
true
ok result
first: if false then false else second: if false then false else true
ok first
ok second
result: if false
false
else if NaN
false
else
true
ok result
# If statement with a comment-only clause.
result: i... | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_if.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_if.coffee | 1 | 44 | ||
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_if.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
a: b: d: true
c: false
result: if a
if b
if c then false else
if d
true
ok result
first: if false then false else second: if false then false else true
ok first
ok second
result: if false
false
else if NaN
false
else
true
ok resu... | ({
a: {
b: {
d: true
}
},
c: false,
result: a ? b ? c ? false : d ? true : void 0 : void 0 : void 0
});
ok(result);
({
first: false ? false : {
second: false ? false : true
}
});
ok(first);
ok(second);
({
result: false ? false : 0/0 ? false : true
});
ok(result);
({
// If statem... | CoffeeScript | JavaScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_if.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_if.coffee | 1 | 44 |
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_if.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
a: {
b: {
d: true
}
},
c: false,
result: a ? b ? c ? false : d ? true : void 0 : void 0 : void 0
});
ok(result);
({
first: false ? false : {
second: false ? false : true
}
});
ok(first);
ok(second);
({
result: false ? false :... | a: b: d: true
c: false
result: if a
if b
if c then false else
if d
true
ok result
first: if false then false else second: if false then false else true
ok first
ok second
result: if false
false
else if NaN
false
else
true
ok result
# If statement with a comment-only clause.
result: i... | JavaScript | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_if.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_if.coffee | 1 | 44 |
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_if.coffee:1:completion | completion | a: b: d: true
c: false
result: if a
if b
if c then false else
if d
true
ok result
first: if false then false else second: if false then false else true
ok first
ok second
result: if false
false
else if NaN
false | else
true
ok result
# If statement with a comment-only clause.
result: if false
# comment
else
27
ok result is 27
# Testing unless.
result: unless true
10
else
11
ok result is 11 | CoffeeScript | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_if.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_if.coffee | 1 | 44 |
rs/pushd:lib/eventpublisher.coffee:1:raw_corpus | raw_corpus | events = require 'events'
Payload = require('./payload').Payload
logger = require 'winston'
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
... | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 9dc56de9da2a64903cad510d22d4d0e078a8ba0a | 1,157 | https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/eventpublisher.coffee | 1 | 50 | ||
rs/pushd:lib/eventpublisher.coffee:1:completion | completion | events = require 'events'
Payload = require('./payload').Payload
logger = require 'winston'
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
... | try
# Do not compile templates before to know there's some subscribers for the event
# and do not start serving subscribers if payload won't compile
payload.compile()
catch e
logger.error "Invalid payload, template doesn't compile"
... | CoffeeScript | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 9dc56de9da2a64903cad510d22d4d0e078a8ba0a | 1,157 | https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/eventpublisher.coffee | 1 | 50 |
rs/pushd:lib/eventpublisher.coffee:2:raw_corpus | raw_corpus | , (totalSubscribers) =>
# finished
logger.verbose "Pushed to #{totalSubscribers} subscribers"
for proto, count of protoCounts
logger.verbose "#{count} #{proto} subscribers"
if totalSubscribers > 0
# update some even... | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 9dc56de9da2a64903cad510d22d4d0e078a8ba0a | 1,157 | https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/eventpublisher.coffee | 51 | 66 | ||
rs/pushd:lib/eventpublisher.coffee:2:completion | completion | , (totalSubscribers) =>
# finished
logger.verbose "Pushed to #{totalSubscribers} subscribers"
for proto, count of protoCounts
logger.verbose "#{count} #{proto} subscribers"
if totalSubscribers > 0
# update some even... | event.log =>
cb(totalSubscribers) if cb
else
# if there is no subscriber, cleanup the event
event.delete =>
cb(0) if cb
exports.EventPublisher = EventPublisher | CoffeeScript | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 9dc56de9da2a64903cad510d22d4d0e078a8ba0a | 1,157 | https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/lib/eventpublisher.coffee | 51 | 66 |
rs/pushd:lib/eventpublisher.coffee:1:raw_corpus | raw_corpus | events = require 'events'
Payload = require('./payload').Payload
logger = require 'winston'
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
... | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 394c3c913fa3b01dd539410e44ade84910d911eb | 1,157 | https://github.com/rs/pushd/blob/394c3c913fa3b01dd539410e44ade84910d911eb/lib/eventpublisher.coffee | 1 | 50 | ||
rs/pushd:lib/eventpublisher.coffee:1:completion | completion | events = require 'events'
Payload = require('./payload').Payload
logger = require 'winston'
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
... | try
# Do not compile templates before to know there's some subscribers for the event
# and do not start serving subscribers if payload won't compile
payload.compile()
catch e
logger.error "Invalid payload, template doesn't compile"
... | CoffeeScript | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 394c3c913fa3b01dd539410e44ade84910d911eb | 1,157 | https://github.com/rs/pushd/blob/394c3c913fa3b01dd539410e44ade84910d911eb/lib/eventpublisher.coffee | 1 | 50 |
rs/pushd:lib/eventpublisher.coffee:2:raw_corpus | raw_corpus | # finished
logger.verbose "Pushed to #{totalSubscribers} subscribers"
for proto, count of protoCounts
logger.verbose "#{count} #{proto} subscribers"
if totalSubscribers > 0
# update some event' stats
event.log =... | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 394c3c913fa3b01dd539410e44ade84910d911eb | 1,157 | https://github.com/rs/pushd/blob/394c3c913fa3b01dd539410e44ade84910d911eb/lib/eventpublisher.coffee | 51 | 65 | ||
rs/pushd:lib/eventpublisher.coffee:2:completion | completion | # finished
logger.verbose "Pushed to #{totalSubscribers} subscribers"
for proto, count of protoCounts
logger.verbose "#{count} #{proto} subscribers"
if totalSubscribers > 0
# update some event' stats | event.log =>
cb(totalSubscribers) if cb
else
# if there is no subscriber, cleanup the event
event.delete =>
cb(0) if cb
exports.EventPublisher = EventPublisher | CoffeeScript | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 394c3c913fa3b01dd539410e44ade84910d911eb | 1,157 | https://github.com/rs/pushd/blob/394c3c913fa3b01dd539410e44ade84910d911eb/lib/eventpublisher.coffee | 51 | 65 |
rs/pushd:lib/eventpublisher.coffee:1:raw_corpus | raw_corpus | events = require 'events'
Payload = require('./payload').Payload
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
# Invalid payload (e... | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/lib/eventpublisher.coffee | 1 | 46 | ||
rs/pushd:lib/eventpublisher.coffee:1:completion | completion | events = require 'events'
Payload = require('./payload').Payload
class EventPublisher extends events.EventEmitter
constructor: (@pushServices) ->
publish: (event, data, cb) ->
try
payload = new Payload(data)
payload.event = event
catch e
# Invalid payload (e... | # Do not compile templates before to know there's some subscribers for the event
# and do not start serving subscribers if payload won't compile
payload.compile()
catch e
# Invalid payload (templates doesn't compile)
cb(-1) if cb
... | CoffeeScript | CoffeeScript | rs/pushd | lib/eventpublisher.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/lib/eventpublisher.coffee | 1 | 46 |
xhan/qqbot:tests/main.coffee:8:raw_corpus | raw_corpus | after_logined = ->
psessionid = api.defaults 'psessionid'
client_id = api.defaults 'clientid'
ptwebqq = api.defaults 'ptwebqq'
uin = api.defaults 'uin'
vfwebqq = api.defaults 'vfwebqq'
api.long_poll client_id , psessionid , (ret)->
log ret
api.get_friend_list uin, p... | CoffeeScript | xhan/qqbot | tests/main.coffee | MIT | ac7a9bd1a1d3e8c3beae93a884de07392ea38afd | 1,435 | https://github.com/xhan/qqbot/blob/ac7a9bd1a1d3e8c3beae93a884de07392ea38afd/tests/main.coffee | 97 | 117 | ||
xhan/qqbot:tests/main.coffee:8:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
after_logined = ->
psessionid = api.defaults 'psessionid'
client_id = api.defaults 'clientid'
ptwebqq = api.defaults 'ptwebqq'
uin = api.defaults 'uin'
vfwebqq = api.defaults 'vfwebqq'
api.long_poll client_id , psessionid ... | var after_logined;
after_logined = function() {
var client_id, psessionid, ptwebqq, uin, vfwebqq;
psessionid = api.defaults('psessionid');
client_id = api.defaults('clientid');
ptwebqq = api.defaults('ptwebqq');
uin = api.defaults('uin');
vfwebqq = api.defaults('vfwebqq');
api.long_poll(client_id, psessi... | CoffeeScript | JavaScript | xhan/qqbot | tests/main.coffee | MIT | ac7a9bd1a1d3e8c3beae93a884de07392ea38afd | 1,435 | https://github.com/xhan/qqbot/blob/ac7a9bd1a1d3e8c3beae93a884de07392ea38afd/tests/main.coffee | 97 | 117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.