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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abe33/atom-pigments:spec/spec-helper.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var fs, path;
fs = require('fs');
path = require('path');
beforeEach(function() {
var compare;
compare = function(a, b, p) {
return Math.abs(b - a) < (Math.pow(10, -p) / 2);
};
return this.addMatchers({
toBeComponentArrayCloseTo: function(arr, pr... | fs = require 'fs'
path = require 'path'
beforeEach ->
compare = (a,b,p) -> Math.abs(b - a) < (Math.pow(10, -p) / 2)
@addMatchers
toBeComponentArrayCloseTo: (arr, precision=0) ->
notText = if @isNot then " not" else ""
this.message = => "Expected #{jasmine.pp(@actual)} to#{notText} be an array whos... | JavaScript | CoffeeScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 1 | 50 |
abe33/atom-pigments:spec/spec-helper.coffee:1:completion | completion | fs = require 'fs'
path = require 'path'
beforeEach ->
compare = (a,b,p) -> Math.abs(b - a) < (Math.pow(10, -p) / 2)
@addMatchers
toBeComponentArrayCloseTo: (arr, precision=0) ->
notText = if @isNot then " not" else ""
this.message = => "Expected #{jasmine.pp(@actual)} to#{notText} be an array whos... | when 'string'
colorOrRed = colorOrRed.replace(/#|0x/, '')
hex = parseInt(colorOrRed, 16)
switch colorOrRed.length
when 8
alpha = (hex >> 24 & 0xff) / 255
red = hex >> 16 & 0xff
green = hex >> 8 & 0xff
blue = hex & 0xff
... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 1 | 50 |
abe33/atom-pigments:spec/spec-helper.coffee:2:raw_corpus | raw_corpus | else
{red: 0, green: 0, blue: 0, alpha: 1}
notText = if @isNot then " not" else ""
this.message = => "Expected #{jasmine.pp(@actual)} to#{notText} be a color equal to #{jasmine.pp(color)}"
Math.round(@actual.red) is color.red and
Math.round(@actual.green) is color.green and
Mat... | CoffeeScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 51 | 73 | ||
abe33/atom-pigments:spec/spec-helper.coffee:2:completion | completion | else
{red: 0, green: 0, blue: 0, alpha: 1}
notText = if @isNot then " not" else ""
this.message = => "Expected #{jasmine.pp(@actual)} to#{notText} be a color equal to #{jasmine.pp(color)}"
Math.round(@actual.red) is color.red and
Math.round(@actual.green) is color.green and
Mat... | module.exports =
jsonFixture: (paths...) -> (fixture, data) ->
jsonPath = path.resolve(paths..., fixture)
json = fs.readFileSync(jsonPath).toString()
json = json.replace /#\{([\w\[\]]+)\}/g, (m,w) ->
if match = /^\[(\w+)\]$/.exec(w)
[_,w] = match
data[w].shift()
else
da... | CoffeeScript | CoffeeScript | abe33/atom-pigments | spec/spec-helper.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/spec/spec-helper.coffee | 51 | 73 |
orktes/atom-react:spec/atom-react-spec.coffee:1:raw_corpus | raw_corpus | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 1 | 50 | ||
orktes/atom-react:spec/atom-react-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleC... | describe("React tests", function() {
var sampleCorrectAddonsES6File, sampleCorrectAddonsFile, sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-corre... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("React tests", function() {
var sampleCorrectAddonsES6File, sampleCorrectAddonsFile, sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorre... | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:1:completion | completion | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | expect(editor.getGrammar().scopeName).toEqual 'source.js.jsx'
editor.destroy()
it "should select source.js.jsx if file has require('react-native')", ->
waitsForPromise ->
atom.workspace.open(sampleCorrectNativeFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().sc... | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:2:raw_corpus | raw_corpus | editor.destroy()
it "should select source.js if file doesnt have require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.destroy() | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 51 | 57 | ||
orktes/atom-react:spec/atom-react-spec.coffee:2:completion | completion | editor.destroy()
it "should select source.js if file doesnt have require('react')", -> | waitsForPromise ->
atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.destroy() | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | f045e1c6682360a2c74f3de522ce93a9ea4fcbfb | 473 | https://github.com/orktes/atom-react/blob/f045e1c6682360a2c74f3de522ce93a9ea4fcbfb/spec/atom-react-spec.coffee | 51 | 57 |
orktes/atom-react:spec/atom-react-spec.coffee:1:raw_corpus | raw_corpus | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 1 | 50 | ||
orktes/atom-react:spec/atom-react-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleC... | describe("React tests", function() {
var sampleCorrectAddonsES6File, sampleCorrectAddonsFile, sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-corre... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("React tests", function() {
var sampleCorrectAddonsES6File, sampleCorrectAddonsFile, sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorre... | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:1:completion | completion | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleCorrectAddonsES6File = require.resolve './fixtures/sample-... | editor.destroy()
it "should select source.js.jsx if file has require('react-native')", ->
waitsForPromise ->
atom.workspace.open(sampleCorrectNativeFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js.jsx'
editor.destroy()
it "sho... | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 1 | 50 |
orktes/atom-react:spec/atom-react-spec.coffee:2:raw_corpus | raw_corpus | it "should select source.js if file doesnt have require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.destroy() | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 51 | 55 | ||
orktes/atom-react:spec/atom-react-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "should select source.js if file doesnt have require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.... | it("should select source.js if file doesnt have require('react')", function() {
return waitsForPromise(function() {
return atom.workspace.open(sampleInvalidFile, {
autoIndent: false
}).then(function(editor) {
expect(editor.getGrammar().scopeName).toEqual('source.js');
return editor.destroy()... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 51 | 55 |
orktes/atom-react:spec/atom-react-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("should select source.js if file doesnt have require('react')", function() {
return waitsForPromise(function() {
return atom.workspace.open(sampleInvalidFile, {
autoIndent: false
}).then(function(editor) {
expect(editor.getGrammar().scopeNa... | it "should select source.js if file doesnt have require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.destroy() | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 51 | 55 |
orktes/atom-react:spec/atom-react-spec.coffee:2:completion | completion | it "should select source.js if file doesnt have require('react')", ->
waitsForPromise -> | atom.workspace.open(sampleInvalidFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js'
editor.destroy() | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | 20f17d4c15e30f9a4912fdcbdce051f3b4c1df91 | 473 | https://github.com/orktes/atom-react/blob/20f17d4c15e30f9a4912fdcbdce051f3b4c1df91/spec/atom-react-spec.coffee | 51 | 55 |
orktes/atom-react:spec/atom-react-spec.coffee:1:raw_corpus | raw_corpus | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.j... | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | bf9a1e49c43c41b4b1708bb95167d2a51bf84111 | 473 | https://github.com/orktes/atom-react/blob/bf9a1e49c43c41b4b1708bb95167d2a51bf84111/spec/atom-react-spec.coffee | 1 | 41 | ||
orktes/atom-react:spec/atom-react-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleI... | describe("React tests", function() {
var sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-correct-native.js');
sampleCorrectES6File = require.reso... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | bf9a1e49c43c41b4b1708bb95167d2a51bf84111 | 473 | https://github.com/orktes/atom-react/blob/bf9a1e49c43c41b4b1708bb95167d2a51bf84111/spec/atom-react-spec.coffee | 1 | 41 |
orktes/atom-react:spec/atom-react-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("React tests", function() {
var sampleCorrectES6File, sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-cor... | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.j... | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | bf9a1e49c43c41b4b1708bb95167d2a51bf84111 | 473 | https://github.com/orktes/atom-react/blob/bf9a1e49c43c41b4b1708bb95167d2a51bf84111/spec/atom-react-spec.coffee | 1 | 41 |
orktes/atom-react:spec/atom-react-spec.coffee:1:completion | completion | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleCorrectES6File = require.resolve './fixtures/sample-correct-es6.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.j... | atom.workspace.open(sampleCorrectFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js.jsx'
editor.destroy()
it "should select source.js.jsx if file has require('react-native')", ->
waitsForPromise ->
atom.workspace.open(sampleCorrectNa... | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | bf9a1e49c43c41b4b1708bb95167d2a51bf84111 | 473 | https://github.com/orktes/atom-react/blob/bf9a1e49c43c41b4b1708bb95167d2a51bf84111/spec/atom-react-spec.coffee | 1 | 41 |
orktes/atom-react:spec/atom-react-spec.coffee:1:raw_corpus | raw_corpus | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePacka... | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | cc01f5f66fdf05dd7b236662f5bff79bb8779f1f | 473 | https://github.com/orktes/atom-react/blob/cc01f5f66fdf05dd7b236662f5bff79bb8779f1f/spec/atom-react-spec.coffee | 1 | 34 | ||
orktes/atom-react:spec/atom-react-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->... | describe("React tests", function() {
var sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-correct-native.js');
sampleInvalidFile = require.resolve('./fixtures/sample-in... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | cc01f5f66fdf05dd7b236662f5bff79bb8779f1f | 473 | https://github.com/orktes/atom-react/blob/cc01f5f66fdf05dd7b236662f5bff79bb8779f1f/spec/atom-react-spec.coffee | 1 | 34 |
orktes/atom-react:spec/atom-react-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("React tests", function() {
var sampleCorrectFile, sampleCorrectNativeFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleCorrectNativeFile = require.resolve('./fixtures/sample-correct-native.js');
sa... | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePacka... | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | cc01f5f66fdf05dd7b236662f5bff79bb8779f1f | 473 | https://github.com/orktes/atom-react/blob/cc01f5f66fdf05dd7b236662f5bff79bb8779f1f/spec/atom-react-spec.coffee | 1 | 34 |
orktes/atom-react:spec/atom-react-spec.coffee:1:completion | completion | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleCorrectNativeFile = require.resolve './fixtures/sample-correct-native.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePacka... | it "should select source.js.jsx if file has require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleCorrectFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source.js.jsx'
editor.destroy()
it "should select source.js.jsx if file ha... | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | cc01f5f66fdf05dd7b236662f5bff79bb8779f1f | 473 | https://github.com/orktes/atom-react/blob/cc01f5f66fdf05dd7b236662f5bff79bb8779f1f/spec/atom-react-spec.coffee | 1 | 34 |
orktes/atom-react:spec/atom-react-spec.coffee:1:raw_corpus | raw_corpus | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage("language-javascript")
waitsForPromise ->
atom.packages.activatePack... | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | c970cebbf5199e5ed4c9c0cf191c74256c134055 | 473 | https://github.com/orktes/atom-react/blob/c970cebbf5199e5ed4c9c0cf191c74256c134055/spec/atom-react-spec.coffee | 1 | 27 | ||
orktes/atom-react:spec/atom-react-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage("language-javascript")... | describe("React tests", function() {
var sampleCorrectFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleInvalidFile = require.resolve('./fixtures/sample-invalid.js');
beforeEach(function() {
waitsForPromise(function() {
return atom.packages.activatePac... | CoffeeScript | JavaScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | c970cebbf5199e5ed4c9c0cf191c74256c134055 | 473 | https://github.com/orktes/atom-react/blob/c970cebbf5199e5ed4c9c0cf191c74256c134055/spec/atom-react-spec.coffee | 1 | 27 |
orktes/atom-react:spec/atom-react-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("React tests", function() {
var sampleCorrectFile, sampleInvalidFile;
sampleCorrectFile = require.resolve('./fixtures/sample-correct.js');
sampleInvalidFile = require.resolve('./fixtures/sample-invalid.js');
beforeEach(function() {
waitsForProm... | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage("language-javascript")
waitsForPromise ->
atom.packages.activatePack... | JavaScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | c970cebbf5199e5ed4c9c0cf191c74256c134055 | 473 | https://github.com/orktes/atom-react/blob/c970cebbf5199e5ed4c9c0cf191c74256c134055/spec/atom-react-spec.coffee | 1 | 27 |
orktes/atom-react:spec/atom-react-spec.coffee:1:completion | completion | describe "React tests", ->
sampleCorrectFile = require.resolve './fixtures/sample-correct.js'
sampleInvalidFile = require.resolve './fixtures/sample-invalid.js'
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage("language-javascript")
waitsForPromise ->
atom.packages.activatePack... | atom.packages.unloadPackages()
describe "should select correct grammar", ->
it "should select source.js.jsx if file has require('react')", ->
waitsForPromise ->
atom.workspace.open(sampleCorrectFile, autoIndent: false).then (editor) ->
expect(editor.getGrammar().scopeName).toEqual 'source... | CoffeeScript | CoffeeScript | orktes/atom-react | spec/atom-react-spec.coffee | MIT | c970cebbf5199e5ed4c9c0cf191c74256c134055 | 473 | https://github.com/orktes/atom-react/blob/c970cebbf5199e5ed4c9c0cf191c74256c134055/spec/atom-react-spec.coffee | 1 | 27 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:raw_corpus | raw_corpus | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | df034e0508916268f9d804098f966a269bbb7846 | 663 | https://github.com/buttercoin/buttercoin/blob/df034e0508916268f9d804098f966a269bbb7846/test/test_engine_web_adapter.coffee | 1 | 45 | ||
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test... | var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee');
EngineClient = require('../lib/en... | CoffeeScript | JavaScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | df034e0508916268f9d804098f966a269bbb7846 | 663 | https://github.com/buttercoin/buttercoin/blob/df034e0508916268f9d804098f966a269bbb7846/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websock... | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | JavaScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | df034e0508916268f9d804098f966a269bbb7846 | 663 | https://github.com/buttercoin/buttercoin/blob/df034e0508916268f9d804098f966a269bbb7846/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:completion | completion | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | @engine.verify()
done()
it 'should process a message correctly', (done) ->
mockConn = {
send: (result) ->
console.log 'RESULT: ', result
assert result is 'Success'
close: ->
done()
}
@wsa.process_message(mockConn, '{ "kind": "ADD_DEPOSIT", "account": "acct", "cur... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | df034e0508916268f9d804098f966a269bbb7846 | 663 | https://github.com/buttercoin/buttercoin/blob/df034e0508916268f9d804098f966a269bbb7846/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:raw_corpus | raw_corpus | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 74f046d937bc140b78f982005c99e2e2c2a21b5f | 663 | https://github.com/buttercoin/buttercoin/blob/74f046d937bc140b78f982005c99e2e2c2a21b5f/test/test_engine_web_adapter.coffee | 1 | 45 | ||
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test... | var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee');
EngineClient = require('../lib/en... | CoffeeScript | JavaScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 74f046d937bc140b78f982005c99e2e2c2a21b5f | 663 | https://github.com/buttercoin/buttercoin/blob/74f046d937bc140b78f982005c99e2e2c2a21b5f/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websock... | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | JavaScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 74f046d937bc140b78f982005c99e2e2c2a21b5f | 663 | https://github.com/buttercoin/buttercoin/blob/74f046d937bc140b78f982005c99e2e2c2a21b5f/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:completion | completion | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | @engine.verify()
done()
it 'should process a message correctly', (done) ->
mockConn = {
send: (result) ->
console.log 'RESULT: ', result
assert result is 'Success'
close: ->
done()
}
@wsa.process_message(mockConn, '{ "kind": "ADD_DEPOSIT", "account": "acct", "cur... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 74f046d937bc140b78f982005c99e2e2c2a21b5f | 663 | https://github.com/buttercoin/buttercoin/blob/74f046d937bc140b78f982005c99e2e2c2a21b5f/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:raw_corpus | raw_corpus | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 17f29f17399161f5fcb70c8323796f82a7068014 | 663 | https://github.com/buttercoin/buttercoin/blob/17f29f17399161f5fcb70c8323796f82a7068014/test/test_engine_web_adapter.coffee | 1 | 45 | ||
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test... | var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee');
EngineClient = require('../lib/en... | CoffeeScript | JavaScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 17f29f17399161f5fcb70c8323796f82a7068014 | 663 | https://github.com/buttercoin/buttercoin/blob/17f29f17399161f5fcb70c8323796f82a7068014/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = BE.ProcessingChainEntrance;
TradeEngine = BE.TradeEngine;
Journal = BE.Journal;
EngineWebAdapter = require('../lib/engine_websock... | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | JavaScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 17f29f17399161f5fcb70c8323796f82a7068014 | 663 | https://github.com/buttercoin/buttercoin/blob/17f29f17399161f5fcb70c8323796f82a7068014/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:completion | completion | ProcessingChainEntrance = BE.ProcessingChainEntrance
TradeEngine = BE.TradeEngine
Journal = BE.Journal
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach... | @engine.verify()
done()
it 'should process a message correctly', (done) ->
mockConn = {
send: (result) ->
console.log 'RESULT: ', result
assert result is 'Success'
close: ->
done()
}
@wsa.process_message(mockConn, '{ "kind": "ADD_DEPOSIT", "account": "acct", "cur... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | 17f29f17399161f5fcb70c8323796f82a7068014 | 663 | https://github.com/buttercoin/buttercoin/blob/17f29f17399161f5fcb70c8323796f82a7068014/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:raw_corpus | raw_corpus | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
desc... | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | b66728589b0582cfc1cc41f594fd2dc260cc75be | 663 | https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/test/test_engine_web_adapter.coffee | 1 | 45 | ||
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client'... | var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = require('../lib/processingchainentrance');
TradeEngine = require('../lib/trade_engine');
Journal = require('../lib/journal');
EngineWebAdapter = require('../lib/engine_websocket_adapte... | CoffeeScript | JavaScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | b66728589b0582cfc1cc41f594fd2dc260cc75be | 663 | https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineClient, EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = require('../lib/processingchainentrance');
TradeEngine = require('../lib/trade_engine');
Journal = require('../lib/journal');
Eng... | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
desc... | JavaScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | b66728589b0582cfc1cc41f594fd2dc260cc75be | 663 | https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:completion | completion | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
EngineClient = require('../lib/engine_client')
assert = chai.assert
kTestFilename = 'test.log'
desc... | @engine.verify()
done()
it 'should process a message correctly', (done) ->
mockConn = {
send: (result) ->
console.log 'RESULT: ', result
assert result is 'Success'
close: ->
done()
}
@wsa.process_message(mockConn, '{ "kind": "ADD_DEPOSIT", "account": "acct", "cur... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | b66728589b0582cfc1cc41f594fd2dc260cc75be | 663 | https://github.com/buttercoin/buttercoin/blob/b66728589b0582cfc1cc41f594fd2dc260cc75be/test/test_engine_web_adapter.coffee | 1 | 45 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:raw_corpus | raw_corpus | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach ... | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | c260f76580103d19dce6742873ea5d624b7db013 | 663 | https://github.com/buttercoin/buttercoin/blob/c260f76580103d19dce6742873ea5d624b7db013/test/test_engine_web_adapter.coffee | 1 | 35 | ||
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
assert = chai.assert
kTestFilename = 'test.... | var EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = require('../lib/processingchainentrance');
TradeEngine = require('../lib/trade_engine');
Journal = require('../lib/journal');
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee');
a... | CoffeeScript | JavaScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | c260f76580103d19dce6742873ea5d624b7db013 | 663 | https://github.com/buttercoin/buttercoin/blob/c260f76580103d19dce6742873ea5d624b7db013/test/test_engine_web_adapter.coffee | 1 | 35 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var EngineWebAdapter, Journal, ProcessingChainEntrance, TradeEngine, assert, kTestFilename;
ProcessingChainEntrance = require('../lib/processingchainentrance');
TradeEngine = require('../lib/trade_engine');
Journal = require('../lib/journal');
EngineWebAdapter ... | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach ... | JavaScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | c260f76580103d19dce6742873ea5d624b7db013 | 663 | https://github.com/buttercoin/buttercoin/blob/c260f76580103d19dce6742873ea5d624b7db013/test/test_engine_web_adapter.coffee | 1 | 35 |
buttercoin/buttercoin:test/test_engine_web_adapter.coffee:1:completion | completion | ProcessingChainEntrance = require('../lib/processingchainentrance')
TradeEngine = require('../lib/trade_engine')
Journal = require('../lib/journal')
EngineWebAdapter = require('../lib/engine_websocket_adapter.coffee')
assert = chai.assert
kTestFilename = 'test.log'
describe 'EngineWebsocketAdapter', ->
beforeEach ... | afterEach (done) ->
@journal.verify()
@replication.verify()
@engine.verify()
done()
it 'should process a message correctly', (done) ->
mockConn = {
send: (result) ->
console.log 'RESULT: ', result
assert result is 'Success'
close: ->
done()
}
@wsa.pro... | CoffeeScript | CoffeeScript | buttercoin/buttercoin | test/test_engine_web_adapter.coffee | MIT | c260f76580103d19dce6742873ea5d624b7db013 | 663 | https://github.com/buttercoin/buttercoin/blob/c260f76580103d19dce6742873ea5d624b7db013/test/test_engine_web_adapter.coffee | 1 | 35 |
Glavin001/atom-beautify:src/beautifiers/erl_tidy.coffee:1:raw_corpus | raw_corpus | ###
Requires https://github.com/hhatto/autopep8
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class ErlTidy extends Beautifier
name: "erl_tidy"
link: "http://erlang.org/doc/man/erl_tidy.html"
isPreInstalled: false
options: {
Erlang: true
}
beautify: (text, language, options... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/erl_tidy.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/erl_tidy.coffee | 1 | 30 | ||
Glavin001/atom-beautify:src/beautifiers/erl_tidy.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Requires https://github.com/hhatto/autopep8
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class ErlTidy extends Beautifier
name: "erl_tidy"
link: "http://erlang.org/doc/man/erl_tidy.html"
isPreInstalled: false
options: {
... | /*
Requires https://github.com/hhatto/autopep8
*/
"use strict";
var Beautifier, ErlTidy;
Beautifier = require('./beautifier');
module.exports = ErlTidy = (function() {
class ErlTidy extends Beautifier {
beautify(text, language, options) {
var tempFile;
tempFile = void 0;
return this.tempFile("... | CoffeeScript | JavaScript | Glavin001/atom-beautify | src/beautifiers/erl_tidy.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/erl_tidy.coffee | 1 | 30 |
Glavin001/atom-beautify:src/beautifiers/erl_tidy.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Requires https://github.com/hhatto/autopep8
*/
"use strict";
var Beautifier, ErlTidy;
Beautifier = require('./beautifier');
module.exports = ErlTidy = (function() {
class ErlTidy extends Beautifier {
beautify(text, language, options) {
var tempFile... | ###
Requires https://github.com/hhatto/autopep8
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class ErlTidy extends Beautifier
name: "erl_tidy"
link: "http://erlang.org/doc/man/erl_tidy.html"
isPreInstalled: false
options: {
Erlang: true
}
beautify: (text, language, options... | JavaScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/erl_tidy.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/erl_tidy.coffee | 1 | 30 |
Glavin001/atom-beautify:src/beautifiers/erl_tidy.coffee:1:completion | completion | ###
Requires https://github.com/hhatto/autopep8
###
"use strict"
Beautifier = require('./beautifier')
module.exports = class ErlTidy extends Beautifier
name: "erl_tidy"
link: "http://erlang.org/doc/man/erl_tidy.html"
isPreInstalled: false
options: {
Erlang: true | }
beautify: (text, language, options) ->
tempFile = undefined
@tempFile("input", text).then((path) =>
tempFile = path
@run("erl", [
["-eval", 'erl_tidy:file("' + tempFile + '")']
["-noshell", "-s", "init", "stop"]
],
{ help: { link: "http://erlang.org/doc/man/erl_t... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/erl_tidy.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/erl_tidy.coffee | 1 | 30 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:raw_corpus | raw_corpus | describe "iframe editor", ->
$inputor = null
app = null
$ = jQuery
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.body) is null # IE
doc.write "<body></body>"
... | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | a627b5fcac22c35d52b7fb6d8a93181d2546f3c0 | 5,250 | https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/iframe.spec.coffee | 1 | 30 | ||
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "iframe editor", ->
$inputor = null
app = null
$ = jQuery
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.b... | describe("iframe editor", function() {
var $, $inputor, app;
$inputor = null;
app = null;
$ = jQuery;
beforeEach(function() {
var doc, ifr, ifrBody;
loadFixtures("inputors.html");
ifr = $('#iframeInput')[0];
doc = ifr.contentDocument || iframe.contentWindow.document;
if ((ifrBody = doc.bod... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | a627b5fcac22c35d52b7fb6d8a93181d2546f3c0 | 5,250 | https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/iframe.spec.coffee | 1 | 30 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("iframe editor", function() {
var $, $inputor, app;
$inputor = null;
app = null;
$ = jQuery;
beforeEach(function() {
var doc, ifr, ifrBody;
loadFixtures("inputors.html");
ifr = $('#iframeInput')[0];
doc = ifr.contentDocument || if... | describe "iframe editor", ->
$inputor = null
app = null
$ = jQuery
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.body) is null # IE
doc.write "<body></body>"
... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | a627b5fcac22c35d52b7fb6d8a93181d2546f3c0 | 5,250 | https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/iframe.spec.coffee | 1 | 30 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:completion | completion | describe "iframe editor", ->
$inputor = null
app = null
$ = jQuery
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.body) is null # IE
doc.write "<body></body>"
... | $inputor.atwho('setIframe', ifr)
$inputor.atwho(at: "@", data: ['Jobs'])
app = getAppOf $inputor
afterEach ->
$inputor.atwho 'destroy'
it "can insert content", ->
triggerAtwhoAt $inputor
expect($inputor.text()).toContain('@Jobs')
it "insert by click", ->
simulateTy... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | a627b5fcac22c35d52b7fb6d8a93181d2546f3c0 | 5,250 | https://github.com/ichord/At.js/blob/a627b5fcac22c35d52b7fb6d8a93181d2546f3c0/spec/javascripts/iframe.spec.coffee | 1 | 30 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:raw_corpus | raw_corpus | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.body) is null # IE
doc.write "<body></body>"
ifrBody = doc.body
ifrBody.contentEd... | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/iframe.spec.coffee | 1 | 29 | ||
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:completion | completion | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
doc = ifr.contentDocument || iframe.contentWindow.document
if (ifrBody = doc.body) is null # IE
doc.write "<body></body>"
ifrBody = doc.body
ifrBody.contentEd... | $inputor = $(ifrBody)
$inputor.atwho('setIframe', ifr)
$inputor.atwho(at: "@", data: ['Jobs'])
app = getAppOf $inputor
afterEach ->
$inputor.atwho 'destroy'
it "can insert content", ->
triggerAtwhoAt $inputor
expect($inputor.text()).toContain('@Jobs')
it "insert by click", ->
simulat... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/iframe.spec.coffee | 1 | 29 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:raw_corpus | raw_corpus | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
ifrBody = ifr.contentDocument.body
ifrBody.contentEditable = true
ifrBody.id = 'ifrBody'
ifrBody.innerHTML = 'Stay Foolish, Stay Hungry. @Jobs'
$inputor = $(ifrBo... | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | 4d3fb8fcebea1bee5314b2022f37a9554bbc8b57 | 5,250 | https://github.com/ichord/At.js/blob/4d3fb8fcebea1bee5314b2022f37a9554bbc8b57/spec/javascripts/iframe.spec.coffee | 1 | 24 | ||
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:completion | completion | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
ifrBody = ifr.contentDocument.body
ifrBody.contentEditable = true
ifrBody.id = 'ifrBody'
ifrBody.innerHTML = 'Stay Foolish, Stay Hungry. @Jobs'
$inputor = $(ifrBo... | $inputor.atwho('setIframe', ifr)
$inputor.atwho(at: "@", data: ['Jobs'])
app = getAppOf $inputor
it "can insert content", ->
triggerAtwhoAt $inputor
expect($inputor.text()).toContain('@Jobs')
it "insert by click", ->
simulateTypingIn $inputor
app.controller().view.$el.find('ul').children()... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | 4d3fb8fcebea1bee5314b2022f37a9554bbc8b57 | 5,250 | https://github.com/ichord/At.js/blob/4d3fb8fcebea1bee5314b2022f37a9554bbc8b57/spec/javascripts/iframe.spec.coffee | 1 | 24 |
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:raw_corpus | raw_corpus | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
ifrBody = ifr.contentDocument.body
ifrBody.contentEditable = true
ifrBody.id = 'ifrBody'
ifrBody.innerHTML = 'Stay Foolish, Stay Hungry. @Jobs'
$inputor = $(ifrBo... | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | e028042d0045d491b94bc51ecbb8462ac71ff902 | 5,250 | https://github.com/ichord/At.js/blob/e028042d0045d491b94bc51ecbb8462ac71ff902/spec/javascripts/iframe.spec.coffee | 1 | 22 | ||
ichord/At.js:spec/javascripts/iframe.spec.coffee:1:completion | completion | describe "iframe editor", ->
$inputor = null
app = null
beforeEach ->
loadFixtures "inputors.html"
ifr = $('#iframeInput')[0]
ifrBody = ifr.contentDocument.body
ifrBody.contentEditable = true
ifrBody.id = 'ifrBody'
ifrBody.innerHTML = 'Stay Foolish, Stay Hungry. @Jobs' | $inputor = $(ifrBody).atwho at: "@", data: ['Jobs']
app = getAppOf $inputor
it "can insert content", ->
triggerAtwhoAt $inputor
expect($inputor.text()).toContain('@Jobs')
it "insert by click", ->
simulateTypingIn $inputor
app.controller().view.$el.find('ul').children().first().trigger('click')... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/iframe.spec.coffee | MIT | e028042d0045d491b94bc51ecbb8462ac71ff902 | 5,250 | https://github.com/ichord/At.js/blob/e028042d0045d491b94bc51ecbb8462ac71ff902/spec/javascripts/iframe.spec.coffee | 1 | 22 |
jianliaoim/talk-os:talk-web/client/app/file-glance.coffee:1:raw_corpus | raw_corpus | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
eventBus = require '../event-bus'
T = React.PropTypes
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'file-glance'
mixins: [PureRenderMixin]
propTypes:
file... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-glance.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-glance.coffee | 1 | 34 | ||
jianliaoim/talk-os:talk-web/client/app/file-glance.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'
eventBus = require '../event-bus'
T = React.PropTypes
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'file-g... | var Immutable, PureRenderMixin, React, T, eventBus, span;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
eventBus = require('../event-bus');
T = React.PropTypes;
span = React.createFactory('span');
module.exports = React.createClass({
di... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-glance.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-glance.coffee | 1 | 34 |
jianliaoim/talk-os:talk-web/client/app/file-glance.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Immutable, PureRenderMixin, React, T, eventBus, span;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
eventBus = require('../event-bus');
T = React.PropTypes;
span = React.createFact... | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
eventBus = require '../event-bus'
T = React.PropTypes
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'file-glance'
mixins: [PureRenderMixin]
propTypes:
file... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-glance.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-glance.coffee | 1 | 34 |
jianliaoim/talk-os:talk-web/client/app/file-glance.coffee:1:completion | completion | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
eventBus = require '../event-bus'
T = React.PropTypes
span = React.createFactory 'span'
module.exports = React.createClass
displayName: 'file-glance'
mixins: [PureRenderMixin]
propTypes:
file... | isLocal: ->
# no fileKey before uploaded to server
not @props.file.get('fileKey')?
onClick: ->
@props.onClick()
renderProgress: ->
if @isLocal() and @props.progress?
span className: 'muted percentage',
" (#{(@props.progress * 100).toFixed()}%)"
render: ->
span className: 'file... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-glance.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-glance.coffee | 1 | 34 |
jianliaoim/talk-os:talk-web/client/app/msg-snippet.coffee:1:raw_corpus | raw_corpus | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
detect = require '../util/detect'
format = require '../util/format'
lang = require '../locales/lang'
mixinMessageHandler = require '../mixin/message-handler'
T = React.PropTypes
div = React.createFactory 'div'
span = React.createFa... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/msg-snippet.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/msg-snippet.coffee | 1 | 40 | ||
jianliaoim/talk-os:talk-web/client/app/msg-snippet.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
detect = require '../util/detect'
format = require '../util/format'
lang = require '../locales/lang'
mixinMessageHandler = require '../mixin/message-handler'
T = React.PropType... | var PureRenderMixin, React, T, detect, div, format, lang, mixinMessageHandler, span;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
detect = require('../util/detect');
format = require('../util/format');
lang = require('../locales/lang');
mixinMessageHandler = require('../m... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/msg-snippet.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/msg-snippet.coffee | 1 | 40 |
jianliaoim/talk-os:talk-web/client/app/msg-snippet.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PureRenderMixin, React, T, detect, div, format, lang, mixinMessageHandler, span;
React = require('react');
PureRenderMixin = require('react-addons-pure-render-mixin');
detect = require('../util/detect');
format = require('../util/format');
lang = require('... | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
detect = require '../util/detect'
format = require '../util/format'
lang = require '../locales/lang'
mixinMessageHandler = require '../mixin/message-handler'
T = React.PropTypes
div = React.createFactory 'div'
span = React.createFa... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/msg-snippet.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/msg-snippet.coffee | 1 | 40 |
jianliaoim/talk-os:talk-web/client/app/msg-snippet.coffee:1:completion | completion | React = require 'react'
PureRenderMixin = require 'react-addons-pure-render-mixin'
detect = require '../util/detect'
format = require '../util/format'
lang = require '../locales/lang'
mixinMessageHandler = require '../mixin/message-handler'
T = React.PropTypes
div = React.createFactory 'div'
span = React.createFa... | message: T.object.isRequired
onClick: ->
@onSnippetViewerShow()
render: ->
if @props.message.get('attachments').get(0).getIn(['data', 'title']) isnt ''
content = @props.message.get('attachments').get(0).getIn(['data', 'title'])
else if @props.message.get('attachments').get(0).getIn(['data', 'tex... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/msg-snippet.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/msg-snippet.coffee | 1 | 40 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title:Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title:Conversations", 2)
togglemenu = ->
if process.platform isnt 'darwin'
acti... | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/listhead.coffee | 1 | 10 | ||
yakyak/yakyak:src/ui/views/listhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title:Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title:Conversations", 2)
... | var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu.title:Menu'),
onclick: togglemenu
}, function() {
return i({
class: 'material-icons'
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu.title:Menu'),
onclick: togglemenu
}, function() ... | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title:Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title:Conversations", 2)
togglemenu = ->
if process.platform isnt 'darwin'
acti... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:completion | completion | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title:Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu" | span i18n.__n("conversation.title:Conversations", 2)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title", 2)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/listhead.coffee | 1 | 10 | ||
yakyak/yakyak:src/ui/views/listhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title", 2)
togglemenu = ->
if... | var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu.title'),
onclick: togglemenu
}, function() {
return i({
class: 'material-icons'
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu.title'),
onclick: togglemenu
}, function() {
... | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation.title", 2)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:completion | completion | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu.title'), onclick: togglemenu, ->
i class:'material-icons', "menu" | span i18n.__n("conversation.title", 2)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 3d558a4734bbe995662591bf26b6555ad696f4ff | 3,762 | https://github.com/yakyak/yakyak/blob/3d558a4734bbe995662591bf26b6555ad696f4ff/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation", 0)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/listhead.coffee | 1 | 10 | ||
yakyak/yakyak:src/ui/views/listhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation", 0)
togglemenu = ->
if process.pla... | var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu'),
onclick: togglemenu
}, function() {
return i({
class: 'material-icons'
}, ... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('menu'),
onclick: togglemenu
}, function() {
r... | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__n("conversation", 0)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:completion | completion | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('menu'), onclick: togglemenu, ->
i class:'material-icons', "menu" | span i18n.__n("conversation", 0)
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9bb6cee69ac56cfb04b9654f108b2352260b37c1 | 3,762 | https://github.com/yakyak/yakyak/blob/9bb6cee69ac56cfb04b9654f108b2352260b37c1/src/ui/views/listhead.coffee | 1 | 10 | ||
yakyak/yakyak:src/ui/views/listhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platfo... | var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('Menu'),
onclick: togglemenu
}, function() {
return i({
class: 'material-icons'
}, ... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9bb6cee69ac56cfb04b9654f108b2352260b37c1 | 3,762 | https://github.com/yakyak/yakyak/blob/9bb6cee69ac56cfb04b9654f108b2352260b37c1/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('Menu'),
onclick: togglemenu
}, function() {
r... | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9bb6cee69ac56cfb04b9654f108b2352260b37c1 | 3,762 | https://github.com/yakyak/yakyak/blob/9bb6cee69ac56cfb04b9654f108b2352260b37c1/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:completion | completion | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__('Menu'), onclick: togglemenu, ->
i class:'material-icons', "menu" | span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | 9bb6cee69ac56cfb04b9654f108b2352260b37c1 | 3,762 | https://github.com/yakyak/yakyak/blob/9bb6cee69ac56cfb04b9654f108b2352260b37c1/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__ 'Menu', onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/listhead.coffee | 1 | 10 | ||
yakyak/yakyak:src/ui/views/listhead.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__ 'Menu', onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platfor... | var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('Menu', {
onclick: togglemenu
}, function() {
return i({
class: 'material-icons'
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var togglemenu;
module.exports = view(function(models) {
return div({
class: 'listheadlabel'
}, function() {
if (process.platform !== 'darwin') {
button({
title: i18n.__('Menu', {
onclick: togglemenu
}, function() {
... | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__ 'Menu', onclick: togglemenu, ->
i class:'material-icons', "menu"
span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/listhead.coffee | 1 | 10 |
yakyak/yakyak:src/ui/views/listhead.coffee:1:completion | completion | module.exports = view (models) ->
div class:'listheadlabel', ->
if process.platform isnt 'darwin'
button title: i18n.__ 'Menu', onclick: togglemenu, ->
i class:'material-icons', "menu" | span i18n.__("Conversations")
togglemenu = ->
if process.platform isnt 'darwin'
action 'togglemenu' | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/listhead.coffee | MIT | a39f0e9e0ff32ba2f891b57d033961c3161b801e | 3,762 | https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/listhead.coffee | 1 | 10 |
jnordberg/wintersmith:src/cli/index.coffee:1:raw_corpus | raw_corpus | chalk = require 'chalk'
parseArgv = require 'minimist'
path = require 'path'
{logger} = require './../core/logger'
{extendOptions} = require './common'
usage = """
usage: wintersmith [options] [command]
commands:
#{ chalk.bold 'build' } [options] - build a site
#{ chalk.bold 'preview' } [options] - ru... | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/cli/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
chalk = require 'chalk'
parseArgv = require 'minimist'
path = require 'path'
{logger} = require './../core/logger'
{extendOptions} = require './common'
usage = """
usage: wintersmith [options] [command]
commands:
#{ chalk.bold 'build' } [options] - ... | var chalk, extendOptions, globalOptions, logger, main, parseArgv, path, usage;
chalk = require('chalk');
parseArgv = require('minimist');
path = require('path');
({logger} = require('./../core/logger'));
({extendOptions} = require('./common'));
usage = `
usage: wintersmith [options] [command]
commands:
${chal... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/cli/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var chalk, extendOptions, globalOptions, logger, main, parseArgv, path, usage;
chalk = require('chalk');
parseArgv = require('minimist');
path = require('path');
({logger} = require('./../core/logger'));
({extendOptions} = require('./common'));
usage = `
usag... | chalk = require 'chalk'
parseArgv = require 'minimist'
path = require 'path'
{logger} = require './../core/logger'
{extendOptions} = require './common'
usage = """
usage: wintersmith [options] [command]
commands:
#{ chalk.bold 'build' } [options] - build a site
#{ chalk.bold 'preview' } [options] - ru... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/cli/index.coffee:1:completion | completion | chalk = require 'chalk'
parseArgv = require 'minimist'
path = require 'path'
{logger} = require './../core/logger'
{extendOptions} = require './common'
usage = """
usage: wintersmith [options] [command]
commands:
#{ chalk.bold 'build' } [options] - build a site
#{ chalk.bold 'preview' } [options] - ru... | -V, --version output version and exit
-h, --help show help
"""
globalOptions =
boolean: ['verbose', 'quiet', 'version', 'help']
alias:
verbose: 'v'
quiet: 'q'
version: 'V'
help: 'h'
main = (argv) ->
opts = parseArgv argv, globalOptions
cmd = opts._[2]
if cmd?
try
cmd ... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 1 | 50 |
jnordberg/wintersmith:src/cli/index.coffee:2:raw_corpus | raw_corpus | else
throw error
if opts.version
console.log require './version'
process.exit 0
if opts.help or !cmd
console.log if cmd then cmd.usage else usage
process.exit 0
if opts.verbose
if '-vv' in argv
logger.transports[0].level = 'silly'
else
logger.transports[0].level = 'v... | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 51 | 76 | ||
jnordberg/wintersmith:src/cli/index.coffee:2:completion | completion | else
throw error
if opts.version
console.log require './version'
process.exit 0
if opts.help or !cmd
console.log if cmd then cmd.usage else usage
process.exit 0
if opts.verbose
if '-vv' in argv | logger.transports[0].level = 'silly'
else
logger.transports[0].level = 'verbose'
if opts.quiet
logger.transports[0].quiet = true
if cmd
extendOptions cmd.options, globalOptions
opts = parseArgv argv, cmd.options
cmd opts
module.exports.main = main | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/cli/index.coffee | 51 | 76 |
jnordberg/wintersmith:src/cli/index.coffee:2:raw_corpus | raw_corpus | else
throw error
if opts.version
console.log require './version'
process.exit 0
if opts.help or !cmd
console.log if cmd then cmd.usage else usage
process.exit 0
if opts.verbose
if '-vv' in argv
logger.transports.cli.level = 'silly'
else
logger.transports.cli.level = ... | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | 80efa7f4dbc82082b4be0dec7c2cdbcee4b59e0a | 3,484 | https://github.com/jnordberg/wintersmith/blob/80efa7f4dbc82082b4be0dec7c2cdbcee4b59e0a/src/cli/index.coffee | 51 | 76 | ||
jnordberg/wintersmith:src/cli/index.coffee:2:completion | completion | else
throw error
if opts.version
console.log require './version'
process.exit 0
if opts.help or !cmd
console.log if cmd then cmd.usage else usage
process.exit 0
if opts.verbose
if '-vv' in argv | logger.transports.cli.level = 'silly'
else
logger.transports.cli.level = 'verbose'
if opts.quiet
logger.transports.cli.quiet = true
if cmd
extendOptions cmd.options, globalOptions
opts = parseArgv argv, cmd.options
cmd opts
module.exports.main = main | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/cli/index.coffee | MIT | 80efa7f4dbc82082b4be0dec7c2cdbcee4b59e0a | 3,484 | https://github.com/jnordberg/wintersmith/blob/80efa7f4dbc82082b4be0dec7c2cdbcee4b59e0a/src/cli/index.coffee | 51 | 76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.