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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
outsideris/popularconvention:src/parser/js-parser.coffee:1:raw_corpus | raw_corpus | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 1 | 48 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, conv... | // parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.exports = {
parse: function(line, convention) {
conven... | CoffeeScript | JavaScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.expor... | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | JavaScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:completion | completion | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | { key: "last", display: "Last comma", code: "key: value," }
]
first: 0
last: 0
) unless convention.comma
first = /^\s*,.*/g
last = /.*,\s*$/g
convention.comma.first = convention.comma.first + 1 if first.test line
convention.comma.last = convention.comma.last + 1 if last.test line... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:2:raw_corpus | raw_corpus | tab = /^\t+.*/g
space = /^\s+.*/g
convention.indent.tab = convention.indent.tab + 1 if tab.test line
convention.indent.space = convention.indent.space + 1 if space.test line
convention
functiondef: (line, convention) ->
convention = {lang: 'js'} unless convention
(convention.functiondef =
... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 50 | 89 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:2:completion | completion | tab = /^\t+.*/g
space = /^\s+.*/g
convention.indent.tab = convention.indent.tab + 1 if tab.test line
convention.indent.space = convention.indent.space + 1 if space.test line
convention
functiondef: (line, convention) ->
convention = {lang: 'js'} unless convention
(convention.functiondef =
... | nospace = /function(\s+.)*\(/g
convention.functiondef.onespace = convention.functiondef.onespace + 1 if onespace.test line
convention.functiondef.nospace = convention.functiondef.nospace + 1 if nospace.test line
convention
argumentdef: (line, convention) ->
convention = {lang: 'js'} unless conventio... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 50 | 89 |
outsideris/popularconvention:src/parser/js-parser.coffee:3:raw_corpus | raw_corpus | convention.argumentdef.onespace = convention.argumentdef.onespace + 1 if onespace.test line
convention.argumentdef.nospace = convention.argumentdef.nospace + 1 if nospace.test line
convention
literaldef: (line, convention) ->
convention = {lang: 'js'} unless convention
(convention.literaldef =
... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 91 | 134 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:3:completion | completion | convention.argumentdef.onespace = convention.argumentdef.onespace + 1 if onespace.test line
convention.argumentdef.nospace = convention.argumentdef.nospace + 1 if nospace.test line
convention
literaldef: (line, convention) ->
convention = {lang: 'js'} unless convention
(convention.literaldef =
... | convention.literaldef.tracespace = convention.literaldef.tracespace + 1 if tracespace.test line
convention.literaldef.bothspace = convention.literaldef.bothspace + 1 if bothspace.test line
convention.literaldef.nospace = convention.literaldef.nospace + 1 if nospace.test line
convention
conditionstatement... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 91 | 134 |
outsideris/popularconvention:src/parser/js-parser.coffee:4:raw_corpus | raw_corpus | onespace = /(if|while|switch)\s+\(/g
nospace = /(if|while|switch)\(/g
convention.conditionstatement.onespace = convention.conditionstatement.onespace + 1 if onespace.test line
convention.conditionstatement.nospace = convention.conditionstatement.nospace + 1 if nospace.test line
convention
blockstate... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 136 | 173 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:4:completion | completion | onespace = /(if|while|switch)\s+\(/g
nospace = /(if|while|switch)\(/g
convention.conditionstatement.onespace = convention.conditionstatement.onespace + 1 if onespace.test line
convention.conditionstatement.nospace = convention.conditionstatement.nospace + 1 if nospace.test line
convention
blockstate... | }
{
key: "newline", display: "curlybrace at new line",
code: "if (true)\n{\n//or\nwhile (true)\n{\n//or\nswitch (v)\n{"
}
]
onespace: 0
nospace: 0
newline: 0
) unless convention.blockstatement
onespace = /((if|while|switch).*\)\s+{)|(}\s+else)/g
n... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4 | 730 | https://github.com/outsideris/popularconvention/blob/8399f21ea47138f6e49d4bec1f10ddd84cbdf6f4/src/parser/js-parser.coffee | 136 | 173 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:raw_corpus | raw_corpus | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 09cc0104552310d72414cf48444fdfca817d07e1 | 730 | https://github.com/outsideris/popularconvention/blob/09cc0104552310d72414cf48444fdfca817d07e1/src/parser/js-parser.coffee | 1 | 48 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, conv... | // parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.exports = {
parse: function(line, convention) {
conven... | CoffeeScript | JavaScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 09cc0104552310d72414cf48444fdfca817d07e1 | 730 | https://github.com/outsideris/popularconvention/blob/09cc0104552310d72414cf48444fdfca817d07e1/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.expor... | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | JavaScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 09cc0104552310d72414cf48444fdfca817d07e1 | 730 | https://github.com/outsideris/popularconvention/blob/09cc0104552310d72414cf48444fdfca817d07e1/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:completion | completion | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | { key: "last", display: "Last comma", code: "key: value," }
]
first: 0
last: 0
) unless convention.comma
first = /^\s*,.*/g
last = /.*,\s*$/g
convention.comma.first = convention.comma.first + 1 if first.test line
convention.comma.last = convention.comma.last + 1 if last.test line... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | 09cc0104552310d72414cf48444fdfca817d07e1 | 730 | https://github.com/outsideris/popularconvention/blob/09cc0104552310d72414cf48444fdfca817d07e1/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:raw_corpus | raw_corpus | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | ff72df2e3db01bf82dc753509a6418c17662cc4f | 730 | https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/src/parser/js-parser.coffee | 1 | 48 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, conv... | // parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.exports = {
parse: function(line, convention) {
conven... | CoffeeScript | JavaScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | ff72df2e3db01bf82dc753509a6418c17662cc4f | 730 | https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// parsing JavaScript code
// Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
// Licensed under the MIT license.
// <http://outsider.mit-license.org/>
var helpers, jsParser;
helpers = require('../helpers');
jsParser = module.expor... | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | JavaScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | ff72df2e3db01bf82dc753509a6418c17662cc4f | 730 | https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:completion | completion | # parsing JavaScript code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
jsParser = module.exports =
parse: (line, convention) ->
convention = jsParser.comma line, conventi... | { key: "last", display: "Last comma", code: "key: value," }
]
first: 0
last: 0
) unless convention.comma
first = /^\s*,.*/g
last = /.*,\s*$/g
convention.comma.first = convention.comma.first + 1 if first.test line
convention.comma.last = convention.comma.last + 1 if /.+,\s*$/.test... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | ff72df2e3db01bf82dc753509a6418c17662cc4f | 730 | https://github.com/outsideris/popularconvention/blob/ff72df2e3db01bf82dc753509a6418c17662cc4f/src/parser/js-parser.coffee | 1 | 48 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:raw_corpus | raw_corpus | module.exports =
comma: (line, convention) ->
convention = {} unless convention
convention.comma =
title: "Last Comma vs. First Comma"
column: [
{ key: "first", display: "First comma", code: ", key: value" }
{ key: "last", display: "Last comma", code: "key: value," }
]
... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 9 | 58 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
comma: (line, convention) ->
convention = {} unless convention
convention.comma =
title: "Last Comma vs. First Comma"
column: [
{ key: "first", display: "First comma", code: ", key: value" }
{ key: "last", d... | module.exports = {
comma: function(line, convention) {
var first, last;
if (!convention) {
convention = {};
}
convention.comma = {
title: "Last Comma vs. First Comma",
column: [
{
key: "first",
display: "First comma",
code: ", key: value"
... | CoffeeScript | JavaScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 9 | 58 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
comma: function(line, convention) {
var first, last;
if (!convention) {
convention = {};
}
convention.comma = {
title: "Last Comma vs. First Comma",
column: [
{
key: "first",
display... | module.exports =
comma: (line, convention) ->
convention = {} unless convention
convention.comma =
title: "Last Comma vs. First Comma"
column: [
{ key: "first", display: "First comma", code: ", key: value" }
{ key: "last", display: "Last comma", code: "key: value," }
]
... | JavaScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 9 | 58 |
outsideris/popularconvention:src/parser/js-parser.coffee:1:completion | completion | module.exports =
comma: (line, convention) ->
convention = {} unless convention
convention.comma =
title: "Last Comma vs. First Comma"
column: [
{ key: "first", display: "First comma", code: ", key: value" }
{ key: "last", display: "Last comma", code: "key: value," }
]
... | { key: "tab", display: "Tab", code: " var a = 1;" }
{ key: "space", display: "Space", code: "{tab}var a = 1;" }
]
tab: 0
space: 0 unless convention.indent
tab = /^\t+.*/g
space = /^\s+.*/g
convention.indent.tab = convention.indent.tab + 1 if tab.test line
convention.indent.s... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 9 | 58 |
outsideris/popularconvention:src/parser/js-parser.coffee:2:raw_corpus | raw_corpus | nospace = /function(\s+.)*\(/g
convention.functiondef.onespace = convention.functiondef.onespace + 1 if onespace.test line
convention.functiondef.nospace = convention.functiondef.nospace + 1 if nospace.test line
convention
argumentdef: (line, convention) ->
convention = {} unless convention
conv... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 59 | 108 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:2:completion | completion | nospace = /function(\s+.)*\(/g
convention.functiondef.onespace = convention.functiondef.onespace + 1 if onespace.test line
convention.functiondef.nospace = convention.functiondef.nospace + 1 if nospace.test line
convention
argumentdef: (line, convention) ->
convention = {} unless convention
conv... | convention = {} unless convention
convention.literaldef =
title: "Object Literal Definition types"
column: [
{ key: "tracespace", display: "Followed by space", code: "key: value"}
{ key: "bothspace", display: "Using space in before/after", code: "key : value"}
{ key: "nospace", d... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 59 | 108 |
outsideris/popularconvention:src/parser/js-parser.coffee:3:raw_corpus | raw_corpus | column: [
{
key: "onespace", display: "condition with one space",
code: "if (true) {\n//or\nwhile (true) {\n//or\nswitch (v) {"
}
{
key: "nospace", display: "condition with no space",
code: "if(true) {\n//or\nwhile(true) {\n//or\nswitch (v) {"
}
... | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 109 | 158 | ||
outsideris/popularconvention:src/parser/js-parser.coffee:3:completion | completion | column: [
{
key: "onespace", display: "condition with one space",
code: "if (true) {\n//or\nwhile (true) {\n//or\nswitch (v) {"
}
{
key: "nospace", display: "condition with no space",
code: "if(true) {\n//or\nwhile(true) {\n//or\nswitch (v) {"
}
... | {
key: "onespace", display: "curlybrace with one space",
code: "if (true) {\n//or\nwhile (true) {\n//or\nswitch (v) {"
}
{
key: "nospace", display: "curlybrace with no space",
code: "if (true){\n//or\nwhile (true){\n//or\nswitch (v){"
}
{
... | CoffeeScript | CoffeeScript | outsideris/popularconvention | src/parser/js-parser.coffee | MIT | a63c08b3721d317537737c46e4c813893ec71263 | 730 | https://github.com/outsideris/popularconvention/blob/a63c08b3721d317537737c46e4c813893ec71263/src/parser/js-parser.coffee | 109 | 158 |
jianliaoim/talk-os:talk-web/client/mixin/user.coffee:1:raw_corpus | raw_corpus | React = require 'react'
recorder = require 'actions-recorder'
query = require '../query'
module.exports =
getUserId: ->
query.userId recorder.getState()
isUser: (target) ->
target is @getUserId() | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/user.coffee | 1 | 12 | ||
jianliaoim/talk-os:talk-web/client/mixin/user.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
recorder = require 'actions-recorder'
query = require '../query'
module.exports =
getUserId: ->
query.userId recorder.getState()
isUser: (target) ->
target is @getUserId()
``` | var React, query, recorder;
React = require('react');
recorder = require('actions-recorder');
query = require('../query');
module.exports = {
getUserId: function() {
return query.userId(recorder.getState());
},
isUser: function(target) {
return target === this.getUserId();
}
}; | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/mixin/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/user.coffee | 1 | 12 |
jianliaoim/talk-os:talk-web/client/mixin/user.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var React, query, recorder;
React = require('react');
recorder = require('actions-recorder');
query = require('../query');
module.exports = {
getUserId: function() {
return query.userId(recorder.getState());
},
isUser: function(target) {
return ta... | React = require 'react'
recorder = require 'actions-recorder'
query = require '../query'
module.exports =
getUserId: ->
query.userId recorder.getState()
isUser: (target) ->
target is @getUserId() | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/user.coffee | 1 | 12 |
jianliaoim/talk-os:talk-web/client/mixin/user.coffee:1:completion | completion | React = require 'react'
recorder = require 'actions-recorder'
query = require '../query'
module.exports = | getUserId: ->
query.userId recorder.getState()
isUser: (target) ->
target is @getUserId() | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/user.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/user.coffee | 1 | 12 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: ($log) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true
@select tab if @tabs.length is 0
@tabs.push... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/directives/tabs.coffee | 1 | 33 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: ($log) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded ... | var Controller, Directive;
Controller = class Controller {
constructor($log) {
this.tabs = [];
this.select = (tab) => {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angular.forEach(this.tabs, function(tab) {
return tab.selected = false;
});
... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Directive;
Controller = class Controller {
constructor($log) {
this.tabs = [];
this.select = (tab) => {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angular.forEach(this.tabs, function(tab... | class Controller
constructor: ($log) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true
@select tab if @tabs.length is 0
@tabs.push... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: ($log) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true | @select tab if @tabs.length is 0
@tabs.push tab
class Directive
constructor: ($log) ->
return {
controller: ['$log', Controller]
controllerAs: 'controller'
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
angular.module('app').directive '... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: (@$log, @$rootScope) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true
@select tab if @tabs.length is 0... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 2951ee150879e57ce39fd36bb70732f9c033c724 | 672 | https://github.com/CaryLandholt/AngularFun/blob/2951ee150879e57ce39fd36bb70732f9c033c724/src/scripts/directives/tabs.coffee | 1 | 33 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: (@$log, @$rootScope) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
ta... | var Controller, Directive;
Controller = class Controller {
constructor($log1, $rootScope) {
this.$log = $log1;
this.$rootScope = $rootScope;
this.tabs = [];
this.select = (tab) => {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angular.forEach(this.tab... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 2951ee150879e57ce39fd36bb70732f9c033c724 | 672 | https://github.com/CaryLandholt/AngularFun/blob/2951ee150879e57ce39fd36bb70732f9c033c724/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Directive;
Controller = class Controller {
constructor($log1, $rootScope) {
this.$log = $log1;
this.$rootScope = $rootScope;
this.tabs = [];
this.select = (tab) => {
tab.transcluded = true;
if (tab.selected === true) {... | class Controller
constructor: (@$log, @$rootScope) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true
@select tab if @tabs.length is 0... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 2951ee150879e57ce39fd36bb70732f9c033c724 | 672 | https://github.com/CaryLandholt/AngularFun/blob/2951ee150879e57ce39fd36bb70732f9c033c724/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: (@$log, @$rootScope) ->
@tabs = []
@select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab) =>
tab.transcluded = true | @select tab if @tabs.length is 0
@tabs.push tab
class Directive
constructor: ($log) ->
return {
controller: ['$log', '$rootScope', Controller]
controllerAs: 'controller'
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
angular.module('app... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 2951ee150879e57ce39fd36bb70732f9c033c724 | 672 | https://github.com/CaryLandholt/AngularFun/blob/2951ee150879e57ce39fd36bb70732f9c033c724/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | ac33d6196575ac8155e305678dd1c37aa0058227 | 672 | https://github.com/CaryLandholt/AngularFun/blob/ac33d6196575ac8155e305678dd1c37aa0058227/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.se... | var Controller, Directive;
Controller = class Controller {
constructor($log1, $scope, $element, $rootScope) {
this.$log = $log1;
this.$scope = $scope;
this.$element = $element;
this.$rootScope = $rootScope;
this.$scope.tabs = [];
this.$scope.select = (tab) => {
tab.transcluded = true;
... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | ac33d6196575ac8155e305678dd1c37aa0058227 | 672 | https://github.com/CaryLandholt/AngularFun/blob/ac33d6196575ac8155e305678dd1c37aa0058227/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Directive;
Controller = class Controller {
constructor($log1, $scope, $element, $rootScope) {
this.$log = $log1;
this.$scope = $scope;
this.$element = $element;
this.$rootScope = $rootScope;
this.$scope.tabs = [];
this.$sc... | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | ac33d6196575ac8155e305678dd1c37aa0058227 | 672 | https://github.com/CaryLandholt/AngularFun/blob/ac33d6196575ac8155e305678dd1c37aa0058227/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) =>
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | if tabId
@$rootScope.$on "changeTab##{tabId}", =>
@$scope.select tab
class Directive
constructor: ($log) ->
return {
controller: ['$log', '$scope', '$element', '$rootScope', Controller]
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | ac33d6196575ac8155e305678dd1c37aa0058227 | 672 | https://github.com/CaryLandholt/AngularFun/blob/ac33d6196575ac8155e305678dd1c37aa0058227/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 80aa978a56ae78b5eae38b5ba3211240f5379748 | 672 | https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.se... | var Controller, Directive;
Controller = class Controller {
constructor($log1, $scope, $element, $rootScope) {
this.$log = $log1;
this.$scope = $scope;
this.$element = $element;
this.$rootScope = $rootScope;
this.$scope.tabs = [];
this.$scope.select = function(tab) {
tab.transcluded = tr... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 80aa978a56ae78b5eae38b5ba3211240f5379748 | 672 | https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Directive;
Controller = class Controller {
constructor($log1, $scope, $element, $rootScope) {
this.$log = $log1;
this.$scope = $scope;
this.$element = $element;
this.$rootScope = $rootScope;
this.$scope.tabs = [];
this.$sc... | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 80aa978a56ae78b5eae38b5ba3211240f5379748 | 672 | https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: (@$log, @$scope, @$element, @$rootScope) ->
@$scope.tabs = []
@$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach @$scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
@$scope.sel... | if tabId
@$rootScope.$on "changeTab##{tabId}", ->
@$scope.select tab
class Directive
constructor: ($log) ->
return {
controller: ['$log', '$scope', '$element', '$rootScope', Controller]
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 80aa978a56ae78b5eae38b5ba3211240f5379748 | 672 | https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 3d326c4da4d180fd2b3db82b132bb418234ccdab | 672 | https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected ... | var Controller, Directive;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angular.forEach($scope.tabs, function(tab) {
re... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 3d326c4da4d180fd2b3db82b132bb418234ccdab | 672 | https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Directive;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
... | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 3d326c4da4d180fd2b3db82b132bb418234ccdab | 672 | https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
class Directive
constructor: ($log) ->
return {
controller: ['$log', '$scope', '$element', '$rootScope', Controller]
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
an... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 3d326c4da4d180fd2b3db82b132bb418234ccdab | 672 | https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 8706e0902a4ed56a9ae0ca908e4b9a95e47954e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected ... | var Controller, Tabs;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angular.forEach($scope.tabs, function(tab) {
return ... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 8706e0902a4ed56a9ae0ca908e4b9a95e47954e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Controller, Tabs;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angul... | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 8706e0902a4ed56a9ae0ca908e4b9a95e47954e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab = (tab, tabId) =>
$scope.select tab ... | if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
class Tabs
constructor: ($log) ->
return {
controller: ['$log', '$scope', '$element', '$rootScope', Controller]
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
}
angular... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 8706e0902a4ed56a9ae0ca908e4b9a95e47954e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | do (angular) ->
'use strict'
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTa... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | c8848363eb83958fd323cfdf2442c0831d53d985 | 672 | https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/directives/tabs.coffee | 1 | 37 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
do (angular) ->
'use strict'
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
... | (function(angular) {
'use strict';
var Controller, Tabs;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
return;
}
angu... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | c8848363eb83958fd323cfdf2442c0831d53d985 | 672 | https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/directives/tabs.coffee | 1 | 37 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
(function(angular) {
'use strict';
var Controller, Tabs;
Controller = class Controller {
constructor($log, $scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.select... | do (angular) ->
'use strict'
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTa... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | c8848363eb83958fd323cfdf2442c0831d53d985 | 672 | https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/directives/tabs.coffee | 1 | 37 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | do (angular) ->
'use strict'
class Controller
constructor: ($log, $scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTa... | $scope.select tab if $scope.tabs.length is 0
$scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
class Tabs
constructor: ($log) ->
return {
controller: ['$log', '$scope', '$element', '$rootScope', Controller]
replace: true
restrict: 'E'
scop... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | c8848363eb83958fd323cfdf2442c0831d53d985 | 672 | https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/directives/tabs.coffee | 1 | 37 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | do (angular) ->
'use strict'
class Tabs
constructor: ($log) ->
Tabs::controller = ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/directives/tabs.coffee | 1 | 36 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
do (angular) ->
'use strict'
class Tabs
constructor: ($log) ->
Tabs::controller = ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $... | (function(angular) {
'use strict';
var Tabs;
Tabs = class Tabs {
constructor($log) {
Tabs.prototype.controller = function($scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = true;
if (tab.selected === true) {
... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/directives/tabs.coffee | 1 | 36 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
(function(angular) {
'use strict';
var Tabs;
Tabs = class Tabs {
constructor($log) {
Tabs.prototype.controller = function($scope, $element, $rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
tab.transcluded = t... | do (angular) ->
'use strict'
class Tabs
constructor: ($log) ->
Tabs::controller = ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/directives/tabs.coffee | 1 | 36 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | do (angular) ->
'use strict'
class Tabs
constructor: ($log) ->
Tabs::controller = ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
tab.transcluded = true
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab... | @addTab = (tab, tabId) =>
$scope.select tab if $scope.tabs.length is 0
$scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
return {
controller: ['$scope', '$element', '$rootScope', Tabs::controller]
replace: true
restrict: 'E'
scope: {... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 84cd4633279ad391623504698a20ed4b5560dc77 | 672 | https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/directives/tabs.coffee | 1 | 36 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | angular.module('app').directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 94361b56b578119b372a04858dcd3ab92bb480eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/directives/tabs.coffee | 1 | 28 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
angular.module('app').directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (t... | angular.module('app').directive('appTabs', [
'$log',
function($log) {
var controller;
controller = [
'$scope',
'$element',
'$rootScope',
function($scope,
$element,
$rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
if (tab.selected =... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 94361b56b578119b372a04858dcd3ab92bb480eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
angular.module('app').directive('appTabs', [
'$log',
function($log) {
var controller;
controller = [
'$scope',
'$element',
'$rootScope',
function($scope,
$element,
$rootScope) {
$scope.tabs = [];
$scop... | angular.module('app').directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 94361b56b578119b372a04858dcd3ab92bb480eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | angular.module('app').directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
... | $scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
]
controller: controller
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 94361b56b578119b372a04858dcd3ab92bb480eb | 672 | https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab =... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a | 672 | https://github.com/CaryLandholt/AngularFun/blob/11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a/src/scripts/directives/tabs.coffee | 1 | 28 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
... | directives.directive('appTabs', [
'$log',
function($log) {
var controller;
controller = [
'$scope',
'$element',
'$rootScope',
function($scope,
$element,
$rootScope) {
$scope.tabs = [];
$scope.select = function(tab) {
if (tab.selected === true) {
... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a | 672 | https://github.com/CaryLandholt/AngularFun/blob/11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
directives.directive('appTabs', [
'$log',
function($log) {
var controller;
controller = [
'$scope',
'$element',
'$rootScope',
function($scope,
$element,
$rootScope) {
$scope.tabs = [];
$scope.select = ... | directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab =... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a | 672 | https://github.com/CaryLandholt/AngularFun/blob/11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.select = (tab) ->
return if tab.selected is true
angular.forEach $scope.tabs, (tab) ->
tab.selected = false
tab.selected = true
@addTab =... | $scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
]
controller: controller
replace: true
restrict: 'E'
scope: {}
templateUrl: '/views/directives/tabs.html'
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a | 672 | https://github.com/CaryLandholt/AngularFun/blob/11f7ec9a2dd166a2f8c3cd0a3fdbd8787e549c6a/src/scripts/directives/tabs.coffee | 1 | 28 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = ... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/directives/tabs.coffee | 1 | 33 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootSc... | /*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('appTabs', [
'$log',
function($log) {
var controller;
controller = [
'$scope',
'$ele... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('appTabs', [
'$log',
function($log) {
var controlle... | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = ... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', ['$log', ($log) ->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = ... | @addTab = (tab, tabId) ->
$scope.select tab if $scope.tabs.length is 0
$scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
]
controller: controller
replace: true
restrict: 'E'
scope: {}
template: template
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 6d23f0be02cb2e938565aca7cb881fd70beefb35 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/directives/tabs.coffee | 1 | 33 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.s... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 61809b666e1417494a191ce9e486c510a393c08c | 672 | https://github.com/CaryLandholt/AngularFun/blob/61809b666e1417494a191ce9e486c510a393c08c/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, ... | /*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('appTabs', [
function() {
var controller;
controller = [
'$scope',
'$element',
'... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 61809b666e1417494a191ce9e486c510a393c08c | 672 | https://github.com/CaryLandholt/AngularFun/blob/61809b666e1417494a191ce9e486c510a393c08c/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('appTabs', [
function() {
var controller;
control... | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.s... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 61809b666e1417494a191ce9e486c510a393c08c | 672 | https://github.com/CaryLandholt/AngularFun/blob/61809b666e1417494a191ce9e486c510a393c08c/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'appTabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.s... | @addTab = (tab, tabId) ->
$scope.select tab if $scope.tabs.length is 0
$scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
]
controller: controller
replace: true
restrict: 'E'
scope: {}
template: template
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 61809b666e1417494a191ce9e486c510a393c08c | 672 | https://github.com/CaryLandholt/AngularFun/blob/61809b666e1417494a191ce9e486c510a393c08c/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'tabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.sele... | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 40af64763cd5cebc9510a380437d7fef9ccc1c66 | 672 | https://github.com/CaryLandholt/AngularFun/blob/40af64763cd5cebc9510a380437d7fef9ccc1c66/src/scripts/directives/tabs.coffee | 1 | 34 | ||
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'tabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $el... | /*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('tabs', [
function() {
var controller;
controller = [
'$scope',
'$element',
'$ro... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 40af64763cd5cebc9510a380437d7fef9ccc1c66 | 672 | https://github.com/CaryLandholt/AngularFun/blob/40af64763cd5cebc9510a380437d7fef9ccc1c66/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], function(angular, directives, template) {
'use strict';
return directives.directive('tabs', [
function() {
var controller;
controller... | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'tabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.sele... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 40af64763cd5cebc9510a380437d7fef9ccc1c66 | 672 | https://github.com/CaryLandholt/AngularFun/blob/40af64763cd5cebc9510a380437d7fef9ccc1c66/src/scripts/directives/tabs.coffee | 1 | 34 |
CaryLandholt/AngularFun:src/scripts/directives/tabs.coffee:1:completion | completion | ###global define###
define ['libs/angular', 'directives/directives', 'libs/text!directives/templates/tabs.html'], (angular, directives, template) ->
'use strict'
directives.directive 'tabs', [->
controller = ['$scope', '$element', '$rootScope', ($scope, $element, $rootScope) ->
$scope.tabs = []
$scope.sele... | @addTab = (tab, tabId) ->
$scope.select tab if $scope.tabs.length is 0
$scope.tabs.push tab
if tabId
$rootScope.$on "changeTab##{tabId}", ->
$scope.select tab
]
controller: controller
replace: true
restrict: 'E'
scope: {}
template: template
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | src/scripts/directives/tabs.coffee | MIT | 40af64763cd5cebc9510a380437d7fef9ccc1c66 | 672 | https://github.com/CaryLandholt/AngularFun/blob/40af64763cd5cebc9510a380437d7fef9ccc1c66/src/scripts/directives/tabs.coffee | 1 | 34 |
jianliaoim/talk-os:talk-web/client/app/file-queue-tag.coffee:1:raw_corpus | raw_corpus | React = require 'react'
assign = require 'object-assign'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
tagActions = require '../actions/tag'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
T = R... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-tag.coffee | 1 | 48 | ||
jianliaoim/talk-os:talk-web/client/app/file-queue-tag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
assign = require 'object-assign'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
tagActions = require '../actions/tag'
mixinFileQueue = require '../mixin/file-qu... | var Immutable, PureRenderMixin, React, T, assign, div, mixinFileQueue, mixinSubscribe, tagActions;
React = require('react');
assign = require('object-assign');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
div = React.createFactory('div');
tagActions = require('../... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-queue-tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-tag.coffee | 1 | 48 |
jianliaoim/talk-os:talk-web/client/app/file-queue-tag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Immutable, PureRenderMixin, React, T, assign, div, mixinFileQueue, mixinSubscribe, tagActions;
React = require('react');
assign = require('object-assign');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
div =... | React = require 'react'
assign = require 'object-assign'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
tagActions = require '../actions/tag'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
T = R... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-tag.coffee | 1 | 48 |
jianliaoim/talk-os:talk-web/client/app/file-queue-tag.coffee:1:completion | completion | React = require 'react'
assign = require 'object-assign'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
div = React.createFactory 'div'
tagActions = require '../actions/tag'
mixinFileQueue = require '../mixin/file-queue'
mixinSubscribe = require '../mixin/subscribe'
T = R... | _teamId: T.string.isRequired
_roomId: T.string
_toId: T.string
query: T.object
getInitialState: ->
initPage = @props.query?.page - 1
page: initPage or 1
requestBefore: (success) ->
success Immutable.List()
requestAfter: (success) ->
data = assign {}, @props.query,
page: @state... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-queue-tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-queue-tag.coffee | 1 | 48 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:1:raw_corpus | raw_corpus | #
# Sample Config File
#
# This file is a sample configuration file for Cyclotron. It is configured for a local instance
# of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
#
# Post-build, this file will be found in the `_public/js/conf/` folder.
# Cyclotron attempts to load a file named `configServi... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 1 | 44 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
#
# Sample Config File
#
# This file is a sample configuration file for Cyclotron. It is configured for a local instance
# of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
#
# Post-build, this file will be found in the `_public/js/conf/` folde... | // Sample Config File
// This file is a sample configuration file for Cyclotron. It is configured for a local instance
// of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
// Post-build, this file will be found in the `_public/js/conf/` folder.
// Cyclotron attempts to load a file named `configServ... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 1 | 44 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Sample Config File
// This file is a sample configuration file for Cyclotron. It is configured for a local instance
// of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
// Post-build, this file will be found in the `_public/js/conf/` folder.... | #
# Sample Config File
#
# This file is a sample configuration file for Cyclotron. It is configured for a local instance
# of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
#
# Post-build, this file will be found in the `_public/js/conf/` folder.
# Cyclotron attempts to load a file named `configServi... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 1 | 44 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:1:completion | completion | #
# Sample Config File
#
# This file is a sample configuration file for Cyclotron. It is configured for a local instance
# of the Cyclotron REST API (cyclotron-svc), so it can be used as-is.
#
# Post-build, this file will be found in the `_public/js/conf/` folder.
# Cyclotron attempts to load a file named `configServi... | # 1) Push Dashboard to Environment (e.g. push from Dev to Prod)
# 2) Data Source Proxying
#
# "name": Display Name.
# "serviceUrl": Destination service endpoint.
# "requiresAuth": Must match the configuration on the destination service.
# "canPush": If true, enables pushing Dashboard from th... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 1 | 44 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:raw_corpus | raw_corpus | # Convert cyclotronEnvironments into the correct format for property options
proxyOptions = _.reduce cyclotronEnvironments, (options, environment) ->
options[environment.name] = { value: environment.serviceUrl }
return options
, {}
exports =
# Cyclotron-svc endpoint
restServ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 46 | 84 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Convert cyclotronEnvironments into the correct format for property options
proxyOptions = _.reduce cyclotronEnvironments, (options, environment) ->
options[environment.name] = { value: environment.serviceUrl }
return options
, {}
ex... | // Convert cyclotronEnvironments into the correct format for property options
var exports, proxyOptions;
proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) {
options[environment.name] = {
value: environment.serviceUrl
};
return options;
}, {});
exports = {
// Cyclotron-svc endpo... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 46 | 84 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Convert cyclotronEnvironments into the correct format for property options
var exports, proxyOptions;
proxyOptions = _.reduce(cyclotronEnvironments, function(options, environment) {
options[environment.name] = {
value: environment.serviceUrl
};
return... | # Convert cyclotronEnvironments into the correct format for property options
proxyOptions = _.reduce cyclotronEnvironments, (options, environment) ->
options[environment.name] = { value: environment.serviceUrl }
return options
, {}
exports =
# Cyclotron-svc endpoint
restServ... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 46 | 84 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:2:completion | completion | # Convert cyclotronEnvironments into the correct format for property options
proxyOptions = _.reduce cyclotronEnvironments, (options, environment) ->
options[environment.name] = { value: environment.serviceUrl }
return options
, {}
exports =
# Cyclotron-svc endpoint
restServ... | # This allows data sources to authenticate with the current user's credentials
cacheEncryptedPassword: false
# Analytics settings
analytics:
# Enable or disable analytic tracking for dashboards
enable: false
# Logging settings
logging:
en... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 46 | 84 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:raw_corpus | raw_corpus | # Changelog location, displayed on the home page footer
#changelogLink: 'https://.../CHANGELOG.md'
# Overrides for Dashboard properties
#
# 1) Provide environment-specific default values, e.g. default URLs for Data Sources
# 2) Set proxy options for Data Sources
#
... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 86 | 125 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Changelog location, displayed on the home page footer
#changelogLink: 'https://.../CHANGELOG.md'
# Overrides for Dashboard properties
#
# 1) Provide environment-specific default values, e.g. default URLs for Data Sources
... | // Changelog location, displayed on the home page footer
//changelogLink: 'https://.../CHANGELOG.md'
// Overrides for Dashboard properties
// 1) Provide environment-specific default values, e.g. default URLs for Data Sources
// 2) Set proxy options for Data Sources
({
dashboard: {
properties: {
dataSourc... | CoffeeScript | JavaScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 86 | 125 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Changelog location, displayed on the home page footer
//changelogLink: 'https://.../CHANGELOG.md'
// Overrides for Dashboard properties
// 1) Provide environment-specific default values, e.g. default URLs for Data Sources
// 2) Set proxy options for Data Sourc... | # Changelog location, displayed on the home page footer
#changelogLink: 'https://.../CHANGELOG.md'
# Overrides for Dashboard properties
#
# 1) Provide environment-specific default values, e.g. default URLs for Data Sources
# 2) Set proxy options for Data Sources
#
... | JavaScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 86 | 125 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:3:completion | completion | # Changelog location, displayed on the home page footer
#changelogLink: 'https://.../CHANGELOG.md'
# Overrides for Dashboard properties
#
# 1) Provide environment-specific default values, e.g. default URLs for Data Sources
# 2) Set proxy options for Data Sources
#
... | # (Remove if there is no appropriate default)
default: 'http://sampleGraphiteHost:80'
proxy:
options: proxyOptions
json:
properties:
... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 86 | 125 |
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:raw_corpus | raw_corpus | # Add additional logos to the Dashboard Sidebar
dashboardSidebar:
footer:
logos: [{
title: 'Cyclotron'
src: '/img/favicon32.png'
href: '/'
}]
# Merge overrides with commonConfigService
# Settings in ... | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 127 | 148 | ||
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/config/sample.configService.coffee:4:completion | completion | # Add additional logos to the Dashboard Sidebar
dashboardSidebar:
footer:
logos: [{
title: 'Cyclotron'
src: '/img/favicon32.png'
href: '/'
}]
# Merge overrides with commonConfigService
# Settings in ... | merged = _.merge(commonConfigService, exports, _["default"])
# Add a custom welcome message to the Help page
# Additional messages can be added, e.g. support mailing list
merged.help[0].messages = [{
type: 'info',
html: 'Welcome to Cyclotron!',
icon: 'fa-info-circle'
}];
re... | CoffeeScript | CoffeeScript | ExpediaGroup/cyclotron | cyclotron-site/app/scripts/config/sample.configService.coffee | MIT | 0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab | 1,544 | https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/config/sample.configService.coffee | 127 | 148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.