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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
yakyak/yakyak:src/ui/views/about.coffee:2:raw_corpus | raw_corpus | li 'Austin Guevara'
li 'Mathias Tillman'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
req... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2ce97cbc6ec186bc3096639e7158ef87d982b9d1 | 3,762 | https://github.com/yakyak/yakyak/blob/2ce97cbc6ec186bc3096639e7158ef87d982b9d1/src/ui/views/about.coffee | 51 | 65 | ||
yakyak/yakyak:src/ui/views/about.coffee:2:completion | completion | li 'Austin Guevara'
li 'Mathias Tillman'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) -> | ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
#$('document').on 'click', '.link-out', (ev)->
# | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2ce97cbc6ec186bc3096639e7158ef87d982b9d1 | 3,762 | https://github.com/yakyak/yakyak/blob/2ce97cbc6ec186bc3096639e7158ef87d982b9d1/src/ui/views/about.coffee | 51 | 65 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
Menu = remote.Menu
{check, versionToInt} = require '../version'
module.exports = view (models) ->
#
# decide if should update
localVersion = remote.require('electron').app.getVersion... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
Menu = remote.Menu
{check, versionToInt} = require '../version'
module.exports = view (models) ->
#
# decide if should update
lo... | var Menu, check, i18n, ipc, path, remote, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
Menu = remote.Menu;
({check, versionToInt} = require('../version'));
module.exports = view(function(models) {
var localVersion, rel... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Menu, check, i18n, ipc, path, remote, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
Menu = remote.Menu;
({check, versionToInt} = require('../version'));
module.ex... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
Menu = remote.Menu
{check, versionToInt} = require '../version'
module.exports = view (models) ->
#
# decide if should update
localVersion = remote.require('electron').app.getVersion... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
Menu = remote.Menu
{check, versionToInt} = require '../version'
module.exports = view (models) ->
#
# decide if should update
localVersion = remote.require('electron').app.getVersion... | # releasedVersion = window.localStorage.versionAdvertised
if shouldUpdate
div class: 'update', ->
span i18n.__('menu.help.about.newer:A newer version is available, please upgrade from %s to %s'
, localVersion
, released... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/about.coffee:2:raw_corpus | raw_corpus | li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal addre... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 51 | 63 | ||
yakyak/yakyak:src/ui/views/about.coffee:2:completion | completion | li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault() | address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
#$('document').on 'click', '.link-out', (ev)->
# | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | f365fd17d79d229de05df31d3f796ba3c118d5c7 | 3,762 | https://github.com/yakyak/yakyak/blob/f365fd17d79d229de05df31d3f796ba3c118d5c7/src/ui/views/about.coffee | 51 | 63 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 9 | 58 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
... | module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
menuTemplate = [
{
label: 'Copy',
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
... | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | releasedVersion = window.localStorage.versionAdvertised
shouldUpdate = releasedVersion? && localVersion? &&
versionToInt(releasedVersion) > versionToInt(localVersion)
#
div class: 'about', ->
div ->
img src: path.join YAKYAK_ROOT_DIR, '..', 'icons', 'icon@8.png'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:2:raw_corpus | raw_corpus | div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.help.about.contributors:Contributors')
ul... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 59 | 84 | ||
yakyak/yakyak:src/ui/views/about.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.... | div({
class: 'devs'
}, function() {
div(function() {
h3(i18n.__('menu.help.about.authors:Main authors'));
return ul(function() {
li('Davide Bertola');
return li('Martin Algesten');
});
});
return div(function() {
h3(i18n.__('menu.help.about.contributors:Contributors'));
return ul... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 59 | 84 |
yakyak/yakyak:src/ui/views/about.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
div({
class: 'devs'
}, function() {
div(function() {
h3(i18n.__('menu.help.about.authors:Main authors'));
return ul(function() {
li('Davide Bertola');
return li('Martin Algesten');
});
});
return div(function() {
h3(i18n.__('menu... | div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.help.about.contributors:Contributors')
ul... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 59 | 84 |
yakyak/yakyak:src/ui/views/about.coffee:2:completion | completion | div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.help.about.contributors:Contributors')
ul... | li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal addre... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/about.coffee | 59 | 84 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/about.coffee | 9 | 58 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
... | module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
menuTemplate = [
{
label: 'Copy',
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
... | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | releasedVersion = window.localStorage.versionAdvertised
shouldUpdate = releasedVersion? && localVersion? &&
versionToInt(releasedVersion) > versionToInt(localVersion)
#
div class: 'about', ->
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/about.coffee | 9 | 58 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 8 | 57 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
... | module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
menuTemplate = [
{
label: 'Copy',
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
... | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | releasedVersion = window.localStorage.versionAdvertised
shouldUpdate = releasedVersion? && localVersion? &&
versionToInt(releasedVersion) > versionToInt(localVersion)
#
div class: 'about', ->
div ->
img src: path.join YAKYAK_ROOT_DIR, 'icons', 'icon@8.png'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:2:raw_corpus | raw_corpus | div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max K... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 58 | 83 | ||
yakyak/yakyak:src/ui/views/about.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
... | div({
class: 'devs'
}, function() {
div(function() {
h3('Main authors');
return ul(function() {
li('Davide Bertola');
return li('Martin Algesten');
});
});
return div(function() {
h3('Contributors');
return ul(function() {
li('David Banham');
li('Max Kueng');
li... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 58 | 83 |
yakyak/yakyak:src/ui/views/about.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
div({
class: 'devs'
}, function() {
div(function() {
h3('Main authors');
return ul(function() {
li('Davide Bertola');
return li('Martin Algesten');
});
});
return div(function() {
h3('Contributors');
return ul(function() {
... | div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max K... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 58 | 83 |
yakyak/yakyak:src/ui/views/about.coffee:2:completion | completion | div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max K... | li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal addre... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/about.coffee | 58 | 83 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0baa48da27143a6ea80d1fcc45df1c526a301e61 | 3,762 | https://github.com/yakyak/yakyak/blob/0baa48da27143a6ea80d1fcc45df1c526a301e61/src/ui/views/about.coffee | 8 | 57 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
... | module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
menuTemplate = [
{
label: 'Copy',
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0baa48da27143a6ea80d1fcc45df1c526a301e61 | 3,762 | https://github.com/yakyak/yakyak/blob/0baa48da27143a6ea80d1fcc45df1c526a301e61/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
... | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0baa48da27143a6ea80d1fcc45df1c526a301e61 | 3,762 | https://github.com/yakyak/yakyak/blob/0baa48da27143a6ea80d1fcc45df1c526a301e61/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | releasedVersion = window.localStorage.versionAdvertised
shouldUpdate = releasedVersion? && localVersion? &&
versionToInt(releasedVersion) > versionToInt(localVersion)
#
div class: 'about', ->
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 0baa48da27143a6ea80d1fcc45df1c526a301e61 | 3,762 | https://github.com/yakyak/yakyak/blob/0baa48da27143a6ea80d1fcc45df1c526a301e61/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:raw_corpus | raw_corpus | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 8 | 57 | ||
yakyak/yakyak:src/ui/views/about.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
... | module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
menuTemplate = [
{
label: 'Copy',
... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = view(function(models) {
var localVersion, releasedVersion, shouldUpdate;
// simple context menu that can only copy
remote.getCurrentWindow().webContents.on('context-menu', function(e, params) {
var menuTemplate;
e.preventDefault();
... | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:1:completion | completion | module.exports = view (models) ->
# simple context menu that can only copy
remote.getCurrentWindow().webContents.on 'context-menu', (e, params) ->
e.preventDefault()
menuTemplate = [{
label: 'Copy'
role: 'copy'
enabled: params.editFlags.canCopy
}
... | releasedVersion = window.localStorage.versionAdvertised
shouldUpdate = releasedVersion? && localVersion? &&
versionToInt(releasedVersion) > versionToInt(localVersion)
#
div class: 'about', ->
div ->
span onclick: (e) ->
window.close()
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 8 | 57 |
yakyak/yakyak:src/ui/views/about.coffee:2:raw_corpus | raw_corpus | span 'Desktop client for Google Hangouts'
div class: 'license', ->
span ->
em 'License: '
span 'MIT'
div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li... | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 58 | 88 | ||
yakyak/yakyak:src/ui/views/about.coffee:2:completion | completion | span 'Desktop client for Google Hangouts'
div class: 'license', ->
span ->
em 'License: '
span 'MIT'
div class: 'devs', ->
div ->
h3 'Main authors'
ul ->
li 'Davide Bertola'
li... | li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/about.coffee | MIT | 158667171ebe06e8d3b452111807247d298ff864 | 3,762 | https://github.com/yakyak/yakyak/blob/158667171ebe06e8d3b452111807247d298ff864/src/ui/views/about.coffee | 58 | 88 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | describe 'personService', ->
beforeEach module 'app'
beforeEach ->
jasmine.Expectation.addMatchers
toEqualData: ->
compare: (actual, expected) ->
pass = angular.equals actual, expected
{pass}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
exp... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/test/scripts/services/personSpec.coffee | 1 | 50 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | describe 'personService', ->
beforeEach module 'app'
beforeEach ->
jasmine.Expectation.addMatchers
toEqualData: ->
compare: (actual, expected) ->
pass = angular.equals actual, expected
{pass}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
exp... | negativeTestSuccess = (results) ->
expect(results).not.toEqualData notExpected
results
personService.get()
.then positiveTestSuccess
.then negativeTestSuccess
$httpBackend.flush()
]
it 'should get person', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = {nam... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/test/scripts/services/personSpec.coffee | 1 | 50 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:2:raw_corpus | raw_corpus | negativeTestSuccess = (results) ->
expect(results).not.toEqualData notExpected
results
personService.getPerson 1
.then positiveTestSuccess
.then negativeTestSuccess
$httpBackend.flush()
] | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/test/scripts/services/personSpec.coffee | 51 | 62 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:2:completion | completion | negativeTestSuccess = (results) ->
expect(results).not.toEqualData notExpected
results
personService.getPerson 1 | .then positiveTestSuccess
.then negativeTestSuccess
$httpBackend.flush()
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | df2ae65cf72b2e625fb5eae80cbde4d76f047616 | 672 | https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/test/scripts/services/personSpec.coffee | 51 | 62 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | describe "personService", ->
beforeEach module 'app'
beforeEach ->
@addMatchers {
toEqualData: (expected) ->
angular.equals @actual, expected
}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = [{name: 'foo'}]
notExpected = [{name: 'bar'}]
... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b84573eefed26945462825227688b2e2fd24cfc8 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/test/scripts/services/personSpec.coffee | 1 | 50 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | describe "personService", ->
beforeEach module 'app'
beforeEach ->
@addMatchers {
toEqualData: (expected) ->
angular.equals @actual, expected
}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = [{name: 'foo'}]
notExpected = [{name: 'bar'}]
... | results
personService.get()
.then(positiveTestSuccess)
.then(negativeTestSuccess)
$httpBackend.flush()
]
it 'should get person', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = {name: 'foo'}
notExpected = {name: 'bar'}
$httpBackend
.expectGET('/people/1')
... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b84573eefed26945462825227688b2e2fd24cfc8 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/test/scripts/services/personSpec.coffee | 1 | 50 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | describe "personService", ->
beforeEach module 'app'
beforeEach ->
@addMatchers {
toEqualData: (expected) ->
angular.equals @actual, expected
}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = [{name: 'foo'}]
notExpected = [{name: 'bar'}]
... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 91e0a5224efc47d3ddfc94f3923379abc984579f | 672 | https://github.com/CaryLandholt/AngularFun/blob/91e0a5224efc47d3ddfc94f3923379abc984579f/test/scripts/services/personSpec.coffee | 1 | 50 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | describe "personService", ->
beforeEach module 'app'
beforeEach ->
@addMatchers {
toEqualData: (expected) ->
angular.equals @actual, expected
}
it 'should get people', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = [{name: 'foo'}]
notExpected = [{name: 'bar'}]
... | results
personService.get()
.then(positiveTestSuccess)
.then(negativeTestSuccess)
$httpBackend.flush()
]
it 'should get person', inject ['$httpBackend', 'personService', ($httpBackend, personService) ->
expected = {name: 'foo'}
notExpected = {name: 'bar'}
$httpBackend
.expectGET('./people/1')
... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 91e0a5224efc47d3ddfc94f3923379abc984579f | 672 | https://github.com/CaryLandholt/AngularFun/blob/91e0a5224efc47d3ddfc94f3923379abc984579f/test/scripts/services/personSpec.coffee | 1 | 50 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.r... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | dda22f120d1bc770fa5eb3388574a606e9c36352 | 672 | https://github.com/CaryLandholt/AngularFun/blob/dda22f120d1bc770fa5eb3388574a606e9c36352/test/scripts/services/personSpec.coffee | 1 | 25 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend =... | beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual, expected);
}
});
});
describe('person service', function() {
var $httpBackend, personService;
personService = {};
$httpBackend = {};
beforeEach(in... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | dda22f120d1bc770fa5eb3388574a606e9c36352 | 672 | https://github.com/CaryLandholt/AngularFun/blob/dda22f120d1bc770fa5eb3388574a606e9c36352/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual, expected);
}
});
});
describe('person service', function() {
var $httpBackend, personService;
p... | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.r... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | dda22f120d1bc770fa5eb3388574a606e9c36352 | 672 | https://github.com/CaryLandholt/AngularFun/blob/dda22f120d1bc770fa5eb3388574a606e9c36352/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people') | .respond [{name: 'Bob'}]
personService = $injector.get('personService')
it 'should query for people at /people and receive an array', ->
success = (result) ->
expect(result).toEqualData [{name: 'Bob'}]
failure = ->
#we should not get a failure in this test:
expect(true).toBe(false)
personService.ge... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | dda22f120d1bc770fa5eb3388574a606e9c36352 | 672 | https://github.com/CaryLandholt/AngularFun/blob/dda22f120d1bc770fa5eb3388574a606e9c36352/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.r... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 89bf01eb6c5efc65ff402ee52e7648dfade9805d | 672 | https://github.com/CaryLandholt/AngularFun/blob/89bf01eb6c5efc65ff402ee52e7648dfade9805d/test/scripts/services/personSpec.coffee | 1 | 25 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend =... | beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual, expected);
}
});
});
describe('person service', function() {
var $httpBackend, personService;
personService = {};
$httpBackend = {};
beforeEach(in... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 89bf01eb6c5efc65ff402ee52e7648dfade9805d | 672 | https://github.com/CaryLandholt/AngularFun/blob/89bf01eb6c5efc65ff402ee52e7648dfade9805d/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual, expected);
}
});
});
describe('person service', function() {
var $httpBackend, personService;
p... | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.r... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 89bf01eb6c5efc65ff402ee52e7648dfade9805d | 672 | https://github.com/CaryLandholt/AngularFun/blob/89bf01eb6c5efc65ff402ee52e7648dfade9805d/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | beforeEach module 'app'
beforeEach ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
personService = {}
$httpBackend = {}
beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people') | .respond [{name: 'Bob'}]
personService = $injector.get('personService')
it 'should query for people at /people and receive an array', ->
success = (result) ->
expect(result).toEqualData [{name: 'Bob'}]
failure = ->
#we should not get a failure in this test:
expect(true).toBe(false)
personService.ge... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 89bf01eb6c5efc65ff402ee52e7648dfade9805d | 672 | https://github.com/CaryLandholt/AngularFun/blob/89bf01eb6c5efc65ff402ee52e7648dfade9805d/test/scripts/services/personSpec.coffee | 1 | 25 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'app'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
pers... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b668056a1a0a90e671ebd58d9751366012c83160 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/services/personSpec.coffee | 1 | 30 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'app'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.... | /*global define, describe, beforeEach, module, it, inject, expect*/
define(['libs/angularMocks', 'services/personService'], function() {
'use strict';
beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
return angular.equals(this.actual,... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b668056a1a0a90e671ebd58d9751366012c83160 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/services/personSpec.coffee | 1 | 30 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define, describe, beforeEach, module, it, inject, expect*/
define(['libs/angularMocks', 'services/personService'], function() {
'use strict';
beforeEach(module('app'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function... | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'app'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
pers... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b668056a1a0a90e671ebd58d9751366012c83160 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/services/personSpec.coffee | 1 | 30 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'app'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
describe 'person service', ->
pers... | $httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.respond [{name: 'Bob'}]
personService = $injector.get('personService')
it 'should query for people at /people and receive an array', ()->
success = (result) ->
expect(result).toEqualData [{name: 'Bob'}]
failure = () ->
#we shou... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | b668056a1a0a90e671ebd58d9751366012c83160 | 672 | https://github.com/CaryLandholt/AngularFun/blob/b668056a1a0a90e671ebd58d9751366012c83160/test/scripts/services/personSpec.coffee | 1 | 30 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:raw_corpus | raw_corpus | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'ngResource'
beforeEach module 'services'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
... | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 0ac8326f0f4b0df011040233572e2d23509c9ddd | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/services/personSpec.coffee | 1 | 31 | ||
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'ngResource'
beforeEach module 'services'
beforeEach () ->
this.addMatchers { toEqualData: ... | /*global define, describe, beforeEach, module, it, inject, expect*/
define(['libs/angularMocks', 'services/personService'], function() {
'use strict';
beforeEach(module('ngResource'));
beforeEach(module('services'));
beforeEach(function() {
return this.addMatchers({
toEqualData: function(expected) {
... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 0ac8326f0f4b0df011040233572e2d23509c9ddd | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/services/personSpec.coffee | 1 | 31 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define, describe, beforeEach, module, it, inject, expect*/
define(['libs/angularMocks', 'services/personService'], function() {
'use strict';
beforeEach(module('ngResource'));
beforeEach(module('services'));
beforeEach(function() {
return this.... | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'ngResource'
beforeEach module 'services'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 0ac8326f0f4b0df011040233572e2d23509c9ddd | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/services/personSpec.coffee | 1 | 31 |
CaryLandholt/AngularFun:test/scripts/services/personSpec.coffee:1:completion | completion | ###global define, describe, beforeEach, module, it, inject, expect###
define ['libs/angularMocks', 'services/personService']
, () ->
'use strict'
beforeEach module 'ngResource'
beforeEach module 'services'
beforeEach () ->
this.addMatchers { toEqualData: (expected) ->
angular.equals this.actual, expected }
... | beforeEach inject (_$httpBackend_, $injector) ->
$httpBackend = _$httpBackend_
$httpBackend.expectGET('./people')
.respond [{name: 'Bob'}]
personService = $injector.get('personService')
it 'should query for people at /people and receive an array', ()->
success = (result) ->
expect(result).toEqual... | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | test/scripts/services/personSpec.coffee | MIT | 0ac8326f0f4b0df011040233572e2d23509c9ddd | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ac8326f0f4b0df011040233572e2d23509c9ddd/test/scripts/services/personSpec.coffee | 1 | 31 |
Glavin001/atom-beautify:src/beautifiers/coffee-fmt.coffee:1:raw_corpus | raw_corpus | "use strict"
Beautifier = require('./beautifier')
module.exports = class CoffeeFmt extends Beautifier
name: "coffee-fmt"
link: "https://github.com/sterpe/coffee-fmt"
options: {
# Apply language-specific options
CoffeeScript:
tab: ["indent_size", \
"indent_char", "indent_with_tabs", \
... | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/coffee-fmt.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/coffee-fmt.coffee | 1 | 33 | ||
Glavin001/atom-beautify:src/beautifiers/coffee-fmt.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
"use strict"
Beautifier = require('./beautifier')
module.exports = class CoffeeFmt extends Beautifier
name: "coffee-fmt"
link: "https://github.com/sterpe/coffee-fmt"
options: {
# Apply language-specific options
CoffeeScript:
tab: ["indent_si... | "use strict";
var Beautifier, CoffeeFmt;
Beautifier = require('./beautifier');
module.exports = CoffeeFmt = (function() {
class CoffeeFmt extends Beautifier {
beautify(text, language, options) {
this.verbose('beautify', language, options);
return new this.Promise(function(resolve, reject) {
... | CoffeeScript | JavaScript | Glavin001/atom-beautify | src/beautifiers/coffee-fmt.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/coffee-fmt.coffee | 1 | 33 |
Glavin001/atom-beautify:src/beautifiers/coffee-fmt.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
"use strict";
var Beautifier, CoffeeFmt;
Beautifier = require('./beautifier');
module.exports = CoffeeFmt = (function() {
class CoffeeFmt extends Beautifier {
beautify(text, language, options) {
this.verbose('beautify', language, options);
retur... | "use strict"
Beautifier = require('./beautifier')
module.exports = class CoffeeFmt extends Beautifier
name: "coffee-fmt"
link: "https://github.com/sterpe/coffee-fmt"
options: {
# Apply language-specific options
CoffeeScript:
tab: ["indent_size", \
"indent_char", "indent_with_tabs", \
... | JavaScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/coffee-fmt.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/coffee-fmt.coffee | 1 | 33 |
Glavin001/atom-beautify:src/beautifiers/coffee-fmt.coffee:1:completion | completion | "use strict"
Beautifier = require('./beautifier')
module.exports = class CoffeeFmt extends Beautifier
name: "coffee-fmt"
link: "https://github.com/sterpe/coffee-fmt"
options: {
# Apply language-specific options
CoffeeScript:
tab: ["indent_size", \
"indent_char", "indent_with_tabs", \
... | }
beautify: (text, language, options) ->
@verbose('beautify', language, options)
return new @Promise((resolve, reject) ->
# Add newLine option
options.newLine = "\n"
# Require
fmt = require('coffee-fmt')
# Format!
try
results = fmt.format(text, options)
# R... | CoffeeScript | CoffeeScript | Glavin001/atom-beautify | src/beautifiers/coffee-fmt.coffee | MIT | 41d5051b399f7fe11efd149504a232df16179d60 | 1,503 | https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/coffee-fmt.coffee | 1 | 33 |
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.tabId
link: link
replace: true
require: '^tabs'
re... | CoffeeScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | f71adf9c94b291059af8de342e725937457a8170 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f71adf9c94b291059af8de342e725937457a8170/scripts/directives/tab.coffee | 1 | 18 | ||
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.ta... | /*global define*/
define(['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], function(directives, template) {
'use strict';
return directives.directive('tab', [
function() {
var link;
link = function(scope,
element,
attrs,
controller) {
return controller.... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | f71adf9c94b291059af8de342e725937457a8170 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f71adf9c94b291059af8de342e725937457a8170/scripts/directives/tab.coffee | 1 | 18 |
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], function(directives, template) {
'use strict';
return directives.directive('tab', [
function() {
var link;
link = function(scope,
element,
... | ###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.tabId
link: link
replace: true
require: '^tabs'
re... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | f71adf9c94b291059af8de342e725937457a8170 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f71adf9c94b291059af8de342e725937457a8170/scripts/directives/tab.coffee | 1 | 18 |
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:completion | completion | ###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.tabId | link: link
replace: true
require: '^tabs'
restrict: 'E'
scope:
caption: '@'
template: template
transclude: true
] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | f71adf9c94b291059af8de342e725937457a8170 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f71adf9c94b291059af8de342e725937457a8170/scripts/directives/tab.coffee | 1 | 18 |
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:raw_corpus | raw_corpus | ###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.tabId
link: link
replace: true
require: '^tabs'
re... | CoffeeScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/directives/tab.coffee | 1 | 18 | ||
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.ta... | /*global define*/
define(['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], function(directives, template) {
'use strict';
return directives.directive('tab', [
function() {
var link;
link = function(scope,
element,
attrs,
controller) {
return controller.... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/directives/tab.coffee | 1 | 18 |
CaryLandholt/AngularFun:scripts/directives/tab.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*global define*/
define(['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], function(directives, template) {
'use strict';
return directives.directive('tab', [
function() {
var link;
link = function(scope,
element,
... | ###global define###
define ['directives/directives', 'libs/text!partials/tab.html', 'directives/tabs'], (directives, template) ->
'use strict'
directives.directive 'tab', [->
link = (scope, element, attrs, controller) ->
controller.addTab scope, attrs.tabId
link: link
replace: true
require: '^tabs'
re... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | scripts/directives/tab.coffee | MIT | 0ae299ec8a05ddbfb2e26f04898245b95f7ab37c | 672 | https://github.com/CaryLandholt/AngularFun/blob/0ae299ec8a05ddbfb2e26f04898245b95f7ab37c/scripts/directives/tab.coffee | 1 | 18 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
new @Widget({
root: '.inputbox'
}).fill(write)
.then =>
@W.getValue({selector: ".inputbox"}).should.eventually.eql(read)
@When /^... | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/steps.coffee | 1 | 17 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
new @Widget({
root: '.inputbox'
}).fill(write)
.then =>
@W.getValue({select... | var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
return new this.Widget({
root: '.inputbox'
}).fill(write).then(() => {
return this.W.getValue({
... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/steps.coffee | 1 | 17 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
return new this.Widget({
root: '.inputbox'
}).fill(w... | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
new @Widget({
root: '.inputbox'
}).fill(write)
.then =>
@W.getValue({selector: ".inputbox"}).should.eventually.eql(read)
@When /^... | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/steps.coffee | 1 | 17 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
new @Widget({
root: '.inputbox'
}).fill(write) | .then =>
@W.getValue({selector: ".inputbox"}).should.eventually.eql(read)
@When /^I fill an input with nothing I should get an error$/, ->
expect( =>
new @Widget({root: '.inputbox'})
.fill()
)
.to.throw("You must pass a value to fill with. https://github.com/mojotech/pioneer/blob/master... | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/steps.coffee | 1 | 17 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 40d78cbe8f85d6d0cf5d876956576708379f820e | 523 | https://github.com/mojotech/pioneer/blob/40d78cbe8f85d6d0cf5d876956576708379f820e/test/integration/steps/steps.coffee | 1 | 12 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getVal... | var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
return this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill(write).then(function() {
... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 40d78cbe8f85d6d0cf5d876956576708379f820e | 523 | https://github.com/mojotech/pioneer/blob/40d78cbe8f85d6d0cf5d876956576708379f820e/test/integration/steps/steps.coffee | 1 | 12 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
return this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox... | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 40d78cbe8f85d6d0cf5d876956576708379f820e | 523 | https://github.com/mojotech/pioneer/blob/40d78cbe8f85d6d0cf5d876956576708379f820e/test/integration/steps/steps.coffee | 1 | 12 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({ | root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 40d78cbe8f85d6d0cf5d876956576708379f820e | 523 | https://github.com/mojotech/pioneer/blob/40d78cbe8f85d6d0cf5d876956576708379f820e/test/integration/steps/steps.coffee | 1 | 12 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 59d82c8da9c7d3c7baac15b38bfa39190f65decb | 523 | https://github.com/mojotech/pioneer/blob/59d82c8da9c7d3c7baac15b38bfa39190f65decb/test/integration/steps/steps.coffee | 1 | 40 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getVal... | var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill(write).then(function() {
ret... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 59d82c8da9c7d3c7baac15b38bfa39190f65decb | 523 | https://github.com/mojotech/pioneer/blob/59d82c8da9c7d3c7baac15b38bfa39190f65decb/test/integration/steps/steps.coffee | 1 | 40 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
}... | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 59d82c8da9c7d3c7baac15b38bfa39190f65decb | 523 | https://github.com/mojotech/pioneer/blob/59d82c8da9c7d3c7baac15b38bfa39190f65decb/test/integration/steps/steps.coffee | 1 | 40 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | .should.eventually
.eql("ok ok only on hover")
@Given /^I should be able to double click an element$/, ->
new @W({
root: '.double'
})
.doubleClick()
.then (w) ->
w.read()
.should.eventually
.eql("wow such click")
@Given /^I should be able to clear an input$/, ->
w... | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 59d82c8da9c7d3c7baac15b38bfa39190f65decb | 523 | https://github.com/mojotech/pioneer/blob/59d82c8da9c7d3c7baac15b38bfa39190f65decb/test/integration/steps/steps.coffee | 1 | 40 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 1afd692452c5b97b29a30d94e5682a6045d8f995 | 523 | https://github.com/mojotech/pioneer/blob/1afd692452c5b97b29a30d94e5682a6045d8f995/test/integration/steps/steps.coffee | 1 | 32 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getVal... | var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill(write).then(function() {
ret... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 1afd692452c5b97b29a30d94e5682a6045d8f995 | 523 | https://github.com/mojotech/pioneer/blob/1afd692452c5b97b29a30d94e5682a6045d8f995/test/integration/steps/steps.coffee | 1 | 32 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
}... | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 1afd692452c5b97b29a30d94e5682a6045d8f995 | 523 | https://github.com/mojotech/pioneer/blob/1afd692452c5b97b29a30d94e5682a6045d8f995/test/integration/steps/steps.coffee | 1 | 32 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | })
.hover()
.then (w) ->
w.read()
.should.eventually
.eql("ok ok only on hover")
@Given /^I should be able to double click an element$/, ->
new @W({
root: '.double'
})
.doubleClick()
.then (w) ->
w.read()
.should.eventually
.eql("wow such click") | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 1afd692452c5b97b29a30d94e5682a6045d8f995 | 523 | https://github.com/mojotech/pioneer/blob/1afd692452c5b97b29a30d94e5682a6045d8f995/test/integration/steps/steps.coffee | 1 | 32 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 6319e811d5e612ff38dfbb9bc4cde8c9c5104d88 | 523 | https://github.com/mojotech/pioneer/blob/6319e811d5e612ff38dfbb9bc4cde8c9c5104d88/test/integration/steps/steps.coffee | 1 | 22 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getVal... | var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill(write).then(function() {
ret... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 6319e811d5e612ff38dfbb9bc4cde8c9c5104d88 | 523 | https://github.com/mojotech/pioneer/blob/6319e811d5e612ff38dfbb9bc4cde8c9c5104d88/test/integration/steps/steps.coffee | 1 | 22 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _, expect;
_ = require('lodash');
expect = require("chai").expect;
module.exports = function() {
this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
}... | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read)
@Given /^I should be ... | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 6319e811d5e612ff38dfbb9bc4cde8c9c5104d88 | 523 | https://github.com/mojotech/pioneer/blob/6319e811d5e612ff38dfbb9bc4cde8c9c5104d88/test/integration/steps/steps.coffee | 1 | 22 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | _ = require('lodash')
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then -> | w.getValue().should.eventually.eql(read)
@Given /^I should be able to hover over an element$/, ->
new @W({
root: 'h4'
})
.hover()
.then (w) ->
w.read()
.should.eventually
.eql("ok ok only on hover") | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 6319e811d5e612ff38dfbb9bc4cde8c9c5104d88 | 523 | https://github.com/mojotech/pioneer/blob/6319e811d5e612ff38dfbb9bc4cde8c9c5104d88/test/integration/steps/steps.coffee | 1 | 22 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 419d3f67f5f4e86e3b256826a5292aa7a712283d | 523 | https://github.com/mojotech/pioneer/blob/419d3f67f5f4e86e3b256826a5292aa7a712283d/test/integration/steps/steps.coffee | 1 | 11 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(... | var expect;
expect = require("chai").expect;
module.exports = function() {
return this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill(write).then(function() {
return w.getValue().sho... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 419d3f67f5f4e86e3b256826a5292aa7a712283d | 523 | https://github.com/mojotech/pioneer/blob/419d3f67f5f4e86e3b256826a5292aa7a712283d/test/integration/steps/steps.coffee | 1 | 11 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var expect;
expect = require("chai").expect;
module.exports = function() {
return this.When(/^I fill an input with "([^"]*)" I should get "([^"]*)"$/, function(write, read) {
var w;
w = new this.Widget({
root: '.inputbox'
});
return w.fill... | expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({
root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 419d3f67f5f4e86e3b256826a5292aa7a712283d | 523 | https://github.com/mojotech/pioneer/blob/419d3f67f5f4e86e3b256826a5292aa7a712283d/test/integration/steps/steps.coffee | 1 | 11 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:completion | completion | expect = require("chai").expect
module.exports = ->
@When /^I fill an input with "([^"]*)" I should get "([^"]*)"$/, (write, read) ->
w = new @Widget({ | root: '.inputbox'
})
w.fill(write)
.then ->
w.getValue().should.eventually.eql(read) | CoffeeScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 419d3f67f5f4e86e3b256826a5292aa7a712283d | 523 | https://github.com/mojotech/pioneer/blob/419d3f67f5f4e86e3b256826a5292aa7a712283d/test/integration/steps/steps.coffee | 1 | 11 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:raw_corpus | raw_corpus | expect = require("chai").expect
module.exports = ->
@Given /^The region "([^"]*)" with a ui element "([^"]*)" containing "([^"]*)"$/, (regionSelector, uiName, contents) ->
new @Widget.View({
regionPath: regionSelector
}).ui(uiName)
.then (elm) ->
elm.getText()
.should.eventually.eql con... | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 90d4a66a885bab106437ace7e6774d70965c75df | 523 | https://github.com/mojotech/pioneer/blob/90d4a66a885bab106437ace7e6774d70965c75df/test/integration/steps/steps.coffee | 1 | 38 | ||
mojotech/pioneer:test/integration/steps/steps.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
expect = require("chai").expect
module.exports = ->
@Given /^The region "([^"]*)" with a ui element "([^"]*)" containing "([^"]*)"$/, (regionSelector, uiName, contents) ->
new @Widget.View({
regionPath: regionSelector
}).ui(uiName)
.then (elm... | var expect;
expect = require("chai").expect;
module.exports = function() {
this.Given(/^The region "([^"]*)" with a ui element "([^"]*)" containing "([^"]*)"$/, function(regionSelector, uiName, contents) {
return new this.Widget.View({
regionPath: regionSelector
}).ui(uiName).then(function(elm) {
... | CoffeeScript | JavaScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 90d4a66a885bab106437ace7e6774d70965c75df | 523 | https://github.com/mojotech/pioneer/blob/90d4a66a885bab106437ace7e6774d70965c75df/test/integration/steps/steps.coffee | 1 | 38 |
mojotech/pioneer:test/integration/steps/steps.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var expect;
expect = require("chai").expect;
module.exports = function() {
this.Given(/^The region "([^"]*)" with a ui element "([^"]*)" containing "([^"]*)"$/, function(regionSelector, uiName, contents) {
return new this.Widget.View({
regionPath: reg... | expect = require("chai").expect
module.exports = ->
@Given /^The region "([^"]*)" with a ui element "([^"]*)" containing "([^"]*)"$/, (regionSelector, uiName, contents) ->
new @Widget.View({
regionPath: regionSelector
}).ui(uiName)
.then (elm) ->
elm.getText()
.should.eventually.eql con... | JavaScript | CoffeeScript | mojotech/pioneer | test/integration/steps/steps.coffee | MIT | 90d4a66a885bab106437ace7e6774d70965c75df | 523 | https://github.com/mojotech/pioneer/blob/90d4a66a885bab106437ace7e6774d70965c75df/test/integration/steps/steps.coffee | 1 | 38 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.