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": "name = \"David\"\n\nexports.message = \"Hi, I'm #{name}\"",
"end": 14,
"score": 0.9394426941871643,
"start": 9,
"tag": "NAME",
"value": "David"
}
] | StitchIt.Specs/Fixtures/CoffeeScript/person.coffee | davidpadbury/StitchIt | 5 | name = "David"
exports.message = "Hi, I'm #{name}" | 199433 | name = "<NAME>"
exports.message = "Hi, I'm #{name}" | true | name = "PI:NAME:<NAME>END_PI"
exports.message = "Hi, I'm #{name}" |
[
{
"context": "tionUrl = \"/#{collectionName}\"\n keyName = '123456789012'\n keyUrl = \"#{collectionUrl}/#{keyName}\"\n\n",
"end": 2197,
"score": 0.999701201915741,
"start": 2185,
"tag": "KEY",
"value": "123456789012"
}
] | spec/integration/routing2backend.spec.coffee | trankimhieu/cucumber-storra | 1 | # This spec tests a larger part of Storra, though not the complete application.
# Test calls begin at router.js, thus leaving out bootstrap and server.js out
# of the equation. The backends are not mocked, so real database backends are
# used. Like backend.spec.coffee, this spec is parameterized and will be
# executed ... | 118655 | # This spec tests a larger part of Storra, though not the complete application.
# Test calls begin at router.js, thus leaving out bootstrap and server.js out
# of the equation. The backends are not mocked, so real database backends are
# used. Like backend.spec.coffee, this spec is parameterized and will be
# executed ... | true | # This spec tests a larger part of Storra, though not the complete application.
# Test calls begin at router.js, thus leaving out bootstrap and server.js out
# of the equation. The backends are not mocked, so real database backends are
# used. Like backend.spec.coffee, this spec is parameterized and will be
# executed ... |
[
{
"context": "79\"\n\t\t\tpassword: \"\"\n\t\t\t\n\tmongo:\n\t\turl: 'mongodb://127.0.0.1/sharelatex'\n\n\ts3:\n\t\tkey: process.env.AWS_ACCES",
"end": 1143,
"score": 0.9961053133010864,
"start": 1134,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "ub-latex-ci-dev\"\n\... | config/settings.defaults.coffee | sharelatex/github-latex-ci | 40 | if !process.env.GITHUB_CLIENT_ID? or !process.env.GITHUB_CLIENT_SECRET?
console.log """
Please set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
"""
process.exit(1)
if !process.env.AWS_ACCESS_KEY? or !process.env.AWS_SECRET_KEY?
console.log """
Please set AWS_ACCESS_KEY and AWS_SECRET_KEY env... | 211323 | if !process.env.GITHUB_CLIENT_ID? or !process.env.GITHUB_CLIENT_SECRET?
console.log """
Please set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
"""
process.exit(1)
if !process.env.AWS_ACCESS_KEY? or !process.env.AWS_SECRET_KEY?
console.log """
Please set AWS_ACCESS_KEY and AWS_SECRET_KEY env... | true | if !process.env.GITHUB_CLIENT_ID? or !process.env.GITHUB_CLIENT_SECRET?
console.log """
Please set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
"""
process.exit(1)
if !process.env.AWS_ACCESS_KEY? or !process.env.AWS_SECRET_KEY?
console.log """
Please set AWS_ACCESS_KEY and AWS_SECRET_KEY env... |
[
{
"context": "foreEach ->\n\t\t@user = \n\t\t\t_id:\"12390i\"\n\t\t\temail: \"bob@bob.com\"\n\t\t\tremove: sinon.stub().callsArgWith(0)\n\n\t\t@User",
"end": 273,
"score": 0.9999157786369324,
"start": 262,
"tag": "EMAIL",
"value": "bob@bob.com"
},
{
"context": "ser in mongo\", (done)... | test/UnitTests/coffee/User/UserDeleterTests.coffee | ukasiu/web-sharelatex | 0 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserDeleter.js"
SandboxedModule = require('sandboxed-module')
describe "UserDeleter", ->
beforeEach ->
@user =
_id:"12390i"
email: "bob@bob.com"
remove: sinon.stub().callsArgWith(0)
@U... | 39781 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserDeleter.js"
SandboxedModule = require('sandboxed-module')
describe "UserDeleter", ->
beforeEach ->
@user =
_id:"12390i"
email: "<EMAIL>"
remove: sinon.stub().callsArgWith(0)
@User ... | true | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserDeleter.js"
SandboxedModule = require('sandboxed-module')
describe "UserDeleter", ->
beforeEach ->
@user =
_id:"12390i"
email: "PI:EMAIL:<EMAIL>END_PI"
remove: sinon.stub().callsArgWi... |
[
{
"context": "\n @model.sync.create\n firstName: 'eric'\n lastName: 'cartman'\n\n @model.sy",
"end": 1637,
"score": 0.9997493624687195,
"start": 1633,
"tag": "NAME",
"value": "eric"
},
{
"context": "\n firstName: 'eric'\n lastName: 'c... | test/normal_schema/get/get_many.coffee | goodeggs/resource-schema | 3 | _ = require 'underscore'
fibrous = require 'fibrous'
mongoose = require 'mongoose'
expect = require('chai').expect
{suite, given} = require '../../support/helpers'
ResourceSchema = require '../../..'
suite 'GET many', ({withModel, withServer}) ->
describe 'basic schema', ->
withModel (mongoose) ->
mongoose... | 211309 | _ = require 'underscore'
fibrous = require 'fibrous'
mongoose = require 'mongoose'
expect = require('chai').expect
{suite, given} = require '../../support/helpers'
ResourceSchema = require '../../..'
suite 'GET many', ({withModel, withServer}) ->
describe 'basic schema', ->
withModel (mongoose) ->
mongoose... | true | _ = require 'underscore'
fibrous = require 'fibrous'
mongoose = require 'mongoose'
expect = require('chai').expect
{suite, given} = require '../../support/helpers'
ResourceSchema = require '../../..'
suite 'GET many', ({withModel, withServer}) ->
describe 'basic schema', ->
withModel (mongoose) ->
mongoose... |
[
{
"context": "# Vadim Ogievetsky\n\n# DVL is a framework for building highly interac",
"end": 18,
"score": 0.9998763799667358,
"start": 2,
"tag": "NAME",
"value": "Vadim Ogievetsky"
}
] | static/lib/dvl/dvl.coffee | GerHobbelt/tributary | 168 | # Vadim Ogievetsky
# DVL is a framework for building highly interactive user interfaces and data visualizations dynamically with JavaScript.
# DVL is based the concept that the data in a program should be the programmer’s main focus.
`
function lift(fn) {
var fn = arguments[0];
if ('function' !== typeof fn) thro... | 111320 | # <NAME>
# DVL is a framework for building highly interactive user interfaces and data visualizations dynamically with JavaScript.
# DVL is based the concept that the data in a program should be the programmer’s main focus.
`
function lift(fn) {
var fn = arguments[0];
if ('function' !== typeof fn) throw new Type... | true | # PI:NAME:<NAME>END_PI
# DVL is a framework for building highly interactive user interfaces and data visualizations dynamically with JavaScript.
# DVL is based the concept that the data in a program should be the programmer’s main focus.
`
function lift(fn) {
var fn = arguments[0];
if ('function' !== typeof fn) ... |
[
{
"context": "[key]\n aunt.fake = yes\n else if key is 'pomeranians' or key is 'goldfish'\n if value >= oneTrueAu",
"end": 918,
"score": 0.8396714925765991,
"start": 907,
"tag": "KEY",
"value": "pomeranians"
},
{
"context": "= yes\n else if key is 'pomeranians' or k... | advent16.coffee | kaiyote/adventOfCode | 0 | data = require('fs').readFileSync('advent16.txt', {encoding: 'utf8'}).trim().split '\r\n' # stupid windoze
oneTrueAunt =
children: 3
cats: 7
samoyeds: 2
pomeranians: 3
akitas: 0
vizslas: 0
goldfish: 5
trees: 3
cars: 2
perfumes: 1
aunts = data.map (line, index) ->
matches = line.match /(\d+): (.+... | 55881 | data = require('fs').readFileSync('advent16.txt', {encoding: 'utf8'}).trim().split '\r\n' # stupid windoze
oneTrueAunt =
children: 3
cats: 7
samoyeds: 2
pomeranians: 3
akitas: 0
vizslas: 0
goldfish: 5
trees: 3
cars: 2
perfumes: 1
aunts = data.map (line, index) ->
matches = line.match /(\d+): (.+... | true | data = require('fs').readFileSync('advent16.txt', {encoding: 'utf8'}).trim().split '\r\n' # stupid windoze
oneTrueAunt =
children: 3
cats: 7
samoyeds: 2
pomeranians: 3
akitas: 0
vizslas: 0
goldfish: 5
trees: 3
cars: 2
perfumes: 1
aunts = data.map (line, index) ->
matches = line.match /(\d+): (.+... |
[
{
"context": "ould.deep.equal\n version: 0\n name: 'devon'\n age: 21\n\n stream = new DecodeStream",
"end": 630,
"score": 0.9969978928565979,
"start": 625,
"tag": "NAME",
"value": "devon"
},
{
"context": "ould.deep.equal\n version: 1\n name: 'd... | node_modules/restructure/test/VersionedStruct.coffee | DABOZE/Queen-Alexa | 5 | {VersionedStruct, String:StringT, Pointer, uint8, DecodeStream, EncodeStream} = require '../'
should = require('chai').should()
concat = require 'concat-stream'
describe 'VersionedStruct', ->
describe 'decode', ->
it 'should get version from number type', ->
struct = new VersionedStruct uint8,
0:
... | 14920 | {VersionedStruct, String:StringT, Pointer, uint8, DecodeStream, EncodeStream} = require '../'
should = require('chai').should()
concat = require 'concat-stream'
describe 'VersionedStruct', ->
describe 'decode', ->
it 'should get version from number type', ->
struct = new VersionedStruct uint8,
0:
... | true | {VersionedStruct, String:StringT, Pointer, uint8, DecodeStream, EncodeStream} = require '../'
should = require('chai').should()
concat = require 'concat-stream'
describe 'VersionedStruct', ->
describe 'decode', ->
it 'should get version from number type', ->
struct = new VersionedStruct uint8,
0:
... |
[
{
"context": " = require 'core/storage'\nBEEN_HERE_BEFORE_KEY = 'beenHereBefore'\n{ getQueryVariable } = require('core/utils')\n\nin",
"end": 176,
"score": 0.6744160056114197,
"start": 162,
"tag": "KEY",
"value": "beenHereBefore"
}
] | app/core/auth.coffee | lrlinaresc/codecombatgiit | 1 | {backboneFailure, genericFailure, parseServerError} = require 'core/errors'
User = require 'models/User'
storage = require 'core/storage'
BEEN_HERE_BEFORE_KEY = 'beenHereBefore'
{ getQueryVariable } = require('core/utils')
init = ->
module.exports.me = window.me = new User(window.userObject) # inserted into main.htm... | 214079 | {backboneFailure, genericFailure, parseServerError} = require 'core/errors'
User = require 'models/User'
storage = require 'core/storage'
BEEN_HERE_BEFORE_KEY = '<KEY>'
{ getQueryVariable } = require('core/utils')
init = ->
module.exports.me = window.me = new User(window.userObject) # inserted into main.html
modul... | true | {backboneFailure, genericFailure, parseServerError} = require 'core/errors'
User = require 'models/User'
storage = require 'core/storage'
BEEN_HERE_BEFORE_KEY = 'PI:KEY:<KEY>END_PI'
{ getQueryVariable } = require('core/utils')
init = ->
module.exports.me = window.me = new User(window.userObject) # inserted into main... |
[
{
"context": "---------------------------------\n# Copyright 2013 I.B.M.\n# \n# Licensed under the Apache License, Version 2",
"end": 2421,
"score": 0.994509756565094,
"start": 2416,
"tag": "NAME",
"value": "I.B.M"
}
] | lib-src/coffee/node/services.coffee | pmuellr/nodprof | 6 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
express = require "express"
nodprof = require "../.."
utils = require "../common/utils"
logger = require "../common/logger"
services = exports
#-------------------------------------------------------------... | 210327 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
express = require "express"
nodprof = require "../.."
utils = require "../common/utils"
logger = require "../common/logger"
services = exports
#-------------------------------------------------------------... | true | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
express = require "express"
nodprof = require "../.."
utils = require "../common/utils"
logger = require "../common/logger"
services = exports
#-------------------------------------------------------------... |
[
{
"context": "ength' ]\n\n it \"lowercase\", ->\n input.value = 'HATMUFFIN'\n pv = new FieldValidator input,\n include",
"end": 682,
"score": 0.9174515008926392,
"start": 673,
"tag": "NAME",
"value": "HATMUFFIN"
},
{
"context": "ercase']\n\n it \"uppercase\", ->\n inp... | spec/FieldValidatorSpec.coffee | Zeumo/field-validator | 2 | input = document.createElement('input')
input.type = 'password'
describe 'arguments', ->
it 'accepts a DOM object', ->
f = new FieldValidator input,
include:
minLength: 6
expect( -> f.validate() ).not.toThrow()
it 'accepts a jQuery object', ->
$input = $('<input>')
f = new Field... | 101455 | input = document.createElement('input')
input.type = 'password'
describe 'arguments', ->
it 'accepts a DOM object', ->
f = new FieldValidator input,
include:
minLength: 6
expect( -> f.validate() ).not.toThrow()
it 'accepts a jQuery object', ->
$input = $('<input>')
f = new Field... | true | input = document.createElement('input')
input.type = 'password'
describe 'arguments', ->
it 'accepts a DOM object', ->
f = new FieldValidator input,
include:
minLength: 6
expect( -> f.validate() ).not.toThrow()
it 'accepts a jQuery object', ->
$input = $('<input>')
f = new Field... |
[
{
"context": "value = robot.getValue()\n value.jwt_token = uuid.v4()\n robot.setValue(value)\n robot.save(",
"end": 583,
"score": 0.7480263710021973,
"start": 574,
"tag": "KEY",
"value": "uuid.v4()"
},
{
"context": " name: value.name\n key: r... | src/persona/robot/routes.coffee | joukou/joukou-api | 0 | robot = require( '../../authn/creators/robot' )
authn = require( '../../authn' )
PersonaModel = require('../model')
restify = require( 'restify' )
uuid = require( 'node-uuid' )
module.exports = self =
registerRoutes: ( server ) ->
server.post( '/persona/:personaKey/robot', authn.... | 13715 | robot = require( '../../authn/creators/robot' )
authn = require( '../../authn' )
PersonaModel = require('../model')
restify = require( 'restify' )
uuid = require( 'node-uuid' )
module.exports = self =
registerRoutes: ( server ) ->
server.post( '/persona/:personaKey/robot', authn.... | true | robot = require( '../../authn/creators/robot' )
authn = require( '../../authn' )
PersonaModel = require('../model')
restify = require( 'restify' )
uuid = require( 'node-uuid' )
module.exports = self =
registerRoutes: ( server ) ->
server.post( '/persona/:personaKey/robot', authn.... |
[
{
"context": "e = \"dropbox\"\n\n\t\t@user =\n\t\t\t_id: @user_id = \"user-id\"\n\t\t\tprojects: {}\n\n\t\t@rooms = {}\n\t\t@io =\n\t\t\tsocket",
"end": 534,
"score": 0.6360605955123901,
"start": 532,
"tag": "USERNAME",
"value": "id"
},
{
"context": "\t\t\t\t@newAccessLevel = 'tokenB... | test/UnitTests/coffee/Editor/EditorControllerTests.coffee | HasanSanli/web-sharelatex | 0 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... | 75883 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... | true | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... |
[
{
"context": "= [\n ['x', 6]\n ['y', 2]\n ['name', 'Ray-Ray']\n ]\n\n itemArray2 = [\n ['x', 6]\n ",
"end": 3900,
"score": 0.998973548412323,
"start": 3893,
"tag": "NAME",
"value": "Ray-Ray"
},
{
"context": "= [\n ['x', 6]\n ['y', 2]\n ['... | test/utils.spec.coffee | spiralx/slush-modular-angular | 0 |
expect = require('chai').expect
utils = require '../lib/utils'
# -----------------------------------------------------------------------------
describe 'lib/utils.coffee', ->
describe 'splitext()', ->
it 'should get the right extension', (done) ->
expect utils.splitext 'foo.html'
.to.eql ['foo... | 146096 |
expect = require('chai').expect
utils = require '../lib/utils'
# -----------------------------------------------------------------------------
describe 'lib/utils.coffee', ->
describe 'splitext()', ->
it 'should get the right extension', (done) ->
expect utils.splitext 'foo.html'
.to.eql ['foo... | true |
expect = require('chai').expect
utils = require '../lib/utils'
# -----------------------------------------------------------------------------
describe 'lib/utils.coffee', ->
describe 'splitext()', ->
it 'should get the right extension', (done) ->
expect utils.splitext 'foo.html'
.to.eql ['foo... |
[
{
"context": "stem\n# More informations here: https://github.com/Tronix117/tradify\n# Translation files should be saved in `l",
"end": 241,
"score": 0.9975275993347168,
"start": 232,
"tag": "USERNAME",
"value": "Tronix117"
},
{
"context": "hing with `tr('{0} day', numberOfDay)`\n#\n#... | app/lib/i18n.coffee | Tronix117/brunch-with-beer | 0 | ###
# I18n class
# Allow you to add Internationalization to your CoffeeScript application
#
# Just call it with a `require 'util/I18n'` or `new I18n` if you don't have a `require` system
# More informations here: https://github.com/Tronix117/tradify
# Translation files should be saved in `locales/{langage code}.coffee`... | 158743 | ###
# I18n class
# Allow you to add Internationalization to your CoffeeScript application
#
# Just call it with a `require 'util/I18n'` or `new I18n` if you don't have a `require` system
# More informations here: https://github.com/Tronix117/tradify
# Translation files should be saved in `locales/{langage code}.coffee`... | true | ###
# I18n class
# Allow you to add Internationalization to your CoffeeScript application
#
# Just call it with a `require 'util/I18n'` or `new I18n` if you don't have a `require` system
# More informations here: https://github.com/Tronix117/tradify
# Translation files should be saved in `locales/{langage code}.coffee`... |
[
{
"context": "eads} = enums\n\n storylet 'jackieStart',\n 'Jackie, old-school detective'\n '''\n Jackie is ",
"end": 219,
"score": 0.9995501041412354,
"start": 213,
"tag": "NAME",
"value": "Jackie"
},
{
"context": " 'Jackie, old-school detective'\n '''\n ... | src/coffee/game/jackie.coffee | arashikou/exper3-2015 | 0 | angular.module 'gameDefinition.jackieStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'jackieStart',
'Jackie, old-school detective'
'''
Jackie is in his office when you find him. It's never a good ... | 73597 | angular.module 'gameDefinition.jackieStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'jackieStart',
'<NAME>, old-school detective'
'''
<NAME> is in his office when you find him. It's never a good ... | true | angular.module 'gameDefinition.jackieStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'jackieStart',
'PI:NAME:<NAME>END_PI, old-school detective'
'''
PI:NAME:<NAME>END_PI is in his office when you ... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero G",
"end": 27,
"score": 0.7614415884017944,
"start": 17,
"tag": "NAME",
"value": "py Pty Ltd"
},
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General... | resources/assets/coffee/_classes/turbolinks-ujs.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.
class @TurbolinksUjs
constructor: ->
@xhr = []
$(document).on 'ajax:beforeSend', @record
$(document).on 'turbolinks:before-cache',... | 170324 | # Copyright (c) p<NAME> <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @TurbolinksUjs
constructor: ->
@xhr = []
$(document).on 'ajax:beforeSend', @record
$(document).on 'turbolinks:before-cache', @abort
... | true | # Copyright (c) pPI:NAME:<NAME>END_PI <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.
class @TurbolinksUjs
constructor: ->
@xhr = []
$(document).on 'ajax:beforeSend', @record
$(document).on 'turboli... |
[
{
"context": "oGLib\n# Module | Stat Methods\n# Author | Sherif Emabrak\n# Description | The voronoi method partitions the",
"end": 163,
"score": 0.999873161315918,
"start": 149,
"tag": "NAME",
"value": "Sherif Emabrak"
}
] | src/lib/statistics/bin/voronoi.coffee | Sherif-Embarak/gp-test | 0 | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat Methods
# Author | Sherif Emabrak
# Description | The voronoi method partitions the plane with Voronoi polygons
# ----------------------------------------------------------------------------... | 213770 | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat Methods
# Author | <NAME>
# Description | The voronoi method partitions the plane with Voronoi polygons
# ------------------------------------------------------------------------------
voron... | true | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat Methods
# Author | PI:NAME:<NAME>END_PI
# Description | The voronoi method partitions the plane with Voronoi polygons
# ----------------------------------------------------------------------... |
[
{
"context": "###\n Partially extracted from https://github.com/padolsey/mini/blob/master/mini.js\n \"mini\" Selector Engine\n",
"end": 57,
"score": 0.997880220413208,
"start": 49,
"tag": "USERNAME",
"value": "padolsey"
},
{
"context": "ini.js\n \"mini\" Selector Engine\n Copyright (... | src/tb/lib/ti/helpers/matchers.coffee | vcu/titanium-backbone | 1 | ###
Partially extracted from https://github.com/padolsey/mini/blob/master/mini.js
"mini" Selector Engine
Copyright (c) 2009 James Padolsey
-------------------------------------------------------
Dual licensed under the MIT and GPL licenses.
- http://www.opensource.org/licenses/mit-license.php
- http://www.... | 191930 | ###
Partially extracted from https://github.com/padolsey/mini/blob/master/mini.js
"mini" Selector Engine
Copyright (c) 2009 <NAME>
-------------------------------------------------------
Dual licensed under the MIT and GPL licenses.
- http://www.opensource.org/licenses/mit-license.php
- http://www.gnu.org/... | true | ###
Partially extracted from https://github.com/padolsey/mini/blob/master/mini.js
"mini" Selector Engine
Copyright (c) 2009 PI:NAME:<NAME>END_PI
-------------------------------------------------------
Dual licensed under the MIT and GPL licenses.
- http://www.opensource.org/licenses/mit-license.php
- http:... |
[
{
"context": " db: '_mm',\n password: 'very secret password'\n }).should.throw('`password` provided",
"end": 5464,
"score": 0.9992255568504333,
"start": 5444,
"tag": "PASSWORD",
"value": "very secret password"
}
] | test/util.coffee | rbrazhnyk/mongodb-migrations | 0 | { _buildOptions, normalizeConfig } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
a: 1
_buildOptions(config).should.be.... | 102640 | { _buildOptions, normalizeConfig } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
a: 1
_buildOptions(config).should.be.... | true | { _buildOptions, normalizeConfig } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
a: 1
_buildOptions(config).should.be.... |
[
{
"context": "es GBV (VZG)\n * MIT Licence\n * https://github.com/programmfabrik/easydb-custom-data-type-gnd\n###\n\ndescribe 'Custom",
"end": 177,
"score": 0.9516709446907043,
"start": 163,
"tag": "USERNAME",
"value": "programmfabrik"
},
{
"context": "://d-nb.info/gnd/1038709040\",\... | test/smoke.test.coffee | ssciwr/easydb-custom-data-type-ubhdgnd | 0 | ###
* easydb-custom-data-type-gnd - easydb 5 plugin
* Copyright (c) 2016 Programmfabrik GmbH, Verbundzentrale des GBV (VZG)
* MIT Licence
* https://github.com/programmfabrik/easydb-custom-data-type-gnd
###
describe 'CustomDataTypeGNDUBHD', () ->
# create a new instance
gndtype = new CustomDataTypeGNDUBHD
i... | 32289 | ###
* easydb-custom-data-type-gnd - easydb 5 plugin
* Copyright (c) 2016 Programmfabrik GmbH, Verbundzentrale des GBV (VZG)
* MIT Licence
* https://github.com/programmfabrik/easydb-custom-data-type-gnd
###
describe 'CustomDataTypeGNDUBHD', () ->
# create a new instance
gndtype = new CustomDataTypeGNDUBHD
i... | true | ###
* easydb-custom-data-type-gnd - easydb 5 plugin
* Copyright (c) 2016 Programmfabrik GmbH, Verbundzentrale des GBV (VZG)
* MIT Licence
* https://github.com/programmfabrik/easydb-custom-data-type-gnd
###
describe 'CustomDataTypeGNDUBHD', () ->
# create a new instance
gndtype = new CustomDataTypeGNDUBHD
i... |
[
{
"context": "lback\"\n twitter:\n consumerKey: \"Ila1ubIfdLB0hAbsDQfnXXknp\"\n consumerSecr",
"end": 365,
"score": 0.5607481598854065,
"start": 364,
"tag": "KEY",
"value": "I"
},
{
"context": "\n consumerKey: \"Ila1ubIfdLB0hAbsDQfnXXknp\"\n ... | config/default.coffee | atsid/ultron | 5 | module.exports =
monitoring:
newRelicKey: null
newRelicAppName: "DrugFax-18F"
container:
composed: 0
auth:
facebook:
clientID: "1414028015593160"
clientSecret: "bogus_secret"
callbackUrl: "http://localhost:9000/api/auth/facebook/callback"... | 84240 | module.exports =
monitoring:
newRelicKey: null
newRelicAppName: "DrugFax-18F"
container:
composed: 0
auth:
facebook:
clientID: "1414028015593160"
clientSecret: "bogus_secret"
callbackUrl: "http://localhost:9000/api/auth/facebook/callback"... | true | module.exports =
monitoring:
newRelicKey: null
newRelicAppName: "DrugFax-18F"
container:
composed: 0
auth:
facebook:
clientID: "1414028015593160"
clientSecret: "bogus_secret"
callbackUrl: "http://localhost:9000/api/auth/facebook/callback"... |
[
{
"context": " hideIgnoredNames: true\n wakatime:\n apikey: \"f6f11f84-a183-4415-88b2-1e361eddfd45\"\n ignore: [\n \"^/var/\"\n \"^/tmp/\"\n ",
"end": 962,
"score": 0.9997140169143677,
"start": 926,
"tag": "KEY",
"value": "f6f11f84-a183-4415-88b2-1e361eddfd45"
}
] | atom/symlink.config.cson | wyze/dotfiles | 1 | "*":
"autocomplete-plus":
enableAutoActivation: false
core:
themes: [
"one-dark-ui"
"hybrid-next-syntax"
]
editor:
fontFamily: "\"Fira Code\""
fontSize: 16
invisibles: {}
scrollPastEnd: true
showIndentGuide: true
showInvisibles: true
"exception-reporting":
use... | 37065 | "*":
"autocomplete-plus":
enableAutoActivation: false
core:
themes: [
"one-dark-ui"
"hybrid-next-syntax"
]
editor:
fontFamily: "\"Fira Code\""
fontSize: 16
invisibles: {}
scrollPastEnd: true
showIndentGuide: true
showInvisibles: true
"exception-reporting":
use... | true | "*":
"autocomplete-plus":
enableAutoActivation: false
core:
themes: [
"one-dark-ui"
"hybrid-next-syntax"
]
editor:
fontFamily: "\"Fira Code\""
fontSize: 16
invisibles: {}
scrollPastEnd: true
showIndentGuide: true
showInvisibles: true
"exception-reporting":
use... |
[
{
"context": "\"\\n\")\r\n\r\n ###\r\n \"// Based off of post by las\"\r\n \"// http://www.pouet.net/topic.php?whic",
"end": 2581,
"score": 0.9201262593269348,
"start": 2578,
"tag": "NAME",
"value": "las"
}
] | website/prototypes/storm_shader/src/ifl/shaders/IFLTornadoShader.coffee | GyanaPrasannaa/oz-experiment | 0 | class IFLTornadoShader
uniforms: {
"time": { type: "f", value: 1.0 }
"resolution": { type: "v3", value: new THREE.Vector3( 200, 200, 1 ) }
"mouse" : { type: "v3", value: new THREE.Vector3( 1, 1, 1 ) }
"zoom" : { type: "f", value: 1.0 }
}
vertexShader: [
... | 70057 | class IFLTornadoShader
uniforms: {
"time": { type: "f", value: 1.0 }
"resolution": { type: "v3", value: new THREE.Vector3( 200, 200, 1 ) }
"mouse" : { type: "v3", value: new THREE.Vector3( 1, 1, 1 ) }
"zoom" : { type: "f", value: 1.0 }
}
vertexShader: [
... | true | class IFLTornadoShader
uniforms: {
"time": { type: "f", value: 1.0 }
"resolution": { type: "v3", value: new THREE.Vector3( 200, 200, 1 ) }
"mouse" : { type: "v3", value: new THREE.Vector3( 1, 1, 1 ) }
"zoom" : { type: "f", value: 1.0 }
}
vertexShader: [
... |
[
{
"context": "real_name: 'real_name'\n profile:\n email: 'email@example.com'\n misc: 'misc'\n @stubs.userperiod =\n name:",
"end": 1561,
"score": 0.9999223947525024,
"start": 1544,
"tag": "EMAIL",
"value": "email@example.com"
},
{
"context": " misc: 'misc'\n @stubs... | test/stubs.coffee | Moxsen/hubot-slack | 23 | # Setup stubs used by the other tests
Promise = require 'bluebird'
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
{ SlackTextMessage } = require '../src/message'
# Use Hubot's brain in our stubs
{Brain, Robot} = requir... | 100325 | # Setup stubs used by the other tests
Promise = require 'bluebird'
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
{ SlackTextMessage } = require '../src/message'
# Use Hubot's brain in our stubs
{Brain, Robot} = requir... | true | # Setup stubs used by the other tests
Promise = require 'bluebird'
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
{ SlackTextMessage } = require '../src/message'
# Use Hubot's brain in our stubs
{Brain, Robot} = requir... |
[
{
"context": "args'\n\nargv = yargs\n .usage('Usage: $0 --token 377sdgsr32r3afpafsp --mongoDb \\\"mongoDb://localhost:27017/github\\\" --",
"end": 404,
"score": 0.9972577691078186,
"start": 385,
"tag": "PASSWORD",
"value": "377sdgsr32r3afpafsp"
}
] | muse-crawlers/github_finder/src/index.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
##
chalk = require 'chalk'
https = require 'https'
url = require 'url'
mongo = require 'mongodb'
sleep = require 'sleep'
client = mongo.MongoClient
yar... | 15872 | ##
## Copyright (c) 2014-2017 Leidos.
##
## License: 3-clause BSD, see https://opensource.org/licenses/BSD-3-Clause
##
##
## Developed under contract #FA8750-14-C-0241
##
chalk = require 'chalk'
https = require 'https'
url = require 'url'
mongo = require 'mongodb'
sleep = require 'sleep'
client = mongo.MongoClient
yar... | 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
##
chalk = require 'chalk'
https = require 'https'
url = require 'url'
mongo = require 'mongodb'
sleep = require 'sleep'
client = mongo.MongoClient
yar... |
[
{
"context": ":<br />\n <input ref=\"password\" type=\"password\" className=\"standard-input\" size=\"20\" />\n ",
"end": 2110,
"score": 0.9320225715637207,
"start": 2102,
"tag": "PASSWORD",
"value": "password"
}
] | app/pages/reset-password.cjsx | camallen/Panoptes-Front-End | 0 | React = { findDOMNode } = require 'react'
auth = require '../api/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
module.exports = React.createClass
displayName: 'ResetPasswordPage'
getDefaultProps: ->
query: {}
getInitialState: ->
inProgress: false
resetSuccess... | 224374 | React = { findDOMNode } = require 'react'
auth = require '../api/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
module.exports = React.createClass
displayName: 'ResetPasswordPage'
getDefaultProps: ->
query: {}
getInitialState: ->
inProgress: false
resetSuccess... | true | React = { findDOMNode } = require 'react'
auth = require '../api/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
module.exports = React.createClass
displayName: 'ResetPasswordPage'
getDefaultProps: ->
query: {}
getInitialState: ->
inProgress: false
resetSuccess... |
[
{
"context": "placement for wkhtmltoimage\n#\n# Copyright (c) 2013 Aaron Stone <aaron@serendipity.cx>\n#\n# Permission is hereby g",
"end": 111,
"score": 0.9998858571052551,
"start": 100,
"tag": "NAME",
"value": "Aaron Stone"
},
{
"context": "wkhtmltoimage\n#\n# Copyright (c) 2013 Aa... | pjhtmltoimage.coffee | sodabrew/pjhtmltopdf | 0 | #!/usr/bin/env phantomjs
#
# PhantomJS drop-in replacement for wkhtmltoimage
#
# Copyright (c) 2013 Aaron Stone <aaron@serendipity.cx>
#
# 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 withou... | 53889 | #!/usr/bin/env phantomjs
#
# PhantomJS drop-in replacement for wkhtmltoimage
#
# Copyright (c) 2013 <NAME> <<EMAIL>>
#
# 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, inc... | true | #!/usr/bin/env phantomjs
#
# PhantomJS drop-in replacement for wkhtmltoimage
#
# Copyright (c) 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# 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 Soft... |
[
{
"context": "###\n@authors\nJulian Popescu - https://github.com/jpopesculian\nRick Huizinga -",
"end": 27,
"score": 0.9998857378959656,
"start": 13,
"tag": "NAME",
"value": "Julian Popescu"
},
{
"context": "###\n@authors\nJulian Popescu - https://github.com/jpopesculian\nRick Huizin... | SafetyNet_Mobile/www/lib/angular-google-maps-master/src/coffee/directives/circle.coffee | donh/pheonix | 1 | ###
@authors
Julian Popescu - https://github.com/jpopesculian
Rick Huizinga - https://plus.google.com/+RickHuizinga
###
angular.module('uiGmapgoogle-maps').directive "uiGmapCircle", [
"uiGmapCircle", (Circle) -> Circle
]
| 132657 | ###
@authors
<NAME> - https://github.com/jpopesculian
<NAME> - https://plus.google.com/+RickHuizinga
###
angular.module('uiGmapgoogle-maps').directive "uiGmapCircle", [
"uiGmapCircle", (Circle) -> Circle
]
| true | ###
@authors
PI:NAME:<NAME>END_PI - https://github.com/jpopesculian
PI:NAME:<NAME>END_PI - https://plus.google.com/+RickHuizinga
###
angular.module('uiGmapgoogle-maps').directive "uiGmapCircle", [
"uiGmapCircle", (Circle) -> Circle
]
|
[
{
"context": "\n credentials =\n id: id\n key: \"werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn\"\n algorithm: \"sha256\"\n user: \"steve",
"end": 409,
"score": 0.9997557401657104,
"start": 366,
"tag": "KEY",
"value": "werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn... | deps/npm/node_modules/request/node_modules/hawk/test/uri.coffee | lxe/io.coffee | 0 | # Load modules
Http = require("http")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "Uri", ->
credentialsFunc = (id, callback) ->
... | 7829 | # Load modules
Http = require("http")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "Uri", ->
credentialsFunc = (id, callback) ->
... | true | # Load modules
Http = require("http")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "Uri", ->
credentialsFunc = (id, callback) ->
... |
[
{
"context": "le.exports = React.createClass\n displyName: 'sign_in'\n getInitialState: ->\n account:\n email",
"end": 341,
"score": 0.757941722869873,
"start": 341,
"tag": "USERNAME",
"value": ""
},
{
"context": "->\n account:\n email: \"\"\n password: \"\"... | assets/views/sign_in.cjsx | DevReljp/Yokoso | 0 | 'use strict'
React = require 'react'
Addons = require 'react/addons'
Router = require 'react-router'
Bootstrap = require 'react-bootstrap'
Link = Router.Link
Col = Bootstrap.Col
Input = Bootstrap.Input
ButtonInput = Bootstrap.ButtonInput
Alert = Bootstrap.Alert
Menu = require './menu'
module.exports = React.createClas... | 150479 | 'use strict'
React = require 'react'
Addons = require 'react/addons'
Router = require 'react-router'
Bootstrap = require 'react-bootstrap'
Link = Router.Link
Col = Bootstrap.Col
Input = Bootstrap.Input
ButtonInput = Bootstrap.ButtonInput
Alert = Bootstrap.Alert
Menu = require './menu'
module.exports = React.createClas... | true | 'use strict'
React = require 'react'
Addons = require 'react/addons'
Router = require 'react-router'
Bootstrap = require 'react-bootstrap'
Link = Router.Link
Col = Bootstrap.Col
Input = Bootstrap.Input
ButtonInput = Bootstrap.ButtonInput
Alert = Bootstrap.Alert
Menu = require './menu'
module.exports = React.createClas... |
[
{
"context": " v1 = curry presence, \"email\", true\n v1(email: \"dogs@us.gov\")\n .then (model) ->\n assert.deepEqual model, ",
"end": 1331,
"score": 0.9999215006828308,
"start": 1320,
"tag": "EMAIL",
"value": "dogs@us.gov"
},
{
"context": "en (model) ->\n assert.deepEqual ... | tests/unit/utils/compose-test.coffee | foxnewsnetwork/ember-functional-validation | 4 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import compose from 'ember-functional-validation/utils/compose'`
`import { merge } from 'ember-functional-validation/utils/compose'`
`import presence from 'ember-functional-validation/validators/presence'`
`import curry from 'ember-functional-validatio... | 198075 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import compose from 'ember-functional-validation/utils/compose'`
`import { merge } from 'ember-functional-validation/utils/compose'`
`import presence from 'ember-functional-validation/validators/presence'`
`import curry from 'ember-functional-validatio... | true | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import compose from 'ember-functional-validation/utils/compose'`
`import { merge } from 'ember-functional-validation/utils/compose'`
`import presence from 'ember-functional-validation/validators/presence'`
`import curry from 'ember-functional-validatio... |
[
{
"context": "andomNumberForTest(max_guesser_count)\n names = [\"Valentin\",\"Albert\",\"Naum\",\"Evgeniya\",\"Ludmila\",\"Volya\",\"Gr",
"end": 194,
"score": 0.9998080134391785,
"start": 186,
"tag": "NAME",
"value": "Valentin"
},
{
"context": "ForTest(max_guesser_count)\n names = ... | app/assets/javascripts/create_json.js.coffee | Orasi/code-challenge-grading | 0 | root = exports ? this
root.createCandyCountJSON = ->
max_candy_count = 1000
max_guesser_count = 250
number_of_people_guessing = randomNumberForTest(max_guesser_count)
names = ["Valentin","Albert","Naum","Evgeniya","Ludmila","Volya","Grigory", "Tatiana", "Harvey", "Stefan", "Warrick", "Briallen", "Moyna", 'Nur'... | 32501 | root = exports ? this
root.createCandyCountJSON = ->
max_candy_count = 1000
max_guesser_count = 250
number_of_people_guessing = randomNumberForTest(max_guesser_count)
names = ["<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", '<NAME>',
... | true | root = exports ? this
root.createCandyCountJSON = ->
max_candy_count = 1000
max_guesser_count = 250
number_of_people_guessing = randomNumberForTest(max_guesser_count)
names = ["PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_P... |
[
{
"context": " # username: \"jdunham\")\n\n defaultFieldDBDatum: ->\n defaults =\n ",
"end": 13437,
"score": 0.9996931552886963,
"start": 13430,
"tag": "USERNAME",
"value": "jdunham"
},
{
"context": ", e.g.,\n # ... | app/scripts/models/form.coffee | OpenSourceFieldlinguistics/dative | 7 | define [
'./resource'
'./../utils/globals'
], (ResourceModel, globals) ->
# Form Model
# ----------
#
# A Backbone model for Dative forms.
class FormModel extends ResourceModel
initialize: (attributes, options) ->
super
@setAttributesArrays()
setAttributesArrays: ->
if @activ... | 136826 | define [
'./resource'
'./../utils/globals'
], (ResourceModel, globals) ->
# Form Model
# ----------
#
# A Backbone model for Dative forms.
class FormModel extends ResourceModel
initialize: (attributes, options) ->
super
@setAttributesArrays()
setAttributesArrays: ->
if @activ... | true | define [
'./resource'
'./../utils/globals'
], (ResourceModel, globals) ->
# Form Model
# ----------
#
# A Backbone model for Dative forms.
class FormModel extends ResourceModel
initialize: (attributes, options) ->
super
@setAttributesArrays()
setAttributesArrays: ->
if @activ... |
[
{
"context": "t Labs', require 'transducers-js')\n testWithLib('James Long\\'s', require 'transducers.js')\n",
"end": 5419,
"score": 0.9938916563987732,
"start": 5406,
"tag": "NAME",
"value": "James Long\\'s"
}
] | test/specs/transduce.coffee | raimohanska/kefir | 0 | {stream, prop, send, Kefir} = require('../test-helpers.coffee')
comp = (fns...) ->
(x) ->
for f in fns.slice(0).reverse()
x = f(x)
x
testWithLib = (name, t) ->
describe "with #{name} implementation", ->
describe 'stream', ->
it '`map` should work', ->
a = stream()
e... | 41730 | {stream, prop, send, Kefir} = require('../test-helpers.coffee')
comp = (fns...) ->
(x) ->
for f in fns.slice(0).reverse()
x = f(x)
x
testWithLib = (name, t) ->
describe "with #{name} implementation", ->
describe 'stream', ->
it '`map` should work', ->
a = stream()
e... | true | {stream, prop, send, Kefir} = require('../test-helpers.coffee')
comp = (fns...) ->
(x) ->
for f in fns.slice(0).reverse()
x = f(x)
x
testWithLib = (name, t) ->
describe "with #{name} implementation", ->
describe 'stream', ->
it '`map` should work', ->
a = stream()
e... |
[
{
"context": "oximate city'\n version: '0.5'\n authors: [\n 'Tunnecino @ ignitae.com'\n ]\n",
"end": 2891,
"score": 0.6318277716636658,
"start": 2883,
"tag": "NAME",
"value": "unnecino"
},
{
"context": "ty'\n version: '0.5'\n authors: [\n 'Tunnecino @ ignitae.com'\n ]\n",... | plugins/wunderground.coffee | Arrogance/nerdobot | 1 | request = require 'request'
util = require '../lib/util'
module.exports = (apikey) ->
searchURL = (location) ->
location = encodeURIComponent location
"http://api.wunderground.com/api/#{apikey}/forecast/lang:EN/q/autoip/#{location}.json"
infoURL = (zmw) ->
zmw = encodeURIComponent zmw
"http://api.... | 208104 | request = require 'request'
util = require '../lib/util'
module.exports = (apikey) ->
searchURL = (location) ->
location = encodeURIComponent location
"http://api.wunderground.com/api/#{apikey}/forecast/lang:EN/q/autoip/#{location}.json"
infoURL = (zmw) ->
zmw = encodeURIComponent zmw
"http://api.... | true | request = require 'request'
util = require '../lib/util'
module.exports = (apikey) ->
searchURL = (location) ->
location = encodeURIComponent location
"http://api.wunderground.com/api/#{apikey}/forecast/lang:EN/q/autoip/#{location}.json"
infoURL = (zmw) ->
zmw = encodeURIComponent zmw
"http://api.... |
[
{
"context": " using sync methods for comparison:\n password = 'topsecret'\n notPassword = 'somethingelse'\n encrypted = bc",
"end": 790,
"score": 0.9993611574172974,
"start": 781,
"tag": "PASSWORD",
"value": "topsecret"
},
{
"context": "arison:\n password = 'topsecret'\n notPas... | test/no-domain.coffee | sehrope/node-bcrypt-domain-aware | 0 | bcrypt = require './app'
domain = require 'domain'
{assert, expect} = require 'chai'
describe 'generating a salt without a domain', () ->
it 'should have no active domain when invoking the callback', (done) ->
bcrypt.genSalt 10, (err, salt) ->
expect(err).to.be.not.ok
expect(salt).to.be.ok
expe... | 47597 | bcrypt = require './app'
domain = require 'domain'
{assert, expect} = require 'chai'
describe 'generating a salt without a domain', () ->
it 'should have no active domain when invoking the callback', (done) ->
bcrypt.genSalt 10, (err, salt) ->
expect(err).to.be.not.ok
expect(salt).to.be.ok
expe... | true | bcrypt = require './app'
domain = require 'domain'
{assert, expect} = require 'chai'
describe 'generating a salt without a domain', () ->
it 'should have no active domain when invoking the callback', (done) ->
bcrypt.genSalt 10, (err, salt) ->
expect(err).to.be.not.ok
expect(salt).to.be.ok
expe... |
[
{
"context": " id: 0\n name: placeName\n address: ",
"end": 11240,
"score": 0.556479275226593,
"start": 11235,
"tag": "NAME",
"value": "place"
}
] | app/assets/javascripts/main.coffee | tmiw/emvAcceptedHere | 1 | if not MainApp?
MainApp = exports? and exports or @MainApp = {}
else
MainApp = @MainApp
class MainApp.MainController extends SimpleMVC.Controller
_navigateDebounce: () =>
if this._navTimeoutId?
clearTimeout this._navTimeoutId
this._navTimeoutId = setTimeout this._na... | 59733 | if not MainApp?
MainApp = exports? and exports or @MainApp = {}
else
MainApp = @MainApp
class MainApp.MainController extends SimpleMVC.Controller
_navigateDebounce: () =>
if this._navTimeoutId?
clearTimeout this._navTimeoutId
this._navTimeoutId = setTimeout this._na... | true | if not MainApp?
MainApp = exports? and exports or @MainApp = {}
else
MainApp = @MainApp
class MainApp.MainController extends SimpleMVC.Controller
_navigateDebounce: () =>
if this._navTimeoutId?
clearTimeout this._navTimeoutId
this._navTimeoutId = setTimeout this._na... |
[
{
"context": "CK_MINUTES = 1\nALARM_NAME = 'tick'\nSTORAGE_KEY = 'chromagochi'\nLIFE_MINUTES = 120\nBLINK_INTERVAL = 300\nBLINK_LI",
"end": 63,
"score": 0.9941796660423279,
"start": 52,
"tag": "KEY",
"value": "chromagochi"
},
{
"context": "RVAL = 300\nBLINK_LIMIT = 30\nMAX_HUE = 359\... | src/background.coffee | aquilax/chromagochi | 0 | TICK_MINUTES = 1
ALARM_NAME = 'tick'
STORAGE_KEY = 'chromagochi'
LIFE_MINUTES = 120
BLINK_INTERVAL = 300
BLINK_LIMIT = 30
MAX_HUE = 359
NAME = 'Chromagochi'
# http://jsfiddle.net/EPWF6/9/
hsl2rgb = (H, S, L) ->
# calculate chroma
C = (1 - Math.abs((2 * L) - 1)) * S
# Find a point (R1, G1, B1) along the bottom thr... | 40699 | TICK_MINUTES = 1
ALARM_NAME = 'tick'
STORAGE_KEY = '<KEY>'
LIFE_MINUTES = 120
BLINK_INTERVAL = 300
BLINK_LIMIT = 30
MAX_HUE = 359
NAME = '<NAME>'
# http://jsfiddle.net/EPWF6/9/
hsl2rgb = (H, S, L) ->
# calculate chroma
C = (1 - Math.abs((2 * L) - 1)) * S
# Find a point (R1, G1, B1) along the bottom three faces of... | true | TICK_MINUTES = 1
ALARM_NAME = 'tick'
STORAGE_KEY = 'PI:KEY:<KEY>END_PI'
LIFE_MINUTES = 120
BLINK_INTERVAL = 300
BLINK_LIMIT = 30
MAX_HUE = 359
NAME = 'PI:NAME:<NAME>END_PI'
# http://jsfiddle.net/EPWF6/9/
hsl2rgb = (H, S, L) ->
# calculate chroma
C = (1 - Math.abs((2 * L) - 1)) * S
# Find a point (R1, G1, B1) alon... |
[
{
"context": "7993\",\n \"author\": {\n \"name\": \"Artsy Editorial\"\n },\n \"contributing_",
"end": 1346,
"score": 0.6985335946083069,
"start": 1342,
"tag": "NAME",
"value": "Arts"
},
{
"context": ",\n \"author\": {\n \"name... | src/mobile/apps/articles/test/client/articles.test.coffee | jo-rs/force | 0 | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
path = require 'path'
{ fabricate } = require '@artsy/antigravity'
Articles = require '../../../../collections/articles'
Article = require '../../../../models/article'
fixtures = require '../../../../test/helpers/fixtur... | 47547 | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
path = require 'path'
{ fabricate } = require '@artsy/antigravity'
Articles = require '../../../../collections/articles'
Article = require '../../../../models/article'
fixtures = require '../../../../test/helpers/fixtur... | true | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
path = require 'path'
{ fabricate } = require '@artsy/antigravity'
Articles = require '../../../../collections/articles'
Article = require '../../../../models/article'
fixtures = require '../../../../test/helpers/fixtur... |
[
{
"context": "pr = @ce().run()\n\t\t\t.then (po) =>\n\t\t\t\t@env.succ \"Kubusschnitt\"\t\t\t=> FFF6: ut ITSELF resolved promise: [[Kubussc",
"end": 3622,
"score": 0.9966457486152649,
"start": 3611,
"tag": "NAME",
"value": "ubusschnitt"
},
{
"context": "@ce().run()\n\t\t\t.then (po) ... | UT.coffee | remoteportal/yajut | 1 | #if node
REMOVE_ME_MS = 10 #H
#else
REMOVE_ME_MS = 11
#endif
###
YAJUT - Yet Another Javascript Unit T e s t a.shift "pop() by doing shift LEFT"
bottom line: unit tests must be as powerful and succinct as possible... as little boilerplate as possible... and easily controllable... to isolate correct one givin... | 135988 | #if node
REMOVE_ME_MS = 10 #H
#else
REMOVE_ME_MS = 11
#endif
###
YAJUT - Yet Another Javascript Unit T e s t a.shift "pop() by doing shift LEFT"
bottom line: unit tests must be as powerful and succinct as possible... as little boilerplate as possible... and easily controllable... to isolate correct one givin... | true | #if node
REMOVE_ME_MS = 10 #H
#else
REMOVE_ME_MS = 11
#endif
###
YAJUT - Yet Another Javascript Unit T e s t a.shift "pop() by doing shift LEFT"
bottom line: unit tests must be as powerful and succinct as possible... as little boilerplate as possible... and easily controllable... to isolate correct one givin... |
[
{
"context": "om roomid and realid.\njobsKey = (roomid, realid)-> \"#{roomid}-#{realid}\"\n\n# internal logic to untrack user.\nuntrack = (roo",
"end": 1882,
"score": 0.9164958596229553,
"start": 1861,
"tag": "KEY",
"value": "\"#{roomid}-#{realid}\""
}
] | server/libs/ready.coffee | absent132/jinrou | 53 | # library to manage players' readiness.
cron = require 'cron'
# time in seconds to reset user's readiness.
READY_RESET_TIME = 300
# map of registered job to reset readiness.
readyResetJobs = new Map
# set user's readiness.
exports.setReady = (ss, roomid, userobj, ready)->
updateReady(ss, roomid, userobj, ready)
... | 40089 | # library to manage players' readiness.
cron = require 'cron'
# time in seconds to reset user's readiness.
READY_RESET_TIME = 300
# map of registered job to reset readiness.
readyResetJobs = new Map
# set user's readiness.
exports.setReady = (ss, roomid, userobj, ready)->
updateReady(ss, roomid, userobj, ready)
... | true | # library to manage players' readiness.
cron = require 'cron'
# time in seconds to reset user's readiness.
READY_RESET_TIME = 300
# map of registered job to reset readiness.
readyResetJobs = new Map
# set user's readiness.
exports.setReady = (ss, roomid, userobj, ready)->
updateReady(ss, roomid, userobj, ready)
... |
[
{
"context": "refix': 'mailto'\n 'body': '<a href=\"mailto:${1:joe@example.com}?subject=${2:feedback}\">${3:email me}</a>$0'\n 'M",
"end": 6134,
"score": 0.9999114871025085,
"start": 6119,
"tag": "EMAIL",
"value": "joe@example.com"
}
] | snippets/language-html.cson | pbsds/language-html | 114 | # Important: When adding a new snippet,
# there is a second section halfway down this file
# where you need to null-out the snippet to prevent it from
# appearing in tags or embedded contexts
'.text.html':
# A
'Anchor':
'prefix': 'a'
'body': '<a href="${1:#}">$2</a>$0'
'Abbreviation':
'prefix': 'abbr'... | 47451 | # Important: When adding a new snippet,
# there is a second section halfway down this file
# where you need to null-out the snippet to prevent it from
# appearing in tags or embedded contexts
'.text.html':
# A
'Anchor':
'prefix': 'a'
'body': '<a href="${1:#}">$2</a>$0'
'Abbreviation':
'prefix': 'abbr'... | true | # Important: When adding a new snippet,
# there is a second section halfway down this file
# where you need to null-out the snippet to prevent it from
# appearing in tags or embedded contexts
'.text.html':
# A
'Anchor':
'prefix': 'a'
'body': '<a href="${1:#}">$2</a>$0'
'Abbreviation':
'prefix': 'abbr'... |
[
{
"context": "========================\n#\n# Image Choice Box by Archeia\n# Uses ui.Image rather than ui.Selectable for C",
"end": 103,
"score": 0.993009626865387,
"start": 96,
"tag": "NAME",
"value": "Archeia"
}
] | Base UI Modifications/Choice Boxes/LEDA_ChoiceBox.coffee | Archeia/Archeia-Engine-LEDA | 4 | # ===================================================================
#
# Image Choice Box by Archeia
# Uses ui.Image rather than ui.Selectable for Choice Boxes
# that require to be moved using "Auto"
#
# ===================================================================
choiceBox = ui.UiFactory.customTypes["ui... | 145609 | # ===================================================================
#
# Image Choice Box by <NAME>
# Uses ui.Image rather than ui.Selectable for Choice Boxes
# that require to be moved using "Auto"
#
# ===================================================================
choiceBox = ui.UiFactory.customTypes["ui.... | true | # ===================================================================
#
# Image Choice Box by PI:NAME:<NAME>END_PI
# Uses ui.Image rather than ui.Selectable for Choice Boxes
# that require to be moved using "Auto"
#
# ===================================================================
choiceBox = ui.UiFactory.cu... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9453675150871277,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": " hits libc for every query.\n#\n#https://github.com/joyent/node/blob/08782931205bc4f6d28102ebc... | test/simple/test-process-env.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... | 184893 | # 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": "###\n * https://github.com/jkuetemeier/gulp-tasks-common\n *\n * Copyright (c) 2014 Jörg K",
"end": 37,
"score": 0.9988864660263062,
"start": 26,
"tag": "USERNAME",
"value": "jkuetemeier"
},
{
"context": "temeier/gulp-tasks-common\n *\n * Copyright (c) 2014 Jörg Kütemei... | test/gulp-tasks-common.spec.coffee | kuetemeier/gulp-tasks-common | 0 | ###
* https://github.com/jkuetemeier/gulp-tasks-common
*
* Copyright (c) 2014 Jörg Kütemeier
* Licensed under the MIT license.
###
# patch error stack to display correct line numbers for CoffeeScript
require 'coffee-errors'
# set up test stack
chai = require 'chai'
sinon = require 'sinon'
expect = chai.expect
ch... | 132148 | ###
* https://github.com/jkuetemeier/gulp-tasks-common
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
###
# patch error stack to display correct line numbers for CoffeeScript
require 'coffee-errors'
# set up test stack
chai = require 'chai'
sinon = require 'sinon'
expect = chai.expect
chai.use r... | true | ###
* https://github.com/jkuetemeier/gulp-tasks-common
*
* Copyright (c) 2014 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
# patch error stack to display correct line numbers for CoffeeScript
require 'coffee-errors'
# set up test stack
chai = require 'chai'
sinon = require 'sinon'
expect = chai.exp... |
[
{
"context": "ext(el), 'linux linux-'\n\n cd.scope.name = 'ubuntu'\n cd.scan()\n $test.equal ttGetText(",
"end": 5367,
"score": 0.5270935893058777,
"start": 5361,
"tag": "NAME",
"value": "ubuntu"
}
] | test/core/binding.coffee | dragonboy612/Angular_Knockout | 317 |
Test('binding-0').run ($test, alight) ->
$test.start 4
alight.filters.double = (value) ->
value + value
el = ttDOM '<div attr="{{ num + 5 }}">Text {{ num | double }}</div>'
cd = alight.bootstrap el,
num: 15
$test.equal ttGetText(el), 'Text 30'
$test.equal f$_attr(el.childNod... | 114837 |
Test('binding-0').run ($test, alight) ->
$test.start 4
alight.filters.double = (value) ->
value + value
el = ttDOM '<div attr="{{ num + 5 }}">Text {{ num | double }}</div>'
cd = alight.bootstrap el,
num: 15
$test.equal ttGetText(el), 'Text 30'
$test.equal f$_attr(el.childNod... | true |
Test('binding-0').run ($test, alight) ->
$test.start 4
alight.filters.double = (value) ->
value + value
el = ttDOM '<div attr="{{ num + 5 }}">Text {{ num | double }}</div>'
cd = alight.bootstrap el,
num: 15
$test.equal ttGetText(el), 'Text 30'
$test.equal f$_attr(el.childNod... |
[
{
"context": "###\n chroma.js\n\n Copyright (c) 2011-2013, Gregor Aisch\n All rights reserved.\n\n Redistribution and ",
"end": 60,
"score": 0.9998852014541626,
"start": 48,
"tag": "NAME",
"value": "Gregor Aisch"
},
{
"context": " OF SUCH DAMAGE.\n\n @source: https://g... | src/limits.coffee | GerHobbelt/chroma.js | 49 | ###
chroma.js
Copyright (c) 2011-2013, Gregor Aisch
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this... | 202770 | ###
chroma.js
Copyright (c) 2011-2013, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
... | true | ###
chroma.js
Copyright (c) 2011-2013, PI:NAME:<NAME>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:
* Redistributions of source code must retain the above copyright noti... |
[
{
"context": "i) ->\n results.concat [\n key: path.relative(root, i)\n path: path.resolve(i)\n ",
"end": 581,
"score": 0.7290754318237305,
"start": 573,
"tag": "KEY",
"value": "relative"
}
] | src/index.coffee | bouzuya/borage | 2 | crypto = require 'crypto'
fs = require 'fs'
path = require 'path'
{Promise} = require 'es6-promise'
glob = require 'glob'
s3 = require './s3'
digest = (content) ->
md5 = crypto.createHash 'md5'
md5.update content
md5.digest 'hex'
# Array<{ key:string, path:string, digest:string }>
getLocalFiles = (pattern, { ro... | 130768 | crypto = require 'crypto'
fs = require 'fs'
path = require 'path'
{Promise} = require 'es6-promise'
glob = require 'glob'
s3 = require './s3'
digest = (content) ->
md5 = crypto.createHash 'md5'
md5.update content
md5.digest 'hex'
# Array<{ key:string, path:string, digest:string }>
getLocalFiles = (pattern, { ro... | true | crypto = require 'crypto'
fs = require 'fs'
path = require 'path'
{Promise} = require 'es6-promise'
glob = require 'glob'
s3 = require './s3'
digest = (content) ->
md5 = crypto.createHash 'md5'
md5.update content
md5.digest 'hex'
# Array<{ key:string, path:string, digest:string }>
getLocalFiles = (pattern, { ro... |
[
{
"context": " their own at home.'\n ]\n\n quotePersons = [\n 'Kara Bloom'\n 'Laura Harris'\n 'Erin Scott'\n 'Julie R",
"end": 4619,
"score": 0.9998778104782104,
"start": 4609,
"tag": "NAME",
"value": "Kara Bloom"
},
{
"context": "e.'\n ]\n\n quotePersons = [\n 'Ka... | app/assets/javascripts/home.coffee | doodlesacademy/doodle | 1 | (($, window) -> $ ->
$document = $(document)
$nav = $('.doodles-nav')
$dropdown_content = $('.dropdown-content')
$body = $('.body')
$window = $(window)
$quote = $('#quotes p')
$parallax = $('.parallax')
$footerSubmit = $('#footer-submit')
$parallax_offset = null
$parallax_height = null
navHeight =... | 29516 | (($, window) -> $ ->
$document = $(document)
$nav = $('.doodles-nav')
$dropdown_content = $('.dropdown-content')
$body = $('.body')
$window = $(window)
$quote = $('#quotes p')
$parallax = $('.parallax')
$footerSubmit = $('#footer-submit')
$parallax_offset = null
$parallax_height = null
navHeight =... | true | (($, window) -> $ ->
$document = $(document)
$nav = $('.doodles-nav')
$dropdown_content = $('.dropdown-content')
$body = $('.body')
$window = $(window)
$quote = $('#quotes p')
$parallax = $('.parallax')
$footerSubmit = $('#footer-submit')
$parallax_offset = null
$parallax_height = null
navHeight =... |
[
{
"context": "#\r\n# test/index.coffee\r\n#\r\n# Copyright (c) 2012 Lee Olayvar <leeolayvar@gmail.com>\r\n# MIT Licensed\r\n#",
"end": 59,
"score": 0.999889075756073,
"start": 48,
"tag": "NAME",
"value": "Lee Olayvar"
},
{
"context": "ndex.coffee\r\n#\r\n# Copyright (c) 2012 Lee Olay... | test/index.coffee | leeola/eggplant | 1 | #
# test/index.coffee
#
# Copyright (c) 2012 Lee Olayvar <leeolayvar@gmail.com>
# MIT Licensed
# | 156839 | #
# test/index.coffee
#
# Copyright (c) 2012 <NAME> <<EMAIL>>
# MIT Licensed
# | true | #
# test/index.coffee
#
# Copyright (c) 2012 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# MIT Licensed
# |
[
{
"context": "###\nCopyright (C) 2013, Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure\n\n(",
"end": 36,
"score": 0.9998437166213989,
"start": 24,
"tag": "NAME",
"value": "Bill Burdick"
},
{
"context": ", Bill Burdick, Tiny Concepts: https://github.com/zot/Leisure\n\n(lic... | leisure/build/src/testParser.coffee | zot/Leisure | 58 | ###
Copyright (C) 2013, 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... | 51966 | ###
Copyright (C) 2013, <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) 2013, 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": "or_group : (group_name) ->\n cache_key = TwitterCldr.Utilities.compute_cache_key([@locale, group_na",
"end": 1441,
"score": 0.5460363626480103,
"start": 1440,
"tag": "KEY",
"value": "C"
},
{
"context": "oup_name) ->\n cache_key = TwitterCldr.Utilities.compute_cach... | lib/twitter_cldr/js/mustache/implementation/numbers/rbnf/rbnf.coffee | fakeNetflix/twitter-repo-twitter-cldr-js | 182 | # Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
class TwitterCldr.RBNF
constructor : (@locale = TwitterCldr.Settings.locale()) ->
@default_spellout_options = {
'rule_group' : "SpelloutRules",
'rule_set' : "spellout-numbering"
}
@rule_group_cache = {}
@rule_set_n... | 187568 | # Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
class TwitterCldr.RBNF
constructor : (@locale = TwitterCldr.Settings.locale()) ->
@default_spellout_options = {
'rule_group' : "SpelloutRules",
'rule_set' : "spellout-numbering"
}
@rule_group_cache = {}
@rule_set_n... | true | # Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0
class TwitterCldr.RBNF
constructor : (@locale = TwitterCldr.Settings.locale()) ->
@default_spellout_options = {
'rule_group' : "SpelloutRules",
'rule_set' : "spellout-numbering"
}
@rule_group_cache = {}
@rule_set_n... |
[
{
"context": " ->\n alice = yield new User(username: 'alice').save()\n profile = yield new Profile(",
"end": 436,
"score": 0.998133659362793,
"start": 431,
"tag": "USERNAME",
"value": "alice"
},
{
"context": "b] = yield [\n new User(username: 'al... | test/relations/has_one.coffee | bgaeddert/bookshelf-schema | 44 | Bookshelf = require 'bookshelf'
Schema = require '../../src/'
init = require '../init'
Fields = require '../../src/fields'
Relations = require '../../src/relations'
{StringField, IntField, EmailField} = Fields
{HasOne} = Relations
describe "Relations", ->
this.timeout 3000
db = null
User = null
Profil... | 152304 | Bookshelf = require 'bookshelf'
Schema = require '../../src/'
init = require '../init'
Fields = require '../../src/fields'
Relations = require '../../src/relations'
{StringField, IntField, EmailField} = Fields
{HasOne} = Relations
describe "Relations", ->
this.timeout 3000
db = null
User = null
Profil... | true | Bookshelf = require 'bookshelf'
Schema = require '../../src/'
init = require '../init'
Fields = require '../../src/fields'
Relations = require '../../src/relations'
{StringField, IntField, EmailField} = Fields
{HasOne} = Relations
describe "Relations", ->
this.timeout 3000
db = null
User = null
Profil... |
[
{
"context": ") 2013-2016 TheGrid (Rituwall Inc.)\n# (c) 2013 Henri Bergius, Nemein\n# NoFlo may be freely distributed und",
"end": 124,
"score": 0.9998530149459839,
"start": 111,
"tag": "NAME",
"value": "Henri Bergius"
},
{
"context": "Grid (Rituwall Inc.)\n# (c) 2013 He... | src/lib/ComponentLoader.coffee | aretecode/noflo-built | 1 | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2016 TheGrid (Rituwall Inc.)
# (c) 2013 Henri Bergius, Nemein
# NoFlo may be freely distributed under the MIT license
#
# This is the browser version of the ComponentLoader.
internalSocket = require './InternalSocket'
nofloGraph = require './Gra... | 201794 | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2016 TheGrid (Rituwall Inc.)
# (c) 2013 <NAME>, <NAME>
# NoFlo may be freely distributed under the MIT license
#
# This is the browser version of the ComponentLoader.
internalSocket = require './InternalSocket'
nofloGraph = require './Graph'
{Ev... | true | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2016 TheGrid (Rituwall Inc.)
# (c) 2013 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
# NoFlo may be freely distributed under the MIT license
#
# This is the browser version of the ComponentLoader.
internalSocket = require './InternalSocket'
nofloG... |
[
{
"context": "out a random Pokémon.\n#\n# Notes:\n#\n#\n# Author:\n# James Fleeting <hello@jamesfleeting.com>\n\nmodule.exports = (robo",
"end": 395,
"score": 0.9998205900192261,
"start": 381,
"tag": "NAME",
"value": "James Fleeting"
},
{
"context": "mon.\n#\n# Notes:\n#\n#\n# Auth... | src/pokedex.coffee | fleeting/hubot-pokedex | 1 | # Description
# A wild Hubot appears. Hubot uses Pokédex.
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
#
# Commands:
# pokedex help - A quick list of the commands available.
# pokedex select <PokemonName> - Query the Pokédex for information about a Pokémon.
# pokedex select random - Query the Pokédex for info... | 168875 | # Description
# A wild Hubot appears. Hubot uses Pokédex.
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
#
# Commands:
# pokedex help - A quick list of the commands available.
# pokedex select <PokemonName> - Query the Pokédex for information about a Pokémon.
# pokedex select random - Query the Pokédex for info... | true | # Description
# A wild Hubot appears. Hubot uses Pokédex.
#
# Configuration:
# LIST_OF_ENV_VARS_TO_SET
#
# Commands:
# pokedex help - A quick list of the commands available.
# pokedex select <PokemonName> - Query the Pokédex for information about a Pokémon.
# pokedex select random - Query the Pokédex for info... |
[
{
"context": ",(add \"8\")]\n\tq3m.kindMatrix()\n\n\tq4.push q4ii=add \"Стороны света\"\n\tq4ii.push (add \"Север\"),(add \"Восто",
"end": 2537,
"score": 0.5821948647499084,
"start": 2536,
"tag": "NAME",
"value": "С"
},
{
"context": " \"8\")]\n\tq3m.kindMatrix()\n\n\tq4.push q4ii=add... | sample-matrix.coffee | agershun/minday | 0 | ################################################
# MINDAY 0.009Tu
# sample-matrix.coffee
# Пример работы с матрицами
################################################
sample.matrix = ->
window.mx = adf "Работа с матрицами"
mx.push add "Программа позволяет работать в различными матрицами. Например,
ниже приведен... | 118178 | ################################################
# MINDAY 0.009Tu
# sample-matrix.coffee
# Пример работы с матрицами
################################################
sample.matrix = ->
window.mx = adf "Работа с матрицами"
mx.push add "Программа позволяет работать в различными матрицами. Например,
ниже приведен... | true | ################################################
# MINDAY 0.009Tu
# sample-matrix.coffee
# Пример работы с матрицами
################################################
sample.matrix = ->
window.mx = adf "Работа с матрицами"
mx.push add "Программа позволяет работать в различными матрицами. Например,
ниже приведен... |
[
{
"context": "View.extend\n el: \"#content\"\n\n tags: [\n \"applejack\"\n \"fluttershy\"\n \"pinkie pie\"\n \"rainbow d",
"end": 81,
"score": 0.6585927605628967,
"start": 77,
"tag": "NAME",
"value": "jack"
},
{
"context": "ow dash\"\n \"rarity\"\n \"twilight spar... | mylittlefacewhen/static/js/views/tags.coffee | luckydonald/memes.pony.style | 3 | window.TagsView = Backbone.View.extend
el: "#content"
tags: [
"applejack"
"fluttershy"
"pinkie pie"
"rainbow dash"
"rarity"
"twilight sparkle"
"princess celestia"
"princess luna"
"spike"
"derpy hooves"
"trixie"
"animated"
"transparent"
"fanart"
"screensho... | 82541 | window.TagsView = Backbone.View.extend
el: "#content"
tags: [
"apple<NAME>"
"fluttershy"
"pinkie pie"
"rainbow dash"
"rarity"
"twilight sparkle"
"<NAME>"
"<NAME>"
"spike"
"der<NAME>"
"trixie"
"animated"
"transparent"
"fanart"
"screenshot"
"untagged"
... | true | window.TagsView = Backbone.View.extend
el: "#content"
tags: [
"applePI:NAME:<NAME>END_PI"
"fluttershy"
"pinkie pie"
"rainbow dash"
"rarity"
"twilight sparkle"
"PI:NAME:<NAME>END_PI"
"PI:NAME:<NAME>END_PI"
"spike"
"derPI:NAME:<NAME>END_PI"
"trixie"
"animated"
"tra... |
[
{
"context": "# Copyright (C) 2013 John Judnich\n# Released under The MIT License - see \"LICENSE\" ",
"end": 33,
"score": 0.9998601675033569,
"start": 21,
"tag": "NAME",
"value": "John Judnich"
}
] | shaders/WindowsCompatibilityUglyHacks.coffee | anandprabhakar0507/Kosmos | 46 | # Copyright (C) 2013 John Judnich
# Released under The MIT License - see "LICENSE" file for details.
# For some reason, Windows messes with GLSL shaders and sometimes, unexpectedly, with NO WARNING,
# NO ERROR, and NO reason whatsoever -- just fails to output anything from the shader.
#
# The hilarious part: What seem... | 85265 | # Copyright (C) 2013 <NAME>
# Released under The MIT License - see "LICENSE" file for details.
# For some reason, Windows messes with GLSL shaders and sometimes, unexpectedly, with NO WARNING,
# NO ERROR, and NO reason whatsoever -- just fails to output anything from the shader.
#
# The hilarious part: What seems to m... | true | # Copyright (C) 2013 PI:NAME:<NAME>END_PI
# Released under The MIT License - see "LICENSE" file for details.
# For some reason, Windows messes with GLSL shaders and sometimes, unexpectedly, with NO WARNING,
# NO ERROR, and NO reason whatsoever -- just fails to output anything from the shader.
#
# The hilarious part: W... |
[
{
"context": " user', (done) ->\n body = []\n body.login = 'johndoe@gmail.com'\n body.pw = '1236'\n console.log(body)\n u",
"end": 175,
"score": 0.9999155402183533,
"start": 158,
"tag": "EMAIL",
"value": "johndoe@gmail.com"
},
{
"context": "ody.login = 'johndoe@gmail.c... | tests/users.coffee | vincentbas/ece_project_2017 | 0 | should = require 'should'
user = require '../src/users.coffee'
describe 'users', () ->
it 'saves properly user', (done) ->
body = []
body.login = 'johndoe@gmail.com'
body.pw = '1236'
console.log(body)
user.save body, (err) ->
should.not.exist err
done()
it 'get', (done) ->
# do s... | 218947 | should = require 'should'
user = require '../src/users.coffee'
describe 'users', () ->
it 'saves properly user', (done) ->
body = []
body.login = '<EMAIL>'
body.pw = '123<PASSWORD>'
console.log(body)
user.save body, (err) ->
should.not.exist err
done()
it 'get', (done) ->
# do so... | true | should = require 'should'
user = require '../src/users.coffee'
describe 'users', () ->
it 'saves properly user', (done) ->
body = []
body.login = 'PI:EMAIL:<EMAIL>END_PI'
body.pw = '123PI:PASSWORD:<PASSWORD>END_PI'
console.log(body)
user.save body, (err) ->
should.not.exist err
done()
... |
[
{
"context": " saved\", 6, ->\n store = new @Store id: 1, name: 'Zellers'\n collection = new @Collection id: 2, name: 'Awe",
"end": 4082,
"score": 0.9983460307121277,
"start": 4075,
"tag": "NAME",
"value": "Zellers"
},
{
"context": " 'Awesome Things'\n product = new @Product name:... | tests/batman/model/associations/belongs_to_test.coffee | Shipow/batman | 1 | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter} = if typeof require isnt 'undefined' then require '../model_helper' else window
helpers = if typeof require is 'undefined' then window.viewHelpers else require '../../view/view_helper'
QUnit.module "Batman.Model belongsTo Associations"
setup: ->
... | 13807 | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter} = if typeof require isnt 'undefined' then require '../model_helper' else window
helpers = if typeof require is 'undefined' then window.viewHelpers else require '../../view/view_helper'
QUnit.module "Batman.Model belongsTo Associations"
setup: ->
... | true | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter} = if typeof require isnt 'undefined' then require '../model_helper' else window
helpers = if typeof require is 'undefined' then window.viewHelpers else require '../../view/view_helper'
QUnit.module "Batman.Model belongsTo Associations"
setup: ->
... |
[
{
"context": "AX_URL = 'some.url'\n\n VISA_APPROVAL_ACCOUNT = '4788250000121443'\n MASTERCARD_APPROVAL_ACCOUNT = '5454545454545",
"end": 190,
"score": 0.8526206612586975,
"start": 174,
"tag": "KEY",
"value": "4788250000121443"
},
{
"context": "8250000121443'\n MASTERCARD_APP... | spec/javascripts/ajax_tokenizer_spec.js.coffee | wantable/card_connect_gateway | 2 | describe "cardConnect", ->
describe "ajaxTokenizer", ->
httpBackend = null
ajaxTokenizer = null
CARDCONNECT_AJAX_URL = 'some.url'
VISA_APPROVAL_ACCOUNT = '4788250000121443'
MASTERCARD_APPROVAL_ACCOUNT = '5454545454545454'
AMEX_APPROVAL_ACCOUNT = '371449635398431'
DISCOVER_APPROVAL_ACCOUNT... | 143382 | describe "cardConnect", ->
describe "ajaxTokenizer", ->
httpBackend = null
ajaxTokenizer = null
CARDCONNECT_AJAX_URL = 'some.url'
VISA_APPROVAL_ACCOUNT = '<KEY>'
MASTERCARD_APPROVAL_ACCOUNT = '<KEY>'
AMEX_APPROVAL_ACCOUNT = '<KEY>'
DISCOVER_APPROVAL_ACCOUNT = '60110009<KEY>'
DINERS_AP... | true | describe "cardConnect", ->
describe "ajaxTokenizer", ->
httpBackend = null
ajaxTokenizer = null
CARDCONNECT_AJAX_URL = 'some.url'
VISA_APPROVAL_ACCOUNT = 'PI:KEY:<KEY>END_PI'
MASTERCARD_APPROVAL_ACCOUNT = 'PI:KEY:<KEY>END_PI'
AMEX_APPROVAL_ACCOUNT = 'PI:KEY:<KEY>END_PI'
DISCOVER_APPROVAL_... |
[
{
"context": ") ->\n user = process.env.GOOGLE_USERNAME\n pass = process.env.GOOGLE_PASSWORD\n msg.http(\"https://www.google",
"end": 478,
"score": 0.7304236888885498,
"start": 471,
"tag": "PASSWORD",
"value": "process"
},
{
"context": "ice\": \"reader\"\n \"Email\": user\n ... | src/scripts/google-reader.coffee | iangreenleaf/hubot-scripts | 2 | # Subscribe to a feed in Google Reader, requires you set
# GOOGLE_USERNAME & GOOGLE_PASSWORD environment variables
#
# subscribe <domainname> - returns whether you've subscribed succesfully
#
module.exports = (robot) ->
robot.hear /subscribe (.*)/i, (msg) ->
domain = msg.match[1]
getAuth msg, (auth) ->
... | 51896 | # Subscribe to a feed in Google Reader, requires you set
# GOOGLE_USERNAME & GOOGLE_PASSWORD environment variables
#
# subscribe <domainname> - returns whether you've subscribed succesfully
#
module.exports = (robot) ->
robot.hear /subscribe (.*)/i, (msg) ->
domain = msg.match[1]
getAuth msg, (auth) ->
... | true | # Subscribe to a feed in Google Reader, requires you set
# GOOGLE_USERNAME & GOOGLE_PASSWORD environment variables
#
# subscribe <domainname> - returns whether you've subscribed succesfully
#
module.exports = (robot) ->
robot.hear /subscribe (.*)/i, (msg) ->
domain = msg.match[1]
getAuth msg, (auth) ->
... |
[
{
"context": "name\" name=\"customer.first_name\" data-bind=\"value: firstName\">\n </div>\n <div class=\"donation-input-r",
"end": 3772,
"score": 0.513877272605896,
"start": 3763,
"tag": "NAME",
"value": "firstName"
}
] | src/coffee/donations-form-html.coffee | controlshift/prague-client | 3 | html = """
<div class="cleanslate donations-callback-flash">
Success! You'll receive a notification for your payment.
</div>
<form class="cleanslate donation-form" id="donation-form" autocomplete="on">
<div class="donation-loading-overlay"></div>
<input type="hidden" name="organization_slug" data-bi... | 16318 | html = """
<div class="cleanslate donations-callback-flash">
Success! You'll receive a notification for your payment.
</div>
<form class="cleanslate donation-form" id="donation-form" autocomplete="on">
<div class="donation-loading-overlay"></div>
<input type="hidden" name="organization_slug" data-bi... | true | html = """
<div class="cleanslate donations-callback-flash">
Success! You'll receive a notification for your payment.
</div>
<form class="cleanslate donation-form" id="donation-form" autocomplete="on">
<div class="donation-loading-overlay"></div>
<input type="hidden" name="organization_slug" data-bi... |
[
{
"context": "###\navailable-time-slots\n\nCopyright (c) 2022 Yoshiaki Murakami(https://github.com/ysakmrkm)\n\nThis software is re",
"end": 62,
"score": 0.9998499751091003,
"start": 45,
"tag": "NAME",
"value": "Yoshiaki Murakami"
},
{
"context": "ght (c) 2022 Yoshiaki Murakami(https... | src/cs/pages/main.coffee | ysakmrkm/available-time-slots | 1 | ###
available-time-slots
Copyright (c) 2022 Yoshiaki Murakami(https://github.com/ysakmrkm)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class AvailableTimeSlots
constructor: (target, options)->
@prevHtml = '<div id="ats-prev-week" class="ats-nav__item ats-... | 116670 | ###
available-time-slots
Copyright (c) 2022 <NAME>(https://github.com/ysakmrkm)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class AvailableTimeSlots
constructor: (target, options)->
@prevHtml = '<div id="ats-prev-week" class="ats-nav__item ats-nav__item__... | true | ###
available-time-slots
Copyright (c) 2022 PI:NAME:<NAME>END_PI(https://github.com/ysakmrkm)
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class AvailableTimeSlots
constructor: (target, options)->
@prevHtml = '<div id="ats-prev-week" class="ats-nav__item a... |
[
{
"context": "ect} class represents a Kaffee project.\n\n @author Fabian M. <mail.fabianm@gmail.com>\n###\nclass Project\n\n\t###",
"end": 390,
"score": 0.9997767210006714,
"start": 382,
"tag": "NAME",
"value": "Fabian M"
},
{
"context": "epresents a Kaffee project.\n\n @author Fab... | kaffee/src/main/kaffee/project/project.coffee | fabianm/kaffee | 1 | ProjectConfiguration = require "./configuration"
Workspace = require "./workspace"
Plugin = require "../plugin/plugin"
EventManager = require "../event/manager"
Result = require "../execution/result"
Request = require "../execution/request"
Configuration = require "../configuration"
Util = require "../util"
###
The ... | 152272 | ProjectConfiguration = require "./configuration"
Workspace = require "./workspace"
Plugin = require "../plugin/plugin"
EventManager = require "../event/manager"
Result = require "../execution/result"
Request = require "../execution/request"
Configuration = require "../configuration"
Util = require "../util"
###
The ... | true | ProjectConfiguration = require "./configuration"
Workspace = require "./workspace"
Plugin = require "../plugin/plugin"
EventManager = require "../event/manager"
Result = require "../execution/result"
Request = require "../execution/request"
Configuration = require "../configuration"
Util = require "../util"
###
The ... |
[
{
"context": "'\n\n# Crypto\nalgorithm = \"aes-256-ctr\"\npassword = 'J0hn31!^F0rG0dS0L0v#dTh#W)Rld'\n\nmodule.exports.loadAll = (that) ->\n that[key] ",
"end": 262,
"score": 0.9994113445281982,
"start": 233,
"tag": "PASSWORD",
"value": "J0hn31!^F0rG0dS0L0v#dTh#W)Rld"
}
] | lib/helpers.coffee | mattstone/StarterApp-Server | 0 | rack = require('hat').rack()
findit = require 'findit'
path = require 'path'
moment = require "moment"
inflection = require 'inflection'
util = require 'util'
# Crypto
algorithm = "aes-256-ctr"
password = 'J0hn31!^F0rG0dS0L0v#dTh#W)Rld'
module.exports.loadAll = (that) ->
that[key] ?= @[key... | 163078 | rack = require('hat').rack()
findit = require 'findit'
path = require 'path'
moment = require "moment"
inflection = require 'inflection'
util = require 'util'
# Crypto
algorithm = "aes-256-ctr"
password = '<PASSWORD>'
module.exports.loadAll = (that) ->
that[key] ?= @[key] for key in keysOf... | true | rack = require('hat').rack()
findit = require 'findit'
path = require 'path'
moment = require "moment"
inflection = require 'inflection'
util = require 'util'
# Crypto
algorithm = "aes-256-ctr"
password = 'PI:PASSWORD:<PASSWORD>END_PI'
module.exports.loadAll = (that) ->
that[key] ?= @[key]... |
[
{
"context": "\n\t\t\tbeforeEach ->\n\t\t\t\t@req.query =\n\t\t\t\t\tuser_id: \"anonymous-user\"\n\t\t\t\t@EditorHttpController.joinProject @req,",
"end": 2772,
"score": 0.7845520377159119,
"start": 2763,
"tag": "USERNAME",
"value": "anonymous"
},
{
"context": "{_id:\"something\"}\n\... | test/UnitTests/coffee/Editor/EditorHttpControllerTests.coffee | bowlofstew/web-sharelatex | 0 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorHttpController'
describe "EditorHttpController", ->
beforeEach ->
@EditorHttpController = SandboxedModule.require modulePath, require... | 214070 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorHttpController'
describe "EditorHttpController", ->
beforeEach ->
@EditorHttpController = SandboxedModule.require modulePath, require... | true | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorHttpController'
describe "EditorHttpController", ->
beforeEach ->
@EditorHttpController = SandboxedModule.require modulePath, require... |
[
{
"context": "rsation.size > 1\n key : key.toString()\n mailboxes : @state.mailboxe",
"end": 3752,
"score": 0.9729431867599487,
"start": 3738,
"tag": "KEY",
"value": "key.toString()"
}
] | client/app/components/conversation.coffee | gelnior/cozy-emails | 0 | _ = require 'underscore'
React = require 'react'
{section, header, ul, li, span, i, p, h3, a, button} = React.DOM
{MessageFlags} = require '../constants/app_constants'
Message = React.createFactory require './message'
ToolbarConversation = React.createFactory require './toolbar_conversation'
RouterMixin = require '... | 153533 | _ = require 'underscore'
React = require 'react'
{section, header, ul, li, span, i, p, h3, a, button} = React.DOM
{MessageFlags} = require '../constants/app_constants'
Message = React.createFactory require './message'
ToolbarConversation = React.createFactory require './toolbar_conversation'
RouterMixin = require '... | true | _ = require 'underscore'
React = require 'react'
{section, header, ul, li, span, i, p, h3, a, button} = React.DOM
{MessageFlags} = require '../constants/app_constants'
Message = React.createFactory require './message'
ToolbarConversation = React.createFactory require './toolbar_conversation'
RouterMixin = require '... |
[
{
"context": " \"HumanPlayer\" }\n ]\n\nwindow.levels[3] =\n name: \"The Ambush\"\n deco: [\n { path: \"assets/iris.png\", x: -100",
"end": 1863,
"score": 0.8151245713233948,
"start": 1853,
"tag": "NAME",
"value": "The Ambush"
},
{
"context": "f alive_teams <= 0\n window.w... | level.coffee | eqv/ludum_dare_8_13 | 1 | window.levels = []
window.currentLevel = null
window.levels[1] =
name: "Training",
deco: [
{ path: "assets/iris.png", x: -100, y: -100, alpha: 1, depth: 0.99 }
{ path: "assets/planet.png", x: 100, y: 100, alpha: 1, depth: 0.5 }
{ path: 'assets/tutorial/next_round.png', x: 20, y: 80, alpha: 1, depth: ... | 14495 | window.levels = []
window.currentLevel = null
window.levels[1] =
name: "Training",
deco: [
{ path: "assets/iris.png", x: -100, y: -100, alpha: 1, depth: 0.99 }
{ path: "assets/planet.png", x: 100, y: 100, alpha: 1, depth: 0.5 }
{ path: 'assets/tutorial/next_round.png', x: 20, y: 80, alpha: 1, depth: ... | true | window.levels = []
window.currentLevel = null
window.levels[1] =
name: "Training",
deco: [
{ path: "assets/iris.png", x: -100, y: -100, alpha: 1, depth: 0.99 }
{ path: "assets/planet.png", x: 100, y: 100, alpha: 1, depth: 0.5 }
{ path: 'assets/tutorial/next_round.png', x: 20, y: 80, alpha: 1, depth: ... |
[
{
"context": "hash based implementation of the Set ADT\n @author Mads Hartmann Jensen (mads379@gmail.com)\n###\n\nmugs.provide(\"mugs.HashS",
"end": 103,
"score": 0.9998103976249695,
"start": 83,
"tag": "NAME",
"value": "Mads Hartmann Jensen"
},
{
"context": "on of the Set ADT\n @a... | src/HashSet.coffee | mads-hartmann/mugs | 1 | ###*
@fileoverview Contains a hash based implementation of the Set ADT
@author Mads Hartmann Jensen (mads379@gmail.com)
###
mugs.provide("mugs.HashSet")
mugs.require("mugs.HashMap")
###*
The HashSet is using a HashMap as the underlying data structure so
the asymptotic running time of the operations are boun... | 123717 | ###*
@fileoverview Contains a hash based implementation of the Set ADT
@author <NAME> (<EMAIL>)
###
mugs.provide("mugs.HashSet")
mugs.require("mugs.HashMap")
###*
The HashSet is using a HashMap as the underlying data structure so
the asymptotic running time of the operations are bound by the HashMap
imple... | true | ###*
@fileoverview Contains a hash based implementation of the Set ADT
@author PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
###
mugs.provide("mugs.HashSet")
mugs.require("mugs.HashMap")
###*
The HashSet is using a HashMap as the underlying data structure so
the asymptotic running time of the operations are... |
[
{
"context": " fields\n\t\t\n\t\tprimaryKey = @options.primaryKey or 'id'\n\t\t\n\t\tif fields[primaryKey]\n\t\t\trequest.url += \"/#",
"end": 3554,
"score": 0.7949596047401428,
"start": 3552,
"tag": "KEY",
"value": "id"
}
] | lib/restie.coffee | vadimdemedes/restie | 5 | Function::clone = ->
clone = ->
for property of @
clone[property] = @[property] if @hasOwnProperty property
clone.prototype = @prototype
clone
class Restie
@set: (options = {}) -> # setting default options for all models
@options = {} if not @options
for key of options
@options[key] = options[key]
@... | 95717 | Function::clone = ->
clone = ->
for property of @
clone[property] = @[property] if @hasOwnProperty property
clone.prototype = @prototype
clone
class Restie
@set: (options = {}) -> # setting default options for all models
@options = {} if not @options
for key of options
@options[key] = options[key]
@... | true | Function::clone = ->
clone = ->
for property of @
clone[property] = @[property] if @hasOwnProperty property
clone.prototype = @prototype
clone
class Restie
@set: (options = {}) -> # setting default options for all models
@options = {} if not @options
for key of options
@options[key] = options[key]
@... |
[
{
"context": "mail = req.body?.email?.toLowerCase()\n\t\tpassword = req.body?.password\n\t\tredir = Url.parse(req.body?.redir or \"/project\"",
"end": 1378,
"score": 0.9922100901603699,
"start": 1360,
"tag": "PASSWORD",
"value": "req.body?.password"
}
] | app/coffee/Features/Authentication/AuthenticationController.coffee | sandstormports/web-sharelatex | 1 | AuthenticationManager = require ("./AuthenticationManager")
LoginRateLimiter = require("../Security/LoginRateLimiter")
User = require("../../models/User").User
UserGetter = require "../User/UserGetter"
UserUpdater = require "../User/UserUpdater"
UserRegistrationHandler = require "../User/UserRegistrationHandler"
Metric... | 180131 | AuthenticationManager = require ("./AuthenticationManager")
LoginRateLimiter = require("../Security/LoginRateLimiter")
User = require("../../models/User").User
UserGetter = require "../User/UserGetter"
UserUpdater = require "../User/UserUpdater"
UserRegistrationHandler = require "../User/UserRegistrationHandler"
Metric... | true | AuthenticationManager = require ("./AuthenticationManager")
LoginRateLimiter = require("../Security/LoginRateLimiter")
User = require("../../models/User").User
UserGetter = require "../User/UserGetter"
UserUpdater = require "../User/UserUpdater"
UserRegistrationHandler = require "../User/UserRegistrationHandler"
Metric... |
[
{
"context": " title: 'The Kingkiller Chronicles'\n author: 'Patrick Rothfuss'\n url: ''\n 'the-lord-of-the-rings':\n ti",
"end": 109,
"score": 0.9998900890350342,
"start": 93,
"tag": "NAME",
"value": "Patrick Rothfuss"
},
{
"context": "\n title: 'The Lord of the Ri... | data/map.old.coffee | CharlesAnifowose/curation-genius | 0 | books =
'the-kingkiller-chronicles':
title: 'The Kingkiller Chronicles'
author: 'Patrick Rothfuss'
url: ''
'the-lord-of-the-rings':
title: 'The Lord of the Rings'
author: 'J.R.R. Tolkien'
url: ''
'wicked':
title: 'Wicked'
author: 'Gregory Maguire'
url: ''
'the-on... | 56824 | books =
'the-kingkiller-chronicles':
title: 'The Kingkiller Chronicles'
author: '<NAME>'
url: ''
'the-lord-of-the-rings':
title: 'The Lord of the Rings'
author: '<NAME>'
url: ''
'wicked':
title: 'Wicked'
author: '<NAME>'
url: ''
'the-once-and-future-king':
ti... | true | books =
'the-kingkiller-chronicles':
title: 'The Kingkiller Chronicles'
author: 'PI:NAME:<NAME>END_PI'
url: ''
'the-lord-of-the-rings':
title: 'The Lord of the Rings'
author: 'PI:NAME:<NAME>END_PI'
url: ''
'wicked':
title: 'Wicked'
author: 'PI:NAME:<NAME>END_PI'
url: ... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991469383239746,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-http-set-timeout-server.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... | 79349 | # 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": "utConfigs: [\n input 'user.email', 'youremail@somewhere.com', 'email input required'\n input 'user.passwor",
"end": 402,
"score": 0.9999173879623413,
"start": 379,
"tag": "EMAIL",
"value": "youremail@somewhere.com"
},
{
"context": "ut required'\n i... | src/views/screens/paypal.coffee | verus-io/crowdstart-checkout | 14 | crowdcontrol = require 'crowdcontrol'
Events = crowdcontrol.Events
Screen = require './screen'
analytics = require '../../utils/analytics'
input = require '../../utils/input'
class PayPal extends Screen
tag: 'paypal'
title: 'Pay with PayPal'
html: require '../../../templates/screens/paypal.jade'
payKey: ... | 27480 | crowdcontrol = require 'crowdcontrol'
Events = crowdcontrol.Events
Screen = require './screen'
analytics = require '../../utils/analytics'
input = require '../../utils/input'
class PayPal extends Screen
tag: 'paypal'
title: 'Pay with PayPal'
html: require '../../../templates/screens/paypal.jade'
payKey: ... | true | crowdcontrol = require 'crowdcontrol'
Events = crowdcontrol.Events
Screen = require './screen'
analytics = require '../../utils/analytics'
input = require '../../utils/input'
class PayPal extends Screen
tag: 'paypal'
title: 'Pay with PayPal'
html: require '../../../templates/screens/paypal.jade'
payKey: ... |
[
{
"context": "s/publicizer'\n\n# Based on RadialRingGeometry.js by Sander Blue:\n# https://github.com/sanderblue/solar-system-thr",
"end": 93,
"score": 0.9996288418769836,
"start": 82,
"tag": "NAME",
"value": "Sander Blue"
},
{
"context": "gGeometry.js by Sander Blue:\n# https://gith... | src/Ring.coffee | skepticalimagination/solaris-js | 4 | import publicize from './helpers/publicizer'
# Based on RadialRingGeometry.js by Sander Blue:
# https://github.com/sanderblue/solar-system-threejs/blob/gh-pages/src/app/Extensions/RadialRingGeometry.js
import {
Vector3, Vector2, Face3, Sphere, Geometry
MeshLambertMaterial, TextureLoader, Mesh, DoubleSide
} from 't... | 34292 | import publicize from './helpers/publicizer'
# Based on RadialRingGeometry.js by <NAME>:
# https://github.com/sanderblue/solar-system-threejs/blob/gh-pages/src/app/Extensions/RadialRingGeometry.js
import {
Vector3, Vector2, Face3, Sphere, Geometry
MeshLambertMaterial, TextureLoader, Mesh, DoubleSide
} from 'three'... | true | import publicize from './helpers/publicizer'
# Based on RadialRingGeometry.js by PI:NAME:<NAME>END_PI:
# https://github.com/sanderblue/solar-system-threejs/blob/gh-pages/src/app/Extensions/RadialRingGeometry.js
import {
Vector3, Vector2, Face3, Sphere, Geometry
MeshLambertMaterial, TextureLoader, Mesh, DoubleSide
... |
[
{
"context": "r.flymon.net',\n port: 8086,\n username: 'webface',\n password: 'webface2015',\n database: ",
"end": 3951,
"score": 0.9996134042739868,
"start": 3944,
"tag": "USERNAME",
"value": "webface"
},
{
"context": "8086,\n username: 'webface',\n pas... | tmp/q.coffee | ZigFisher/homes-smart | 4 | window.log = -> try console.log.apply(console, arguments)
debug = -> console.debug.apply arguments if window.console
class @Chart
constructor: (@data, @done) ->
@series = []
@parseArgs window.location.search.substring(1)
@loadData =>
@show()
@done() if @done
parseArgs: (qstr) ->
@argv ... | 187156 | window.log = -> try console.log.apply(console, arguments)
debug = -> console.debug.apply arguments if window.console
class @Chart
constructor: (@data, @done) ->
@series = []
@parseArgs window.location.search.substring(1)
@loadData =>
@show()
@done() if @done
parseArgs: (qstr) ->
@argv ... | true | window.log = -> try console.log.apply(console, arguments)
debug = -> console.debug.apply arguments if window.console
class @Chart
constructor: (@data, @done) ->
@series = []
@parseArgs window.location.search.substring(1)
@loadData =>
@show()
@done() if @done
parseArgs: (qstr) ->
@argv ... |
[
{
"context": "bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\n <link href=\"css",
"end": 375,
"score": 0.9996996521949768,
"start": 304,
"tag": "KEY",
"value": "sha384-BVYiiSIFeK1... | .miscellaneous/atom-snippets.cson | ryanglenferris/tic-tac-toe | 0 | # Custom snippet for quicklet creating a new HTML document with Epicodus.
'.text.html.basic':
'html':
'prefix': 'html'
'body': """
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFe... | 194393 | # Custom snippet for quicklet creating a new HTML document with Epicodus.
'.text.html.basic':
'html':
'prefix': 'html'
'body': """
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorig... | true | # Custom snippet for quicklet creating a new HTML document with Epicodus.
'.text.html.basic':
'html':
'prefix': 'html'
'body': """
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="PI:KEY:<KEY>END_... |
[
{
"context": "ommon.addShip('#empire-builder', 'Firespray-31', 'Bounty Hunter')\n\n casper.then ->\n test.assertNotVisib",
"end": 6544,
"score": 0.9253913164138794,
"start": 6531,
"tag": "NAME",
"value": "Bounty Hunter"
},
{
"context": "builder #{common.selectorForUpgradeIn... | tests/test_epic_rules.coffee | CrazyVulcan/xwing | 100 | common = require './common'
common.setup()
casper.test.begin "No more than 12 small ships of the same type", (test) ->
common.waitForStartup('#rebel-builder')
# in non-epic mode, no restrictions
for _ in [1..13]
common.addShip('#rebel-builder', 'X-Wing', 'Rookie Pilot')
casper.then ->
... | 80657 | common = require './common'
common.setup()
casper.test.begin "No more than 12 small ships of the same type", (test) ->
common.waitForStartup('#rebel-builder')
# in non-epic mode, no restrictions
for _ in [1..13]
common.addShip('#rebel-builder', 'X-Wing', 'Rookie Pilot')
casper.then ->
... | true | common = require './common'
common.setup()
casper.test.begin "No more than 12 small ships of the same type", (test) ->
common.waitForStartup('#rebel-builder')
# in non-epic mode, no restrictions
for _ in [1..13]
common.addShip('#rebel-builder', 'X-Wing', 'Rookie Pilot')
casper.then ->
... |
[
{
"context": "ennessee\"\n \" Oklahoma State\"\n \"24 USC\"\n \" Notre Dame\"\n \"22 Utah\"\n \"18 Wisconsin\"\n \"17 Clemson",
"end": 609,
"score": 0.7974703311920166,
"start": 599,
"tag": "NAME",
"value": "Notre Dame"
}
] | app/models/init.coffee | lude/ncaa-tourney-ui | 0 | {Navbar} = require 'models/navbar'
app.models.navbar = new Navbar
{GameCollection} = require 'models/game'
app.collections.game = new GameCollection
app.collections.game.fetch()
{WinnerCollection} = require 'models/winner'
app.collections.winner = new WinnerCollection
{Error} = require 'models/error'
app.models.erro... | 182472 | {Navbar} = require 'models/navbar'
app.models.navbar = new Navbar
{GameCollection} = require 'models/game'
app.collections.game = new GameCollection
app.collections.game.fetch()
{WinnerCollection} = require 'models/winner'
app.collections.winner = new WinnerCollection
{Error} = require 'models/error'
app.models.erro... | true | {Navbar} = require 'models/navbar'
app.models.navbar = new Navbar
{GameCollection} = require 'models/game'
app.collections.game = new GameCollection
app.collections.game.fetch()
{WinnerCollection} = require 'models/winner'
app.collections.winner = new WinnerCollection
{Error} = require 'models/error'
app.models.erro... |
[
{
"context": ">\n itemToCreate = {\n #$id: 0\n name: 'new item'\n }\n\n assert.isFalse(@catalogue.actions.cre",
"end": 1695,
"score": 0.825028657913208,
"start": 1687,
"tag": "NAME",
"value": "new item"
},
{
"context": "sult = {\n $id: 0\n $$key: 0\n ... | test/functional/node_catalogue.spec.coffee | ipkozyrin/mold | 0 | index = require('../../src/index')
Catalogue = require('../../src/nodes/Catalogue')
describe 'Functional. Catalogue node.', ->
beforeEach () ->
@testSchema = {
catalogue: {
type: 'catalogue'
item: {
$id: { type: 'number', primary: true }
name: { type: 'string' }
... | 65025 | index = require('../../src/index')
Catalogue = require('../../src/nodes/Catalogue')
describe 'Functional. Catalogue node.', ->
beforeEach () ->
@testSchema = {
catalogue: {
type: 'catalogue'
item: {
$id: { type: 'number', primary: true }
name: { type: 'string' }
... | true | index = require('../../src/index')
Catalogue = require('../../src/nodes/Catalogue')
describe 'Functional. Catalogue node.', ->
beforeEach () ->
@testSchema = {
catalogue: {
type: 'catalogue'
item: {
$id: { type: 'number', primary: true }
name: { type: 'string' }
... |
[
{
"context": "adata()', () ->\n metadata = [\n {\n name: 'name'\n description: ''\n type: ''\n requi",
"end": 167,
"score": 0.7154601812362671,
"start": 163,
"tag": "NAME",
"value": "name"
},
{
"context": " required: true\n default: ''\n example: 'wi... | test/unit/convert-ast-metadata-test.coffee | HBOCodeLabs/dredd | 0 | {assert} = require 'chai'
convertAstMetadata = require '../../src/convert-ast-metadata'
describe 'convertAstMetadata()', () ->
metadata = [
{
name: 'name'
description: ''
type: ''
required: true
default: ''
example: 'willy'
values: ''
}
,
{
name: 'li... | 146311 | {assert} = require 'chai'
convertAstMetadata = require '../../src/convert-ast-metadata'
describe 'convertAstMetadata()', () ->
metadata = [
{
name: '<NAME>'
description: ''
type: ''
required: true
default: ''
example: '<NAME>'
values: ''
}
,
{
name: ... | true | {assert} = require 'chai'
convertAstMetadata = require '../../src/convert-ast-metadata'
describe 'convertAstMetadata()', () ->
metadata = [
{
name: 'PI:NAME:<NAME>END_PI'
description: ''
type: ''
required: true
default: ''
example: 'PI:NAME:<NAME>END_PI'
values: ''
... |
[
{
"context": "initializeSubscription: ->\n routingKey1 = \"changes.project.#{@scope.projectId}.userstories\"\n @events.s",
"end": 5542,
"score": 0.6491266489028931,
"start": 5526,
"tag": "KEY",
"value": "changes.project."
},
{
"context": " routingKey1 = \"changes.projec... | app/coffee/modules/backlog/main.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 35859 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": ".Inputs.DateTime\n model: model\n key: @id\n format: @inputFormat\n mask: @mas",
"end": 204,
"score": 0.6026692986488342,
"start": 204,
"tag": "USERNAME",
"value": ""
},
{
"context": "nputs.DateTime\n model: model\n key: @id\n ... | app/vendor/kalnoy/cruddy/resources/assets/coffee/fields/datetime.coffee | EH7AN/lawyers | 0 | class Cruddy.Fields.BaseDateTime extends Cruddy.Fields.Base
inputFormat: null
mask: null
createEditableInput: (model, inputId) -> new Cruddy.Inputs.DateTime
model: model
key: @id
format: @inputFormat
mask: @mask
attributes:
id: @inputId
formatDate: ... | 9162 | class Cruddy.Fields.BaseDateTime extends Cruddy.Fields.Base
inputFormat: null
mask: null
createEditableInput: (model, inputId) -> new Cruddy.Inputs.DateTime
model: model
key: @<KEY>
format: @inputFormat
mask: @mask
attributes:
id: @inputId
formatDat... | true | class Cruddy.Fields.BaseDateTime extends Cruddy.Fields.Base
inputFormat: null
mask: null
createEditableInput: (model, inputId) -> new Cruddy.Inputs.DateTime
model: model
key: @PI:KEY:<KEY>END_PI
format: @inputFormat
mask: @mask
attributes:
id: @inputId
... |
[
{
"context": " `Document` unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\n{Test,should} = require('lovely')\n\n\ndescribe \"D",
"end": 75,
"score": 0.9998854398727417,
"start": 58,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dom/test/document_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The `Document` unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
{Test,should} = require('lovely')
describe "Document", ->
$ = Document = window = document = null
before Test.load (dom, win)->
$ = dom
window = win
Document = $.Document
document = new Document(win.document)
... | 193986 | #
# The `Document` unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
{Test,should} = require('lovely')
describe "Document", ->
$ = Document = window = document = null
before Test.load (dom, win)->
$ = dom
window = win
Document = $.Document
document = new Document(win.document)
describe... | true | #
# The `Document` unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
{Test,should} = require('lovely')
describe "Document", ->
$ = Document = window = document = null
before Test.load (dom, win)->
$ = dom
window = win
Document = $.Document
document = new Document(win.document... |
[
{
"context": "rint/browse quotes'\n version: '0.2'\n authors: ['Álvaro Cuesta']\n",
"end": 5036,
"score": 0.9998850226402283,
"start": 5023,
"tag": "NAME",
"value": "Álvaro Cuesta"
}
] | plugins/quotes.coffee | Arrogance/nerdobot | 1 | util = require '../lib/util'
sqlite3 = require('sqlite3')
clc = require 'cli-color'
isInt = (n) ->
!isNaN(parseInt(n)) and isFinite(n)
module.exports = (file) ->
db = new sqlite3.cached.Database file, (err) =>
if err
console.log clc.redBright "Error opening deatbase #{file}: #{err}"
console.log cl... | 1339 | util = require '../lib/util'
sqlite3 = require('sqlite3')
clc = require 'cli-color'
isInt = (n) ->
!isNaN(parseInt(n)) and isFinite(n)
module.exports = (file) ->
db = new sqlite3.cached.Database file, (err) =>
if err
console.log clc.redBright "Error opening deatbase #{file}: #{err}"
console.log cl... | true | util = require '../lib/util'
sqlite3 = require('sqlite3')
clc = require 'cli-color'
isInt = (n) ->
!isNaN(parseInt(n)) and isFinite(n)
module.exports = (file) ->
db = new sqlite3.cached.Database file, (err) =>
if err
console.log clc.redBright "Error opening deatbase #{file}: #{err}"
console.log cl... |
[
{
"context": "ray histogram to a bitmap\n#\n# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>\n#\n# Permission is hereby g",
"end": 301,
"score": 0.9998742341995239,
"start": 280,
"tag": "NAME",
"value": "Micah Elizabeth Scott"
},
{
"context": "p\n#\n# Copyright (... | example /html/src/worker-asm-shell.coffee | amane312/photon_generator | 0 | #
# Worker thread for Zen Photon Garden.
#
# Workers are used for our CPU-intensive computing tasks:
#
# - Rendering a scene to a ray histogram
# - Combining multiple ray histograms
# - Rendering a combined ray histogram to a bitmap
#
# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.or... | 107100 | #
# Worker thread for Zen Photon Garden.
#
# Workers are used for our CPU-intensive computing tasks:
#
# - Rendering a scene to a ray histogram
# - Combining multiple ray histograms
# - Rendering a combined ray histogram to a bitmap
#
# Copyright (c) 2013 <NAME> <<EMAIL>>
#
# Permission is her... | true | #
# Worker thread for Zen Photon Garden.
#
# Workers are used for our CPU-intensive computing tasks:
#
# - Rendering a scene to a ray histogram
# - Combining multiple ray histograms
# - Rendering a combined ray histogram to a bitmap
#
# Copyright (c) 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>EN... |
[
{
"context": "lection([\n new Backbone.Model({id: 5, name: \"Elijah Hoppe\", phone: \"623-878-1901 x223\", birthday: \"1992-11-",
"end": 334,
"score": 0.9998419284820557,
"start": 322,
"tag": "NAME",
"value": "Elijah Hoppe"
},
{
"context": "11-03\"}),\n new Backbone.Model({... | spec/javascripts/core/apps/patient/list-view.spec.coffee | houzelio/houzel | 2 | import ListView from 'javascripts/core/apps/patient/list-view'
import { AppChan } from 'javascripts/core/channels'
describe("Patient List View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
myCollection = new Backbone.Collection([
new Backbone.Model({id: 5, name:... | 209547 | import ListView from 'javascripts/core/apps/patient/list-view'
import { AppChan } from 'javascripts/core/channels'
describe("Patient List View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
myCollection = new Backbone.Collection([
new Backbone.Model({id: 5, name:... | true | import ListView from 'javascripts/core/apps/patient/list-view'
import { AppChan } from 'javascripts/core/channels'
describe("Patient List View", () ->
MyRegion = Marionette.Region.extend({
el: '#main-region'
})
beforeEach ->
myCollection = new Backbone.Collection([
new Backbone.Model({id: 5, name:... |
[
{
"context": " [waveCts.WAVE_SHARED_STATE_PRIVATE, ['sdf@gmail.com']]\n [waveCts.WAVE_SHARED_STATE_PRI",
"end": 3597,
"score": 0.9999151229858398,
"start": 3584,
"tag": "EMAIL",
"value": "sdf@gmail.com"
},
{
"context": " [waveCts.WAVE_SHARED_STATE... | src/tests/server/import/test_source_parser.coffee | LaPingvino/rizzoma | 88 | sinon = require('sinon-plus')
testCase = require('nodeunit').testCase
dataprovider = require('dataprovider')
ImportSourceParser = require('../../../server/import/source_parser').ImportSourceParser
LINK_REDIRECT_PREFIX = require('../../../server/import/source_parser').LINK_REDIRECT_PREFIX
WaveGenerator = require('../../... | 216179 | sinon = require('sinon-plus')
testCase = require('nodeunit').testCase
dataprovider = require('dataprovider')
ImportSourceParser = require('../../../server/import/source_parser').ImportSourceParser
LINK_REDIRECT_PREFIX = require('../../../server/import/source_parser').LINK_REDIRECT_PREFIX
WaveGenerator = require('../../... | true | sinon = require('sinon-plus')
testCase = require('nodeunit').testCase
dataprovider = require('dataprovider')
ImportSourceParser = require('../../../server/import/source_parser').ImportSourceParser
LINK_REDIRECT_PREFIX = require('../../../server/import/source_parser').LINK_REDIRECT_PREFIX
WaveGenerator = require('../../... |
[
{
"context": "'\n\nobjtrans = require '../index'\n\nuser =\n name: 'jimmy'\n emails: [\n 'jam@jam.com'\n 'jef@jef.com'\n",
"end": 66,
"score": 0.6588500738143921,
"start": 61,
"tag": "NAME",
"value": "jimmy"
},
{
"context": "./index'\n\nuser =\n name: 'jimmy'\n emails: [\n ... | src/test/test.coffee | ndxbxrme/objtrans | 0 | 'use strict'
objtrans = require '../index'
user =
name: 'jimmy'
emails: [
'jam@jam.com'
'jef@jef.com'
'zam@zam.com'
]
local:
email: 'jim@jim.com'
password: '23goh32fgdf'
firstname: 'Jim'
horrible:
obj:
surname: 'Smith'
pattern =
nameDetails:
name: true
usernam... | 168874 | 'use strict'
objtrans = require '../index'
user =
name: '<NAME>'
emails: [
'<EMAIL>'
'<EMAIL>'
'<EMAIL>'
]
local:
email: '<EMAIL>'
password: '<PASSWORD>'
firstname: '<NAME>'
horrible:
obj:
surname: 'Smith'
pattern =
nameDetails:
name: true
username: 'name'
e... | true | 'use strict'
objtrans = require '../index'
user =
name: 'PI:NAME:<NAME>END_PI'
emails: [
'PI:EMAIL:<EMAIL>END_PI'
'PI:EMAIL:<EMAIL>END_PI'
'PI:EMAIL:<EMAIL>END_PI'
]
local:
email: 'PI:EMAIL:<EMAIL>END_PI'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
firstname: 'PI:NAME:<NAME>END_PI'
horrib... |
[
{
"context": "l\n}, ->\n\nrq = \n method: 'REGISTER',\n uri: 'sip:172.16.1.10',\n headers:\n to: {uri: 'sip:101@172.16.1.10' ",
"end": 290,
"score": 0.9997401833534241,
"start": 279,
"tag": "IP_ADDRESS",
"value": "172.16.1.10"
},
{
"context": "p:172.16.1.10',\n headers:\n ... | test/digest-client.coffee | kelchy/sip.js | 221 | sip = require 'sip'
digest = require 'sip/digest'
util = require 'util'
sip.start {
logger:
send: (rq) -> util.debug "send\n" + util.inspect rq, null, null
recv: (rq) -> util.debug "recv\n" + util.inspect rq, null, null
}, ->
rq =
method: 'REGISTER',
uri: 'sip:172.16.1.10',
headers:
to: {uri: 's... | 13045 | sip = require 'sip'
digest = require 'sip/digest'
util = require 'util'
sip.start {
logger:
send: (rq) -> util.debug "send\n" + util.inspect rq, null, null
recv: (rq) -> util.debug "recv\n" + util.inspect rq, null, null
}, ->
rq =
method: 'REGISTER',
uri: 'sip:172.16.1.10',
headers:
to: {uri: 's... | true | sip = require 'sip'
digest = require 'sip/digest'
util = require 'util'
sip.start {
logger:
send: (rq) -> util.debug "send\n" + util.inspect rq, null, null
recv: (rq) -> util.debug "recv\n" + util.inspect rq, null, null
}, ->
rq =
method: 'REGISTER',
uri: 'sip:172.16.1.10',
headers:
to: {uri: 's... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999104738235474,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/lib/react-turbolinks.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 * as ReactDOM from 'react-dom'
export class ReactTurbolinks
constructor: (@components = {}) ->
@docu... | 206357 | # 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 * as ReactDOM from 'react-dom'
export class ReactTurbolinks
constructor: (@components = {}) ->
@documentRea... | 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 * as ReactDOM from 'react-dom'
export class ReactTurbolinks
constructor: (@components = {}) ->
... |
[
{
"context": "sers to csv', (next) ->\n user1 =\n email: 'dorian@ethylocle.com'\n lastname: 'Bagur'\n firstname: 'Dorian",
"end": 442,
"score": 0.9999325275421143,
"start": 422,
"tag": "EMAIL",
"value": "dorian@ethylocle.com"
},
{
"context": "le.com'\n lastname... | lib/model/levelDB/tool/test/export.coffee | dorianb/Web-application---Ethylocl- | 0 | rimraf = require 'rimraf'
should = require 'should'
fs = require 'fs'
exportStream = require '../export'
importStream = require '../import'
Down = require '../../down'
level = require 'level'
describe 'Export', ->
beforeEach (next) ->
rimraf "#{__dirname}/../../../../../db/tmp/user", ->
rimraf "#{__dirnam... | 93878 | rimraf = require 'rimraf'
should = require 'should'
fs = require 'fs'
exportStream = require '../export'
importStream = require '../import'
Down = require '../../down'
level = require 'level'
describe 'Export', ->
beforeEach (next) ->
rimraf "#{__dirname}/../../../../../db/tmp/user", ->
rimraf "#{__dirnam... | true | rimraf = require 'rimraf'
should = require 'should'
fs = require 'fs'
exportStream = require '../export'
importStream = require '../import'
Down = require '../../down'
level = require 'level'
describe 'Export', ->
beforeEach (next) ->
rimraf "#{__dirname}/../../../../../db/tmp/user", ->
rimraf "#{__dirnam... |
[
{
"context": "place.test\", ->\n\t\tif @get(\"marketplace.test\")\n\t\t\t\"ca_5dvMyNcFzpYybDusO7oTdnS4dfErebB1\"\n\t\telse\n\t\t\t\"ca_5dvMPc8m1N5R2EkNElwKsJvQ8VdRdcaN\"\n",
"end": 374,
"score": 0.9955229163169861,
"start": 339,
"tag": "KEY",
"value": "ca_5dvMyNcFzpYybDusO7oTdnS4dfErebB1"
... | app/views/migrate-connect.coffee | dk-dev/balanced-dashboard | 169 | `import Ember from "ember";`
View = Ember.View.extend
layoutName: 'clean-page-layout'
pageTitle: 'Connect to your Stripe account'
marketplace: Ember.computed.reads("controller.model")
marketplaceId: Ember.computed.reads("marketplace.id")
stripeApplicationId: Ember.computed "marketplace.test", ->
if @get("mark... | 172162 | `import Ember from "ember";`
View = Ember.View.extend
layoutName: 'clean-page-layout'
pageTitle: 'Connect to your Stripe account'
marketplace: Ember.computed.reads("controller.model")
marketplaceId: Ember.computed.reads("marketplace.id")
stripeApplicationId: Ember.computed "marketplace.test", ->
if @get("mark... | true | `import Ember from "ember";`
View = Ember.View.extend
layoutName: 'clean-page-layout'
pageTitle: 'Connect to your Stripe account'
marketplace: Ember.computed.reads("controller.model")
marketplaceId: Ember.computed.reads("marketplace.id")
stripeApplicationId: Ember.computed "marketplace.test", ->
if @get("mark... |
[
{
"context": "n \" + el[0].outerHTML\n return\n\n obj.name = uuid\n obj.userData = el\n\n if obj.body\n @phy",
"end": 12694,
"score": 0.5054249167442322,
"start": 12690,
"tag": "NAME",
"value": "uuid"
}
] | app/src/connector.coffee | kustomzone/kzone | 3 | Utils = require('./utils.coffee')
URI = require('uri-js')
StyleMap = require('./style_map')
TWEEN = require('tween')
EventEmitter= require('wolfy87-eventemitter')
Color = require('color')
Billboard = require('./coffee/billboard.coffee')
Box = require('./coffee/box.coffee')
Sky = require('./coffee/box.cof... | 142042 | Utils = require('./utils.coffee')
URI = require('uri-js')
StyleMap = require('./style_map')
TWEEN = require('tween')
EventEmitter= require('wolfy87-eventemitter')
Color = require('color')
Billboard = require('./coffee/billboard.coffee')
Box = require('./coffee/box.coffee')
Sky = require('./coffee/box.cof... | true | Utils = require('./utils.coffee')
URI = require('uri-js')
StyleMap = require('./style_map')
TWEEN = require('tween')
EventEmitter= require('wolfy87-eventemitter')
Color = require('color')
Billboard = require('./coffee/billboard.coffee')
Box = require('./coffee/box.coffee')
Sky = require('./coffee/box.cof... |
[
{
"context": "ult\" ,result\n\n expect(result.key).toEqual 'gChNU6Pd4cG'\n\n\n it 'should return same key for already sho",
"end": 2428,
"score": 0.9995589256286621,
"start": 2417,
"tag": "KEY",
"value": "gChNU6Pd4cG"
},
{
"context": "r).toBeNull()\n expect(result.ke... | spec/unique-shortener.spec.coffee | valiton/node-unique-shortener | 3 | require 'jasmine-matchers'
async = require 'async'
RedisMock = require './redis-mock.spec'
MongoMock = require './mongo-mock.spec'
UniqueShortener = require "#{process.cwd()}/lib/unique-shortener"
describe 'UniqueShortener', ->
# tests for init()
describe 'init', ->
it 'should in... | 114582 | require 'jasmine-matchers'
async = require 'async'
RedisMock = require './redis-mock.spec'
MongoMock = require './mongo-mock.spec'
UniqueShortener = require "#{process.cwd()}/lib/unique-shortener"
describe 'UniqueShortener', ->
# tests for init()
describe 'init', ->
it 'should in... | true | require 'jasmine-matchers'
async = require 'async'
RedisMock = require './redis-mock.spec'
MongoMock = require './mongo-mock.spec'
UniqueShortener = require "#{process.cwd()}/lib/unique-shortener"
describe 'UniqueShortener', ->
# tests for init()
describe 'init', ->
it 'should in... |
[
{
"context": "# @author Tim Knip / http://www.floorplanner.com/ / tim at floorplan",
"end": 18,
"score": 0.9998915791511536,
"start": 10,
"tag": "NAME",
"value": "Tim Knip"
},
{
"context": "orplanner.com/ / tim at floorplanner.com\n# @author aladjev.andrew@gmail.com\n\nclass Surface\... | source/javascripts/new_src/loaders/collada/surface.coffee | andrew-aladev/three.js | 0 | # @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
# @author aladjev.andrew@gmail.com
class Surface
constructor: (effect) ->
@effect = effect
@init_from = null
@format = null
parse: (element) ->
length = element.childNodes.length
for i in [0...length]
... | 213967 | # @author <NAME> / http://www.floorplanner.com/ / tim at floorplanner.com
# @author <EMAIL>
class Surface
constructor: (effect) ->
@effect = effect
@init_from = null
@format = null
parse: (element) ->
length = element.childNodes.length
for i in [0...length]
child = element.c... | true | # @author PI:NAME:<NAME>END_PI / http://www.floorplanner.com/ / tim at floorplanner.com
# @author PI:EMAIL:<EMAIL>END_PI
class Surface
constructor: (effect) ->
@effect = effect
@init_from = null
@format = null
parse: (element) ->
length = element.childNodes.length
for i in [0...le... |
[
{
"context": " await page.goto 'https://de.wikipedia.org/wiki/Berlin'\n urge \"^interplot/gpdf@4198-3 page goto\"; ",
"end": 4828,
"score": 0.7948179244995117,
"start": 4822,
"tag": "NAME",
"value": "Berlin"
}
] | src/experiments/generate-pdf.coffee | loveencounterflow/datamill | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERPLOT/DEMO-PUPPETEER'
debug = CND.get_logger 'debug', bad... | 13065 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERPLOT/DEMO-PUPPETEER'
debug = CND.get_logger 'debug', bad... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERPLOT/DEMO-PUPPETEER'
debug = CND.get_logger 'debug', bad... |
[
{
"context": " \"id\" : \"2.16.840.1.113883.3.464.1003.102.12.1011\",\n \"accessLevel\" : \"Public\"\n ",
"end": 1014,
"score": 0.550110936164856,
"start": 1013,
"tag": "IP_ADDRESS",
"value": "2"
},
{
"context": "l\" : \"Public\"\n }, {\n \"n... | src/example/CMS146v2_CQM.coffee | luis1van/cql-execution-1 | 2 | module.exports = {
"library" : {
"identifier" : {
"id" : "CMS146",
"version" : "2"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "System",
"uri" : ... | 57231 | module.exports = {
"library" : {
"identifier" : {
"id" : "CMS146",
"version" : "2"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "System",
"uri" : ... | true | module.exports = {
"library" : {
"identifier" : {
"id" : "CMS146",
"version" : "2"
},
"schemaIdentifier" : {
"id" : "urn:hl7-org:elm",
"version" : "r1"
},
"usings" : {
"def" : [ {
"localIdentifier" : "System",
"uri" : ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.