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/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
... | var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: cla... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/startup.coffee | 1 | 27 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
cl... | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div ->
img src: path.... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/startup.coffee | 1 | 27 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div -> | img src: path.join YAKYAK_ROOT_DIR, '..', 'icons', 'icon@32.png'
div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
i18n.__ 'connection.connecting:Connecting'
else if connection.state == ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd | 3,762 | https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/startup.coffee | 1 | 27 |
yakyak/yakyak:src/ui/views/startup.coffee:1:raw_corpus | raw_corpus | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/startup.coffee | 1 | 33 | ||
yakyak/yakyak:src/ui/views/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOM... | var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: cla... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
cl... | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | , ->
div ->
div ->
img src: path.join YAKYAK_ROOT_DIR, '..', 'icons', 'icon@32.png'
div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
i18n.__ 'connection.connecting:Conne... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 2cb992bfd2d3a9ed2f293ab5d88355c037a8c053 | 3,762 | https://github.com/yakyak/yakyak/blob/2cb992bfd2d3a9ed2f293ab5d88355c037a8c053/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:raw_corpus | raw_corpus | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/startup.coffee | 1 | 33 | ||
yakyak/yakyak:src/ui/views/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOM... | var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: cla... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
cl... | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | , ->
div ->
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@32.png'
div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
i18n.__ 'connection.connecting:Conne... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 0ef9816f7bf6ae4717bc0b059a23efab50258322 | 3,762 | https://github.com/yakyak/yakyak/blob/0ef9816f7bf6ae4717bc0b059a23efab50258322/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:raw_corpus | raw_corpus | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/startup.coffee | 1 | 33 | ||
yakyak/yakyak:src/ui/views/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOM... | var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: cla... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
cl... | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | , ->
div ->
div ->
img src: path.join YAKYAK_ROOT_DIR, 'icons', 'icon@32.png'
div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
'Connecting'
else if c... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2 | 3,762 | https://github.com/yakyak/yakyak/blob/37ad0a5ecd054e68196b9e50e41f79abe5f4fdb2/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:raw_corpus | raw_corpus | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 94eb199a74687583609426b8193743298ce89d83 | 3,762 | https://github.com/yakyak/yakyak/blob/94eb199a74687583609426b8193743298ce89d83/src/ui/views/startup.coffee | 1 | 33 | ||
yakyak/yakyak:src/ui/views/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOM... | var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: cla... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 94eb199a74687583609426b8193743298ce89d83 | 3,762 | https://github.com/yakyak/yakyak/blob/94eb199a74687583609426b8193743298ce89d83/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var later, path;
path = require('path');
({later} = require('../util'));
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
cl... | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 94eb199a74687583609426b8193743298ce89d83 | 3,762 | https://github.com/yakyak/yakyak/blob/94eb199a74687583609426b8193743298ce89d83/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
{later} = require '../util'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' ')
, onDOMNodeInserted: (e) ->
ta = e.target
ta.add... | , ->
div ->
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@32.png'
div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
'Connecting'
els... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 94eb199a74687583609426b8193743298ce89d83 | 3,762 | https://github.com/yakyak/yakyak/blob/94eb199a74687583609426b8193743298ce89d83/src/ui/views/startup.coffee | 1 | 33 |
yakyak/yakyak:src/ui/views/startup.coffee:1:raw_corpus | raw_corpus | path = require 'path'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div ->
img src: path.join __dirname, '..', '..', '... | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 7a118cf26e6fa1f6d51e2f66058ce419d93cb31e | 3,762 | https://github.com/yakyak/yakyak/blob/7a118cf26e6fa1f6d51e2f66058ce419d93cb31e/src/ui/views/startup.coffee | 1 | 25 | ||
yakyak/yakyak:src/ui/views/startup.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
path = require 'path'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div ->
... | var path;
path = require('path');
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({
class: classList.join(' ')
}, function() {
r... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 7a118cf26e6fa1f6d51e2f66058ce419d93cb31e | 3,762 | https://github.com/yakyak/yakyak/blob/7a118cf26e6fa1f6d51e2f66058ce419d93cb31e/src/ui/views/startup.coffee | 1 | 25 |
yakyak/yakyak:src/ui/views/startup.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var path;
path = require('path');
module.exports = view(function(models) {
var classList, connection, viewstate;
({connection, viewstate} = models);
classList = ['connecting'];
if (viewstate.loadedContacts) {
classList.push('hide');
}
return div({... | path = require 'path'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div ->
img src: path.join __dirname, '..', '..', '... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 7a118cf26e6fa1f6d51e2f66058ce419d93cb31e | 3,762 | https://github.com/yakyak/yakyak/blob/7a118cf26e6fa1f6d51e2f66058ce419d93cb31e/src/ui/views/startup.coffee | 1 | 25 |
yakyak/yakyak:src/ui/views/startup.coffee:1:completion | completion | path = require 'path'
module.exports = view (models) ->
{connection, viewstate} = models
classList = ['connecting']
if viewstate.loadedContacts
classList.push 'hide'
div class: classList.join(' '), ->
div ->
div ->
img src: path.join __dirname, '..', '..', '... | div ->
span class: 'text state_connecting', ->
if connection.state == connection.CONNECTING
'Connecting'
else if connection.state == connection.CONNECT_FAILED
'Not Connected (check connection)'
el... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/startup.coffee | MIT | 7a118cf26e6fa1f6d51e2f66058ce419d93cb31e | 3,762 | https://github.com/yakyak/yakyak/blob/7a118cf26e6fa1f6d51e2f66058ce419d93cb31e/src/ui/views/startup.coffee | 1 | 25 |
snd/url-pattern:test/match-fixtures.coffee:1:raw_corpus | raw_corpus | test = require 'tape'
UrlPattern = require '../lib/url-pattern'
test 'match', (t) ->
pattern = new UrlPattern '/foo'
t.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
t.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
t.equals pattern.match('/foobar'), null
patte... | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 661366c435b0a7e6f0b112751f1b41a72178c37e | 588 | https://github.com/snd/url-pattern/blob/661366c435b0a7e6f0b112751f1b41a72178c37e/test/match-fixtures.coffee | 1 | 40 | ||
snd/url-pattern:test/match-fixtures.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
test = require 'tape'
UrlPattern = require '../lib/url-pattern'
test 'match', (t) ->
pattern = new UrlPattern '/foo'
t.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
t.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern ... | var UrlPattern, test;
test = require('tape');
UrlPattern = require('../lib/url-pattern');
test('match', function(t) {
var pattern;
pattern = new UrlPattern('/foo');
t.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
t.deepEqual(pattern.match('.foo'), {});
pattern = new UrlPattern('... | CoffeeScript | JavaScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 661366c435b0a7e6f0b112751f1b41a72178c37e | 588 | https://github.com/snd/url-pattern/blob/661366c435b0a7e6f0b112751f1b41a72178c37e/test/match-fixtures.coffee | 1 | 40 |
snd/url-pattern:test/match-fixtures.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var UrlPattern, test;
test = require('tape');
UrlPattern = require('../lib/url-pattern');
test('match', function(t) {
var pattern;
pattern = new UrlPattern('/foo');
t.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
t.deepEqual(p... | test = require 'tape'
UrlPattern = require '../lib/url-pattern'
test 'match', (t) ->
pattern = new UrlPattern '/foo'
t.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
t.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
t.equals pattern.match('/foobar'), null
patte... | JavaScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 661366c435b0a7e6f0b112751f1b41a72178c37e | 588 | https://github.com/snd/url-pattern/blob/661366c435b0a7e6f0b112751f1b41a72178c37e/test/match-fixtures.coffee | 1 | 40 |
snd/url-pattern:test/match-fixtures.coffee:1:completion | completion | test = require 'tape'
UrlPattern = require '../lib/url-pattern'
test 'match', (t) ->
pattern = new UrlPattern '/foo'
t.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
t.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
t.equals pattern.match('/foobar'), null
patte... | t.equals pattern.match('.bar.foo'), null
pattern = new UrlPattern /foo/
t.deepEqual pattern.match('foo'), []
pattern = new UrlPattern /\/foo\/(.*)/
t.deepEqual pattern.match('/foo/bar'), ['bar']
pattern = new UrlPattern /\/foo\/(.*)/
t.deepEqual pattern.match('/foo/'), ['']
pattern = new UrlPattern '/... | CoffeeScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 661366c435b0a7e6f0b112751f1b41a72178c37e | 588 | https://github.com/snd/url-pattern/blob/661366c435b0a7e6f0b112751f1b41a72178c37e/test/match-fixtures.coffee | 1 | 40 |
snd/url-pattern:test/match-fixtures.coffee:1:raw_corpus | raw_corpus | module.exports =
'match': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new UrlPattern '.fo... | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | d9843a09ca2171908c18198f7906eae6a58086e6 | 588 | https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/match-fixtures.coffee | 3 | 52 | ||
snd/url-pattern:test/match-fixtures.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
'match': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.... | module.exports = {
'match': function(test) {
var pattern;
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new UrlPattern('/foo');
test.equals(pattern.match('/foobar'), null);... | CoffeeScript | JavaScript | snd/url-pattern | test/match-fixtures.coffee | MIT | d9843a09ca2171908c18198f7906eae6a58086e6 | 588 | https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
'match': function(test) {
var pattern;
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new UrlPattern('/... | module.exports =
'match': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new UrlPattern '.fo... | JavaScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | d9843a09ca2171908c18198f7906eae6a58086e6 | 588 | https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:completion | completion | module.exports =
'match': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new UrlPattern '.fo... | pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/bar'), ['bar']
pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/'), ['']
pattern = new UrlPattern '/user/:userId/task/:taskId'
test.deepEqual pattern.match('/user/10/task/52'),
userId: '10'
... | CoffeeScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | d9843a09ca2171908c18198f7906eae6a58086e6 | 588 | https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:raw_corpus | raw_corpus | module.exports =
'match': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.ma... | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | b84aa01c9f64797de608fdf77010aec845129eaf | 588 | https://github.com/snd/url-pattern/blob/b84aa01c9f64797de608fdf77010aec845129eaf/test/match-fixtures.coffee | 3 | 52 | ||
snd/url-pattern:test/match-fixtures.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
'match': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
p... | module.exports = {
'match': function(test) {
var pattern;
// TODO simplify these tests with a helper function
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new UrlPattern('... | CoffeeScript | JavaScript | snd/url-pattern | test/match-fixtures.coffee | MIT | b84aa01c9f64797de608fdf77010aec845129eaf | 588 | https://github.com/snd/url-pattern/blob/b84aa01c9f64797de608fdf77010aec845129eaf/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
'match': function(test) {
var pattern;
// TODO simplify these tests with a helper function
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pat... | module.exports =
'match': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.ma... | JavaScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | b84aa01c9f64797de608fdf77010aec845129eaf | 588 | https://github.com/snd/url-pattern/blob/b84aa01c9f64797de608fdf77010aec845129eaf/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:completion | completion | module.exports =
'match': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.ma... | pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/bar'), ['bar']
pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/'), ['']
pattern = new UrlPattern '/user/:userId/task/:taskId'
test.deepEqual pattern.match('/user/10/task/52'),
userId: '10'
... | CoffeeScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | b84aa01c9f64797de608fdf77010aec845129eaf | 588 | https://github.com/snd/url-pattern/blob/b84aa01c9f64797de608fdf77010aec845129eaf/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:raw_corpus | raw_corpus | module.exports =
'UrlPattern.match()': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equa... | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 9933aa15c379f7745d672061348c3f1048b2ba17 | 588 | https://github.com/snd/url-pattern/blob/9933aa15c379f7745d672061348c3f1048b2ba17/test/match-fixtures.coffee | 3 | 52 | ||
snd/url-pattern:test/match-fixtures.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
'UrlPattern.match()': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo... | module.exports = {
'UrlPattern.match()': function(test) {
var pattern;
// TODO simplify these tests with a helper function
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new... | CoffeeScript | JavaScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 9933aa15c379f7745d672061348c3f1048b2ba17 | 588 | https://github.com/snd/url-pattern/blob/9933aa15c379f7745d672061348c3f1048b2ba17/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
'UrlPattern.match()': function(test) {
var pattern;
// TODO simplify these tests with a helper function
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.... | module.exports =
'UrlPattern.match()': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equa... | JavaScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 9933aa15c379f7745d672061348c3f1048b2ba17 | 588 | https://github.com/snd/url-pattern/blob/9933aa15c379f7745d672061348c3f1048b2ba17/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:completion | completion | module.exports =
'UrlPattern.match()': (test) ->
# TODO simplify these tests with a helper function
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equa... | pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/bar'), ['bar']
pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/'), ['']
pattern = new UrlPattern '/user/:userId/task/:taskId'
test.deepEqual pattern.match('/user/10/task/52'),
userId: '10'
... | CoffeeScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | 9933aa15c379f7745d672061348c3f1048b2ba17 | 588 | https://github.com/snd/url-pattern/blob/9933aa15c379f7745d672061348c3f1048b2ba17/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:raw_corpus | raw_corpus | module.exports =
'UrlPattern.match()': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new Ur... | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | e77f64dbc1fa203087c5cc1a6521cf8c01d88419 | 588 | https://github.com/snd/url-pattern/blob/e77f64dbc1fa203087c5cc1a6521cf8c01d88419/test/match-fixtures.coffee | 3 | 52 | ||
snd/url-pattern:test/match-fixtures.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
'UrlPattern.match()': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.eq... | module.exports = {
'UrlPattern.match()': function(test) {
var pattern;
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new UrlPattern('/foo');
test.equals(pattern.match('/foo... | CoffeeScript | JavaScript | snd/url-pattern | test/match-fixtures.coffee | MIT | e77f64dbc1fa203087c5cc1a6521cf8c01d88419 | 588 | https://github.com/snd/url-pattern/blob/e77f64dbc1fa203087c5cc1a6521cf8c01d88419/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
'UrlPattern.match()': function(test) {
var pattern;
pattern = new UrlPattern('/foo');
test.deepEqual(pattern.match('/foo'), {});
pattern = new UrlPattern('.foo');
test.deepEqual(pattern.match('.foo'), {});
pattern = new ... | module.exports =
'UrlPattern.match()': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new Ur... | JavaScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | e77f64dbc1fa203087c5cc1a6521cf8c01d88419 | 588 | https://github.com/snd/url-pattern/blob/e77f64dbc1fa203087c5cc1a6521cf8c01d88419/test/match-fixtures.coffee | 3 | 52 |
snd/url-pattern:test/match-fixtures.coffee:1:completion | completion | module.exports =
'UrlPattern.match()': (test) ->
pattern = new UrlPattern '/foo'
test.deepEqual pattern.match('/foo'), {}
pattern = new UrlPattern '.foo'
test.deepEqual pattern.match('.foo'), {}
pattern = new UrlPattern '/foo'
test.equals pattern.match('/foobar'), null
pattern = new Ur... | pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/bar'), ['bar']
pattern = new UrlPattern /\/foo\/(.*)/
test.deepEqual pattern.match('/foo/'), ['']
pattern = new UrlPattern '/user/:userId/task/:taskId'
test.deepEqual pattern.match('/user/10/task/52'),
userId: '10'
... | CoffeeScript | CoffeeScript | snd/url-pattern | test/match-fixtures.coffee | MIT | e77f64dbc1fa203087c5cc1a6521cf8c01d88419 | 588 | https://github.com/snd/url-pattern/blob/e77f64dbc1fa203087c5cc1a6521cf8c01d88419/test/match-fixtures.coffee | 3 | 52 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:raw_corpus | raw_corpus | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 9 | 58 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNe... | var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element) {
this.element = element;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._debouncedHidePopup = _.debounce(this._hidePopup, 50);
this._debouncedViewNeares... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 9 | 58 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element) {
this.element = element;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._debouncedHidePopup = _.debou... | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 9 | 58 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:completion | completion | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | if @$timeplot.length <= 0
@$timeplot = $("<div class='timeplot'>")
@$element.append @$timeplot
if @commitData.length <= 0
@$timeplot.html("<div class='placeholder'>No commits, nothing to see here.</div>")
return;
svg = d3.select(@$timeplot.get(0))
.append("svg")
.attr("width", ... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 9 | 58 |
littlebee/git-time-machine:lib/git-timeplot.coffee:2:raw_corpus | raw_corpus | pad = 20
minDate = moment.unix(@commitData[@commitData.length-1].authorDate).toDate()
maxDate = moment.unix(@commitData[0].authorDate).toDate()
minHour = d3.min(@commitData.map((d)->moment.unix(d.authorDate).hour()))
maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.t... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 59 | 108 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:2:completion | completion | pad = 20
minDate = moment.unix(@commitData[@commitData.length-1].authorDate).toDate()
maxDate = moment.unix(@commitData[0].authorDate).toDate()
minHour = d3.min(@commitData.map((d)->moment.unix(d.authorDate).hour()))
maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.t... | r = d3.scale.linear()
.domain([0, max_r])
.range([3, 15])
svg.selectAll("circle")
.data(@commitData)
.enter()
.append("circle")
.attr("class", "circle")
.attr("cx", (d)=> @x(moment.unix(d.authorDate).toDate()))
.attr("cy", (d)=> @y(moment.unix(d.authorDate).hour()))
.transition(... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 59 | 108 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus | raw_corpus | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 109 | 158 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion | completion | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | @isMouseInElement = false
# debouncing gives a little time to get the mouse into the popup
@_debouncedHidePopup();
@isMouseDown = false
_onMousedown: (evt) ->
@isMouseDown = true
@_hidePopup(force: true)
@_debouncedViewNearestRevision()
_onMouseup: (evt) ->
@isMouseDown = false
_... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 109 | 158 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus | raw_corpus | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, start, end, @_onViewRevision)
left =... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 159 | 208 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplo... | var commits, end, left, ref, start;
if (this._popupRightAligned) {
left += this.popup.width() + 7;
}
this.$hoverMarker.css({
'left': left
});
return;
if (!this.isMouseInElement) {
return;
}
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[commits, start, end] = this._filterCommitData(this.commitD... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var commits, end, left, ref, start;
if (this._popupRightAligned) {
left += this.popup.width() + 7;
}
this.$hoverMarker.css({
'left': left
});
return;
if (!this.isMouseInElement) {
return;
}
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[com... | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, start, end, @_onViewRevision)
left =... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:completion | completion | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, start, end, @_onViewRevision)
left =... | options = _.defaults options,
force: false
return if !options.force && (@popup?.isMouseInPopup() || @isMouseInElement)
@popup?.hide().remove()
# return commits for range of time at hover marker (mouse hover point +/- fix radius)
_filterCommitData: () ->
left = @$hoverMarker.offset().left
re... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:raw_corpus | raw_corpus | _viewNearestRevision: (reverse) ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit.id, reverse) | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 209 | 212 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_viewNearestRevision: (reverse) ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit.id, reverse)
``` | ({
_viewNearestRevision: function(reverse) {
var nearestCommit;
nearestCommit = this._getNearestCommit();
if (nearestCommit != null) {
return this._onViewRevision(nearestCommit.id, reverse);
}
}
}); | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
_viewNearestRevision: function(reverse) {
var nearestCommit;
nearestCommit = this._getNearestCommit();
if (nearestCommit != null) {
return this._onViewRevision(nearestCommit.id, reverse);
}
}
});
``` | _viewNearestRevision: (reverse) ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit.id, reverse) | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:completion | completion | _viewNearestRevision: (reverse) ->
nearestCommit = @_getNearestCommit() | if nearestCommit?
@_onViewRevision(nearestCommit.id, reverse) | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | ec0b167fb79c1ba3d94d57308bdb843281b6ceb3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/ec0b167fb79c1ba3d94d57308bdb843281b6ceb3/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus | raw_corpus | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 109 | 158 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion | completion | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | @isMouseInElement = false
# debouncing gives a little time to get the mouse into the popup
@_debouncedHidePopup();
@isMouseDown = false
_onMousedown: (evt) ->
@isMouseDown = true
@_hidePopup(force: true)
@_debouncedViewNearestRevision()
_onMouseup: (evt) ->
@isMouseDown = false
_... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 109 | 158 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus | raw_corpus | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(@editor, commits, start, end, @_onViewRevision)
... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 159 | 208 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplo... | var commits, end, left, ref, start;
if (this._popupRightAligned) {
left += this.popup.width() + 7;
}
this.$hoverMarker.css({
'left': left
});
return;
if (!this.isMouseInElement) {
return;
}
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[commits, start, end] = this._filterCommitData(this.commitD... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var commits, end, left, ref, start;
if (this._popupRightAligned) {
left += this.popup.width() + 7;
}
this.$hoverMarker.css({
'left': left
});
return;
if (!this.isMouseInElement) {
return;
}
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[com... | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(@editor, commits, start, end, @_onViewRevision)
... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:completion | completion | if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
return
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(@editor, commits, start, end, @_onViewRevision)
... | options = _.defaults options,
force: false
return if !options.force && (@popup?.isMouseInPopup() || @isMouseInElement)
@popup?.hide().remove()
# return commits for range of time at hover marker (mouse hover point +/- fix radius)
_filterCommitData: () ->
left = @$hoverMarker.offset().left
re... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 159 | 208 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:raw_corpus | raw_corpus | _viewNearestRevision: () ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit) | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 209 | 212 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_viewNearestRevision: () ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit)
``` | ({
_viewNearestRevision: function() {
var nearestCommit;
nearestCommit = this._getNearestCommit();
if (nearestCommit != null) {
return this._onViewRevision(nearestCommit);
}
}
}); | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
_viewNearestRevision: function() {
var nearestCommit;
nearestCommit = this._getNearestCommit();
if (nearestCommit != null) {
return this._onViewRevision(nearestCommit);
}
}
});
``` | _viewNearestRevision: () ->
nearestCommit = @_getNearestCommit()
if nearestCommit?
@_onViewRevision(nearestCommit) | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:5:completion | completion | _viewNearestRevision: () ->
nearestCommit = @_getNearestCommit() | if nearestCommit?
@_onViewRevision(nearestCommit) | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 77d37bbd6109f15a2b0ff38da96bff10cac77e47 | 1,111 | https://github.com/littlebee/git-time-machine/blob/77d37bbd6109f15a2b0ff38da96bff10cac77e47/lib/git-timeplot.coffee | 209 | 212 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:raw_corpus | raw_corpus | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 11 | 60 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNe... | var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element) {
this.element = element;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._debouncedHidePopup = _.debounce(this._hidePopup, 50);
this._debouncedViewNeares... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 11 | 60 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element) {
this.element = element;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._debouncedHidePopup = _.debou... | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 11 | 60 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:completion | completion | module.exports = class GitTimeplot
constructor: (@element) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
@_debouncedViewNearestRevision = _.debounce(@_viewNearestRevision, 100)
hide: () ->
@popup?.remove()
... | if @$timeplot.length <= 0
@$timeplot = $("<div class='timeplot'>")
@$element.append @$timeplot
if @commitData.length <= 0
@$timeplot.html("<div class='placeholder'>No commits, nothing to see here.</div>")
return;
svg = d3.select(@$timeplot.get(0))
.append("svg")
.attr("width", ... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 11 | 60 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus | raw_corpus | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 111 | 160 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion | completion | @$element.mousemove (e) -> _this._onMousemove(e)
@$element.mouseleave (e) -> _this._onMouseleave(e)
@$element.mousedown (e) -> _this._onMousedown(e)
@$element.mouseup (e) -> _this._onMouseup(e)
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - ... | _onMouseleave: (evt) ->
@isMouseInElement = false
# debouncing gives a little time to get the mouse into the popup
@_debouncedHidePopup();
@isMouseDown = false
_onMousedown: (evt) ->
@isMouseDown = true
@_hidePopup(force: true)
@_debouncedViewNearestRevision()
_onMouseup: (evt) ->
... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 111 | 160 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus | raw_corpus | return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, @editor, start, end)
left = @$hoverMarker.offset().left
if left + @popup.outerWidth() + 10 > @$element.offset().left + @$element.width()
@_po... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 161 | 209 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, @editor, start, end)
left = @$hoverMarker.offset().left
if left + @popup.outerWidth() + 10... | var commits, end, left, ref, start;
if (!this.isMouseInElement) {
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[commits, start, end] = this._filterCommitData(this.commitData);
this.popup = new GitTimeplotPopup(commits, this.editor, start, end);
left = this.$hoverMarker.offset().left;
if (le... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 161 | 209 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var commits, end, left, ref, start;
if (!this.isMouseInElement) {
if ((ref = this.popup) != null) {
ref.hide().remove();
}
[commits, start, end] = this._filterCommitData(this.commitData);
this.popup = new GitTimeplotPopup(commits, this.editor, start, e... | return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, @editor, start, end)
left = @$hoverMarker.offset().left
if left + @popup.outerWidth() + 10 > @$element.offset().left + @$element.width()
@_po... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 161 | 209 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:completion | completion | return unless @isMouseInElement
@popup?.hide().remove()
[commits, start, end] = @_filterCommitData(@commitData)
@popup = new GitTimeplotPopup(commits, @editor, start, end)
left = @$hoverMarker.offset().left
if left + @popup.outerWidth() + 10 > @$element.offset().left + @$element.width()
@_po... | # return commits for range of time at hover marker (mouse hover point +/- fix radius)
_filterCommitData: () ->
left = @$hoverMarker.offset().left
relativeLeft = left - @$element.offset().left - 5
tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute')
tEnd = moment(@x.invert(rel... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | b2182517b324c0b3f5affb2418ecd0d55c26bc13 | 1,111 | https://github.com/littlebee/git-time-machine/blob/b2182517b324c0b3f5affb2418ecd0d55c26bc13/lib/git-timeplot.coffee | 161 | 209 |
littlebee/git-time-machine:lib/git-timeplot.coffee:2:raw_corpus | raw_corpus | pad = 20
minDate = moment.unix(@commitData[@commitData.length-1].authorDate).toDate()
maxDate = moment.unix(@commitData[0].authorDate).toDate()
minHour = d3.min(@commitData.map((d)->moment.unix(d.authorDate).hour()))
maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.t... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 308af35936f03f539a0eb47bac5933a5e5889410 | 1,111 | https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-timeplot.coffee | 61 | 110 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:2:completion | completion | pad = 20
minDate = moment.unix(@commitData[@commitData.length-1].authorDate).toDate()
maxDate = moment.unix(@commitData[0].authorDate).toDate()
minHour = d3.min(@commitData.map((d)->moment.unix(d.authorDate).hour()))
maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.t... | r = d3.scale.linear()
.domain([0, max_r])
.range([3, 15])
svg.selectAll("circle")
.data(@commitData)
.enter()
.append("circle")
.attr("class", "circle")
.attr("cx", (d)=> @x(moment.unix(d.authorDate).toDate()))
.attr("cy", (d)=> @y(moment.unix(d.authorDate).hour()))
.transition(... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 308af35936f03f539a0eb47bac5933a5e5889410 | 1,111 | https://github.com/littlebee/git-time-machine/blob/308af35936f03f539a0eb47bac5933a5e5889410/lib/git-timeplot.coffee | 61 | 110 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:raw_corpus | raw_corpus | module.exports = class GitTimeplot
constructor: (@element, @file) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
hide: () ->
@popup?.remove()
show: () ->
# nothing to do here
# @commitData - array o... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 10 | 59 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class GitTimeplot
constructor: (@element, @file) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
hide: () ->
@popup?.remove()
show: ()... | var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element, file) {
this.element = element;
this.file = file;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._debouncedHidePopup = _.debounce(this._hidePopup, 50);
... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 10 | 59 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var GitTimeplot;
module.exports = GitTimeplot = class GitTimeplot {
constructor(element, file) {
this.element = element;
this.file = file;
this.$element = $(this.element);
this._debouncedRenderPopup = _.debounce(this._renderPopup, 50);
this._... | module.exports = class GitTimeplot
constructor: (@element, @file) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
hide: () ->
@popup?.remove()
show: () ->
# nothing to do here
# @commitData - array o... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 10 | 59 |
littlebee/git-time-machine:lib/git-timeplot.coffee:1:completion | completion | module.exports = class GitTimeplot
constructor: (@element, @file) ->
@$element = $(@element)
@_debouncedRenderPopup = _.debounce(@_renderPopup, 50)
@_debouncedHidePopup = _.debounce(@_hidePopup, 50)
hide: () ->
@popup?.remove()
show: () ->
# nothing to do here
# @commitData - array o... | if @commitData.length <= 0
@$timeplot.html("<div class='placeholder'>No commits, nothing to see here.</div>")
return;
svg = d3.select(@$timeplot.get(0))
.append("svg")
.attr("width", @$element.width())
.attr("height", 100)
@_renderAxis(svg)
@_renderBlobs(svg)
@_renderHoverMark... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 10 | 59 |
littlebee/git-time-machine:lib/git-timeplot.coffee:2:raw_corpus | raw_corpus | maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.time.scale().domain([minDate, maxDate]).range([left_pad, w-pad])
@y = d3.scale.linear().domain([minHour, maxHour]).range([10, h-pad*2])
xAxis = d3.svg.axis().scale(@x).orient("bottom")
yAxis = d3.svg.axis().scale(@y).orie... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 60 | 109 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:2:completion | completion | maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.time.scale().domain([minDate, maxDate]).range([left_pad, w-pad])
@y = d3.scale.linear().domain([minHour, maxHour]).range([10, h-pad*2])
xAxis = d3.svg.axis().scale(@x).orient("bottom")
yAxis = d3.svg.axis().scale(@y).orie... | svg.selectAll("circle")
.data(@commitData)
.enter()
.append("circle")
.attr("class", "circle")
.attr("cx", (d)=> @x(moment.unix(d.authorDate).toDate()))
.attr("cy", (d)=> @y(moment.unix(d.authorDate).hour()))
.transition()
.duration(500)
.attr("r", (d) -> r(d.linesAdded + d.linesDele... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 60 | 109 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus | raw_corpus | _onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left', relativeX - @$hoverMarker.width())
@_debouncedRend... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 110 | 159 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left'... | ({
_onMouseenter: function(evt) {
return this.isMouseInElement = true;
},
_onMousemove: function(evt) {
var relativeX;
relativeX = evt.clientX - this.$element.offset().left;
if (relativeX < this.$hoverMarker.offset().left) {
this.$hoverMarker.css('left', relativeX);
} else {
this.$... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 110 | 159 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
_onMouseenter: function(evt) {
return this.isMouseInElement = true;
},
_onMousemove: function(evt) {
var relativeX;
relativeX = evt.clientX - this.$element.offset().left;
if (relativeX < this.$hoverMarker.offset().left) {
this.$hoverM... | _onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left', relativeX - @$hoverMarker.width())
@_debouncedRend... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 110 | 159 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:completion | completion | _onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left', relativeX - @$hoverMarker.width())
@_debouncedRend... | @isMouseDown = false
_renderPopup: () ->
# reposition the marker to match the position of the current popup
if @popup?.isMouseInPopup()
left = @popup.offset().left - @$element.offset().left
if @_popupRightAligned
left += (@popup.width() + 7)
@$hoverMarker.css 'left': left
ret... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 110 | 159 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:raw_corpus | raw_corpus | @popup.css
left: left
top: @$element.offset().top - @popup.height() - 10
_hidePopup: () ->
return if @popup?.isMouseInPopup() || @isMouseInElement
@popup?.hide().remove()
_filterCommitData: () ->
left = @$hoverMarker.offset().left
relativeLeft = left - @$element.offset().left - 5
... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 160 | 187 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
@popup.css
left: left
top: @$element.offset().top - @popup.height() - 10
_hidePopup: () ->
return if @popup?.isMouseInPopup() || @isMouseInElement
@popup?.hide().remove()
_filterCommitData: () ->
left = @$hoverMarker.offset().left
... | this.popup.css({
left: left,
top: this.$element.offset().top - this.popup.height() - 10
});
({
_hidePopup: function() {
var ref, ref1;
if (((ref = this.popup) != null ? ref.isMouseInPopup() : void 0) || this.isMouseInElement) {
return;
}
return (ref1 = this.popup) != null ? ref1.hide().remo... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 160 | 187 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
this.popup.css({
left: left,
top: this.$element.offset().top - this.popup.height() - 10
});
({
_hidePopup: function() {
var ref, ref1;
if (((ref = this.popup) != null ? ref.isMouseInPopup() : void 0) || this.isMouseInElement) {
return;
}
... | @popup.css
left: left
top: @$element.offset().top - @popup.height() - 10
_hidePopup: () ->
return if @popup?.isMouseInPopup() || @isMouseInElement
@popup?.hide().remove()
_filterCommitData: () ->
left = @$hoverMarker.offset().left
relativeLeft = left - @$element.offset().left - 5
... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 160 | 187 |
littlebee/git-time-machine:lib/git-timeplot.coffee:4:completion | completion | @popup.css
left: left
top: @$element.offset().top - @popup.height() - 10
_hidePopup: () ->
return if @popup?.isMouseInPopup() || @isMouseInElement
@popup?.hide().remove()
_filterCommitData: () ->
left = @$hoverMarker.offset().left
relativeLeft = left - @$element.offset().left - 5 | tStart = moment(@x.invert(relativeLeft)).startOf('hour').subtract(1, 'minute')
tEnd = moment(@x.invert(relativeLeft + 10)).endOf('hour').add(1, 'minute')
commits = _.filter @commitData, (c) -> moment.unix(c.authorDate).isBetween(tStart, tEnd)
# console.log("gtm: inspecting #{commits.length} commits betwee #... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | d1d508c6048402f1deec13a99af428af9508f2c3 | 1,111 | https://github.com/littlebee/git-time-machine/blob/d1d508c6048402f1deec13a99af428af9508f2c3/lib/git-timeplot.coffee | 160 | 187 |
littlebee/git-time-machine:lib/git-timeplot.coffee:2:raw_corpus | raw_corpus | maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.time.scale().domain([minDate, maxDate]).range([left_pad, w-pad])
@y = d3.scale.linear().domain([minHour, maxHour]).range([10, h-pad*2])
xAxis = d3.svg.axis().scale(@x).orient("bottom")
yAxis = d3.svg.axis().scale(@y).orie... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 7d69b948fd73afe191937b724f928c75d6cf1d01 | 1,111 | https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee | 60 | 109 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:2:completion | completion | maxHour = d3.max(@commitData.map((d)->moment.unix(d.authorDate).hour()))
@x = d3.time.scale().domain([minDate, maxDate]).range([left_pad, w-pad])
@y = d3.scale.linear().domain([minHour, maxHour]).range([10, h-pad*2])
xAxis = d3.svg.axis().scale(@x).orient("bottom")
yAxis = d3.svg.axis().scale(@y).orie... | svg.selectAll("circle")
.data(@commitData)
.enter()
.append("circle")
.attr("class", "circle")
.attr("cx", (d)=> @x(moment.unix(d.authorDate).toDate()))
.attr("cy", (d)=> @y(moment.unix(d.authorDate).hour()))
.transition()
.duration(500)
.attr("r", (d) -> r(d.linesAdded + d.linesDele... | CoffeeScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 7d69b948fd73afe191937b724f928c75d6cf1d01 | 1,111 | https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee | 60 | 109 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:raw_corpus | raw_corpus | _onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left', relativeX - @$hoverMarker.width())
@_debouncedRend... | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 7d69b948fd73afe191937b724f928c75d6cf1d01 | 1,111 | https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee | 110 | 159 | ||
littlebee/git-time-machine:lib/git-timeplot.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left'... | ({
_onMouseenter: function(evt) {
return this.isMouseInElement = true;
},
_onMousemove: function(evt) {
var relativeX;
relativeX = evt.clientX - this.$element.offset().left;
if (relativeX < this.$hoverMarker.offset().left) {
this.$hoverMarker.css('left', relativeX);
} else {
this.$... | CoffeeScript | JavaScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 7d69b948fd73afe191937b724f928c75d6cf1d01 | 1,111 | https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee | 110 | 159 |
littlebee/git-time-machine:lib/git-timeplot.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
_onMouseenter: function(evt) {
return this.isMouseInElement = true;
},
_onMousemove: function(evt) {
var relativeX;
relativeX = evt.clientX - this.$element.offset().left;
if (relativeX < this.$hoverMarker.offset().left) {
this.$hoverM... | _onMouseenter: (evt) ->
@isMouseInElement = true
_onMousemove: (evt) ->
relativeX = evt.clientX - @$element.offset().left
if relativeX < @$hoverMarker.offset().left
@$hoverMarker.css('left', relativeX)
else
@$hoverMarker.css('left', relativeX - @$hoverMarker.width())
@_debouncedRend... | JavaScript | CoffeeScript | littlebee/git-time-machine | lib/git-timeplot.coffee | MIT | 7d69b948fd73afe191937b724f928c75d6cf1d01 | 1,111 | https://github.com/littlebee/git-time-machine/blob/7d69b948fd73afe191937b724f928c75d6cf1d01/lib/git-timeplot.coffee | 110 | 159 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.