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
jnordberg/wintersmith:src/plugins/pug.coffee:1:raw_corpus
raw_corpus
async = require 'async' fs = require 'fs' pug = require 'pug' path = require 'path' module.exports = (env, callback) -> class PugTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, Buffer.from @fn(locals) catch error callba...
CoffeeScript
jnordberg/wintersmith
src/plugins/pug.coffee
MIT
be757f5f7d72ddce462f67913c9cd7c578162018
3,484
https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/plugins/pug.coffee
1
33
jnordberg/wintersmith:src/plugins/pug.coffee:1:completion
completion
async = require 'async' fs = require 'fs' pug = require 'pug' path = require 'path' module.exports = (env, callback) -> class PugTemplate extends env.TemplatePlugin constructor: (@fn) -> render: (locals, callback) -> try callback null, Buffer.from @fn(locals) catch error callba...
PugTemplate.fromFile = (filepath, callback) -> async.waterfall [ (callback) -> fs.readFile filepath.full, callback (buffer, callback) => conf = env.config.pug or {} conf.filename = filepath.full try rv = pug.compile buffer.toString(), conf callback nul...
CoffeeScript
CoffeeScript
jnordberg/wintersmith
src/plugins/pug.coffee
MIT
be757f5f7d72ddce462f67913c9cd7c578162018
3,484
https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/plugins/pug.coffee
1
33
jianliaoim/talk-os:talk-web/client/app/inte-adding.coffee:1:raw_corpus
raw_corpus
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' span = React.createFactory 'span' Icon = React.createFactory require '../module/icon' T = React.PropTypes cx = require 'classnames' ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-adding.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-adding.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/inte-adding.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' lang = require '../locales/lang' div = React.createFactory 'div' span = React.createFactory 'span' Icon = React.createFactory require '../mod...
var Icon, Immutable, PureRenderMixin, React, T, cx, div, lang, span; React = require('react'); Immutable = require('immutable'); PureRenderMixin = require('react-addons-pure-render-mixin'); lang = require('../locales/lang'); div = React.createFactory('div'); span = React.createFactory('span'); Icon = React.creat...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-adding.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-adding.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/inte-adding.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Icon, Immutable, PureRenderMixin, React, T, cx, div, lang, span; React = require('react'); Immutable = require('immutable'); PureRenderMixin = require('react-addons-pure-render-mixin'); lang = require('../locales/lang'); div = React.createFactory('div'); ...
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' span = React.createFactory 'span' Icon = React.createFactory require '../module/icon' T = React.PropTypes cx = require 'classnames' ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-adding.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-adding.coffee
1
47
jianliaoim/talk-os:talk-web/client/app/inte-adding.coffee:1:completion
completion
React = require 'react' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' lang = require '../locales/lang' div = React.createFactory 'div' span = React.createFactory 'span' Icon = React.createFactory require '../module/icon' T = React.PropTypes cx = require 'classnames' ...
@props.onAddingClick(@props.inte.get('name')) render: -> inte = @props.inte language = lang.getLang() addText = if inte.get('name') is 'email' lang.getText('inte-email-details') else lang.getText('add') logoStyle = backgroundImage: "url(#{inte.get('iconUrl')})" ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-adding.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-adding.coffee
1
47
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ac60f4050f1bd0ee25198ac18beb22b40c1a0543
579
https://github.com/nevir/groc/blob/ac60f4050f1bd0ee25198ac18beb22b40c1a0543/lib/project.coffee
18
67
nevir/groc:lib/project.coffee:1:completion
completion
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
BATCH_SIZE: if oldNode then 10 else 1 # Where the magic happens. # # Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ac60f4050f1bd0ee25198ac18beb22b40c1a0543
579
https://github.com/nevir/groc/blob/ac60f4050f1bd0ee25198ac18beb22b40c1a0543/lib/project.coffee
18
67
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' targetPath: if currentFile ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ac60f4050f1bd0ee25198ac18beb22b40c1a0543
579
https://github.com/nevir/groc/blob/ac60f4050f1bd0ee25198ac18beb22b40c1a0543/lib/project.coffee
68
113
nevir/groc:lib/project.coffee:2:completion
completion
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' targetPath: if currentFile ...
# Mark the file as processed in the style, and return. # # TODO this is a bad API, "Base" style class should provide a # method to this effect. style.files.push fileInfo return done() fs.readFile currentFile, 'utf-8', (error, data) => if error ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ac60f4050f1bd0ee25198ac18beb22b40c1a0543
579
https://github.com/nevir/groc/blob/ac60f4050f1bd0ee25198ac18beb22b40c1a0543/lib/project.coffee
68
113
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' targetPath: if currentFile ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ed39c6da2c1e1591e24ea85434fd586175e9d3e0
579
https://github.com/nevir/groc/blob/ed39c6da2c1e1591e24ea85434fd586175e9d3e0/lib/project.coffee
68
113
nevir/groc:lib/project.coffee:2:completion
completion
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' targetPath: if currentFile ...
fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.re...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ed39c6da2c1e1591e24ea85434fd586175e9d3e0
579
https://github.com/nevir/groc/blob/ed39c6da2c1e1591e24ea85434fd586175e9d3e0/lib/project.coffee
68
113
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
40ace0ea4193e528a03a8cc9385e4a3a9c768701
579
https://github.com/nevir/groc/blob/40ace0ea4193e528a03a8cc9385e4a3a9c768701/lib/project.coffee
68
93
nevir/groc:lib/project.coffee:2:completion
completion
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
pageTitle: if currentFile == indexPath then (options.indexPageTitle || 'index') else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
40ace0ea4193e528a03a8cc9385e4a3a9c768701
579
https://github.com/nevir/groc/blob/40ace0ea4193e528a03a8cc9385e4a3a9c768701/lib/project.coffee
68
93
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
3a5603a670f883ad86a8ae34a0605ff845f6eb22
579
https://github.com/nevir/groc/blob/3a5603a670f883ad86a8ae34a0605ff845f6eb22/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:1:completion
completion
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
BATCH_SIZE: if oldNode then 10 else 1 # Where the magic happens. # # Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
3a5603a670f883ad86a8ae34a0605ff845f6eb22
579
https://github.com/nevir/groc/blob/3a5603a670f883ad86a8ae34a0605ff845f6eb22/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
897a8c475dec60082c582575d81abc1c155320b7
579
https://github.com/nevir/groc/blob/897a8c475dec60082c582575d81abc1c155320b7/lib/project.coffee
67
91
nevir/groc:lib/project.coffee:2:completion
completion
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentat...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
897a8c475dec60082c582575d81abc1c155320b7
579
https://github.com/nevir/groc/blob/897a8c475dec60082c582575d81abc1c155320b7/lib/project.coffee
67
91
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a522298ff8687589c76bd25d053e8f05b3f28a97
579
https://github.com/nevir/groc/blob/a522298ff8687589c76bd25d053e8f05b3f28a97/lib/project.coffee
67
92
nevir/groc:lib/project.coffee:2:completion
completion
@log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: la...
pageTitle: if currentFile == indexPath then (options.title || 'index') else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @l...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a522298ff8687589c76bd25d053e8f05b3f28a97
579
https://github.com/nevir/groc/blob/a522298ff8687589c76bd25d053e8f05b3f28a97/lib/project.coffee
67
92
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wan...
var Project; module.exports = Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.options = {}; this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); ...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; module.exports = Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.options = {}; this.log = new Logger(minLogLevel); // * Has a single root directory that contains (m...
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:1:completion
completion
module.exports = class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We de...
# Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` style = new (options.style || styles.Default) @ # We need to en...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
17
66
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
67
87
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.rege...
var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); return callback(error); } fileInfo = { language: language, sourcePath: currentFile, projectPath: currentFile.replace(RegExp(`^${Utils.regexpEscape(this.root + CompatibilityHelpers.pathSep)}`), ''), targetPat...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
67
87
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); return callback(error); } fileInfo = { language: language, sourcePath: currentFile, projectPath: currentFile.replace(RegExp(`^${Utils.regexpEscape(this.ro...
if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
67
87
nevir/groc:lib/project.coffee:2:completion
completion
if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + CompatibilityHelpers.pathSep}///, '' ...
style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentation generated' callback()
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
06224d7677026cd74e74de3cb556ecb704e9dadc
579
https://github.com/nevir/groc/blob/06224d7677026cd74e74de3cb556ecb704e9dadc/lib/project.coffee
67
87
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
0baa87b0141f11a3c5cd610b6039ce26ec357bf6
579
https://github.com/nevir/groc/blob/0baa87b0141f11a3c5cd610b6039ce26ec357bf6/lib/project.coffee
14
63
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented gen...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.options = {}; this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally w...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
0baa87b0141f11a3c5cd610b6039ce26ec357bf6
579
https://github.com/nevir/groc/blob/0baa87b0141f11a3c5cd610b6039ce26ec357bf6/lib/project.coffee
14
63
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.options = {}; this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. ...
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
0baa87b0141f11a3c5cd610b6039ce26ec357bf6
579
https://github.com/nevir/groc/blob/0baa87b0141f11a3c5cd610b6039ce26ec357bf6/lib/project.coffee
14
63
nevir/groc:lib/project.coffee:1:completion
completion
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @options = {} @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output ...
# Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` style = new (options.style || styles.Default) @ # We need to en...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
0baa87b0141f11a3c5cd610b6039ce26ec357bf6
579
https://github.com/nevir/groc/blob/0baa87b0141f11a3c5cd610b6039ce26ec357bf6/lib/project.coffee
14
63
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @options = {} @log = new utils.Logger minL...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) ...
// # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) {...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root...
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @options = {} @log = new utils.Logger minL...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:completion
completion
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @options = {} @log = new utils.Logger minL...
# system with file I/O and overhead all at once, we only process a certain number of source files # concurrently. This is similar to what [graceful-fs](https://github.com/isaacs/node-graceful-fs) # accomplishes. BATCH_SIZE: 10 # Where the magic happens. # # Currently, the only supported option is: gener...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
language = Utils.getLanguage currentFile unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
51
77
nevir/groc:lib/project.coffee:2:completion
completion
language = Utils.getLanguage currentFile unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message ...
projectPath: currentFile.replace ///^#{Utils.regexpEscape @root + utils.CompatibilityHelpers.pathSep}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error styl...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196
579
https://github.com/nevir/groc/blob/ee8a1b7f6c5a9e98d1cd0af584401ed53fd3d196/lib/project.coffee
51
77
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) ...
// # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) {...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root...
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:completion
completion
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
# accomplishes. BATCH_SIZE: 10 # Where the magic happens. # # Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.mes...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); ...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Fai...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentat...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
6df9f707b58eac10d9631d7184777c9ac4769a99
579
https://github.com/nevir/groc/blob/6df9f707b58eac10d9631d7184777c9ac4769a99/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) ...
// # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) {...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root...
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:completion
completion
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
# accomplishes. BATCH_SIZE: 10 # Where the magic happens. # # Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.mes...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); ...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Fai...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentat...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
841454dee12fa6a5807ca3d555a9f0f498d4ff8c
579
https://github.com/nevir/groc/blob/841454dee12fa6a5807ca3d555a9f0f498d4ff8c/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) ...
// # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) {...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # groc API // A core concept of `groc` is that your code is grouped into a project, and that there is a certain // amount of context that it lends to your documentation. // A project: var Project; Project = (function() { class Project { constructor(root...
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:1:completion
completion
# # groc API # A core concept of `groc` is that your code is grouped into a project, and that there is a certain # amount of context that it lends to your documentation. # # A project: class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a...
# accomplishes. BATCH_SIZE: 10 # Where the magic happens. # # Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
1
50
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.mes...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); ...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Fai...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentat...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
9dfc2534658623803c71c7cf2b6d45099bfbae59
579
https://github.com/nevir/groc/blob/9dfc2534658623803c71c7cf2b6d45099bfbae59/lib/project.coffee
51
76
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
637b24524edfdb4b319b006190d9c60608467870
579
https://github.com/nevir/groc/blob/637b24524edfdb4b319b006190d9c60608467870/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.mes...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); ...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
637b24524edfdb4b319b006190d9c60608467870
579
https://github.com/nevir/groc/blob/637b24524edfdb4b319b006190d9c60608467870/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); return done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Fai...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
637b24524edfdb4b319b006190d9c60608467870
579
https://github.com/nevir/groc/blob/637b24524edfdb4b319b006190d9c60608467870/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile return done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
sourcePath: currentFile projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error @log.info '' ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
637b24524edfdb4b319b006190d9c60608467870
579
https://github.com/nevir/groc/blob/637b24524edfdb4b319b006190d9c60608467870/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
158f6595cc86facd436ec1791b572176555bd773
579
https://github.com/nevir/groc/blob/158f6595cc86facd436ec1791b572176555bd773/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message ...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); retur...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
158f6595cc86facd436ec1791b572176555bd773
579
https://github.com/nevir/groc/blob/158f6595cc86facd436ec1791b572176555bd773/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to ...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
158f6595cc86facd436ec1791b572176555bd773
579
https://github.com/nevir/groc/blob/158f6595cc86facd436ec1791b572176555bd773/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
sourcePath: currentFile projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, done pool.exec (error) => return callback error if error @log.info '' ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
158f6595cc86facd436ec1791b572176555bd773
579
https://github.com/nevir/groc/blob/158f6595cc86facd436ec1791b572176555bd773/lib/project.coffee
51
73
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4de8fb81cdcf66930b516df7a101ca84116e8e10
579
https://github.com/nevir/groc/blob/4de8fb81cdcf66930b516df7a101ca84116e8e10/lib/project.coffee
51
75
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message ...
if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFile, error.message); retur...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
4de8fb81cdcf66930b516df7a101ca84116e8e10
579
https://github.com/nevir/groc/blob/4de8fb81cdcf66930b516df7a101ca84116e8e10/lib/project.coffee
51
75
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (typeof language === "undefined" || language === null) { this.log.warn('%s is not in a supported language, skipping.', currentFile); done(); } fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to ...
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4de8fb81cdcf66930b516df7a101ca84116e8e10
579
https://github.com/nevir/groc/blob/4de8fb81cdcf66930b516df7a101ca84116e8e10/lib/project.coffee
51
75
nevir/groc:lib/project.coffee:2:completion
completion
unless language? @log.warn '%s is not in a supported language, skipping.', currentFile done() fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process %s: %s", currentFile, error.message return callback error fileInfo = ...
projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, (error) => return callback error if error done() pool.exec (error) => return callback error if err...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4de8fb81cdcf66930b516df7a101ca84116e8e10
579
https://github.com/nevir/groc/blob/4de8fb81cdcf66930b516df7a101ca84116e8e10/lib/project.coffee
51
75
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated som...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) { this.log = new utils.Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally wants document...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) { this.log = new utils.Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = ...
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:completion
completion
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
# Currently, the only supported option is: generate: (options, callback) -> @log.trace 'Project#Generate(%j, ...)', options @log.info 'Generating documentation...' # * style: The style prototype to use. Defaults to `styles.Default` style = new (options.style || styles.Default) @ # We need to en...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
inFlight += 1 @log.debug "Processing %s (%d in flight)", currentFile, inFlight else if inFlight == 0 style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # En...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
57
92
nevir/groc:lib/project.coffee:2:completion
completion
inFlight += 1 @log.debug "Processing %s (%d in flight)", currentFile, inFlight else if inFlight == 0 style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # En...
return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, (error) =>...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a4c3162531d10bb6827e3c872a36bb7d8c090f6d
579
https://github.com/nevir/groc/blob/a4c3162531d10bb6827e3c872a36bb7d8c090f6d/lib/project.coffee
57
92
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated som...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) { this.log = new utils.Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally wants document...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = utils.Logger.prototype.INFO) { this.log = new utils.Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = ...
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:completion
completion
class Project constructor: (root, outPath, minLogLevel=utils.Logger::INFO) -> @log = new utils.Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path #...
@log.info 'Generating documentation...' # We need to ensure that the project root is a strip prefix so that we properly generate # relative paths for our files. Since strip prefixes are relative, it must be the first prefix, # so that they can strip from the remainder. @stripPrefixes = ["#{@root}/"].c...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
@log.debug "Processing %s (%d in flight)", currentFile, inFlight else if inFlight == 0 style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're d...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
57
91
nevir/groc:lib/project.coffee:2:completion
completion
@log.debug "Processing %s (%d in flight)", currentFile, inFlight else if inFlight == 0 style.renderCompleted (error) => return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're d...
return callback error fileInfo = language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, (error) =>...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
a8195b0175634aaa96c6d2365547ef9f13d81e6e
579
https://github.com/nevir/groc/blob/a8195b0175634aaa96c6d2365547ef9f13d81e6e/lib/project.coffee
57
91
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
30cbbae947d749cda607d399eaa012e5c8642ffe
579
https://github.com/nevir/groc/blob/30cbbae947d749cda607d399eaa012e5c8642ffe/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere withi...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally wants documented generated...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
30cbbae947d749cda607d399eaa012e5c8642ffe
579
https://github.com/nevir/groc/blob/30cbbae947d749cda607d399eaa012e5c8642ffe/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve...
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
30cbbae947d749cda607d399eaa012e5c8642ffe
579
https://github.com/nevir/groc/blob/30cbbae947d749cda607d399eaa012e5c8642ffe/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:completion
completion
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
@log.info 'Generating documentation...' # We need to ensure that the project root is a strip prefix so that we properly generate # relative paths for our files. Since strip prefixes are relative, it must be the first prefix, # so that they can strip from the remainder. @stripPrefixes = ["#{@root}/"].c...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
30cbbae947d749cda607d399eaa012e5c8642ffe
579
https://github.com/nevir/groc/blob/30cbbae947d749cda607d399eaa012e5c8642ffe/lib/project.coffee
7
56
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
5
54
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere withi...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally wants documented generated...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
5
54
nevir/groc:lib/project.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve...
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
5
54
nevir/groc:lib/project.coffee:1:completion
completion
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
@log.info 'Generating documentation...' # We want to support multiple documentation styles, but we don't expect to have a stable API for # that just yet. style = new styles.Default @ fileMap = Utils.mapFiles @root, @files, @stripPrefixes indexPath = path.resolve @root, @index toProcess = (k ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
5
54
nevir/groc:lib/project.coffee:2:raw_corpus
raw_corpus
return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're done chaining processFile() return fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process ...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
55
84
nevir/groc:lib/project.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're done chaining processFile() return fs.readFile currentFile, 'utf-8', (error, data) => ...
return callback(error(error ? (this.log.info(''), this.log.pass('Documentation generated'), callback()) : void 0)); return; // End of the line; we're done chaining processFile() fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { this.log.error("Failed to process %s: %s", currentFi...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
55
84
nevir/groc:lib/project.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript return callback(error(error ? (this.log.info(''), this.log.pass('Documentation generated'), callback()) : void 0)); return; // End of the line; we're done chaining processFile() fs.readFile(currentFile, 'utf-8', (error, data) => { var fileInfo; if (error) { ...
return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're done chaining processFile() return fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process ...
JavaScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
55
84
nevir/groc:lib/project.coffee:2:completion
completion
return callback error if error @log.info '' @log.pass 'Documentation generated' callback() # End of the line; we're done chaining processFile() return fs.readFile currentFile, 'utf-8', (error, data) => if error @log.error "Failed to process ...
language: language sourcePath: currentFile projectPath: currentFile.replace ///^#{@root + '/'}///, '' targetPath: if currentFile == indexPath then 'index' else fileMap[currentFile] style.renderFile data, fileInfo, (error) => return callback error if error ...
CoffeeScript
CoffeeScript
nevir/groc
lib/project.coffee
MIT
4f8226ab892abdfb28634f0951c1f9539c028a0a
579
https://github.com/nevir/groc/blob/4f8226ab892abdfb28634f0951c1f9539c028a0a/lib/project.coffee
55
84
nevir/groc:lib/project.coffee:1:raw_corpus
raw_corpus
class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere within its tree. We default the output path # to be rel...
CoffeeScript
nevir/groc
lib/project.coffee
MIT
5ff608e104f8c35a6722c9d18be0109b67073caf
579
https://github.com/nevir/groc/blob/5ff608e104f8c35a6722c9d18be0109b67073caf/lib/project.coffee
5
54
nevir/groc:lib/project.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Project constructor: (root, outPath, minLogLevel=Logger::INFO) -> @log = new Logger minLogLevel # * Has a single root directory that contains (most of) it. @root = path.resolve root # * Generally wants documented generated somewhere withi...
var Project; Project = (function() { class Project { constructor(root, outPath, minLogLevel = Logger.prototype.INFO) { this.log = new Logger(minLogLevel); // * Has a single root directory that contains (most of) it. this.root = path.resolve(root); // * Generally wants documented generated...
CoffeeScript
JavaScript
nevir/groc
lib/project.coffee
MIT
5ff608e104f8c35a6722c9d18be0109b67073caf
579
https://github.com/nevir/groc/blob/5ff608e104f8c35a6722c9d18be0109b67073caf/lib/project.coffee
5
54