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
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
unless @stack.length @flush() return flush: -> for item, index in @buffer by 5 @buffer[index + 4].call(@, @buffer[index], @buffer[index + 1], @buffer[index + 2], @buffer[index + 3]) @buffer = [] openGroup: (name, reason, time, result) -> fmt = '%c%s%O \t ' if typeof reason !=...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:2:raw_corpus
raw_corpus
closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else if obj.nodeType obj._gss_id else if obj.toString != Object.prototype.toString obj.toString() else if obj.displayName return obj.displayName else JSON.st...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:completion
completion
closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else if obj.nodeType obj._gss_id else if obj.toString != Object.prototype.toString obj.toString() else if obj.displayName return obj.displayName else JSON.st...
return if @level < 1 a = a.name || a return if typeof a != 'string' p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t') if @breakpoint && document? breakpoint = String(@stringify([b,c])).trim().replace /\r?\n+|\r|\s+/g, ' ' #if @breakpoint == a + breakpoint # debugger else ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:3:raw_corpus
raw_corpus
@log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', '...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
103
139
gss/engine:src/utilities/Console.coffee:3:completion
completion
@log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', '...
@pop(result, @openGroup, true) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in Console::methods Console::[method] = do (method) -> return -> if method == 'group' |...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
a9d45d36de536c20679edcd35610f40ddeb179f9
2,854
https://github.com/gss/engine/blob/a9d45d36de536c20679edcd35610f40ddeb179f9/src/utilities/Console.coffee
103
139
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'g...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] @buffer = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile',...
@stack[index - 2] = @getTime(@stack[index - 2]) if index == @stack.length - 1 @buffer.push.apply(@buffer, @stack.splice(index - 4, 5)) unless @stack.length @flush() return index - 4 return flush: -> for item, index in @buffer by -5 @stack[inde...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:2:raw_corpus
raw_corpus
if @level <= 1 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else ...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if @level <= 1 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless ...
var method; if (this.level <= 1) { method = 'groupCollapsed'; } this[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time); ({ closeGroup: function() { return this.groupEnd(); }, stringify: function(obj) { if (!obj) { ...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var method; if (this.level <= 1) { method = 'groupCollapsed'; } this[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time); ({ closeGroup: function() { return this.groupEnd(); ...
if @level <= 1 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else ...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:completion
completion
if @level <= 1 method = 'groupCollapsed' @[method || 'group'](fmt, 'font-weight: normal', name, reason, result, 'color: #999; font-weight: normal; font-style: italic;', time) closeGroup: -> @groupEnd() stringify: (obj) -> return '' unless obj if obj.push obj.map @stringify, @ else ...
breakpoint: decodeURIComponent (document?.location.search.match(/breakpoint=([^&]+)/, '') || ['',''])[1] row: (a, b, c, d) -> return if @level < 1 a = a.name || a return if typeof a != 'string' p1 = Array(4 - Math.floor((a.length + 1) / 4)).join('\t') if @breakpoint && document? breakpoint ...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:3:raw_corpus
raw_corpus
if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
103
142
gss/engine:src/utilities/Console.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") ...
var i, len, method, p2, ref; if (typeof document !== "undefined" && document !== null) { if (typeof b === 'object') { this.log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || ""); } else { p2 = Array(6 - Math.floor(String(b).len...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
103
142
gss/engine:src/utilities/Console.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var i, len, method, p2, ref; if (typeof document !== "undefined" && document !== null) { if (typeof b === 'object') { this.log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "");...
if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
103
142
gss/engine:src/utilities/Console.coffee:3:completion
completion
if document? if typeof b == 'object' @log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length...
@pop(result, @openGroup, true) @push(undefined, undefined, undefined, @closeGroup) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in Console::methods Console::[method] = d...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
ddbf7833a55908694d6c59cb3e754c28c3b66913
2,854
https://github.com/gss/engine/blob/ddbf7833a55908694d6c59cb3e754c28c3b66913/src/utilities/Console.coffee
103
142
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupC...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
@flush() return index - 4 return flush: -> for item, index in @stack by 5 @stack[index + 4].call(@, @stack[index], @stack[index + 1], @stack[index + 2], @stack[index + 3]) @stack = [] openGroup: (name, reason, time, result) -> fmt = '%c%s%O \t ' if typeof reason != 'string'...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:3:raw_corpus
raw_corpus
@log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', '...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
103
139
gss/engine:src/utilities/Console.coffee:3:completion
completion
@log('%c%s%c%s%c%s%O\t\t%O%c\t\t%s', 'color: #666', a, 'font-size: 0;line-height:0;', breakpoint, '', p1, b, d, 'color: #999', c || "") else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', '...
@push(undefined, undefined, undefined, @closeGroup) getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return Math.floor((time - other) * 100) / 100 for method in Console::methods Console::[method] = do (method) -> return -> i...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b46a2f5037af6b70bf789c6e924091e2aac2cb07
2,854
https://github.com/gss/engine/blob/b46a2f5037af6b70bf789c6e924091e2aac2cb07/src/utilities/Console.coffee
103
139
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b45951e30eb22395180a733908b0822ce3d3aff7
2,854
https://github.com/gss/engine/blob/b45951e30eb22395180a733908b0822ce3d3aff7/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupC...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
b45951e30eb22395180a733908b0822ce3d3aff7
2,854
https://github.com/gss/engine/blob/b45951e30eb22395180a733908b0822ce3d3aff7/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b45951e30eb22395180a733908b0822ce3d3aff7
2,854
https://github.com/gss/engine/blob/b45951e30eb22395180a733908b0822ce3d3aff7/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 @stack = [] methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] ...
@flush() return index - 4 return flush: -> for item, index in @stack by 5 @stack[index + 4].call(@, @stack[index], @stack[index + 1], @stack[index + 2], @stack[index + 3]) @stack = [] openGroup: (name, reason, time, result) -> fmt = '%c%s%O \t ' if typeof reason != 'string'...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
b45951e30eb22395180a733908b0822ce3d3aff7
2,854
https://github.com/gss/engine/blob/b45951e30eb22395180a733908b0822ce3d3aff7/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
JSON.stringify(obj) debug: (exp) -> document.location = document.location.toString().replace(/[&?]breakpoint=[^&]+|$/, ((document.location.search.indexOf('?') > -1) && '&' || '?') + 'breakpoint=' + exp.trim().replace(/\r?\n+|\r|\s+/g, ' ')) breakpoint: decodeURIComponent (document?.location.search...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:2:raw_corpus
raw_corpus
else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', 'color: #666', a, p1, b, 'color: #999', p2, c || "") else @log a, b, c start: (reason, name) -> @startTime = @getTime() @started ||= [] if @started.indexOf(name) > -1 started = true ...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:2:completion
completion
else p2 = Array(6 - Math.floor(String(b).length / 4) ).join('\t') @log('%c%s%s%s%c%s%s', 'color: #666', a, p1, b, 'color: #999', p2, c || "") else @log a, b, c start: (reason, name) -> @startTime = @getTime() @started ||= [] if @started.indexOf(name) > -1 started = true ...
return true end: (reason) -> popped = @started?.pop() return if !popped || @started.indexOf(popped) > -1 @endTime = @getTime() return if @level < 1 @groupEnd() getTime: (other, time) -> time ||= performance?.now?() || Date.now?() || + (new Date) return time if time && !other return...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
1f04c7d645feb45c0336892f596718f126eaa7c8
2,854
https://github.com/gss/engine/blob/1f04c7d645feb45c0336892f596718f126eaa7c8/src/utilities/Console.coffee
53
102
gss/engine:src/utilities/Console.coffee:1:raw_corpus
raw_corpus
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
4c4f57ebcdfafcfcd0452b69add4034e5dde3c21
2,854
https://github.com/gss/engine/blob/4c4f57ebcdfafcfcd0452b69add4034e5dde3c21/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time...
var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" && self !== null ? (ref1 = self.location) != null ? (ref...
CoffeeScript
JavaScript
gss/engine
src/utilities/Console.coffee
MIT
4c4f57ebcdfafcfcd0452b69add4034e5dde3c21
2,854
https://github.com/gss/engine/blob/4c4f57ebcdfafcfcd0452b69add4034e5dde3c21/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Console; Console = (function() { class Console { constructor(level) { var ref, ref1, ref2; this.level = level; if (this.level == null) { this.level = (ref = self.GSS_LOG) != null ? ref : parseFloat((typeof self !== "undefined" &...
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
JavaScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
4c4f57ebcdfafcfcd0452b69add4034e5dde3c21
2,854
https://github.com/gss/engine/blob/4c4f57ebcdfafcfcd0452b69add4034e5dde3c21/src/utilities/Console.coffee
3
52
gss/engine:src/utilities/Console.coffee:1:completion
completion
class Console constructor: (@level) -> @level ?= self.GSS_LOG ? parseFloat(self?.location?.search.match(/log=([\d.]+)/)?[1] || 0) if !Console.bind @level = 0 methods: ['log', 'warn', 'info', 'error', 'group', 'groupEnd', 'groupCollapsed', 'time', 'timeEnd', 'profile', 'profileEnd'] groups: 0 com...
JSON.stringify(obj) debug: (exp) -> document.location = document.location.toString().replace(/[&?]breakpoint=[^&]+|$/, ((document.location.search.indexOf('?') > -1) && '&' || '?') + 'breakpoint=' + exp.trim().replace(/\r?\n+|\r|\s+/g, ' ')) breakpoint: decodeURIComponent (document?.location.search...
CoffeeScript
CoffeeScript
gss/engine
src/utilities/Console.coffee
MIT
4c4f57ebcdfafcfcd0452b69add4034e5dde3c21
2,854
https://github.com/gss/engine/blob/4c4f57ebcdfafcfcd0452b69add4034e5dde3c21/src/utilities/Console.coffee
3
52
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman ne...
var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other ex...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-example...
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
commander.option("--coffee", "lineman new - Create default files in CoffeeScript instead of JavaScript.") _.each gruntCli.optlist, (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.short ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman ne...
var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other ex...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-example...
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
commander.option("--coffee", "lineman new - Create default files in CoffeeScript instead of JavaScript.") _(gruntCli.optlist).each (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.short ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
0875f134f066856faf82843af82f6e1de51aa1c6
1,168
https://github.com/linemanjs/lineman/blob/0875f134f066856faf82843af82f6e1de51aa1c6/lib/cli/setup-options.coffee
1
14
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
15b5f2936685482c9951141c4fa7dadb8fe648ed
1,168
https://github.com/linemanjs/lineman/blob/15b5f2936685482c9951141c4fa7dadb8fe648ed/lib/cli/setup-options.coffee
1
12
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman ne...
var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other ex...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
15b5f2936685482c9951141c4fa7dadb8fe648ed
1,168
https://github.com/linemanjs/lineman/blob/15b5f2936685482c9951141c4fa7dadb8fe648ed/lib/cli/setup-options.coffee
1
12
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-example...
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
15b5f2936685482c9951141c4fa7dadb8fe648ed
1,168
https://github.com/linemanjs/lineman/blob/15b5f2936685482c9951141c4fa7dadb8fe648ed/lib/cli/setup-options.coffee
1
12
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
commander.option("--process", "lineman config - Process the grunt options, interpolating <%= %> template variables") _(gruntCli.optlist).each (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.s...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
15b5f2936685482c9951141c4fa7dadb8fe648ed
1,168
https://github.com/linemanjs/lineman/blob/15b5f2936685482c9951141c4fa7dadb8fe648ed/lib/cli/setup-options.coffee
1
12
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3cf4e3376890d32e30e817c390713cecfde70d89
1,168
https://github.com/linemanjs/lineman/blob/3cf4e3376890d32e30e817c390713cecfde70d89/lib/cli/setup-options.coffee
1
11
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman ne...
var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other ex...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3cf4e3376890d32e30e817c390713cecfde70d89
1,168
https://github.com/linemanjs/lineman/blob/3cf4e3376890d32e30e817c390713cecfde70d89/lib/cli/setup-options.coffee
1
11
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-example...
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3cf4e3376890d32e30e817c390713cecfde70d89
1,168
https://github.com/linemanjs/lineman/blob/3cf4e3376890d32e30e817c390713cecfde70d89/lib/cli/setup-options.coffee
1
11
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
commander.option("--skip-clean", "lineman build - Builds into the 'dist' directory without emptying it first.") _(gruntCli.optlist).each (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.short ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3cf4e3376890d32e30e817c390713cecfde70d89
1,168
https://github.com/linemanjs/lineman/blob/3cf4e3376890d32e30e817c390713cecfde70d89/lib/cli/setup-options.coffee
1
11
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman ne...
var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other ex...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("lodash"); module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-example...
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("lodash") module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files when ...
_(gruntCli.optlist).each (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.short commander.option(desc, "grunt - #{option.info}")
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:raw_corpus
raw_corpus
_ = require("grunt").util._ module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files...
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3d0def6f66d247509e26da33b3aec18ccc80ae73
1,168
https://github.com/linemanjs/lineman/blob/3d0def6f66d247509e26da33b3aec18ccc80ae73/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require("grunt").util._ module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "line...
var _; _ = require("grunt").util._; module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-examples", "lineman new - Skips the 'hello world' and ot...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3d0def6f66d247509e26da33b3aec18ccc80ae73
1,168
https://github.com/linemanjs/lineman/blob/3d0def6f66d247509e26da33b3aec18ccc80ae73/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _; _ = require("grunt").util._; module.exports = function(commander, gruntCli) { commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project"); commander.option("--skip-e...
_ = require("grunt").util._ module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3d0def6f66d247509e26da33b3aec18ccc80ae73
1,168
https://github.com/linemanjs/lineman/blob/3d0def6f66d247509e26da33b3aec18ccc80ae73/lib/cli/setup-options.coffee
1
10
linemanjs/lineman:lib/cli/setup-options.coffee:1:completion
completion
_ = require("grunt").util._ module.exports = (commander, gruntCli) -> commander.option("--install", "lineman new - Perform an `npm install` when creating a new project, effectively freezing lineman with the project") commander.option("--skip-examples", "lineman new - Skips the 'hello world' and other example files...
_(gruntCli.optlist).each (option, name) -> unless name in ["help", "version"] desc = if option.negate then "--no-#{name}" else "--#{name}" desc = "-#{option.short}, #{desc}" if option.short commander.option(desc, "grunt - #{option.info}")
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/setup-options.coffee
MIT
3d0def6f66d247509e26da33b3aec18ccc80ae73
1,168
https://github.com/linemanjs/lineman/blob/3d0def6f66d247509e26da33b3aec18ccc80ae73/lib/cli/setup-options.coffee
1
10
jianliaoim/talk-os:talk-web/client/module/popover-beta.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'lite-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obje...
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/popover-beta.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/popover-beta.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/popover-beta.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'lite-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T....
module.exports = React.createClass({ displayName: 'lite-popover', mixins: [mixinLayered], propTypes: { // this component accepts children title: T.string, name: T.string, onPopoverClose: T.func, positionAlgorithm: T.func, // could be customized baseArea: T.object.isRequired, // top, right,...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/module/popover-beta.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/popover-beta.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/popover-beta.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'lite-popover', mixins: [mixinLayered], propTypes: { // this component accepts children title: T.string, name: T.string, onPopoverClose: T.func, positionAlgorithm: T.func, // could be custo...
module.exports = React.createClass displayName: 'lite-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obje...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/popover-beta.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/popover-beta.coffee
35
84
jianliaoim/talk-os:talk-web/client/module/popover-beta.coffee:1:completion
completion
module.exports = React.createClass displayName: 'lite-popover' mixins: [mixinLayered] propTypes: # this component accepts children title: T.string name: T.string onPopoverClose: T.func positionAlgorithm: T.func # could be customized baseArea: T.obje...
if (left + width + 20) > window.innerWidth left = window.innerWidth - width - 20 # return as style top: "#{top}px" left: "#{left}px" onPopoverClose: -> @props.onPopoverClose() renderLayer: (afterTransition) -> decorator = "is-#{@props.name or 'default'}" div null, if @props.sho...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/module/popover-beta.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/module/popover-beta.coffee
35
84
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: (@$log, @messageService) -> @searchHistory = [] @messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: (@$log, @messageService) -> @searchHistory = [] @messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService',...
var Controller; Controller = class Controller { constructor($log, messageService) { this.$log = $log; this.messageService = messageService; this.searchHistory = []; this.messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters); }); } }; angul...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Controller; Controller = class Controller { constructor($log, messageService) { this.$log = $log; this.messageService = messageService; this.searchHistory = []; this.messageService.subscribe('search', (name, parameters) => { return this...
class Controller constructor: (@$log, @messageService) -> @searchHistory = [] @messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
class Controller constructor: (@$log, @messageService) -> @searchHistory = []
@messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Co...
var Controller; Controller = class Controller { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters); }); } }; angular.module('app').controller('searchHistoryController', ['$log', 'mess...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Controller; Controller = class Controller { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters); }); } }; angular.module('app...
class Controller constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
class Controller constructor: ($log, messageService) -> @searchHistory = []
messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', Controller]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHistoryController]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messag...
var SearchHistoryController; SearchHistoryController = class SearchHistoryController { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters); }); } }; angular.module('app').controller('s...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SearchHistoryController; SearchHistoryController = class SearchHistoryController { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters...
class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHistoryController]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = []
messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHistoryController]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/searchHistoryController.coffee
1
8
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHis...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searc...
(function(angular) { 'use strict'; var SearchHistoryController; SearchHistoryController = class SearchHistoryController { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { return this.searchHistory.push(parameters); ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var SearchHistoryController; SearchHistoryController = class SearchHistoryController { constructor($log, messageService) { this.searchHistory = []; messageService.subscribe('search', (name, parameters) => { ...
do (angular) -> 'use strict' class SearchHistoryController constructor: ($log, messageService) -> @searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHis...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
do (angular) -> 'use strict' class SearchHistoryController constructor: ($log, messageService) ->
@searchHistory = [] messageService.subscribe 'search', (name, parameters) => @searchHistory.push parameters angular.module('app').controller 'searchHistoryController', ['$log', 'messageService', SearchHistoryController]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
angular.module('app').controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameters) -> $scope.searchHistory.push parameters ]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/searchHistoryController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameters) -> $scope.searchHistory.push parameters ] ```
angular.module('app').controller('searchHistoryController', [ '$log', '$scope', 'messageService', function($log, $scope, messageService) { $scope.searchHistory = []; return messageService.subscribe('search', function(name, parameters) { return $scope.searchHistory.push(parameters); });...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/searchHistoryController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').controller('searchHistoryController', [ '$log', '$scope', 'messageService', function($log, $scope, messageService) { $scope.searchHistory = []; return messageService.subscribe('search', function(name, parameters) { ...
angular.module('app').controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameters) -> $scope.searchHistory.push parameters ]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/searchHistoryController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
angular.module('app').controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = []
messageService.subscribe 'search', (name, parameters) -> $scope.searchHistory.push parameters ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/searchHistoryController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:raw_corpus
raw_corpus
###global define### define ['controllers/controllers', 'services/messageService'], (controllers) -> 'use strict' controllers.controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameter...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['controllers/controllers', 'services/messageService'], (controllers) -> 'use strict' controllers.controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = ...
/*global define*/ define(['controllers/controllers', 'services/messageService'], function(controllers) { 'use strict'; return controllers.controller('searchHistoryController', [ '$log', '$scope', 'messageService', function($log, $scope, messageService) { $scope.searchHistory = []; ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['controllers/controllers', 'services/messageService'], function(controllers) { 'use strict'; return controllers.controller('searchHistoryController', [ '$log', '$scope', 'messageService', function($log, $scope, ...
###global define### define ['controllers/controllers', 'services/messageService'], (controllers) -> 'use strict' controllers.controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameter...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/searchHistoryController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/searchHistoryController.coffee:1:completion
completion
###global define### define ['controllers/controllers', 'services/messageService'], (controllers) -> 'use strict'
controllers.controller 'searchHistoryController', ['$log', '$scope', 'messageService', ($log, $scope, messageService) -> $scope.searchHistory = [] messageService.subscribe 'search', (name, parameters) -> $scope.searchHistory.push parameters ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/searchHistoryController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/searchHistoryController.coffee
1
11
buttercoin/buttercoin:test/transactionlog.coffee:1:raw_corpus
raw_corpus
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' TestHelper = require('./test_helper') kTestFilename = 'test.log' describe 'TransactionLog', -> beforeEach => TestHelper.clean_...
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
db5e4cf6ff27f1719cbb36c2e726770cdff9b041
663
https://github.com/buttercoin/buttercoin/blob/db5e4cf6ff27f1719cbb36c2e726770cdff9b041/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' TestHelper = require('./test_helper') kTestFilename = 'test.log' describe ...
var Ops, Q, TLog, TestHelper, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/operations'); TestHelper = require('./test_helper'); kT...
CoffeeScript
JavaScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
db5e4cf6ff27f1719cbb36c2e726770cdff9b041
663
https://github.com/buttercoin/buttercoin/blob/db5e4cf6ff27f1719cbb36c2e726770cdff9b041/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Ops, Q, TLog, TestHelper, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/op...
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' TestHelper = require('./test_helper') kTestFilename = 'test.log' describe 'TransactionLog', -> beforeEach => TestHelper.clean_...
JavaScript
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
db5e4cf6ff27f1719cbb36c2e726770cdff9b041
663
https://github.com/buttercoin/buttercoin/blob/db5e4cf6ff27f1719cbb36c2e726770cdff9b041/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:completion
completion
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' TestHelper = require('./test_helper') kTestFilename = 'test.log' describe 'TransactionLog', -> beforeEach => TestHelper.clean_...
finish() .done() it 'should initialize if the log file already exists', (finish) -> trans_log = new TLog kTestFilename trans_log.start().then => assert trans_log.filename is kTestFilename trans_log.shutdown() trans_log.start().then => assert trans_log.filename is kTestFilename ...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
db5e4cf6ff27f1719cbb36c2e726770cdff9b041
663
https://github.com/buttercoin/buttercoin/blob/db5e4cf6ff27f1719cbb36c2e726770cdff9b041/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:raw_corpus
raw_corpus
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should initialize', (finish) -> trans_log = new TLog null, kTest...
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
cca1d6fd655625548e753236433060b129361f53
663
https://github.com/buttercoin/buttercoin/blob/cca1d6fd655625548e753236433060b129361f53/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should init...
var Ops, Q, TLog, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/operations'); kTestFilename = 'test.log'; describe('TransactionLog'...
CoffeeScript
JavaScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
cca1d6fd655625548e753236433060b129361f53
663
https://github.com/buttercoin/buttercoin/blob/cca1d6fd655625548e753236433060b129361f53/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Ops, Q, TLog, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/operations'); ...
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should initialize', (finish) -> trans_log = new TLog null, kTest...
JavaScript
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
cca1d6fd655625548e753236433060b129361f53
663
https://github.com/buttercoin/buttercoin/blob/cca1d6fd655625548e753236433060b129361f53/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:completion
completion
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should initialize', (finish) -> trans_log = new TLog null, kTest...
trans_log.shutdown() trans_log.start().then => assert trans_log.filename is kTestFilename trans_log.shutdown() finish() .done() it 'should record a message correctly', (finish) -> # Make sure the state is clean if fs.existsSync kTestFilename fs.unlinkSync kTestFilename...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
cca1d6fd655625548e753236433060b129361f53
663
https://github.com/buttercoin/buttercoin/blob/cca1d6fd655625548e753236433060b129361f53/test/transactionlog.coffee
1
50
buttercoin/buttercoin:test/transactionlog.coffee:1:raw_corpus
raw_corpus
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should initialize', (finish) -> trans_log = new TLog null, kTest...
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
0e61ced53f96d1c50b7c3ffad03962c49fde3a7d
663
https://github.com/buttercoin/buttercoin/blob/0e61ced53f96d1c50b7c3ffad03962c49fde3a7d/test/transactionlog.coffee
1
41
buttercoin/buttercoin:test/transactionlog.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should init...
var Ops, Q, TLog, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/operations'); kTestFilename = 'test.log'; describe('TransactionLog'...
CoffeeScript
JavaScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
0e61ced53f96d1c50b7c3ffad03962c49fde3a7d
663
https://github.com/buttercoin/buttercoin/blob/0e61ced53f96d1c50b7c3ffad03962c49fde3a7d/test/transactionlog.coffee
1
41
buttercoin/buttercoin:test/transactionlog.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Ops, Q, TLog, assert, chai, expect, fs, kTestFilename; chai = require('chai'); chai.should(); expect = chai.expect; assert = chai.assert; Q = require('q'); fs = require('fs'); TLog = require('../lib/transactionlog'); Ops = require('../lib/operations'); ...
chai = require 'chai' chai.should() expect = chai.expect assert = chai.assert Q = require('q') fs = require 'fs' TLog = require '../lib/transactionlog' Ops = require '../lib/operations' kTestFilename = 'test.log' describe 'TransactionLog', -> it 'should initialize', (finish) -> trans_log = new TLog null, kTest...
JavaScript
CoffeeScript
buttercoin/buttercoin
test/transactionlog.coffee
MIT
0e61ced53f96d1c50b7c3ffad03962c49fde3a7d
663
https://github.com/buttercoin/buttercoin/blob/0e61ced53f96d1c50b7c3ffad03962c49fde3a7d/test/transactionlog.coffee
1
41