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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | @each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
if @length > 0 and $$.toType(name) is "string"
@each -> @removeAttribute name
#... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 9a31456ffc2c22a67ca1bdf9b3054a9252f92f30 | 2,055 | https://github.com/soyjavi/QuoJS/blob/9a31456ffc2c22a67ca1bdf9b3054a9252f92f30/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:2:raw_corpus | raw_corpus | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | b65dff86bd718ef11a290190914be881ab779171 | 2,055 | https://github.com/soyjavi/QuoJS/blob/b65dff86bd718ef11a290190914be881ab779171/source/quo.element.coffee | 47 | 96 | ||
soyjavi/QuoJS:source/quo.element.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
... | /*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
*/
$$.fn.val = fun... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | b65dff86bd718ef11a290190914be881ab779171 | 2,055 | https://github.com/soyjavi/QuoJS/blob/b65dff86bd718ef11a290190914be881ab779171/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@pa... | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | b65dff86bd718ef11a290190914be881ab779171 | 2,055 | https://github.com/soyjavi/QuoJS/blob/b65dff86bd718ef11a290190914be881ab779171/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:completion | completion | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | $$.fn.show = ->
@style "display", "block"
###
Hides a given instance element
@method hide
###
$$.fn.hide = ->
@style "display", "none"
###
Get a offset of a given instance element
@method offset
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | b65dff86bd718ef11a290190914be881ab779171 | 2,055 | https://github.com/soyjavi/QuoJS/blob/b65dff86bd718ef11a290190914be881ab779171/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:raw_corpus | raw_corpus | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548 | 2,055 | https://github.com/soyjavi/QuoJS/blob/ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548/source/quo.element.coffee | 47 | 96 | ||
soyjavi/QuoJS:source/quo.element.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
... | /*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
*/
$$.fn.val = fun... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548 | 2,055 | https://github.com/soyjavi/QuoJS/blob/ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@pa... | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548 | 2,055 | https://github.com/soyjavi/QuoJS/blob/ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:completion | completion | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | $$.fn.show = ->
@style "display", "block"
###
Hides a given instance element
@method hide
###
$$.fn.hide = ->
@style "display", "none"
###
Get a offset of a given instance element
@method offset
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548 | 2,055 | https://github.com/soyjavi/QuoJS/blob/ed9fc5dd71d16ce3dcc6a6125e4889c6c97d0548/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.a... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | af0549171925b12fbb590ab93a02612c00e24ec2 | 2,055 | https://github.com/soyjavi/QuoJS/blob/af0549171925b12fbb590ab93a02612c00e24ec2/source/quo.element.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@para... | /*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
*/
$$.fn.attr = f... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | af0549171925b12fbb590ab93a02612c00e24ec2 | 2,055 | https://github.com/soyjavi/QuoJS/blob/af0549171925b12fbb590ab93a02612c00e24ec2/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {stri... | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.a... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | af0549171925b12fbb590ab93a02612c00e24ec2 | 2,055 | https://github.com/soyjavi/QuoJS/blob/af0549171925b12fbb590ab93a02612c00e24ec2/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.a... | @each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
if @length > 0 and $$.toType(name) is "string"
@each -> @removeAttribute name
#... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | af0549171925b12fbb590ab93a02612c00e24ec2 | 2,055 | https://github.com/soyjavi/QuoJS/blob/af0549171925b12fbb590ab93a02612c00e24ec2/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:2:raw_corpus | raw_corpus | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 34e22ad03bce4e33be61421cd5200109bd073dc7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/34e22ad03bce4e33be61421cd5200109bd073dc7/source/quo.element.coffee | 47 | 96 | ||
soyjavi/QuoJS:source/quo.element.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
... | /*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
*/
$$.fn.val = fun... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 34e22ad03bce4e33be61421cd5200109bd073dc7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/34e22ad03bce4e33be61421cd5200109bd073dc7/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@pa... | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 34e22ad03bce4e33be61421cd5200109bd073dc7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/34e22ad03bce4e33be61421cd5200109bd073dc7/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:2:completion | completion | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | $$.fn.show = ->
@style "display", "block"
###
Hides a given instance element
@method val
###
$$.fn.hide = ->
@style "display", "none"
###
Get a offset of a given instance element
@method val
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
offs... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 34e22ad03bce4e33be61421cd5200109bd073dc7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/34e22ad03bce4e33be61421cd5200109bd073dc7/source/quo.element.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | f97418c4e9e8e8346fd1679d2beb24bc1f0fd507 | 2,055 | https://github.com/soyjavi/QuoJS/blob/f97418c4e9e8e8346fd1679d2beb24bc1f0fd507/source/quo.element.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {... | /*
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
*/
$$.fn.attr = funct... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | f97418c4e9e8e8346fd1679d2beb24bc1f0fd507 | 2,055 | https://github.com/soyjavi/QuoJS/blob/f97418c4e9e8e8346fd1679d2beb24bc1f0fd507/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} ... | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | f97418c4e9e8e8346fd1679d2beb24bc1f0fd507 | 2,055 | https://github.com/soyjavi/QuoJS/blob/f97418c4e9e8e8346fd1679d2beb24bc1f0fd507/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | @each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
if @length > 0 and $$.toType(name) is "string"
@each -> @removeAttribute name
#... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | f97418c4e9e8e8346fd1679d2beb24bc1f0fd507 | 2,055 | https://github.com/soyjavi/QuoJS/blob/f97418c4e9e8e8346fd1679d2beb24bc1f0fd507/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397 | 2,055 | https://github.com/soyjavi/QuoJS/blob/d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397/source/quo.element.coffee | 1 | 50 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | ###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
@each -> @removeAttribute name
###
Get/Set data attribute to a given instance element
@method data
@param {string} Name of data attribute
@param {string} [O... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397 | 2,055 | https://github.com/soyjavi/QuoJS/blob/d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397/source/quo.element.coffee | 1 | 50 |
soyjavi/QuoJS:source/quo.element.coffee:2:raw_corpus | raw_corpus | ###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}" | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397 | 2,055 | https://github.com/soyjavi/QuoJS/blob/d4c2c5e53ce5e18a0ea8a200d0b253e4669c0397/source/quo.element.coffee | 51 | 53 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae | 2,055 | https://github.com/soyjavi/QuoJS/blob/6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae/source/quo.element.coffee | 1 | 35 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {... | /*
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
*/
$$.fn.attr = funct... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae | 2,055 | https://github.com/soyjavi/QuoJS/blob/6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae/source/quo.element.coffee | 1 | 35 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} ... | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr ... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae | 2,055 | https://github.com/soyjavi/QuoJS/blob/6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae/source/quo.element.coffee | 1 | 35 |
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute | @param {string} [OPTIONAL] Value of atribbute
###
$$.fn.attr = (name, value) ->
if @length > 0 and $$.toType(name) is "string"
if value
@each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae | 2,055 | https://github.com/soyjavi/QuoJS/blob/6d386d0ab6d2176ecbc2359f96c31a0ff98ee9ae/source/quo.element.coffee | 1 | 35 |
jianliaoim/talk-os:talk-api2x/server/controllers/devicetoken.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
limbo = require 'limbo'
Promise = require 'bluebird'
app = require '../server'
{DeviceTokenModel} = limbo.use 'talk'
module.exports = deviceTokenController = app.controller 'devicetoken', ->
@ensure 'token clientType clientId', only: 'create'
@action 'create', (req, res, callback) ->
{_s... | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/devicetoken.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/devicetoken.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-api2x/server/controllers/devicetoken.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
limbo = require 'limbo'
Promise = require 'bluebird'
app = require '../server'
{DeviceTokenModel} = limbo.use 'talk'
module.exports = deviceTokenController = app.controller 'devicetoken', ->
@ensure 'token clientType clientId', only: 'cre... | var DeviceTokenModel, Promise, _, app, deviceTokenController, limbo;
_ = require('lodash');
limbo = require('limbo');
Promise = require('bluebird');
app = require('../server');
({DeviceTokenModel} = limbo.use('talk'));
module.exports = deviceTokenController = app.controller('devicetoken', function() {
this.ensu... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/server/controllers/devicetoken.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/devicetoken.coffee | 1 | 50 |
jianliaoim/talk-os:talk-api2x/server/controllers/devicetoken.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var DeviceTokenModel, Promise, _, app, deviceTokenController, limbo;
_ = require('lodash');
limbo = require('limbo');
Promise = require('bluebird');
app = require('../server');
({DeviceTokenModel} = limbo.use('talk'));
module.exports = deviceTokenController =... | _ = require 'lodash'
limbo = require 'limbo'
Promise = require 'bluebird'
app = require '../server'
{DeviceTokenModel} = limbo.use 'talk'
module.exports = deviceTokenController = app.controller 'devicetoken', ->
@ensure 'token clientType clientId', only: 'create'
@action 'create', (req, res, callback) ->
{_s... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/devicetoken.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/devicetoken.coffee | 1 | 50 |
jianliaoim/talk-os:talk-api2x/server/controllers/devicetoken.coffee:1:completion | completion | _ = require 'lodash'
limbo = require 'limbo'
Promise = require 'bluebird'
app = require '../server'
{DeviceTokenModel} = limbo.use 'talk'
module.exports = deviceTokenController = app.controller 'devicetoken', ->
@ensure 'token clientType clientId', only: 'create'
@action 'create', (req, res, callback) ->
{_s... | $devicetokens = DeviceTokenModel.find conditions
.sort updatedAt: -1
.execAsync()
.then (devicetokens) ->
if devicetokens?.length is 0
devicetoken = new DeviceTokenModel
else if devicetokens?.length is 1
devicetoken = devicetokens[0]
else
devicetoken = devicetoke... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/server/controllers/devicetoken.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/devicetoken.coffee | 1 | 50 |
gterrono/houston:client/partials/flash_message.coffee:1:raw_corpus | raw_corpus | Houston._show_flash = (err, result) ->
Houston._session 'flash_error', err?
if err?
Houston._session 'flash_message', "Error: #{err.message}"
else
Houston._session 'flash_message', result
Houston._session 'flash_show', true
setTimeout (-> Houston._session('flash_show', false)), 2000
Template._houston... | CoffeeScript | gterrono/houston | client/partials/flash_message.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/flash_message.coffee | 1 | 13 | ||
gterrono/houston:client/partials/flash_message.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Houston._show_flash = (err, result) ->
Houston._session 'flash_error', err?
if err?
Houston._session 'flash_message', "Error: #{err.message}"
else
Houston._session 'flash_message', result
Houston._session 'flash_show', true
setTimeout (-> Housto... | Houston._show_flash = function(err, result) {
Houston._session('flash_error', err != null);
if (err != null) {
Houston._session('flash_message', `Error: ${err.message}`);
} else {
Houston._session('flash_message', result);
}
Houston._session('flash_show', true);
return setTimeout((function() {
r... | CoffeeScript | JavaScript | gterrono/houston | client/partials/flash_message.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/flash_message.coffee | 1 | 13 |
gterrono/houston:client/partials/flash_message.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Houston._show_flash = function(err, result) {
Houston._session('flash_error', err != null);
if (err != null) {
Houston._session('flash_message', `Error: ${err.message}`);
} else {
Houston._session('flash_message', result);
}
Houston._session('flas... | Houston._show_flash = (err, result) ->
Houston._session 'flash_error', err?
if err?
Houston._session 'flash_message', "Error: #{err.message}"
else
Houston._session 'flash_message', result
Houston._session 'flash_show', true
setTimeout (-> Houston._session('flash_show', false)), 2000
Template._houston... | JavaScript | CoffeeScript | gterrono/houston | client/partials/flash_message.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/flash_message.coffee | 1 | 13 |
gterrono/houston:client/partials/flash_message.coffee:1:completion | completion | Houston._show_flash = (err, result) ->
Houston._session 'flash_error', err?
if err?
Houston._session 'flash_message', "Error: #{err.message}"
else
Houston._session 'flash_message', result | Houston._session 'flash_show', true
setTimeout (-> Houston._session('flash_show', false)), 2000
Template._houston_flash_message.helpers
err: -> Houston._session 'flash_error'
show: -> Houston._session 'flash_show'
message: -> Houston._session 'flash_message' | CoffeeScript | CoffeeScript | gterrono/houston | client/partials/flash_message.coffee | MIT | 581357048f3577f0487ed598e26eaf063c813183 | 802 | https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/client/partials/flash_message.coffee | 1 | 13 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:1:raw_corpus | raw_corpus | # [DANGER]
# What I'm doing in this test-spec is SUPER hacky, and I don't like this.
#
# - What I'm doing and why
# - Invalidate require.cache to "observe required file on startup".
# - Then restore require.cache to original state.
#
# - Just invalidating is not enough unless restoreing other spec file fail.
#
# - Wh... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 1 | 44 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# [DANGER]
# What I'm doing in this test-spec is SUPER hacky, and I don't like this.
#
# - What I'm doing and why
# - Invalidate require.cache to "observe required file on startup".
# - Then restore require.cache to original state.
#
# - Just invalidating is no... | // [DANGER]
// What I'm doing in this test-spec is SUPER hacky, and I don't like this.
// - What I'm doing and why
// - Invalidate require.cache to "observe required file on startup".
// - Then restore require.cache to original state.
// - Just invalidating is not enough unless restoreing other spec file fail.
// ... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 1 | 44 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// [DANGER]
// What I'm doing in this test-spec is SUPER hacky, and I don't like this.
// - What I'm doing and why
// - Invalidate require.cache to "observe required file on startup".
// - Then restore require.cache to original state.
// - Just invalidating is ... | # [DANGER]
# What I'm doing in this test-spec is SUPER hacky, and I don't like this.
#
# - What I'm doing and why
# - Invalidate require.cache to "observe required file on startup".
# - Then restore require.cache to original state.
#
# - Just invalidating is not enough unless restoreing other spec file fail.
#
# - Wh... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 1 | 44 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:1:completion | completion | # [DANGER]
# What I'm doing in this test-spec is SUPER hacky, and I don't like this.
#
# - What I'm doing and why
# - Invalidate require.cache to "observe required file on startup".
# - Then restore require.cache to original state.
#
# - Just invalidating is not enough unless restoreing other spec file fail.
#
# - Wh... | beforeEach ->
runs ->
packPath = atom.packages.loadPackage('vim-mode-plus').path
getRequiredLibOrNodeModulePaths = ->
Object.keys(require.cache).filter (p) ->
p.startsWith(packPath + 'lib') or p.startsWith(packPath + 'node_modules')
# Return function to restore original require... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 1 | 44 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:raw_corpus | raw_corpus | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 46 | 85 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequ... | var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return atom.packages.activatePackage('vim-mode-plus').then(fn);
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 46 | 85 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return at... | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 46 | 85 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:completion | completion | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | beforeEach ->
shouldRequireFilesInOrdered = [
"lib/main.js"
"lib/settings.js"
"lib/vim-state.js"
"lib/json/command-table.json"
]
if atom.inDevMode()
shouldRequireFilesInOrdered.push('lib/developer.js')
it "THIS IS WORKAROUND FOR Travis-CI's", ->
# HAC... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 46 | 85 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:raw_corpus | raw_corpus | it "require minimum set of files", ->
withCleanActivation ->
ensureRequiredFiles(shouldRequireFilesInOrdered)
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequi... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 87 | 133 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "require minimum set of files", ->
withCleanActivation ->
ensureRequiredFiles(shouldRequireFilesInOrdered)
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.works... | it("require minimum set of files", function() {
return withCleanActivation(function() {
return ensureRequiredFiles(shouldRequireFilesInOrdered);
});
});
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return at... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 87 | 133 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("require minimum set of files", function() {
return withCleanActivation(function() {
return ensureRequiredFiles(shouldRequireFilesInOrdered);
});
});
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(functi... | it "require minimum set of files", ->
withCleanActivation ->
ensureRequiredFiles(shouldRequireFilesInOrdered)
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequi... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 87 | 133 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:completion | completion | it "require minimum set of files", ->
withCleanActivation ->
ensureRequiredFiles(shouldRequireFilesInOrdered)
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequi... | "lib/motion.js"
"lib/utils.js"
"lib/cursor-style-manager.js"
]
files = shouldRequireFilesInOrdered.concat(extraShouldRequireFilesInOrdered)
ensureRequiredFiles(files)
it "just referencing service function doesn't load base.js", ->
withCleanActivation (pac... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 87 | 133 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 135 | 175 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "... | it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: 'vim-mode-plus-user',
getClass: function() {
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: '... | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | it "Base.getClass(motionClass) populate class table for all members belonging to same file(motions)", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
expect(Base.classByName.size).toBe(0)
Base.getClass("MoveRight")
fileTable = require("../lib/json/file-table... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 8d6f93ae3e3c43c205d6b51aeee911525a7ded78 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/8d6f93ae3e3c43c205d6b51aeee911525a7ded78/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 0a78bec338a813ed49674c10810512ff4688be6f | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/0a78bec338a813ed49674c10810512ff4688be6f/spec/fast-activation-spec.coffee | 135 | 175 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "... | it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: 'vim-mode-plus-user',
getClass: function() {
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 0a78bec338a813ed49674c10810512ff4688be6f | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/0a78bec338a813ed49674c10810512ff4688be6f/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: '... | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 0a78bec338a813ed49674c10810512ff4688be6f | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/0a78bec338a813ed49674c10810512ff4688be6f/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: -> "SampleCommand"})
ensureRequiredFiles(shouldRequir... | it "Base.getClass(motionClass) populate class table for all members belonging to same file(motions)", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
expect(Object.keys(Base.classTable)).toHaveLength(0)
Base.getClass("MoveRight")
fileTable = require("../lib/... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 0a78bec338a813ed49674c10810512ff4688be6f | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/0a78bec338a813ed49674c10810512ff4688be6f/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: () => "SampleCommand"})
ensureRequiredFiles(shouldReq... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | e288f9ca582b4baa4096ed9362a3ebe255ee2735 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/e288f9ca582b4baa4096ed9362a3ebe255ee2735/spec/fast-activation-spec.coffee | 135 | 175 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: () =... | it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: 'vim-mode-plus-user',
getClass: () => {
re... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | e288f9ca582b4baa4096ed9362a3ebe255ee2735 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/e288f9ca582b4baa4096ed9362a3ebe255ee2735/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("calling service.registerCommandFromSpec doesn't load base.js", function() {
return withCleanActivation(function(pack) {
var service;
service = pack.mainModule.provideVimModePlus();
service.registerCommandFromSpec("SampleCommand", {
prefix: '... | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: () => "SampleCommand"})
ensureRequiredFiles(shouldReq... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | e288f9ca582b4baa4096ed9362a3ebe255ee2735 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/e288f9ca582b4baa4096ed9362a3ebe255ee2735/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | it "calling service.registerCommandFromSpec doesn't load base.js", ->
withCleanActivation (pack) ->
service = pack.mainModule.provideVimModePlus()
service.registerCommandFromSpec("SampleCommand", {prefix: 'vim-mode-plus-user', getClass: () => "SampleCommand"})
ensureRequiredFiles(shouldReq... | it "Base.getClass(motionClass) populate class table for all members belonging to same file(motions)", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
expect(Object.keys(Base.classTable)).toHaveLength(0)
Base.getClass("MoveRight")
fileTable = require("../lib/... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | e288f9ca582b4baa4096ed9362a3ebe255ee2735 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/e288f9ca582b4baa4096ed9362a3ebe255ee2735/spec/fast-activation-spec.coffee | 135 | 175 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:raw_corpus | raw_corpus | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 46 | 86 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequ... | var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return atom.packages.activatePackage('vim-mode-plus').then(fn);
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 46 | 86 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return at... | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 46 | 86 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:completion | completion | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | "lib/main.js"
"lib/settings.js"
"lib/vim-state.js"
"lib/json/command-table.json"
]
if atom.inDevMode()
shouldRequireFilesInOrdered.push('lib/developer.js')
it "THIS IS WORKAROUND FOR Travis-CI's", ->
# HACK:
# After very first call of atom.packages.activatePackage('vim-m... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 46 | 86 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:raw_corpus | raw_corpus | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 88 | 135 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureReq... | it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js');
re... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 88 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFiles... | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 88 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:completion | completion | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | ensureRequiredFiles(files)
describe "command-table", ->
# * Loading atom commands from pre-generated command-table.
# * Why?
# vmp adds about 300 cmds, which is huge, dynamically calculating and register cmds
# took very long time.
# So calcluate non-dynamic par then save to command-table.coff... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 88 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
oldCommandTable = require("../lib/json/command-table.json")
... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 137 | 151 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
oldComm... | describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTable, developer, fileTable, oldCommandTable, oldFileTabl... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTa... | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
oldCommandTable = require("../lib/json/command-table.json")
... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = require '../lib/base'
oldCommandTable = require("../lib/json/command-table.json")
... | developer = require "../lib/developer"
{commandTable, fileTable} = developer.buildCommandTableAndFileTable()
expect(oldCommandTable).not.toBe(commandTable)
expect(oldCommandTable).toEqual(commandTable)
expect(oldFileTable).not.toBe(fileTable)
expect(oldFileTable).toEq... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 31943b82597a3cf6b139b1e7374a5ee204474d86 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/31943b82597a3cf6b139b1e7374a5ee204474d86/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:raw_corpus | raw_corpus | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 46 | 87 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequ... | var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return atom.packages.activatePackage('vim-mode-plus').then(fn);
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return at... | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:completion | completion | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | "lib/base.js"
"lib/settings.js"
"lib/vim-state.js"
"lib/json/command-table.json"
]
if atom.inDevMode()
shouldRequireFilesInOrdered.push('lib/developer.js')
it "THIS IS WORKAROUND FOR Travis-CI's", ->
# HACK:
# After very first call of atom.packages.activatePackage('vim-m... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:raw_corpus | raw_corpus | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 89 | 135 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureReq... | it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js');
re... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFiles... | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:completion | completion | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | ensureRequiredFiles(files)
describe "command-table", ->
# * Loading atom commands from pre-generated command-table.
# * Why?
# vmp adds about 300 cmds, which is huge, dynamically calculating and register cmds
# took very long time.
# So calcluate non-dynamic par then save to command-table.coff... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/json/comma... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 137 | 151 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Ba... | describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTable, developer, fileTable, oldCommandTable, oldFileTabl... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTa... | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/json/comma... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/json/comma... | developer = require "../lib/developer"
{commandTable, fileTable} = developer.buildCommandTableAndFileTable()
expect(oldCommandTable).not.toBe(commandTable)
expect(oldCommandTable).toEqual(commandTable)
expect(oldFileTable).not.toBe(fileTable)
expect(oldFileTable).toEq... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a4d7763a81953dd3a440cfd2ad711a64d666a0bb | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a4d7763a81953dd3a440cfd2ad711a64d666a0bb/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:raw_corpus | raw_corpus | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 46 | 87 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequ... | var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return atom.packages.activatePackage('vim-mode-plus').then(fn);
... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var ensureRequiredFiles, withCleanActivation;
withCleanActivation = function(fn) {
var restoreRequireCache;
restoreRequireCache = null;
runs(function() {
return restoreRequireCache = cleanRequireCache();
});
waitsForPromise(function() {
return at... | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:2:completion | completion | withCleanActivation = (fn) ->
restoreRequireCache = null
runs ->
restoreRequireCache = cleanRequireCache()
waitsForPromise ->
atom.packages.activatePackage('vim-mode-plus').then(fn)
runs ->
restoreRequireCache()
ensureRequiredFiles = (files) ->
... | "lib/base.js"
"lib/settings.js"
"lib/vim-state.js"
"lib/command-table.json"
]
if atom.inDevMode()
shouldRequireFilesInOrdered.push('lib/developer.js')
it "THIS IS WORKAROUND FOR Travis-CI's", ->
# HACK:
# After very first call of atom.packages.activatePackage('vim-mode-p... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 46 | 87 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:raw_corpus | raw_corpus | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 89 | 135 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureReq... | it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js');
re... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFiles... | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:completion | completion | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | ensureRequiredFiles(files)
describe "command-table", ->
# * Loading atom commands from pre-generated command-table.
# * Why?
# vmp adds about 300 cmds, which is huge, dynamically calculating and register cmds
# took very long time.
# So calcluate non-dynamic par then save to command-table.coff... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 89 | 135 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:raw_corpus | raw_corpus | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/command-ta... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 137 | 151 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Ba... | describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTable, developer, fileTable, oldCommandTable, oldFileTabl... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("make sure command-table and file-table is NOT out-of-date", function() {
return it("buildCommandTable return table which is equals to initially loaded command table", function() {
return withCleanActivation(function(pack) {
var Base, commandTa... | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/command-ta... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:4:completion | completion | describe "make sure command-table and file-table is NOT out-of-date", ->
it "buildCommandTable return table which is equals to initially loaded command table", ->
withCleanActivation (pack) ->
Base = pack.mainModule.provideVimModePlus().Base
oldCommandTable = require("../lib/command-ta... | developer = require "../lib/developer"
{commandTable, fileTable} = developer.buildCommandTableAndFileTable()
expect(oldCommandTable).not.toBe(commandTable)
expect(oldCommandTable).toEqual(commandTable)
expect(oldFileTable).not.toBe(fileTable)
expect(oldFileTable).toEq... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | a206f2c45562540b5aeef3a19701a91868a522b3 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/a206f2c45562540b5aeef3a19701a91868a522b3/spec/fast-activation-spec.coffee | 137 | 151 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:raw_corpus | raw_corpus | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 08ebadfd26c2727f1bfa395d89856519b8dbf2d0 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/08ebadfd26c2727f1bfa395d89856519b8dbf2d0/spec/fast-activation-spec.coffee | 89 | 134 | ||
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureReq... | it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js');
re... | CoffeeScript | JavaScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 08ebadfd26c2727f1bfa395d89856519b8dbf2d0 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/08ebadfd26c2727f1bfa395d89856519b8dbf2d0/spec/fast-activation-spec.coffee | 89 | 134 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("[one editor opened] require minimum set of files", function() {
return withCleanActivation(function() {
waitsForPromise(function() {
return atom.workspace.open();
});
return runs(function() {
var files;
files = shouldRequireFiles... | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | JavaScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 08ebadfd26c2727f1bfa395d89856519b8dbf2d0 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/08ebadfd26c2727f1bfa395d89856519b8dbf2d0/spec/fast-activation-spec.coffee | 89 | 134 |
t9md/atom-vim-mode-plus:spec/fast-activation-spec.coffee:3:completion | completion | it "[one editor opened] require minimum set of files", ->
withCleanActivation ->
waitsForPromise ->
atom.workspace.open()
runs ->
files = shouldRequireFilesInOrdered.concat('lib/status-bar-manager.js')
ensureRequiredFiles(files)
it "[after motion executed] requir... | ensureRequiredFiles(files)
describe "command-table", ->
# * Loading atom commands from pre-generated command-table.
# * Why?
# vmp adds about 300 cmds, which is huge, dynamically calculating and register cmds
# took very long time.
# So calcluate non-dynamic par then save to command-table.coff... | CoffeeScript | CoffeeScript | t9md/atom-vim-mode-plus | spec/fast-activation-spec.coffee | MIT | 08ebadfd26c2727f1bfa395d89856519b8dbf2d0 | 1,389 | https://github.com/t9md/atom-vim-mode-plus/blob/08ebadfd26c2727f1bfa395d89856519b8dbf2d0/spec/fast-activation-spec.coffee | 89 | 134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.