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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cdglabs/apparatus:src/Model/SerializerWithBuiltIns.coffee:1:completion | completion | _ = require "underscore"
Dataflow = require "../Dataflow/Dataflow"
Model = require "./Model"
Util = require "../Util/Util"
Storage = require "../Storage/Storage"
module.exports = SerializerWithBuiltIns = {}
SerializerWithBuiltIns.getSerializer = ->
builtInObjects = []
for own name, object of _builtIn()
if _... | object = object.prototype
Util.assignId(object, name)
builtInObjects.push(object)
return new Storage.Serializer(builtInObjects)
# builtIn returns all of the built in classes and objects that are used as
# the "anchors" for serialization and deserialization. That is, all of the
# objects and classes which sho... | CoffeeScript | CoffeeScript | cdglabs/apparatus | src/Model/SerializerWithBuiltIns.coffee | MIT | 666399f42bd64a6c01357fe7e536fb0e8b85d874 | 1,052 | https://github.com/cdglabs/apparatus/blob/666399f42bd64a6c01357fe7e536fb0e8b85d874/src/Model/SerializerWithBuiltIns.coffee | 1 | 29 |
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_existence.coffee:1:raw_corpus | raw_corpus | ok(if my_special_variable? then false else true)
my_special_variable: false
ok(if my_special_variable? then true else false)
# Existential assignment.
a: 5
a: null
a ?= 10
b ?= 10
ok a is 10 and b is 10
# The existential operator.
z: null
x: z ? "EX"
ok z is null and x is "EX"
# Only evaluate once.
counter: 0... | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_existence.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_existence.coffee | 1 | 50 | ||
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_existence.coffee:1:completion | completion | ok(if my_special_variable? then false else true)
my_special_variable: false
ok(if my_special_variable? then true else false)
# Existential assignment.
a: 5
a: null
a ?= 10
b ?= 10
ok a is 10 and b is 10
# The existential operator.
z: null
x: z ? "EX"
ok z is null and x is "EX"
# Only evaluate once. | counter: 0
get_next_node: ->
throw "up" if counter
counter++
ok(if get_next_node()? then true else false)
# Existence chains, soaking up undefined properties:
obj: {
prop: "hello"
}
ok obj?.prop is "hello"
ok obj?['prop'] is "hello"
ok obj.prop?.length is 5
ok obj?['prop']?['length'] is 5
ok obj?.prop?.no... | CoffeeScript | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/test/test_existence.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_existence.coffee | 1 | 50 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socke... | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | c18ea41fe28ee588fe9c5b88e1f18852616f120e | 815 | https://github.com/octoblu/meshblu/blob/c18ea41fe28ee588fe9c5b88e1f18852616f120e/lib/SocketLogicThrottler.coffee | 1 | 18 | ||
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady',{error... | var QueryThrottle, SocketLogicThrottler, _, debug;
_ = require('lodash');
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.onThrottle = this.onThrottle.bind(this);
this.throt... | CoffeeScript | JavaScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | c18ea41fe28ee588fe9c5b88e1f18852616f120e | 815 | https://github.com/octoblu/meshblu/blob/c18ea41fe28ee588fe9c5b88e1f18852616f120e/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var QueryThrottle, SocketLogicThrottler, _, debug;
_ = require('lodash');
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.... | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socke... | JavaScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | c18ea41fe28ee588fe9c5b88e1f18852616f120e | 815 | https://github.com/octoblu/meshblu/blob/c18ea41fe28ee588fe9c5b88e1f18852616f120e/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:completion | completion | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle', 'notReady' | @socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socket.disconnect(true)
throttle: (callback=->) => => # Not a typo, returning a curried function
originalArguments = arguments
new QueryThrottle().throttle @socket.id, @onThrottle, =>
callback.apply this, originalArgument... | CoffeeScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | c18ea41fe28ee588fe9c5b88e1f18852616f120e | 815 | https://github.com/octoblu/meshblu/blob/c18ea41fe28ee588fe9c5b88e1f18852616f120e/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: (error) =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady', {error: {message: error.message, code: error.status}}
... | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 432c25fe2000825c95dfbfd29fb4985a4ba70418 | 815 | https://github.com/octoblu/meshblu/blob/432c25fe2000825c95dfbfd29fb4985a4ba70418/lib/SocketLogicThrottler.coffee | 1 | 18 | ||
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: (error) =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady... | var QueryThrottle, SocketLogicThrottler, _, debug;
_ = require('lodash');
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.onThrottle = this.onThrottle.bind(this);
this.throt... | CoffeeScript | JavaScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 432c25fe2000825c95dfbfd29fb4985a4ba70418 | 815 | https://github.com/octoblu/meshblu/blob/432c25fe2000825c95dfbfd29fb4985a4ba70418/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var QueryThrottle, SocketLogicThrottler, _, debug;
_ = require('lodash');
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.... | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: (error) =>
debug 'onThrottle', 'notReady'
@socket.emit 'notReady', {error: {message: error.message, code: error.status}}
... | JavaScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 432c25fe2000825c95dfbfd29fb4985a4ba70418 | 815 | https://github.com/octoblu/meshblu/blob/432c25fe2000825c95dfbfd29fb4985a4ba70418/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:completion | completion | _ = require 'lodash'
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: (error) =>
debug 'onThrottle', 'notReady' | @socket.emit 'notReady', {error: {message: error.message, code: error.status}}
@socket.disconnect(true)
throttle: (callback=->) => => # Not a typo, returning a curried function
originalArguments = arguments
new QueryThrottle().throttle @socket.id, @onThrottle, =>
callback.apply this, originalArgume... | CoffeeScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 432c25fe2000825c95dfbfd29fb4985a4ba70418 | 815 | https://github.com/octoblu/meshblu/blob/432c25fe2000825c95dfbfd29fb4985a4ba70418/lib/SocketLogicThrottler.coffee | 1 | 18 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:raw_corpus | raw_corpus | debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle'
@socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socket.disconnect(true)
throttle: (... | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 1599207147525affc7770157e02c4e6573ced932 | 815 | https://github.com/octoblu/meshblu/blob/1599207147525affc7770157e02c4e6573ced932/lib/SocketLogicThrottler.coffee | 1 | 17 | ||
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle'
@socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded'... | var QueryThrottle, SocketLogicThrottler, debug;
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.onThrottle = this.onThrottle.bind(this);
this.throttle = this.throttle.bind(th... | CoffeeScript | JavaScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 1599207147525affc7770157e02c4e6573ced932 | 815 | https://github.com/octoblu/meshblu/blob/1599207147525affc7770157e02c4e6573ced932/lib/SocketLogicThrottler.coffee | 1 | 17 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var QueryThrottle, SocketLogicThrottler, debug;
debug = require('debug')('meshblu:SocketLogicThrottler');
QueryThrottle = require('./QueryThrottle');
SocketLogicThrottler = class SocketLogicThrottler {
constructor(socket) {
this.onThrottle = this.onThrottl... | debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle'
@socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socket.disconnect(true)
throttle: (... | JavaScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 1599207147525affc7770157e02c4e6573ced932 | 815 | https://github.com/octoblu/meshblu/blob/1599207147525affc7770157e02c4e6573ced932/lib/SocketLogicThrottler.coffee | 1 | 17 |
octoblu/meshblu:lib/SocketLogicThrottler.coffee:1:completion | completion | debug = require('debug')('meshblu:SocketLogicThrottler')
QueryThrottle = require './QueryThrottle'
class SocketLogicThrottler
constructor: (@socket) ->
onThrottle: =>
debug 'onThrottle' | @socket.emit 'notReady',{error: {message: 'Rate Limit Exceeded', code: 429}}
@socket.disconnect(true)
throttle: (callback=->) => => # Not a typo, returning a curried function
originalArguments = arguments
new QueryThrottle().throttle @socket.id, @onThrottle, =>
callback.apply this, originalArgument... | CoffeeScript | CoffeeScript | octoblu/meshblu | lib/SocketLogicThrottler.coffee | MIT | 1599207147525affc7770157e02c4e6573ced932 | 815 | https://github.com/octoblu/meshblu/blob/1599207147525affc7770157e02c4e6573ced932/lib/SocketLogicThrottler.coffee | 1 | 17 |
abe33/atom-pigments:lib/utils.coffee:1:raw_corpus | raw_corpus | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
insensitive: (s) ->
s.split(/(?:)/).map((c) -> "(?:#{c}|#{c.toUp... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 1 | 50 | ||
abe33/atom-pigments:lib/utils.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
insensitive... | var utils;
utils = {
fill: function(str, length, filler = '0') {
while (str.length < length) {
str = filler + str;
}
return str;
},
strip: function(str) {
return str.replace(/\s+/g, '');
},
clamp: function(n) {
return Math.min(1, Math.max(0, n));
},
clampInt: function(n, max = 1... | CoffeeScript | JavaScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var utils;
utils = {
fill: function(str, length, filler = '0') {
while (str.length < length) {
str = filler + str;
}
return str;
},
strip: function(str) {
return str.replace(/\s+/g, '');
},
clamp: function(n) {
return Math.min(1... | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
insensitive: (s) ->
s.split(/(?:)/).map((c) -> "(?:#{c}|#{c.toUp... | JavaScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:1:completion | completion | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
insensitive: (s) ->
s.split(/(?:)/).map((c) -> "(?:#{c}|#{c.toUp... | res = parseInt(vars[value].value, base)
res
countLines: (string) -> string.split(/\r\n|\r|\n/g).length
readIntOrPercent: (value, vars={}, color) ->
if not /\d+/.test(value) and vars[value]?
color.usedVariables.push(value)
value = vars[value].value
return NaN unless value?
if value.in... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:2:raw_corpus | raw_corpus | if amount.indexOf('%') isnt -1
res = parseFloat(amount) / 100
else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.length
curStr = s.substr index++, 1
if curStr ... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 51 | 100 | ||
abe33/atom-pigments:lib/utils.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
if amount.indexOf('%') isnt -1
res = parseFloat(amount) / 100
else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.le... | var res;
if (amount.indexOf('%') !== -1) {
res = parseFloat(amount) / 100;
} else {
res = parseFloat(amount);
}
res;
({
findClosingIndex: function(s, startIndex = 0, openingChar = "[", closingChar = "]") {
var curStr, index, nests;
index = startIndex;
nests = 1;
while (nests && index < s.length... | CoffeeScript | JavaScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 51 | 100 |
abe33/atom-pigments:lib/utils.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var res;
if (amount.indexOf('%') !== -1) {
res = parseFloat(amount) / 100;
} else {
res = parseFloat(amount);
}
res;
({
findClosingIndex: function(s, startIndex = 0, openingChar = "[", closingChar = "]") {
var curStr, index, nests;
index = startInd... | if amount.indexOf('%') isnt -1
res = parseFloat(amount) / 100
else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.length
curStr = s.substr index++, 1
if curStr ... | JavaScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 51 | 100 |
abe33/atom-pigments:lib/utils.coffee:2:completion | completion | if amount.indexOf('%') isnt -1
res = parseFloat(amount) / 100
else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.length
curStr = s.substr index++, 1
if curStr ... | i = 0
start = 0
previousStart = start
`whileLoop: //`
while i < l
c = s.substr(i, 1)
switch(c)
when "("
i = utils.findClosingIndex s, i + 1, c, ")"
`break whileLoop` if i is -1
# A parser regexp will end with the last ), so sequences like (...)(...)
... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 51 | 100 |
abe33/atom-pigments:lib/utils.coffee:3:raw_corpus | raw_corpus | `break whileLoop` if previousStart is start
previousStart = start
i++
a.push utils.strip s.substr start, i - start
a.filter (s) -> s? and s.length | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 101 | 107 | ||
abe33/atom-pigments:lib/utils.coffee:3:completion | completion | `break whileLoop` if previousStart is start
previousStart = start | i++
a.push utils.strip s.substr start, i - start
a.filter (s) -> s? and s.length | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4 | 518 | https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/lib/utils.coffee | 101 | 107 |
abe33/atom-pigments:lib/utils.coffee:1:raw_corpus | raw_corpus | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
readFloat: (value, vars={}, color) ->
res = parseFloat(value)
... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 1 | 50 | ||
abe33/atom-pigments:lib/utils.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
readFloat: ... | var utils;
utils = {
fill: function(str, length, filler = '0') {
while (str.length < length) {
str = filler + str;
}
return str;
},
strip: function(str) {
return str.replace(/\s+/g, '');
},
clamp: function(n) {
return Math.min(1, Math.max(0, n));
},
clampInt: function(n, max = 1... | CoffeeScript | JavaScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var utils;
utils = {
fill: function(str, length, filler = '0') {
while (str.length < length) {
str = filler + str;
}
return str;
},
strip: function(str) {
return str.replace(/\s+/g, '');
},
clamp: function(n) {
return Math.min(1... | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
readFloat: (value, vars={}, color) ->
res = parseFloat(value)
... | JavaScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:1:completion | completion | utils =
fill: (str, length, filler='0') ->
str = filler + str while str.length < length
str
strip: (str) -> str.replace(/\s+/g, '')
clamp: (n) -> Math.min(1, Math.max(0, n))
clampInt: (n, max=100) -> Math.min(max, Math.max(0, n))
readFloat: (value, vars={}, color) ->
res = parseFloat(value)
... | countLines: (string) -> string.split(/\r\n|\r|\n/g).length
readIntOrPercent: (value, vars={}, color) ->
if not /\d+/.test(value) and vars[value]?
color.usedVariables.push(value)
value = vars[value].value
return NaN unless value?
if value.indexOf('%') isnt -1
res = Math.round(parseFloa... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 1 | 50 |
abe33/atom-pigments:lib/utils.coffee:2:raw_corpus | raw_corpus | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 51 | 100 | ||
abe33/atom-pigments:lib/utils.coffee:2:completion | completion | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests and index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | previousStart = start
`whileLoop: //`
while i < l
c = s.substr(i, 1)
switch(c)
when "("
i = utils.findClosingIndex s, i + 1, c, ")"
`break whileLoop` if i is -1
# A parser regexp will end with the last ), so sequences like (...)(...)
# will end after the ... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 51 | 100 |
abe33/atom-pigments:lib/utils.coffee:3:raw_corpus | raw_corpus | i++
a.push utils.strip s.substr start, i - start
a.filter (s) -> s? and s.length | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa | 518 | https://github.com/abe33/atom-pigments/blob/4f52ba925ec5ef67d1cbf999cdecbec5a5ee76aa/lib/utils.coffee | 101 | 104 | ||
abe33/atom-pigments:lib/utils.coffee:2:raw_corpus | raw_corpus | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests && index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 661244f65b0bde5ecd435a01e1407606ad4efc08 | 518 | https://github.com/abe33/atom-pigments/blob/661244f65b0bde5ecd435a01e1407606ad4efc08/lib/utils.coffee | 51 | 100 | ||
abe33/atom-pigments:lib/utils.coffee:2:completion | completion | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests && index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | `whileLoop: //`
while i < l
c = s.substr(i, 1)
switch(c)
when "("
i = utils.findClosingIndex s, i + 1, c, ")"
# A parser regexp will end with the last ), so sequences like (...)(...)
# will end after the second parenthesis pair, by mathing ) we prevent
# an inf... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 661244f65b0bde5ecd435a01e1407606ad4efc08 | 518 | https://github.com/abe33/atom-pigments/blob/661244f65b0bde5ecd435a01e1407606ad4efc08/lib/utils.coffee | 51 | 100 |
abe33/atom-pigments:lib/utils.coffee:2:raw_corpus | raw_corpus | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests && index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/utils.coffee | 51 | 98 | ||
abe33/atom-pigments:lib/utils.coffee:2:completion | completion | else
res = parseFloat(amount)
res
findClosingIndex: (s, startIndex=0, openingChar="[", closingChar="]") ->
index = startIndex
nests = 1
while nests && index < s.length
curStr = s.substr index++, 1
if curStr is closingChar
nests--
else if curStr is openingChar
... | `whileLoop: //`
while i < l
c = s.substr(i, 1)
switch(c)
when "("
i = utils.findClosingIndex s, i + 1, c, ")"
# A parser regexp will end with the last ), so sequences like (...)(...)
# will end after the second parenthesis pair, by mathing ) we prevent
# an inf... | CoffeeScript | CoffeeScript | abe33/atom-pigments | lib/utils.coffee | MIT | 6b9b5368e8a617bbb73ccdb1da96350aba9fd444 | 518 | https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/utils.coffee | 51 | 98 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | do (angular) ->
'use strict'
class Dispatcher
constructor: ($log, $rootScope, $q) ->
Dispatcher::success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
Dispatcher::error = (response) ->
deferred = $q.defer()
$rootScope.$broadcast "error:#{response.sta... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 25 | ||
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
do (angular) ->
'use strict'
class Dispatcher
constructor: ($log, $rootScope, $q) ->
Dispatcher::success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
Dispatcher::error = (response) ->
deferred = $q... | (function(angular) {
'use strict';
var Dispatcher, ResponseInterceptor;
Dispatcher = class Dispatcher {
constructor($log, $rootScope, $q) {
Dispatcher.prototype.success = function(response) {
$rootScope.$broadcast(`success:${response.status}`, response);
return response;
};
D... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 25 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
(function(angular) {
'use strict';
var Dispatcher, ResponseInterceptor;
Dispatcher = class Dispatcher {
constructor($log, $rootScope, $q) {
Dispatcher.prototype.success = function(response) {
$rootScope.$broadcast(`success:${response.status}... | do (angular) ->
'use strict'
class Dispatcher
constructor: ($log, $rootScope, $q) ->
Dispatcher::success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
Dispatcher::error = (response) ->
deferred = $q.defer()
$rootScope.$broadcast "error:#{response.sta... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 25 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | do (angular) ->
'use strict'
class Dispatcher
constructor: ($log, $rootScope, $q) ->
Dispatcher::success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
Dispatcher::error = (response) ->
deferred = $q.defer() | $rootScope.$broadcast "error:#{response.status}", response
$q.reject response
return (promise) ->
promise.then Dispatcher::success, Dispatcher::error
class ResponseInterceptor
constructor: ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', Dispatcher]
angular.m... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 25 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | angular.module('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer()
$... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 189b2ff753da88e040bb0f3acdd9dd7a1ccc801d | 672 | https://github.com/CaryLandholt/AngularFun/blob/189b2ff753da88e040bb0f3acdd9dd7a1ccc801d/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 | ||
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
angular.module('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
respons... | angular.module('app').config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$log',
'$rootScope',
'$q',
function($log,
$rootScope,
$q) {
var error,
success;
success = function(response) {
$rootScop... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 189b2ff753da88e040bb0f3acdd9dd7a1ccc801d | 672 | https://github.com/CaryLandholt/AngularFun/blob/189b2ff753da88e040bb0f3acdd9dd7a1ccc801d/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
angular.module('app').config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$log',
'$rootScope',
'$q',
function($log,
$rootScope,
$q) {
var error,
success;
... | angular.module('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer()
$... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 189b2ff753da88e040bb0f3acdd9dd7a1ccc801d | 672 | https://github.com/CaryLandholt/AngularFun/blob/189b2ff753da88e040bb0f3acdd9dd7a1ccc801d/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | angular.module('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer() | $rootScope.$broadcast "error:#{response.status}", response
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 189b2ff753da88e040bb0f3acdd9dd7a1ccc801d | 672 | https://github.com/CaryLandholt/AngularFun/blob/189b2ff753da88e040bb0f3acdd9dd7a1ccc801d/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | angular.coffee('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer()
$... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | baf1f601e02750a0fa62ce82461e56988ccd5d65 | 672 | https://github.com/CaryLandholt/AngularFun/blob/baf1f601e02750a0fa62ce82461e56988ccd5d65/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 | ||
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
angular.coffee('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
respons... | angular.coffee('app').config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$log',
'$rootScope',
'$q',
function($log,
$rootScope,
$q) {
var error,
success;
success = function(response) {
$rootScop... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | baf1f601e02750a0fa62ce82461e56988ccd5d65 | 672 | https://github.com/CaryLandholt/AngularFun/blob/baf1f601e02750a0fa62ce82461e56988ccd5d65/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
angular.coffee('app').config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$log',
'$rootScope',
'$q',
function($log,
$rootScope,
$q) {
var error,
success;
... | angular.coffee('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer()
$... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | baf1f601e02750a0fa62ce82461e56988ccd5d65 | 672 | https://github.com/CaryLandholt/AngularFun/blob/baf1f601e02750a0fa62ce82461e56988ccd5d65/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | angular.coffee('app').config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (response) ->
$rootScope.$broadcast "success:#{response.status}", response
response
error = (response) ->
deferred = $q.defer() | $rootScope.$broadcast "error:#{response.status}", response
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | baf1f601e02750a0fa62ce82461e56988ccd5d65 | 672 | https://github.com/CaryLandholt/AngularFun/blob/baf1f601e02750a0fa62ce82461e56988ccd5d65/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 18 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (respo... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 | ||
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootSc... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$log',
'$rootSc... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (respo... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$log', '$rootScope', '$q', ($log, $rootScope, $q) ->
success = (respo... | error = (response) ->
status = statuses[response.status]
deferred = $q.defer()
$rootScope.$broadcast "error:#{response.status}", response
$rootScope.$broadcast("error:#{status}", response) if status
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/responseInterceptors/dispatcher.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 4d1f0e38f7f87729adcf7c80bc4242ce73098f46 | 672 | https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 | ||
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$rootScope',
'$... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 4d1f0e38f7f87729adcf7c80bc4242ce73098f46 | 672 | https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 4d1f0e38f7f87729adcf7c80bc4242ce73098f46 | 672 | https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | error = (response) ->
status = statuses[response.status]
deferred = $q.defer()
$rootScope.$broadcast "error:#{response.status}", response
$rootScope.$broadcast("error:#{status}", response) if status
deferred.promise()
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 4d1f0e38f7f87729adcf7c80bc4242ce73098f46 | 672 | https://github.com/CaryLandholt/AngularFun/blob/4d1f0e38f7f87729adcf7c80bc4242ce73098f46/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 8807e89f28a76910be41e712bbf14fe40c34fa1a | 672 | https://github.com/CaryLandholt/AngularFun/blob/8807e89f28a76910be41e712bbf14fe40c34fa1a/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 | ||
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$rootScope',
'$... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 8807e89f28a76910be41e712bbf14fe40c34fa1a | 672 | https://github.com/CaryLandholt/AngularFun/blob/8807e89f28a76910be41e712bbf14fe40c34fa1a/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 8807e89f28a76910be41e712bbf14fe40c34fa1a | 672 | https://github.com/CaryLandholt/AngularFun/blob/8807e89f28a76910be41e712bbf14fe40c34fa1a/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | error = (response) ->
status = statuses[response.status]
deferred = $q.defer()
$rootScope.$broadcast "error:#{response.status}", response
$rootScope.$broadcast("error:#{status}", response) if status
deferred.promise
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 8807e89f28a76910be41e712bbf14fe40c34fa1a | 672 | https://github.com/CaryLandholt/AngularFun/blob/8807e89f28a76910be41e712bbf14fe40c34fa1a/scripts/responseInterceptors/dispatcher.coffee | 1 | 28 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | a0fe3a453e28b488b6b711d2110bb1eeb574c8eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 | ||
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$rootScope',
'$... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | a0fe3a453e28b488b6b711d2110bb1eeb574c8eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | a0fe3a453e28b488b6b711d2110bb1eeb574c8eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | error = (response) ->
status = statuses[response.status]
return response if not status
deferred = $q.defer()
$rootScope.$broadcast "error:#{status}", response
deferred.promise
$q.reject response
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | a0fe3a453e28b488b6b711d2110bb1eeb574c8eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/a0fe3a453e28b488b6b711d2110bb1eeb574c8eb/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 83e68a53d7c24f7d417b494e4fef7451cf0e3d9b | 672 | https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 | ||
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$rootScope',
'$... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 83e68a53d7c24f7d417b494e4fef7451cf0e3d9b | 672 | https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 83e68a53d7c24f7d417b494e4fef7451cf0e3d9b | 672 | https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', ($rootScope, $q) ->
success = (response) ->
st... | error = (response) ->
status = statuses[response.status]
return response if not status
deferred = $q.defer()
$rootScope.$broadcast "error:#{status}", response
deferred.promise
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 83e68a53d7c24f7d417b494e4fef7451cf0e3d9b | 672 | https://github.com/CaryLandholt/AngularFun/blob/83e68a53d7c24f7d417b494e4fef7451cf0e3d9b/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', '$log', ($rootScope, $q, $log) ->
success = (respo... | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 | ||
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$... | /*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.responseInterceptors.push([
'$rootScope',
'$... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['responseInterceptors/responseInterceptors', 'statuses'], function(responseInterceptors, statuses) {
'use strict';
return responseInterceptors.config([
'$httpProvider',
function($httpProvider) {
return $httpProvider.respo... | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', '$log', ($rootScope, $q, $log) ->
success = (respo... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
CaryLandholt/AngularFun:scripts/responseInterceptors/dispatcher.coffee:1:completion | completion | ###global define###
define ['responseInterceptors/responseInterceptors', 'statuses'], (responseInterceptors, statuses) ->
'use strict'
responseInterceptors.config ['$httpProvider', ($httpProvider) ->
$httpProvider.responseInterceptors.push ['$rootScope', '$q', '$log', ($rootScope, $q, $log) ->
success = (respo... | error = (response) ->
status = statuses[response.status]
return response if not status
deferred = $q.defer()
$rootScope.$broadcast "error:#{status}", response
deferred.promise
(promise) ->
promise.then success, error
]
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/responseInterceptors/dispatcher.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/responseInterceptors/dispatcher.coffee | 1 | 31 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:raw_corpus | raw_corpus | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 9 | 58 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/man... | var PHPCSFixer;
module.exports = PHPCSFixer = (function() {
class PHPCSFixer extends Beautifier {
beautify(text, language, options, context) {
var configFiles, php, phpCsFixer;
this.debug('php-cs-fixer', options);
php = this.exe('php');
phpCsFixer = this.exe('php-cs-fixer');
return ... | CoffeeScript | JavaScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PHPCSFixer;
module.exports = PHPCSFixer = (function() {
class PHPCSFixer extends Beautifier {
beautify(text, language, options, context) {
var configFiles, php, phpCsFixer;
this.debug('php-cs-fixer', options);
php = this.exe('php');
... | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | JavaScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:completion | completion | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | catch
text.match(/PHP CS Fixer (\d+\.\d+\.\d+)/)[1]
}
docker: {
image: "unibeautify/php-cs-fixer"
workingDir: "/project"
}
}
]
options:
PHP:
rules: true
cs_fixer_path: true
cs_fixer_version: true
cs_fixer_config_file: true
allow_ri... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | "--config-file=#{options.cs_fixer_config_file}" if options.cs_fixer_config_file
]
runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
@deprecateOptionForExec... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:raw_corpus | raw_corpus | if not phpCsFixer.isInstalled and finalPhpCsFixerPath and isPhpScript
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else
phpCsFixer.run([phpCsFixerOptions, tempFile],
Object.assign({}, runOptions, { ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 109 | 121 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:completion | completion | if not phpCsFixer.isInstalled and finalPhpCsFixerPath and isPhpScript
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else | phpCsFixer.run([phpCsFixerOptions, tempFile],
Object.assign({}, runOptions, { cmd: finalPhpCsFixerPath })
)
.then(=>
@readFile(tempFile)
)
) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/php-cs-fixer.coffee | 109 | 121 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | a62ca65a2373643ccd0a92f6cfa79c774bed32bd | 1,503 | https://github.com/Glavin001/atom-beautify/blob/a62ca65a2373643ccd0a92f6cfa79c774bed32bd/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
@deprecateOptionForExecutable("PHP-CS-Fixer", "PHP - PHP-CS-Fixer Path (cs_fixer_path)", "Path")
@Promise.all(... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | a62ca65a2373643ccd0a92f6cfa79c774bed32bd | 1,503 | https://github.com/Glavin001/atom-beautify/blob/a62ca65a2373643ccd0a92f6cfa79c774bed32bd/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:raw_corpus | raw_corpus | php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else
phpCsFixer.run([phpCsFixerOptions, tempFile],
Object.assign({}, runOptions, { cmd: finalPhpCsFixerPath })
)
.then(=>
@readFile... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | a62ca65a2373643ccd0a92f6cfa79c774bed32bd | 1,503 | https://github.com/Glavin001/atom-beautify/blob/a62ca65a2373643ccd0a92f6cfa79c774bed32bd/src/beautifiers/php-cs-fixer.coffee | 109 | 120 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:completion | completion | php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else
phpCsFixer.run([phpCsFixerOptions, tempFile], | Object.assign({}, runOptions, { cmd: finalPhpCsFixerPath })
)
.then(=>
@readFile(tempFile)
)
) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | a62ca65a2373643ccd0a92f6cfa79c774bed32bd | 1,503 | https://github.com/Glavin001/atom-beautify/blob/a62ca65a2373643ccd0a92f6cfa79c774bed32bd/src/beautifiers/php-cs-fixer.coffee | 109 | 120 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 149770ab42bf736eace3cf9b15795b864f2cfc6d | 1,503 | https://github.com/Glavin001/atom-beautify/blob/149770ab42bf736eace3cf9b15795b864f2cfc6d/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
@deprecateOptionForExecutable("PHP-CS-Fixer", "PHP - PHP-CS-Fixer Path (cs_fixer_path)", "Path")
@Promise.all(... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 149770ab42bf736eace3cf9b15795b864f2cfc6d | 1,503 | https://github.com/Glavin001/atom-beautify/blob/149770ab42bf736eace3cf9b15795b864f2cfc6d/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 49982c6ce7b0c8f66042c2eddbc49d1441944023 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/49982c6ce7b0c8f66042c2eddbc49d1441944023/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
@deprecateOptionForExecutable("PHP - PHP-CS-Fixer Path (cs_fixer_path)", "PHP-CS-Fixer", "Path")
@Promise.all(... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 49982c6ce7b0c8f66042c2eddbc49d1441944023 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/49982c6ce7b0c8f66042c2eddbc49d1441944023/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 6db34cd9d88ac7f782348028a0a938b6b23a6b69 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/6db34cd9d88ac7f782348028a0a938b6b23a6b69/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | ]
runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
deprecationMessage = "The \"PHP - PHP-CS-Fixer Path (cs_fixer_path)\" configuration option has been deprecate... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 6db34cd9d88ac7f782348028a0a938b6b23a6b69 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/6db34cd9d88ac7f782348028a0a938b6b23a6b69/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:raw_corpus | raw_corpus | if finalPhpCsFixerPath and isPhpScript
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else
phpCsFixer.run([phpCsFixerOptions, tempFile],
Object.assign({}, runOptions, { cmd: finalPhpCsFixerPath })
... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 6db34cd9d88ac7f782348028a0a938b6b23a6b69 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/6db34cd9d88ac7f782348028a0a938b6b23a6b69/src/beautifiers/php-cs-fixer.coffee | 109 | 121 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:3:completion | completion | if finalPhpCsFixerPath and isPhpScript
php.run([finalPhpCsFixerPath, phpCsFixerOptions, tempFile], runOptions)
.then(=>
@readFile(tempFile)
)
else | phpCsFixer.run([phpCsFixerOptions, tempFile],
Object.assign({}, runOptions, { cmd: finalPhpCsFixerPath })
)
.then(=>
@readFile(tempFile)
)
) | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 6db34cd9d88ac7f782348028a0a938b6b23a6b69 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/6db34cd9d88ac7f782348028a0a938b6b23a6b69/src/beautifiers/php-cs-fixer.coffee | 109 | 121 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:raw_corpus | raw_corpus | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 3411fad89553ca2cb32eacd7621b7191f65f94ae | 1,503 | https://github.com/Glavin001/atom-beautify/blob/3411fad89553ca2cb32eacd7621b7191f65f94ae/src/beautifiers/php-cs-fixer.coffee | 9 | 58 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/man... | var PHPCSFixer;
module.exports = PHPCSFixer = (function() {
class PHPCSFixer extends Beautifier {
beautify(text, language, options, context) {
var configFiles, php, phpCsFixer;
this.debug('php-cs-fixer', options);
php = this.exe('php');
phpCsFixer = this.exe('php-cs-fixer');
return ... | CoffeeScript | JavaScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 3411fad89553ca2cb32eacd7621b7191f65f94ae | 1,503 | https://github.com/Glavin001/atom-beautify/blob/3411fad89553ca2cb32eacd7621b7191f65f94ae/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var PHPCSFixer;
module.exports = PHPCSFixer = (function() {
class PHPCSFixer extends Beautifier {
beautify(text, language, options, context) {
var configFiles, php, phpCsFixer;
this.debug('php-cs-fixer', options);
php = this.exe('php');
... | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | JavaScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 3411fad89553ca2cb32eacd7621b7191f65f94ae | 1,503 | https://github.com/Glavin001/atom-beautify/blob/3411fad89553ca2cb32eacd7621b7191f65f94ae/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:completion | completion | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | catch
text.match(/PHP CS Fixer (\d+\.\d+\.\d+)/)[1]
}
docker: {
image: "unibeautify/php-cs-fixer"
workingDir: "/project"
}
}
]
options:
PHP:
rules: true
cs_fixer_path: true
cs_fixer_version: true
cs_fixer_config_file: true
allow_ri... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 3411fad89553ca2cb32eacd7621b7191f65f94ae | 1,503 | https://github.com/Glavin001/atom-beautify/blob/3411fad89553ca2cb32eacd7621b7191f65f94ae/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:raw_corpus | raw_corpus | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 8b5363f7bf596a8af03fdee5fdb141b8e22389b7 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/8b5363f7bf596a8af03fdee5fdb141b8e22389b7/src/beautifiers/php-cs-fixer.coffee | 59 | 108 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:2:completion | completion | # Find a config file in the working directory if a custom one was not provided
if not options.cs_fixer_config_file
options.cs_fixer_config_file = if context? and context.filePath? then @findFile(path.dirname(context.filePath), configFiles)
# Try again to find a config file in the project root
if not ... | ]
runOptions = {
ignoreReturnCode: true
help: {
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
}
}
# Find php-cs-fixer.phar script
if options.cs_fixer_path
deprecationMessage = "The \"PHP - PHP-CS-Fixer Path (cs_fixer_path)\" configuration option has been deprecate... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | 8b5363f7bf596a8af03fdee5fdb141b8e22389b7 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/8b5363f7bf596a8af03fdee5fdb141b8e22389b7/src/beautifiers/php-cs-fixer.coffee | 59 | 108 |
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:raw_corpus | raw_corpus | module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/manual/en/install.php"
version: {
parse: (text... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | baca098a91c33e1bbc39fe7f78c27db2c36ba3b3 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/baca098a91c33e1bbc39fe7f78c27db2c36ba3b3/src/beautifiers/php-cs-fixer.coffee | 9 | 58 | ||
Glavin001/atom-beautify:src/beautifiers/php-cs-fixer.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class PHPCSFixer extends Beautifier
name: 'PHP-CS-Fixer'
link: "https://github.com/FriendsOfPHP/PHP-CS-Fixer"
executables: [
{
name: "PHP"
cmd: "php"
homepage: "http://php.net/"
installation: "http://php.net/man... | var PHPCSFixer;
module.exports = PHPCSFixer = (function() {
class PHPCSFixer extends Beautifier {
beautify(text, language, options, context) {
var configFiles, php, phpCsFixer;
this.debug('php-cs-fixer', options);
php = this.exe('php');
phpCsFixer = this.exe('php-cs-fixer');
configF... | CoffeeScript | JavaScript | Glavin001/atom-beautify | src/beautifiers/php-cs-fixer.coffee | MIT | baca098a91c33e1bbc39fe7f78c27db2c36ba3b3 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/baca098a91c33e1bbc39fe7f78c27db2c36ba3b3/src/beautifiers/php-cs-fixer.coffee | 9 | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.