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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "can filter numeric data", ->
numerics = callbacks.beforeSave.call(app, fixtures["numerics"])
numerics = callbacks.filter.call(app, "1", numerics, "name")
expect(numerics).toContain name: 10
it "request data from remote by ajax if set remoteFilt... | it("can filter numeric data", function() {
var numerics;
numerics = callbacks.beforeSave.call(app, fixtures["numerics"]);
numerics = callbacks.filter.call(app, "1", numerics, "name");
return expect(numerics).toContain({
name: 10
});
});
it("request data from remote by ajax if set remoteFilter", function(... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 43 | 86 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("can filter numeric data", function() {
var numerics;
numerics = callbacks.beforeSave.call(app, fixtures["numerics"]);
numerics = callbacks.filter.call(app, "1", numerics, "name");
return expect(numerics).toContain({
name: 10
});
});
it("request d... | it "can filter numeric data", ->
numerics = callbacks.beforeSave.call(app, fixtures["numerics"])
numerics = callbacks.filter.call(app, "1", numerics, "name")
expect(numerics).toContain name: 10
it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call"... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 43 | 86 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:completion | completion | it "can filter numeric data", ->
numerics = callbacks.beforeSave.call(app, fixtures["numerics"])
numerics = callbacks.filter.call(app, "1", numerics, "name")
expect(numerics).toContain name: 10
it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call"... | numerics = callbacks.beforeSave.call(app, fixtures["numerics"])
numerics = callbacks.sorter.call(app, "1", numerics, "name")
expect(numerics[0].name).toBe 13
it "don't sort the data without a query", ->
names = callbacks.beforeSave.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "", n... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 43 | 86 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:raw_corpus | raw_corpus | it "can insert the text which be choosed", ->
spyOn(callbacks, "beforeInsert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.beforeInsert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
beforeReposition = jasmine.createSpy("beforeReposition")
$inputor.atwho
at... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 88 | 103 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "can insert the text which be choosed", ->
spyOn(callbacks, "beforeInsert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.beforeInsert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
beforeReposition = jasmine.... | it("can insert the text which be choosed", function() {
spyOn(callbacks, "beforeInsert").and.callThrough();
triggerAtwhoAt($inputor);
return expect(callbacks.beforeInsert).toHaveBeenCalled();
});
it("can adjust offset before reposition", function() {
var beforeReposition;
beforeReposition = jasmine.createSpy... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 88 | 103 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("can insert the text which be choosed", function() {
spyOn(callbacks, "beforeInsert").and.callThrough();
triggerAtwhoAt($inputor);
return expect(callbacks.beforeInsert).toHaveBeenCalled();
});
it("can adjust offset before reposition", function() {
var b... | it "can insert the text which be choosed", ->
spyOn(callbacks, "beforeInsert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.beforeInsert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
beforeReposition = jasmine.createSpy("beforeReposition")
$inputor.atwho
at... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 88 | 103 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:completion | completion | it "can insert the text which be choosed", ->
spyOn(callbacks, "beforeInsert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.beforeInsert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
beforeReposition = jasmine.createSpy("beforeReposition") | $inputor.atwho
at: "@"
data: null,
callbacks:
remoteFilter: beforeReposition
simulateTypingIn $inputor
expect(beforeReposition).toHaveBeenCalled() | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532 | 5,250 | https://github.com/ichord/At.js/blob/4673922e4e43ccb85a3f85dbe0d8f4aae8c0a532/spec/javascripts/default_callbacks.spec.coffee | 88 | 103 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:raw_corpus | raw_corpus | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
... | var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
data: fixtures["names"]
});
return app = ... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
... | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:completion | completion | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | expect(items).toContain({"name":"Isabella"})
it "should match the key word following @", ->
query = callbacks.matcher.call(app, "@", text)
expect(query).toBe("Jobs")
it "should match the key word fllowing @ with specials chars", ->
$inputor = $("#special-chars").atwho at: "@", data: fixtures["names"]
... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:raw_corpus | raw_corpus | it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remoteFilter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remoteFilter: remote_call
simulateTypingIn $inputor
expect(remote... | it("request data from remote by ajax if set remoteFilter", function() {
var remote_call;
remote_call = jasmine.createSpy("remote_call");
$inputor.atwho({
at: "@",
data: null,
callbacks: {
remoteFilter: remote_call
}
});
simulateTypingIn($inputor);
return expect(remote_call).toHaveBeenC... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("request data from remote by ajax if set remoteFilter", function() {
var remote_call;
remote_call = jasmine.createSpy("remote_call");
$inputor.atwho({
at: "@",
data: null,
callbacks: {
remoteFilter: remote_call
}
});
simulateTypin... | it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remoteFilter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:completion | completion | it "request data from remote by ajax if set remoteFilter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remoteFilter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
... | expect(numerics[0].name).toBe 13
it "don't sort the data without a query", ->
names = callbacks.beforeSave.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "", names, "name")
expect(names[0]).toEqual({ name : 'Jacob' })
it "can eval temple", ->
map = {name: "username", nick: "nick_n... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | ac213212f2d0d421896f8e490ec99698ed1d99f0 | 5,250 | https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:raw_corpus | raw_corpus | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
... | var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
data: fixtures["names"]
});
return app = ... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
... | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:completion | completion | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | expect(items).toContain({"name":"Isabella"})
it "should match the key word following @", ->
query = callbacks.matcher.call(app, "@", text)
expect(query).toBe("Jobs")
it "should match the key word fllowing @ with specials chars", ->
$inputor = $("#special-chars").atwho at: "@", data: fixtures["names"]
... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 1 | 43 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:raw_corpus | raw_corpus | it "request data from remote by ajax if set remote_filter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remote_filter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "request data from remote by ajax if set remote_filter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remote_filter: remote_call
simulateTypingIn $inputor
expect(remo... | it("request data from remote by ajax if set remote_filter", function() {
var remote_call;
remote_call = jasmine.createSpy("remote_call");
$inputor.atwho({
at: "@",
data: null,
callbacks: {
remote_filter: remote_call
}
});
simulateTypingIn($inputor);
return expect(remote_call).toHaveBee... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("request data from remote by ajax if set remote_filter", function() {
var remote_call;
remote_call = jasmine.createSpy("remote_call");
$inputor.atwho({
at: "@",
data: null,
callbacks: {
remote_filter: remote_call
}
});
simulateTyp... | it "request data from remote by ajax if set remote_filter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remote_filter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:completion | completion | it "request data from remote by ajax if set remote_filter", ->
remote_call = jasmine.createSpy("remote_call")
$inputor.atwho
at: "@"
data: null,
callbacks:
remote_filter: remote_call
simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->... | expect(numerics[0].name).toBe 13
it "don't sort the data without a query", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "", names, "name")
expect(names[0]).toEqual({ name : 'Jacob' })
it "can eval temple", ->
map = {name: "username", nick: "nick_... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 45 | 83 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:raw_corpus | raw_corpus | it "can insert the text which be choosed", ->
spyOn(callbacks, "before_insert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.before_insert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
before_reposition = jasmine.createSpy("before_reposition")
$inputor.atwho
... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 85 | 100 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it "can insert the text which be choosed", ->
spyOn(callbacks, "before_insert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.before_insert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
before_reposition = jasmi... | it("can insert the text which be choosed", function() {
spyOn(callbacks, "before_insert").and.callThrough();
triggerAtwhoAt($inputor);
return expect(callbacks.before_insert).toHaveBeenCalled();
});
it("can adjust offset before reposition", function() {
var before_reposition;
before_reposition = jasmine.creat... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 85 | 100 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it("can insert the text which be choosed", function() {
spyOn(callbacks, "before_insert").and.callThrough();
triggerAtwhoAt($inputor);
return expect(callbacks.before_insert).toHaveBeenCalled();
});
it("can adjust offset before reposition", function() {
var... | it "can insert the text which be choosed", ->
spyOn(callbacks, "before_insert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.before_insert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
before_reposition = jasmine.createSpy("before_reposition")
$inputor.atwho
... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 85 | 100 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:3:completion | completion | it "can insert the text which be choosed", ->
spyOn(callbacks, "before_insert").and.callThrough()
triggerAtwhoAt $inputor
expect(callbacks.before_insert).toHaveBeenCalled()
it "can adjust offset before reposition", ->
before_reposition = jasmine.createSpy("before_reposition") | $inputor.atwho
at: "@"
data: null,
callbacks:
remote_filter: before_reposition
simulateTypingIn $inputor
expect(before_reposition).toHaveBeenCalled() | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 7ed28904c51e8fe61354aadbafbe06e2b27bd588 | 5,250 | https://github.com/ichord/At.js/blob/7ed28904c51e8fe61354aadbafbe06e2b27bd588/spec/javascripts/default_callbacks.spec.coffee | 85 | 100 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:raw_corpus | raw_corpus | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 1 | 44 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
... | var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
data: fixtures["names"]
});
return app = ... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 1 | 44 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
... | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 1 | 44 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:completion | completion | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | it "should match the key word following @", ->
query = callbacks.matcher.call(app, "@", text)
expect(query).toBe("Jobs")
it "can filter data", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.filter.call(app, "jo", names, "name")
expect(names).toContain name: "Joshu... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 1 | 44 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:raw_corpus | raw_corpus | simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "e", names, "name")
expect(names[0].name).toBe 'Ethan'
it "can sort numeric data", ->
numerics = callbacks.b... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 46 | 90 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:completion | completion | simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "e", names, "name")
expect(names[0].name).toBe 'Ethan'
it "can sort numeric data", ->
numerics = callbacks.b... | result = callbacks.tpl_eval.call(app, tpl, map)
expect(result).toBe(html)
it "can highlight the query", ->
html = '<li data-value="username">Ethan</li>'
highlighted = callbacks.highlighter.call(app, html, "e")
result = '<li data-value="username"> <strong>E</strong>than </li>'
expect(highlighted).... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 699db4954bec0068274e6ae1a111c2b61f5fe5b5 | 5,250 | https://github.com/ichord/At.js/blob/699db4954bec0068274e6ae1a111c2b61f5fe5b5/spec/javascripts/default_callbacks.spec.coffee | 46 | 90 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:raw_corpus | raw_corpus | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 1 | 39 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
$inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
... | var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
data: fixtures["names"]
});
return app = ... | CoffeeScript | JavaScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 1 | 39 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var $inputor, app;
$inputor = null;
app = null;
describe("default callbacks", function() {
var callbacks, text;
callbacks = null;
text = null;
beforeEach(function() {
loadFixtures("inputors.html");
$inputor = $("#inputor").atwho({
at: "@",
... | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | JavaScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 1 | 39 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:1:completion | completion | $inputor = null
app = null
describe "default callbacks", ->
callbacks = null
text = null
beforeEach ->
loadFixtures("inputors.html")
$inputor = $("#inputor").atwho at: "@", data: fixtures["names"]
app = getAppOf $inputor
beforeEach ->
text = $.trim $inputor.text()
callbacks = $.fn.atwho.... | items = callbacks.before_save.call(app, fixtures["names"])
expect(items).toContain({"name":"Jacob"})
expect(items).toContain({"name":"Isabella"})
it "should match the key word following @", ->
query = callbacks.matcher.call(app, "@", text)
expect(query).toBe("Jobs")
it "can filter data", ->
na... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 1 | 39 |
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:raw_corpus | raw_corpus | simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "e", names, "name")
expect(names[0].name).toBe 'Ethan'
it "don't sort the data without a query", ->
names = ... | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 41 | 80 | ||
ichord/At.js:spec/javascripts/default_callbacks.spec.coffee:2:completion | completion | simulateTypingIn $inputor
expect(remote_call).toHaveBeenCalled()
it "can sort the data", ->
names = callbacks.before_save.call(app, fixtures["names"])
names = callbacks.sorter.call(app, "e", names, "name")
expect(names[0].name).toBe 'Ethan'
it "don't sort the data without a query", ->
names = ... | it "can highlight the query", ->
html = '<li data-value="username">Ethan</li>'
highlighted = callbacks.highlighter.call(app, html, "e")
result = '<li data-value="username"> <strong>E</strong>than </li>'
expect(highlighted).toBe(result)
it "can insert the text which be choosed", ->
spyOn(callbacks... | CoffeeScript | CoffeeScript | ichord/At.js | spec/javascripts/default_callbacks.spec.coffee | MIT | 52a41f551d3f7952c06b64e3f6f4485affe160ec | 5,250 | https://github.com/ichord/At.js/blob/52a41f551d3f7952c06b64e3f6f4485affe160ec/spec/javascripts/default_callbacks.spec.coffee | 41 | 80 |
jianliaoim/talk-os:talk-api2x/test/servers/index.coffee:1:raw_corpus | raw_corpus | express = require 'express'
bodyParser = require 'body-parser'
module.exports = app = express()
app.use bodyParser.json()
app.use bodyParser.urlencoded(extended: true)
app.use '/account', require './account'
app.use '/teambition', require './teambition'
app.use '/tps', require './tps'
app.use '/striker', require './... | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/index.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/index.coffee | 1 | 29 | ||
jianliaoim/talk-os:talk-api2x/test/servers/index.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
express = require 'express'
bodyParser = require 'body-parser'
module.exports = app = express()
app.use bodyParser.json()
app.use bodyParser.urlencoded(extended: true)
app.use '/account', require './account'
app.use '/teambition', require './teambition'
app.us... | var app, bodyParser, express;
express = require('express');
bodyParser = require('body-parser');
module.exports = app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended: true
}));
app.use('/account', require('./account'));
app.use('/teambition', require('./teambition'));
app.use... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-api2x/test/servers/index.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/index.coffee | 1 | 29 |
jianliaoim/talk-os:talk-api2x/test/servers/index.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var app, bodyParser, express;
express = require('express');
bodyParser = require('body-parser');
module.exports = app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended: true
}));
app.use('/account', require('./account'));
ap... | express = require 'express'
bodyParser = require 'body-parser'
module.exports = app = express()
app.use bodyParser.json()
app.use bodyParser.urlencoded(extended: true)
app.use '/account', require './account'
app.use '/teambition', require './teambition'
app.use '/tps', require './tps'
app.use '/striker', require './... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/index.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/index.coffee | 1 | 29 |
jianliaoim/talk-os:talk-api2x/test/servers/index.coffee:1:completion | completion | express = require 'express'
bodyParser = require 'body-parser'
module.exports = app = express()
app.use bodyParser.json()
app.use bodyParser.urlencoded(extended: true)
app.use '/account', require './account'
app.use '/teambition', require './teambition'
app.use '/tps', require './tps'
app.use '/striker', require './... | app.use '/rssspider', require './rssspider'
app.use '/rly', require './rly'
app.use (err, req, res, next) ->
res.status(400).json
code: 400
message: err.message
app.use (err, req, res, next) ->
res.status(500).json
code: err.code
message: err.message
stack: err.stack
app.listen 7632 | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-api2x/test/servers/index.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/servers/index.coffee | 1 | 29 |
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus | raw_corpus | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
TABLE = document.createElement('table')
TABLE_ROW = document.creat... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 11 | 60 | ||
soyjavi/QuoJS:source/quo.coffee:1:completion | completion | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
TABLE = document.createElement('table')
TABLE_ROW = document.creat... | @method $$
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
###
$$ = (selector, children) ->
unless selector
_instance()
else if $$.toType(selector) is "function"
$$(document).ready selector
else
dom = _getDOMObject(selector... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | else
for key of elements
elements if callback.call(elements[key], key, elements[key]) is false
elements
$$.map = (elements, callback) ->
values = []
i = undefined
key = undefined
if $$.toType(elements) is "array"
i = 0
while i < elements.length
value = callback(e... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus | raw_corpus | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 111 | 160 | ||
soyjavi/QuoJS:source/quo.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ------------------------------------------------------... | var _fragment, _getDOMObject, _instance, argument, prop;
while (arg < len) {
argument = arguments[arg];
for (prop in argument) {
if (_isOwnProperty(argument, prop) && argument[prop] !== undefined) {
child[prop] = argument[prop];
}
}
arg++;
}
child;
// -------------------------------------------... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _fragment, _getDOMObject, _instance, argument, prop;
while (arg < len) {
argument = arguments[arg];
for (prop in argument) {
if (_isOwnProperty(argument, prop) && argument[prop] !== undefined) {
child[prop] = argument[prop];
}
}
arg++;
}
... | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:3:completion | completion | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | domain = _fragment(selector.trim(), RegExp.$1)
selector = null
else if type is "string"
domain = $$.query(document, selector)
if children
if domain.length is 1
domain = $$.query(domain[0], children)
else
#@TODO: BUG if selector count > 1
domain = $$.m... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 161 | 193 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object,... | var _compact, _flatten, _isOwnProperty;
_compact = function(items) {
return items.filter(function(item) {
if (item != null) {
return item;
}
});
};
_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
};
_is... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 161 | 193 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _compact, _flatten, _isOwnProperty;
_compact = function(items) {
return items.filter(function(item) {
if (item != null) {
return item;
}
});
};
_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_... | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 161 | 193 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | @
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$.version = "3.0.7"
$$
@Quo = @$$ = Quo
module?.exports = Quo | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.coffee | 161 | 193 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | else
for key of elements
elements if callback.call(elements[key], key, elements[key]) is false
elements
$$.map = (elements, callback) ->
values = []
i = undefined
key = undefined
if $$.toType(elements) is "array"
i = 0
while i < elements.length
value = callback(e... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 161 | 191 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object,... | var _compact, _flatten, _isOwnProperty;
_compact = function(items) {
return items.filter(function(item) {
if (item != null) {
return item;
}
});
};
_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
};
_is... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 161 | 191 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _compact, _flatten, _isOwnProperty;
_compact = function(items) {
return items.filter(function(item) {
if (item != null) {
return item;
}
});
};
_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_... | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 161 | 191 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | _compact = (items) ->
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# ------------------------------------------... | @forEach (element, index) -> callback.call element, index, element
@
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$.version = "3.... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 1c3d62f70e897dea23def0ff8fcad21b58389314 | 2,055 | https://github.com/soyjavi/QuoJS/blob/1c3d62f70e897dea23def0ff8fcad21b58389314/source/quo.coffee | 161 | 191 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 54abb3af39548f47c69c4adea1f05a621c8b6a02 | 2,055 | https://github.com/soyjavi/QuoJS/blob/54abb3af39548f47c69c4adea1f05a621c8b6a02/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | else
for key of elements
elements if callback.call(elements[key], key, elements[key]) is false
elements
$$.map = (elements, callback) ->
values = []
i = undefined
key = undefined
if $$.toType(elements) is "array"
i = 0
while i < elements.length
value = callback(e... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 54abb3af39548f47c69c4adea1f05a621c8b6a02 | 2,055 | https://github.com/soyjavi/QuoJS/blob/54abb3af39548f47c69c4adea1f05a621c8b6a02/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | elements = domain.getElementById selector.replace("#", "")
unless elements then elements = []
else
elements = domain.querySelectorAll selector
if elements.nodeType then [elements] else Array::slice.call(elements)
# ---------------------------------------------------------------------------
# S... | else
for key of elements
elements if callback.call(elements[key], key, elements[key]) is false
elements
$$.map = (elements, callback) ->
values = []
i = undefined
key = undefined
if $$.toType(elements) is "array"
i = 0
while i < elements.length
value = callback(e... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus | raw_corpus | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 111 | 160 | ||
soyjavi/QuoJS:source/quo.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ------------------------------------------------------... | var _compact, _fragment, _getDOMObject, _instance, argument, prop;
while (arg < len) {
argument = arguments[arg];
for (prop in argument) {
if (_isOwnProperty(argument, prop) && argument[prop] !== undefined) {
child[prop] = argument[prop];
}
}
arg++;
}
child;
// ---------------------------------... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _compact, _fragment, _getDOMObject, _instance, argument, prop;
while (arg < len) {
argument = arguments[arg];
for (prop in argument) {
if (_isOwnProperty(argument, prop) && argument[prop] !== undefined) {
child[prop] = argument[prop];
}
}
... | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:3:completion | completion | while arg < len
argument = arguments[arg]
for prop of argument
child[prop] = argument[prop] if _isOwnProperty(argument, prop) and argument[prop] isnt `undefined`
arg++
child
# ---------------------------------------------------------------------------
# Private Methods
# -----------... | selector = null
else if type is "string"
domain = $$.query(document, selector)
if children
if domain.length is 1
domain = $$.query(domain[0], children)
else
#@TODO: BUG if selector count > 1
domain = $$.map(-> $$.query domain, children)
else if ELEMENT... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 111 | 160 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 161 | 190 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# -----------... | items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnProperty = function(object, property) {
return OBJECT_PROT... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnPropert... | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | @
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$.version = "3.0.6"
$$
@Quo = @$$ = Quo | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7c234c57af32c5c8282a33f83126e961ec8dd98b | 2,055 | https://github.com/soyjavi/QuoJS/blob/7c234c57af32c5c8282a33f83126e961ec8dd98b/source/quo.coffee | 161 | 190 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# -----------... | items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnProperty = function(object, property) {
return OBJECT_PROT... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7c234c57af32c5c8282a33f83126e961ec8dd98b | 2,055 | https://github.com/soyjavi/QuoJS/blob/7c234c57af32c5c8282a33f83126e961ec8dd98b/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnPropert... | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7c234c57af32c5c8282a33f83126e961ec8dd98b | 2,055 | https://github.com/soyjavi/QuoJS/blob/7c234c57af32c5c8282a33f83126e961ec8dd98b/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | @
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$.version = "3.0.5"
$$
@Quo = @$$ = Quo | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 7c234c57af32c5c8282a33f83126e961ec8dd98b | 2,055 | https://github.com/soyjavi/QuoJS/blob/7c234c57af32c5c8282a33f83126e961ec8dd98b/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a1976706c718736fdf1f8ac47b1f2ad8d3bef644 | 2,055 | https://github.com/soyjavi/QuoJS/blob/a1976706c718736fdf1f8ac47b1f2ad8d3bef644/source/quo.coffee | 161 | 190 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# -----------... | items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnProperty = function(object, property) {
return OBJECT_PROT... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | a1976706c718736fdf1f8ac47b1f2ad8d3bef644 | 2,055 | https://github.com/soyjavi/QuoJS/blob/a1976706c718736fdf1f8ac47b1f2ad8d3bef644/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnPropert... | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a1976706c718736fdf1f8ac47b1f2ad8d3bef644 | 2,055 | https://github.com/soyjavi/QuoJS/blob/a1976706c718736fdf1f8ac47b1f2ad8d3bef644/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | @
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$.version = "3.0.4"
$$
@Quo = @$$ = Quo | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a1976706c718736fdf1f8ac47b1f2ad8d3bef644 | 2,055 | https://github.com/soyjavi/QuoJS/blob/a1976706c718736fdf1f8ac47b1f2ad8d3bef644/source/quo.coffee | 161 | 190 |
soyjavi/QuoJS:source/quo.coffee:4:raw_corpus | raw_corpus | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a9e1f09577828b6320910b157016c6d16e770edc | 2,055 | https://github.com/soyjavi/QuoJS/blob/a9e1f09577828b6320910b157016c6d16e770edc/source/quo.coffee | 161 | 188 | ||
soyjavi/QuoJS:source/quo.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# -----------... | items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnProperty = function(object, property) {
return OBJECT_PROT... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | a9e1f09577828b6320910b157016c6d16e770edc | 2,055 | https://github.com/soyjavi/QuoJS/blob/a9e1f09577828b6320910b157016c6d16e770edc/source/quo.coffee | 161 | 188 |
soyjavi/QuoJS:source/quo.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
items.filter(function(item) {
var _flatten, _isOwnProperty;
return item(item != null ? (_flatten = function(array) {
if (array.length > 0) {
return EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array);
} else {
return array;
}
}, _isOwnPropert... | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a9e1f09577828b6320910b157016c6d16e770edc | 2,055 | https://github.com/soyjavi/QuoJS/blob/a9e1f09577828b6320910b157016c6d16e770edc/source/quo.coffee | 161 | 188 |
soyjavi/QuoJS:source/quo.coffee:4:completion | completion | items.filter (item) -> item if item?
_flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
_isOwnProperty = (object, property) ->
OBJECT_PROTOTYPE.hasOwnProperty.call object, property
# --------------------------------------------------------------------... | @forEach (element, index) -> callback.call element, index, element
@
$$.fn.filter = (selector) ->
$$ EMPTY_ARRAY.filter.call(@, (el) ->
el.parentNode and $$.query(el.parentNode, selector).indexOf(el) >= 0)
$$.fn.forEach = EMPTY_ARRAY.forEach
$$.fn.indexOf = EMPTY_ARRAY.indexOf
$$
@Quo = @$$ =... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a9e1f09577828b6320910b157016c6d16e770edc | 2,055 | https://github.com/soyjavi/QuoJS/blob/a9e1f09577828b6320910b157016c6d16e770edc/source/quo.coffee | 161 | 188 |
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus | raw_corpus | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 11 | 60 | ||
soyjavi/QuoJS:source/quo.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basi... | var Quo;
Quo = (function() {
/*
Basic Instance of QuoJS
@method $$
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
*/
var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR;
EMPTY_ARRAY... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Quo;
Quo = (function() {
/*
Basic Instance of QuoJS
@method $$
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
*/
var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_... | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:1:completion | completion | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | dom = _getDOMObject(selector, children)
_instance(dom, selector)
###
Basic Instance of QuoJS
@method query
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
###
$$.query = (domain, selector) ->
if CLASS_SELECTOR.test(selector)
eleme... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | $$.extend = (target) ->
Array::slice.call(arguments, 1).forEach (source) ->
target[key] = source[key] for key of source
target
$$.toType = (obj) ->
OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()
$$.each = (elements, callback) ->
i = undefined
key = undefined... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | $$.extend = (target) ->
Array::slice.call(arguments, 1).forEach (source) ->
target[key] = source[key] for key of source
target
$$.toType = (obj) ->
OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()
$$.each = (elements, callback) ->
i = undefined
key = undefined... | while i < elements.length
value = callback(elements[i], i)
values.push value if value?
i++
else
for key of elements
value = callback(elements[key], key)
values.push value if value?
_flatten values
# --------------------------------------------------------------... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:3:raw_corpus | raw_corpus | domain = _compact selector
else if type is "string" and IS_HTML_FRAGMENT.test(selector)
domain = $$.fragment(selector.trim(), RegExp.$1)
selector = null
else if type is "string"
domain = $$.query(document, selector)
if children
if domain.length is 1
domain = $$.query(... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 111 | 157 | ||
soyjavi/QuoJS:source/quo.coffee:3:completion | completion | domain = _compact selector
else if type is "string" and IS_HTML_FRAGMENT.test(selector)
domain = $$.fragment(selector.trim(), RegExp.$1)
selector = null
else if type is "string"
domain = $$.query(document, selector)
if children
if domain.length is 1
domain = $$.query(... | _flatten = (array) ->
if array.length > 0 then EMPTY_ARRAY.concat.apply(EMPTY_ARRAY, array) else array
# ---------------------------------------------------------------------------
# Exports
# ---------------------------------------------------------------------------
_instance:: = $$.fn = {}
$$.fn.eac... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 725f62940ca005df183a514e3cffea04dd36fed7 | 2,055 | https://github.com/soyjavi/QuoJS/blob/725f62940ca005df183a514e3cffea04dd36fed7/source/quo.coffee | 111 | 157 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | $$.extend = (target) ->
Array::slice.call(arguments, 1).forEach (source) ->
target[key] = source[key] for key of source
target
$$.toType = (obj) ->
OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()
$$.each = (elements, callback) ->
i = undefined
key = undefined... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 90945aba7ed40a2180364041b5790770ca31079a | 2,055 | https://github.com/soyjavi/QuoJS/blob/90945aba7ed40a2180364041b5790770ca31079a/source/quo.coffee | 61 | 110 | ||
soyjavi/QuoJS:source/quo.coffee:2:completion | completion | $$.extend = (target) ->
Array::slice.call(arguments, 1).forEach (source) ->
target[key] = source[key] for key of source
target
$$.toType = (obj) ->
OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()
$$.each = (elements, callback) ->
i = undefined
key = undefined... | while i < elements.length
value = callback(elements[i], i)
values.push value if value?
i++
else
for key of elements
value = callback(elements[key], key)
values.push value if value?
_flatten values
# --------------------------------------------------------------... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | 90945aba7ed40a2180364041b5790770ca31079a | 2,055 | https://github.com/soyjavi/QuoJS/blob/90945aba7ed40a2180364041b5790770ca31079a/source/quo.coffee | 61 | 110 |
soyjavi/QuoJS:source/quo.coffee:1:raw_corpus | raw_corpus | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee | 11 | 60 | ||
soyjavi/QuoJS:source/quo.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basi... | var Quo;
Quo = (function() {
/*
Basic Instance of QuoJS
@method $$
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
*/
var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_FRAGMENT, OBJECT_PROTOTYPE, TAG_SELECTOR;
EMPTY_ARRAY... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Quo;
Quo = (function() {
/*
Basic Instance of QuoJS
@method $$
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
*/
var $$, CLASS_SELECTOR, ELEMENT_TYPES, EMPTY_ARRAY, ID_SELECTOR, IS_HTML_... | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:1:completion | completion | Quo = do ->
EMPTY_ARRAY = []
OBJECT_PROTOTYPE = Object::
IS_HTML_FRAGMENT = /^\s*<(\w+|!)[^>]*>/
ELEMENT_TYPES = [ 1, 9, 11 ]
CLASS_SELECTOR = /^\.([\w-]+)$/
ID_SELECTOR = /^#[\w\d-]+$/
TAG_SELECTOR = /^[\w-]+$/
###
Basic Instance of QuoJS
@method $$
@param {string/instan... | dom = _getDOMObject(selector, children)
_Quo(dom, selector)
###
Basic Instance of QuoJS
@method query
@param {string/instance} [OPTIONAL] Selector for handler
@param {string} [OPTIONAL] Children in selector
###
$$.query = (domain, selector) ->
if CLASS_SELECTOR.test(selector)
elements =... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee | 11 | 60 |
soyjavi/QuoJS:source/quo.coffee:2:raw_corpus | raw_corpus | # ---------------------------------------------------------------------------
$$.extend = (target) ->
Array::slice.call(arguments, 1).forEach (source) ->
target[key] = source[key] for key of source
target
$$.toType = (obj) ->
OBJECT_PROTOTYPE.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCa... | CoffeeScript | soyjavi/QuoJS | source/quo.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.coffee | 61 | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.