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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
iostreamer-X/Awkward:terminal/core.coffee:1:raw_corpus | raw_corpus | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
displayFormatted = require './format'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (com... | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62 | 458 | https://github.com/iostreamer-X/Awkward/blob/9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62/terminal/core.coffee | 1 | 37 | ||
iostreamer-X/Awkward:terminal/core.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
displayFormatted = require './format'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout... | var child_process, displayFormatted, exec, getStructured, mode_js, mode_shell, run;
child_process = require('child_process');
exec = child_process.exec;
getStructured = require('./structure');
displayFormatted = require('./format');
run = function(command, cb) {
var cp;
cp = exec(command, function(e, r, b) {
... | CoffeeScript | JavaScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62 | 458 | https://github.com/iostreamer-X/Awkward/blob/9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62/terminal/core.coffee | 1 | 37 |
iostreamer-X/Awkward:terminal/core.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var child_process, displayFormatted, exec, getStructured, mode_js, mode_shell, run;
child_process = require('child_process');
exec = child_process.exec;
getStructured = require('./structure');
displayFormatted = require('./format');
run = function(command, cb)... | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
displayFormatted = require './format'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (com... | JavaScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62 | 458 | https://github.com/iostreamer-X/Awkward/blob/9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62/terminal/core.coffee | 1 | 37 |
iostreamer-X/Awkward:terminal/core.coffee:1:completion | completion | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
displayFormatted = require './format'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (com... | else
awkward.log ''
awkward.log data
mode_js = (command, fn) ->
run command, (data)->
structured_op = getStructured data
fn = fn.replace 'console.log', 'awkward.log'
try
eval 'structured_op.'+fn
catch error
awkward.log chalk.red 'Invalid syntax!'
module.exports = (command) -... | CoffeeScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62 | 458 | https://github.com/iostreamer-X/Awkward/blob/9b60d1195e2bc82ffd563bbc022e7cc8d7e9bd62/terminal/core.coffee | 1 | 37 |
iostreamer-X/Awkward:terminal/core.coffee:1:raw_corpus | raw_corpus | child_process = require 'child_process'
exec = child_process.exec
displayFormatted = require './format'
execute = require './execute'
run = (command,cbe,cb)->
cp = exec(command, (e,r,b)->
if e
cbe e
)
cp.stdout.on('data', (data)->
cb data
)
module.exports = (command) ->
run command, (e)->
... | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 915ddc16866eb394c4065bdc657cd521759ce98f | 458 | https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/core.coffee | 1 | 23 | ||
iostreamer-X/Awkward:terminal/core.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
child_process = require 'child_process'
exec = child_process.exec
displayFormatted = require './format'
execute = require './execute'
run = (command,cbe,cb)->
cp = exec(command, (e,r,b)->
if e
cbe e
)
cp.stdout.on('data', (data)->
cb data
... | var child_process, displayFormatted, exec, execute, run;
child_process = require('child_process');
exec = child_process.exec;
displayFormatted = require('./format');
execute = require('./execute');
run = function(command, cbe, cb) {
var cp;
cp = exec(command, function(e, r, b) {
if (e) {
return cbe(e... | CoffeeScript | JavaScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 915ddc16866eb394c4065bdc657cd521759ce98f | 458 | https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/core.coffee | 1 | 23 |
iostreamer-X/Awkward:terminal/core.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var child_process, displayFormatted, exec, execute, run;
child_process = require('child_process');
exec = child_process.exec;
displayFormatted = require('./format');
execute = require('./execute');
run = function(command, cbe, cb) {
var cp;
cp = exec(comma... | child_process = require 'child_process'
exec = child_process.exec
displayFormatted = require './format'
execute = require './execute'
run = (command,cbe,cb)->
cp = exec(command, (e,r,b)->
if e
cbe e
)
cp.stdout.on('data', (data)->
cb data
)
module.exports = (command) ->
run command, (e)->
... | JavaScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 915ddc16866eb394c4065bdc657cd521759ce98f | 458 | https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/core.coffee | 1 | 23 |
iostreamer-X/Awkward:terminal/core.coffee:1:completion | completion | child_process = require 'child_process'
exec = child_process.exec
displayFormatted = require './format'
execute = require './execute'
run = (command,cbe,cb)->
cp = exec(command, (e,r,b)->
if e
cbe e
)
cp.stdout.on('data', (data)-> | cb data
)
module.exports = (command) ->
run command, (e)->
execute command,e
,(data)->
if command.startsWith 'ls'
displayFormatted data
else
awkward.log ''
awkward.log data | CoffeeScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 915ddc16866eb394c4065bdc657cd521759ce98f | 458 | https://github.com/iostreamer-X/Awkward/blob/915ddc16866eb394c4065bdc657cd521759ce98f/terminal/core.coffee | 1 | 23 |
iostreamer-X/Awkward:terminal/core.coffee:1:raw_corpus | raw_corpus | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (command)->
run command, (data)->
a... | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 6baaa7480821632dc13b0307d577754af45128b1 | 458 | https://github.com/iostreamer-X/Awkward/blob/6baaa7480821632dc13b0307d577754af45128b1/terminal/core.coffee | 1 | 31 | ||
iostreamer-X/Awkward:terminal/core.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
... | var child_process, exec, getStructured, mode_js, mode_shell, run;
child_process = require('child_process');
exec = child_process.exec;
getStructured = require('./structure');
run = function(command, cb) {
var cp;
cp = exec(command, function(e, r, b) {
if (e) {
awkward.log(chalk.red(e));
}
});
... | CoffeeScript | JavaScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 6baaa7480821632dc13b0307d577754af45128b1 | 458 | https://github.com/iostreamer-X/Awkward/blob/6baaa7480821632dc13b0307d577754af45128b1/terminal/core.coffee | 1 | 31 |
iostreamer-X/Awkward:terminal/core.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var child_process, exec, getStructured, mode_js, mode_shell, run;
child_process = require('child_process');
exec = child_process.exec;
getStructured = require('./structure');
run = function(command, cb) {
var cp;
cp = exec(command, function(e, r, b) {
i... | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (command)->
run command, (data)->
a... | JavaScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 6baaa7480821632dc13b0307d577754af45128b1 | 458 | https://github.com/iostreamer-X/Awkward/blob/6baaa7480821632dc13b0307d577754af45128b1/terminal/core.coffee | 1 | 31 |
iostreamer-X/Awkward:terminal/core.coffee:1:completion | completion | child_process = require 'child_process'
exec = child_process.exec
getStructured = require './structure'
run = (command,cb)->
cp = exec(command, (e,r,b)->
if e
awkward.log chalk.red e
return
)
cp.stdout.on('data', (data)->
cb data
)
mode_shell = (command)-> | run command, (data)->
awkward.log ''
awkward.log data
mode_js = (command, fn) ->
run command, (data)->
structured_op = getStructured data
fn = fn.replace 'console.log', 'awkward.log'
eval 'structured_op.'+fn
module.exports = (command) ->
if command.indexOf('().') > -1
mode_js command.spli... | CoffeeScript | CoffeeScript | iostreamer-X/Awkward | terminal/core.coffee | MIT | 6baaa7480821632dc13b0307d577754af45128b1 | 458 | https://github.com/iostreamer-X/Awkward/blob/6baaa7480821632dc13b0307d577754af45128b1/terminal/core.coffee | 1 | 31 |
jianliaoim/talk-os:talk-api2x/test/servers/tps.coffee:1:raw_corpus | raw_corpus | # Fake tps server
express = require 'express'
# TPS
module.exports = app = express()
app.post '/channels/subscribe', (req, res) ->
req.body.should.have.properties 'channelKey', 'userId'
res.json channelId: 'xxx'
app.post '/channels/unsubscribe', (req, res) -> res.json ok: 1
app.post '/messages/broadcast', (req,... | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/tps.coffee | 1 | 15 | ||
jianliaoim/talk-os:talk-api2x/test/servers/tps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Fake tps server
express = require 'express'
# TPS
module.exports = app = express()
app.post '/channels/subscribe', (req, res) ->
req.body.should.have.properties 'channelKey', 'userId'
res.json channelId: 'xxx'
app.post '/channels/unsubscribe', (req, res)... | // Fake tps server
var app, express;
express = require('express');
// TPS
module.exports = app = express();
app.post('/channels/subscribe', function(req, res) {
req.body.should.have.properties('channelKey', 'userId');
return res.json({
channelId: 'xxx'
});
});
app.post('/channels/unsubscribe', function(re... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/test/servers/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/tps.coffee | 1 | 15 |
jianliaoim/talk-os:talk-api2x/test/servers/tps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Fake tps server
var app, express;
express = require('express');
// TPS
module.exports = app = express();
app.post('/channels/subscribe', function(req, res) {
req.body.should.have.properties('channelKey', 'userId');
return res.json({
channelId: 'xxx'
... | # Fake tps server
express = require 'express'
# TPS
module.exports = app = express()
app.post '/channels/subscribe', (req, res) ->
req.body.should.have.properties 'channelKey', 'userId'
res.json channelId: 'xxx'
app.post '/channels/unsubscribe', (req, res) -> res.json ok: 1
app.post '/messages/broadcast', (req,... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/tps.coffee | 1 | 15 |
jianliaoim/talk-os:talk-api2x/test/servers/tps.coffee:1:completion | completion | # Fake tps server
express = require 'express'
# TPS
module.exports = app = express()
app.post '/channels/subscribe', (req, res) -> | req.body.should.have.properties 'channelKey', 'userId'
res.json channelId: 'xxx'
app.post '/channels/unsubscribe', (req, res) -> res.json ok: 1
app.post '/messages/broadcast', (req, res) ->
req.body.should.have.properties 'channelKey', 'payload', 'appKey', 'appSecret'
res.json _id: '1' | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/tps.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/tps.coffee | 1 | 15 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:1:raw_corpus | raw_corpus | fs = require 'fs'
del = require 'del'
gulp = require 'gulp'
path = require 'path'
gutil = require 'gulp-util'
config = require 'config'
sequence = require 'run-sequence'
webpack = require 'webpack'
sequence = require 'run-sequence'
WebpackDevServer = require 'webpack-dev-server'
gulp.task 'del', (cb) ->
del 'build',... | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-account/gulpfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
fs = require 'fs'
del = require 'del'
gulp = require 'gulp'
path = require 'path'
gutil = require 'gulp-util'
config = require 'config'
sequence = require 'run-sequence'
webpack = require 'webpack'
sequence = require 'run-sequence'
WebpackDevServer = require 'web... | var WebpackDevServer, config, del, fs, gulp, gutil, path, sequence, webpack;
fs = require('fs');
del = require('del');
gulp = require('gulp');
path = require('path');
gutil = require('gulp-util');
config = require('config');
sequence = require('run-sequence');
webpack = require('webpack');
sequence = require('... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 1 | 50 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var WebpackDevServer, config, del, fs, gulp, gutil, path, sequence, webpack;
fs = require('fs');
del = require('del');
gulp = require('gulp');
path = require('path');
gutil = require('gulp-util');
config = require('config');
sequence = require('run-sequence'... | fs = require 'fs'
del = require 'del'
gulp = require 'gulp'
path = require 'path'
gutil = require 'gulp-util'
config = require 'config'
sequence = require 'run-sequence'
webpack = require 'webpack'
sequence = require 'run-sequence'
WebpackDevServer = require 'webpack-dev-server'
gulp.task 'del', (cb) ->
del 'build',... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 1 | 50 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:1:completion | completion | fs = require 'fs'
del = require 'del'
gulp = require 'gulp'
path = require 'path'
gutil = require 'gulp-util'
config = require 'config'
sequence = require 'run-sequence'
webpack = require 'webpack'
sequence = require 'run-sequence'
WebpackDevServer = require 'webpack-dev-server'
gulp.task 'del', (cb) ->
del 'build',... | .pipe filelog('Uploading to Upyun')
.pipe upyunDest('dn-st/talk-account', options)
.on 'error', gutil.log
# webpack
gulp.task 'webpack-dev', (cb) ->
webpackDev = require './client/packing/webpack-dev'
webpackServer =
publicPath: '/'
hot: true
stats:
colors: true
info =
__dirname: __dir... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 1 | 50 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:2:raw_corpus | raw_corpus | gulp.task 'webpack-build', (cb) ->
webpackBuild = require './client/packing/webpack-build'
info =
__dirname: __dirname
isMinified: config.isMinified
useCDN: config.useCDN
cdn: config.cdn
env: config.env
webpack (webpackBuild info), (err, stats) ->
if err
gutil.log gutil.PluginError("... | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 51 | 76 | ||
jianliaoim/talk-os:talk-account/gulpfile.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
gulp.task 'webpack-build', (cb) ->
webpackBuild = require './client/packing/webpack-build'
info =
__dirname: __dirname
isMinified: config.isMinified
useCDN: config.useCDN
cdn: config.cdn
env: config.env
webpack (webpackBuild info), (err,... | gulp.task('webpack-build', function(cb) {
var info, webpackBuild;
webpackBuild = require('./client/packing/webpack-build');
info = {
__dirname: __dirname,
isMinified: config.isMinified,
useCDN: config.useCDN,
cdn: config.cdn,
env: config.env
};
return webpack(webpackBuild(info), function(e... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 51 | 76 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
gulp.task('webpack-build', function(cb) {
var info, webpackBuild;
webpackBuild = require('./client/packing/webpack-build');
info = {
__dirname: __dirname,
isMinified: config.isMinified,
useCDN: config.useCDN,
cdn: config.cdn,
env: config.e... | gulp.task 'webpack-build', (cb) ->
webpackBuild = require './client/packing/webpack-build'
info =
__dirname: __dirname
isMinified: config.isMinified
useCDN: config.useCDN
cdn: config.cdn
env: config.env
webpack (webpackBuild info), (err, stats) ->
if err
gutil.log gutil.PluginError("... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 51 | 76 |
jianliaoim/talk-os:talk-account/gulpfile.coffee:2:completion | completion | gulp.task 'webpack-build', (cb) ->
webpackBuild = require './client/packing/webpack-build'
info =
__dirname: __dirname
isMinified: config.isMinified
useCDN: config.useCDN
cdn: config.cdn
env: config.env
webpack (webpackBuild info), (err, stats) ->
if err
gutil.log gutil.PluginError("... | gutil.log '[webpack]', stats.toString()
fileContent = JSON.stringify stats.toJson().assetsByChunkName
fs.writeFileSync 'client/packing/assets.json', fileContent
cb()
# aliases
gulp.task 'dev', (cb) ->
sequence 'webpack-dev', cb
gulp.task 'build', (cb) ->
gutil.log gutil.colors.yellow("Running Gulp in... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-account/gulpfile.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-account/gulpfile.coffee | 51 | 76 |
Glavin001/atom-beautify:src/languages/latex.coffee:2:raw_corpus | raw_corpus | description: "If `latexindent` should look for commands that split braces across lines"
always_look_for_split_brackets:
type: 'boolean'
default: false
description: "If `latexindent` should look for commands that split brackets across lines"
remove_trailing_whitespace:
type: 'boolean'
... | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/languages/latex.coffee | 51 | 64 | ||
Glavin001/atom-beautify:src/languages/latex.coffee:2:completion | completion | description: "If `latexindent` should look for commands that split braces across lines"
always_look_for_split_brackets:
type: 'boolean'
default: false
description: "If `latexindent` should look for commands that split brackets across lines"
remove_trailing_whitespace:
type: 'boolean' | default: false
description: "Remove trailing whitespace"
align_columns_in_environments:
type: 'array'
default:["tabular", "matrix", "bmatrix", "pmatrix"]
description: "Aligns columns by the alignment tabs for environments specified"
} | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/languages/latex.coffee | 51 | 64 |
Glavin001/atom-beautify:src/languages/latex.coffee:2:raw_corpus | raw_corpus | description: "If `latexindent` should look for commands that split braces across lines"
always_look_for_split_brackets:
type: 'boolean'
default: false
description: "If `latexindent` should look for commands that split brackets across lines"
remove_trailing_whitespace:
type: 'boolean'
... | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 73134c73b0b41ff68a16d2824a8df4e37468c264 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/73134c73b0b41ff68a16d2824a8df4e37468c264/src/languages/latex.coffee | 51 | 64 | ||
Glavin001/atom-beautify:src/languages/latex.coffee:2:completion | completion | description: "If `latexindent` should look for commands that split braces across lines"
always_look_for_split_brackets:
type: 'boolean'
default: false
description: "If `latexindent` should look for commands that split brackets across lines"
remove_trailing_whitespace:
type: 'boolean' | default: false
description: "Remove trailing whitespace"
align_columns_in_environments:
type: 'array'
default:["tabular", "matrix", "bmatrix", "pmatrix"]
decription: "Aligns columns by the alignment tabs for environments specified"
} | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 73134c73b0b41ff68a16d2824a8df4e37468c264 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/73134c73b0b41ff68a16d2824a8df4e37468c264/src/languages/latex.coffee | 51 | 64 |
Glavin001/atom-beautify:src/languages/latex.coffee:1:raw_corpus | raw_corpus | module.exports = {
name: "LaTeX"
namespace: "latex"
scope: ['source.tex']
###
Supported Grammars
###
grammars: [
"LaTeX"
]
###
Supported extensions
###
extensions: [
"tex"
]
defaultBeautifier: "Latex Beautify"
###
###
options:
indent_char:
type: 'string'
d... | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f | 1,503 | https://github.com/Glavin001/atom-beautify/blob/147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f/src/languages/latex.coffee | 1 | 50 | ||
Glavin001/atom-beautify:src/languages/latex.coffee:1:completion | completion | module.exports = {
name: "LaTeX"
namespace: "latex"
scope: ['source.tex']
###
Supported Grammars
###
grammars: [
"LaTeX"
]
###
Supported extensions
###
extensions: [
"tex"
]
defaultBeautifier: "Latex Beautify"
###
### | options:
indent_char:
type: 'string'
default: null
description: "Indentation character"
indent_with_tabs:
type: 'boolean'
default: null
description: "Indentation uses tabs, overrides `Indent Size` and `Indent Char`"
indent_preamble:
type: 'boolean'
default: fa... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f | 1,503 | https://github.com/Glavin001/atom-beautify/blob/147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f/src/languages/latex.coffee | 1 | 50 |
Glavin001/atom-beautify:src/languages/latex.coffee:2:raw_corpus | raw_corpus | align_columns_in_environments:
type: 'array'
default:["tabular", "matrix", "bmatrix", "pmatrix"]
decription: "Aligns columns by the alignment tabs for environments specified"
} | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f | 1,503 | https://github.com/Glavin001/atom-beautify/blob/147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f/src/languages/latex.coffee | 51 | 55 | ||
Glavin001/atom-beautify:src/languages/latex.coffee:2:completion | completion | align_columns_in_environments:
type: 'array' | default:["tabular", "matrix", "bmatrix", "pmatrix"]
decription: "Aligns columns by the alignment tabs for environments specified"
} | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/languages/latex.coffee | MIT | 147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f | 1,503 | https://github.com/Glavin001/atom-beautify/blob/147f97d4c7b8cee3c3f9b80cd9087c0f2e51cb9f/src/languages/latex.coffee | 51 | 55 |
jianliaoim/talk-os:talk-api2x/server/util/common.coffee:1:raw_corpus | raw_corpus | uuid = require 'uuid'
module.exports = commonUtil =
getIdByDate: (date, postfix = '0000000000000000') ->
date = date.toDate() if date.toDate?
date = new Date(date) unless toString.call(date) is '[object Date]'
head = Math.floor(date.getTime() / 1000).toString('16')
head + postfix
genInviteCode: ->
... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/util/common.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/util/common.coffee | 1 | 13 | ||
jianliaoim/talk-os:talk-api2x/server/util/common.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
uuid = require 'uuid'
module.exports = commonUtil =
getIdByDate: (date, postfix = '0000000000000000') ->
date = date.toDate() if date.toDate?
date = new Date(date) unless toString.call(date) is '[object Date]'
head = Math.floor(date.getTime() / 100... | var commonUtil, uuid;
uuid = require('uuid');
module.exports = commonUtil = {
getIdByDate: function(date, postfix = '0000000000000000') {
var head;
if (date.toDate != null) {
date = date.toDate();
}
if (toString.call(date) !== '[object Date]') {
date = new Date(date);
}
head = Ma... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/util/common.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/util/common.coffee | 1 | 13 |
jianliaoim/talk-os:talk-api2x/server/util/common.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var commonUtil, uuid;
uuid = require('uuid');
module.exports = commonUtil = {
getIdByDate: function(date, postfix = '0000000000000000') {
var head;
if (date.toDate != null) {
date = date.toDate();
}
if (toString.call(date) !== '[object Dat... | uuid = require 'uuid'
module.exports = commonUtil =
getIdByDate: (date, postfix = '0000000000000000') ->
date = date.toDate() if date.toDate?
date = new Date(date) unless toString.call(date) is '[object Date]'
head = Math.floor(date.getTime() / 1000).toString('16')
head + postfix
genInviteCode: ->
... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/util/common.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/util/common.coffee | 1 | 13 |
jianliaoim/talk-os:talk-api2x/server/util/common.coffee:1:completion | completion | uuid = require 'uuid'
module.exports = commonUtil =
getIdByDate: (date, postfix = '0000000000000000') ->
date = date.toDate() if date.toDate?
date = new Date(date) unless toString.call(date) is '[object Date]' | head = Math.floor(date.getTime() / 1000).toString('16')
head + postfix
genInviteCode: ->
uuid.v1().split('-')[0] + (Math.random()*10**18).toString(36)[...2] # length 10 string
getCurrentMonth: ->
date = new Date
new Date date.getFullYear(), date.getMonth() | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/util/common.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/util/common.coffee | 1 | 13 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:raw_corpus | raw_corpus | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/color-search-spec.coffee | 1 | 45 | ||
abe33/atom-pigments:spec/color-search-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'p... | var ColorSearch;
require('./helpers/matchers');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames', ['**/*.styl', '**/*.less']);
atom.config.se... | CoffeeScript | JavaScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ColorSearch;
require('./helpers/matchers');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.source... | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | JavaScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:completion | completion | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | waitsForPromise -> project.initialize()
describe 'when created with basic options', ->
beforeEach ->
search = project.findAllColors()
it 'dispatches a did-complete-search when finalizing its search', ->
spy = jasmine.createSpy('did-complete-search')
search.onDidCompleteSearch(spy)
se... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:raw_corpus | raw_corpus | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 734b870e50dfdc3f946a1264889bca8bd2fdc528 | 518 | https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/color-search-spec.coffee | 1 | 45 | ||
abe33/atom-pigments:spec/color-search-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'p... | var ColorSearch;
require('./helpers/matchers');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames', ['**/*.styl', '**/*.less']);
atom.config.se... | CoffeeScript | JavaScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 734b870e50dfdc3f946a1264889bca8bd2fdc528 | 518 | https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ColorSearch;
require('./helpers/matchers');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.source... | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | JavaScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 734b870e50dfdc3f946a1264889bca8bd2fdc528 | 518 | https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:completion | completion | require './helpers/matchers'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
... | waitsForPromise -> project.initialize()
describe 'when created with basic options', ->
beforeEach ->
search = project.findAllColors()
it 'dispatches a did-complete-search when finalizing its search', ->
spy = jasmine.createSpy('did-complete-search')
search.onDidCompleteSearch(spy)
se... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 734b870e50dfdc3f946a1264889bca8bd2fdc528 | 518 | https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:raw_corpus | raw_corpus | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 131f8a5d78c0576294186182916ce2bfcdb56b44 | 518 | https://github.com/abe33/atom-pigments/blob/131f8a5d78c0576294186182916ce2bfcdb56b44/spec/color-search-spec.coffee | 1 | 45 | ||
abe33/atom-pigments:spec/color-search-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigmen... | var ColorSearch;
require('./spec-helper');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames', ['**/*.styl', '**/*.less']);
atom.config.set('pi... | CoffeeScript | JavaScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 131f8a5d78c0576294186182916ce2bfcdb56b44 | 518 | https://github.com/abe33/atom-pigments/blob/131f8a5d78c0576294186182916ce2bfcdb56b44/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ColorSearch;
require('./spec-helper');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames... | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | JavaScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 131f8a5d78c0576294186182916ce2bfcdb56b44 | 518 | https://github.com/abe33/atom-pigments/blob/131f8a5d78c0576294186182916ce2bfcdb56b44/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:completion | completion | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | waitsForPromise -> project.initialize()
describe 'when created with basic options', ->
beforeEach ->
search = project.findAllColors()
it 'dispatches a did-complete-search when finalizing its search', ->
spy = jasmine.createSpy('did-complete-search')
search.onDidCompleteSearch(spy)
se... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 131f8a5d78c0576294186182916ce2bfcdb56b44 | 518 | https://github.com/abe33/atom-pigments/blob/131f8a5d78c0576294186182916ce2bfcdb56b44/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:raw_corpus | raw_corpus | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/color-search-spec.coffee | 1 | 45 | ||
abe33/atom-pigments:spec/color-search-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigmen... | var ColorSearch;
require('./spec-helper');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames', ['**/*.styl', '**/*.less']);
atom.config.set('pi... | CoffeeScript | JavaScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ColorSearch;
require('./spec-helper');
ColorSearch = require('../lib/color-search');
describe('ColorSearch', function() {
var pigments, project, search;
[search, pigments, project] = [];
beforeEach(function() {
atom.config.set('pigments.sourceNames... | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | JavaScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/color-search-spec.coffee | 1 | 45 |
abe33/atom-pigments:spec/color-search-spec.coffee:1:completion | completion | require './spec-helper'
ColorSearch = require '../lib/color-search'
describe 'ColorSearch', ->
[search, pigments, project] = []
beforeEach ->
atom.config.set 'pigments.sourceNames', [
'**/*.styl'
'**/*.less'
]
atom.config.set 'pigments.extendedSearchNames', [
'**/*.css'
]
ato... | waitsForPromise -> project.initialize()
describe 'when created with basic options', ->
beforeEach ->
search = project.findAllColors()
it 'dispatches a did-complete-search when finalizing its search', ->
spy = jasmine.createSpy('did-complete-search')
search.onDidCompleteSearch(spy)
se... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/color-search-spec.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/color-search-spec.coffee | 1 | 45 |
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:1:raw_corpus | raw_corpus | should = require 'should'
async = require 'async'
app = require '../app'
{clear, request} = app
sweepGuestJob = require '../../server/jobs/sweep-guest'
prepare = (done) ->
async.auto
prepare: app.prepare
createGuestUser: app.createGuestUser
, done
describe 'Job#SweepGuest', ->
before (done) ->
asyn... | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
should = require 'should'
async = require 'async'
app = require '../app'
{clear, request} = app
sweepGuestJob = require '../../server/jobs/sweep-guest'
prepare = (done) ->
async.auto
prepare: app.prepare
createGuestUser: app.createGuestUser
, done
d... | var app, async, clear, prepare, request, should, sweepGuestJob;
should = require('should');
async = require('async');
app = require('../app');
({clear, request} = app);
sweepGuestJob = require('../../server/jobs/sweep-guest');
prepare = function(done) {
return async.auto({
prepare: app.prepare,
createGu... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 1 | 50 |
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var app, async, clear, prepare, request, should, sweepGuestJob;
should = require('should');
async = require('async');
app = require('../app');
({clear, request} = app);
sweepGuestJob = require('../../server/jobs/sweep-guest');
prepare = function(done) {
ret... | should = require 'should'
async = require 'async'
app = require '../app'
{clear, request} = app
sweepGuestJob = require '../../server/jobs/sweep-guest'
prepare = (done) ->
async.auto
prepare: app.prepare
createGuestUser: app.createGuestUser
, done
describe 'Job#SweepGuest', ->
before (done) ->
asyn... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 1 | 50 |
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:1:completion | completion | should = require 'should'
async = require 'async'
app = require '../app'
{clear, request} = app
sweepGuestJob = require '../../server/jobs/sweep-guest'
prepare = (done) ->
async.auto
prepare: app.prepare
createGuestUser: app.createGuestUser
, done
describe 'Job#SweepGuest', ->
before (done) ->
asyn... | , 1000
],
sendMessage: ['joinRoom', (callback) ->
options =
method: 'post'
url: "guest/messages"
body: JSON.stringify
_sessionUserId: app.guest1._id
body: 'HI'
_roomId: app.room1._id
request options, callback
]
, don... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 1 | 50 |
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:2:raw_corpus | raw_corpus | to.should.eql app.guest1.email
messages.length.should.eql 1 # Message HI
callback()
sweepGuest: (callback) ->
sweepGuestJob app.guest1._id
.nodeify callback
, done
after clear | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 51 | 59 | ||
jianliaoim/talk-os:talk-api2x/test/jobs/sweep-guest.coffee:2:completion | completion | to.should.eql app.guest1.email
messages.length.should.eql 1 # Message HI
callback()
sweepGuest: (callback) -> | sweepGuestJob app.guest1._id
.nodeify callback
, done
after clear | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/jobs/sweep-guest.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/jobs/sweep-guest.coffee | 51 | 59 |
jnordberg/wintersmith:src/index.coffee:1:raw_corpus | raw_corpus | {ContentTree, ContentPlugin} = require './core/content'
{Environment} = require './core/environment'
{TemplatePlugin} = require './core/templates'
module.exports = -> Environment.create.apply(null, arguments)
module.exports.Environment = Environment
module.exports.ContentPlugin = ContentPlugin
module.exports.ContentTr... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/index.coffee | 1 | 9 | ||
jnordberg/wintersmith:src/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
{ContentTree, ContentPlugin} = require './core/content'
{Environment} = require './core/environment'
{TemplatePlugin} = require './core/templates'
module.exports = -> Environment.create.apply(null, arguments)
module.exports.Environment = Environment
module.expor... | var ContentPlugin, ContentTree, Environment, TemplatePlugin;
({ContentTree, ContentPlugin} = require('./core/content'));
({Environment} = require('./core/environment'));
({TemplatePlugin} = require('./core/templates'));
module.exports = function() {
return Environment.create.apply(null, arguments);
};
module.exp... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/index.coffee | 1 | 9 |
jnordberg/wintersmith:src/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ContentPlugin, ContentTree, Environment, TemplatePlugin;
({ContentTree, ContentPlugin} = require('./core/content'));
({Environment} = require('./core/environment'));
({TemplatePlugin} = require('./core/templates'));
module.exports = function() {
return En... | {ContentTree, ContentPlugin} = require './core/content'
{Environment} = require './core/environment'
{TemplatePlugin} = require './core/templates'
module.exports = -> Environment.create.apply(null, arguments)
module.exports.Environment = Environment
module.exports.ContentPlugin = ContentPlugin
module.exports.ContentTr... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/index.coffee | 1 | 9 |
jnordberg/wintersmith:src/index.coffee:1:completion | completion | {ContentTree, ContentPlugin} = require './core/content'
{Environment} = require './core/environment'
{TemplatePlugin} = require './core/templates' | module.exports = -> Environment.create.apply(null, arguments)
module.exports.Environment = Environment
module.exports.ContentPlugin = ContentPlugin
module.exports.ContentTree = ContentTree
module.exports.TemplatePlugin = TemplatePlugin | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/index.coffee | 1 | 9 |
jnordberg/wintersmith:src/index.coffee:1:raw_corpus | raw_corpus | loadContents = (location, callback) ->
### traverse *location* and return a tree of contents ###
logger.verbose "loading contents in #{ location }"
ContentTree.fromDirectory location, callback | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 18 | 21 | ||
jnordberg/wintersmith:src/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
loadContents = (location, callback) ->
### traverse *location* and return a tree of contents ###
logger.verbose "loading contents in #{ location }"
ContentTree.fromDirectory location, callback
``` | var loadContents;
loadContents = function(location, callback) {
/* traverse *location* and return a tree of contents */
logger.verbose(`loading contents in ${location}`);
return ContentTree.fromDirectory(location, callback);
}; | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 18 | 21 |
jnordberg/wintersmith:src/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var loadContents;
loadContents = function(location, callback) {
/* traverse *location* and return a tree of contents */
logger.verbose(`loading contents in ${location}`);
return ContentTree.fromDirectory(location, callback);
};
``` | loadContents = (location, callback) ->
### traverse *location* and return a tree of contents ###
logger.verbose "loading contents in #{ location }"
ContentTree.fromDirectory location, callback | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 18 | 21 |
jnordberg/wintersmith:src/index.coffee:1:completion | completion | loadContents = (location, callback) ->
### traverse *location* and return a tree of contents ### | logger.verbose "loading contents in #{ location }"
ContentTree.fromDirectory location, callback | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 18 | 21 |
jnordberg/wintersmith:src/index.coffee:2:raw_corpus | raw_corpus | loadPlugins = (plugins, callback) ->
# load coffeescript so that we can load .coffee files as plugins directly
if plugins?.length then require 'coffee-script'
async.forEach plugins, (pluginPath, callback) ->
logger.verbose "loading plugin: #{ pluginPath }"
try
plugin = require pluginPath
catch e... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 23 | 39 | ||
jnordberg/wintersmith:src/index.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
loadPlugins = (plugins, callback) ->
# load coffeescript so that we can load .coffee files as plugins directly
if plugins?.length then require 'coffee-script'
async.forEach plugins, (pluginPath, callback) ->
logger.verbose "loading plugin: #{ pluginPath... | var defaultOptions, loadPlugins;
loadPlugins = function(plugins, callback) {
// load coffeescript so that we can load .coffee files as plugins directly
if (plugins != null ? plugins.length : void 0) {
require('coffee-script');
}
return async.forEach(plugins, function(pluginPath, callback) {
var error, ... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var defaultOptions, loadPlugins;
loadPlugins = function(plugins, callback) {
// load coffeescript so that we can load .coffee files as plugins directly
if (plugins != null ? plugins.length : void 0) {
require('coffee-script');
}
return async.forEach(pl... | loadPlugins = (plugins, callback) ->
# load coffeescript so that we can load .coffee files as plugins directly
if plugins?.length then require 'coffee-script'
async.forEach plugins, (pluginPath, callback) ->
logger.verbose "loading plugin: #{ pluginPath }"
try
plugin = require pluginPath
catch e... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:2:completion | completion | loadPlugins = (plugins, callback) ->
# load coffeescript so that we can load .coffee files as plugins directly
if plugins?.length then require 'coffee-script'
async.forEach plugins, (pluginPath, callback) ->
logger.verbose "loading plugin: #{ pluginPath }"
try
plugin = require pluginPath
catch e... | callback error
return
plugin module.exports, callback
, callback
defaultOptions =
plugins: []
ignore: []
locals: {} | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:3:raw_corpus | raw_corpus | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 41 | 86 | ||
jnordberg/wintersmith:src/index.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
tem... | module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 41 | 86 |
jnordberg/wintersmith:src/index.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to pl... | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 41 | 86 |
jnordberg/wintersmith:src/index.coffee:3:completion | completion | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | (callback) ->
async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
, callback
(result, callback) ->
renderer result.contents, result.templates, options.output, options.locals, callba... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | faa044b5a58a573e156a71f07b0e9c01f0b1d424 | 3,484 | https://github.com/jnordberg/wintersmith/blob/faa044b5a58a573e156a71f07b0e9c01f0b1d424/src/index.coffee | 41 | 86 |
jnordberg/wintersmith:src/index.coffee:3:raw_corpus | raw_corpus | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 67b7784a33a130d13892f5c8246dd5f7076a018e | 3,484 | https://github.com/jnordberg/wintersmith/blob/67b7784a33a130d13892f5c8246dd5f7076a018e/src/index.coffee | 41 | 87 | ||
jnordberg/wintersmith:src/index.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
tem... | module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | 67b7784a33a130d13892f5c8246dd5f7076a018e | 3,484 | https://github.com/jnordberg/wintersmith/blob/67b7784a33a130d13892f5c8246dd5f7076a018e/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to pl... | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 67b7784a33a130d13892f5c8246dd5f7076a018e | 3,484 | https://github.com/jnordberg/wintersmith/blob/67b7784a33a130d13892f5c8246dd5f7076a018e/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:3:completion | completion | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | (callback) ->
async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
, callback
(result, callback) ->
renderer result.contents, result.templates, options.output, options.locals, callba... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 67b7784a33a130d13892f5c8246dd5f7076a018e | 3,484 | https://github.com/jnordberg/wintersmith/blob/67b7784a33a130d13892f5c8246dd5f7076a018e/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:2:raw_corpus | raw_corpus | loadPlugins = (plugins, callback) ->
if plugins.length
require 'coffee-script' # so that we can load .coffee files as plugins directly
wintersmith = require './../'
async.forEach plugins, (plugin, callback) ->
logger.verbose "loading plugin: #{ plugin }"
try
module = require plugin
catch e... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 23 | 39 | ||
jnordberg/wintersmith:src/index.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
loadPlugins = (plugins, callback) ->
if plugins.length
require 'coffee-script' # so that we can load .coffee files as plugins directly
wintersmith = require './../'
async.forEach plugins, (plugin, callback) ->
logger.verbose "loading plugin: #{ pl... | var defaultOptions, loadPlugins;
loadPlugins = function(plugins, callback) {
var wintersmith;
if (plugins.length) {
require('coffee-script'); // so that we can load .coffee files as plugins directly
wintersmith = require('./../');
}
return async.forEach(plugins, function(plugin, callback) {
var err... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var defaultOptions, loadPlugins;
loadPlugins = function(plugins, callback) {
var wintersmith;
if (plugins.length) {
require('coffee-script'); // so that we can load .coffee files as plugins directly
wintersmith = require('./../');
}
return async.fo... | loadPlugins = (plugins, callback) ->
if plugins.length
require 'coffee-script' # so that we can load .coffee files as plugins directly
wintersmith = require './../'
async.forEach plugins, (plugin, callback) ->
logger.verbose "loading plugin: #{ plugin }"
try
module = require plugin
catch e... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:2:completion | completion | loadPlugins = (plugins, callback) ->
if plugins.length
require 'coffee-script' # so that we can load .coffee files as plugins directly
wintersmith = require './../'
async.forEach plugins, (plugin, callback) ->
logger.verbose "loading plugin: #{ plugin }"
try
module = require plugin | catch error
return callback error
module wintersmith, callback
, callback
defaultOptions =
plugins: []
ignore: []
locals: {} | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 23 | 39 |
jnordberg/wintersmith:src/index.coffee:3:raw_corpus | raw_corpus | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 41 | 87 | ||
jnordberg/wintersmith:src/index.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
tem... | module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to pl... | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:3:completion | completion | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
plugins: async.apply loadPlugins, options.plugins
, callback
(result, callback) ->
renderer result.contents, result.templates, ... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | e2f745043f336c01937861aeec903994d14f0e96 | 3,484 | https://github.com/jnordberg/wintersmith/blob/e2f745043f336c01937861aeec903994d14f0e96/src/index.coffee | 41 | 87 |
jnordberg/wintersmith:src/index.coffee:3:raw_corpus | raw_corpus | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | aa699304c286fef6ccfc9eb7973267c75135c283 | 3,484 | https://github.com/jnordberg/wintersmith/blob/aa699304c286fef6ccfc9eb7973267c75135c283/src/index.coffee | 41 | 84 | ||
jnordberg/wintersmith:src/index.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
tem... | module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | aa699304c286fef6ccfc9eb7973267c75135c283 | 3,484 | https://github.com/jnordberg/wintersmith/blob/aa699304c286fef6ccfc9eb7973267c75135c283/src/index.coffee | 41 | 84 |
jnordberg/wintersmith:src/index.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(options, callback) {
var contentOptions, key;
/* build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to pl... | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | aa699304c286fef6ccfc9eb7973267c75135c283 | 3,484 | https://github.com/jnordberg/wintersmith/blob/aa699304c286fef6ccfc9eb7973267c75135c283/src/index.coffee | 41 | 84 |
jnordberg/wintersmith:src/index.coffee:3:completion | completion | module.exports = (options, callback) ->
### build all contents and templates
*options*:
contents: path to contents
ignore: list of files/pattern in contents directory to ignore
plugins: array of paths to plugins to load
templates: path to templates
output: path to output ... | (callback) ->
async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
plugins: async.apply loadPlugins, options.plugins
, callback
(result, callback) ->
renderer result.contents... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | aa699304c286fef6ccfc9eb7973267c75135c283 | 3,484 | https://github.com/jnordberg/wintersmith/blob/aa699304c286fef6ccfc9eb7973267c75135c283/src/index.coffee | 41 | 84 |
jnordberg/wintersmith:src/index.coffee:1:raw_corpus | raw_corpus | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Pag... | var ContentPlugin, ContentTree, TemplatePlugin, async, defaultPlugins, loadContents, loadPlugins, loadTemplates, logger, registerContentPlugin, registerTemplatePlugin, renderer;
async = require('async');
({logger} = require('./common'));
({ContentTree, ContentPlugin, registerContentPlugin} = require('./content'));
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ContentPlugin, ContentTree, TemplatePlugin, async, defaultPlugins, loadContents, loadPlugins, loadTemplates, logger, registerContentPlugin, registerTemplatePlugin, renderer;
async = require('async');
({logger} = require('./common'));
({ContentTree, ContentPl... | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/index.coffee:1:completion | completion | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | wintersmith = require './../'
async.forEach plugins, (plugin, callback) ->
logger.verbose "loading plugin: #{ plugin }"
try
module = require plugin
catch error
return callback error
module wintersmith, callback
, callback
module.exports = (options, callback) ->
### build all contents ... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/index.coffee:2:raw_corpus | raw_corpus | # load templates & contents then render
async.waterfall [
(callback) ->
async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
plugins: async.apply loadPlugins, options.plugins
, c... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 51 | 75 | ||
jnordberg/wintersmith:src/index.coffee:2:completion | completion | # load templates & contents then render
async.waterfall [
(callback) ->
async.parallel
contents: async.apply ContentTree.fromDirectory, options.contents, contentOptions
templates: async.apply loadTemplates, options.templates
plugins: async.apply loadPlugins, options.plugins
, c... | # expose api
module.exports.renderer = renderer
module.exports.loadTemplates = loadTemplates
module.exports.loadContents= loadContents
module.exports.loadPlugins = loadPlugins
module.exports.ContentTree = ContentTree
module.exports.ContentPlugin = ContentPlugin
module.exports.TemplatePlugin = TemplatePlugin
module.expo... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 0edc0a15f19af4f90acc42a8f27ed1d0ec061817 | 3,484 | https://github.com/jnordberg/wintersmith/blob/0edc0a15f19af4f90acc42a8f27ed1d0ec061817/src/index.coffee | 51 | 75 |
jnordberg/wintersmith:src/index.coffee:1:raw_corpus | raw_corpus | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 476665eede9b63a11d935e8bcd4029dcb24ae6f4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/476665eede9b63a11d935e8bcd4029dcb24ae6f4/src/index.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Pag... | var ContentPlugin, ContentTree, TemplatePlugin, async, defaultPlugins, loadContents, loadTemplates, logger, registerContentPlugin, registerTemplatePlugin, renderer;
async = require('async');
({logger} = require('./common'));
({ContentTree, ContentPlugin, registerContentPlugin} = require('./content'));
({TemplatePlu... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/index.coffee | MIT | 476665eede9b63a11d935e8bcd4029dcb24ae6f4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/476665eede9b63a11d935e8bcd4029dcb24ae6f4/src/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ContentPlugin, ContentTree, TemplatePlugin, async, defaultPlugins, loadContents, loadTemplates, logger, registerContentPlugin, registerTemplatePlugin, renderer;
async = require('async');
({logger} = require('./common'));
({ContentTree, ContentPlugin, registe... | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 476665eede9b63a11d935e8bcd4029dcb24ae6f4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/476665eede9b63a11d935e8bcd4029dcb24ae6f4/src/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/index.coffee:1:completion | completion | async = require 'async'
{logger} = require './common'
{ContentTree, ContentPlugin, registerContentPlugin} = require './content'
{TemplatePlugin, loadTemplates, registerTemplatePlugin} = require './templates'
renderer = require './renderer'
defaultPlugins =
Page: require('./plugins/markdown-page')
MarkdownPage: req... | contents: path to contents
ignore: list of files/pattern in contents directory to ignore
templates: path to templates
output: path to output directory
locals: optional extra data to send to templates ###
logger.verbose 'running with options:', {options: options}
# options passed to... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/index.coffee | MIT | 476665eede9b63a11d935e8bcd4029dcb24ae6f4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/476665eede9b63a11d935e8bcd4029dcb24ae6f4/src/index.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.