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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
oozcitak/xmlbuilder-js:test/basic/skipnullelements.coffee:2:raw_corpus | raw_corpus | )
test 'Keep if null (JSON) with keepNullNodes', ->
eq(
xml('test', { headless: true, keepNullNodes: true })
.ele( { node1: 'val1', node2: null, node3: undefined, node4: 'val4', node5: '' })
.end()
'<test>' +
'<node1>val1</node1>' +
'<node2/>' +
'<node3/>' +
... | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/skipnullelements.coffee | MIT | be07739fc6a42504111c174763de806b39b3db02 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/be07739fc6a42504111c174763de806b39b3db02/test/basic/skipnullelements.coffee | 51 | 65 | ||
oozcitak/xmlbuilder-js:test/basic/skipnullelements.coffee:1:raw_corpus | raw_corpus | suite 'Element:', ->
test 'Skip if null (ele)', ->
eq(
xml('test', { headless: true, skipNullNodes: true })
.ele('node1', 'val1').up()
.ele('node2', null).up()
.ele('node3', undefined).up()
.ele('node4', 'val4').up()
.ele('node5', '').up()
.end()
'<test... | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/skipnullelements.coffee | MIT | 61c7428475fe9ffc02b63662b59f87749fe3125f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/61c7428475fe9ffc02b63662b59f87749fe3125f/test/basic/skipnullelements.coffee | 1 | 31 | ||
oozcitak/xmlbuilder-js:test/basic/skipnullelements.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
suite 'Element:', ->
test 'Skip if null (ele)', ->
eq(
xml('test', { headless: true, skipNullNodes: true })
.ele('node1', 'val1').up()
.ele('node2', null).up()
.ele('node3', undefined).up()
.ele('node4', 'val4').up()
... | suite('Element:', function() {
test('Skip if null (ele)', function() {
return eq(xml('test', {
headless: true,
skipNullNodes: true
}).ele('node1', 'val1').up().ele('node2', null).up().ele('node3', void 0).up().ele('node4', 'val4').up().ele('node5', '').up().end(), '<test>' + '<node1>val1</node1>' ... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | test/basic/skipnullelements.coffee | MIT | 61c7428475fe9ffc02b63662b59f87749fe3125f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/61c7428475fe9ffc02b63662b59f87749fe3125f/test/basic/skipnullelements.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:test/basic/skipnullelements.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
suite('Element:', function() {
test('Skip if null (ele)', function() {
return eq(xml('test', {
headless: true,
skipNullNodes: true
}).ele('node1', 'val1').up().ele('node2', null).up().ele('node3', void 0).up().ele('node4', 'val4').up().ele('no... | suite 'Element:', ->
test 'Skip if null (ele)', ->
eq(
xml('test', { headless: true, skipNullNodes: true })
.ele('node1', 'val1').up()
.ele('node2', null).up()
.ele('node3', undefined).up()
.ele('node4', 'val4').up()
.ele('node5', '').up()
.end()
'<test... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/skipnullelements.coffee | MIT | 61c7428475fe9ffc02b63662b59f87749fe3125f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/61c7428475fe9ffc02b63662b59f87749fe3125f/test/basic/skipnullelements.coffee | 1 | 31 |
oozcitak/xmlbuilder-js:test/basic/skipnullelements.coffee:1:completion | completion | suite 'Element:', ->
test 'Skip if null (ele)', ->
eq(
xml('test', { headless: true, skipNullNodes: true })
.ele('node1', 'val1').up()
.ele('node2', null).up()
.ele('node3', undefined).up()
.ele('node4', 'val4').up()
.ele('node5', '').up()
.end()
'<test... | '<node5/>' +
'</test>'
)
test 'Skip if null (JSON)', ->
eq(
xml('test', { headless: true, skipNullNodes: true })
.ele( { node1: 'val1', node2: null, node3: undefined, node4: 'val4', node5: '' })
.end()
'<test>' +
'<node1>val1</node1>' +
'<node3/>' +
'... | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/skipnullelements.coffee | MIT | 61c7428475fe9ffc02b63662b59f87749fe3125f | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/61c7428475fe9ffc02b63662b59f87749fe3125f/test/basic/skipnullelements.coffee | 1 | 31 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (strategy, response) ->
output = "URL: #{response.id}\nStrategy: #{strategy} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = ... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 11 | 60 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (strategy, response) ->
output = "URL: #{response.id}\nStrategy: #{strategy} \nScore: #{score}"
print output
#
... | exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(strategy, response) {
var output;
output = `URL: ${response... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(strategy, respons... | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (strategy, response) ->
output = "URL: #{response.id}\nStrategy: #{strategy} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = ... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (strategy, response) ->
output = "URL: #{response.id}\nStrategy: #{strategy} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = ... | #
# Generate statistics output
#
generateStatistics = (statistics) ->
for title, result of statistics
title = firstToUpperCaseAndAddSpace(title)
title += bufferSpace(title)
print "#{title}| #{result}"
#
# Prints result based on whether the current score
# has passed the threshold... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, "$1"))
#
# Prints a d... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 61 | 104 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, "... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, "$1"))
#
# Prints a d... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, "$1"))
#
# Prints a d... | #
exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (parameters, response, done = (->)) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(parameters.strategy, response)
... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 4a5fb5244d54d004755694a5aeff6862de68ca2c | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/4a5fb5244d54d004755694a5aeff6862de68ca2c/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 11 | 60 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generat... | exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
var output;
output = `URL: ${response.id} \nScore:... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
v... | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | #
# Generate statistics output
#
generateStatistics = (statistics) ->
for title, result of statistics
title = firstToUpperCaseAndAddSpace(title)
title += bufferSpace(title)
print "#{title}| #{result}"
#
# Prints result based on whether the current score
# has passed the threshold... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 61 | 104 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, "... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | #
exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (response, done = (->)) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(response)
divder()
generateStatistics(r... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 986d258c653a6e57a5c6ff7c94e5d0903c739ae4 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/986d258c653a6e57a5c6ff7c94e5d0903c739ae4/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 11 | 60 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generat... | exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
var output;
output = `URL: ${response.id} \nScore:... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
v... | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | #
# Generate statistics output
#
generateStatistics = (statistics) ->
for title, result of statistics
title = firstToUpperCaseAndAddSpace(title)
title += bufferSpace(title)
print "#{title}| #{result}"
#
# Prints result based on whether the current score
# has passed the threshold... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 61 | 104 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, "... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | #
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a ... | #
exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (response, done = (->)) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(response)
divder()
generateStatistics(r... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d394ee8a5c9492cdd6e78886083cd3e6efea0fb9 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d394ee8a5c9492cdd6e78886083cd3e6efea0fb9/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 11 | 60 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generat... | exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
var output;
output = `URL: ${response.id} \nScore:... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
v... | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | #
generateStatistics = (statistics) ->
for title, result of statistics
title = firstToUpperCaseAndAddSpace(title)
title += bufferSpace(title)
print "#{title}| #{result}"
#
# Prints result based on whether the current score
# has passed the threshold
#
print = (msg) ->
grunt.l... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 61 | 103 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1"... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | #
exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (response, done = (->)) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(response)
divder()
generateStatistics(r... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | c65b8a46f4309747f0d87059260a2ad19303fef8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/c65b8a46f4309747f0d87059260a2ad19303fef8/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 8717917f807bdee6719ddc55c69a0e580b9cb6d6 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/8717917f807bdee6719ddc55c69a0e580b9cb6d6/tasks/lib/output.coffee | 11 | 60 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generat... | exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
var output;
output = `URL: ${response.id} \nScore:... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 8717917f807bdee6719ddc55c69a0e580b9cb6d6 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/8717917f807bdee6719ddc55c69a0e580b9cb6d6/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, print, score, threshold;
score = 0;
threshold = 70;
exports = {};
// Generate score output
generateScore = function(response) {
v... | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 8717917f807bdee6719ddc55c69a0e580b9cb6d6 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/8717917f807bdee6719ddc55c69a0e580b9cb6d6/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | exports.init = (grunt) ->
score = 0
threshold = 70
exports = {}
#
# Generate score output
#
generateScore = (response) ->
output = "URL: #{response.id} \nScore: #{score}"
print output
#
# Generate ruleset output
#
generateRuleSetResults = (rulesets) ->
for title, result of... | #
generateStatistics = (statistics) ->
for title, result of statistics
title = firstToUpperCaseAndAddSpace(title)
title += bufferSpace(title)
print "#{title}| #{result}"
#
# Prints result based on whether the current score
# has passed the threshold
#
print = (msg) ->
grunt.l... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 8717917f807bdee6719ddc55c69a0e580b9cb6d6 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/8717917f807bdee6719ddc55c69a0e580b9cb6d6/tasks/lib/output.coffee | 11 | 60 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1867705707935fab00b21eaf3c82e404521de1bf | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1867705707935fab00b21eaf3c82e404521de1bf/tasks/lib/output.coffee | 61 | 104 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1"... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1867705707935fab00b21eaf3c82e404521de1bf | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1867705707935fab00b21eaf3c82e404521de1bf/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1867705707935fab00b21eaf3c82e404521de1bf | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1867705707935fab00b21eaf3c82e404521de1bf/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (response, done) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(response)
divder()
generateStatistics(response.pag... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1867705707935fab00b21eaf3c82e404521de1bf | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1867705707935fab00b21eaf3c82e404521de1bf/tasks/lib/output.coffee | 61 | 104 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2/tasks/lib/output.coffee | 61 | 103 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1"... | // Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
addSpacesToWords = function(msg) {
return msg.replace(/... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Adds spaces to camel case and uppercases first word
var addSpacesToWords, divder, firstToUpperCaseAndAddSpace;
firstToUpperCaseAndAddSpace = function(msg) {
return msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1));
};
// Adds spaces to words
ad... | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | # Adds spaces to camel case and uppercases first word
#
firstToUpperCaseAndAddSpace = (msg) ->
msg.charAt(0).toUpperCase() + addSpacesToWords(msg.slice(1))
#
# Adds spaces to words
#
addSpacesToWords = (msg) ->
(msg.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1"))
#
# Prints a divi... | #
exports.threshold = (limit) ->
threshold = limit
#
# Processes and outputs results
#
exports.process = (response) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
score = response.score
divder()
generateScore(response)
divder()
generateStatistics(response.pageS... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/af5bb7e91f10d2ced6832bb2a01a7c894ce04fb2/tasks/lib/output.coffee | 61 | 103 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
score = 0
threshold = 70
keyLength = 30
exports = {}
generateScore = (response) ->
div = A... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 1 | 50 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
score = 0
threshold = 70
keyLength = 30
export... | // grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, generateScore, generateStatistics, keyLength, print, scor... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 1 | 50 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var bufferSpace, exports, generateRuleSetResults, ge... | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
score = 0
threshold = 70
keyLength = 30
exports = {}
generateScore = (response) ->
div = A... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 1 | 50 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
score = 0
threshold = 70
keyLength = 30
exports = {}
generateScore = (response) ->
div = A... | generateStatistics = (statistics) ->
for title, result of statistics
title = title.charAt(0).toUpperCase() + (title.replace(/([A-Z]+)/g, " $1").replace(/([A-Z][a-z])/g, " $1")).slice(1)
title += bufferSpace(title)
print "#{title}: #{result}"
print = (msg) ->
grunt.log.ok(msg) if score... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 1 | 50 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:raw_corpus | raw_corpus | generateStatistics(response.pageStats)
generateRuleSetResults(response.formattedResults.ruleResults)
grunt.fatal "Threshold of #{threshold} not met with score of #{response.score}" if response.score < threshold
return exports | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 51 | 56 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:2:completion | completion | generateStatistics(response.pageStats)
generateRuleSetResults(response.formattedResults.ruleResults) | grunt.fatal "Threshold of #{threshold} not met with score of #{response.score}" if response.score < threshold
return exports | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | d50a63abc16ef2efe3b1289b2c1fb0581ce923b8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/d50a63abc16ef2efe3b1289b2c1fb0581ce923b8/tasks/lib/output.coffee | 51 | 56 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
threshold = 70
exports = {}
generateScore = (response) ->
score = response.score
output = "URL: ... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 0fd25dcc4148f4e235fdaca820faf0e6a185faa8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/0fd25dcc4148f4e235fdaca820faf0e6a185faa8/tasks/lib/output.coffee | 1 | 41 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
threshold = 70
exports = {}
generateScore = (resp... | // grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports, generateRuleSetResults, generateScore, generateStatistics, threshold;
threshold = 70;
expo... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 0fd25dcc4148f4e235fdaca820faf0e6a185faa8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/0fd25dcc4148f4e235fdaca820faf0e6a185faa8/tasks/lib/output.coffee | 1 | 41 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports, generateRuleSetResults, generateScore, ... | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
threshold = 70
exports = {}
generateScore = (response) ->
score = response.score
output = "URL: ... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 0fd25dcc4148f4e235fdaca820faf0e6a185faa8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/0fd25dcc4148f4e235fdaca820faf0e6a185faa8/tasks/lib/output.coffee | 1 | 41 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
threshold = 70
exports = {}
generateScore = (response) ->
score = response.score
output = "URL: ... | generateRuleSetResults = (rulesets) ->
""
generateStatistics = (statistics) ->
""
exports.threshold = (limit) ->
threshold = limit
exports.process = (response) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
generateScore(response)
generateStatistics(response.pageStat... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 0fd25dcc4148f4e235fdaca820faf0e6a185faa8 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/0fd25dcc4148f4e235fdaca820faf0e6a185faa8/tasks/lib/output.coffee | 1 | 41 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
generateScore = (response) ->
""
generateRuleSetResults = (rulesets) ->
""
genera... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1045b732a23cc99b51691fa2419a20fbf27b69f1 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1045b732a23cc99b51691fa2419a20fbf27b69f1/tasks/lib/output.coffee | 1 | 31 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
generateScore = (response) ->
""
... | // grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports, generateRuleSetResults, generateScore, generateStatistics;
exports = {};
generateScore = f... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1045b732a23cc99b51691fa2419a20fbf27b69f1 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1045b732a23cc99b51691fa2419a20fbf27b69f1/tasks/lib/output.coffee | 1 | 31 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports, generateRuleSetResults, generateScore, ... | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
generateScore = (response) ->
""
generateRuleSetResults = (rulesets) ->
""
genera... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1045b732a23cc99b51691fa2419a20fbf27b69f1 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1045b732a23cc99b51691fa2419a20fbf27b69f1/tasks/lib/output.coffee | 1 | 31 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
generateScore = (response) -> | ""
generateRuleSetResults = (rulesets) ->
""
generateStatistics = (statistics) ->
""
exports.process = (response) ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
grunt.log.writeln generateScore(response)
+ generateStatistics(response.pageStats)
+ generateRuleSetResult... | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 1045b732a23cc99b51691fa2419a20fbf27b69f1 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/1045b732a23cc99b51691fa2419a20fbf27b69f1/tasks/lib/output.coffee | 1 | 31 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:raw_corpus | raw_corpus | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
exports.process = ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
retu... | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 47d3fa0347b3babdbc341bac60370578add8d204 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/47d3fa0347b3babdbc341bac60370578add8d204/tasks/lib/output.coffee | 1 | 18 | ||
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
exports.process = ->
grunt.verbose... | // grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports;
exports = {};
exports.process = function() {
return grunt.verbose.writeln('Pagespeed I... | CoffeeScript | JavaScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 47d3fa0347b3babdbc341bac60370578add8d204 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/47d3fa0347b3babdbc341bac60370578add8d204/tasks/lib/output.coffee | 1 | 18 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// grunt-pagespeed
// http://www.jamescryer.com/grunt-pagespeed
// Copyright (c) 2013 James Cryer
// http://www.jamescryer.com
// Licensed under the MIT license.
'use strict';
exports.init = function(grunt) {
var exports;
exports = {};
exports.process = fun... | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict';
exports.init = (grunt) ->
exports = {}
exports.process = ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
retu... | JavaScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 47d3fa0347b3babdbc341bac60370578add8d204 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/47d3fa0347b3babdbc341bac60370578add8d204/tasks/lib/output.coffee | 1 | 18 |
jrcryer/grunt-pagespeed:tasks/lib/output.coffee:1:completion | completion | #
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict'; | exports.init = (grunt) ->
exports = {}
exports.process = ->
grunt.verbose.writeln 'Pagespeed Insights: Processing results'
return exports | CoffeeScript | CoffeeScript | jrcryer/grunt-pagespeed | tasks/lib/output.coffee | MIT | 47d3fa0347b3babdbc341bac60370578add8d204 | 459 | https://github.com/jrcryer/grunt-pagespeed/blob/47d3fa0347b3babdbc341bac60370578add8d204/tasks/lib/output.coffee | 1 | 18 |
jianliaoim/talk-os:talk-web/client/actions/user.coffee:1:raw_corpus | raw_corpus | TALK = require '../config'
actions = require '../actions'
eventBus = require '../event-bus'
dispatcher = require '../dispatcher'
notifyActions = require './notify'
lang = require '../locales/lang'
api = require '../network/api'
exports.userSignout = (success, fail) ->
api.users.signout.post()
.then (resp) ->
... | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-web/client/actions/user.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
TALK = require '../config'
actions = require '../actions'
eventBus = require '../event-bus'
dispatcher = require '../dispatcher'
notifyActions = require './notify'
lang = require '../locales/lang'
api = require '../network/api'
exports.userSignout = (success,... | var TALK, actions, api, dispatcher, eventBus, lang, notifyActions;
TALK = require('../config');
actions = require('../actions');
eventBus = require('../event-bus');
dispatcher = require('../dispatcher');
notifyActions = require('./notify');
lang = require('../locales/lang');
api = require('../network/api');
exp... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/user.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var TALK, actions, api, dispatcher, eventBus, lang, notifyActions;
TALK = require('../config');
actions = require('../actions');
eventBus = require('../event-bus');
dispatcher = require('../dispatcher');
notifyActions = require('./notify');
lang = require('..... | TALK = require '../config'
actions = require '../actions'
eventBus = require '../event-bus'
dispatcher = require '../dispatcher'
notifyActions = require './notify'
lang = require '../locales/lang'
api = require '../network/api'
exports.userSignout = (success, fail) ->
api.users.signout.post()
.then (resp) ->
... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/user.coffee:1:completion | completion | TALK = require '../config'
actions = require '../actions'
eventBus = require '../event-bus'
dispatcher = require '../dispatcher'
notifyActions = require './notify'
lang = require '../locales/lang'
api = require '../network/api'
exports.userSignout = (success, fail) ->
api.users.signout.post()
.then (resp) ->
... | type: 'user/me'
data: resp
actions.markLogin true
eventBus.emit 'fullstory', resp
success? resp
.catch (error) ->
dispatcher.handleViewAction
type: 'user/me'
data: null
actions.markLogin false
console.error error
fail? error
exports.userUpdate... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/user.coffee:2:raw_corpus | raw_corpus | notifyActions.error (error.responseJSON?.message or 'error')
fail? error
exports.state = (_teamId, success, fail) ->
config =
queryParams:
_teamId: _teamId
scope: 'version,checkfornewnotice,unread'
api.state.get(config)
.then (resp) ->
if resp.unread?
dispatcher.handleViewAc... | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 51 | 67 | ||
jianliaoim/talk-os:talk-web/client/actions/user.coffee:2:completion | completion | notifyActions.error (error.responseJSON?.message or 'error')
fail? error
exports.state = (_teamId, success, fail) ->
config =
queryParams:
_teamId: _teamId
scope: 'version,checkfornewnotice,unread' | api.state.get(config)
.then (resp) ->
if resp.unread?
dispatcher.handleViewAction
type: 'unread/check'
data: {_teamId, data: resp.unread}
success? resp
.catch (error) ->
fail? error | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/user.coffee | 51 | 67 |
jianliaoim/talk-os:talk-api2x/test/upload.coffee:1:raw_corpus | raw_corpus | request = require 'request'
fs = require 'fs'
url = 'http://striker.project.ci/upload'
formData =
attachments: [
fs.createReadStream __dirname + '/files/thumbnail.jpg'
fs.createReadStream __dirname + '/files/page.html'
]
request
method: 'POST'
url: url
formData: formData
json: true
, (err, res, b... | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/upload.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/upload.coffee | 1 | 18 | ||
jianliaoim/talk-os:talk-api2x/test/upload.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
request = require 'request'
fs = require 'fs'
url = 'http://striker.project.ci/upload'
formData =
attachments: [
fs.createReadStream __dirname + '/files/thumbnail.jpg'
fs.createReadStream __dirname + '/files/page.html'
]
request
method: 'POST'
... | var formData, fs, request, url;
request = require('request');
fs = require('fs');
url = 'http://striker.project.ci/upload';
formData = {
attachments: [fs.createReadStream(__dirname + '/files/thumbnail.jpg'), fs.createReadStream(__dirname + '/files/page.html')]
};
request({
method: 'POST',
url: url,
formDat... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/test/upload.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/upload.coffee | 1 | 18 |
jianliaoim/talk-os:talk-api2x/test/upload.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var formData, fs, request, url;
request = require('request');
fs = require('fs');
url = 'http://striker.project.ci/upload';
formData = {
attachments: [fs.createReadStream(__dirname + '/files/thumbnail.jpg'), fs.createReadStream(__dirname + '/files/page.html')... | request = require 'request'
fs = require 'fs'
url = 'http://striker.project.ci/upload'
formData =
attachments: [
fs.createReadStream __dirname + '/files/thumbnail.jpg'
fs.createReadStream __dirname + '/files/page.html'
]
request
method: 'POST'
url: url
formData: formData
json: true
, (err, res, b... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/upload.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/upload.coffee | 1 | 18 |
jianliaoim/talk-os:talk-api2x/test/upload.coffee:1:completion | completion | request = require 'request'
fs = require 'fs'
url = 'http://striker.project.ci/upload'
formData =
attachments: [
fs.createReadStream __dirname + '/files/thumbnail.jpg'
fs.createReadStream __dirname + '/files/page.html' | ]
request
method: 'POST'
url: url
formData: formData
json: true
, (err, res, body) ->
console.log body | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/upload.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/upload.coffee | 1 | 18 |
flosse/sloc:src/helpers.coffee:1:raw_corpus | raw_corpus | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) ->
return {} unless Array.isArray(fileStats) ... | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | e26044011821c4e170859362f2de657d64118711 | 969 | https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/src/helpers.coffee | 1 | 23 | ||
flosse/sloc:src/helpers.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fi... | var alignRight, summarize;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return Array(width - string.length + 1).join(' ') + string;
}... | CoffeeScript | JavaScript | flosse/sloc | src/helpers.coffee | MIT | e26044011821c4e170859362f2de657d64118711 | 969 | https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/src/helpers.coffee | 1 | 23 |
flosse/sloc:src/helpers.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var alignRight, summarize;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return A... | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) ->
return {} unless Array.isArray(fileStats) ... | JavaScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | e26044011821c4e170859362f2de657d64118711 | 969 | https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/src/helpers.coffee | 1 | 23 |
flosse/sloc:src/helpers.coffee:1:completion | completion | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) -> | return {} unless Array.isArray(fileStats) and fileStats.length > 0
fileStats.reduce (a, b) ->
o = {}
for x in [a,b] when x?
for k,v of x when typeof v is "number"
o[k] ?= 0
o[k] += v
o
module.exports = { alignRight, summarize } | CoffeeScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | e26044011821c4e170859362f2de657d64118711 | 969 | https://github.com/flosse/sloc/blob/e26044011821c4e170859362f2de657d64118711/src/helpers.coffee | 1 | 23 |
flosse/sloc:src/helpers.coffee:1:raw_corpus | raw_corpus | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) ->
sum =
loc : 0
sloc : 0
cloc ... | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | fe70a54fa0187454a16e95088188ef8db85d8151 | 969 | https://github.com/flosse/sloc/blob/fe70a54fa0187454a16e95088188ef8db85d8151/src/helpers.coffee | 1 | 25 | ||
flosse/sloc:src/helpers.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fi... | var alignRight, summarize;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return Array(width - string.length + 1).join(' ') + string;
}... | CoffeeScript | JavaScript | flosse/sloc | src/helpers.coffee | MIT | fe70a54fa0187454a16e95088188ef8db85d8151 | 969 | https://github.com/flosse/sloc/blob/fe70a54fa0187454a16e95088188ef8db85d8151/src/helpers.coffee | 1 | 25 |
flosse/sloc:src/helpers.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var alignRight, summarize;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return A... | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) ->
sum =
loc : 0
sloc : 0
cloc ... | JavaScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | fe70a54fa0187454a16e95088188ef8db85d8151 | 969 | https://github.com/flosse/sloc/blob/fe70a54fa0187454a16e95088188ef8db85d8151/src/helpers.coffee | 1 | 25 |
flosse/sloc:src/helpers.coffee:1:completion | completion | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
summarize = (fileStats) ->
sum = | loc : 0
sloc : 0
cloc : 0
scloc : 0
mcloc : 0
nloc : 0
fileStats.reduce (a,b) ->
o = {}
o[k] = a[k] + (b[k] or 0) for k,v of a
o
module.exports = { alignRight, summarize } | CoffeeScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | fe70a54fa0187454a16e95088188ef8db85d8151 | 969 | https://github.com/flosse/sloc/blob/fe70a54fa0187454a16e95088188ef8db85d8151/src/helpers.coffee | 1 | 25 |
flosse/sloc:src/helpers.coffee:1:raw_corpus | raw_corpus | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
module.exports = alignRight: alignRight | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | 11fd0d0b738d19103d80c0d211996b312de57c08 | 969 | https://github.com/flosse/sloc/blob/11fd0d0b738d19103d80c0d211996b312de57c08/src/helpers.coffee | 1 | 11 | ||
flosse/sloc:src/helpers.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
module.exports ... | var alignRight;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return Array(width - string.length + 1).join(' ') + string;
}
};
module... | CoffeeScript | JavaScript | flosse/sloc | src/helpers.coffee | MIT | 11fd0d0b738d19103d80c0d211996b312de57c08 | 969 | https://github.com/flosse/sloc/blob/11fd0d0b738d19103d80c0d211996b312de57c08/src/helpers.coffee | 1 | 11 |
flosse/sloc:src/helpers.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var alignRight;
alignRight = function(string = '', width = 0) {
if (!(typeof string === 'string' && typeof width === 'number' && width >= 0)) {
return '';
}
if (string.length >= width) {
return string.slice(-width);
} else {
return Array(width ... | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return ''
if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
module.exports = alignRight: alignRight | JavaScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | 11fd0d0b738d19103d80c0d211996b312de57c08 | 969 | https://github.com/flosse/sloc/blob/11fd0d0b738d19103d80c0d211996b312de57c08/src/helpers.coffee | 1 | 11 |
flosse/sloc:src/helpers.coffee:1:completion | completion | alignRight = (string='', width=0) ->
unless typeof string is 'string' and typeof width is 'number' and width >= 0
return '' | if string.length >= width
string.slice -width
else
Array(width - string.length + 1).join(' ') + string
module.exports = alignRight: alignRight | CoffeeScript | CoffeeScript | flosse/sloc | src/helpers.coffee | MIT | 11fd0d0b738d19103d80c0d211996b312de57c08 | 969 | https://github.com/flosse/sloc/blob/11fd0d0b738d19103d80c0d211996b312de57c08/src/helpers.coffee | 1 | 11 |
linemanjs/lineman:tasks/images.coffee:1:raw_corpus | raw_corpus | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/images.coffee | 1 | 35 | ||
linemanjs/lineman:tasks/images.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require... | /*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
var _;
_ = require("lodash");
module.exports = function(grunt) {
v... | CoffeeScript | JavaScript | linemanjs/lineman | tasks/images.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
var _;
_ = req... | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | JavaScript | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:completion | completion | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | @requiresConfig("images.#{target}")
taskConfig = grunt.config.get("images")
targetConfig = grunt.config.get("images.#{target}")
destinationPath = "#{targetConfig.dest}/#{taskConfig.root}"
if grunt.config("images.#{target}.files")? or grunt.config("images.#{target}.src")?
grunt.warn """
... | CoffeeScript | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:raw_corpus | raw_corpus | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/tasks/images.coffee | 1 | 35 | ||
linemanjs/lineman:tasks/images.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require... | /*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
var _;
_ = require("lodash");
module.exports = function(grunt) {
v... | CoffeeScript | JavaScript | linemanjs/lineman | tasks/images.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
var _;
_ = req... | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | JavaScript | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:completion | completion | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
_ = require("lodash")
module.exports = (grunt) ->
copy = require(... | @requiresConfig("images.#{target}")
taskConfig = grunt.config.get("images")
targetConfig = grunt.config.get("images.#{target}")
destinationPath = "#{targetConfig.dest}/#{taskConfig.root}"
if grunt.config("images.#{target}.files")? or grunt.config("images.#{target}.src")?
grunt.warn """
... | CoffeeScript | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | da7b69982e44220bdd107798d86abc78749dc125 | 1,168 | https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/tasks/images.coffee | 1 | 35 |
linemanjs/lineman:tasks/images.coffee:1:raw_corpus | raw_corpus | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
module.exports = (grunt) ->
_ = grunt.util._
copy = require("./.... | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | 5d013b6f7bd0fbfeb9eb250c3da89021b84ab349 | 1,168 | https://github.com/linemanjs/lineman/blob/5d013b6f7bd0fbfeb9eb250c3da89021b84ab349/tasks/images.coffee | 1 | 34 | ||
linemanjs/lineman:tasks/images.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
module.expo... | /*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
module.exports = function(grunt) {
var _, copy;
_ = grunt.util._;
... | CoffeeScript | JavaScript | linemanjs/lineman | tasks/images.coffee | MIT | 5d013b6f7bd0fbfeb9eb250c3da89021b84ab349 | 1,168 | https://github.com/linemanjs/lineman/blob/5d013b6f7bd0fbfeb9eb250c3da89021b84ab349/tasks/images.coffee | 1 | 34 |
linemanjs/lineman:tasks/images.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
*/
module.exports ... | ###
Task: images
Description: copy images from 'app/img' & 'vendor/img' to 'generated' & 'dist'
Dependencies: grunt
Contributor: @searls
Configuration:
"root" - the path to which images will be copied under 'generated' and 'dist' (default: "img")
###
module.exports = (grunt) ->
_ = grunt.util._
copy = require("./.... | JavaScript | CoffeeScript | linemanjs/lineman | tasks/images.coffee | MIT | 5d013b6f7bd0fbfeb9eb250c3da89021b84ab349 | 1,168 | https://github.com/linemanjs/lineman/blob/5d013b6f7bd0fbfeb9eb250c3da89021b84ab349/tasks/images.coffee | 1 | 34 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.