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
snd/url-pattern:test/errors.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'invalid argument': function(test) { UrlPattern; var e; test.expect(5); try { new UrlPattern(); } catch (error) { e = error; test.equal(e.message, "argument must be a regex or a string"); } try { ...
module.exports = 'invalid argument': (test) -> UrlPattern test.expect 5 try new UrlPattern() catch e test.equal e.message, "argument must be a regex or a string" try new UrlPattern(5) catch e test.equal e.message, "argument must be a regex or a string" try ne...
JavaScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
3
52
snd/url-pattern:test/errors.coffee:1:completion
completion
module.exports = 'invalid argument': (test) -> UrlPattern test.expect 5 try new UrlPattern() catch e test.equal e.message, "argument must be a regex or a string" try new UrlPattern(5) catch e test.equal e.message, "argument must be a regex or a string" try ne...
test.done() 'invalid variable name in pattern': (test) -> UrlPattern test.expect 3 try new UrlPattern ':' catch e test.equal e.message, "couldn't parse pattern" try new UrlPattern ':.' catch e test.equal e.message, "couldn't parse pattern" try new UrlPattern ...
CoffeeScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
3
52
snd/url-pattern:test/errors.coffee:2:raw_corpus
raw_corpus
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
53
102
snd/url-pattern:test/errors.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.mes...
// compiler.compile ':foo:bar' // catch e // test.equal e.message, 'cannot start named segment right after named segment at 4' // try // compiler = new Compiler // compiler.compile 'foo:foo:bar.bar' // catch e // test.equal e.message, 'cannot start named segment right after nam...
CoffeeScript
JavaScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
53
102
snd/url-pattern:test/errors.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // compiler.compile ':foo:bar' // catch e // test.equal e.message, 'cannot start named segment right after named segment at 4' // try // compiler = new Compiler // compiler.compile 'foo:foo:bar.bar' // catch e // test.equal...
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
JavaScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
53
102
snd/url-pattern:test/errors.coffee:2:completion
completion
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
test.expect 2 try new UrlPattern '(' catch e # TODO unclosed parentheses at 1 test.equal e.message, "couldn't parse pattern" try new UrlPattern '(((foo)bar(boo)far)' catch e # TODO unclosed parentheses at 19 test.equal e.message, "couldn't parse pattern" test.done...
CoffeeScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
53
102
snd/url-pattern:test/errors.coffee:3:raw_corpus
raw_corpus
catch e test.equal e.message, "regex contains 4 groups but array of group names contains 2" test.done() 'stringify regex': (test) -> test.expect 1 pattern = new UrlPattern /x/ try pattern.stringify() catch e test.equal e.message, "can't stringify patterns generated from a regex"...
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
103
123
snd/url-pattern:test/errors.coffee:3:completion
completion
catch e test.equal e.message, "regex contains 4 groups but array of group names contains 2" test.done() 'stringify regex': (test) -> test.expect 1 pattern = new UrlPattern /x/ try pattern.stringify() catch e
test.equal e.message, "can't stringify patterns generated from a regex" test.done() 'stringify argument': (test) -> test.expect 1 pattern = new UrlPattern 'foo' try pattern.stringify(5) catch e test.equal e.message, "argument must be an object or undefined" test.done()
CoffeeScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/errors.coffee
103
123
snd/url-pattern:test/errors.coffee:2:raw_corpus
raw_corpus
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8
588
https://github.com/snd/url-pattern/blob/b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8/test/errors.coffee
53
89
snd/url-pattern:test/errors.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.mes...
// compiler.compile ':foo:bar' // catch e // test.equal e.message, 'cannot start named segment right after named segment at 4' // try // compiler = new Compiler // compiler.compile 'foo:foo:bar.bar' // catch e // test.equal e.message, 'cannot start named segment right after nam...
CoffeeScript
JavaScript
snd/url-pattern
test/errors.coffee
MIT
b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8
588
https://github.com/snd/url-pattern/blob/b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8/test/errors.coffee
53
89
snd/url-pattern:test/errors.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // compiler.compile ':foo:bar' // catch e // test.equal e.message, 'cannot start named segment right after named segment at 4' // try // compiler = new Compiler // compiler.compile 'foo:foo:bar.bar' // catch e // test.equal...
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
JavaScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8
588
https://github.com/snd/url-pattern/blob/b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8/test/errors.coffee
53
89
snd/url-pattern:test/errors.coffee:2:completion
completion
# compiler.compile ':foo:bar' # catch e # test.equal e.message, 'cannot start named segment right after named segment at 4' # try # compiler = new Compiler # compiler.compile 'foo:foo:bar.bar' # catch e # test.equal e.message, 'cannot start named segment right after named segme...
new UrlPattern '((foo)))bar' catch e # TODO did not expect ) at 7 test.equal e.message, "could only partially parse pattern" test.done() 'unclosed parentheses': (test) -> test.expect 2 try new UrlPattern '(' catch e # TODO unclosed parentheses at 1 test.equal e.messa...
CoffeeScript
CoffeeScript
snd/url-pattern
test/errors.coffee
MIT
b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8
588
https://github.com/snd/url-pattern/blob/b72fbca32e42f2d2e98ab5c95f733c1d7b990ac8/test/errors.coffee
53
89
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:raw_corpus
raw_corpus
ChannelImage = require '../channel_image.coffee' LazyExecute = require '../lazy_execute.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/channel_image.coffee
1
10
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ChannelImage = require '../channel_image.coffee' LazyExecute = require '../lazy_execute.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('...
var ChannelImage, LazyExecute; ChannelImage = require('../channel_image.coffee'); LazyExecute = require('../lazy_execute.coffee'); module.exports = { parseChannelImage: function() { var image; image = new ChannelImage(this.file, this.header, this); return this.image = new LazyExecute(image, this.file)....
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/channel_image.coffee
1
10
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ChannelImage, LazyExecute; ChannelImage = require('../channel_image.coffee'); LazyExecute = require('../lazy_execute.coffee'); module.exports = { parseChannelImage: function() { var image; image = new ChannelImage(this.file, this.header, this); ...
ChannelImage = require '../channel_image.coffee' LazyExecute = require '../lazy_execute.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/channel_image.coffee
1
10
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:completion
completion
ChannelImage = require '../channel_image.coffee' LazyExecute = require '../lazy_execute.coffee' module.exports = parseChannelImage: ->
image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/channel_image.coffee
1
10
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:raw_corpus
raw_corpus
ChannelImage = require '../channel_image.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
c895ffd782a64323324b3d744bb3bbbece05398f
2,846
https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer/channel_image.coffee
1
9
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ChannelImage = require '../channel_image.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get() ```
var ChannelImage; ChannelImage = require('../channel_image.coffee'); module.exports = { parseChannelImage: function() { var image; image = new ChannelImage(this.file, this.header, this); return this.image = new LazyExecute(image, this.file).now('skip').later('parse').get(); } };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
c895ffd782a64323324b3d744bb3bbbece05398f
2,846
https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer/channel_image.coffee
1
9
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ChannelImage; ChannelImage = require('../channel_image.coffee'); module.exports = { parseChannelImage: function() { var image; image = new ChannelImage(this.file, this.header, this); return this.image = new LazyExecute(image, this.file).now('ski...
ChannelImage = require '../channel_image.coffee' module.exports = parseChannelImage: -> image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
c895ffd782a64323324b3d744bb3bbbece05398f
2,846
https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer/channel_image.coffee
1
9
meltingice/psd.js:lib/psd/layer/channel_image.coffee:1:completion
completion
ChannelImage = require '../channel_image.coffee' module.exports = parseChannelImage: ->
image = new ChannelImage(@file, @header, @) @image = new LazyExecute(image, @file) .now('skip') .later('parse') .get()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/channel_image.coffee
MIT
c895ffd782a64323324b3d744bb3bbbece05398f
2,846
https://github.com/meltingice/psd.js/blob/c895ffd782a64323324b3d744bb3bbbece05398f/lib/psd/layer/channel_image.coffee
1
9
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'group-board' mixins: [ LinkedStateMixin, PureRenderMixin ] propTypes: _teamId: T.string.isRequired group: T.instanceOf(Immutable.Map) groups: T.instanceOf(Immutable.List).isRequired contacts: T.instanceOf(Immutable.List) onClose: T.func.isRequ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
25
74
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'group-board' mixins: [ LinkedStateMixin, PureRenderMixin ] propTypes: _teamId: T.string.isRequired group: T.instanceOf(Immutable.Map) groups: T.instanceOf(Immutable.List).isRequired contacts...
module.exports = React.createClass({ displayName: 'group-board', mixins: [LinkedStateMixin, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, group: T.instanceOf(Immutable.Map), groups: T.instanceOf(Immutable.List).isRequired, contacts: T.instanceOf(Immutable.List), onClose: T.func....
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
25
74
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'group-board', mixins: [LinkedStateMixin, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, group: T.instanceOf(Immutable.Map), groups: T.instanceOf(Immutable.List).isRequired, conta...
module.exports = React.createClass displayName: 'group-board' mixins: [ LinkedStateMixin, PureRenderMixin ] propTypes: _teamId: T.string.isRequired group: T.instanceOf(Immutable.Map) groups: T.instanceOf(Immutable.List).isRequired contacts: T.instanceOf(Immutable.List) onClose: T.func.isRequ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
25
74
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:1:completion
completion
module.exports = React.createClass displayName: 'group-board' mixins: [ LinkedStateMixin, PureRenderMixin ] propTypes: _teamId: T.string.isRequired group: T.instanceOf(Immutable.Map) groups: T.instanceOf(Immutable.List).isRequired contacts: T.instanceOf(Immutable.List) onClose: T.func.isRequ...
if @isFormValid() data = _teamId: @props._teamId name: @state.value _memberIds: @state._memberIds groupActions.create data , => @props.onClose() completeCB() , -> completeCB() else completeCB() getRemoveMembers: -> @props.group.ge...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
25
74
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:2:raw_corpus
raw_corpus
if name.length is 0 notifyActions.error l('team-group-name-min-length') false else if name.length > 24 notifyActions.error l('team-group-name-max-length') false else if (name isnt @props.group.get('name')) and @nameExists(name) notifyActions.error l('team-group-name-exists') ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
75
124
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if name.length is 0 notifyActions.error l('team-group-name-min-length') false else if name.length > 24 notifyActions.error l('team-group-name-max-length') false else if (name isnt @props.group.get('name')) and @nameExists(name) ...
if (name.length === 0) { notifyActions.error(l('team-group-name-min-length')); false; } else if (name.length > 24) { notifyActions.error(l('team-group-name-max-length')); false; } else if ((name !== this.props.group.get('name')) && this.nameExists(name)) { notifyActions.error(l('team-group-name-exists')); f...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
75
124
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (name.length === 0) { notifyActions.error(l('team-group-name-min-length')); false; } else if (name.length > 24) { notifyActions.error(l('team-group-name-max-length')); false; } else if ((name !== this.props.group.get('name')) && this.nameExists(name)) { ...
if name.length is 0 notifyActions.error l('team-group-name-min-length') false else if name.length > 24 notifyActions.error l('team-group-name-max-length') false else if (name isnt @props.group.get('name')) and @nameExists(name) notifyActions.error l('team-group-name-exists') ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
75
124
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:2:completion
completion
if name.length is 0 notifyActions.error l('team-group-name-min-length') false else if name.length > 24 notifyActions.error l('team-group-name-max-length') false else if (name isnt @props.group.get('name')) and @nameExists(name) notifyActions.error l('team-group-name-exists') ...
onReturn: -> @props.onReturn() onMemberClick: (member) -> _memberIds = diff.toggle @state._memberIds, member.get('_id') @setState { _memberIds } renderFooter: -> div className: 'footer', if @props.group.isEmpty() ButtonSingleAction className: 'button', onClick: @createGroup, l('creat...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
75
124
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:3:raw_corpus
raw_corpus
onContactClick: @onMemberClick title: l('filter-members') locale: l('search-members') placeholder: l('no-contact-result') render: -> div className: 'group-settings flex-vert', div className: 'section flex-static', l('team-group-name') input type: 'text', className: 'form...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
125
136
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript onContactClick: @onMemberClick title: l('filter-members') locale: l('search-members') placeholder: l('no-contact-result') render: -> div className: 'group-settings flex-vert', div className: 'section flex-static', l('team-...
({ onContactClick: this.onMemberClick({ title: l('filter-members'), locale: l('search-members'), placeholder: l('no-contact-result') }), render: function() { return div({ className: 'group-settings flex-vert' }, div({ className: 'section flex-static' }, l('team-group-name'), in...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
125
136
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ onContactClick: this.onMemberClick({ title: l('filter-members'), locale: l('search-members'), placeholder: l('no-contact-result') }), render: function() { return div({ className: 'group-settings flex-vert' }, div({ className...
onContactClick: @onMemberClick title: l('filter-members') locale: l('search-members') placeholder: l('no-contact-result') render: -> div className: 'group-settings flex-vert', div className: 'section flex-static', l('team-group-name') input type: 'text', className: 'form...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
125
136
jianliaoim/talk-os:talk-web/client/app/group-settings.coffee:3:completion
completion
onContactClick: @onMemberClick title: l('filter-members') locale: l('search-members') placeholder: l('no-contact-result') render: ->
div className: 'group-settings flex-vert', div className: 'section flex-static', l('team-group-name') input type: 'text', className: 'form-control', placeholder: l('team-group-name-placeholder'), valueLink: @linkState('value'), autoFocus: true @renderSearchList() @renderFooter()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/group-settings.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-settings.coffee
125
136
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'story-viewer' mixins: [PureRenderMixin] propTypes: story: T.instanceOf(Immutable.Map).isRequired onClose: T.func getFile: -> @props.story.get('data') renderTitle: -> file = @getFile() return null if not file div className: 'title', ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
27
76
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'story-viewer' mixins: [PureRenderMixin] propTypes: story: T.instanceOf(Immutable.Map).isRequired onClose: T.func getFile: -> @props.story.get('data') renderTitle: -> file = @getFile() ...
module.exports = React.createClass({ displayName: 'story-viewer', mixins: [PureRenderMixin], propTypes: { story: T.instanceOf(Immutable.Map).isRequired, onClose: T.func }, getFile: function() { return this.props.story.get('data'); }, renderTitle: function() { var file; file = this.getF...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
27
76
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'story-viewer', mixins: [PureRenderMixin], propTypes: { story: T.instanceOf(Immutable.Map).isRequired, onClose: T.func }, getFile: function() { return this.props.story.get('data'); }, rende...
module.exports = React.createClass displayName: 'story-viewer' mixins: [PureRenderMixin] propTypes: story: T.instanceOf(Immutable.Map).isRequired onClose: T.func getFile: -> @props.story.get('data') renderTitle: -> file = @getFile() return null if not file div className: 'title', ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
27
76
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:1:completion
completion
module.exports = React.createClass displayName: 'story-viewer' mixins: [PureRenderMixin] propTypes: story: T.instanceOf(Immutable.Map).isRequired onClose: T.func getFile: -> @props.story.get('data') renderTitle: -> file = @getFile() return null if not file div className: 'title', ...
file: file key: file.get('_id') when file.get('fileCategory') is 'file' FileText file: file key: file.get('_id') else FileDefault file: file div className: 'file-container', element renderSender: -> UserAlias _teamId: @props.story.get('_team...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
27
76
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:2:raw_corpus
raw_corpus
div className: 'body', @renderFileTypes() div className: 'file-info', div className: 'info', @renderTitle() @renderContent()
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
77
82
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript div className: 'body', @renderFileTypes() div className: 'file-info', div className: 'info', @renderTitle() @renderContent() ```
div({ className: 'body' }, this.renderFileTypes()); div({ className: 'file-info' }, div({ className: 'info' }, this.renderTitle()), this.renderContent());
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
77
82
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript div({ className: 'body' }, this.renderFileTypes()); div({ className: 'file-info' }, div({ className: 'info' }, this.renderTitle()), this.renderContent()); ```
div className: 'body', @renderFileTypes() div className: 'file-info', div className: 'info', @renderTitle() @renderContent()
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
77
82
jianliaoim/talk-os:talk-web/client/app/story-viewer.coffee:2:completion
completion
div className: 'body', @renderFileTypes() div className: 'file-info',
div className: 'info', @renderTitle() @renderContent()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/story-viewer.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/story-viewer.coffee
77
82
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:raw_corpus
raw_corpus
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry, scope} = conf...
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner const...
var BufferVariablesScanner, ColorContext, ExpressionsRegistry, VariableExpression, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariableExpression = require('../variable-expression'); ExpressionsRegistry = require('../expressions-...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BufferVariablesScanner, ColorContext, ExpressionsRegistry, VariableExpression, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariableExpression = require('../variable-expres...
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry, scope} = conf...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:completion
completion
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry, scope} = conf...
lastIndex = 0 while results = @scanner.search(@buffer, lastIndex) @results = @results.concat(results) @flushVariables() if @results.length >= VariablesChunkSize {lastIndex} = results @flushVariables() flushVariables: -> emit('scan-buffer:variables-found', @results) @results = [] ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:raw_corpus
raw_corpus
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry} = config ...
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
5de42ccee66d85444fe32c70d7dd5dae7725fa6d
518
https://github.com/abe33/atom-pigments/blob/5de42ccee66d85444fe32c70d7dd5dae7725fa6d/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner const...
var BufferVariablesScanner, ColorContext, ExpressionsRegistry, VariableExpression, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariableExpression = require('../variable-expression'); ExpressionsRegistry = require('../expressions-...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
5de42ccee66d85444fe32c70d7dd5dae7725fa6d
518
https://github.com/abe33/atom-pigments/blob/5de42ccee66d85444fe32c70d7dd5dae7725fa6d/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BufferVariablesScanner, ColorContext, ExpressionsRegistry, VariableExpression, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariableExpression = require('../variable-expres...
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry} = config ...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
5de42ccee66d85444fe32c70d7dd5dae7725fa6d
518
https://github.com/abe33/atom-pigments/blob/5de42ccee66d85444fe32c70d7dd5dae7725fa6d/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:completion
completion
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariableExpression = require '../variable-expression' ExpressionsRegistry = require '../expressions-registry' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer, registry} = config ...
lastIndex = 0 while results = @scanner.search(@buffer, lastIndex) @results = @results.concat(results) @flushVariables() if @results.length >= VariablesChunkSize {lastIndex} = results @flushVariables() flushVariables: -> emit('scan-buffer:variables-found', @results) @results = [] ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
5de42ccee66d85444fe32c70d7dd5dae7725fa6d
518
https://github.com/abe33/atom-pigments/blob/5de42ccee66d85444fe32c70d7dd5dae7725fa6d/lib/tasks/scan-buffer-variables-handler.coffee
1
30
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:raw_corpus
raw_corpus
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer} = config @scanner = new VariableScanner() @results = [] scan: -> lastIndex = 0 while results = @scanner.search(@bu...
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/tasks/scan-buffer-variables-handler.coffee
1
27
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer} = config @scanner = new VariableScanner() @results = [] scan: -> ...
var BufferVariablesScanner, ColorContext, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariablesChunkSize = 100; BufferVariablesScanner = class BufferVariablesScanner { constructor(config) { ({buffer: this.buffer} = config);...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/tasks/scan-buffer-variables-handler.coffee
1
27
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var BufferVariablesScanner, ColorContext, VariableScanner, VariablesChunkSize; VariableScanner = require('../variable-scanner'); ColorContext = require('../color-context'); VariablesChunkSize = 100; BufferVariablesScanner = class BufferVariablesScanner { cons...
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer} = config @scanner = new VariableScanner() @results = [] scan: -> lastIndex = 0 while results = @scanner.search(@bu...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/tasks/scan-buffer-variables-handler.coffee
1
27
abe33/atom-pigments:lib/tasks/scan-buffer-variables-handler.coffee:1:completion
completion
VariableScanner = require '../variable-scanner' ColorContext = require '../color-context' VariablesChunkSize = 100 class BufferVariablesScanner constructor: (config) -> {@buffer} = config @scanner = new VariableScanner() @results = [] scan: -> lastIndex = 0
while results = @scanner.search(@buffer, lastIndex) @results = @results.concat(results) @flushVariables() if @results.length >= VariablesChunkSize {lastIndex} = results @flushVariables() flushVariables: -> emit('scan-buffer:variables-found', @results) @results = [] module.exports = (...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/tasks/scan-buffer-variables-handler.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/tasks/scan-buffer-variables-handler.coffee
1
27
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { nam...
/* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { return this.run("ocp-indent", [this.tempFile("input", tex...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { re...
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:completion
completion
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
catch text.match(/(\d+\.\d+)/)[1] + ".0" } docker: { image: "unibeautify/ocp-indent" } } ] options: { OCaml: true } beautify: (text, language, options) -> @run("ocp-indent", [ @tempFile("input", text) ], { help: { link: "https://w...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6
1,503
https://github.com/Glavin001/atom-beautify/blob/b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { nam...
/* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { return this.run("ocp-indent", [this.tempFile("input", tex...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6
1,503
https://github.com/Glavin001/atom-beautify/blob/b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { re...
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6
1,503
https://github.com/Glavin001/atom-beautify/blob/b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:completion
completion
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" executables: [ { name: "ocp-indent" cmd: "ocp-indent" homepage: "...
catch text.match(/version (\d+\.\d+)/)[1] + ".0" } docker: { image: "unibeautify/ocp-indent" } } ] options: { OCaml: true } beautify: (text, language, options) -> @run("ocp-indent", [ @tempFile("input", text) ], { help: { link: "h...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6
1,503
https://github.com/Glavin001/atom-beautify/blob/b3c9c3c2ab6d8744da3eb0a6fbfa6e245d27aba6/src/beautifiers/ocp-indent.coffee
1
41
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:raw_corpus
raw_corpus
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" isPreInstalled: false options: { OCaml: true } beautify: (text, language, o...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/ocp-indent.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" isPreInstalled: false optio...
/* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { return this.run("ocp-indent", [this.tempFile("input", tex...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/ocp-indent.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Requires https://github.com/OCamlPro/ocp-indent */ "use strict"; var Beautifier, OCPIndent; Beautifier = require('./beautifier'); module.exports = OCPIndent = (function() { class OCPIndent extends Beautifier { beautify(text, language, options) { re...
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" isPreInstalled: false options: { OCaml: true } beautify: (text, language, o...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/ocp-indent.coffee
1
24
Glavin001/atom-beautify:src/beautifiers/ocp-indent.coffee:1:completion
completion
### Requires https://github.com/OCamlPro/ocp-indent ### "use strict" Beautifier = require('./beautifier') module.exports = class OCPIndent extends Beautifier name: "ocp-indent" link: "https://www.typerex.org/ocp-indent.html" isPreInstalled: false
options: { OCaml: true } beautify: (text, language, options) -> @run("ocp-indent", [ @tempFile("input", text) ], { help: { link: "https://www.typerex.org/ocp-indent.html" } })
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/ocp-indent.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/ocp-indent.coffee
1
24
jianliaoim/talk-os:talk-web/test/spec/util/emoji.spec.coffee:1:raw_corpus
raw_corpus
describe 'util: emoji', -> beforeEach -> @emoji = require 'util/emoji' describe 'function: replace', -> it 'should handle normal text', -> text = 'hahaha\nhahaha' expect(@emoji.replace(text)).toEqual 'hahaha\nhahaha' it 'should replace simple emoji', -> text = ':smile:' expect...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/emoji.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/emoji.spec.coffee
1
37
jianliaoim/talk-os:talk-web/test/spec/util/emoji.spec.coffee:1:completion
completion
describe 'util: emoji', -> beforeEach -> @emoji = require 'util/emoji' describe 'function: replace', -> it 'should handle normal text', -> text = 'hahaha\nhahaha' expect(@emoji.replace(text)).toEqual 'hahaha\nhahaha' it 'should replace simple emoji', -> text = ':smile:' expect...
it 'should replace concatenated emojis', -> text = 'hi:smile:hi' expect(@emoji.replace(text)).toEqual 'hi<img align="absmiddle" alt=":smile:" class="emoji" src="https://dn-talk.oss.aliyuncs.com/icons/emoji/smile.png>hi' text = ':smile::smile::smile:' expect(@emoji.replace(text)).toEqual ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/util/emoji.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/util/emoji.spec.coffee
1
37
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 # Create express facility. app = express() # Create a HTTP server object. server = require('http').createServer(app) # Create SocketIO binding. io = require('socket.io').listen(s...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
ef48522ec7ac021be7317528ce96394b8931d4b6
672
https://github.com/CaryLandholt/AngularFun/blob/ef48522ec7ac021be7317528ce96394b8931d4b6/server.coffee
1
27
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 # Create express facility. app = express() # Create a HTTP server object. server = require('http').createServer(app) # Cr...
var app, dir, express, io, port, ref, ref1, routes, server; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; // Create express facility. app = express(); // Create a HTTP...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
ef48522ec7ac021be7317528ce96394b8931d4b6
672
https://github.com/CaryLandholt/AngularFun/blob/ef48522ec7ac021be7317528ce96394b8931d4b6/server.coffee
1
27
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, io, port, ref, ref1, routes, server; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; // Crea...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 # Create express facility. app = express() # Create a HTTP server object. server = require('http').createServer(app) # Create SocketIO binding. io = require('socket.io').listen(s...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
ef48522ec7ac021be7317528ce96394b8931d4b6
672
https://github.com/CaryLandholt/AngularFun/blob/ef48522ec7ac021be7317528ce96394b8931d4b6/server.coffee
1
27
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 # Create express facility. app = express() # Create a HTTP server object. server = require('http').createServer(app) # Create SocketIO binding. io = require('socket.io').listen(s...
# use livereload middleware app.use require('grunt-contrib-livereload/lib/utils').livereloadSnippet app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app, dir module.exports = server # ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
ef48522ec7ac021be7317528ce96394b8931d4b6
672
https://github.com/CaryLandholt/AngularFun/blob/ef48522ec7ac021be7317528ce96394b8931d4b6/server.coffee
1
27
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.st...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f5569d72cc33698a645d136d4d866296b8f4b10e
672
https://github.com/CaryLandholt/AngularFun/blob/f5569d72cc33698a645d136d4d866296b8f4b10e/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverr...
var app, dir, express, port, ref, ref1, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.logger('dev...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
f5569d72cc33698a645d136d4d866296b8f4b10e
672
https://github.com/CaryLandholt/AngularFun/blob/f5569d72cc33698a645d136d4d866296b8f4b10e/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, ref1, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); a...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.st...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f5569d72cc33698a645d136d4d866296b8f4b10e
672
https://github.com/CaryLandholt/AngularFun/blob/f5569d72cc33698a645d136d4d866296b8f4b10e/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev'
app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app, dir app.listen port, -> console.log "started web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f5569d72cc33698a645d136d4d866296b8f4b10e
672
https://github.com/CaryLandholt/AngularFun/blob/f5569d72cc33698a645d136d4d866296b8f4b10e/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.st...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
08957f71238d234d54ab6225987714a71151c9a4
672
https://github.com/CaryLandholt/AngularFun/blob/08957f71238d234d54ab6225987714a71151c9a4/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverr...
var app, dir, express, port, ref, ref1, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.logger('dev...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
08957f71238d234d54ab6225987714a71151c9a4
672
https://github.com/CaryLandholt/AngularFun/blob/08957f71238d234d54ab6225987714a71151c9a4/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, ref1, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = (ref1 = process.env.PORT) != null ? ref1 : process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); a...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.st...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
08957f71238d234d54ab6225987714a71151c9a4
672
https://github.com/CaryLandholt/AngularFun/blob/08957f71238d234d54ab6225987714a71151c9a4/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.env.PORT ? process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev'
app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.listen port, -> console.log "started web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
08957f71238d234d54ab6225987714a71151c9a4
672
https://github.com/CaryLandholt/AngularFun/blob/08957f71238d234d54ab6225987714a71151c9a4/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use a...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
83f11ba52970aa46e3d85f6dfad9ae495fd52e50
672
https://github.com/CaryLandholt/AngularFun/blob/83f11ba52970aa46e3d85f6dfad9ae495fd52e50/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use expr...
var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.logger('dev')); app.use(express.bodyParser()); app.use(e...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
83f11ba52970aa46e3d85f6dfad9ae495fd52e50
672
https://github.com/CaryLandholt/AngularFun/blob/83f11ba52970aa46e3d85f6dfad9ae495fd52e50/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.logge...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev' app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use a...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
83f11ba52970aa46e3d85f6dfad9ae495fd52e50
672
https://github.com/CaryLandholt/AngularFun/blob/83f11ba52970aa46e3d85f6dfad9ae495fd52e50/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.logger 'dev'
app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.listen port, -> console.log "started web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
83f11ba52970aa46e3d85f6dfad9ae495fd52e50
672
https://github.com/CaryLandholt/AngularFun/blob/83f11ba52970aa46e3d85f6dfad9ae495fd52e50/server.coffee
1
17
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.lis...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0
672
https://github.com/CaryLandholt/AngularFun/blob/7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use ex...
var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.bodyParser()); app.use(express.methodOverride()); app.us...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0
672
https://github.com/CaryLandholt/AngularFun/blob/7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.bodyP...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.lis...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0
672
https://github.com/CaryLandholt/AngularFun/blob/7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser()
app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.listen port, -> console.log "started web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0
672
https://github.com/CaryLandholt/AngularFun/blob/7e0952d565aff3b9f4dcbbbaf06e90ac4915d3a0/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.lis...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f37b0d7e50cf3df2eed21a3a8fd969623cdccc10
672
https://github.com/CaryLandholt/AngularFun/blob/f37b0d7e50cf3df2eed21a3a8fd969623cdccc10/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use ex...
var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.bodyParser()); app.use(express.methodOverride()); app.us...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
f37b0d7e50cf3df2eed21a3a8fd969623cdccc10
672
https://github.com/CaryLandholt/AngularFun/blob/f37b0d7e50cf3df2eed21a3a8fd969623cdccc10/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.use(express.bodyP...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser() app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.lis...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f37b0d7e50cf3df2eed21a3a8fd969623cdccc10
672
https://github.com/CaryLandholt/AngularFun/blob/f37b0d7e50cf3df2eed21a3a8fd969623cdccc10/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.use express.bodyParser()
app.use express.methodOverride() app.use express.errorHandler() app.use express.static dir app.use app.router routes app app.listen port, -> console.log "starting web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f37b0d7e50cf3df2eed21a3a8fd969623cdccc10
672
https://github.com/CaryLandholt/AngularFun/blob/f37b0d7e50cf3df2eed21a3a8fd969623cdccc10/server.coffee
1
16
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.set 'view options', layout: false app.use express.bodyParser() app.use express.static dir app.use app.router app.engine '.html', (str, options) -> (l...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f9909d080baf8b1265492fe7cef5e21a5b12e57c
672
https://github.com/CaryLandholt/AngularFun/blob/f9909d080baf8b1265492fe7cef5e21a5b12e57c/server.coffee
1
22
CaryLandholt/AngularFun:server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.set 'view options', layout: false app.use express.bodyParser() app.use express.static dir app.us...
var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.set('view options', { layout: false }); app.use(express.bodyPars...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
server.coffee
MIT
f9909d080baf8b1265492fe7cef5e21a5b12e57c
672
https://github.com/CaryLandholt/AngularFun/blob/f9909d080baf8b1265492fe7cef5e21a5b12e57c/server.coffee
1
22
CaryLandholt/AngularFun:server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var app, dir, express, port, ref, routes; express = require('express'); routes = require('./routes'); dir = `${__dirname}/dist`; port = (ref = process.argv.splice(2)[0]) != null ? ref : 3005; app = express(); app.configure(function() { app.set('view options...
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.set 'view options', layout: false app.use express.bodyParser() app.use express.static dir app.use app.router app.engine '.html', (str, options) -> (l...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f9909d080baf8b1265492fe7cef5e21a5b12e57c
672
https://github.com/CaryLandholt/AngularFun/blob/f9909d080baf8b1265492fe7cef5e21a5b12e57c/server.coffee
1
22
CaryLandholt/AngularFun:server.coffee:1:completion
completion
express = require 'express' routes = require './routes' dir = "#{__dirname}/dist" port = process.argv.splice(2)[0] ? 3005 app = express() app.configure -> app.set 'view options', layout: false app.use express.bodyParser()
app.use express.static dir app.use app.router app.engine '.html', (str, options) -> (locals) -> str routes app app.listen port, -> console.log "starting web server at http://localhost:#{port}"
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
f9909d080baf8b1265492fe7cef5e21a5b12e57c
672
https://github.com/CaryLandholt/AngularFun/blob/f9909d080baf8b1265492fe7cef5e21a5b12e57c/server.coffee
1
22
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
###global require, __dirname, process### ((express, dir, port = 3005) -> dir += '/dist' nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] getUrl = -> "http://localhost:#{port}" isUniqueName = (name) -> (name for person in p...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
3135e5695c788093de1ff2c262d29f4ac1d0c091
672
https://github.com/CaryLandholt/AngularFun/blob/3135e5695c788093de1ff2c262d29f4ac1d0c091/server.coffee
1
50
CaryLandholt/AngularFun:server.coffee:1:completion
completion
###global require, __dirname, process### ((express, dir, port = 3005) -> dir += '/dist' nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] getUrl = -> "http://localhost:#{port}" isUniqueName = (name) -> (name for person in p...
spawn command, [url] app = express.createServer() app.configure -> app.set 'view options', layout: false app.use express.bodyParser() app.use express.static dir app.use app.router app.engine '.html', (str, options) -> (locals) -> str app.get '/', (req, res) -> res.render "#{dir}/index.ht...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
3135e5695c788093de1ff2c262d29f4ac1d0c091
672
https://github.com/CaryLandholt/AngularFun/blob/3135e5695c788093de1ff2c262d29f4ac1d0c091/server.coffee
1
50
CaryLandholt/AngularFun:server.coffee:2:raw_corpus
raw_corpus
current = person for person in people when parseInt(person.id, 10) is parseInt(id, 10) res.json current app.post '/people', (req, res) -> name = req.body.name message = "title": "Duplicate!" "message": "#{name} is a duplicate. Please enter a new name." return res.send(message, 403) if not isU...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
3135e5695c788093de1ff2c262d29f4ac1d0c091
672
https://github.com/CaryLandholt/AngularFun/blob/3135e5695c788093de1ff2c262d29f4ac1d0c091/server.coffee
51
76
CaryLandholt/AngularFun:server.coffee:2:completion
completion
current = person for person in people when parseInt(person.id, 10) is parseInt(id, 10) res.json current app.post '/people', (req, res) -> name = req.body.name message = "title": "Duplicate!" "message": "#{name} is a duplicate. Please enter a new name." return res.send(message, 403) if not isU...
person = "id": "#{nextId++}" "name": "#{name}" "age": "0" people.push person res.json person app.listen port, -> console.log "open your browser to the url below" console.log getUrl() )(require('express'), __dirname, process.argv.splice(2)[0])
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
3135e5695c788093de1ff2c262d29f4ac1d0c091
672
https://github.com/CaryLandholt/AngularFun/blob/3135e5695c788093de1ff2c262d29f4ac1d0c091/server.coffee
51
76
CaryLandholt/AngularFun:server.coffee:1:raw_corpus
raw_corpus
###global require, __dirname, process### ((express, dir, port = 3005) -> dir += '/dist' nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] getUrl = -> "http://localhost:#{port}" isUniqueName = (name) -> (name for person in p...
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
6ee68833deb00b89a329365256479ac814253ed8
672
https://github.com/CaryLandholt/AngularFun/blob/6ee68833deb00b89a329365256479ac814253ed8/server.coffee
1
50
CaryLandholt/AngularFun:server.coffee:1:completion
completion
###global require, __dirname, process### ((express, dir, port = 3005) -> dir += '/dist' nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] getUrl = -> "http://localhost:#{port}" isUniqueName = (name) -> (name for person in p...
spawn command, [url] app = express.createServer() app.configure -> app.set 'view options', layout: false app.use express.bodyParser() app.use express.static(dir) app.use app.router app.engine '.html', (str, options) -> (locals) -> str app.get '/', (req, res) -> res.render "#{dir}/index.h...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
server.coffee
MIT
6ee68833deb00b89a329365256479ac814253ed8
672
https://github.com/CaryLandholt/AngularFun/blob/6ee68833deb00b89a329365256479ac814253ed8/server.coffee
1
50