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
xhan/qqbot:plugins/help.coffee:2:completion
completion
send "哈哈," + ret[1] if content.match /^uptime$/i secs = (new Date().getTime() - start_at) / 1000
aday = 86400 ahour = 3600 [day,hour,minute,second] = [secs/ aday,secs%aday/ ahour,secs%ahour/ 60,sec%60].map (i)-> parseInt(i) send "up #{day} days, #{hour}:#{minute}:#{second}"
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
44be5ffe9e72a7275465e53a52d76d7037dadbe5
1,435
https://github.com/xhan/qqbot/blob/44be5ffe9e72a7275465e53a52d76d7037dadbe5/plugins/help.coffee
51
58
xhan/qqbot:plugins/help.coffee:1:raw_corpus
raw_corpus
HELP_INFO = """ version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容 """ fs = require 'fs' Path = require 'path' file_path = Path.join __dirname, "..", "package.json" bundle = JSON.parse( fs.readFileSync file_path ) VERSION_INFO = """ ...
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
21396c36f0788942c3d40c560cfeac5e2ba3526a
1,435
https://github.com/xhan/qqbot/blob/21396c36f0788942c3d40c560cfeac5e2ba3526a/plugins/help.coffee
1
48
xhan/qqbot:plugins/help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript HELP_INFO = """ version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容 """ fs = require 'fs' Path = require 'path' file_path = Path.join __dirname, "..", "package.json" bundle = JSO...
var HELP_INFO, Path, VERSION_INFO, bundle, file_path, fs; HELP_INFO = `version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容`; fs = require('fs'); Path = require('path'); file_path = Path.join(__dirname, "..", "package.json"); bundle = JSON.parse(fs.rea...
CoffeeScript
JavaScript
xhan/qqbot
plugins/help.coffee
MIT
21396c36f0788942c3d40c560cfeac5e2ba3526a
1,435
https://github.com/xhan/qqbot/blob/21396c36f0788942c3d40c560cfeac5e2ba3526a/plugins/help.coffee
1
48
xhan/qqbot:plugins/help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var HELP_INFO, Path, VERSION_INFO, bundle, file_path, fs; HELP_INFO = `version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容`; fs = require('fs'); Path = require('path'); file_path = Path.join(__dirn...
HELP_INFO = """ version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容 """ fs = require 'fs' Path = require 'path' file_path = Path.join __dirname, "..", "package.json" bundle = JSON.parse( fs.readFileSync file_path ) VERSION_INFO = """ ...
JavaScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
21396c36f0788942c3d40c560cfeac5e2ba3526a
1,435
https://github.com/xhan/qqbot/blob/21396c36f0788942c3d40c560cfeac5e2ba3526a/plugins/help.coffee
1
48
xhan/qqbot:plugins/help.coffee:1:completion
completion
HELP_INFO = """ version/about #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo 爱你 #重复后面的话 help #本内容 """ fs = require 'fs' Path = require 'path' file_path = Path.join __dirname, "..", "package.json" bundle = JSON.parse( fs.readFileSync file_path ) VERSION_INFO = """ ...
### # 问题:方式不优雅,应该是一个模式识别成功,别的就不应调用到 module.exports = (content ,send, robot, message)-> if content.match /^help$/i send HELP_INFO if content.match /^VERSION|ABOUT$/i send VERSION_INFO if content.match /^plugins$/i send "插件列表:\n" + robot.dispatcher.plugins.join('\r\n') if conte...
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
21396c36f0788942c3d40c560cfeac5e2ba3526a
1,435
https://github.com/xhan/qqbot/blob/21396c36f0788942c3d40c560cfeac5e2ba3526a/plugins/help.coffee
1
48
xhan/qqbot:plugins/help.coffee:1:raw_corpus
raw_corpus
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @para...
var HELP_INFO, VERSION_INFO; HELP_INFO = `version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容`; VERSION_INFO = `v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助!`; /* @param content 消息内容 @param send(content) 回复消息 @param robot qqbot instanc...
CoffeeScript
JavaScript
xhan/qqbot
plugins/help.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var HELP_INFO, VERSION_INFO; HELP_INFO = `version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容`; VERSION_INFO = `v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助!`; /* @param content 消息内容 ...
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
JavaScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:completion
completion
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
# 问题:方式不优雅,应该是一个模式识别成功,别的就不应调用到 module.exports = (content ,send, robot, message)-> if content.match /^help$/i send HELP_INFO if content.match /^VERSION$/i send VERSION_INFO if content.match /^plugins$/i send "插件列表:\n" + robot.dispatcher.plugins.join('\r\n') if content.match ...
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
7a315b182835c1b93eff295543911976750cfb4e
1,435
https://github.com/xhan/qqbot/blob/7a315b182835c1b93eff295543911976750cfb4e/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:raw_corpus
raw_corpus
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
06be814ab1f91f0715479f00e15c1295155c7f2c
1,435
https://github.com/xhan/qqbot/blob/06be814ab1f91f0715479f00e15c1295155c7f2c/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @para...
var HELP_INFO, VERSION_INFO; HELP_INFO = `version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容`; VERSION_INFO = `v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助!`; /* @param content 消息内容 @param send(content) 回复消息 @param robot qqbot instanc...
CoffeeScript
JavaScript
xhan/qqbot
plugins/help.coffee
MIT
06be814ab1f91f0715479f00e15c1295155c7f2c
1,435
https://github.com/xhan/qqbot/blob/06be814ab1f91f0715479f00e15c1295155c7f2c/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var HELP_INFO, VERSION_INFO; HELP_INFO = `version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容`; VERSION_INFO = `v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助!`; /* @param content 消息内容 ...
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
JavaScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
06be814ab1f91f0715479f00e15c1295155c7f2c
1,435
https://github.com/xhan/qqbot/blob/06be814ab1f91f0715479f00e15c1295155c7f2c/plugins/help.coffee
1
43
xhan/qqbot:plugins/help.coffee:1:completion
completion
HELP_INFO = """ version #版本信息和关于 plugins #查看载入的插件 time #显示时间 echo #重复后面的话 help #本内容 """ VERSION_INFO = """ v1.0.0 qqbot http://github.com/xhan/qqbot 本工具还由 糗事百科 热血赞助! """ ### @param content 消息内容 @param send(content) 回复消息 @param robot ...
# 问题:方式不优雅,应该是一个模式识别成功,别的就不应调用到 module.exports = (content ,send, robot, message)-> if content.match /^help$/i send HELP_INFO if content.match /^VERSION$/i send VERSION_INFO if content.match /^plugins$/i send "插件列表:\n" + robot.plugin_control.plugins.join('\r\n') if content.ma...
CoffeeScript
CoffeeScript
xhan/qqbot
plugins/help.coffee
MIT
06be814ab1f91f0715479f00e15c1295155c7f2c
1,435
https://github.com/xhan/qqbot/blob/06be814ab1f91f0715479f00e15c1295155c7f2c/plugins/help.coffee
1
43
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery", "plotly.js"], pivot...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { ...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
datumKeys.push([]) if datumKeys.length == 0 fullAggName = pivotData.aggregatorName if pivotData.valAttrs.length fullAggName += "(#{pivotData.valAttrs.join(", ")})" data = traceKeys.map (traceKey) -> values = [] labels = [] ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:raw_corpus
raw_corpus
if transpose hAxisTitle = pivotData.rowAttrs.join("-") groupByTitle = pivotData.colAttrs.join("-") else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleT...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if transpose hAxisTitle = pivotData.rowAttrs.join("-") groupByTitle = pivotData.colAttrs.join("-") else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-...
var columns, d, groupByTitle, hAxisTitle, i, layout, makePlotlyScatterChart, result, rows, titleText; if (transpose) { hAxisTitle = pivotData.rowAttrs.join("-"); groupByTitle = pivotData.colAttrs.join("-"); } else { hAxisTitle = pivotData.colAttrs.join("-"); groupByTitle = pivotData.rowAttrs.join("-"); } titl...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var columns, d, groupByTitle, hAxisTitle, i, layout, makePlotlyScatterChart, result, rows, titleText; if (transpose) { hAxisTitle = pivotData.rowAttrs.join("-"); groupByTitle = pivotData.colAttrs.join("-"); } else { hAxisTitle = pivotData.colAttrs.join("-");...
if transpose hAxisTitle = pivotData.rowAttrs.join("-") groupByTitle = pivotData.colAttrs.join("-") else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleT...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:completion
completion
if transpose hAxisTitle = pivotData.rowAttrs.join("-") groupByTitle = pivotData.colAttrs.join("-") else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleT...
} if data.length > 1 d.title = d.name layout.showlegend = false if data[0].labels.length == 1 else layout.xaxis = title: if transpose then fullAggName else null automargin: true ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
rowKeys = pivotData.getRowKeys() rowKeys.push [] if rowKeys.length == 0 colKeys = pivotData.getColKeys() colKeys.push [] if colKeys.length == 0 data = {x: [], y: [], text: [], type: 'scatter', mode: 'markers'} for rowKey in rowKeys for colKey in colKeys ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
101
144
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
rowKeys = pivotData.getRowKeys() rowKeys.push [] if rowKeys.length == 0 colKeys = pivotData.getColKeys() colKeys.push [] if colKeys.length == 0 data = {x: [], y: [], text: [], type: 'scatter', mode: 'markers'} for rowKey in rowKeys for colKey in colKeys ...
} renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.newPlot(result[0], [data], $.extend(layout, opts.plotly), opts.plotlyConfig) result.detach() renderArea.remove() return result $.pivotUtilities.plotly...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/src/plotly_renderers.coffee
101
144
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery", "plotly.js"], pivot...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { ...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
datumKeys.push([]) if datumKeys.length == 0 fullAggName = pivotData.aggregatorName if pivotData.valAttrs.length fullAggName += "(#{pivotData.valAttrs.join(", ")})" data = traceKeys.map (traceKey) -> values = [] labels = [] ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:raw_corpus
raw_corpus
else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if gr...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:completion
completion
else hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if gr...
defaults = localeStrings: {vs: "vs", by: "by"} plotly: {} plotlyConfig: {} opts = $.extend(true, {}, defaults, opts) rowKeys = pivotData.getRowKeys() rowKeys.push [] if rowKeys.length == 0 colKeys = pivotData.getColKeys() colKeys.push [] if c...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
xaxis: {title: pivotData.colAttrs.join('-'), automargin: true}, yaxis: {title: pivotData.rowAttrs.join('-'), automargin: true}, width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
101
123
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
xaxis: {title: pivotData.colAttrs.join('-'), automargin: true}, yaxis: {title: pivotData.rowAttrs.join('-'), automargin: true}, width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") ...
return result $.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'relative'}, true) "Bar Cha...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d
4,440
https://github.com/nicolaskruchten/pivottable/blob/5c64ce0a434b4730f3cd4ab146a7156ec21fcf7d/src/plotly_renderers.coffee
101
123
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery", "plotly.js"], pivot...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery"), require("plotly.js")); } else if (typeof define === "function" && define.amd) { ...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery"), require("plotly.js") else if typeof define is "function" and define.amd # AMD define ["jquery", "plotly.js"], pivotModule # Plain browser env else ...
fullAggName = pivotData.aggregatorName if pivotData.valAttrs.length fullAggName += "(#{pivotData.valAttrs.join(", ")})" data = traceKeys.map (traceKey) -> values = [] labels = [] for datumKey in datumKeys val = ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
1
50
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:raw_corpus
raw_corpus
hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if groupByTitle != "" ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:completion
completion
hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if groupByTitle != "" ...
localeStrings: {vs: "vs", by: "by"} plotly: {} opts = $.extend(true, {}, defaults, opts) rowKeys = pivotData.getRowKeys() rowKeys.push [] if rowKeys.length == 0 colKeys = pivotData.getColKeys() colKeys.push [] if colKeys.length == 0 data = {x: [], y: [], te...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.newPlot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
101
121
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.newPlot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() ...
$.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'relative'}, true) "Bar Chart": makePlotlyChar...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
55845daa6ed8d5383315c2d1dd21a42575d6fe6b
4,440
https://github.com/nicolaskruchten/pivottable/blob/55845daa6ed8d5383315c2d1dd21a42575d6fe6b/src/plotly_renderers.coffee
101
121
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
8690a13ec1c5fc155ba1534a8e1740e1a51e77b3
4,440
https://github.com/nicolaskruchten/pivottable/blob/8690a13ec1c5fc155ba1534a8e1740e1a51e77b3/src/plotly_renderers.coffee
101
121
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
$.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'relative'}, true) "Bar Chart": makePlotlyChar...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
8690a13ec1c5fc155ba1534a8e1740e1a51e77b3
4,440
https://github.com/nicolaskruchten/pivottable/blob/8690a13ec1c5fc155ba1534a8e1740e1a51e77b3/src/plotly_renderers.coffee
101
121
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
6a193b4dba55ff4b8d553fc38fc395b95d431c03
4,440
https://github.com/nicolaskruchten/pivottable/blob/6a193b4dba55ff4b8d553fc38fc395b95d431c03/src/plotly_renderers.coffee
101
120
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
$.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'relative'}, true) "Bar Chart": makePlotlyChar...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
6a193b4dba55ff4b8d553fc38fc395b95d431c03
4,440
https://github.com/nicolaskruchten/pivottable/blob/6a193b4dba55ff4b8d553fc38fc395b95d431c03/src/plotly_renderers.coffee
101
120
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
4667a24e2a3f6055b29350ff9328ecfdce716b95
4,440
https://github.com/nicolaskruchten/pivottable/blob/4667a24e2a3f6055b29350ff9328ecfdce716b95/src/plotly_renderers.coffee
101
120
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result = $("<div>").appendTo renderArea Plotly.plot(result[0], [data], $.extend(layout, opts.plotly)) result.detach() re...
$.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'stack'}, true) "Bar Chart": makePlotlyChart({...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
4667a24e2a3f6055b29350ff9328ecfdce716b95
4,440
https://github.com/nicolaskruchten/pivottable/blob/4667a24e2a3f6055b29350ff9328ecfdce716b95/src/plotly_renderers.coffee
101
120
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:raw_corpus
raw_corpus
hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if groupByTitle != "" ...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
a15ab96480dac437af8014d12f86fc87f798ea2e
4,440
https://github.com/nicolaskruchten/pivottable/blob/a15ab96480dac437af8014d12f86fc87f798ea2e/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:2:completion
completion
hAxisTitle = pivotData.colAttrs.join("-") groupByTitle = pivotData.rowAttrs.join("-") titleText = fullAggName titleText += " #{opts.localeStrings.vs} #{hAxisTitle}" if hAxisTitle != "" titleText += " #{opts.localeStrings.by} #{groupByTitle}" if groupByTitle != "" ...
makePlotlyScatterChart = -> (pivotData, opts) -> defaults = localeStrings: {vs: "vs", by: "by"} plotly: {} opts = $.extend(true, {}, defaults, opts) rowKeys = pivotData.getRowKeys() rowKeys.push [] if rowKeys.length == 0 colKeys = pivotData.getColKeys() ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
a15ab96480dac437af8014d12f86fc87f798ea2e
4,440
https://github.com/nicolaskruchten/pivottable/blob/a15ab96480dac437af8014d12f86fc87f798ea2e/src/plotly_renderers.coffee
51
100
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:raw_corpus
raw_corpus
xaxis: {title: pivotData.colAttrs.join('-'), domain: [0.1, 1.0]}, yaxis: {title: pivotData.rowAttrs.join('-')}, width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result =...
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
a15ab96480dac437af8014d12f86fc87f798ea2e
4,440
https://github.com/nicolaskruchten/pivottable/blob/a15ab96480dac437af8014d12f86fc87f798ea2e/src/plotly_renderers.coffee
101
122
nicolaskruchten/pivottable:src/plotly_renderers.coffee:3:completion
completion
xaxis: {title: pivotData.colAttrs.join('-'), domain: [0.1, 1.0]}, yaxis: {title: pivotData.rowAttrs.join('-')}, width: window.innerWidth / 1.5, height: window.innerHeight / 1.4 - 50 } renderArea = $("<div>", style: "display:none;").appendTo $("body") result =...
return result $.pivotUtilities.plotly_renderers = "Horizontal Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'group'}, true) "Horizontal Stacked Bar Chart": makePlotlyChart({type: 'bar', orientation: 'h'}, {barmode: 'stack'}, true) "Bar Chart"...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
src/plotly_renderers.coffee
MIT
a15ab96480dac437af8014d12f86fc87f798ea2e
4,440
https://github.com/nicolaskruchten/pivottable/blob/a15ab96480dac437af8014d12f86fc87f798ea2e/src/plotly_renderers.coffee
101
122
nicolaskruchten/pivottable:pivot.zh.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
3
52
nicolaskruchten/pivottable:pivot.zh.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
3
52
nicolaskruchten/pivottable:pivot.zh.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
3
52
nicolaskruchten/pivottable:pivot.zh.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
computeError: "计算结果时出错。" uiRenderError: "展示界面时出错。" selectAll: "选择全部" selectNone: "全部不选" tooMany: "(因数据过多而无法列出)" filterResults: "输入值帮助筛选" totals: "合计" vs: "于" by: "分组于" aggregators: "频数": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
3
52
nicolaskruchten/pivottable:pivot.zh.coffee:2:raw_corpus
raw_corpus
"频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct) "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct) "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "表格": r["Table"] "表格内柱状图": r["Table Barchart"] "热图": r["...
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
53
92
nicolaskruchten/pivottable:pivot.zh.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct) "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct) "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "表格": r["Table"] ...
({ "频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct)({ "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct), "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) }), renderers: { "表格": r["Table"], "表格内柱状图": r["Table Barchart"], "热图": r["Heatmap"], "行热图": r["Row Heatma...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
53
92
nicolaskruchten/pivottable:pivot.zh.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ "频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct)({ "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct), "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) }), renderers: { "表格": r["Table"], "表格内柱状图": r["Table Barch...
"频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct) "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct) "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "表格": r["Table"] "表格内柱状图": r["Table Barchart"] "热图": r["...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
53
92
nicolaskruchten/pivottable:pivot.zh.coffee:2:completion
completion
"频数在总计中的比例": tpl.fractionOf(tpl.count(), "total", frFmtPct) "频数在行合计中的比例": tpl.fractionOf(tpl.count(), "row", frFmtPct) "频数在列合计中的比例": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "表格": r["Table"] "表格内柱状图": r["Table Barchart"] "热图": r["...
if d3r $.pivotUtilities.locales.zh.d3_renderers = "树图": d3r["Treemap"] $.pivotUtilities.locales.zh.renderers = $.extend( $.pivotUtilities.locales.zh.renderers, $.pivotUtilities.locales.zh.d3_renderers) if c3r $.pivotUtilities.locales.zh.c3_renderers = ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.zh.coffee
MIT
dcb35d6b1e235aed4abefa90d65cee4aac3b6d04
4,440
https://github.com/nicolaskruchten/pivottable/blob/dcb35d6b1e235aed4abefa90d65cee4aac3b6d04/pivot.zh.coffee
53
92
JoelBesada/activate-power-mode:lib/flow-list.coffee:1:raw_corpus
raw_corpus
SelectListView = require "atom-select-list" module.exports = init: (flowRegistry) -> @flowRegistry = flowRegistry @selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.title + item...
CoffeeScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
1
50
JoelBesada/activate-power-mode:lib/flow-list.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript SelectListView = require "atom-select-list" module.exports = init: (flowRegistry) -> @flowRegistry = flowRegistry @selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', itemsClassList: ['mark-active'], items...
var SelectListView; SelectListView = require("atom-select-list"); module.exports = { init: function(flowRegistry) { this.flowRegistry = flowRegistry; this.selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', itemsClassList: ['mark-active'], items: [], filt...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
1
50
JoelBesada/activate-power-mode:lib/flow-list.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SelectListView; SelectListView = require("atom-select-list"); module.exports = { init: function(flowRegistry) { this.flowRegistry = flowRegistry; this.selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', items...
SelectListView = require "atom-select-list" module.exports = init: (flowRegistry) -> @flowRegistry = flowRegistry @selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.title + item...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
1
50
JoelBesada/activate-power-mode:lib/flow-list.coffee:1:completion
completion
SelectListView = require "atom-select-list" module.exports = init: (flowRegistry) -> @flowRegistry = flowRegistry @selectListView = new SelectListView({ emptyMessage: 'No flows in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.title + item...
dispose: -> @cancel() @selectListView.destroy() cancel: -> if @panel? @panel.destroy() @panel = null @currentFlow = null if @previouslyFocusedElement @previouslyFocusedElement.focus() @previouslyFocusedElement = null attach: -> @previouslyFocusedElement = document.act...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
1
50
JoelBesada/activate-power-mode:lib/flow-list.coffee:2:raw_corpus
raw_corpus
@currentFlow = @flowRegistry.flow flows = [] for code, flow of @flowRegistry.flows flows.push({ code: code, flow: flow, title: if flow.title then flow.title else code, description: flow.description }) @selectListView.update({items: flows}) ...
CoffeeScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
51
61
JoelBesada/activate-power-mode:lib/flow-list.coffee:2:completion
completion
@currentFlow = @flowRegistry.flow flows = [] for code, flow of @flowRegistry.flows flows.push({ code: code,
flow: flow, title: if flow.title then flow.title else code, description: flow.description }) @selectListView.update({items: flows}) @attach()
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/flow-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/flow-list.coffee
51
61
discolabs/cartjs:src/ie8.coffee:1:raw_corpus
raw_corpus
# CartJS.IE8 # IE8 (non-ES5) specific code. # ---------------------------------------- if 'rivets' of window CartJS.IE8 = # Initialise IE8 compatibility. init: () -> CartJS.Utils.log('Initialising IE8 compatibility module.') jQuery(document).on 'cart.requestComplete', CartJS.IE8.rebindViews ...
CoffeeScript
discolabs/cartjs
src/ie8.coffee
MIT
1b76b0a1cbf48719816883621109129612258764
493
https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/src/ie8.coffee
1
36
discolabs/cartjs:src/ie8.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # CartJS.IE8 # IE8 (non-ES5) specific code. # ---------------------------------------- if 'rivets' of window CartJS.IE8 = # Initialise IE8 compatibility. init: () -> CartJS.Utils.log('Initialising IE8 compatibility module.') jQuery(docume...
// CartJS.IE8 // IE8 (non-ES5) specific code. // ---------------------------------------- if ('rivets' in window) { CartJS.IE8 = { // Initialise IE8 compatibility. init: function() { CartJS.Utils.log('Initialising IE8 compatibility module.'); return jQuery(document).on('cart.requestComplete', Cart...
CoffeeScript
JavaScript
discolabs/cartjs
src/ie8.coffee
MIT
1b76b0a1cbf48719816883621109129612258764
493
https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/src/ie8.coffee
1
36
discolabs/cartjs:src/ie8.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // CartJS.IE8 // IE8 (non-ES5) specific code. // ---------------------------------------- if ('rivets' in window) { CartJS.IE8 = { // Initialise IE8 compatibility. init: function() { CartJS.Utils.log('Initialising IE8 compatibility module.'); ...
# CartJS.IE8 # IE8 (non-ES5) specific code. # ---------------------------------------- if 'rivets' of window CartJS.IE8 = # Initialise IE8 compatibility. init: () -> CartJS.Utils.log('Initialising IE8 compatibility module.') jQuery(document).on 'cart.requestComplete', CartJS.IE8.rebindViews ...
JavaScript
CoffeeScript
discolabs/cartjs
src/ie8.coffee
MIT
1b76b0a1cbf48719816883621109129612258764
493
https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/src/ie8.coffee
1
36
discolabs/cartjs:src/ie8.coffee:1:completion
completion
# CartJS.IE8 # IE8 (non-ES5) specific code. # ---------------------------------------- if 'rivets' of window CartJS.IE8 = # Initialise IE8 compatibility. init: () -> CartJS.Utils.log('Initialising IE8 compatibility module.') jQuery(document).on 'cart.requestComplete', CartJS.IE8.rebindViews ...
# Rebind all Rivets.js views to force an update in non-ES5 browsers. rebindViews: () -> for view in CartJS.Rivets.boundViews view.unbind() view.update(CartJS.Rivets.model) view.sync() view.bind() view.update(CartJS.Rivets.model) view.sync() else # Rivets.js ...
CoffeeScript
CoffeeScript
discolabs/cartjs
src/ie8.coffee
MIT
1b76b0a1cbf48719816883621109129612258764
493
https://github.com/discolabs/cartjs/blob/1b76b0a1cbf48719816883621109129612258764/src/ie8.coffee
1
36
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:raw_corpus
raw_corpus
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement getScrollView: -> @scrollView setEditor: (editor) -> if editor @editor = editor @editorElement = editor.getElement() @scrollView = @editorElement.querySelector(".scroll-view") else @editor =...
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service/editor-registry.coffee
1
17
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = getEditor: -> @editor getEditorElement: -> @editorElement getScrollView: -> @scrollView setEditor: (editor) -> if editor @editor = editor @editorElement = editor.getElement() @scrollView = @editorEleme...
module.exports = { getEditor: function() { return this.editor; }, getEditorElement: function() { return this.editorElement; }, getScrollView: function() { return this.scrollView; }, setEditor: function(editor) { if (editor) { this.editor = editor; this.editorElement = editor.ge...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service/editor-registry.coffee
1
17
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { getEditor: function() { return this.editor; }, getEditorElement: function() { return this.editorElement; }, getScrollView: function() { return this.scrollView; }, setEditor: function(editor) { if (editor) { thi...
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement getScrollView: -> @scrollView setEditor: (editor) -> if editor @editor = editor @editorElement = editor.getElement() @scrollView = @editorElement.querySelector(".scroll-view") else @editor =...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service/editor-registry.coffee
1
17
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:completion
completion
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement getScrollView: ->
@scrollView setEditor: (editor) -> if editor @editor = editor @editorElement = editor.getElement() @scrollView = @editorElement.querySelector(".scroll-view") else @editor = @editorElement = @scrollView = null
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/service/editor-registry.coffee
1
17
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:raw_corpus
raw_corpus
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement setEditor: (editor) -> @editor = editor setEditorElement: (editorElement) -> @editorElement = editorElement
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7
3,570
https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/service/editor-registry.coffee
1
12
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = getEditor: -> @editor getEditorElement: -> @editorElement setEditor: (editor) -> @editor = editor setEditorElement: (editorElement) -> @editorElement = editorElement ```
module.exports = { getEditor: function() { return this.editor; }, getEditorElement: function() { return this.editorElement; }, setEditor: function(editor) { return this.editor = editor; }, setEditorElement: function(editorElement) { return this.editorElement = editorElement; } };
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7
3,570
https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/service/editor-registry.coffee
1
12
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { getEditor: function() { return this.editor; }, getEditorElement: function() { return this.editorElement; }, setEditor: function(editor) { return this.editor = editor; }, setEditorElement: function(editorElement) { re...
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement setEditor: (editor) -> @editor = editor setEditorElement: (editorElement) -> @editorElement = editorElement
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7
3,570
https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/service/editor-registry.coffee
1
12
JoelBesada/activate-power-mode:lib/service/editor-registry.coffee:1:completion
completion
module.exports = getEditor: -> @editor getEditorElement: -> @editorElement
setEditor: (editor) -> @editor = editor setEditorElement: (editorElement) -> @editorElement = editorElement
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/service/editor-registry.coffee
MIT
314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7
3,570
https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/service/editor-registry.coffee
1
12
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2016-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:1:completion
completion
### # Copyright (c) 2016-2018 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
cyclotronDirectives.directive 'sidebarAccordion', ($sce, $timeout) -> { restrict: 'EAC' controller: ($scope, $attrs) -> this.groups = [] $scope.trustHtml = (html) -> $sce.trustAsHtml(html) # Ensure that all the groups in this accordion are close...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:raw_corpus
raw_corpus
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the ...
this.calcHeight = function() { var height; height = _.reduce(this.groups, function(sum, group) { return sum + group.returnHeight(); }, 0); return that.panelHeight = $scope.getAccordionHeight() - height; }; // This is called from the accordion-group directive to add itself to the accordion this.addGroup = f...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.calcHeight = function() { var height; height = _.reduce(this.groups, function(sum, group) { return sum + group.returnHeight(); }, 0); return that.panelHeight = $scope.getAccordionHeight() - height; }; // This is called from the accordion-group dir...
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:completion
completion
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
this.groups.splice(index, 1) return transclude: true, replace: false, templateUrl: '/partials/sidebarAccordion.html' link: (scope, element, attrs) -> scope.getAccordionHeight = -> $(element).height() # Track height of accordion sizer = -...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:3:raw_corpus
raw_corpus
scope.$on '$destroy', -> $timeout.cancel timer $(element).off 'resize' } cyclotronDirectives.directive 'accordionGroup', -> { require: '^sidebarAccordion' restrict: 'EA' transclude: true replace: true templateUrl: '/partials/sidebarAccordi...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
84
123
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:3:completion
completion
scope.$on '$destroy', -> $timeout.cancel timer $(element).off 'resize' } cyclotronDirectives.directive 'accordionGroup', -> { require: '^sidebarAccordion' restrict: 'EA' transclude: true replace: true templateUrl: '/partials/sidebarAccordi...
link: (scope, element, attrs, accordionController) -> accordionController.addGroup(scope) scope.$watch 'isOpen', (value) -> if value accordionController.closeOthers(scope) scope.toggleOpen = -> if !scope.isDisabled ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
84
123
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:4:raw_corpus
raw_corpus
cyclotronDirectives.directive 'accordionHeading', -> { restrict: 'EA' transclude: true template: '' replace: true require: '^accordionGroup' link: (scope, element, attr, accordionGroupController, transclude) -> accordionGroupController.setHeading(transclud...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
125
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cyclotronDirectives.directive 'accordionHeading', -> { restrict: 'EA' transclude: true template: '' replace: true require: '^accordionGroup' link: (scope, element, attr, accordionGroupController, transclude) -> ...
cyclotronDirectives.directive('accordionHeading', function() { return { restrict: 'EA', transclude: true, template: '', replace: true, require: '^accordionGroup', link: function(scope, element, attr, accordionGroupController, transclude) { return accordionGroupController.setHeading(trans...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
125
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript cyclotronDirectives.directive('accordionHeading', function() { return { restrict: 'EA', transclude: true, template: '', replace: true, require: '^accordionGroup', link: function(scope, element, attr, accordionGroupController, transclude) {...
cyclotronDirectives.directive 'accordionHeading', -> { restrict: 'EA' transclude: true template: '' replace: true require: '^accordionGroup' link: (scope, element, attr, accordionGroupController, transclude) -> accordionGroupController.setHeading(transclud...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
125
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:4:completion
completion
cyclotronDirectives.directive 'accordionHeading', -> { restrict: 'EA' transclude: true template: '' replace: true require: '^accordionGroup' link: (scope, element, attr, accordionGroupController, transclude) -> accordionGroupController.setHeading(transclud...
cyclotronDirectives.directive 'accordionTransclude', -> { require: '^accordionGroup' link: (scope, element, attr, controller) -> scope.$watch (-> controller[attr.accordionTransclude]), (heading) -> if heading element.html '' element...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
125
144
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law or ag...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:1:completion
completion
### # Copyright (c) 2016 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law or ag...
cyclotronDirectives.directive 'sidebarAccordion', ($sce, $timeout) -> { restrict: 'EAC' controller: ($scope, $attrs) -> this.groups = [] $scope.trustHtml = (html) -> $sce.trustAsHtml(html) # Ensure that all the groups in this accordion are close...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
1
42
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:raw_corpus
raw_corpus
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the ...
this.calcHeight = function() { var height; height = _.reduce(this.groups, function(sum, group) { return sum + group.returnHeight(); }, 0); return that.panelHeight = $scope.getAccordionHeight() - height; }; // This is called from the accordion-group directive to add itself to the accordion this.addGroup = f...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.calcHeight = function() { var height; height = _.reduce(this.groups, function(sum, group) { return sum + group.returnHeight(); }, 0); return that.panelHeight = $scope.getAccordionHeight() - height; }; // This is called from the accordion-group dir...
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee:2:completion
completion
this.calcHeight = -> height = _.reduce this.groups, (sum, group) -> sum + group.returnHeight() , 0 that.panelHeight = $scope.getAccordionHeight() - height # This is called from the accordion-group directive to add itself to the accordion ...
this.groups.splice(index, 1) return transclude: true, replace: false, templateUrl: '/partials/sidebarAccordion.html' link: (scope, element, attrs) -> scope.getAccordionHeight = -> $(element).height() # Track height of accordion sizer = -...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/app/scripts/dashboards/directives/directives.sidebarAccordion.coffee
44
82
buttercoin/buttercoin:lib/datastore/order.coffee:1:raw_corpus
raw_corpus
module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount clone: (reversed=false) => new Order( @account, if reversed then @received_currency else @offered_currency, if reve...
CoffeeScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7
663
https://github.com/buttercoin/buttercoin/blob/52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7/lib/datastore/order.coffee
1
27
buttercoin/buttercoin:lib/datastore/order.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount clone: (reversed=false) => new Order( @account, if reversed then...
var Order; module.exports = Order = class Order { constructor(account, offered_currency, offered_amount, received_currency, received_amount) { this.clone = this.clone.bind(this); this.account = account; this.offered_currency = offered_currency; this.offered_amount = offered_amount; this.received_...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7
663
https://github.com/buttercoin/buttercoin/blob/52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7/lib/datastore/order.coffee
1
27
buttercoin/buttercoin:lib/datastore/order.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Order; module.exports = Order = class Order { constructor(account, offered_currency, offered_amount, received_currency, received_amount) { this.clone = this.clone.bind(this); this.account = account; this.offered_currency = offered_currency; t...
module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount clone: (reversed=false) => new Order( @account, if reversed then @received_currency else @offered_currency, if reve...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7
663
https://github.com/buttercoin/buttercoin/blob/52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7/lib/datastore/order.coffee
1
27
buttercoin/buttercoin:lib/datastore/order.coffee:1:completion
completion
module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount clone: (reversed=false) => new Order( @account, if reversed then @received_currency else @offered_currency, if reve...
# TODO - use amount type r_amount = (@received_amount/@offered_amount)*amount filled = new Order( @account, @offered_currency, amount, @received_currency, r_amount) remaining = new Order( @account, @offered_currency, @offered_amount - amount, @received_currency, @receiv...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7
663
https://github.com/buttercoin/buttercoin/blob/52561a472f9db748bb5ad7eeaceaf6ea2e1e26c7/lib/datastore/order.coffee
1
27
buttercoin/buttercoin:lib/datastore/order.coffee:1:raw_corpus
raw_corpus
module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount
CoffeeScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
6b8057bca2866e8ea9401136c336ef25f188c47c
663
https://github.com/buttercoin/buttercoin/blob/6b8057bca2866e8ea9401136c336ef25f188c47c/lib/datastore/order.coffee
1
3
buttercoin/buttercoin:lib/datastore/order.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount ```
var Order; module.exports = Order = class Order { constructor(account, offered_currency, offered_amount, received_currency, received_amount) { this.account = account; this.offered_currency = offered_currency; this.offered_amount = offered_amount; this.received_currency = received_currency; this.r...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
6b8057bca2866e8ea9401136c336ef25f188c47c
663
https://github.com/buttercoin/buttercoin/blob/6b8057bca2866e8ea9401136c336ef25f188c47c/lib/datastore/order.coffee
1
3
buttercoin/buttercoin:lib/datastore/order.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Order; module.exports = Order = class Order { constructor(account, offered_currency, offered_amount, received_currency, received_amount) { this.account = account; this.offered_currency = offered_currency; this.offered_amount = offered_amount; ...
module.exports = class Order constructor: (@account, @offered_currency, @offered_amount, @received_currency, @received_amount) -> @price = @offered_amount / @received_amount
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/datastore/order.coffee
MIT
6b8057bca2866e8ea9401136c336ef25f188c47c
663
https://github.com/buttercoin/buttercoin/blob/6b8057bca2866e8ea9401136c336ef25f188c47c/lib/datastore/order.coffee
1
3