entities listlengths 1 8.61k | max_stars_repo_path stringlengths 7 172 | max_stars_repo_name stringlengths 5 89 | max_stars_count int64 0 82k | content stringlengths 14 1.05M | id stringlengths 2 6 | new_content stringlengths 15 1.05M | modified bool 1
class | references stringlengths 29 1.05M |
|---|---|---|---|---|---|---|---|---|
[
{
"context": "op()\n\n\n\n\n\n\n\nclass Speaker extends SpeakerBase\n\n @Alex: new Speaker {voice:'Alex',role:'trainee',speed:0",
"end": 1509,
"score": 0.9132605791091919,
"start": 1505,
"tag": "NAME",
"value": "Alex"
},
{
"context": "eaker {voice:'Alex',role:'trainee',speed:0.95}\n... | speaker.coffee | emptist/mac_speaker | 0 | say = require 'say'
# see https://javascript.info/settimeout-setinterval
class SpeakerBase
@all = []
@ms: 1500
@indx: 1
@quiet: (s=1) ->
ms = 1000 * s
@wait(ms)
@wait: (ms,sentence=false) ->
if sentence
@indx += 1
@ms += ms # return @ms
@restart: ->
@end()
@end: ->
... | 40495 | say = require 'say'
# see https://javascript.info/settimeout-setinterval
class SpeakerBase
@all = []
@ms: 1500
@indx: 1
@quiet: (s=1) ->
ms = 1000 * s
@wait(ms)
@wait: (ms,sentence=false) ->
if sentence
@indx += 1
@ms += ms # return @ms
@restart: ->
@end()
@end: ->
... | true | say = require 'say'
# see https://javascript.info/settimeout-setinterval
class SpeakerBase
@all = []
@ms: 1500
@indx: 1
@quiet: (s=1) ->
ms = 1000 * s
@wait(ms)
@wait: (ms,sentence=false) ->
if sentence
@indx += 1
@ms += ms # return @ms
@restart: ->
@end()
@end: ->
... |
[
{
"context": "###\n backbone-orm.js 0.5.12\n Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-orm\n Lice",
"end": 58,
"score": 0.9989057183265686,
"start": 50,
"tag": "NAME",
"value": "Vidigami"
},
{
"context": " Copyright (c) 2013 Vidigami - https://github.com/v... | src/memory/cursor.coffee | michaelBenin/backbone-orm | 1 | ###
backbone-orm.js 0.5.12
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-orm
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Backbone.js, Underscore.js, and Moment.js.
###
_ = require 'underscore'
moment = require 'moment'
inflection = require 'inflection'
... | 110890 | ###
backbone-orm.js 0.5.12
Copyright (c) 2013 <NAME> - https://github.com/vidigami/backbone-orm
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Backbone.js, Underscore.js, and Moment.js.
###
_ = require 'underscore'
moment = require 'moment'
inflection = require 'inflection'
Qu... | true | ###
backbone-orm.js 0.5.12
Copyright (c) 2013 PI:NAME:<NAME>END_PI - https://github.com/vidigami/backbone-orm
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Dependencies: Backbone.js, Underscore.js, and Moment.js.
###
_ = require 'underscore'
moment = require 'moment'
inflection = require 'i... |
[
{
"context": "on'>\n Please contact us at <a href=\"mailto:support@koding.com\">support@koding.com</a> so that we can help you r",
"end": 1055,
"score": 0.9999238848686218,
"start": 1037,
"tag": "EMAIL",
"value": "support@koding.com"
},
{
"context": "contact us at <a href=\"ma... | client/app/lib/payment/paymentdowngradeerrormodal.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
KDButtonView = kd.ButtonView
KDCustomHTMLView = kd.CustomHTMLView
PaymentBaseModal = require './paymentbasemodal'
module.exports = class PaymentDowngradeErrorModal extends PaymentBaseModal
getInitialState: -> kd.utils.dict()
constructor: (options = {}, data) ->
{ state } = options
@s... | 115033 | kd = require 'kd'
KDButtonView = kd.ButtonView
KDCustomHTMLView = kd.CustomHTMLView
PaymentBaseModal = require './paymentbasemodal'
module.exports = class PaymentDowngradeErrorModal extends PaymentBaseModal
getInitialState: -> kd.utils.dict()
constructor: (options = {}, data) ->
{ state } = options
@s... | true | kd = require 'kd'
KDButtonView = kd.ButtonView
KDCustomHTMLView = kd.CustomHTMLView
PaymentBaseModal = require './paymentbasemodal'
module.exports = class PaymentDowngradeErrorModal extends PaymentBaseModal
getInitialState: -> kd.utils.dict()
constructor: (options = {}, data) ->
{ state } = options
@s... |
[
{
"context": "ce text with phonetic spelling\n\nWritten in 2013 by Karl Naylor <kpn103@yahoo.com>\n\nTo the extent possible under ",
"end": 104,
"score": 0.9998888969421387,
"start": 93,
"tag": "NAME",
"value": "Karl Naylor"
},
{
"context": "honetic spelling\n\nWritten in 2013 by Kar... | src/content/coffee/loader.coffee | karlorg/phonetify | 1 | ###
phonetify - Firefox extension to replace text with phonetic spelling
Written in 2013 by Karl Naylor <kpn103@yahoo.com>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed witho... | 31249 | ###
phonetify - Firefox extension to replace text with phonetic spelling
Written in 2013 by <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warrant... | true | ###
phonetify - Firefox extension to replace text with phonetic spelling
Written in 2013 by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is di... |
[
{
"context": "at you're doing\n#\n# Notes\n# None\n#\n# Author:\n# Eduardo Barroso <ebarroso@gmail.com> (https://github.com/edobarro",
"end": 240,
"score": 0.9998822212219238,
"start": 225,
"tag": "NAME",
"value": "Eduardo Barroso"
},
{
"context": "# Notes\n# None\n#\n# Author:... | src/ihavenoidea.coffee | EdoBarroso/hubot-nocacho | 0 | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# Eduardo Barroso <ebarroso@gmail.com> (https://github.com/edobarroso)
module.exports = (robot) ... | 96061 | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# <NAME> <<EMAIL>> (https://github.com/edobarroso)
module.exports = (robot) ->
robot.hear rege... | true | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (https://github.com/edobarroso)
module.exports =... |
[
{
"context": "h = (atto) ->\n\tmodel = {\n\t\tnodes: [{id: 0, name: \"Atto\", type: \"atto\"}]\n\t\tlinks: []\n\t}\n\ti = 0\n\tfor term ",
"end": 101,
"score": 0.9970488548278809,
"start": 97,
"tag": "NAME",
"value": "Atto"
},
{
"context": " (cluster) ->\n\tmodel = {\n\t\tnodes: [{id... | web/deploy/app/graph-model-utils.coffee | JCCorreale/Hackathon-Code4Italy | 2 | GraphModelUtils = {}
GraphModelUtils.attoToGraph = (atto) ->
model = {
nodes: [{id: 0, name: "Atto", type: "atto"}]
links: []
}
i = 0
for term in atto.terms
n = id: i++, name: term, type: "term"
model.nodes.push n
model.links.push source: model.nodes[0], target: n
return model
GraphModelUtils.clusterTo... | 5670 | GraphModelUtils = {}
GraphModelUtils.attoToGraph = (atto) ->
model = {
nodes: [{id: 0, name: "<NAME>", type: "atto"}]
links: []
}
i = 0
for term in atto.terms
n = id: i++, name: term, type: "term"
model.nodes.push n
model.links.push source: model.nodes[0], target: n
return model
GraphModelUtils.cluster... | true | GraphModelUtils = {}
GraphModelUtils.attoToGraph = (atto) ->
model = {
nodes: [{id: 0, name: "PI:NAME:<NAME>END_PI", type: "atto"}]
links: []
}
i = 0
for term in atto.terms
n = id: i++, name: term, type: "term"
model.nodes.push n
model.links.push source: model.nodes[0], target: n
return model
GraphMode... |
[
{
"context": "# Monkey.js\n# MIT 2014 @ Zhuochun <zhuochun@hotmail.com>\n#\n# Usage:\n#\n# new Monke",
"end": 33,
"score": 0.9670670628547668,
"start": 25,
"tag": "NAME",
"value": "Zhuochun"
},
{
"context": "# Monkey.js\n# MIT 2014 @ Zhuochun <zhuochun@hotmail.com>\n#\n# Usage:\n#\... | src/monkey.coffee | zhuochun/monkey | 8 | # Monkey.js
# MIT 2014 @ Zhuochun <zhuochun@hotmail.com>
#
# Usage:
#
# new Monkey().behaviour(new ClickBehaviour().getHandler()).play()
#
class Monkey
# constructor
#
# @params options
# - element: restrict the place monkeys play (default is `document`)
# - cycles: number of cycles to run all actions (... | 103684 | # Monkey.js
# MIT 2014 @ <NAME> <<EMAIL>>
#
# Usage:
#
# new Monkey().behaviour(new ClickBehaviour().getHandler()).play()
#
class Monkey
# constructor
#
# @params options
# - element: restrict the place monkeys play (default is `document`)
# - cycles: number of cycles to run all actions (default is `10`... | true | # Monkey.js
# MIT 2014 @ PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# Usage:
#
# new Monkey().behaviour(new ClickBehaviour().getHandler()).play()
#
class Monkey
# constructor
#
# @params options
# - element: restrict the place monkeys play (default is `document`)
# - cycles: number of cycles to run... |
[
{
"context": "/university-of-oxford.png'\n name: 'University of Oxford'\n description: translate 'div', 'team",
"end": 201,
"score": 0.5068752765655518,
"start": 199,
"tag": "NAME",
"value": "of"
},
{
"context": "ersity-of-oxford.png'\n name: 'University of Oxford'\n ... | content/team.coffee | zooniverse/penguinwatch | 0 | translate = require 't7e'
module.exports =
organizations:
title: translate 'span', 'team.organisations'
members: [{
image: './orgs/university-of-oxford.png'
name: 'University of Oxford'
description: translate 'div', 'team.oxford'
}, {
image: './orgs/australian-antarctic-division.... | 9473 | translate = require 't7e'
module.exports =
organizations:
title: translate 'span', 'team.organisations'
members: [{
image: './orgs/university-of-oxford.png'
name: 'University <NAME> O<NAME>'
description: translate 'div', 'team.oxford'
}, {
image: './orgs/australian-antarctic-divi... | true | translate = require 't7e'
module.exports =
organizations:
title: translate 'span', 'team.organisations'
members: [{
image: './orgs/university-of-oxford.png'
name: 'University PI:NAME:<NAME>END_PI OPI:NAME:<NAME>END_PI'
description: translate 'div', 'team.oxford'
}, {
image: './or... |
[
{
"context": " [\n '#b1[bottom] == #b2[top] name(bob) !medium'\n '#b2[bottom] == #b3[top] na",
"end": 17681,
"score": 0.5532562732696533,
"start": 17678,
"tag": "NAME",
"value": "bob"
},
{
"context": "medium'\n '#b2[bottom] == #b3[top] name(bob) ... | spec/compiler.coffee | cbchouinard/vfl-compiler | 22 | if window?
parser = require 'vfl-compiler'
else
chai = require 'chai' unless chai
parser = require '../lib/compiler'
{expect} = chai
parse = (sources, expectation, pending) ->
itFn = if pending then xit else it
if !(sources instanceof Array)
sources = [sources]
for source in sources
describe s... | 171259 | if window?
parser = require 'vfl-compiler'
else
chai = require 'chai' unless chai
parser = require '../lib/compiler'
{expect} = chai
parse = (sources, expectation, pending) ->
itFn = if pending then xit else it
if !(sources instanceof Array)
sources = [sources]
for source in sources
describe s... | true | if window?
parser = require 'vfl-compiler'
else
chai = require 'chai' unless chai
parser = require '../lib/compiler'
{expect} = chai
parse = (sources, expectation, pending) ->
itFn = if pending then xit else it
if !(sources instanceof Array)
sources = [sources]
for source in sources
describe s... |
[
{
"context": "est where value exist', (done) ->\n m.name('Some Value')\n options =\n message: 'f",
"end": 300,
"score": 0.5927362442016602,
"start": 296,
"tag": "NAME",
"value": "Some"
}
] | samplenode/samplenode/node_modules/nodejs-model/test/validators/test-presence.coffee | thakurarun/Basic-nodejs-express-app | 19 | v = require '../../lib/validators/presence'
model = require '../../lib/index'
m = null
describe 'Presence validator tests', ->
beforeEach (done) ->
M = model("M").attr('name')
m = M.create()
done()
it 'Positive test where value exist', (done) ->
m.name('Some Value')
opt... | 41736 | v = require '../../lib/validators/presence'
model = require '../../lib/index'
m = null
describe 'Presence validator tests', ->
beforeEach (done) ->
M = model("M").attr('name')
m = M.create()
done()
it 'Positive test where value exist', (done) ->
m.name('<NAME> Value')
o... | true | v = require '../../lib/validators/presence'
model = require '../../lib/index'
m = null
describe 'Presence validator tests', ->
beforeEach (done) ->
M = model("M").attr('name')
m = M.create()
done()
it 'Positive test where value exist', (done) ->
m.name('PI:NAME:<NAME>END_PI Val... |
[
{
"context": "y the user of the library)\n* E.g. if you (lets say adam@host.com) are the developer of the script and want to rece",
"end": 4967,
"score": 0.9999239444732666,
"start": 4954,
"tag": "EMAIL",
"value": "adam@host.com"
}
] | src/dLogger.coffee | joscha/dLogger | 1 | l = null
(->
class DistributedLogger
@CELL_LIMIT: 4e5
@EXCEED_PERCENTAGE: 0.8
getDb_: ->
ScriptDb.getMyDb()
getEmail_: ->
Session.getActiveUser().getEmail()
log: (key, m, sheetName = null) ->
spreadsheet = null
now = new Date()
try
throw "log: Parameter '... | 16086 | l = null
(->
class DistributedLogger
@CELL_LIMIT: 4e5
@EXCEED_PERCENTAGE: 0.8
getDb_: ->
ScriptDb.getMyDb()
getEmail_: ->
Session.getActiveUser().getEmail()
log: (key, m, sheetName = null) ->
spreadsheet = null
now = new Date()
try
throw "log: Parameter '... | true | l = null
(->
class DistributedLogger
@CELL_LIMIT: 4e5
@EXCEED_PERCENTAGE: 0.8
getDb_: ->
ScriptDb.getMyDb()
getEmail_: ->
Session.getActiveUser().getEmail()
log: (key, m, sheetName = null) ->
spreadsheet = null
now = new Date()
try
throw "log: Parameter '... |
[
{
"context": "\n\t\t\t\t\t\tname: name\n\t\t\t\t\temail: email\n\t\t\t\t\tpassword: password\n\t\t\t\t, (error) ->\n\t\t\t\t\tif error?\n\t\t\t\t\t\t$('.ui.form",
"end": 580,
"score": 0.9983831644058228,
"start": 572,
"tag": "PASSWORD",
"value": "password"
}
] | client/views/login/login.coffee | engelgabriel/meteor-matches | 0 | Template.login.onCreated ->
@state = new ReactiveVar 'signin'
Template.login.helpers
state: ->
return Template.instance().state.get()
Template.login.events
'click .signup': (e, t) ->
t.state.set 'signup'
'click .signin': (e, t) ->
t.state.set 'signin'
'submit form': (e, t) ->
e.preventDefault()
sw... | 195005 | Template.login.onCreated ->
@state = new ReactiveVar 'signin'
Template.login.helpers
state: ->
return Template.instance().state.get()
Template.login.events
'click .signup': (e, t) ->
t.state.set 'signup'
'click .signin': (e, t) ->
t.state.set 'signin'
'submit form': (e, t) ->
e.preventDefault()
sw... | true | Template.login.onCreated ->
@state = new ReactiveVar 'signin'
Template.login.helpers
state: ->
return Template.instance().state.get()
Template.login.events
'click .signup': (e, t) ->
t.state.set 'signup'
'click .signin': (e, t) ->
t.state.set 'signin'
'submit form': (e, t) ->
e.preventDefault()
sw... |
[
{
"context": "Testing.CUSTOMER_ID + '/bank_accounts',\n\t\t\tname: 'Test Account',\n\t\t\taccount_number: '1234',\n\t\t\trouting_number: '",
"end": 357,
"score": 0.9992395639419556,
"start": 345,
"tag": "NAME",
"value": "Test Account"
}
] | tests/helpers/create-objects.coffee | dk-dev/balanced-dashboard | 169 | `import Models from "./models";`
Ember.Test.registerAsyncHelper "startMarketplace", (app, Testing) ->
andThen ->
Testing.setupMarketplace(app)
Ember.Test.registerAsyncHelper "createBankAccount", (app, Testing) ->
andThen ->
instance = Models.BankAccount.create({
uri: '/customers/' + Testing.CUSTOMER_ID + '/b... | 116258 | `import Models from "./models";`
Ember.Test.registerAsyncHelper "startMarketplace", (app, Testing) ->
andThen ->
Testing.setupMarketplace(app)
Ember.Test.registerAsyncHelper "createBankAccount", (app, Testing) ->
andThen ->
instance = Models.BankAccount.create({
uri: '/customers/' + Testing.CUSTOMER_ID + '/b... | true | `import Models from "./models";`
Ember.Test.registerAsyncHelper "startMarketplace", (app, Testing) ->
andThen ->
Testing.setupMarketplace(app)
Ember.Test.registerAsyncHelper "createBankAccount", (app, Testing) ->
andThen ->
instance = Models.BankAccount.create({
uri: '/customers/' + Testing.CUSTOMER_ID + '/b... |
[
{
"context": "lding everything together.\n * @function\n * @author İsmail Demirbilek\n###\nangular.module 'esef.frontend', [\n 'esef.f",
"end": 235,
"score": 0.9998911619186401,
"start": 218,
"tag": "NAME",
"value": "İsmail Demirbilek"
}
] | src/app.coffee | egemsoft/esef-frontend | 0 | 'use strict'
###*
* @ngdoc overview
* @name esef.frontend
* @requires esef.frontend.pagination
* @requires esef.frontend.storage
* @description
* Main module holding everything together.
* @function
* @author İsmail Demirbilek
###
angular.module 'esef.frontend', [
'esef.frontend.storage'
'esef.frontend... | 209825 | 'use strict'
###*
* @ngdoc overview
* @name esef.frontend
* @requires esef.frontend.pagination
* @requires esef.frontend.storage
* @description
* Main module holding everything together.
* @function
* @author <NAME>
###
angular.module 'esef.frontend', [
'esef.frontend.storage'
'esef.frontend.pagination... | true | 'use strict'
###*
* @ngdoc overview
* @name esef.frontend
* @requires esef.frontend.pagination
* @requires esef.frontend.storage
* @description
* Main module holding everything together.
* @function
* @author PI:NAME:<NAME>END_PI
###
angular.module 'esef.frontend', [
'esef.frontend.storage'
'esef.front... |
[
{
"context": "\n\t\tif req.query.password and req.query.password is password\n\t\t\tnext()\n\t\telse\n\t\t\tres.send(401)\nmongoUrlCreds =",
"end": 974,
"score": 0.7013627886772156,
"start": 966,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "\t@endpoint.addMiddleware('post'... | test/post.coffee | DailyFeats/mongoose-rest-endpoints | 0 | express = require 'express'
bodyParser = require 'body-parser'
methodOverride = require 'method-override'
request = require 'supertest'
should = require 'should'
Q = require 'q'
mongoose = require 'mongoose'
require('../lib/log').verbose(true)
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
mom... | 105921 | express = require 'express'
bodyParser = require 'body-parser'
methodOverride = require 'method-override'
request = require 'supertest'
should = require 'should'
Q = require 'q'
mongoose = require 'mongoose'
require('../lib/log').verbose(true)
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
mom... | true | express = require 'express'
bodyParser = require 'body-parser'
methodOverride = require 'method-override'
request = require 'supertest'
should = require 'should'
Q = require 'q'
mongoose = require 'mongoose'
require('../lib/log').verbose(true)
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
mom... |
[
{
"context": "ire 'lodash'\nBintray = require '../'\n\nusername = 'username'\napikey = 'apikey'\norganization = 'organization'\n",
"end": 92,
"score": 0.999584436416626,
"start": 84,
"tag": "USERNAME",
"value": "username"
},
{
"context": " = require '../'\n\nusername = 'username'\nap... | test/repositoriesSpec.coffee | h2non/node-bintray | 4 | assert = require 'assert'
_ = require 'lodash'
Bintray = require '../'
username = 'username'
apikey = 'apikey'
organization = 'organization'
repository = 'repo'
apiBaseUrl = 'http://localhost:8882'
client = new Bintray { username: username, apikey: apikey, organization: organization, repository: repository, baseUrl:... | 97356 | assert = require 'assert'
_ = require 'lodash'
Bintray = require '../'
username = 'username'
apikey = '<KEY>'
organization = 'organization'
repository = 'repo'
apiBaseUrl = 'http://localhost:8882'
client = new Bintray { username: username, apikey: apikey, organization: organization, repository: repository, baseUrl: ... | true | assert = require 'assert'
_ = require 'lodash'
Bintray = require '../'
username = 'username'
apikey = 'PI:KEY:<KEY>END_PI'
organization = 'organization'
repository = 'repo'
apiBaseUrl = 'http://localhost:8882'
client = new Bintray { username: username, apikey: apikey, organization: organization, repository: reposito... |
[
{
"context": "###\n@Author: Kristinita\n@Date:\t 2018-03-20 10:35:20\n@Last Modified time: ",
"end": 23,
"score": 0.9997985363006592,
"start": 13,
"tag": "NAME",
"value": "Kristinita"
},
{
"context": "ed wrap each image in <div>:\n\t\thttps://github.com/kenwheeler/slick/issues/1473#i... | themes/sashapelican/static/coffee/Slick/slick.coffee | Kristinita/--- | 6 | ###
@Author: Kristinita
@Date: 2018-03-20 10:35:20
@Last Modified time: 2018-03-21 09:49:03
###
#########
# Slick #
#########
# JQuery carousel and/or slideshow:
# http://kenwheeler.github.io/slick/
# Options:
# http://kenwheeler.github.io/slick/#settings
$(document).ready ->
$('.KiraSlider').slick
###
[NOTE] If ... | 222053 | ###
@Author: <NAME>
@Date: 2018-03-20 10:35:20
@Last Modified time: 2018-03-21 09:49:03
###
#########
# Slick #
#########
# JQuery carousel and/or slideshow:
# http://kenwheeler.github.io/slick/
# Options:
# http://kenwheeler.github.io/slick/#settings
$(document).ready ->
$('.KiraSlider').slick
###
[NOTE] If “ond... | true | ###
@Author: PI:NAME:<NAME>END_PI
@Date: 2018-03-20 10:35:20
@Last Modified time: 2018-03-21 09:49:03
###
#########
# Slick #
#########
# JQuery carousel and/or slideshow:
# http://kenwheeler.github.io/slick/
# Options:
# http://kenwheeler.github.io/slick/#settings
$(document).ready ->
$('.KiraSlider').slick
###
... |
[
{
"context": "al.text().trim()\n key = '引用次数:'\n ind = t.indexOf(key)\n ",
"end": 5304,
"score": 0.6927211880683899,
"start": 5302,
"tag": "KEY",
"value": "次数"
},
{
"context": " else\n key = '参考来源 -'\n ... | js/engine.coffee | tjumyk/unisearch | 0 | angular.module('app').factory 'engine', ['$http', '$q', 'util', ($http, $q, util)->
clean_text = (text)->
return text.replace(/\s+/g, ' ').trim()
service =
providers:
youdaodict:
name: '有道词典'
url: 'https://dict.youdao.com'
httpsOnly: true
templateUrl: 'ui/youdaodict.ht... | 209447 | angular.module('app').factory 'engine', ['$http', '$q', 'util', ($http, $q, util)->
clean_text = (text)->
return text.replace(/\s+/g, ' ').trim()
service =
providers:
youdaodict:
name: '有道词典'
url: 'https://dict.youdao.com'
httpsOnly: true
templateUrl: 'ui/youdaodict.ht... | true | angular.module('app').factory 'engine', ['$http', '$q', 'util', ($http, $q, util)->
clean_text = (text)->
return text.replace(/\s+/g, ' ').trim()
service =
providers:
youdaodict:
name: '有道词典'
url: 'https://dict.youdao.com'
httpsOnly: true
templateUrl: 'ui/youdaodict.ht... |
[
{
"context": "d5.update env.secrets.url2png, 'ascii'\n token = md5.digest 'hex'\n \"http://alpha.url2png.com/v6/P50A14826D",
"end": 7387,
"score": 0.4519071578979492,
"start": 7377,
"tag": "KEY",
"value": "md5.digest"
},
{
"context": "id\n slug: @slug\n screenshot: @screensho... | models/team.coffee | nko3/website | 3 | _ = require 'underscore'
mongoose = require 'mongoose'
crypto = require 'crypto'
querystring = require 'querystring'
request = require 'request'
env = require '../config/env'
InviteSchema = require './invite'
[TeamLimit, Invite, Person, Deploy, Vote] = (mongoose.model m for m in ['TeamLimit', 'Invite', 'Person', 'Depl... | 149100 | _ = require 'underscore'
mongoose = require 'mongoose'
crypto = require 'crypto'
querystring = require 'querystring'
request = require 'request'
env = require '../config/env'
InviteSchema = require './invite'
[TeamLimit, Invite, Person, Deploy, Vote] = (mongoose.model m for m in ['TeamLimit', 'Invite', 'Person', 'Depl... | true | _ = require 'underscore'
mongoose = require 'mongoose'
crypto = require 'crypto'
querystring = require 'querystring'
request = require 'request'
env = require '../config/env'
InviteSchema = require './invite'
[TeamLimit, Invite, Person, Deploy, Vote] = (mongoose.model m for m in ['TeamLimit', 'Invite', 'Person', 'Depl... |
[
{
"context": "zer name', ->\n @fair.set organizer: { name: 'The Kitten Conglomerate' }, layout: 'small_fair'\n @fair.title().shou",
"end": 928,
"score": 0.9908574819564819,
"start": 905,
"tag": "NAME",
"value": "The Kitten Conglomerate"
}
] | src/mobile/test/models/fair.test.coffee | jo-rs/force | 0 | Backbone = require 'backbone'
Fair = require '../../models/fair'
{ fabricate } = require '@artsy/antigravity'
sinon = require 'sinon'
describe 'Fair', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@fair = new Fair fabricate 'fair'
afterEach ->
Backbone.sync.restore()
describe '#imageUrl', ->
i... | 194721 | Backbone = require 'backbone'
Fair = require '../../models/fair'
{ fabricate } = require '@artsy/antigravity'
sinon = require 'sinon'
describe 'Fair', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@fair = new Fair fabricate 'fair'
afterEach ->
Backbone.sync.restore()
describe '#imageUrl', ->
i... | true | Backbone = require 'backbone'
Fair = require '../../models/fair'
{ fabricate } = require '@artsy/antigravity'
sinon = require 'sinon'
describe 'Fair', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@fair = new Fair fabricate 'fair'
afterEach ->
Backbone.sync.restore()
describe '#imageUrl', ->
i... |
[
{
"context": " expiresIn: infoResult.expiresIn\n token: secretOrToken #Important\n roles: []\n\n internals.us",
"end": 2303,
"score": 0.653143048286438,
"start": 2295,
"tag": "PASSWORD",
"value": "secretOr"
}
] | src/index.coffee | codedoctor/hapi-auth-bearer-mw | 1 | _ = require 'underscore'
Hoek = require 'hoek'
boom = require 'boom'
internals = {}
module.exports.register = (server, options = {}, cb) ->
options = Hoek.applyToDefaults {clientId: null,_tenantId:null} , options
internals.clientId = options.clientId
internals._tenantId = options._tenantId
Hoek.assert(inte... | 23878 | _ = require 'underscore'
Hoek = require 'hoek'
boom = require 'boom'
internals = {}
module.exports.register = (server, options = {}, cb) ->
options = Hoek.applyToDefaults {clientId: null,_tenantId:null} , options
internals.clientId = options.clientId
internals._tenantId = options._tenantId
Hoek.assert(inte... | true | _ = require 'underscore'
Hoek = require 'hoek'
boom = require 'boom'
internals = {}
module.exports.register = (server, options = {}, cb) ->
options = Hoek.applyToDefaults {clientId: null,_tenantId:null} , options
internals.clientId = options.clientId
internals._tenantId = options._tenantId
Hoek.assert(inte... |
[
{
"context": " delete registry.password\n\n registry.username = u.u\n registry.password = u.p\n npm.spinner.start()",
"end": 2397,
"score": 0.996529757976532,
"start": 2394,
"tag": "USERNAME",
"value": "u.u"
},
{
"context": " registry.username = u.u\n registry.password = ... | deps/npm/lib/adduser.coffee | lxe/io.coffee | 0 | adduser = (args, cb) ->
loop = (er) ->
return cb(er) if er
fn = fns.shift()
return fn(c, u, loop_) if fn
cb()
return
npm.spinner.stop()
return cb(new Error("You must compile node with ssl support to use the adduser feature")) unless crypto
creds = npm.config.getCredentialsByURI(npm.config... | 11137 | adduser = (args, cb) ->
loop = (er) ->
return cb(er) if er
fn = fns.shift()
return fn(c, u, loop_) if fn
cb()
return
npm.spinner.stop()
return cb(new Error("You must compile node with ssl support to use the adduser feature")) unless crypto
creds = npm.config.getCredentialsByURI(npm.config... | true | adduser = (args, cb) ->
loop = (er) ->
return cb(er) if er
fn = fns.shift()
return fn(c, u, loop_) if fn
cb()
return
npm.spinner.stop()
return cb(new Error("You must compile node with ssl support to use the adduser feature")) unless crypto
creds = npm.config.getCredentialsByURI(npm.config... |
[
{
"context": "mmunicate with neovim process\n# Copyright (c) 2015 Lu Wang <coolwanglu@gmail.com>\n\nchild_process = require '",
"end": 76,
"score": 0.9952261447906494,
"start": 69,
"tag": "NAME",
"value": "Lu Wang"
},
{
"context": "with neovim process\n# Copyright (c) 2015 Lu Wang <c... | src/nvim/nvim.coffee | coolwanglu/neovim-e | 252 | # nvim.coffee
# communicate with neovim process
# Copyright (c) 2015 Lu Wang <coolwanglu@gmail.com>
child_process = require 'child_process'
Session = require 'msgpack5rpc'
remote = require 'remote'
UI = require './ui'
config = require './config'
class NVim
constructor: ->
@ui = new UI(config.row, config.col)
... | 145718 | # nvim.coffee
# communicate with neovim process
# Copyright (c) 2015 <NAME> <<EMAIL>>
child_process = require 'child_process'
Session = require 'msgpack5rpc'
remote = require 'remote'
UI = require './ui'
config = require './config'
class NVim
constructor: ->
@ui = new UI(config.row, config.col)
# Atom Shel... | true | # nvim.coffee
# communicate with neovim process
# Copyright (c) 2015 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
child_process = require 'child_process'
Session = require 'msgpack5rpc'
remote = require 'remote'
UI = require './ui'
config = require './config'
class NVim
constructor: ->
@ui = new UI(config.row,... |
[
{
"context": "e all required attributes for that role.\n# @author Ethan Cohen\n###\n\n# ------------------------------------------",
"end": 156,
"score": 0.9998766779899597,
"start": 145,
"tag": "NAME",
"value": "Ethan Cohen"
}
] | src/tests/rules/role-has-required-aria-props.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview Enforce that elements with ARIA roles must
# have all required attributes for that role.
# @author Ethan Cohen
###
# -----------------------------------------------------------------------------
# Requirements
# -------------------------------------------------------------... | 74164 | ### eslint-env jest ###
###*
# @fileoverview Enforce that elements with ARIA roles must
# have all required attributes for that role.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------... | true | ### eslint-env jest ###
###*
# @fileoverview Enforce that elements with ARIA roles must
# have all required attributes for that role.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# ----------------------------------------------------... |
[
{
"context": "###\nCopyright (C) 2012, Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure\n\n(",
"end": 36,
"score": 0.9998404383659363,
"start": 24,
"tag": "NAME",
"value": "Bill Burdick"
},
{
"context": ", Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure\n\n(lic... | src/ast.coffee | zot/Leisure | 58 | ###
Copyright (C) 2012, Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure
(licensed with ZLIB license)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyo... | 33468 | ###
Copyright (C) 2012, <NAME>, Tiny Concepts: https://github.com/zot/Leisure
(licensed with ZLIB license)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to ... | true | ###
Copyright (C) 2012, PI:NAME:<NAME>END_PI, Tiny Concepts: https://github.com/zot/Leisure
(licensed with ZLIB license)
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted... |
[
{
"context": "ingSlash: true)\n\n NORMALIZED_SECTION_URLS_KEY = 'up-normalized-urls'\n\n sectionUrls = ($section) ->\n # Check if we",
"end": 2288,
"score": 0.9224101901054382,
"start": 2270,
"tag": "KEY",
"value": "up-normalized-urls"
}
] | lib/assets/javascripts/unpoly/feedback.coffee | ktec/unpoly | 0 | ###**
Navigation feedback
===================
Unpoly automatically adds the class [`.up-active`](/a.up-active) to links or forms while they are loading.
By marking navigation elements as [`[up-nav]`](/up-nav), contained links that point to the current location
automatically get the [`.up-current`](/up-nav-a.up-curren... | 161236 | ###**
Navigation feedback
===================
Unpoly automatically adds the class [`.up-active`](/a.up-active) to links or forms while they are loading.
By marking navigation elements as [`[up-nav]`](/up-nav), contained links that point to the current location
automatically get the [`.up-current`](/up-nav-a.up-curren... | true | ###**
Navigation feedback
===================
Unpoly automatically adds the class [`.up-active`](/a.up-active) to links or forms while they are loading.
By marking navigation elements as [`[up-nav]`](/up-nav), contained links that point to the current location
automatically get the [`.up-current`](/up-nav-a.up-curren... |
[
{
"context": "l-post'\n title: \"Post Title | Post Author | Artsy\"\n snippet: 'cool post snippet'\n pag",
"end": 3749,
"score": 0.9991828799247742,
"start": 3744,
"tag": "NAME",
"value": "Artsy"
}
] | test/models/google_search_result.coffee | kanaabe/microgravity | 1 | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
GoogleSearchResult = require '../../models/google_search_result.coffee'
describe 'GoogleSearchResult', ->
describe '#initialize', ->
it 'handles post', ->
result = new GoogleSearchResult({
... | 3294 | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
GoogleSearchResult = require '../../models/google_search_result.coffee'
describe 'GoogleSearchResult', ->
describe '#initialize', ->
it 'handles post', ->
result = new GoogleSearchResult({
... | true | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
GoogleSearchResult = require '../../models/google_search_result.coffee'
describe 'GoogleSearchResult', ->
describe '#initialize', ->
it 'handles post', ->
result = new GoogleSearchResult({
... |
[
{
"context": "/images/sponsors/altasoftware.svg\")\n sponsor(\"Vere Loft\", \"http://vereloft.ge\", \"/images/sponsors/vere.sv",
"end": 1004,
"score": 0.7447330355644226,
"start": 996,
"tag": "NAME",
"value": "ere Loft"
},
{
"context": "com \", \"/images/sponsors/aghacks.svg\")\n ... | src/locals.coffee | uniHackge/2015f.hacktbilisi.com | 1 | args2Obj = ->
keys = Array::slice.apply(arguments)
->
values = Array::slice.apply(arguments)
keys.reduce ((result, key, index) ->
result[key] = values[index]
result
), {}
group = args2Obj("name", "items")
sponsor = partner = args2Obj("name", "href", "image")
language = args2Obj("url", "titl... | 104266 | args2Obj = ->
keys = Array::slice.apply(arguments)
->
values = Array::slice.apply(arguments)
keys.reduce ((result, key, index) ->
result[key] = values[index]
result
), {}
group = args2Obj("name", "items")
sponsor = partner = args2Obj("name", "href", "image")
language = args2Obj("url", "titl... | true | args2Obj = ->
keys = Array::slice.apply(arguments)
->
values = Array::slice.apply(arguments)
keys.reduce ((result, key, index) ->
result[key] = values[index]
result
), {}
group = args2Obj("name", "items")
sponsor = partner = args2Obj("name", "href", "image")
language = args2Obj("url", "titl... |
[
{
"context": "#\n# Frontend - https://github.com/marcatos/Frontend\n# Version: 0.1\n# Simone Marcato (https:/",
"end": 42,
"score": 0.9987514019012451,
"start": 34,
"tag": "USERNAME",
"value": "marcatos"
},
{
"context": "ps://github.com/marcatos/Frontend\n# Version: 0.1\n# Simone Mar... | Frontend.coffee | marcatos/Frontend | 0 | #
# Frontend - https://github.com/marcatos/Frontend
# Version: 0.1
# Simone Marcato (https://twitter.com/simotenax)
#
# this is framework created to icrease productivity and code readability as main purposes
# it's basically a simple tool where objects are registered and executed depending on their properties
# to main... | 209056 | #
# Frontend - https://github.com/marcatos/Frontend
# Version: 0.1
# <NAME> (https://twitter.com/simotenax)
#
# this is framework created to icrease productivity and code readability as main purposes
# it's basically a simple tool where objects are registered and executed depending on their properties
# to maintain the... | true | #
# Frontend - https://github.com/marcatos/Frontend
# Version: 0.1
# PI:NAME:<NAME>END_PI (https://twitter.com/simotenax)
#
# this is framework created to icrease productivity and code readability as main purposes
# it's basically a simple tool where objects are registered and executed depending on their properties
# t... |
[
{
"context": "ribe 'UserMembershipHandler', ->\n\tbeforeEach ->\n\t\t@user = _id: ObjectId()\n\t\t@newUser = _id: ObjectId(), e",
"end": 606,
"score": 0.8733187913894653,
"start": 601,
"tag": "USERNAME",
"value": "@user"
},
{
"context": "', ->\n\tbeforeEach ->\n\t\t@user = _id: Objec... | test/unit/coffee/UserMembership/UserMembershipHandlerTests.coffee | shyoshyo/web-sharelatex | 1 | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
ObjectId = require("../../../../app/js/infrastructure/mongojs").ObjectId
modulePath = "../../../../app/js/Features/UserMembership/Use... | 76306 | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
ObjectId = require("../../../../app/js/infrastructure/mongojs").ObjectId
modulePath = "../../../../app/js/Features/UserMembership/Use... | true | chai = require('chai')
should = chai.should()
expect = require('chai').expect
sinon = require('sinon')
assertCalledWith = sinon.assert.calledWith
assertNotCalled = sinon.assert.notCalled
ObjectId = require("../../../../app/js/infrastructure/mongojs").ObjectId
modulePath = "../../../../app/js/Features/UserMembership/Use... |
[
{
"context": "laru.slacy.me'\n port: 5001\n token:\n secret: 'IhoiUHyu6gt5HJHhjhhGfddsESEWsfgHJjhhjFDdsseseRDSTDfgghhjHJljklkjuiuyyUYUtytrRERerererERerererRTGHghj'\n",
"end": 287,
"score": 0.9997678399085999,
"start": 187,
"tag": "KEY",
"value": "IhoiUHyu6gt5HJHhjhhGfddsESEWsfgHJjhhjFDd... | server/config/production.coffee | stevelacy/claru | 0 | {join} = require 'path'
module.exports =
database: 'mongodb://localhost:27017/claru'
name: 'Claru'
title: 'Claru'
url: 'http://claru.slacy.me'
port: 5001
token:
secret: 'IhoiUHyu6gt5HJHhjhhGfddsESEWsfgHJjhhjFDdsseseRDSTDfgghhjHJljklkjuiuyyUYUtytrRERerererERerererRTGHghj'
| 19869 | {join} = require 'path'
module.exports =
database: 'mongodb://localhost:27017/claru'
name: 'Claru'
title: 'Claru'
url: 'http://claru.slacy.me'
port: 5001
token:
secret: '<KEY>'
| true | {join} = require 'path'
module.exports =
database: 'mongodb://localhost:27017/claru'
name: 'Claru'
title: 'Claru'
url: 'http://claru.slacy.me'
port: 5001
token:
secret: 'PI:KEY:<KEY>END_PI'
|
[
{
"context": "model.children.push\n open: true\n name: 'new stuff'\n children: []\n\nmodule.exports = [\n '$compi",
"end": 184,
"score": 0.6567789316177368,
"start": 175,
"tag": "NAME",
"value": "new stuff"
}
] | src/views/node-view.coffee | b-html/b-html-angular-tree-example | 1 | class Controller
@$inject: []
constructor: ->
toggleChildren: ->
@model.open = !@model.open
addChild: ->
@model.children.push
open: true
name: 'new stuff'
children: []
module.exports = [
'$compile'
'$templateCache'
(
$compile
$templateCache
) ->
bindToController... | 172451 | class Controller
@$inject: []
constructor: ->
toggleChildren: ->
@model.open = !@model.open
addChild: ->
@model.children.push
open: true
name: '<NAME>'
children: []
module.exports = [
'$compile'
'$templateCache'
(
$compile
$templateCache
) ->
bindToController: t... | true | class Controller
@$inject: []
constructor: ->
toggleChildren: ->
@model.open = !@model.open
addChild: ->
@model.children.push
open: true
name: 'PI:NAME:<NAME>END_PI'
children: []
module.exports = [
'$compile'
'$templateCache'
(
$compile
$templateCache
) ->
bindT... |
[
{
"context": "]\n\nmetricVariables.push\n id: uniqueId()\n name: 'gini'\n caption: 'Gini'\n type: 'float'\n read: (metri",
"end": 3337,
"score": 0.978190541267395,
"start": 3333,
"tag": "USERNAME",
"value": "gini"
},
{
"context": ".push\n id: uniqueId()\n name: 'gini'\n capti... | client/src/scripts/scoring-sheet-view.coffee | gigliovale/h2o | 882 | unless exports?
format4f = d3.format '.4f'
formatInteger = d3.format 'd'
else
format4f = null
formatInteger = null
computeTPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
tp / (tp + fn)
computeFPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
fp / (fp + tn)
isNumericVariable = (variable) -> variable.type is 'float' or... | 186483 | unless exports?
format4f = d3.format '.4f'
formatInteger = d3.format 'd'
else
format4f = null
formatInteger = null
computeTPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
tp / (tp + fn)
computeFPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
fp / (fp + tn)
isNumericVariable = (variable) -> variable.type is 'float' or... | true | unless exports?
format4f = d3.format '.4f'
formatInteger = d3.format 'd'
else
format4f = null
formatInteger = null
computeTPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
tp / (tp + fn)
computeFPR = (cm) ->
[[tn, fp], [fn, tp]] = cm
fp / (fp + tn)
isNumericVariable = (variable) -> variable.type is 'float' or... |
[
{
"context": "###\nCC Core JS Helper\n\nCopyright (c) 2015 Scott Yang\n\nDependencies:\njQuery (Ver 1.11+)\n###\n((global) -",
"end": 52,
"score": 0.9994456768035889,
"start": 42,
"tag": "NAME",
"value": "Scott Yang"
}
] | public/core/js/cc.core.coffee | yisyang/loves_money | 1 | ###
CC Core JS Helper
Copyright (c) 2015 Scott Yang
Dependencies:
jQuery (Ver 1.11+)
###
((global) ->
"use strict"
global.CarCrashSingletonClass = (options) ->
# Check for singleton
me = undefined
if CarCrashSingletonClass::_singletonInstance
me = CarCrashSingletonClass::_singletonInstance
else
me = ... | 224694 | ###
CC Core JS Helper
Copyright (c) 2015 <NAME>
Dependencies:
jQuery (Ver 1.11+)
###
((global) ->
"use strict"
global.CarCrashSingletonClass = (options) ->
# Check for singleton
me = undefined
if CarCrashSingletonClass::_singletonInstance
me = CarCrashSingletonClass::_singletonInstance
else
me = CarC... | true | ###
CC Core JS Helper
Copyright (c) 2015 PI:NAME:<NAME>END_PI
Dependencies:
jQuery (Ver 1.11+)
###
((global) ->
"use strict"
global.CarCrashSingletonClass = (options) ->
# Check for singleton
me = undefined
if CarCrashSingletonClass::_singletonInstance
me = CarCrashSingletonClass::_singletonInstance
els... |
[
{
"context": "eMetrics\n\n# Main\ncli_arg_mongodb_url = \"mongodb://38.100.20.211:27017/metrics\"\nretrieveMetrics cli_arg_mongodb_ur",
"end": 6720,
"score": 0.9995587468147278,
"start": 6707,
"tag": "IP_ADDRESS",
"value": "38.100.20.211"
}
] | github-metrics/src/retrieveMetrics.coffee | esenator/muse | 0 | ##
## Copyright (c) 2014-2017 Leidos.
##
## License: 3-clause BSD, see https://opensource.org/licenses/BSD-3-Clause
##
##
## Developed under contract #FA8750-14-C-0241
##
# Requires
mongo = require 'mongodb'
mongodbClient = mongo.MongoClient
# Open connection to Database
retrieveMetrics = (mongoURL, dbCollection, cal... | 47315 | ##
## Copyright (c) 2014-2017 Leidos.
##
## License: 3-clause BSD, see https://opensource.org/licenses/BSD-3-Clause
##
##
## Developed under contract #FA8750-14-C-0241
##
# Requires
mongo = require 'mongodb'
mongodbClient = mongo.MongoClient
# Open connection to Database
retrieveMetrics = (mongoURL, dbCollection, cal... | true | ##
## Copyright (c) 2014-2017 Leidos.
##
## License: 3-clause BSD, see https://opensource.org/licenses/BSD-3-Clause
##
##
## Developed under contract #FA8750-14-C-0241
##
# Requires
mongo = require 'mongodb'
mongodbClient = mongo.MongoClient
# Open connection to Database
retrieveMetrics = (mongoURL, dbCollection, cal... |
[
{
"context": ".column]\n\n appendCell: (row, column) ->\n key = row + '-' + column\n @cells[key] ? @cells[key] = @requestCell(@get",
"end": 49073,
"score": 0.989832878112793,
"start": 49055,
"tag": "KEY",
"value": "row + '-' + column"
},
{
"context": "w\n }\n\n disposeCell... | lib/table-element.coffee | cnHeider/atom-tablr | 0 | Delegator = require 'delegato'
{Point, CompositeDisposable, Disposable} = require 'atom'
{EventsDelegation, SpacePenDSL, registerOrUpdateElement} = require 'atom-utils'
PropertyAccessors = require 'property-accessors'
columnName = require './column-name'
Table = require './table'
TableEditor = require './table-editor'... | 130960 | Delegator = require 'delegato'
{Point, CompositeDisposable, Disposable} = require 'atom'
{EventsDelegation, SpacePenDSL, registerOrUpdateElement} = require 'atom-utils'
PropertyAccessors = require 'property-accessors'
columnName = require './column-name'
Table = require './table'
TableEditor = require './table-editor'... | true | Delegator = require 'delegato'
{Point, CompositeDisposable, Disposable} = require 'atom'
{EventsDelegation, SpacePenDSL, registerOrUpdateElement} = require 'atom-utils'
PropertyAccessors = require 'property-accessors'
columnName = require './column-name'
Table = require './table'
TableEditor = require './table-editor'... |
[
{
"context": "###\n * @author \t\tAbdelhakim RAFIK\n * @version \tv1.0.1\n * @license \tMIT License\n * @",
"end": 33,
"score": 0.9998916983604431,
"start": 17,
"tag": "NAME",
"value": "Abdelhakim RAFIK"
},
{
"context": "nse \tMIT License\n * @copyright \tCopyright (c) 2021 Abdelhaki... | src/database/seeders/manufactures/article-tags.coffee | AbdelhakimRafik/Project | 1 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date June 2021
###
faker = require 'faker'
###
Create article tags demo data
###
module.exports = (articles, articleStartId, tags, tagStartId, min, max) ->
# generate tags ids
t... | 87572 | ###
* @author <NAME>
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 <NAME>
* @date June 2021
###
faker = require 'faker'
###
Create article tags demo data
###
module.exports = (articles, articleStartId, tags, tagStartId, min, max) ->
# generate tags ids
tagsIds = Array.from ... | true | ###
* @author PI:NAME:<NAME>END_PI
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 PI:NAME:<NAME>END_PI
* @date June 2021
###
faker = require 'faker'
###
Create article tags demo data
###
module.exports = (articles, articleStartId, tags, tagStartId, min, max) ->
# generate tag... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9990817904472351,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": " socket.send buf, 0, buf.length, common.PORT, \"127.0.0.1\"\n i++\n console.log \"worke... | test/simple/test-cluster-dgram-2.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 91876 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": "@app.controller 'HomeController', [ '$scope', '$http',",
"end": 4,
"score": 0.6417744755744934,
"start": 1,
"tag": "EMAIL",
"value": "app"
},
{
"context": "[email]': $scope.email\n 'user[password]': $scope.password\n 'code': $scope.code\n .success (res)... | app/assets/javascripts/angularjs/home.js.coffee | kasuya89/newapp | 0 | @app.controller 'HomeController', [ '$scope', '$http', '$window', 'ipCookie', ($scope, $http, $window, ipCookie)->
$scope.submit = ()->
$http
url: '/users'
method: 'POST'
params:
'user[name]': $scope.name
'user[email]': $scope.email
'user[password]': $scope.password
... | 31930 | @<EMAIL>.controller 'HomeController', [ '$scope', '$http', '$window', 'ipCookie', ($scope, $http, $window, ipCookie)->
$scope.submit = ()->
$http
url: '/users'
method: 'POST'
params:
'user[name]': $scope.name
'user[email]': $scope.email
'user[password]': $<PASSWORD>
... | true | @PI:EMAIL:<EMAIL>END_PI.controller 'HomeController', [ '$scope', '$http', '$window', 'ipCookie', ($scope, $http, $window, ipCookie)->
$scope.submit = ()->
$http
url: '/users'
method: 'POST'
params:
'user[name]': $scope.name
'user[email]': $scope.email
'user[password]':... |
[
{
"context": "#!/usr/bin/coffee\n\n###\n#@author rankun203@gmail.com\n#coffee arguments training.\n#add all arguments to",
"end": 51,
"score": 0.9999110698699951,
"start": 32,
"tag": "EMAIL",
"value": "rankun203@gmail.com"
}
] | node2/node2argv.coffee | rankun203/ModernWebStudy | 0 | #!/usr/bin/coffee
###
#@author rankun203@gmail.com
#coffee arguments training.
#add all arguments together.
###
sum = 0
for num, i in process.argv
#with a prefix '+' before the property can turn it to a Number.
sum += +num if i > 1
console.log sum
| 146997 | #!/usr/bin/coffee
###
#@author <EMAIL>
#coffee arguments training.
#add all arguments together.
###
sum = 0
for num, i in process.argv
#with a prefix '+' before the property can turn it to a Number.
sum += +num if i > 1
console.log sum
| true | #!/usr/bin/coffee
###
#@author PI:EMAIL:<EMAIL>END_PI
#coffee arguments training.
#add all arguments together.
###
sum = 0
for num, i in process.argv
#with a prefix '+' before the property can turn it to a Number.
sum += +num if i > 1
console.log sum
|
[
{
"context": "erms of the MIT license.\nCopyright 2012 - 2016 (c) Markus Kohlhase <mail@markus-kohlhase.de>\n###\n\nltx = require \"lt",
"end": 109,
"score": 0.9998965859413147,
"start": 94,
"tag": "NAME",
"value": "Markus Kohlhase"
},
{
"context": "cense.\nCopyright 2012 - 2016 (c)... | src/Client.coffee | flosse/node-xmpp-joap | 0 | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) Markus Kohlhase <mail@markus-kohlhase.de>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
uuid = require 'node-uuid'
JID = require('node-xmpp-core').JID
createIq = (type, to, customAttrs) ->
iqType = if (type i... | 177793 | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) <NAME> <<EMAIL>>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
uuid = require 'node-uuid'
JID = require('node-xmpp-core').JID
createIq = (type, to, customAttrs) ->
iqType = if (type in ["read", "search", "des... | true | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
uuid = require 'node-uuid'
JID = require('node-xmpp-core').JID
createIq = (type, to, customAttrs) ->
iqType = if (ty... |
[
{
"context": " payload: JSON.stringify({\n username: 'test1'\n password: 'test'\n })\n }).then (r",
"end": 1381,
"score": 0.9996317625045776,
"start": 1376,
"tag": "USERNAME",
"value": "test1"
},
{
"context": "fy({\n username: 'test1'\n passwor... | test/integration/user.coffee | ethanmick/fastchat-server | 7 | 'use strict'
#
# FastChat
# 2015
#
fs = require 'fs'
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
FormData = require 'form-data'
streamToPromise = require 'stream-to-promise'
Q = require 'q'
token = null
createdUser = n... | 22025 | 'use strict'
#
# FastChat
# 2015
#
fs = require 'fs'
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
FormData = require 'form-data'
streamToPromise = require 'stream-to-promise'
Q = require 'q'
token = null
createdUser = n... | true | 'use strict'
#
# FastChat
# 2015
#
fs = require 'fs'
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
FormData = require 'form-data'
streamToPromise = require 'stream-to-promise'
Q = require 'q'
token = null
createdUser = n... |
[
{
"context": "/icons/mailgun@2x.png'\n\n @_fields.push\n key: 'webhookUrl'\n type: 'text'\n readOnly: true\n descr",
"end": 1442,
"score": 0.7950083017349243,
"start": 1435,
"tag": "KEY",
"value": "webhook"
}
] | src/services/mailgun.coffee | jianliaoim/talk-services | 40 | _ = require 'lodash'
util = require '../util'
_receiveWebhook = ({body}) ->
payload = body or {}
switch payload.event
when 'delivered'
text = '''
Delivered messages
'''
when 'dropped'
text = """
Dropped messages
reason: #{payload.reason}
"""
when 'bounced'
... | 42897 | _ = require 'lodash'
util = require '../util'
_receiveWebhook = ({body}) ->
payload = body or {}
switch payload.event
when 'delivered'
text = '''
Delivered messages
'''
when 'dropped'
text = """
Dropped messages
reason: #{payload.reason}
"""
when 'bounced'
... | true | _ = require 'lodash'
util = require '../util'
_receiveWebhook = ({body}) ->
payload = body or {}
switch payload.event
when 'delivered'
text = '''
Delivered messages
'''
when 'dropped'
text = """
Dropped messages
reason: #{payload.reason}
"""
when 'bounced'
... |
[
{
"context": "eturn\n\n # Special case\n else if key is \"Electron configuration\"\n object[key] = value.split(\"\\n\")[0]\n ",
"end": 446,
"score": 0.5702618360519409,
"start": 424,
"tag": "KEY",
"value": "Electron configuration"
}
] | app/lib/parser.coffee | stephenhutchings/ptoe | 0 | parser =
parseElementData: (div, title) ->
object = {}
# Remove child tables
$("table", div).eq("0").find("table").remove()
# For each row
$("table", div).eq("0").find("tr").each (i, el) ->
$el = $(el)
key = $el.find("th").text()
value = $el.find("td").text()
# Not appli... | 16507 | parser =
parseElementData: (div, title) ->
object = {}
# Remove child tables
$("table", div).eq("0").find("table").remove()
# For each row
$("table", div).eq("0").find("tr").each (i, el) ->
$el = $(el)
key = $el.find("th").text()
value = $el.find("td").text()
# Not appli... | true | parser =
parseElementData: (div, title) ->
object = {}
# Remove child tables
$("table", div).eq("0").find("table").remove()
# For each row
$("table", div).eq("0").find("tr").each (i, el) ->
$el = $(el)
key = $el.find("th").text()
value = $el.find("td").text()
# Not appli... |
[
{
"context": "# * Copyright (C) 2013 [Jeff Mesnil](http://jmesnil.net/)\n#\n# The library can be used",
"end": 35,
"score": 0.9998538494110107,
"start": 24,
"tag": "NAME",
"value": "Jeff Mesnil"
},
{
"context": "oc/ | Apache License V2.0\n\n Copyright (C) 2013 [Jeff Mesnil](http://... | src/stomp-node.coffee | WoodWing/ww-stomp-websocket | 0 | # * Copyright (C) 2013 [Jeff Mesnil](http://jmesnil.net/)
#
# The library can be used in node.js app to connect to STOMP brokers over TCP
# or Web sockets.
###
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
Copyright (C) 2013 [Jeff Mesnil](http://jmesnil.net/)
###
Stomp ... | 50002 | # * Copyright (C) 2013 [<NAME>](http://jmesnil.net/)
#
# The library can be used in node.js app to connect to STOMP brokers over TCP
# or Web sockets.
###
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
Copyright (C) 2013 [<NAME>](http://jmesnil.net/)
###
Stomp = require(... | true | # * Copyright (C) 2013 [PI:NAME:<NAME>END_PI](http://jmesnil.net/)
#
# The library can be used in node.js app to connect to STOMP brokers over TCP
# or Web sockets.
###
Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
Copyright (C) 2013 [PI:NAME:<NAME>END_PI](http://jmesnil... |
[
{
"context": "atom.config.get('jenkins.username'),\n password: atom.config.get('jenkins.password')\n }\n options = if atom.confi",
"end": 243,
"score": 0.9627008438110352,
"start": 228,
"tag": "PASSWORD",
"value": "atom.config.get"
},
{
"context": "enkins.username'),\n passwo... | lib/jenkins-gateway.coffee | magalhas/atom-jenkins | 3 | 'use strict'
rest = require 'restler'
xml2js = require 'xml2js'
_checkConfig = () ->
atom.config.get('jenkins.url')
_get = (url, cb) ->
httpAuthOptions = {
username: atom.config.get('jenkins.username'),
password: atom.config.get('jenkins.password')
}
options = if atom.config.get('jenkins.username') t... | 19349 | 'use strict'
rest = require 'restler'
xml2js = require 'xml2js'
_checkConfig = () ->
atom.config.get('jenkins.url')
_get = (url, cb) ->
httpAuthOptions = {
username: atom.config.get('jenkins.username'),
password: <PASSWORD>('<PASSWORD>.<PASSWORD>')
}
options = if atom.config.get('jenkins.username') t... | true | 'use strict'
rest = require 'restler'
xml2js = require 'xml2js'
_checkConfig = () ->
atom.config.get('jenkins.url')
_get = (url, cb) ->
httpAuthOptions = {
username: atom.config.get('jenkins.username'),
password: PI:PASSWORD:<PASSWORD>END_PI('PI:PASSWORD:<PASSWORD>END_PI.PI:PASSWORD:<PASSWORD>END_PI')
... |
[
{
"context": "e status - Lists open alerts\n# hubot genie me as email@example.com - Store custom email address to interact with Ops",
"end": 273,
"score": 0.999915599822998,
"start": 256,
"tag": "EMAIL",
"value": "email@example.com"
},
{
"context": "close id - Close a specific aler... | scripts/opsgenie.coffee | tracelytics/moustached-hubot | 1 | # Description:
# Interaction with the OpsGenie API to list and acknowledge alerts, and to manipulate the on-call schedule.
#
# Configuration:
# HUBOT_OPSGENIE_CUSTOMER_KEY
#
# Commands:
# hubot genie status - Lists open alerts
# hubot genie me as email@example.com - Store custom email address to interact with ... | 134108 | # Description:
# Interaction with the OpsGenie API to list and acknowledge alerts, and to manipulate the on-call schedule.
#
# Configuration:
# HUBOT_OPSGENIE_CUSTOMER_KEY
#
# Commands:
# hubot genie status - Lists open alerts
# hubot genie me as <EMAIL> - Store custom email address to interact with OpsGenie. ... | true | # Description:
# Interaction with the OpsGenie API to list and acknowledge alerts, and to manipulate the on-call schedule.
#
# Configuration:
# HUBOT_OPSGENIE_CUSTOMER_KEY
#
# Commands:
# hubot genie status - Lists open alerts
# hubot genie me as PI:EMAIL:<EMAIL>END_PI - Store custom email address to interact ... |
[
{
"context": "##\n knockback.js 1.2.3\n Copyright (c) 2011-2016 Kevin Malakoff.\n License: MIT (http://www.opensource.org/licens",
"end": 66,
"score": 0.9998146891593933,
"start": 52,
"tag": "NAME",
"value": "Kevin Malakoff"
},
{
"context": "ses/mit-license.php)\n Source: https:... | src/defaults/default-observable.coffee | kmalakoff/knockback | 160 | ###
knockback.js 1.2.3
Copyright (c) 2011-2016 Kevin Malakoff.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneO... | 118294 | ###
knockback.js 1.2.3
Copyright (c) 2011-2016 <NAME>.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneORM.
###
... | true | ###
knockback.js 1.2.3
Copyright (c) 2011-2016 PI:NAME:<NAME>END_PI.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and Bac... |
[
{
"context": "r()\n\n AgentModel.create(\n email: \"#{uuid.v4()}@robot.joukou.com\"\n website: \"robot.joukou.com\"\n name: robona",
"end": 805,
"score": 0.9691107869148254,
"start": 788,
"tag": "EMAIL",
"value": "@robot.joukou.com"
}
] | src/authn/creators/robot.coffee | joukou/joukou-api | 0 | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 183070 | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | true | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... |
[
{
"context": " client = client_id: 'uuid', client_secret: 'h4sh'\n verifier = () ->\n strategy = new OAut",
"end": 985,
"score": 0.9936931729316711,
"start": 981,
"tag": "KEY",
"value": "h4sh"
},
{
"context": ")\n .reply(200, { access_token: 'h3x' })\... | test/unit/strategies/oauth2/authorizationCodeGrant.coffee | Romakita/connect | 0 | # Test dependencies
_ = require 'lodash'
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuth2Strategy = require '../../../../protocols/OAuth2'
prov... | 165452 | # Test dependencies
_ = require 'lodash'
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuth2Strategy = require '../../../../protocols/OAuth2'
prov... | true | # Test dependencies
_ = require 'lodash'
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuth2Strategy = require '../../../../protocols/OAuth2'
prov... |
[
{
"context": "om the server\n json = {type:'some_model', key:'abcdef', value: {x:1, y:2, z:3} }\n\n # deserialize - J",
"end": 863,
"score": 0.9735528826713562,
"start": 857,
"tag": "KEY",
"value": "abcdef"
},
{
"context": "eserialized')\n equal(some_model_instance.key, 'abc... | ex_json_serialize_js/test.coffee | kmalakoff/examples-kmalakoff | 0 | root = @
$(document).ready( ->
module("JSON-Serialize.js")
test("TEST DEPENDENCY MISSING", ->
_.VERSION; _.AWESOMENESS
)
test("CouchDB an JSONS.deserialize", ->
# set up for CouchDB 'type' convention
JSONS.TYPE_FIELD = 'type'
# make a Constructors namespace known to Underscore
root.Constru... | 69077 | root = @
$(document).ready( ->
module("JSON-Serialize.js")
test("TEST DEPENDENCY MISSING", ->
_.VERSION; _.AWESOMENESS
)
test("CouchDB an JSONS.deserialize", ->
# set up for CouchDB 'type' convention
JSONS.TYPE_FIELD = 'type'
# make a Constructors namespace known to Underscore
root.Constru... | true | root = @
$(document).ready( ->
module("JSON-Serialize.js")
test("TEST DEPENDENCY MISSING", ->
_.VERSION; _.AWESOMENESS
)
test("CouchDB an JSONS.deserialize", ->
# set up for CouchDB 'type' convention
JSONS.TYPE_FIELD = 'type'
# make a Constructors namespace known to Underscore
root.Constru... |
[
{
"context": "s = \n account: @account.val()\n password: @password.val()\n re_password: @re_password.val()\n typ",
"end": 483,
"score": 0.925544023513794,
"start": 470,
"tag": "PASSWORD",
"value": "@password.val"
},
{
"context": " password: @password.val()\n ... | assets/js/account/new.js.coffee | leiyuwei/DNF_GM_Tool | 1 | #= require ../common/index
class New extends Common
constructor: () ->
super()
@form = layui.form
$('.js-register-btn').on 'click', => @clickRegister()
init: () ->
super()
@form.render()
@account = $('input[name="account"]')
@password = $('input[name="password"]')
@re_password = ... | 14692 | #= require ../common/index
class New extends Common
constructor: () ->
super()
@form = layui.form
$('.js-register-btn').on 'click', => @clickRegister()
init: () ->
super()
@form.render()
@account = $('input[name="account"]')
@password = $('input[name="password"]')
@re_password = ... | true | #= require ../common/index
class New extends Common
constructor: () ->
super()
@form = layui.form
$('.js-register-btn').on 'click', => @clickRegister()
init: () ->
super()
@form.render()
@account = $('input[name="account"]')
@password = $('input[name="password"]')
@re_password = ... |
[
{
"context": "Locations = [\n new winReg hive: winReg.HKLM, key: '\\\\SOFTWARE\\\\Mikero\\\\MakePbo'\n new winReg hive: winReg.HKLM, key: '\\\\SOFTWARE",
"end": 145,
"score": 0.9780203104019165,
"start": 117,
"tag": "KEY",
"value": "'\\\\SOFTWARE\\\\Mikero\\\\MakePbo"
},
{
"context... | src/node-makepbo.coffee | MikeMatrix/node-makepbo | 1 | {execFile} = require 'child_process'
winReg = require 'winreg'
keyLocations = [
new winReg hive: winReg.HKLM, key: '\\SOFTWARE\\Mikero\\MakePbo'
new winReg hive: winReg.HKLM, key: '\\SOFTWARE\\Wow6432Node\\Mikero\\MakePbo'
new winReg hive: winReg.HKCU, key: '\\SOFTWARE\\Mikero\\MakePbo'
new winReg hive: winReg.... | 198765 | {execFile} = require 'child_process'
winReg = require 'winreg'
keyLocations = [
new winReg hive: winReg.HKLM, key: <KEY>'
new winReg hive: winReg.HKLM, key: <KEY>'
new winReg hive: winReg.HKCU, key: <KEY>'
new winReg hive: winReg.HKCU, key: <KEY>'
]
class MakePBO
@options =
formatArma: "-A"
formatCWC... | true | {execFile} = require 'child_process'
winReg = require 'winreg'
keyLocations = [
new winReg hive: winReg.HKLM, key: PI:KEY:<KEY>END_PI'
new winReg hive: winReg.HKLM, key: PI:KEY:<KEY>END_PI'
new winReg hive: winReg.HKCU, key: PI:KEY:<KEY>END_PI'
new winReg hive: winReg.HKCU, key: PI:KEY:<KEY>END_PI'
]
class Mak... |
[
{
"context": "# tael.js\n# Copyright (c) 2015 Carter Hinsley\n# MIT License\nerror = require './error.coffee'\nre",
"end": 45,
"score": 0.9998108744621277,
"start": 31,
"tag": "NAME",
"value": "Carter Hinsley"
}
] | src/scripts/tael.coffee | hinsley-it/maestro | 4 | # tael.js
# Copyright (c) 2015 Carter Hinsley
# MIT License
error = require './error.coffee'
ref = require 'refjs'
tiles = [
new ref
type: 'container'
child: undefined
content:
dom:
($ '.tael-container')
.attr 'id', 'tael-node-0'
]
newTile = (til... | 221738 | # tael.js
# Copyright (c) 2015 <NAME>
# MIT License
error = require './error.coffee'
ref = require 'refjs'
tiles = [
new ref
type: 'container'
child: undefined
content:
dom:
($ '.tael-container')
.attr 'id', 'tael-node-0'
]
newTile = (tiles, pare... | true | # tael.js
# Copyright (c) 2015 PI:NAME:<NAME>END_PI
# MIT License
error = require './error.coffee'
ref = require 'refjs'
tiles = [
new ref
type: 'container'
child: undefined
content:
dom:
($ '.tael-container')
.attr 'id', 'tael-node-0'
]
newTile ... |
[
{
"context": "\n\t\tplayer1DataForGame =\n\t\t\tuserId: userId\n\t\t\tname: name\n\t\t\tdeck: deck\n\t\t\tcardBackId: cardBackId\n\t\t\tticket",
"end": 3595,
"score": 0.9990653991699219,
"start": 3591,
"tag": "NAME",
"value": "name"
},
{
"context": "s_player_1: playerIsPlayer1,\n\t\t... | server/lib/create_single_player_game.coffee | willroberts/duelyst | 5 | moment = require 'moment'
Promise = require 'bluebird'
_ = require 'underscore'
{GameManager} = require '../redis/'
CONFIG = require '../../app/common/config'
Logger = require '../../app/common/logger'
generatePushId = require '../../app/common/generate_push_id'
config = require '../../config/config'
{version} = requir... | 9376 | moment = require 'moment'
Promise = require 'bluebird'
_ = require 'underscore'
{GameManager} = require '../redis/'
CONFIG = require '../../app/common/config'
Logger = require '../../app/common/logger'
generatePushId = require '../../app/common/generate_push_id'
config = require '../../config/config'
{version} = requir... | true | moment = require 'moment'
Promise = require 'bluebird'
_ = require 'underscore'
{GameManager} = require '../redis/'
CONFIG = require '../../app/common/config'
Logger = require '../../app/common/logger'
generatePushId = require '../../app/common/generate_push_id'
config = require '../../config/config'
{version} = requir... |
[
{
"context": "rca\"\n contact: \"Contacto\"\n twitter_follow: \"Seguir\"\n my_classrooms: \"Clases Mías\"\n my_courses:",
"end": 5835,
"score": 0.9996037483215332,
"start": 5829,
"tag": "USERNAME",
"value": "Seguir"
},
{
"context": " spectate: \"Observar\" # Ladder page\n... | app/locale/es-419.coffee | Wesley-Li/ruiyunkidcoding | 1 | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
new_home:
slogan: "El juego más interesante para aprender programación."
classroom_edition: "Versión para el Aula:"
learn_to_code: "Aprende a programar:"
play_now: "Jugar Ahora"
... | 99163 | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
new_home:
slogan: "El juego más interesante para aprender programación."
classroom_edition: "Versión para el Aula:"
learn_to_code: "Aprende a programar:"
play_now: "Jugar Ahora"
... | true | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
new_home:
slogan: "El juego más interesante para aprender programación."
classroom_edition: "Versión para el Aula:"
learn_to_code: "Aprende a programar:"
play_now: "Jugar Ahora"
... |
[
{
"context": "peof(nextActor) == \"undefined\"\n nextActor = \"Kevin Bacon\"\n scenarioPass = (data.actors.indexOf(actorNam",
"end": 1562,
"score": 0.9998271465301514,
"start": 1551,
"tag": "NAME",
"value": "Kevin Bacon"
}
] | app/assets/javascripts/movies.js.coffee | Orasi/code-challenge-grading | 0 | errors = []
finish = ->
msg = $("div.results > h4.msg")
unless typeof(allMovieData) == "undefined"
errors.push("No movie data could be retrieved, possibly due to an invalid string.") if allMovieData.length == 0
for movie in allMovieData
showMovie(movie)
if passed
msg.addClass("pass")
msg.... | 123915 | errors = []
finish = ->
msg = $("div.results > h4.msg")
unless typeof(allMovieData) == "undefined"
errors.push("No movie data could be retrieved, possibly due to an invalid string.") if allMovieData.length == 0
for movie in allMovieData
showMovie(movie)
if passed
msg.addClass("pass")
msg.... | true | errors = []
finish = ->
msg = $("div.results > h4.msg")
unless typeof(allMovieData) == "undefined"
errors.push("No movie data could be retrieved, possibly due to an invalid string.") if allMovieData.length == 0
for movie in allMovieData
showMovie(movie)
if passed
msg.addClass("pass")
msg.... |
[
{
"context": "nts\") && !window.DISQUS\n disqus_shortname = \"dressly\"\n (->\n dsq = document.createElement(\"",
"end": 2210,
"score": 0.9987143874168396,
"start": 2203,
"tag": "USERNAME",
"value": "dressly"
},
{
"context": "t-image\")\n StripeCheckout.open\n ... | shopperling.coffee | wangjohn/shopperling | 1 | Products = new Meteor.Collection("products")
Payments = new Meteor.Collection("payments")
NUM_COLS = 4
QUERY_LIMIT_BLOCK_SIZE = 16
AGGREGATES =
sweaters: { '1': 3400, '2': 5900, '3': 7900 }
tees: { '1': 1500, '2': 1500, '3': 2000 }
tops: { '1': 2400, '2': 3900, '3': 5000 }
IMAGE_BASE_URL = "https://dl.dropboxuser... | 123024 | Products = new Meteor.Collection("products")
Payments = new Meteor.Collection("payments")
NUM_COLS = 4
QUERY_LIMIT_BLOCK_SIZE = 16
AGGREGATES =
sweaters: { '1': 3400, '2': 5900, '3': 7900 }
tees: { '1': 1500, '2': 1500, '3': 2000 }
tops: { '1': 2400, '2': 3900, '3': 5000 }
IMAGE_BASE_URL = "https://dl.dropboxuser... | true | Products = new Meteor.Collection("products")
Payments = new Meteor.Collection("payments")
NUM_COLS = 4
QUERY_LIMIT_BLOCK_SIZE = 16
AGGREGATES =
sweaters: { '1': 3400, '2': 5900, '3': 7900 }
tees: { '1': 1500, '2': 1500, '3': 2000 }
tops: { '1': 2400, '2': 3900, '3': 5000 }
IMAGE_BASE_URL = "https://dl.dropboxuser... |
[
{
"context": "Backbone.Model({\n id: 5\n name: \"Elijah Hoppe\"\n blood_type: \"O-\"\n sex: \"femal",
"end": 893,
"score": 0.999866783618927,
"start": 881,
"tag": "NAME",
"value": "Elijah Hoppe"
}
] | spec/javascripts/core/apps/patient/form-view.spec.coffee | houzelio/houzel | 2 | import FormView from 'javascripts/core/apps/patient/form-view'
describe("Patient Form View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
@myRegion = new MyRegion
@myView = new FormView {model: new Backbone.Model }
describe("after initializing", () ->
it("sh... | 171880 | import FormView from 'javascripts/core/apps/patient/form-view'
describe("Patient Form View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
@myRegion = new MyRegion
@myView = new FormView {model: new Backbone.Model }
describe("after initializing", () ->
it("sh... | true | import FormView from 'javascripts/core/apps/patient/form-view'
describe("Patient Form View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
@myRegion = new MyRegion
@myView = new FormView {model: new Backbone.Model }
describe("after initializing", () ->
it("sh... |
[
{
"context": "RLS:\n# POST /hubot/strider/:room\n#\n# Author:\n# Matt Johansen (@mattjay)\n\nmodule.exports = (robot) ->\n robot.r",
"end": 192,
"score": 0.9998809695243835,
"start": 179,
"tag": "NAME",
"value": "Matt Johansen"
},
{
"context": "/hubot/strider/:room\n#\n# Author:... | strider.coffee | mattjay/hubot-strider | 2 | # Description:
# Hubot listener for Strider-CD webhook that parses results and chats to room.
#
# Dependencies:
# None
#
# URLS:
# POST /hubot/strider/:room
#
# Author:
# Matt Johansen (@mattjay)
module.exports = (robot) ->
robot.router.post '/hubot/strider/:room', (req, res) ->
room = req.params.room ... | 124221 | # Description:
# Hubot listener for Strider-CD webhook that parses results and chats to room.
#
# Dependencies:
# None
#
# URLS:
# POST /hubot/strider/:room
#
# Author:
# <NAME> (@mattjay)
module.exports = (robot) ->
robot.router.post '/hubot/strider/:room', (req, res) ->
room = req.params.room
d... | true | # Description:
# Hubot listener for Strider-CD webhook that parses results and chats to room.
#
# Dependencies:
# None
#
# URLS:
# POST /hubot/strider/:room
#
# Author:
# PI:NAME:<NAME>END_PI (@mattjay)
module.exports = (robot) ->
robot.router.post '/hubot/strider/:room', (req, res) ->
room = req.params.... |
[
{
"context": "arches VirusTotal for a ip address\n#\n# Author:\n# Scott J Roberts - @sroberts\n\nVIRUSTOTAL_API_KEY = process.env.VIR",
"end": 428,
"score": 0.9994602203369141,
"start": 413,
"tag": "NAME",
"value": "Scott J Roberts"
},
{
"context": "for a ip address\n#\n# Author:\n... | src/scripts/virustotal.coffee | 3ch01c/hubot-vtr-scripts | 47 | # Description:
# Check VirusTotal for Malware
#
# Dependencies:
# None
#
# Configuration:
# VIRUSTOTAL_API_KEY - Sign up at https://www.virustotal.com/en/documentation/public-api/
#
# Commands:
# hubot virustotal hash <hash> - Searches VirusTotal for a hash
# hubot virustotal url <url> - Searches VirusTotal f... | 28507 | # Description:
# Check VirusTotal for Malware
#
# Dependencies:
# None
#
# Configuration:
# VIRUSTOTAL_API_KEY - Sign up at https://www.virustotal.com/en/documentation/public-api/
#
# Commands:
# hubot virustotal hash <hash> - Searches VirusTotal for a hash
# hubot virustotal url <url> - Searches VirusTotal f... | true | # Description:
# Check VirusTotal for Malware
#
# Dependencies:
# None
#
# Configuration:
# VIRUSTOTAL_API_KEY - Sign up at https://www.virustotal.com/en/documentation/public-api/
#
# Commands:
# hubot virustotal hash <hash> - Searches VirusTotal for a hash
# hubot virustotal url <url> - Searches VirusTotal f... |
[
{
"context": "outes.controllers.Application.login().post({user:'username', password:'secret'}).then(function(response) {\n#",
"end": 346,
"score": 0.9972763657569885,
"start": 338,
"tag": "USERNAME",
"value": "username"
},
{
"context": "lication.login().post({user:'username', passwor... | modules/oauth-console/app/assets/javascripts/common/services/playRoutes.coffee | heftyy/play-framework-oauth | 0 | ###*
# Play JavaScript routing as an AngularJS module.
# Wraps Play's routes to use Angular's $http.
# Example:
# {{{
# // For `POST /login controller.Application.login()` Play generates:
# jsRoutes.controllers.Application.login()
# // With playRoutes, this can be used like this:
# playRoutes.controllers.Application.lo... | 199962 | ###*
# Play JavaScript routing as an AngularJS module.
# Wraps Play's routes to use Angular's $http.
# Example:
# {{{
# // For `POST /login controller.Application.login()` Play generates:
# jsRoutes.controllers.Application.login()
# // With playRoutes, this can be used like this:
# playRoutes.controllers.Application.lo... | true | ###*
# Play JavaScript routing as an AngularJS module.
# Wraps Play's routes to use Angular's $http.
# Example:
# {{{
# // For `POST /login controller.Application.login()` Play generates:
# jsRoutes.controllers.Application.login()
# // With playRoutes, this can be used like this:
# playRoutes.controllers.Application.lo... |
[
{
"context": "loginEmailAccount email: $scope.email, password: $scope.password\n\t\t\t\t.then (response) ->\n\t\t\t\t\tif response.data.cod",
"end": 729,
"score": 0.8160924315452576,
"start": 715,
"tag": "PASSWORD",
"value": "scope.password"
}
] | src/controllers/LoginController.coffee | waltzcode/showroom-shopify | 0 | angular.module 'showroomControllers'
.controller 'LoginController', [
'userService', 'facebookService', '$scope', '$rootScope', '$log', '$location'
(userService, facebookService, $scope, $rootScope, $log, $location) ->
# Display Settings
$rootScope.removeHeader = true
$rootScope.removeBrand = true
$rootScope.... | 191162 | angular.module 'showroomControllers'
.controller 'LoginController', [
'userService', 'facebookService', '$scope', '$rootScope', '$log', '$location'
(userService, facebookService, $scope, $rootScope, $log, $location) ->
# Display Settings
$rootScope.removeHeader = true
$rootScope.removeBrand = true
$rootScope.... | true | angular.module 'showroomControllers'
.controller 'LoginController', [
'userService', 'facebookService', '$scope', '$rootScope', '$log', '$location'
(userService, facebookService, $scope, $rootScope, $log, $location) ->
# Display Settings
$rootScope.removeHeader = true
$rootScope.removeBrand = true
$rootScope.... |
[
{
"context": "TE USER \"#{user.name}\" WITH ENCRYPTED PASSWORD '#{user.password}';\n GRANT CONNECT, TEMPORARY ON DATABA",
"end": 1883,
"score": 0.9762309193611145,
"start": 1870,
"tag": "PASSWORD",
"value": "user.password"
}
] | test/resources/postgres/make.coffee | smbape/node-dblayer | 0 | fs = require 'fs'
sysPath = require 'path'
mkdirp = require 'mkdirp'
{createScript, executeScript, getTemp} = require '../../tools'
_ = require 'lodash'
# http://www.postgresql.org/docs/9.4/static/libpq-envars.html
env = _.pick process.env, [
'PGHOST'
'PGHOSTADDR'
'PGPORT'
'PGDATABASE'
'PGUSER'
... | 225488 | fs = require 'fs'
sysPath = require 'path'
mkdirp = require 'mkdirp'
{createScript, executeScript, getTemp} = require '../../tools'
_ = require 'lodash'
# http://www.postgresql.org/docs/9.4/static/libpq-envars.html
env = _.pick process.env, [
'PGHOST'
'PGHOSTADDR'
'PGPORT'
'PGDATABASE'
'PGUSER'
... | true | fs = require 'fs'
sysPath = require 'path'
mkdirp = require 'mkdirp'
{createScript, executeScript, getTemp} = require '../../tools'
_ = require 'lodash'
# http://www.postgresql.org/docs/9.4/static/libpq-envars.html
env = _.pick process.env, [
'PGHOST'
'PGHOSTADDR'
'PGPORT'
'PGDATABASE'
'PGUSER'
... |
[
{
"context": "whether or not this field is required. \r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n@abstract\r\n###\r\nclass Rest",
"end": 349,
"score": 0.9998423457145691,
"start": 337,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/serialization/RestfulRequest.coffee | qrefdev/qref | 0 | ###
Base class for all Restful requests. The difference between a restful request and an ajax request is that restful methods support the use of PUT & DELETE verbs.
The token field is optional by default.
The token field is required by certain methods and each method will dictate whether or not this field is requi... | 41618 | ###
Base class for all Restful requests. The difference between a restful request and an ajax request is that restful methods support the use of PUT & DELETE verbs.
The token field is optional by default.
The token field is required by certain methods and each method will dictate whether or not this field is requi... | true | ###
Base class for all Restful requests. The difference between a restful request and an ajax request is that restful methods support the use of PUT & DELETE verbs.
The token field is optional by default.
The token field is required by certain methods and each method will dictate whether or not this field is requi... |
[
{
"context": "---------------------------------------------\n# @: The Anh\n# d: 1503\n# f: Change languages directive\n# -----",
"end": 73,
"score": 0.9997303485870361,
"start": 66,
"tag": "NAME",
"value": "The Anh"
}
] | app/assets/javascripts/directives/dir_change_languages.coffee | theanh/96b0e903c0b3889b355a821204fb7dcf | 31 | # ----------------------------------------------------------
# @: The Anh
# d: 1503
# f: Change languages directive
# ----------------------------------------------------------
angular.module("AppSurvey")
.directive "dirChangeLanguages", [
'$compile',
'$http',
'$templateCache',
($compile, $http, $templateCache) ->
... | 22454 | # ----------------------------------------------------------
# @: <NAME>
# d: 1503
# f: Change languages directive
# ----------------------------------------------------------
angular.module("AppSurvey")
.directive "dirChangeLanguages", [
'$compile',
'$http',
'$templateCache',
($compile, $http, $templateCache) ->
... | true | # ----------------------------------------------------------
# @: PI:NAME:<NAME>END_PI
# d: 1503
# f: Change languages directive
# ----------------------------------------------------------
angular.module("AppSurvey")
.directive "dirChangeLanguages", [
'$compile',
'$http',
'$templateCache',
($compile, $http, $templ... |
[
{
"context": " alice.send_obj\n kind: 'AUTH'\n account_id: 'alice'\n .then =>\n @warn \"SENT AUTH\"\n .fail (error)",
"end": 324,
"score": 0.9925330877304077,
"start": 319,
"tag": "USERNAME",
"value": "alice"
},
{
"context": " #@[u].info \"\\t#{k}:\", v\n\n#initUser(u) for... | client.coffee | CmptAdam/buttercoin | 146 | stump = require('stump')
ApiClient = require('./lib/ews/ew_api')
ApiServer = require('./lib/api/server')
Connection = require('./lib/ews/ws_connection')
stump.stumpify(this, "[TEST]Client")
alice = new Connection(stump)
alice.on 'open', =>
@warn "CONNECTED ALICE"
alice.send_obj
kind: 'AUTH'
account_id: 'a... | 36379 | stump = require('stump')
ApiClient = require('./lib/ews/ew_api')
ApiServer = require('./lib/api/server')
Connection = require('./lib/ews/ws_connection')
stump.stumpify(this, "[TEST]Client")
alice = new Connection(stump)
alice.on 'open', =>
@warn "CONNECTED ALICE"
alice.send_obj
kind: 'AUTH'
account_id: 'a... | true | stump = require('stump')
ApiClient = require('./lib/ews/ew_api')
ApiServer = require('./lib/api/server')
Connection = require('./lib/ews/ws_connection')
stump.stumpify(this, "[TEST]Client")
alice = new Connection(stump)
alice.on 'open', =>
@warn "CONNECTED ALICE"
alice.send_obj
kind: 'AUTH'
account_id: 'a... |
[
{
"context": " int and wis of your allies.\n *\n * @name Celestial Birdsong\n * @requirement {class} MagicalNonster\n ",
"end": 821,
"score": 0.9974885582923889,
"start": 803,
"tag": "NAME",
"value": "Celestial Birdsong"
},
{
"context": "nster\n * @package Spe... | src/character/spells/buffs/multi/LightsFromTheStars.coffee | jawsome/IdleLands | 3 |
Spell = require "../../../base/Spell"
class LightsFromTheStars extends Spell
name: "Lights from the Stars"
@element = LightsFromTheStars::element = Spell::Element.buff
@tiers = LightsFromTheStars::tiers = [
`/**
* This spell buffs the int and wis of your allies.
*
* @name Lights from the S... | 80362 |
Spell = require "../../../base/Spell"
class LightsFromTheStars extends Spell
name: "Lights from the Stars"
@element = LightsFromTheStars::element = Spell::Element.buff
@tiers = LightsFromTheStars::tiers = [
`/**
* This spell buffs the int and wis of your allies.
*
* @name Lights from the S... | true |
Spell = require "../../../base/Spell"
class LightsFromTheStars extends Spell
name: "Lights from the Stars"
@element = LightsFromTheStars::element = Spell::Element.buff
@tiers = LightsFromTheStars::tiers = [
`/**
* This spell buffs the int and wis of your allies.
*
* @name Lights from the S... |
[
{
"context": "\n crawl.queue(\"http://google.com\") #@config.host\n\nsnailer = new exports.Snailer\nsnailer.run()",
"end": 624,
"score": 0.5345503687858582,
"start": 620,
"tag": "EMAIL",
"value": "host"
}
] | src/snailer-daemon.coffee | matthewhudson/snailer | 3 | crawler = require 'crawler'
underscore = require 'underscore'
helpers = require './helpers'
Queue = require('./queue').Queue
Config = require('./config').Config
class exports.Snailer
constructor: ->
@queue = new Queue
@config = new Config
run: ->
self = @
crawl = new crawler.C... | 27969 | crawler = require 'crawler'
underscore = require 'underscore'
helpers = require './helpers'
Queue = require('./queue').Queue
Config = require('./config').Config
class exports.Snailer
constructor: ->
@queue = new Queue
@config = new Config
run: ->
self = @
crawl = new crawler.C... | true | crawler = require 'crawler'
underscore = require 'underscore'
helpers = require './helpers'
Queue = require('./queue').Queue
Config = require('./config').Config
class exports.Snailer
constructor: ->
@queue = new Queue
@config = new Config
run: ->
self = @
crawl = new crawler.C... |
[
{
"context": "permissions: []\n email: 'user'+_.uniqueId()+'@gmail.com'\n password: 'password'\n }, options)\n u",
"end": 654,
"score": 0.9492553472518921,
"start": 644,
"tag": "EMAIL",
"value": "@gmail.com"
},
{
"context": "'user'+_.uniqueId()+'@gmail.com'\n pas... | spec/server/utils.coffee | differentmatt/codecombat | 0 | async = require 'async'
utils = require '../../server/lib/utils'
co = require 'co'
Promise = require 'bluebird'
module.exports = mw =
getURL: (path) -> 'http://localhost:3001' + path
clearModels: Promise.promisify (models, done) ->
funcs = []
for model in models
wrapped = (m) ->
(callb... | 128277 | async = require 'async'
utils = require '../../server/lib/utils'
co = require 'co'
Promise = require 'bluebird'
module.exports = mw =
getURL: (path) -> 'http://localhost:3001' + path
clearModels: Promise.promisify (models, done) ->
funcs = []
for model in models
wrapped = (m) ->
(callb... | true | async = require 'async'
utils = require '../../server/lib/utils'
co = require 'co'
Promise = require 'bluebird'
module.exports = mw =
getURL: (path) -> 'http://localhost:3001' + path
clearModels: Promise.promisify (models, done) ->
funcs = []
for model in models
wrapped = (m) ->
(callb... |
[
{
"context": ")\n domain: 'domain.com'\n password: 'some pass'\n forceSsl: false\n processingSettings:",
"end": 185,
"score": 0.9992408156394958,
"start": 176,
"tag": "PASSWORD",
"value": "some pass"
}
] | test/server/site.coffee | hanzo-io/hanzo.js | 147 | describe.skip 'Api.site', ->
site = null
siteId = null
before ->
site =
name: 'site-' + (randomToken 4)
domain: 'domain.com'
password: 'some pass'
forceSsl: false
processingSettings:
css:
bundle: true, minify: true
js:
bundle: true... | 158046 | describe.skip 'Api.site', ->
site = null
siteId = null
before ->
site =
name: 'site-' + (randomToken 4)
domain: 'domain.com'
password: '<PASSWORD>'
forceSsl: false
processingSettings:
css:
bundle: true, minify: true
js:
bundle: tru... | true | describe.skip 'Api.site', ->
site = null
siteId = null
before ->
site =
name: 'site-' + (randomToken 4)
domain: 'domain.com'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
forceSsl: false
processingSettings:
css:
bundle: true, minify: true
js:
... |
[
{
"context": "##\n backbone-mongo.js 0.6.10\n Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-mongo\n Li",
"end": 60,
"score": 0.9975502490997314,
"start": 52,
"tag": "NAME",
"value": "Vidigami"
},
{
"context": " Copyright (c) 2013 Vidigami - https://github.com/... | src/cursor.coffee | vidigami/backbone-mongo | 1 | ###
backbone-mongo.js 0.6.10
Copyright (c) 2013 Vidigami - https://github.com/vidigami/backbone-mongo
License: MIT (http://www.opensource.org/licenses/mit-license.php)
###
{_, sync} = require 'backbone-orm'
ARRAY_QUERIES = ['$or', '$nor', '$and']
_sortArgsToMongo = (args, backbone_adapter) ->
args = if _.isA... | 160056 | ###
backbone-mongo.js 0.6.10
Copyright (c) 2013 <NAME> - https://github.com/vidigami/backbone-mongo
License: MIT (http://www.opensource.org/licenses/mit-license.php)
###
{_, sync} = require 'backbone-orm'
ARRAY_QUERIES = ['$or', '$nor', '$and']
_sortArgsToMongo = (args, backbone_adapter) ->
args = if _.isArr... | true | ###
backbone-mongo.js 0.6.10
Copyright (c) 2013 PI:NAME:<NAME>END_PI - https://github.com/vidigami/backbone-mongo
License: MIT (http://www.opensource.org/licenses/mit-license.php)
###
{_, sync} = require 'backbone-orm'
ARRAY_QUERIES = ['$or', '$nor', '$and']
_sortArgsToMongo = (args, backbone_adapter) ->
arg... |
[
{
"context": "new Device fakeMeshblu, {uuid: 'my-uuid', token: 'my-token'}\n @sut.persist 'test/test-file.txt'\n\n ",
"end": 1621,
"score": 0.7133120894432068,
"start": 1613,
"tag": "PASSWORD",
"value": "my-token"
},
{
"context": "file.txt'))).to.deep.eq {uuid: 'my-uuid', t... | test/device_spec.coffee | octoblu/nodered-docker-device | 1 | Device = require '../src/device'
fs = require 'fs'
describe 'Device', ->
describe '-> register', ->
it 'should call register on meshblu with the owner id', ->
fakeMeshblu = new FakeMeshblu
@sut = new Device fakeMeshblu
@sut.register('fu-uuid')
expect(fakeMeshblu.register.calledWith[0]).to... | 19411 | Device = require '../src/device'
fs = require 'fs'
describe 'Device', ->
describe '-> register', ->
it 'should call register on meshblu with the owner id', ->
fakeMeshblu = new FakeMeshblu
@sut = new Device fakeMeshblu
@sut.register('fu-uuid')
expect(fakeMeshblu.register.calledWith[0]).to... | true | Device = require '../src/device'
fs = require 'fs'
describe 'Device', ->
describe '-> register', ->
it 'should call register on meshblu with the owner id', ->
fakeMeshblu = new FakeMeshblu
@sut = new Device fakeMeshblu
@sut.register('fu-uuid')
expect(fakeMeshblu.register.calledWith[0]).to... |
[
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)\n###\n\nfs = requi",
"end": 37,
"score": 0.9998493790626526,
"start": 26,
"tag": "NAME",
"value": "David Worms"
},
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Lic... | servers/nodejs/node_modules/restify/node_modules/csv/test/write.coffee | HyperNexus/crashdumper | 64 |
###
Test CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'write', ->
it 'Test write array', (next) ->
count = 0;
test = csv()
.on 'record', (record, ind... | 80276 |
###
Test CSV - Copyright <NAME> <<EMAIL>> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'write', ->
it 'Test write array', (next) ->
count = 0;
test = csv()
.on 'record', (record, index) ->
r... | true |
###
Test CSV - Copyright PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'write', ->
it 'Test write array', (next) ->
count = 0;
test = csv()
.on 'record... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999140501022339,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/profile-page/rank.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { ValueDisplay } from 'value-display'
el = React.createElement
export Rank = ({type, stats, modifiers}) -... | 50522 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { ValueDisplay } from 'value-display'
el = React.createElement
export Rank = ({type, stats, modifiers}) ->
el ... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { ValueDisplay } from 'value-display'
el = React.createElement
export Rank = ({type, stats, modif... |
[
{
"context": " students: [\n { name: \"john\", school: 102, age: 10 },\n { n",
"end": 11925,
"score": 0.99982750415802,
"start": 11921,
"tag": "NAME",
"value": "john"
},
{
"context": "ool: 102, age: 10 },\n { name: \"je... | test/core/collectionSpec.coffee | wh1100717/localDB | 59 | define (require, exports, module) ->
"use strict"
LocalDB = require("localdb")
Collection = require("core/collection")
Utils = require("core/utils")
db = new LocalDB "foo"
### TODO
* 没有覆盖到的分支都是try..catch中错误处理的分支,有时间想一下如何去做这方面的测试来进行测试覆盖
###
describe "Collection", ->
it ... | 71949 | define (require, exports, module) ->
"use strict"
LocalDB = require("localdb")
Collection = require("core/collection")
Utils = require("core/utils")
db = new LocalDB "foo"
### TODO
* 没有覆盖到的分支都是try..catch中错误处理的分支,有时间想一下如何去做这方面的测试来进行测试覆盖
###
describe "Collection", ->
it ... | true | define (require, exports, module) ->
"use strict"
LocalDB = require("localdb")
Collection = require("core/collection")
Utils = require("core/utils")
db = new LocalDB "foo"
### TODO
* 没有覆盖到的分支都是try..catch中错误处理的分支,有时间想一下如何去做这方面的测试来进行测试覆盖
###
describe "Collection", ->
it ... |
[
{
"context": "hubot', ->\n beforeEach ->\n room.user.say 'alice', 'hubot PING'\n room.user.say 'bob', 'hubo",
"end": 395,
"score": 0.9963357448577881,
"start": 390,
"tag": "NAME",
"value": "alice"
},
{
"context": "er.say 'alice', 'hubot PING'\n room.user.say 'bob'... | tests/ping.coffee | tigefabot/test | 0 | Helper = require('hubot-test-helper')
expect = require('chai').expect
sinon = require('sinon')
# helper loads a specific script if it's a file
helper = new Helper('./../scripts/ping.coffee')
describe 'ping', ->
room = null
beforeEach ->
room = helper.createRoom()
afterEach ->
room.destroy()
context... | 194942 | Helper = require('hubot-test-helper')
expect = require('chai').expect
sinon = require('sinon')
# helper loads a specific script if it's a file
helper = new Helper('./../scripts/ping.coffee')
describe 'ping', ->
room = null
beforeEach ->
room = helper.createRoom()
afterEach ->
room.destroy()
context... | true | Helper = require('hubot-test-helper')
expect = require('chai').expect
sinon = require('sinon')
# helper loads a specific script if it's a file
helper = new Helper('./../scripts/ping.coffee')
describe 'ping', ->
room = null
beforeEach ->
room = helper.createRoom()
afterEach ->
room.destroy()
context... |
[
{
"context": " <div className=\"content\">\n I'm Fantix King, a Python developer. <a href=\"https://www.linkedi",
"end": 1417,
"score": 0.9997725486755371,
"start": 1406,
"tag": "NAME",
"value": "Fantix King"
},
{
"context": "n developer. <a href=\"https://www.link... | src/scripts/components/app.cjsx | ArchLinux-x32/archlinux-x32.github.io.src | 0 | # please pardon me for this too simple code, it is an example on how to use this workflow framework
React = require('react/addons')
Router = require('react-router')
{ Route, RouteHandler, Link } = Router
LocalStorageUtil = require('../utils/LocalStorage')
# TransitionGroup = React.addons.CSSTransitionGroup
LOCAL_STORA... | 114879 | # please pardon me for this too simple code, it is an example on how to use this workflow framework
React = require('react/addons')
Router = require('react-router')
{ Route, RouteHandler, Link } = Router
LocalStorageUtil = require('../utils/LocalStorage')
# TransitionGroup = React.addons.CSSTransitionGroup
LOCAL_STORA... | true | # please pardon me for this too simple code, it is an example on how to use this workflow framework
React = require('react/addons')
Router = require('react-router')
{ Route, RouteHandler, Link } = Router
LocalStorageUtil = require('../utils/LocalStorage')
# TransitionGroup = React.addons.CSSTransitionGroup
LOCAL_STORA... |
[
{
"context": "scope.creditItems = [\n {\n title: \"Bombs by Maciek Lulko\"\n url: \"https://www.flickr.com/photos/lulek/",
"end": 138,
"score": 0.9998916983604431,
"start": 126,
"tag": "NAME",
"value": "Maciek Lulko"
},
{
"context": ".0\"\n }\n {\n title: \"LG... | src/client/controllers/creditsController.coffee | sampettersson/striveforwards | 1 | App = require "../app"
App.controller "creditsController", ($scope) ->
$scope.creditItems = [
{
title: "Bombs by Maciek Lulko"
url: "https://www.flickr.com/photos/lulek/9532704386"
source: "Flickr"
license: "CC BY 2.0"
}
{
title: "LGBT Pride Rennes by Julie Missbutterflies"
... | 177427 | App = require "../app"
App.controller "creditsController", ($scope) ->
$scope.creditItems = [
{
title: "Bombs by <NAME>"
url: "https://www.flickr.com/photos/lulek/9532704386"
source: "Flickr"
license: "CC BY 2.0"
}
{
title: "LGBT Pride Rennes by <NAME>"
url: "https://w... | true | App = require "../app"
App.controller "creditsController", ($scope) ->
$scope.creditItems = [
{
title: "Bombs by PI:NAME:<NAME>END_PI"
url: "https://www.flickr.com/photos/lulek/9532704386"
source: "Flickr"
license: "CC BY 2.0"
}
{
title: "LGBT Pride Rennes by PI:NAME:<NAME>E... |
[
{
"context": "ow.localStorage.setItem(KEY, undefined)\n\n KEY = '7m.config'\n sync: (method, model, options)->\n switch me",
"end": 689,
"score": 0.9994643926620483,
"start": 680,
"tag": "KEY",
"value": "7m.config"
}
] | cui.bundle/src/models/config.coffee | essa/7m | 1 |
class App.Models.Config extends Backbone.Model
constructor: (@app)->
super()
@defaultPlayer = if @hasFlash()
'JPlayerPlayer'
else
if @app?.isPhonegap
'PhonegapStreamPlayer'
else
'HowlerPlayer'
defaults:
server_addr: ''
server_port: ''
new_config: true
... | 5629 |
class App.Models.Config extends Backbone.Model
constructor: (@app)->
super()
@defaultPlayer = if @hasFlash()
'JPlayerPlayer'
else
if @app?.isPhonegap
'PhonegapStreamPlayer'
else
'HowlerPlayer'
defaults:
server_addr: ''
server_port: ''
new_config: true
... | true |
class App.Models.Config extends Backbone.Model
constructor: (@app)->
super()
@defaultPlayer = if @hasFlash()
'JPlayerPlayer'
else
if @app?.isPhonegap
'PhonegapStreamPlayer'
else
'HowlerPlayer'
defaults:
server_addr: ''
server_port: ''
new_config: true
... |
[
{
"context": "t in array\n action element\n #return\nforEach ['Wampeter', 'Foma', 'Granfalloon'], show\n\n# Sum with forEac",
"end": 477,
"score": 0.9993833899497986,
"start": 469,
"tag": "NAME",
"value": "Wampeter"
},
{
"context": " action element\n #return\nforEach ['Wampete... | src-no-solutions/06-FunctionalProgramming.coffee | autotelicum/Smooth-CoffeeScript | 66 | require './prelude'
# For each loops
show '--- For each loops ---'
thing = [5..7]
doSomething = show
for i in [0...thing.length] then doSomething thing[i]
show '-'
for element in thing then doSomething element
show '-'
printArray = (array) ->
for element in array
show element
return
printArray [7..9]
# For e... | 3242 | require './prelude'
# For each loops
show '--- For each loops ---'
thing = [5..7]
doSomething = show
for i in [0...thing.length] then doSomething thing[i]
show '-'
for element in thing then doSomething element
show '-'
printArray = (array) ->
for element in array
show element
return
printArray [7..9]
# For e... | true | require './prelude'
# For each loops
show '--- For each loops ---'
thing = [5..7]
doSomething = show
for i in [0...thing.length] then doSomething thing[i]
show '-'
for element in thing then doSomething element
show '-'
printArray = (array) ->
for element in array
show element
return
printArray [7..9]
# For e... |
[
{
"context": "\n\t\t\t\t\t\t\trequest.headers['X-Auth-Token'] = Accounts._storedLoginToken()\n\t\t\t\t\t\terrorHandler: (error) ->\n\t\t\t\t\t\t",
"end": 15773,
"score": 0.5429391264915466,
"start": 15767,
"tag": "KEY",
"value": "stored"
}
] | packages/steedos-creator/client/views/grid.coffee | zonglu233/fuel-car | 0 | dxDataGridInstance = null
_standardQuery = (curObjectName)->
standard_query = Session.get("standard_query")
object_fields = Creator.getObject(curObjectName).fields
if !standard_query or !standard_query.query or !_.size(standard_query.query) or standard_query.object_name != curObjectName
delete Session.keys["stand... | 76088 | dxDataGridInstance = null
_standardQuery = (curObjectName)->
standard_query = Session.get("standard_query")
object_fields = Creator.getObject(curObjectName).fields
if !standard_query or !standard_query.query or !_.size(standard_query.query) or standard_query.object_name != curObjectName
delete Session.keys["stand... | true | dxDataGridInstance = null
_standardQuery = (curObjectName)->
standard_query = Session.get("standard_query")
object_fields = Creator.getObject(curObjectName).fields
if !standard_query or !standard_query.query or !_.size(standard_query.query) or standard_query.object_name != curObjectName
delete Session.keys["stand... |
[
{
"context": "s.time\n .map (message) =>\n AppMessage key: message.id, data: message\n\n renderPreview: ->\n @state.pr",
"end": 1761,
"score": 0.9258211255073547,
"start": 1751,
"tag": "KEY",
"value": "message.id"
},
{
"context": "w?.concat()\n .map (obj) =>\n App... | source/app/message-list.coffee | Cumulo/sync-chat | 1 |
React = require 'react'
lodash = require 'lodash'
AppMessage = require './message'
AppTyping = require './typing'
orders = require '../util/orders'
preview = require '../store/preview'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'message-list'
... | 40614 |
React = require 'react'
lodash = require 'lodash'
AppMessage = require './message'
AppTyping = require './typing'
orders = require '../util/orders'
preview = require '../store/preview'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'message-list'
... | true |
React = require 'react'
lodash = require 'lodash'
AppMessage = require './message'
AppTyping = require './typing'
orders = require '../util/orders'
preview = require '../store/preview'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'message-list'
... |
[
{
"context": "ntext\ncat = {}\ncat.setName = setName\ncat.setName 'Mittens'\nconsole.log cat.name # 'Mittens'\n#END:methodCo",
"end": 128,
"score": 0.9710898399353027,
"start": 121,
"tag": "NAME",
"value": "Mittens"
},
{
"context": "e\ncat.setName 'Mittens'\nconsole.log cat.name ... | code/Functions/setName.coffee | mingchaoyan/CoffeeScript-Accelerated-JavaScript-Development | 0 | #START:func
setName = (name) -> @name = name
#END:func
#START:methodContext
cat = {}
cat.setName = setName
cat.setName 'Mittens'
console.log cat.name # 'Mittens'
#END:methodContext
#START:callContext
pig = {}
setName.apply pig, ['Babe']
console.log pig.name # 'Babe'
#END:callContext
#START:callProperty
horse = {... | 163718 | #START:func
setName = (name) -> @name = name
#END:func
#START:methodContext
cat = {}
cat.setName = setName
cat.setName '<NAME>'
console.log cat.name # '<NAME>'
#END:methodContext
#START:callContext
pig = {}
setName.apply pig, ['B<NAME>']
console.log pig.name # 'B<NAME>'
#END:callContext
#START:callProperty
horse... | true | #START:func
setName = (name) -> @name = name
#END:func
#START:methodContext
cat = {}
cat.setName = setName
cat.setName 'PI:NAME:<NAME>END_PI'
console.log cat.name # 'PI:NAME:<NAME>END_PI'
#END:methodContext
#START:callContext
pig = {}
setName.apply pig, ['BPI:NAME:<NAME>END_PI']
console.log pig.name # 'BPI:NAME:<... |
[
{
"context": " @writable\n\t\t\t\t\t@value = @_set(value)\n\t\n\t\tid_key = \"_05_id\"\n\t\n\t\tget_id = (obj) ->\n\t\t\treturn obj[id_key]\n\t\n\t\t",
"end": 2051,
"score": 0.9994853734970093,
"start": 2044,
"tag": "KEY",
"value": "\"_05_id"
}
] | src/O5.coffee | AndersDJohnson/O5 | 1 | ###
Underscore dependency is optional.
Parts actually used are inlined below.
###
#_ = require "underscore"
###
Begin inlined Underscore.js utilities
###
do ->
_ ?= {}
ArrayProto ?= Array.prototype
slice ?= ArrayProto.slice
nativeForEach ?= ArrayProto.forEach
nativeIsArray ?= Array.isArray
_.isObject ?= `functio... | 51727 | ###
Underscore dependency is optional.
Parts actually used are inlined below.
###
#_ = require "underscore"
###
Begin inlined Underscore.js utilities
###
do ->
_ ?= {}
ArrayProto ?= Array.prototype
slice ?= ArrayProto.slice
nativeForEach ?= ArrayProto.forEach
nativeIsArray ?= Array.isArray
_.isObject ?= `functio... | true | ###
Underscore dependency is optional.
Parts actually used are inlined below.
###
#_ = require "underscore"
###
Begin inlined Underscore.js utilities
###
do ->
_ ?= {}
ArrayProto ?= Array.prototype
slice ?= ArrayProto.slice
nativeForEach ?= ArrayProto.forEach
nativeIsArray ?= Array.isArray
_.isObject ?= `functio... |
[
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>\nAll rights reserved.\n\nRedistri",
"end": 42,
"score": 0.9998455047607422,
"start": 24,
"tag": "NAME",
"value": "Alexander Cherniuk"
},
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmai... | library/applied/redis.coffee | ts33kr/granite | 6 | ###
Copyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of co... | 176562 | ###
Copyright (c) 2013, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the foll... | true | ###
Copyright (c) 2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
li... |
[
{
"context": "github password\n\n# developed by http://github.com/fellix - Crafters Software Studio\n\nmodule.exports = (rob",
"end": 323,
"score": 0.9995865225791931,
"start": 317,
"tag": "USERNAME",
"value": "fellix"
},
{
"context": "s.env.HUBOT_BOT_GITHUB_USER \n bot_github_pas... | src/scripts/github-commiters.coffee | skanev/hubot-scripts | 1 | # Show the commiters from a repo
#
# add HUBOT_GITHUB_USER to your heroku env
# the HUBOT_GITHUB_USER should map to your account, not the bot account
# the HUBOT_BOT_GITHUB_USER should map to the bot github username
# the HUBOT_BOT_GITHUB_PASS should map to the bot github password
# developed by http://github.com/fel... | 52843 | # Show the commiters from a repo
#
# add HUBOT_GITHUB_USER to your heroku env
# the HUBOT_GITHUB_USER should map to your account, not the bot account
# the HUBOT_BOT_GITHUB_USER should map to the bot github username
# the HUBOT_BOT_GITHUB_PASS should map to the bot github password
# developed by http://github.com/fel... | true | # Show the commiters from a repo
#
# add HUBOT_GITHUB_USER to your heroku env
# the HUBOT_GITHUB_USER should map to your account, not the bot account
# the HUBOT_BOT_GITHUB_USER should map to the bot github username
# the HUBOT_BOT_GITHUB_PASS should map to the bot github password
# developed by http://github.com/fel... |
[
{
"context": "Packages installing command\n#\n# Copyright (C) 2011 Nikolay Nemshilov\n#\n\n#\n# Makes a local package install\n#\nlocal_inst",
"end": 72,
"score": 0.9998749494552612,
"start": 55,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | cli/commands/install.coffee | lovely-io/lovely.io-stl | 2 | #
# Packages installing command
#
# Copyright (C) 2011 Nikolay Nemshilov
#
#
# Makes a local package install
#
local_install = ->
fs = require('fs')
pack = require('../package')
repo = require('../repository')
sout "» Installing '#{pack.name}' locally".ljust(61)
system "#{__dirname}/../../bin/lov... | 119226 | #
# Packages installing command
#
# Copyright (C) 2011 <NAME>
#
#
# Makes a local package install
#
local_install = ->
fs = require('fs')
pack = require('../package')
repo = require('../repository')
sout "» Installing '#{pack.name}' locally".ljust(61)
system "#{__dirname}/../../bin/lovely build",... | true | #
# Packages installing command
#
# Copyright (C) 2011 PI:NAME:<NAME>END_PI
#
#
# Makes a local package install
#
local_install = ->
fs = require('fs')
pack = require('../package')
repo = require('../repository')
sout "» Installing '#{pack.name}' locally".ljust(61)
system "#{__dirname}/../../bin/... |
[
{
"context": "y the method\n# instead.\n#\n# MIT Licensed\n# @author Allex Wang <allex.wxn@gmail.com> (http://iallex.com/)\n###\n\nU",
"end": 363,
"score": 0.9997835159301758,
"start": 353,
"tag": "NAME",
"value": "Allex Wang"
},
{
"context": "# instead.\n#\n# MIT Licensed\n# @author... | lib/extend.coffee | allex/merge-lite | 0 | ###
# Extends destination object with source object(s) recursively.
#
# Assigns enumerable objects to the destination object. Source objects are applied
# from left to right. support customizer which is invoked to produce the assigned
# values. If customizer returns undefined, assignment is handled by the method
# ins... | 159628 | ###
# Extends destination object with source object(s) recursively.
#
# Assigns enumerable objects to the destination object. Source objects are applied
# from left to right. support customizer which is invoked to produce the assigned
# values. If customizer returns undefined, assignment is handled by the method
# ins... | true | ###
# Extends destination object with source object(s) recursively.
#
# Assigns enumerable objects to the destination object. Source objects are applied
# from left to right. support customizer which is invoked to produce the assigned
# values. If customizer returns undefined, assignment is handled by the method
# ins... |
[
{
"context": "ogleapis.com/maps/api/geocode/json\"\n key: \"AIzaSyB_42epe3vXXrap9NXf25GmYfzuT6Sxz8U\"\n unless configInterface.twilio?\n configI",
"end": 4584,
"score": 0.9997550249099731,
"start": 4545,
"tag": "KEY",
"value": "AIzaSyB_42epe3vXXrap9NXf25GmYfzuT6Sxz8U"
},
{... | app/scripts/environment/base.coffee | nerdfiles/utxo_us | 0 | ###*
@fileOverview
_
| |
| |__ _____ ___ _____
| _ \(____ |/___) ___ |
| |_) ) ___ |___ | ____|
|____/\_____(___/|_____)
@description
Environment config base.
###
environment = undefined
(->
environment = (->
configInterface = undefined
configInterface = {}
configInterface.document = window.document... | 148674 | ###*
@fileOverview
_
| |
| |__ _____ ___ _____
| _ \(____ |/___) ___ |
| |_) ) ___ |___ | ____|
|____/\_____(___/|_____)
@description
Environment config base.
###
environment = undefined
(->
environment = (->
configInterface = undefined
configInterface = {}
configInterface.document = window.document... | true | ###*
@fileOverview
_
| |
| |__ _____ ___ _____
| _ \(____ |/___) ___ |
| |_) ) ___ |___ | ____|
|____/\_____(___/|_____)
@description
Environment config base.
###
environment = undefined
(->
environment = (->
configInterface = undefined
configInterface = {}
configInterface.document = window.document... |
[
{
"context": " Units'\nAccounts.emailTemplates.from = 'SA Units <steadypathapp@gmail.com>'\nAccounts.emailTemplates.enrollAccount.subject =",
"end": 596,
"score": 0.9999260902404785,
"start": 573,
"tag": "EMAIL",
"value": "steadypathapp@gmail.com"
}
] | imports/startup/server/startup_code.coffee | Phaze1D/SA-Units | 0 | { Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ SSR } = require 'meteor/meteorhacks:ssr'
# User Accounts
Accounts.validateNewUser (user) ->
Meteor.users.simpleSchema().clean(user)
Meteor.users.simpleSchema().validate(user)
return true
# Compiling User emails
SSR.compileTem... | 47749 | { Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ SSR } = require 'meteor/meteorhacks:ssr'
# User Accounts
Accounts.validateNewUser (user) ->
Meteor.users.simpleSchema().clean(user)
Meteor.users.simpleSchema().validate(user)
return true
# Compiling User emails
SSR.compileTem... | true | { Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ SSR } = require 'meteor/meteorhacks:ssr'
# User Accounts
Accounts.validateNewUser (user) ->
Meteor.users.simpleSchema().clean(user)
Meteor.users.simpleSchema().validate(user)
return true
# Compiling User emails
SSR.compileTem... |
[
{
"context": "tpBackend\n .whenPOST('/api/hello', '{\"name\":\"david\"}')\n .respond(200, JSON.stringify({name: 'da",
"end": 184,
"score": 0.9989891052246094,
"start": 179,
"tag": "NAME",
"value": "david"
},
{
"context": "id\"}')\n .respond(200, JSON.stringify({name: '... | src/client/hello/hello-service.test.coffee | dataonlinedolv3/rupert-demo-app | 1 | describe 'Hello Service', ->
beforeEach ->
module 'rupert-demo.hello.service'
beforeEach inject ($httpBackend)->
$httpBackend
.whenPOST('/api/hello', '{"name":"david"}')
.respond(200, JSON.stringify({name: 'david'}))
$httpBackend
.whenPOST('/api/hello', '{"name":"rupert"}')
.res... | 85540 | describe 'Hello Service', ->
beforeEach ->
module 'rupert-demo.hello.service'
beforeEach inject ($httpBackend)->
$httpBackend
.whenPOST('/api/hello', '{"name":"<NAME>"}')
.respond(200, JSON.stringify({name: '<NAME>'}))
$httpBackend
.whenPOST('/api/hello', '{"name":"<NAME>"}')
.r... | true | describe 'Hello Service', ->
beforeEach ->
module 'rupert-demo.hello.service'
beforeEach inject ($httpBackend)->
$httpBackend
.whenPOST('/api/hello', '{"name":"PI:NAME:<NAME>END_PI"}')
.respond(200, JSON.stringify({name: 'PI:NAME:<NAME>END_PI'}))
$httpBackend
.whenPOST('/api/hello', '... |
[
{
"context": "# Copyright (c) 2015 naymspace software (Dennis Nissen)\n#\n# Licensed under the Apache License, Version 2",
"end": 54,
"score": 0.9998693466186523,
"start": 41,
"tag": "NAME",
"value": "Dennis Nissen"
}
] | src/app/components/user/password-validator.coffee | ogumi/client | 0 | # Copyright (c) 2015 naymspace software (Dennis Nissen)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 38902 | # Copyright (c) 2015 naymspace software (<NAME>)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | true | # Copyright (c) 2015 naymspace software (PI:NAME:<NAME>END_PI)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
[
{
"context": " JSON.stringify(profile)\n tmp =\n password: randomstring.generate()\n Common.map options.mapping, profile, tmp\n ",
"end": 2914,
"score": 0.9951687455177307,
"start": 2893,
"tag": "PASSWORD",
"value": "randomstring.generate"
}
] | source/facebook/index.coffee | moooink/loopback-satellizer | 0 | async = require 'async'
debug = require('debug') 'loopback:satellizer:facebook'
request = require 'request'
randomstring = require 'randomstring'
common = require '../common'
module.exports = (server, options) ->
version = if options.version then options.version else 'v2.3'
Common ... | 159414 | async = require 'async'
debug = require('debug') 'loopback:satellizer:facebook'
request = require 'request'
randomstring = require 'randomstring'
common = require '../common'
module.exports = (server, options) ->
version = if options.version then options.version else 'v2.3'
Common ... | true | async = require 'async'
debug = require('debug') 'loopback:satellizer:facebook'
request = require 'request'
randomstring = require 'randomstring'
common = require '../common'
module.exports = (server, options) ->
version = if options.version then options.version else 'v2.3'
Common ... |
[
{
"context": "oin:request',\n actor: {\n id: 'mata',\n alias: 'Juan Mata'\n },\n ",
"end": 538,
"score": 0.8952550888061523,
"start": 534,
"tag": "USERNAME",
"value": "mata"
},
{
"context": "or: {\n id: 'mata',\n alias: ... | test/types/notification.coffee | playlyfe/odysseus | 0 | Odysseus = require '../../src/odysseus'
_ = require 'lodash'
moment = require 'moment'
describe 'The Notification Story Builder', ->
before (next) ->
@odysseus = new Odysseus(global.config)
@iso_date = global.iso_date
@text_date = global.text_date
@rel_date = global.rel_date
next()
###*
* T... | 177182 | Odysseus = require '../../src/odysseus'
_ = require 'lodash'
moment = require 'moment'
describe 'The Notification Story Builder', ->
before (next) ->
@odysseus = new Odysseus(global.config)
@iso_date = global.iso_date
@text_date = global.text_date
@rel_date = global.rel_date
next()
###*
* T... | true | Odysseus = require '../../src/odysseus'
_ = require 'lodash'
moment = require 'moment'
describe 'The Notification Story Builder', ->
before (next) ->
@odysseus = new Odysseus(global.config)
@iso_date = global.iso_date
@text_date = global.text_date
@rel_date = global.rel_date
next()
###*
* T... |
[
{
"context": "\n\ndescribe 'config', ->\n before ->\n @title = 'Gatorade'\n @body = 'Yung Lean'\n mock_contentful(ent",
"end": 991,
"score": 0.840342104434967,
"start": 983,
"tag": "NAME",
"value": "Gatorade"
},
{
"context": "ne) ->\n @title = 'Throw Some Ds'\n @body... | test/test.coffee | viksoh/roots-contentful-GAR | 90 | Roots = require 'roots'
S = require 'string'
W = require 'when'
_ = require 'lodash'
path = require 'path'
# setup, teardown, and utils
compile_fixture = (fixture_name, done) ->
@public = path.join(fixture_name, 'public')
h.project.compile(Roots, fixture_name)
mock_contentful = (opts = {}) ->
mockery.enable
... | 205712 | Roots = require 'roots'
S = require 'string'
W = require 'when'
_ = require 'lodash'
path = require 'path'
# setup, teardown, and utils
compile_fixture = (fixture_name, done) ->
@public = path.join(fixture_name, 'public')
h.project.compile(Roots, fixture_name)
mock_contentful = (opts = {}) ->
mockery.enable
... | true | Roots = require 'roots'
S = require 'string'
W = require 'when'
_ = require 'lodash'
path = require 'path'
# setup, teardown, and utils
compile_fixture = (fixture_name, done) ->
@public = path.join(fixture_name, 'public')
h.project.compile(Roots, fixture_name)
mock_contentful = (opts = {}) ->
mockery.enable
... |
[
{
"context": "cs/#info.info\n\nFramer.Info =\n\ttitle: \"\"\n\tauthor: \"Tony\"\n\ttwitter: \"\"\n\tdescription: \"\"\n\n\nbg = new Backgro",
"end": 146,
"score": 0.9993127584457397,
"start": 142,
"tag": "NAME",
"value": "Tony"
}
] | 72gridPhotos.framer/app.coffee | gremjua-forks/100daysofframer | 26 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "Tony"
twitter: ""
description: ""
bg = new BackgroundLayer
backgroundColor: "#dedede"
Framer.Defaults.Animation = curve: "spring(220, 23, 13)"
scroll = new ScrollComponen... | 214767 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "<NAME>"
twitter: ""
description: ""
bg = new BackgroundLayer
backgroundColor: "#dedede"
Framer.Defaults.Animation = curve: "spring(220, 23, 13)"
scroll = new ScrollCompon... | true | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "PI:NAME:<NAME>END_PI"
twitter: ""
description: ""
bg = new BackgroundLayer
backgroundColor: "#dedede"
Framer.Defaults.Animation = curve: "spring(220, 23, 13)"
scroll = ne... |
[
{
"context": " settings.apis.web.user\n\t\t\tpass: settings.apis.web.pass\n\t\t\tsendImmediately: true\n\t\tjson: true\n\t\tjar: fals",
"end": 1746,
"score": 0.5598128437995911,
"start": 1742,
"tag": "PASSWORD",
"value": "pass"
},
{
"context": "on = new User()\n\t\t@site_admin = new ... | test/acceptance/coffee/AuthorizationTests.coffee | bowlofstew/web-sharelatex | 0 | expect = require("chai").expect
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
try_read_access = (user, project_id, test, callback) ->
async.series [
(cb) ->
user.request.get "/project/#{project_id}", (error, response, body)... | 36364 | expect = require("chai").expect
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
try_read_access = (user, project_id, test, callback) ->
async.series [
(cb) ->
user.request.get "/project/#{project_id}", (error, response, body)... | true | expect = require("chai").expect
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
try_read_access = (user, project_id, test, callback) ->
async.series [
(cb) ->
user.request.get "/project/#{project_id}", (error, response, body)... |
[
{
"context": "onnecting\n @connecting = true\n console.log \"GEARMAN #{@uid}: connecting...\" if @debug\n @reconnecter = rec",
"end": 2978,
"score": 0.9764962196350098,
"start": 2964,
"tag": "NAME",
"value": "GEARMAN #{@uid"
},
{
"context": "necter = reconnect (socket) =>\n ... | lib/gearman.coffee | graveyard/gearman-node | 8 | # Convenience wrapper around the gearman protocol. Instead of sending/listening
# for binary packets from the gearman server you can do things like
#
# gearman = new Gearman
# gearman.connect()
# gearman.sendCommand 'SUBMIT_JOB', 'reverse', job_id, 'kitteh'
# gearman.on 'JOB_CREATED', (job_handle) -> ...
#
# Ot... | 25187 | # Convenience wrapper around the gearman protocol. Instead of sending/listening
# for binary packets from the gearman server you can do things like
#
# gearman = new Gearman
# gearman.connect()
# gearman.sendCommand 'SUBMIT_JOB', 'reverse', job_id, 'kitteh'
# gearman.on 'JOB_CREATED', (job_handle) -> ...
#
# Ot... | true | # Convenience wrapper around the gearman protocol. Instead of sending/listening
# for binary packets from the gearman server you can do things like
#
# gearman = new Gearman
# gearman.connect()
# gearman.sendCommand 'SUBMIT_JOB', 'reverse', job_id, 'kitteh'
# gearman.on 'JOB_CREATED', (job_handle) -> ...
#
# Ot... |
[
{
"context": "ound(Math.random()*1e6).toString(16)\n\t\tusername: 'quickpopup'\n\t\taccessKey: '8e15b554-ef7a-41b3-8e18-2778bcc6ae",
"end": 1765,
"score": 0.9995239973068237,
"start": 1755,
"tag": "USERNAME",
"value": "quickpopup"
},
{
"context": "String(16)\n\t\tusername: 'quickpopu... | .config/karma.conf.coffee | boba1987/quickpopup | 0 | DIR = if process.env.CI then 'dist' else 'build'
# LIB_FILE = if process.env.minified then "#{DIR}/quickpopup.js" else "#{DIR}/quickpopup.debug.js"
module.exports = (config)-> config.set
basePath: '../'
client: captureConsole: true unless process.env.sauce
browserConsoleLogOptions: level:'log', terminal:true
frame... | 30876 | DIR = if process.env.CI then 'dist' else 'build'
# LIB_FILE = if process.env.minified then "#{DIR}/quickpopup.js" else "#{DIR}/quickpopup.debug.js"
module.exports = (config)-> config.set
basePath: '../'
client: captureConsole: true unless process.env.sauce
browserConsoleLogOptions: level:'log', terminal:true
frame... | true | DIR = if process.env.CI then 'dist' else 'build'
# LIB_FILE = if process.env.minified then "#{DIR}/quickpopup.js" else "#{DIR}/quickpopup.debug.js"
module.exports = (config)-> config.set
basePath: '../'
client: captureConsole: true unless process.env.sauce
browserConsoleLogOptions: level:'log', terminal:true
frame... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.