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": "stream DNS server to send requests to\", default: \"8.8.8.8\"}\n .option \"p\", { alias: \"port\", demand: false",
"end": 695,
"score": 0.9997676014900208,
"start": 688,
"tag": "IP_ADDRESS",
"value": "8.8.8.8"
},
{
"context": "lp\"\n .example \"simple-dns-proxy ww... | src/index.iced | sajad-sadra/simple-dns-proxy | 9 | options = require "yargs"
.usage """
Usage: simple-dns-proxy <dns-record> [-u <upstream server>] [-p <port>]
DESCRIPTION
A simple DNS proxy which allows to locally resolve some domain names or patterns and forward the rest of them to an upstream, real DNS server.
SECURITY
... | 183659 | options = require "yargs"
.usage """
Usage: simple-dns-proxy <dns-record> [-u <upstream server>] [-p <port>]
DESCRIPTION
A simple DNS proxy which allows to locally resolve some domain names or patterns and forward the rest of them to an upstream, real DNS server.
SECURITY
... | true | options = require "yargs"
.usage """
Usage: simple-dns-proxy <dns-record> [-u <upstream server>] [-p <port>]
DESCRIPTION
A simple DNS proxy which allows to locally resolve some domain names or patterns and forward the rest of them to an upstream, real DNS server.
SECURITY
... |
[
{
"context": "= new jsSHA(\"SHA-1\", 'TEXT')\n shaObj.setHMACKey 'lttmlttm', 'TEXT'\n shaObj.update url\n hmac = shaObj.getH",
"end": 6951,
"score": 0.8939019441604614,
"start": 6943,
"tag": "KEY",
"value": "lttmlttm"
}
] | src/js/lttm.coffee | nekottyo/lttm-crx | 0 | atwhoOptions =
at: "!"
tpl: '<li class="lttm" data-value=""><img src="${imagePreviewUrl}" /></li>'
limit: 80
display_timeout: 1000
search_key: null
callbacks:
matcher: (flag, subtext) ->
regexp = new XRegExp("(\\s+|^)" + flag + "([\\p{L}_-]+)$", "gi")
match = regexp.exe... | 57349 | atwhoOptions =
at: "!"
tpl: '<li class="lttm" data-value=""><img src="${imagePreviewUrl}" /></li>'
limit: 80
display_timeout: 1000
search_key: null
callbacks:
matcher: (flag, subtext) ->
regexp = new XRegExp("(\\s+|^)" + flag + "([\\p{L}_-]+)$", "gi")
match = regexp.exe... | true | atwhoOptions =
at: "!"
tpl: '<li class="lttm" data-value=""><img src="${imagePreviewUrl}" /></li>'
limit: 80
display_timeout: 1000
search_key: null
callbacks:
matcher: (flag, subtext) ->
regexp = new XRegExp("(\\s+|^)" + flag + "([\\p{L}_-]+)$", "gi")
match = regexp.exe... |
[
{
"context": "\n\t\t@user =\n\t\t\t_id: ObjectId()\n\t\t\temail: @email = \"USER@example.com\"\n\t\t\tfirst_name: \"bob\"\n\t\t\tlast_name: \"brown\"\n\t\t\tre",
"end": 1488,
"score": 0.999919593334198,
"start": 1472,
"tag": "EMAIL",
"value": "USER@example.com"
},
{
"context": "mail:... | test/UnitTests/coffee/Authentication/AuthenticationControllerTests.coffee | HasanSanli/web-sharelatex | 0 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationController.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
tk = require("timekeeper")
MockRequest = require("../helpers/MockReque... | 52076 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationController.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
tk = require("timekeeper")
MockRequest = require("../helpers/MockReque... | true | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationController.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
tk = require("timekeeper")
MockRequest = require("../helpers/MockReque... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9995848536491394,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-writefloat.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... | 211431 | # 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": " get: sinon.stub().yields [[{id: '123', name: 'Berlin'}]]\n )\n Bloodhound.tokenizers = { obj",
"end": 3106,
"score": 0.8705790042877197,
"start": 3100,
"tag": "NAME",
"value": "Berlin"
},
{
"context": " fixtures().tags\n { id: '123', name: 'B... | src/client/components/filter_search/test/index.test.coffee | craigspaeth/positron | 76 | benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../test/helpers/fixtures.coffee'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTe... | 220763 | benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../test/helpers/fixtures.coffee'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTe... | true | benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../test/helpers/fixtures.coffee'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTe... |
[
{
"context": "8, 'list', [1, 2, 3] ]\n [ 9, 'object', {name: 'Egon'} ]\n [ 10, 'complex', [{name: 'Valentina'}, {n",
"end": 661,
"score": 0.9972453117370605,
"start": 657,
"tag": "NAME",
"value": "Egon"
},
{
"context": "', {name: 'Egon'} ]\n [ 10, 'complex', [{name: 'Valenti... | test/mocha/csv.coffee | alinex/node-formatter | 0 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test:csv'
chalk = require 'chalk'
Table = require 'alinex-table'
formatter = require '../../src/index'
describe "CSV", ->
file = __dirname + '/../data/format.csv'
format = 'csv'
example = fs.re... | 42694 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test:csv'
chalk = require 'chalk'
Table = require 'alinex-table'
formatter = require '../../src/index'
describe "CSV", ->
file = __dirname + '/../data/format.csv'
format = 'csv'
example = fs.re... | true | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test:csv'
chalk = require 'chalk'
Table = require 'alinex-table'
formatter = require '../../src/index'
describe "CSV", ->
file = __dirname + '/../data/format.csv'
format = 'csv'
example = fs.re... |
[
{
"context": "d, doc) ->\n return false if doc.author is 'max'\n return true\n internal:\n deny: tr",
"end": 357,
"score": 0.5975009799003601,
"start": 354,
"tag": "USERNAME",
"value": "max"
},
{
"context": "w all', (test, next) ->\n Posts.insert name: 'tes... | tests/fieldsecurity.coffee | maximalmeteor/fieldsecurity | 3 | Posts = new Meteor.Collection('posts')
Authors = new Meteor.Collection('authors')
if Meteor.isServer
FieldSecurity.setLogging true
Posts.attachRules
name:
allow: true
createdAt:
allow:
insert: true
update: false
remove: true
author:
allow: (userId, doc) ->
... | 72640 | Posts = new Meteor.Collection('posts')
Authors = new Meteor.Collection('authors')
if Meteor.isServer
FieldSecurity.setLogging true
Posts.attachRules
name:
allow: true
createdAt:
allow:
insert: true
update: false
remove: true
author:
allow: (userId, doc) ->
... | true | Posts = new Meteor.Collection('posts')
Authors = new Meteor.Collection('authors')
if Meteor.isServer
FieldSecurity.setLogging true
Posts.attachRules
name:
allow: true
createdAt:
allow:
insert: true
update: false
remove: true
author:
allow: (userId, doc) ->
... |
[
{
"context": "###\n@Author: Kristinita\n@Date:\t 2017-05-02 11:44:00\n@Last Modified time: ",
"end": 23,
"score": 0.9997901916503906,
"start": 13,
"tag": "NAME",
"value": "Kristinita"
},
{
"context": "do.github.io/gemini-scrollbar/\nhttps://github.com/noeldelgado/gemini-scrollbar/iss... | themes/sashapelican/static/coffee/Gemini/GeminiAndJQueryLazy.coffee | Kristinita/KristinitaPelicanCI | 0 | ###
@Author: Kristinita
@Date: 2017-05-02 11:44:00
@Last Modified time: 2018-03-24 08:49:55
###
####################
# gemini-scrollbar #
####################
###
Custom scrollbar instead of native body scrollbar:
https://noeldelgado.github.io/gemini-scrollbar/
https://github.com/noeldelgado/gemini-scrollbar/issues/46... | 182550 | ###
@Author: <NAME>
@Date: 2017-05-02 11:44:00
@Last Modified time: 2018-03-24 08:49:55
###
####################
# gemini-scrollbar #
####################
###
Custom scrollbar instead of native body scrollbar:
https://noeldelgado.github.io/gemini-scrollbar/
https://github.com/noeldelgado/gemini-scrollbar/issues/46#iss... | true | ###
@Author: PI:NAME:<NAME>END_PI
@Date: 2017-05-02 11:44:00
@Last Modified time: 2018-03-24 08:49:55
###
####################
# gemini-scrollbar #
####################
###
Custom scrollbar instead of native body scrollbar:
https://noeldelgado.github.io/gemini-scrollbar/
https://github.com/noeldelgado/gemini-scrollbar... |
[
{
"context": "gedIn()\n # analytics?.identify localStorage['purpleUserId']\n # # segment says you 'have' to call analy",
"end": 4607,
"score": 0.8940093517303467,
"start": 4595,
"tag": "USERNAME",
"value": "purpleUserId"
},
{
"context": "tion.\n If the problem pe... | src/app/controller/Main.coffee | Purple-Services/app | 2 | Ext.define 'Purple.controller.Main',
extend: 'Ext.app.Controller'
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
loginForm: 'loginform'
requestGasTabContainer: '#requestGasTabContainer'
mapForm: 'mapform'
map: '#gmap'
spacerBetweenMapAndAddress: '... | 176338 | Ext.define 'Purple.controller.Main',
extend: 'Ext.app.Controller'
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
loginForm: 'loginform'
requestGasTabContainer: '#requestGasTabContainer'
mapForm: 'mapform'
map: '#gmap'
spacerBetweenMapAndAddress: '... | true | Ext.define 'Purple.controller.Main',
extend: 'Ext.app.Controller'
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
loginForm: 'loginform'
requestGasTabContainer: '#requestGasTabContainer'
mapForm: 'mapform'
map: '#gmap'
spacerBetweenMapAndAddress: '... |
[
{
"context": "ider,strategy} = {}\n\n beforeEach ->\n token = 't0k3n'\n provider = _.clone providers.oauthtest, true",
"end": 460,
"score": 0.8468267321586609,
"start": 455,
"tag": "PASSWORD",
"value": "t0k3n"
}
] | test/unit/strategies/oauth/resourceOwnerAuthorization.coffee | LorianeE/connect | 331 | # Test dependencies
_ = require 'lodash'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuthStrategy = require '../../../../protocols/OAuth'
providers = require '../../../../... | 101656 | # Test dependencies
_ = require 'lodash'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuthStrategy = require '../../../../protocols/OAuth'
providers = require '../../../../... | true | # Test dependencies
_ = require 'lodash'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
OAuthStrategy = require '../../../../protocols/OAuth'
providers = require '../../../../... |
[
{
"context": " qs:\n limit: 100\n apiKey: '77993f4a-e4cd-4403-b030-6f05b40d95cf'\n secretKey: 'ca5a7809-3d94-4951-b2df-",
"end": 1663,
"score": 0.9997640252113342,
"start": 1627,
"tag": "KEY",
"value": "77993f4a-e4cd-4403-b030-6f05b40d95cf"
},
{
"con... | server/app.coffee | EFF/driveSlow | 0 | async = require 'async'
request = require 'request'
stylus = require 'stylus'
express = require 'express'
path = require 'path'
http = require 'http'
publicDirectory = path.join __dirname, '../build'
stylusSource = path.join __dirname, '../client/stylesheets/'
stylusDestination = path.join __dirname, '../build/stylesh... | 138283 | async = require 'async'
request = require 'request'
stylus = require 'stylus'
express = require 'express'
path = require 'path'
http = require 'http'
publicDirectory = path.join __dirname, '../build'
stylusSource = path.join __dirname, '../client/stylesheets/'
stylusDestination = path.join __dirname, '../build/stylesh... | true | async = require 'async'
request = require 'request'
stylus = require 'stylus'
express = require 'express'
path = require 'path'
http = require 'http'
publicDirectory = path.join __dirname, '../build'
stylusSource = path.join __dirname, '../client/stylesheets/'
stylusDestination = path.join __dirname, '../build/stylesh... |
[
{
"context": "d lose more XP, at the cost of gold.\n *\n * @name Seeker\n * @prerequisite Gain xp 100000 times\n * @effec",
"end": 157,
"score": 0.7786118984222412,
"start": 151,
"tag": "NAME",
"value": "Seeker"
}
] | src/character/personalities/Seeker.coffee | sadbear-/IdleLands | 3 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you both gain and lose more XP, at the cost of gold.
*
* @name Seeker
* @prerequisite Gain xp 100000 times
* @effect +15% xp
* @effect -15% gold
* @category Personalities
* @package Player
*/`
class Seeker extends Personal... | 193430 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you both gain and lose more XP, at the cost of gold.
*
* @name <NAME>
* @prerequisite Gain xp 100000 times
* @effect +15% xp
* @effect -15% gold
* @category Personalities
* @package Player
*/`
class Seeker extends Personal... | true |
Personality = require "../base/Personality"
`/**
* This personality makes it so you both gain and lose more XP, at the cost of gold.
*
* @name PI:NAME:<NAME>END_PI
* @prerequisite Gain xp 100000 times
* @effect +15% xp
* @effect -15% gold
* @category Personalities
* @package Player
*/`
class Seeker ex... |
[
{
"context": "\n# * bumper | dom | jquery\n# * https://github.com/brewster1134/bumper\n# *\n# * @author Ryan Brewster\n# * Copyrigh",
"end": 65,
"score": 0.9994032382965088,
"start": 53,
"tag": "USERNAME",
"value": "brewster1134"
},
{
"context": "s://github.com/brewster1134/bumper\n#... | src/bumper-dom-jquery.coffee | brewster1134/bumper | 0 | ###
# * bumper | dom | jquery
# * https://github.com/brewster1134/bumper
# *
# * @author Ryan Brewster
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'jquery'
'bumper-core'
], ($, Core) ->
factory $, Core
else
factory window.jQuery... | 99424 | ###
# * bumper | dom | jquery
# * https://github.com/brewster1134/bumper
# *
# * @author <NAME>
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'jquery'
'bumper-core'
], ($, Core) ->
factory $, Core
else
factory window.jQuery, windo... | true | ###
# * bumper | dom | jquery
# * https://github.com/brewster1134/bumper
# *
# * @author PI:NAME:<NAME>END_PI
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'jquery'
'bumper-core'
], ($, Core) ->
factory $, Core
else
factory window... |
[
{
"context": ", isPluginExtension)\n{\n\tthis.id = id;\n\tthis.name = name;\n\tthis.mainPath = mainPath;\n\tthis.basePath = base",
"end": 5002,
"score": 0.9939008951187134,
"start": 4998,
"tag": "NAME",
"value": "name"
}
] | src/CSInterface.coffee | AriaMinaei/photoshopjs-panel | 3 | `
/*
ADOBE SYSTEMS INCORPORATED
Copyright 2013 Adobe Systems Incorporated. All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in
accordance with the terms of the Adobe license agreement accompanying it.
If you have received this file from a source other than Adobe, then your
use, ... | 154460 | `
/*
ADOBE SYSTEMS INCORPORATED
Copyright 2013 Adobe Systems Incorporated. All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in
accordance with the terms of the Adobe license agreement accompanying it.
If you have received this file from a source other than Adobe, then your
use, ... | true | `
/*
ADOBE SYSTEMS INCORPORATED
Copyright 2013 Adobe Systems Incorporated. All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in
accordance with the terms of the Adobe license agreement accompanying it.
If you have received this file from a source other than Adobe, then your
use, ... |
[
{
"context": "ashana', 'ErebYomTob', 'HataratNedarim'], '1': ['RoshHashana', 'YomTob', '1stDayOfYomTob'], '2': ['RoshHashana",
"end": 6276,
"score": 0.9794101715087891,
"start": 6266,
"tag": "NAME",
"value": "oshHashana"
},
{
"context": "oshHashana', 'YomTob', '1stDayOfYomTob'], '2':... | qunit/hebrewDateTest.coffee | betesh/hebrewDate.js | 0 | assetHebrewDate = (date, hebrewYear, hebrewMonth, dayOfMonth, dayOfYear) ->
QUnit.test "#{date} is '#{hebrewMonth.name}' #{dayOfMonth}, #{hebrewYear}", (assert) ->
actual = new HebrewDate(date)
assert.deepEqual actual.getYearFromCreation(), hebrewYear
assert.deepEqual actual.getHebrewMonth().getName(), he... | 69433 | assetHebrewDate = (date, hebrewYear, hebrewMonth, dayOfMonth, dayOfYear) ->
QUnit.test "#{date} is '#{hebrewMonth.name}' #{dayOfMonth}, #{hebrewYear}", (assert) ->
actual = new HebrewDate(date)
assert.deepEqual actual.getYearFromCreation(), hebrewYear
assert.deepEqual actual.getHebrewMonth().getName(), he... | true | assetHebrewDate = (date, hebrewYear, hebrewMonth, dayOfMonth, dayOfYear) ->
QUnit.test "#{date} is '#{hebrewMonth.name}' #{dayOfMonth}, #{hebrewYear}", (assert) ->
actual = new HebrewDate(date)
assert.deepEqual actual.getYearFromCreation(), hebrewYear
assert.deepEqual actual.getHebrewMonth().getName(), he... |
[
{
"context": "'bidder')\n @req = user: new CurrentUser(id: 'foobar'), params: id: 'foobar'\n routes.index @req, ",
"end": 2550,
"score": 0.9979222416877747,
"start": 2544,
"tag": "USERNAME",
"value": "foobar"
},
{
"context": " @req.params.id = 'bar'\n @req.body.email ... | desktop/apps/auction/test/routes.coffee | dblock/force | 1 | _ = require 'underscore'
Q = require 'bluebird-q'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../models/current_user'
Auction = require '../../../models/auction'
routes = rewire '../routes'
moment = require 'moment'
... | 94229 | _ = require 'underscore'
Q = require 'bluebird-q'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../models/current_user'
Auction = require '../../../models/auction'
routes = rewire '../routes'
moment = require 'moment'
... | true | _ = require 'underscore'
Q = require 'bluebird-q'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../models/current_user'
Auction = require '../../../models/auction'
routes = rewire '../routes'
moment = require 'moment'
... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission ",
"end": 18,
"score": 0.8936300873756409,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-module-loading-error.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... | 201902 | # 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": "cGPG2 v2\nComment: GPGTools - https://gpgtools.org\n\nmQENBFRtEYQBCADSAtDn9FmeoXy1eSl5BKsZvBcQWNVx3so/CGqsXZrQu3lVftFY\nv90eqxlg/GHtZL26Aii08a9XLTazu3BeIKdokpdCtf2EO3q5dH1k1FAXLoSKvDXL\nnhAtiEUzwQOLZgU5LuFafgCeVwzMeT76++ILpdo0Mil09df28JyLX3NqL6xW4I09\nt2aFxgDxbfPYaYvFLw3IfYfaS1l3f2jvUmo4udXkNBNHHc... | test/files/revoked_subkey.iced | johnnyRose/kbpgp | 1 |
{KeyManager,box,unbox} = require '../..'
#=================================================================
pubkm = null
seckm = null
ctext = null
ptext = null
exports.import_public = (T,cb) ->
await KeyManager.import_from_armored_pgp { raw : pub }, T.esc(defer(tmp, warnings), cb, "import_public")
T.assert (war... | 161149 |
{KeyManager,box,unbox} = require '../..'
#=================================================================
pubkm = null
seckm = null
ctext = null
ptext = null
exports.import_public = (T,cb) ->
await KeyManager.import_from_armored_pgp { raw : pub }, T.esc(defer(tmp, warnings), cb, "import_public")
T.assert (war... | true |
{KeyManager,box,unbox} = require '../..'
#=================================================================
pubkm = null
seckm = null
ctext = null
ptext = null
exports.import_public = (T,cb) ->
await KeyManager.import_from_armored_pgp { raw : pub }, T.esc(defer(tmp, warnings), cb, "import_public")
T.assert (war... |
[
{
"context": "ateContextObject()], \"it is STUNNED\",{\n\t\t\t\tname: \"Winterblade\"\n\t\t\t\tdescription: \"Enemy minions damaged by your ",
"end": 13425,
"score": 0.8677189350128174,
"start": 13414,
"tag": "NAME",
"value": "Winterblade"
},
{
"context": "AbsorbDamage.createContextO... | app/sdk/cards/factory/misc/bosses.coffee | willroberts/duelyst | 5 | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
i18next = require 'i18next'
if i18next.t() is undefined
i18next.t = (text) ->
return text
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
R... | 161073 | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
i18next = require 'i18next'
if i18next.t() is undefined
i18next.t = (text) ->
return text
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
R... | true | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
i18next = require 'i18next'
if i18next.t() is undefined
i18next.t = (text) ->
return text
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
R... |
[
{
"context": "nerate()\n username: data.username\n password: hash\n }\n\n client.respond composer.createResponse('al",
"end": 673,
"score": 0.9968647360801697,
"start": 669,
"tag": "PASSWORD",
"value": "hash"
}
] | src/net/events/register.coffee | habbo5/game-server | 8 | logger = require '@/utils/logger'
shortid = require 'shortid'
validator = require 'validator'
bcrypt = require 'bcrypt'
User = require '@/storage/models/user'
composer = require '@/net/composer'
handle = (client, data) ->
return if client.habbo || !data.password || !data.username
userExists = await User.findOne {... | 208431 | logger = require '@/utils/logger'
shortid = require 'shortid'
validator = require 'validator'
bcrypt = require 'bcrypt'
User = require '@/storage/models/user'
composer = require '@/net/composer'
handle = (client, data) ->
return if client.habbo || !data.password || !data.username
userExists = await User.findOne {... | true | logger = require '@/utils/logger'
shortid = require 'shortid'
validator = require 'validator'
bcrypt = require 'bcrypt'
User = require '@/storage/models/user'
composer = require '@/net/composer'
handle = (client, data) ->
return if client.habbo || !data.password || !data.username
userExists = await User.findOne {... |
[
{
"context": "yright (c) 2011\n# Publication date: 06/17/2011\n#\t\tPierre Corsini (pcorsini@polytech.unice.fr)\n#\t\tNicolas Dupont (n",
"end": 69,
"score": 0.999877393245697,
"start": 55,
"tag": "NAME",
"value": "Pierre Corsini"
},
{
"context": "# Publication date: 06/17/2011\n#\t\... | src/StateMachine.coffee | Ndpnt/CoffeeTouch.js | 1 | # Copyright (c) 2011
# Publication date: 06/17/2011
# Pierre Corsini (pcorsini@polytech.unice.fr)
# Nicolas Dupont (npg.dupont@gmail.com)
# Nicolas Fernandez (fernande@polytech.unice.fr)
# Nima Izadi (nim.izadi@gmail.com)
# And supervised by Raphaël Bellec (r.bellec@structure-computation.com)
# Analyse all possib... | 42387 | # Copyright (c) 2011
# Publication date: 06/17/2011
# <NAME> (<EMAIL>)
# <NAME> (<EMAIL>)
# <NAME> (<EMAIL>)
# <NAME> (<EMAIL>)
# And supervised by <NAME> (<EMAIL>)
# Analyse all possible basic gesture of a single finger
class StateMachine
constructor: (@identifier, @router)->
@currentState = new NoTouch(this)... | true | # Copyright (c) 2011
# Publication date: 06/17/2011
# PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# And supervised by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# An... |
[
{
"context": "ent: \"&part=snippet,contentDetails&id=\"\n key: \"AIzaSyCxL2W7WQKGQ_IKN9ug37rxeJm-Hr0t7Fw\"\n\n documentation: \"https://developers.google.c",
"end": 344,
"score": 0.9997319579124451,
"start": 305,
"tag": "KEY",
"value": "AIzaSyCxL2W7WQKGQ_IKN9ug37rxeJm-Hr0t7Fw"
},
{... | app/controllers/getter.coffee | chriscx/Disko | 0 | #dependencies
request = require 'request'
colors = require 'colors'
Track = require('../models/track').Track
Playlist = require('../models/playlist').Playlist
sources =
youtube:
resolver: "https://www.googleapis.com/youtube/v3/videos?key="
content: "&part=snippet,contentDetails&id="
key: "AIzaSyCxL2W7WQK... | 73299 | #dependencies
request = require 'request'
colors = require 'colors'
Track = require('../models/track').Track
Playlist = require('../models/playlist').Playlist
sources =
youtube:
resolver: "https://www.googleapis.com/youtube/v3/videos?key="
content: "&part=snippet,contentDetails&id="
key: "<KEY>"
doc... | true | #dependencies
request = require 'request'
colors = require 'colors'
Track = require('../models/track').Track
Playlist = require('../models/playlist').Playlist
sources =
youtube:
resolver: "https://www.googleapis.com/youtube/v3/videos?key="
content: "&part=snippet,contentDetails&id="
key: "PI:KEY:<KEY>END... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9985317587852478,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-http-wget.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... | 47672 | # 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": " subject = {}\n assign subject, 'foo.bar[]', 'peter;paul;mary'\n subject.foo.bar.toString().should.",
"end": 2264,
"score": 0.9978382587432861,
"start": 2259,
"tag": "NAME",
"value": "peter"
},
{
"context": "ject = {}\n assign subject, 'foo.bar[]', 'peter;pau... | test/assign.test.coffee | mrbatista/excel-as-json | 1 | assign = require('../src/excel-as-json').assign
should = require('./helpers').should
# NOTE: the excel package uses '' for all empty cells
EMPTY_CELL = ''
describe 'assign', ->
it 'should assign first level properties', ->
subject = {}
assign subject, 'foo', 'clyde'
subject.foo.should.equal 'clyde'
... | 213111 | assign = require('../src/excel-as-json').assign
should = require('./helpers').should
# NOTE: the excel package uses '' for all empty cells
EMPTY_CELL = ''
describe 'assign', ->
it 'should assign first level properties', ->
subject = {}
assign subject, 'foo', 'clyde'
subject.foo.should.equal 'clyde'
... | true | assign = require('../src/excel-as-json').assign
should = require('./helpers').should
# NOTE: the excel package uses '' for all empty cells
EMPTY_CELL = ''
describe 'assign', ->
it 'should assign first level properties', ->
subject = {}
assign subject, 'foo', 'clyde'
subject.foo.should.equal 'clyde'
... |
[
{
"context": "VOTAL_TOKEN = <API token>\n#HUBOT_PIVOTAL_TOKEN = \"ddb2187632ade586c12fa4442b1055b8\"\n#\n# If you're working on a single project, you c",
"end": 181,
"score": 0.941301703453064,
"start": 149,
"tag": "KEY",
"value": "ddb2187632ade586c12fa4442b1055b8"
},
{
"context": ".... | src/scripts/pivotal.coffee | unepwcmc/hubot | 0 | # Get current stories from PivotalTracker
#
# You need to set the following variables:
# HUBOT_PIVOTAL_TOKEN = <API token>
#HUBOT_PIVOTAL_TOKEN = "ddb2187632ade586c12fa4442b1055b8"
#
# If you're working on a single project, you can set it once:
# HUBOT_PIVOTAL_PROJECT = <project name>
#
# Otherwise, include the pro... | 168400 | # Get current stories from PivotalTracker
#
# You need to set the following variables:
# HUBOT_PIVOTAL_TOKEN = <API token>
#HUBOT_PIVOTAL_TOKEN = "<KEY>"
#
# If you're working on a single project, you can set it once:
# HUBOT_PIVOTAL_PROJECT = <project name>
#
# Otherwise, include the project name in your message t... | true | # Get current stories from PivotalTracker
#
# You need to set the following variables:
# HUBOT_PIVOTAL_TOKEN = <API token>
#HUBOT_PIVOTAL_TOKEN = "PI:KEY:<KEY>END_PI"
#
# If you're working on a single project, you can set it once:
# HUBOT_PIVOTAL_PROJECT = <project name>
#
# Otherwise, include the project name in y... |
[
{
"context": "scover.bind 3702, () ->\n discover.addMembership '239.255.255.250'\n\nserver = http\n .createServer listener\n .liste",
"end": 2430,
"score": 0.9997705221176147,
"start": 2415,
"tag": "IP_ADDRESS",
"value": "239.255.255.250"
}
] | test/serverMockup.coffee | nickw444/onvif | 0 | http = require 'http'
dgram = require 'dgram'
fs = require 'fs'
Buffer = (require 'buffer').Buffer
template = (require 'dot').template
reBody = /<s:Body xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance" xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema">(.*)<\/s:Body>/
reCommand = /<(\S*) /
reNS = /xmlns="http:\/... | 182620 | http = require 'http'
dgram = require 'dgram'
fs = require 'fs'
Buffer = (require 'buffer').Buffer
template = (require 'dot').template
reBody = /<s:Body xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance" xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema">(.*)<\/s:Body>/
reCommand = /<(\S*) /
reNS = /xmlns="http:\/... | true | http = require 'http'
dgram = require 'dgram'
fs = require 'fs'
Buffer = (require 'buffer').Buffer
template = (require 'dot').template
reBody = /<s:Body xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance" xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema">(.*)<\/s:Body>/
reCommand = /<(\S*) /
reNS = /xmlns="http:\/... |
[
{
"context": "oser - dynamic, AJAX-enabled pick-list\n#\n# @author James LastName\n# v2.0 (rewritten in CoffeeScript)\n#\n# Configurat",
"end": 76,
"score": 0.929677426815033,
"start": 62,
"tag": "NAME",
"value": "James LastName"
}
] | app/assets/javascripts/widgets/Chooser/Chooser.coffee | MAAP-Project/mmt | 83 | ###
#
# Chooser - dynamic, AJAX-enabled pick-list
#
# @author James LastName
# v2.0 (rewritten in CoffeeScript)
#
# Configuration parameters:
# id (string): Unique ID for this widget. All HTML elements within this widget will
# have IDs based on this.
# url (string): URL ... | 209585 | ###
#
# Chooser - dynamic, AJAX-enabled pick-list
#
# @author <NAME>
# v2.0 (rewritten in CoffeeScript)
#
# Configuration parameters:
# id (string): Unique ID for this widget. All HTML elements within this widget will
# have IDs based on this.
# url (string): URL of resou... | true | ###
#
# Chooser - dynamic, AJAX-enabled pick-list
#
# @author PI:NAME:<NAME>END_PI
# v2.0 (rewritten in CoffeeScript)
#
# Configuration parameters:
# id (string): Unique ID for this widget. All HTML elements within this widget will
# have IDs based on this.
# url (string): ... |
[
{
"context": "yte_count = null\n\n execute: (rs) ->\n key = rs.pop()\n throw new BranchException(\n rs.curr_pc",
"end": 4741,
"score": 0.594798743724823,
"start": 4738,
"tag": "KEY",
"value": "pop"
}
] | src/opcodes.coffee | Jivings/doppio | 1 |
gLong ?= require '../third_party/gLong.js'
util ?= require './util'
types ?= require './types'
{java_throw,BranchException,ReturnException,JavaException} = util
{c2t} = types
root = exports ? this.opcodes = {}
class root.Opcode
constructor: (@name, params={}) ->
(@[prop] = val for prop, val of params)
@exe... | 153663 |
gLong ?= require '../third_party/gLong.js'
util ?= require './util'
types ?= require './types'
{java_throw,BranchException,ReturnException,JavaException} = util
{c2t} = types
root = exports ? this.opcodes = {}
class root.Opcode
constructor: (@name, params={}) ->
(@[prop] = val for prop, val of params)
@exe... | true |
gLong ?= require '../third_party/gLong.js'
util ?= require './util'
types ?= require './types'
{java_throw,BranchException,ReturnException,JavaException} = util
{c2t} = types
root = exports ? this.opcodes = {}
class root.Opcode
constructor: (@name, params={}) ->
(@[prop] = val for prop, val of params)
@exe... |
[
{
"context": "ssword2) and $scope.user.password isnt $scope.user.password2\n $scope.passwordMismatch = true\n els",
"end": 870,
"score": 0.8685727715492249,
"start": 862,
"tag": "PASSWORD",
"value": "password"
}
] | ownblock/app/coffee/controllers/account.coffee | danjac/ownblock | 3 | angular.module("ownblock.controllers.account", [
"ownblock"
"ownblock.services"
]).controller("account.EditCtrl", [
"$scope"
"$state"
"auth"
"api"
"notifier"
($scope, $state, auth, api, notifier) ->
$scope.save = ->
api.Auth.update auth.user, ((response) ->
auth.update response
... | 14183 | angular.module("ownblock.controllers.account", [
"ownblock"
"ownblock.services"
]).controller("account.EditCtrl", [
"$scope"
"$state"
"auth"
"api"
"notifier"
($scope, $state, auth, api, notifier) ->
$scope.save = ->
api.Auth.update auth.user, ((response) ->
auth.update response
... | true | angular.module("ownblock.controllers.account", [
"ownblock"
"ownblock.services"
]).controller("account.EditCtrl", [
"$scope"
"$state"
"auth"
"api"
"notifier"
($scope, $state, auth, api, notifier) ->
$scope.save = ->
api.Auth.update auth.user, ((response) ->
auth.update response
... |
[
{
"context": "t'\n AXYA_DB: './data.db'\n # Use \"github.com/gorilla/securecookie\" bas64 encoded to generate keys\n ",
"end": 307,
"score": 0.9330759048461914,
"start": 300,
"tag": "USERNAME",
"value": "gorilla"
},
{
"context": "bas64 encoded to generate keys\n AXYA_HASH... | gulp/env.coffee | asartalo/axya | 0 | "use strict"
_ = require('lodash')
try
localEnv = require('../local.env')
catch e
localEnv = {}
envs =
test:
AXYA_ENV: 'test'
AXYA_DB: './data_test.db'
production:
AXYA_ENV: 'production'
development:
AXYA_ENV: 'development'
AXYA_DB: './data.db'
# Use "github.com/gorilla/securecookie... | 32665 | "use strict"
_ = require('lodash')
try
localEnv = require('../local.env')
catch e
localEnv = {}
envs =
test:
AXYA_ENV: 'test'
AXYA_DB: './data_test.db'
production:
AXYA_ENV: 'production'
development:
AXYA_ENV: 'development'
AXYA_DB: './data.db'
# Use "github.com/gorilla/securecookie... | true | "use strict"
_ = require('lodash')
try
localEnv = require('../local.env')
catch e
localEnv = {}
envs =
test:
AXYA_ENV: 'test'
AXYA_DB: './data_test.db'
production:
AXYA_ENV: 'production'
development:
AXYA_ENV: 'development'
AXYA_DB: './data.db'
# Use "github.com/gorilla/securecookie... |
[
{
"context": "ss IsyInsteonFanMotorNode extends IsyNode\n key: 'insteonFanMotor'\n\n SPEED_MAP:\n off: 0\n low: 63\n",
"end": 132,
"score": 0.5190673470497131,
"start": 128,
"tag": "KEY",
"value": "inst"
},
{
"context": "syInsteonFanMotorNode extends IsyNode\n key: 'insteonF... | lib/adapters/isy/IsyInsteonFanMotorNode.coffee | monitron/jarvis-ha | 1 | _ = require('underscore')
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonFanMotorNode extends IsyNode
key: 'insteonFanMotor'
SPEED_MAP:
off: 0
low: 63
med: 191
high: 255
aspects:
discreteSpeed:
commands:
set: (node, value) ->
operative = node.getAspe... | 93440 | _ = require('underscore')
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonFanMotorNode extends IsyNode
key: '<KEY>eonFanMotor'
SPEED_MAP:
off: 0
low: 63
med: 191
high: 255
aspects:
discreteSpeed:
commands:
set: (node, value) ->
operative = node.getAsp... | true | _ = require('underscore')
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonFanMotorNode extends IsyNode
key: 'PI:KEY:<KEY>END_PIeonFanMotor'
SPEED_MAP:
off: 0
low: 63
med: 191
high: 255
aspects:
discreteSpeed:
commands:
set: (node, value) ->
operative ... |
[
{
"context": "class window.MeetupMap\n MAPS_API_KEY: \"AIzaSyA7wI0GezpAtXC4DPXQg5kEXYrKg4vC8Hc\"\n\n constructor: (@address) ->\n\n url: ->\n \"ht",
"end": 79,
"score": 0.9997422099113464,
"start": 40,
"tag": "KEY",
"value": "AIzaSyA7wI0GezpAtXC4DPXQg5kEXYrKg4vC8Hc"
}
] | source/assets/javascripts/meetup_map.coffee | Trianglerb/trianglerb | 0 | class window.MeetupMap
MAPS_API_KEY: "AIzaSyA7wI0GezpAtXC4DPXQg5kEXYrKg4vC8Hc"
constructor: (@address) ->
url: ->
"https://www.google.com/maps/embed/v1/place?q=#{@_encodedAddress()}&key=#{@MAPS_API_KEY}"
_encodedAddress: ->
encodeURIComponent(@address)
| 191852 | class window.MeetupMap
MAPS_API_KEY: "<KEY>"
constructor: (@address) ->
url: ->
"https://www.google.com/maps/embed/v1/place?q=#{@_encodedAddress()}&key=#{@MAPS_API_KEY}"
_encodedAddress: ->
encodeURIComponent(@address)
| true | class window.MeetupMap
MAPS_API_KEY: "PI:KEY:<KEY>END_PI"
constructor: (@address) ->
url: ->
"https://www.google.com/maps/embed/v1/place?q=#{@_encodedAddress()}&key=#{@MAPS_API_KEY}"
_encodedAddress: ->
encodeURIComponent(@address)
|
[
{
"context": " _sessionUserId: app.user1._id\n q: 'user2@teambition.com'\n request options, (err, res, users) ->\n ",
"end": 892,
"score": 0.9998965263366699,
"start": 872,
"tag": "EMAIL",
"value": "user2@teambition.com"
},
{
"context": "ngth.should.eql 1\n ... | talk-api2x/test/controllers/user.coffee | ikingye/talk-os | 3,084 | should = require 'should'
limbo = require 'limbo'
uuid = require 'uuid'
db = limbo.use 'talk'
async = require 'async'
jwt = require 'jsonwebtoken'
util = require '../../server/util'
config = require 'config'
app = require '../app'
{prepare, clear, request} = app
{
MemberModel
UserModel
} = db
describe 'User#ReadO... | 169025 | should = require 'should'
limbo = require 'limbo'
uuid = require 'uuid'
db = limbo.use 'talk'
async = require 'async'
jwt = require 'jsonwebtoken'
util = require '../../server/util'
config = require 'config'
app = require '../app'
{prepare, clear, request} = app
{
MemberModel
UserModel
} = db
describe 'User#ReadO... | true | should = require 'should'
limbo = require 'limbo'
uuid = require 'uuid'
db = limbo.use 'talk'
async = require 'async'
jwt = require 'jsonwebtoken'
util = require '../../server/util'
config = require 'config'
app = require '../app'
{prepare, clear, request} = app
{
MemberModel
UserModel
} = db
describe 'User#ReadO... |
[
{
"context": "serve\": \"preserve.js\"\npreferGlobal: true\nauthor: \"Hoàng Văn Khải <hvksmr1996@gmail.com>\"\ncontributors: [\n \"Hoàng ",
"end": 371,
"score": 0.9998732805252075,
"start": 357,
"tag": "NAME",
"value": "Hoàng Văn Khải"
},
{
"context": "e.js\"\npreferGlobal: true\nau... | package.cson | ksxnodeapps/package-alt-cson | 1 | name: "package-alt-cson"
description: "Use package.cson instead of package.json"
version: "0.0.2"
main: "help.js"
bin:
"package-alt-cson": "help.js"
"npm-cson": "update.js"
cnpm: "update.js"
"npm-cson-update": "update.js"
"cnpm-update": "update.js"
"npm-cson-preserve": "preserve.js"
"cnpm-preserve": "pres... | 92669 | name: "package-alt-cson"
description: "Use package.cson instead of package.json"
version: "0.0.2"
main: "help.js"
bin:
"package-alt-cson": "help.js"
"npm-cson": "update.js"
cnpm: "update.js"
"npm-cson-update": "update.js"
"cnpm-update": "update.js"
"npm-cson-preserve": "preserve.js"
"cnpm-preserve": "pres... | true | name: "package-alt-cson"
description: "Use package.cson instead of package.json"
version: "0.0.2"
main: "help.js"
bin:
"package-alt-cson": "help.js"
"npm-cson": "update.js"
cnpm: "update.js"
"npm-cson-update": "update.js"
"cnpm-update": "update.js"
"npm-cson-preserve": "preserve.js"
"cnpm-preserve": "pres... |
[
{
"context": "#########################\n#\n#\tMooqita\n# Created by Markus on 20/8/2017.\n#\n#################################",
"end": 87,
"score": 0.9996915459632874,
"start": 81,
"tag": "NAME",
"value": "Markus"
}
] | server/publications/user.coffee | MooqitaSFH/worklearn | 0 | #######################################################
#
# Mooqita
# Created by Markus on 20/8/2017.
#
#######################################################
#######################################################
Meteor.publish "find_users_by_mail": (mail_fragment) ->
user = Meteor.user()
if not user
throw new ... | 225022 | #######################################################
#
# Mooqita
# Created by <NAME> on 20/8/2017.
#
#######################################################
#######################################################
Meteor.publish "find_users_by_mail": (mail_fragment) ->
user = Meteor.user()
if not user
throw new ... | true | #######################################################
#
# Mooqita
# Created by PI:NAME:<NAME>END_PI on 20/8/2017.
#
#######################################################
#######################################################
Meteor.publish "find_users_by_mail": (mail_fragment) ->
user = Meteor.user()
if not use... |
[
{
"context": " update count key for redefine\n cnt_key = \"update#\"+key\n\n # reset counter\n if Listener[cnt_",
"end": 1781,
"score": 0.9137815237045288,
"start": 1769,
"tag": "KEY",
"value": "update#\"+key"
},
{
"context": " writable: true\n\n ... | src/injector.coffee | mizchi/injector.js | 1 | root = window ? exports ? this
class root.Injector
# rootInjector pass Injector#[method]
rootInjector = new this
@register : -> rootInjector.register arguments...
@unregister : -> rootInjector.unregister arguments...
@mapSingleton: -> rootInjector.mapSingleton arguments...
@mapValue : -> rootIn... | 87354 | root = window ? exports ? this
class root.Injector
# rootInjector pass Injector#[method]
rootInjector = new this
@register : -> rootInjector.register arguments...
@unregister : -> rootInjector.unregister arguments...
@mapSingleton: -> rootInjector.mapSingleton arguments...
@mapValue : -> rootIn... | true | root = window ? exports ? this
class root.Injector
# rootInjector pass Injector#[method]
rootInjector = new this
@register : -> rootInjector.register arguments...
@unregister : -> rootInjector.unregister arguments...
@mapSingleton: -> rootInjector.mapSingleton arguments...
@mapValue : -> rootIn... |
[
{
"context": "rce \"#{database}/#{collection}/:id\"\n , {apiKey: 'h18zCyIluqeZTTcASk1tJBv-zOfNGgFi'}\n , update:\n method: 'PUT'\n\n Res.prototyp",
"end": 239,
"score": 0.9997599124908447,
"start": 207,
"tag": "KEY",
"value": "h18zCyIluqeZTTcASk1tJBv-zOfNGgFi"
}
] | app/scripts/services.coffee | kynan/UniversityChallenge | 0 | 'use strict'
mongolabResource = (collection, $resource) ->
database = 'https://api.mongolab.com/api/1/databases/uni-challenge/collections'
Res = $resource "#{database}/#{collection}/:id"
, {apiKey: 'h18zCyIluqeZTTcASk1tJBv-zOfNGgFi'}
, update:
method: 'PUT'
Res.prototype.update = (cb) ->
Res.upda... | 70808 | 'use strict'
mongolabResource = (collection, $resource) ->
database = 'https://api.mongolab.com/api/1/databases/uni-challenge/collections'
Res = $resource "#{database}/#{collection}/:id"
, {apiKey: '<KEY>'}
, update:
method: 'PUT'
Res.prototype.update = (cb) ->
Res.update {id: @_id.$oid}
, an... | true | 'use strict'
mongolabResource = (collection, $resource) ->
database = 'https://api.mongolab.com/api/1/databases/uni-challenge/collections'
Res = $resource "#{database}/#{collection}/:id"
, {apiKey: 'PI:KEY:<KEY>END_PI'}
, update:
method: 'PUT'
Res.prototype.update = (cb) ->
Res.update {id: @_id.$... |
[
{
"context": " hal.formatter( req, res, body ).should.equal( 'VGhlIHJvb3RzIG9mIGVkdWNhdGlvbiBhcmUgYml0dGVyLCBidXQgdGhlIGZydWl0IGlzIHN3ZWV0Lg==' )\n res.setHeader.should.have.been.calledWith",
"end": 1493,
"score": 0.9879952073097229,
"start": 1412,
"tag": "KEY",
"value": "VGhlIHJvb3Rz... | test/hal.coffee | joukou/joukou-api | 0 | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 92178 | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | true | ###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... |
[
{
"context": " })\n @txt2 = new PIXI.Text('¡Hola! Mi nombre es Terrence y yo seré \\n el encargado de guiarte en esta aven",
"end": 5400,
"score": 0.9997307062149048,
"start": 5392,
"tag": "NAME",
"value": "Terrence"
}
] | sockets/client/desktop/appDesktop.coffee | ArtIsaacs/ExtRun | 0 | $ = require 'jquery'
gsap = require 'gsap'
mathjs = require 'mathjs'
PIXI = require 'pixi.js'
ExDino = require './elements/ExDino'
Rect = require './elements/Rect'
BgImageBonita = './scripts/assets/bottombonito2.png'
BgImageBonita2 = './scripts/assets/bottombonito2-2.png'
BgCieloBonito = './scripts/assets/cielobonito.p... | 62458 | $ = require 'jquery'
gsap = require 'gsap'
mathjs = require 'mathjs'
PIXI = require 'pixi.js'
ExDino = require './elements/ExDino'
Rect = require './elements/Rect'
BgImageBonita = './scripts/assets/bottombonito2.png'
BgImageBonita2 = './scripts/assets/bottombonito2-2.png'
BgCieloBonito = './scripts/assets/cielobonito.p... | true | $ = require 'jquery'
gsap = require 'gsap'
mathjs = require 'mathjs'
PIXI = require 'pixi.js'
ExDino = require './elements/ExDino'
Rect = require './elements/Rect'
BgImageBonita = './scripts/assets/bottombonito2.png'
BgImageBonita2 = './scripts/assets/bottombonito2-2.png'
BgCieloBonito = './scripts/assets/cielobonito.p... |
[
{
"context": "s when spellThang.thang.exists).join(', ') # + \", Marcus, Robert, Phoebe, Will Smith, Zap Brannigan, You, ",
"end": 1239,
"score": 0.999809741973877,
"start": 1233,
"tag": "NAME",
"value": "Marcus"
},
{
"context": "pellThang.thang.exists).join(', ') # + \", Marcus, R... | app/views/play/level/tome/spell_list_entry_view.coffee | madawei2699/codecombat | 1 | # TODO: This still needs a way to send problem states to its Thang
View = require 'views/kinds/CocoView'
ThangAvatarView = require 'views/play/level/thang_avatar_view'
SpellListEntryThangsView = require 'views/play/level/tome/spell_list_entry_thangs_view'
template = require 'templates/play/level/tome/spell_list_entry'... | 213947 | # TODO: This still needs a way to send problem states to its Thang
View = require 'views/kinds/CocoView'
ThangAvatarView = require 'views/play/level/thang_avatar_view'
SpellListEntryThangsView = require 'views/play/level/tome/spell_list_entry_thangs_view'
template = require 'templates/play/level/tome/spell_list_entry'... | true | # TODO: This still needs a way to send problem states to its Thang
View = require 'views/kinds/CocoView'
ThangAvatarView = require 'views/play/level/thang_avatar_view'
SpellListEntryThangsView = require 'views/play/level/tome/spell_list_entry_thangs_view'
template = require 'templates/play/level/tome/spell_list_entry'... |
[
{
"context": " \n # Approximate angle calculation courtesy of Jordan Clist\n # http://www.jaycodesign.co.nz/js/using-googl",
"end": 2901,
"score": 0.9560808539390564,
"start": 2889,
"tag": "NAME",
"value": "Jordan Clist"
}
] | web/js/views/map_location_marker.coffee | reitti/reittiopas | 3 | define ['jquery', 'hbs!template/map_location_marker', "async!http://maps.googleapis.com/maps/api/js?sensor=true#{window.gmapsKey}"], ($, template) ->
WIDTH = 150
HEIGHT = 20
class MapLocationMarker extends google.maps.OverlayView
constructor: ({@leg, @location, @name, @anchor, @originOrDestination}) ->
... | 156963 | define ['jquery', 'hbs!template/map_location_marker', "async!http://maps.googleapis.com/maps/api/js?sensor=true#{window.gmapsKey}"], ($, template) ->
WIDTH = 150
HEIGHT = 20
class MapLocationMarker extends google.maps.OverlayView
constructor: ({@leg, @location, @name, @anchor, @originOrDestination}) ->
... | true | define ['jquery', 'hbs!template/map_location_marker', "async!http://maps.googleapis.com/maps/api/js?sensor=true#{window.gmapsKey}"], ($, template) ->
WIDTH = 150
HEIGHT = 20
class MapLocationMarker extends google.maps.OverlayView
constructor: ({@leg, @location, @name, @anchor, @originOrDestination}) ->
... |
[
{
"context": "elpers to test EventGenerator interface.\n# @author Toru Nagashima\n###\n'use strict'\n\n### global describe, it ###\n\n#-",
"end": 87,
"score": 0.9998633861541748,
"start": 73,
"tag": "NAME",
"value": "Toru Nagashima"
}
] | src/tools/internal-testers/event-generator-tester.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Helpers to test EventGenerator interface.
# @author Toru Nagashima
###
'use strict'
### global describe, it ###
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
assert = ... | 2197 | ###*
# @fileoverview Helpers to test EventGenerator interface.
# @author <NAME>
###
'use strict'
### global describe, it ###
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
assert = require ... | true | ###*
# @fileoverview Helpers to test EventGenerator interface.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
### global describe, it ###
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
ass... |
[
{
"context": "k, i in @props.details\n subtask._key ?= Math.random()\n <div key={subtask._key} className=\"",
"end": 678,
"score": 0.6027948260307312,
"start": 667,
"tag": "KEY",
"value": "Math.random"
}
] | app/classifier/tasks/drawing-task-details-editor.cjsx | camallen/Panoptes-Front-End | 0 | React = require 'react'
AutoSave = require '../../components/auto-save'
module.exports = React.createClass
displayName: 'DrawingTaskDetailsEditor'
getDefaultProps: ->
workflow: null
task: null
details: null
toolIndex: NaN
toolPath: ''
onClose: null
render: ->
GenericTaskEditor = req... | 74091 | React = require 'react'
AutoSave = require '../../components/auto-save'
module.exports = React.createClass
displayName: 'DrawingTaskDetailsEditor'
getDefaultProps: ->
workflow: null
task: null
details: null
toolIndex: NaN
toolPath: ''
onClose: null
render: ->
GenericTaskEditor = req... | true | React = require 'react'
AutoSave = require '../../components/auto-save'
module.exports = React.createClass
displayName: 'DrawingTaskDetailsEditor'
getDefaultProps: ->
workflow: null
task: null
details: null
toolIndex: NaN
toolPath: ''
onClose: null
render: ->
GenericTaskEditor = req... |
[
{
"context": "bar\"})\n obj = xhrs.parseHeaders({\"x-token\": \"1234\"}, str)\n expect(obj).to.deep.eq({\n \"x",
"end": 1413,
"score": 0.8588877320289612,
"start": 1409,
"tag": "KEY",
"value": "1234"
},
{
"context": " expect(obj).to.deep.eq({\n \"x-token\"... | packages/server/test/unit/xhrs_spec.coffee | rwwiv/cypress | 3 | require("../spec_helper")
xhrs = require("#{root}lib/controllers/xhrs")
describe "lib/controllers/xhr", ->
describe "#parseContentType", ->
it "returns application/json", ->
str = JSON.stringify({foo: "bar"})
expect(xhrs.parseContentType(str)).to.eq("application/json")
it "returns text/html", -... | 46087 | require("../spec_helper")
xhrs = require("#{root}lib/controllers/xhrs")
describe "lib/controllers/xhr", ->
describe "#parseContentType", ->
it "returns application/json", ->
str = JSON.stringify({foo: "bar"})
expect(xhrs.parseContentType(str)).to.eq("application/json")
it "returns text/html", -... | true | require("../spec_helper")
xhrs = require("#{root}lib/controllers/xhrs")
describe "lib/controllers/xhr", ->
describe "#parseContentType", ->
it "returns application/json", ->
str = JSON.stringify({foo: "bar"})
expect(xhrs.parseContentType(str)).to.eq("application/json")
it "returns text/html", -... |
[
{
"context": "b>10</sub>\"}\n \"ozone\": {\"limit\": 120, \"name\": \"Otsoni\"}\n \"particulateslt2.5um\": {\"limit\": 25, \"name\"",
"end": 144,
"score": 0.9988473057746887,
"start": 138,
"tag": "NAME",
"value": "Otsoni"
},
{
"context": ">\"}\n \"sulphurdioxide\": {\"limit\... | homedisplay/info_air_quality/static/js/outdoor_quality.coffee | ojarva/home-info-display | 1 | OutdoorQuality = ->
type_data =
"particulateslt10um": {"limit": 50, "name": "PM<sub>10</sub>"}
"ozone": {"limit": 120, "name": "Otsoni"}
"particulateslt2.5um": {"limit": 25, "name": "PM<sub>2.5</sub>"}
"sulphurdioxide": {"limit": 350, "name": "Rikkidioksidi"}
"nitrogendioxide": {"limit": 200, "nam... | 213779 | OutdoorQuality = ->
type_data =
"particulateslt10um": {"limit": 50, "name": "PM<sub>10</sub>"}
"ozone": {"limit": 120, "name": "<NAME>"}
"particulateslt2.5um": {"limit": 25, "name": "PM<sub>2.5</sub>"}
"sulphurdioxide": {"limit": 350, "name": "<NAME>"}
"nitrogendioxide": {"limit": 200, "name": "<N... | true | OutdoorQuality = ->
type_data =
"particulateslt10um": {"limit": 50, "name": "PM<sub>10</sub>"}
"ozone": {"limit": 120, "name": "PI:NAME:<NAME>END_PI"}
"particulateslt2.5um": {"limit": 25, "name": "PM<sub>2.5</sub>"}
"sulphurdioxide": {"limit": 350, "name": "PI:NAME:<NAME>END_PI"}
"nitrogendioxide"... |
[
{
"context": " CONFIGS.database\n user: CONFIGS.user\n password: CONFIGS.password\n port: CONFIGS.port\n\nconnection.connect (error) ",
"end": 333,
"score": 0.999045193195343,
"start": 317,
"tag": "PASSWORD",
"value": "CONFIGS.password"
}
] | backend/database-controller.coffee | kashesandr/test-app | 0 | fs = require "fs"
winston = require "winston"
path = require "path"
mysql = require 'mysql'
Q = require 'q'
CONFIGS = JSON.parse(fs.readFileSync(path.join __dirname, 'configs.json'), 'utf8').mysql
connection = mysql.createConnection
host: CONFIGS.host
database: CONFIGS.database
user: CONFIGS.user
password: CON... | 67228 | fs = require "fs"
winston = require "winston"
path = require "path"
mysql = require 'mysql'
Q = require 'q'
CONFIGS = JSON.parse(fs.readFileSync(path.join __dirname, 'configs.json'), 'utf8').mysql
connection = mysql.createConnection
host: CONFIGS.host
database: CONFIGS.database
user: CONFIGS.user
password: <PA... | true | fs = require "fs"
winston = require "winston"
path = require "path"
mysql = require 'mysql'
Q = require 'q'
CONFIGS = JSON.parse(fs.readFileSync(path.join __dirname, 'configs.json'), 'utf8').mysql
connection = mysql.createConnection
host: CONFIGS.host
database: CONFIGS.database
user: CONFIGS.user
password: PI:... |
[
{
"context": "# By Frank Leenaars\n# University of Twente - Department of Instructio",
"end": 19,
"score": 0.9998514652252197,
"start": 5,
"tag": "NAME",
"value": "Frank Leenaars"
}
] | activities/Gears.activity/lib/gearsketch/src/gearsketch_main.coffee | sarthakagr104/Sugarizer | 4 | # By Frank Leenaars
# University of Twente - Department of Instructional Technology
# Licensed under the MIT license
"use strict"
# TODO:
# - support IE9?
# - use "for element, i in ..." where appropriate
# - chained comparisons: 1 < x < 100
# - improve gear, chain & momentum icons
# - disallow chains crossing gears' ... | 52087 | # By <NAME>
# University of Twente - Department of Instructional Technology
# Licensed under the MIT license
"use strict"
# TODO:
# - support IE9?
# - use "for element, i in ..." where appropriate
# - chained comparisons: 1 < x < 100
# - improve gear, chain & momentum icons
# - disallow chains crossing gears' axes? (i... | true | # By PI:NAME:<NAME>END_PI
# University of Twente - Department of Instructional Technology
# Licensed under the MIT license
"use strict"
# TODO:
# - support IE9?
# - use "for element, i in ..." where appropriate
# - chained comparisons: 1 < x < 100
# - improve gear, chain & momentum icons
# - disallow chains crossing g... |
[
{
"context": "AND TRUST COMPANY'\n assert.equal b.city, 'N. QUINCY'\n assert.equal b.state, 'MA' \n ",
"end": 1562,
"score": 0.5757278203964233,
"start": 1562,
"tag": "NAME",
"value": ""
}
] | test/index.coffee | freewil/node-fedach | 1 | assert = require 'assert'
{readFile} = require 'fs'
fedach = require '../'
describe 'fedach', ->
describe 'download', ->
it 'should download the data securely', (done) ->
fedach.download (err, data) ->
assert.ifError err
assert.ok data
done()
describe 'parse', ->
it 'shou... | 12880 | assert = require 'assert'
{readFile} = require 'fs'
fedach = require '../'
describe 'fedach', ->
describe 'download', ->
it 'should download the data securely', (done) ->
fedach.download (err, data) ->
assert.ifError err
assert.ok data
done()
describe 'parse', ->
it 'shou... | true | assert = require 'assert'
{readFile} = require 'fs'
fedach = require '../'
describe 'fedach', ->
describe 'download', ->
it 'should download the data securely', (done) ->
fedach.download (err, data) ->
assert.ifError err
assert.ok data
done()
describe 'parse', ->
it 'shou... |
[
{
"context": "other tasks that need to be throttled.\n * @author Jesús Carrera [@jesucarr](https://twitter.com/jesucarr) - [fron",
"end": 404,
"score": 0.999890148639679,
"start": 391,
"tag": "NAME",
"value": "Jesús Carrera"
},
{
"context": "at need to be throttled.\n * @author Jes... | src/tokenbucket.coffee | jesucarr/tokenbucket | 24 | 'use strict'
Promise = require 'bluebird'
redis = require 'redis'
###*
* @module tokenbucket
* @desc A flexible rate limiter configurable with different variations of the [Token Bucket algorithm](http://en.wikipedia.org/wiki/Token_bucket), with hierarchy support, and optional persistence in Redis. Useful for limiti... | 206849 | 'use strict'
Promise = require 'bluebird'
redis = require 'redis'
###*
* @module tokenbucket
* @desc A flexible rate limiter configurable with different variations of the [Token Bucket algorithm](http://en.wikipedia.org/wiki/Token_bucket), with hierarchy support, and optional persistence in Redis. Useful for limiti... | true | 'use strict'
Promise = require 'bluebird'
redis = require 'redis'
###*
* @module tokenbucket
* @desc A flexible rate limiter configurable with different variations of the [Token Bucket algorithm](http://en.wikipedia.org/wiki/Token_bucket), with hierarchy support, and optional persistence in Redis. Useful for limiti... |
[
{
"context": ")\n @game.setOpponent(new Debater(@game, true, 'SMITH', 31, 6, 'COACH'))\n @game.opponentElem.show()\n",
"end": 359,
"score": 0.9968681931495667,
"start": 354,
"tag": "NAME",
"value": "SMITH"
},
{
"context": "low Debate!\n My name is SMI... | src/js/screens/oak.coffee | nagn/Battle-Resolution | 0 | $ = require './../lib/jquery.js'
Screen = require './../screen.coffee'
Debater = require './../debater.coffee'
Player = require './../debaters/player.coffee'
Async = require './../lib/async.js'
module.exports = class Oak extends Screen
constructor: (@game) ->
super @game
load: () ->
super()
@game.setO... | 214194 | $ = require './../lib/jquery.js'
Screen = require './../screen.coffee'
Debater = require './../debater.coffee'
Player = require './../debaters/player.coffee'
Async = require './../lib/async.js'
module.exports = class Oak extends Screen
constructor: (@game) ->
super @game
load: () ->
super()
@game.setO... | true | $ = require './../lib/jquery.js'
Screen = require './../screen.coffee'
Debater = require './../debater.coffee'
Player = require './../debaters/player.coffee'
Async = require './../lib/async.js'
module.exports = class Oak extends Screen
constructor: (@game) ->
super @game
load: () ->
super()
@game.setO... |
[
{
"context": " (8).should.equal gridC.height\n '127.0.0.1'.should.equal gridC.host\n port.should.eq",
"end": 1594,
"score": 0.9997630715370178,
"start": 1585,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "sys/size', 8, 8\n client.send '/s... | src/test/grid-test.coffee | CharlesHolbrow/monode | 13 | 'use strict'
should = require 'should'
osc = require 'node-osc'
makeGrid = require '../lib/grid'
grid = null
DEVICE_PORT= 9009
# create a new grid at every descrive at current indentation level
before -> grid = makeGrid(DEVICE_PORT)
after -> grid.close()
describe 'makeGrid', ->
describe 'width', ->
... | 118312 | 'use strict'
should = require 'should'
osc = require 'node-osc'
makeGrid = require '../lib/grid'
grid = null
DEVICE_PORT= 9009
# create a new grid at every descrive at current indentation level
before -> grid = makeGrid(DEVICE_PORT)
after -> grid.close()
describe 'makeGrid', ->
describe 'width', ->
... | true | 'use strict'
should = require 'should'
osc = require 'node-osc'
makeGrid = require '../lib/grid'
grid = null
DEVICE_PORT= 9009
# create a new grid at every descrive at current indentation level
before -> grid = makeGrid(DEVICE_PORT)
after -> grid.close()
describe 'makeGrid', ->
describe 'width', ->
... |
[
{
"context": " @_events = {}\n @headerFields = [\n key: '_roomId'\n type: 'selector'\n ]\n @footerFields =",
"end": 1846,
"score": 0.879968523979187,
"start": 1838,
"tag": "KEY",
"value": "'_roomId"
}
] | src/service.coffee | jianliaoim/talk-services | 40 | path = require 'path'
fs = require 'fs'
Promise = require 'bluebird'
_ = require 'lodash'
glob = require 'glob'
request = require 'request'
marked = require 'marked'
util = require './util'
requestAsync = Promise.promisify request
_getManual = ->
return @_manual if @_manual?
self = this
name = @name
fileN... | 116988 | path = require 'path'
fs = require 'fs'
Promise = require 'bluebird'
_ = require 'lodash'
glob = require 'glob'
request = require 'request'
marked = require 'marked'
util = require './util'
requestAsync = Promise.promisify request
_getManual = ->
return @_manual if @_manual?
self = this
name = @name
fileN... | true | path = require 'path'
fs = require 'fs'
Promise = require 'bluebird'
_ = require 'lodash'
glob = require 'glob'
request = require 'request'
marked = require 'marked'
util = require './util'
requestAsync = Promise.promisify request
_getManual = ->
return @_manual if @_manual?
self = this
name = @name
fileN... |
[
{
"context": "###\n# Copyright 2014, 2015, 2016 Simon Lydell\n# X11 (“MIT”) Licensed. (See LICENSE.)\n###\n\nasser",
"end": 45,
"score": 0.999847412109375,
"start": 33,
"tag": "NAME",
"value": "Simon Lydell"
}
] | test/index.coffee | lydell/n-ary-huffman | 10 | ###
# Copyright 2014, 2015, 2016 Simon Lydell
# X11 (“MIT”) Licensed. (See LICENSE.)
###
assert = require("assert")
huffman = require("../index.coffee")
verifyCode = (item, code)->
assert code == item.expected,
"""code: "#{code}", item: #{JSON.stringify(item)}"""
testCodes = (alphabet, elements)->
tree = hu... | 10040 | ###
# Copyright 2014, 2015, 2016 <NAME>
# X11 (“MIT”) Licensed. (See LICENSE.)
###
assert = require("assert")
huffman = require("../index.coffee")
verifyCode = (item, code)->
assert code == item.expected,
"""code: "#{code}", item: #{JSON.stringify(item)}"""
testCodes = (alphabet, elements)->
tree = huffman.... | true | ###
# Copyright 2014, 2015, 2016 PI:NAME:<NAME>END_PI
# X11 (“MIT”) Licensed. (See LICENSE.)
###
assert = require("assert")
huffman = require("../index.coffee")
verifyCode = (item, code)->
assert code == item.expected,
"""code: "#{code}", item: #{JSON.stringify(item)}"""
testCodes = (alphabet, elements)->
t... |
[
{
"context": "###\n Copyright (c) 2014 clowwindy\n \n Permission is hereby granted, free of charge,",
"end": 34,
"score": 0.9996866583824158,
"start": 25,
"tag": "USERNAME",
"value": "clowwindy"
},
{
"context": "ce = source\n @_method = method\n @_password = password\n @_I... | src/encrypt.coffee | masdude/ShadowSPDY | 0 | ###
Copyright (c) 2014 clowwindy
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, merge, publish, distr... | 1564 | ###
Copyright (c) 2014 clowwindy
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, merge, publish, distr... | true | ###
Copyright (c) 2014 clowwindy
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, merge, publish, distr... |
[
{
"context": "eate'\n\n username = req.body.username\n password = req.body.password\n new_user = models.User.build({username})\n new_",
"end": 632,
"score": 0.9982565641403198,
"start": 615,
"tag": "PASSWORD",
"value": "req.body.password"
},
{
"context": "_password = req.body.old... | src/controllers/user_controller.coffee | dwetterau/quill-firebase | 1 | passport = require 'passport'
models = require '../models'
exports.get_user_create = (req, res) ->
res.render 'user/create_account',
title: 'Create Account'
exports.post_user_create = (req, res) ->
req.assert('username', 'Username must be at least 3 characters long.').len(3)
req.assert('password', 'Passwor... | 105021 | passport = require 'passport'
models = require '../models'
exports.get_user_create = (req, res) ->
res.render 'user/create_account',
title: 'Create Account'
exports.post_user_create = (req, res) ->
req.assert('username', 'Username must be at least 3 characters long.').len(3)
req.assert('password', 'Passwor... | true | passport = require 'passport'
models = require '../models'
exports.get_user_create = (req, res) ->
res.render 'user/create_account',
title: 'Create Account'
exports.post_user_create = (req, res) ->
req.assert('username', 'Username must be at least 3 characters long.').len(3)
req.assert('password', 'Passwor... |
[
{
"context": "ual: 'notUnique'\n\n data =\n firstName : 'Fatih'\n lastName : 'Acet'\n age : 2",
"end": 583,
"score": 0.9997152090072632,
"start": 578,
"tag": "NAME",
"value": "Fatih"
},
{
"context": "\n firstName : 'Fatih'\n lastName : 'A... | src/tests/core/test_store.coffee | dashersw/spark | 1 | goog = goog or goog = require: ->
goog.require 'spark.core.Store'
describe 'spark.core.Store', ->
store = null
store2 = null
beforeEach ->
# Store created for validations.
options =
validations :
firstName : required: yes, maxLength: 32, minLength: 2, alphabetic: yes
lastName ... | 100589 | goog = goog or goog = require: ->
goog.require 'spark.core.Store'
describe 'spark.core.Store', ->
store = null
store2 = null
beforeEach ->
# Store created for validations.
options =
validations :
firstName : required: yes, maxLength: 32, minLength: 2, alphabetic: yes
lastName ... | true | goog = goog or goog = require: ->
goog.require 'spark.core.Store'
describe 'spark.core.Store', ->
store = null
store2 = null
beforeEach ->
# Store created for validations.
options =
validations :
firstName : required: yes, maxLength: 32, minLength: 2, alphabetic: yes
lastName ... |
[
{
"context": "nts to context', 1, ->\n context = Batman\n foo: Batman\n baz: Batman\n qux: \"filtered!\"\n ba",
"end": 13309,
"score": 0.6892099976539612,
"start": 13303,
"tag": "NAME",
"value": "Batman"
}
] | tests/batman/view/filter_parsing_test.coffee | nickjs/batman.js | 3 | helpers = window.viewHelpers
QUnit.module "Batman.View filter value and parameter parsing",
setup: ->
Batman.Filters['test'] = @spy = createSpy().whichReturns("testValue")
teardown: ->
delete Batman.Filters.test
asyncTest "should parse one segment keypaths as values", ->
helpers.render '<div data-bind="... | 156003 | helpers = window.viewHelpers
QUnit.module "Batman.View filter value and parameter parsing",
setup: ->
Batman.Filters['test'] = @spy = createSpy().whichReturns("testValue")
teardown: ->
delete Batman.Filters.test
asyncTest "should parse one segment keypaths as values", ->
helpers.render '<div data-bind="... | true | helpers = window.viewHelpers
QUnit.module "Batman.View filter value and parameter parsing",
setup: ->
Batman.Filters['test'] = @spy = createSpy().whichReturns("testValue")
teardown: ->
delete Batman.Filters.test
asyncTest "should parse one segment keypaths as values", ->
helpers.render '<div data-bind="... |
[
{
"context": "rror'\n process.env.FOURSQUARE_CLIENT_ID='foobar1'\n process.env.FOURSQUARE_CLIENT_SECRET='foobar",
"end": 441,
"score": 0.521101713180542,
"start": 440,
"tag": "USERNAME",
"value": "1"
},
{
"context": "oobar1'\n process.env.FOURSQUARE_CLIENT_SECRET='foobar2'\n... | test/foursquare-lunch-test.coffee | stephenyeargin/hubot-foursquare-lunch | 0 | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
expect = chai.expect
helper = new Helper [
'../src/foursquare-lunch.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Tue Mar 30 2018 14:10:00 GMT-0500 (CDT)')
describe 'hubot-fo... | 37249 | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
expect = chai.expect
helper = new Helper [
'../src/foursquare-lunch.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Tue Mar 30 2018 14:10:00 GMT-0500 (CDT)')
describe 'hubot-fo... | true | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
expect = chai.expect
helper = new Helper [
'../src/foursquare-lunch.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Tue Mar 30 2018 14:10:00 GMT-0500 (CDT)')
describe 'hubot-fo... |
[
{
"context": "her.Pedal\n # EVENT EMISSIONS\n # so\n name: \"foot-pedal\"\n constructor: ()->\n return\n event_binding: ",
"end": 67,
"score": 0.6692014336585999,
"start": 62,
"tag": "NAME",
"value": "pedal"
}
] | tool/app/assets/javascripts/tool/stitcher/haws.coffee | The-Hybrid-Atelier/embr | 0 | class stitcher.Pedal
# EVENT EMISSIONS
# so
name: "foot-pedal"
constructor: ()->
return
event_binding: ()->
$(document).on "socket-connected", (event, stream)->
window.pedal.subscribe()
$(document).on "pedal-state", (event, stream)->
if stream.data == "pedal-up"
$("#step-manage... | 75944 | class stitcher.Pedal
# EVENT EMISSIONS
# so
name: "foot-<NAME>"
constructor: ()->
return
event_binding: ()->
$(document).on "socket-connected", (event, stream)->
window.pedal.subscribe()
$(document).on "pedal-state", (event, stream)->
if stream.data == "pedal-up"
$("#step-manag... | true | class stitcher.Pedal
# EVENT EMISSIONS
# so
name: "foot-PI:NAME:<NAME>END_PI"
constructor: ()->
return
event_binding: ()->
$(document).on "socket-connected", (event, stream)->
window.pedal.subscribe()
$(document).on "pedal-state", (event, stream)->
if stream.data == "pedal-up"
... |
[
{
"context": ", ->\n\n #\n cache = null\n key = helpers.randomString 10\n value = helpers.randomString 200\n\n ",
"end": 476,
"score": 0.9087032079696655,
"start": 453,
"tag": "KEY",
"value": "helpers.randomString 10"
}
] | test/test.coffee | Zuzle/zzcache | 1 | helpers = require './helpers'
util = require 'util'
should = require 'should'
async = require 'async'
_ = require 'underscore'
CacheManager = require('../').CacheManager
describe 'zzcache:', ->
# prepare
before (done) -> helpers.before(done)
after (done) -> helpers.after(done)
# test each provider in... | 100015 | helpers = require './helpers'
util = require 'util'
should = require 'should'
async = require 'async'
_ = require 'underscore'
CacheManager = require('../').CacheManager
describe 'zzcache:', ->
# prepare
before (done) -> helpers.before(done)
after (done) -> helpers.after(done)
# test each provider in... | true | helpers = require './helpers'
util = require 'util'
should = require 'should'
async = require 'async'
_ = require 'underscore'
CacheManager = require('../').CacheManager
describe 'zzcache:', ->
# prepare
before (done) -> helpers.before(done)
after (done) -> helpers.after(done)
# test each provider in... |
[
{
"context": "ULISH_LEVEL\n#\n# Commands:\n# None\n#\n# Author:\n# bouzuya <m@bouzuya.net>\n#\nrequest = require 'request-b'\nc",
"end": 208,
"score": 0.9996975064277649,
"start": 201,
"tag": "USERNAME",
"value": "bouzuya"
},
{
"context": "L\n#\n# Commands:\n# None\n#\n# Author... | src/scripts/auto-nomulish.coffee | bouzuya/hubot-auto-nomulish | 0 | # Description
# A Hubot script that translates into the nomulish words automatically
#
# Configuration:
# HUBOT_AUTO_NOMULISH_P
# HUBOT_AUTO_NOMULISH_LEVEL
#
# Commands:
# None
#
# Author:
# bouzuya <m@bouzuya.net>
#
request = require 'request-b'
cheerio = require 'cheerio'
config =
p: parseFloat(process.e... | 2777 | # Description
# A Hubot script that translates into the nomulish words automatically
#
# Configuration:
# HUBOT_AUTO_NOMULISH_P
# HUBOT_AUTO_NOMULISH_LEVEL
#
# Commands:
# None
#
# Author:
# bouzuya <<EMAIL>>
#
request = require 'request-b'
cheerio = require 'cheerio'
config =
p: parseFloat(process.env.HUB... | true | # Description
# A Hubot script that translates into the nomulish words automatically
#
# Configuration:
# HUBOT_AUTO_NOMULISH_P
# HUBOT_AUTO_NOMULISH_LEVEL
#
# Commands:
# None
#
# Author:
# bouzuya <PI:EMAIL:<EMAIL>END_PI>
#
request = require 'request-b'
cheerio = require 'cheerio'
config =
p: parseFloat(... |
[
{
"context": "HighScoreManager\n apiKey: 'guest'\n secret: 'guest'\n\n # Set apiKey and secret and attempt to regi",
"end": 511,
"score": 0.9671493172645569,
"start": 506,
"tag": "KEY",
"value": "guest"
}
] | src/shared/HighScoreManager.coffee | mess110/coffee-engine | 1 | # @nodoc
class HighScoreManager
instance = null
# Manages high scores
#
# @example
# # To register a new user/game
# jNorthPole.createUser('api_key', 'secret')
#
# @example
# hsm = HighScoreManager.get()
# hsm.api_key = 'api_key'
# hsm.secret = 'secret'
#
# hsm.addScore('kiki', 2... | 53676 | # @nodoc
class HighScoreManager
instance = null
# Manages high scores
#
# @example
# # To register a new user/game
# jNorthPole.createUser('api_key', 'secret')
#
# @example
# hsm = HighScoreManager.get()
# hsm.api_key = 'api_key'
# hsm.secret = 'secret'
#
# hsm.addScore('kiki', 2... | true | # @nodoc
class HighScoreManager
instance = null
# Manages high scores
#
# @example
# # To register a new user/game
# jNorthPole.createUser('api_key', 'secret')
#
# @example
# hsm = HighScoreManager.get()
# hsm.api_key = 'api_key'
# hsm.secret = 'secret'
#
# hsm.addScore('kiki', 2... |
[
{
"context": "ssword || ''\n password = new Buffer(password, 'ucs2')\n\n for b in [0..password.length - 1]\n by",
"end": 5474,
"score": 0.9964867234230042,
"start": 5470,
"tag": "PASSWORD",
"value": "ucs2"
},
{
"context": " ' +\n sprintf(\"Hostname:'%s', Username... | lib/login7-payload.coffee | chrisinajar/tedious | 1 | WritableTrackingBuffer = require('./tracking-buffer/writable-tracking-buffer')
require('./buffertools')
os= require('os')
sprintf = require('sprintf').sprintf
libraryName = require('./library').name
versions = require('./tds-versions').versions
FLAGS_1 =
ENDIAN_LITTLE: 0x00,
ENDIAN_BIG: 0x01,
CHARSET_ASCII: 0... | 190590 | WritableTrackingBuffer = require('./tracking-buffer/writable-tracking-buffer')
require('./buffertools')
os= require('os')
sprintf = require('sprintf').sprintf
libraryName = require('./library').name
versions = require('./tds-versions').versions
FLAGS_1 =
ENDIAN_LITTLE: 0x00,
ENDIAN_BIG: 0x01,
CHARSET_ASCII: 0... | true | WritableTrackingBuffer = require('./tracking-buffer/writable-tracking-buffer')
require('./buffertools')
os= require('os')
sprintf = require('sprintf').sprintf
libraryName = require('./library').name
versions = require('./tds-versions').versions
FLAGS_1 =
ENDIAN_LITTLE: 0x00,
ENDIAN_BIG: 0x01,
CHARSET_ASCII: 0... |
[
{
"context": "{\n\t\t\tusername: {type:\"text\"},\n\t\t\tpassword: {type:\"password\"}\n\t\t}\n\t}\n",
"end": 1012,
"score": 0.9009417295455933,
"start": 1004,
"tag": "PASSWORD",
"value": "password"
}
] | flick-electric-price/src/flick-electric-price.coffee | madleech/NodeRedFlickElectric | 2 | FlickAPI = require 'flick-electric-api'
module.exports = (RED) ->
FlickElectricPrice = (config) ->
# set up node
RED.nodes.createNode this, config
# check credentials
unless @credentials.username and @credentials.password
@error "Missing username/password"
return
# set up API
flick = new Flick... | 57821 | FlickAPI = require 'flick-electric-api'
module.exports = (RED) ->
FlickElectricPrice = (config) ->
# set up node
RED.nodes.createNode this, config
# check credentials
unless @credentials.username and @credentials.password
@error "Missing username/password"
return
# set up API
flick = new Flick... | true | FlickAPI = require 'flick-electric-api'
module.exports = (RED) ->
FlickElectricPrice = (config) ->
# set up node
RED.nodes.createNode this, config
# check credentials
unless @credentials.username and @credentials.password
@error "Missing username/password"
return
# set up API
flick = new Flick... |
[
{
"context": " 'userAuth': @userAuth\n 'userGuest': @userGuest\n 'activeRecord': @activeRecord\n 'addTi",
"end": 28840,
"score": 0.8525897860527039,
"start": 28830,
"tag": "USERNAME",
"value": "@userGuest"
},
{
"context": " placeholder: @model.get 'title'\... | public/assets/js/app.coffee.src.coffee | Miniwe/tracktime | 1 | process = process or window.process or {}
production =
SERVER: 'https://ttpms.herokuapp.com'
collection:
records: 'records'
projects: 'projects'
actions: 'actions'
users: 'users'
test =
SERVER: 'http://localhost:5000'
collection:
records: 'records'
projects: 'projects'
actions: 'ac... | 116251 | process = process or window.process or {}
production =
SERVER: 'https://ttpms.herokuapp.com'
collection:
records: 'records'
projects: 'projects'
actions: 'actions'
users: 'users'
test =
SERVER: 'http://localhost:5000'
collection:
records: 'records'
projects: 'projects'
actions: 'ac... | true | process = process or window.process or {}
production =
SERVER: 'https://ttpms.herokuapp.com'
collection:
records: 'records'
projects: 'projects'
actions: 'actions'
users: 'users'
test =
SERVER: 'http://localhost:5000'
collection:
records: 'records'
projects: 'projects'
actions: 'ac... |
[
{
"context": "ports backwards\n * @namespace backwards\n * @author Svein Olav Risdal\n * @copyright 2014 Svein Olav Risdal\n * @license\n",
"end": 184,
"score": 0.9999013543128967,
"start": 167,
"tag": "NAME",
"value": "Svein Olav Risdal"
},
{
"context": "ds\n * @author Svein Olav Ri... | src/backwards.coffee | Omega3k/backwards.js | 0 | "use strict"
###*
* A set of utility functions for funtional programming in JavaScript.
* @type {Object}
* @exports backwards
* @namespace backwards
* @author Svein Olav Risdal
* @copyright 2014 Svein Olav Risdal
* @license
* The MIT License (MIT)
*
* Copyright (c) 2014 Svein Olav Risdal
*
* Permission ... | 168249 | "use strict"
###*
* A set of utility functions for funtional programming in JavaScript.
* @type {Object}
* @exports backwards
* @namespace backwards
* @author <NAME>
* @copyright 2014 <NAME>
* @license
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge... | true | "use strict"
###*
* A set of utility functions for funtional programming in JavaScript.
* @type {Object}
* @exports backwards
* @namespace backwards
* @author PI:NAME:<NAME>END_PI
* @copyright 2014 PI:NAME:<NAME>END_PI
* @license
* The MIT License (MIT)
*
* Copyright (c) 2014 PI:NAME:<NAME>END_PI
*
* Pe... |
[
{
"context": " constructor: ->\n super()\n @name = \"Naga\"\n @hp = 250\n @atk = 7\n getNextAc",
"end": 300,
"score": 0.9983514547348022,
"start": 296,
"tag": "NAME",
"value": "Naga"
}
] | src/entity/enemy/naga.coffee | zekoff/1gam-battle | 0 | BaseEnemy = require './base'
Constrict = require '../../ability/enemy/constrict'
Poison = require '../../ability/enemy/poison'
Leech = require '../../ability/enemy/leech'
Bite = require '../../ability/enemy/bite'
class Naga extends BaseEnemy
constructor: ->
super()
@name = "Naga"
@hp = 250
... | 163744 | BaseEnemy = require './base'
Constrict = require '../../ability/enemy/constrict'
Poison = require '../../ability/enemy/poison'
Leech = require '../../ability/enemy/leech'
Bite = require '../../ability/enemy/bite'
class Naga extends BaseEnemy
constructor: ->
super()
@name = "<NAME>"
@hp = 25... | true | BaseEnemy = require './base'
Constrict = require '../../ability/enemy/constrict'
Poison = require '../../ability/enemy/poison'
Leech = require '../../ability/enemy/leech'
Bite = require '../../ability/enemy/bite'
class Naga extends BaseEnemy
constructor: ->
super()
@name = "PI:NAME:<NAME>END_PI"
... |
[
{
"context": "C/KvTiHZgyhwHP8Tkx2Ygd+4EDMwpXpAnlRtuJu+vFozMLF2a0lXAfOowkbYxYe1+RF2Yhb2IT9MQv9eVHOxTGsSwxGcCZm4WdelLuSHg8QatGZeh5KyQtxB/NwCIfRgtt5US6IWbiJgZTTWZ/UrsG1xLQHL2IWeqrYd+dF2YdunMRVBMRaLMckXiVwK3r/I0E/tqXzW0xgdX0VYCrFOjO2Va+PuJTO4/iE8Xq8RhuWqdj2FAdxpDo7ZmEUF/KiXIwxrMJUvYqibSrTdx2nUeZFeRaX8SFm4Suk5PcYiVn... | bokehjs/src/coffee/tool/gestures/tap_tool.coffee | rothnic/bokeh | 1 | _ = require "underscore"
SelectTool = require "./select_tool"
class TapToolView extends SelectTool.View
_tap: (e) ->
canvas = @plot_view.canvas
vx = canvas.sx_to_vx(e.bokeh.sx)
vy = canvas.sy_to_vy(e.bokeh.sy)
append = e.srcEvent.shiftKey ? false
@_select(vx, vy, true, append)
_select: (vx, v... | 35245 | _ = require "underscore"
SelectTool = require "./select_tool"
class TapToolView extends SelectTool.View
_tap: (e) ->
canvas = @plot_view.canvas
vx = canvas.sx_to_vx(e.bokeh.sx)
vy = canvas.sy_to_vy(e.bokeh.sy)
append = e.srcEvent.shiftKey ? false
@_select(vx, vy, true, append)
_select: (vx, v... | true | _ = require "underscore"
SelectTool = require "./select_tool"
class TapToolView extends SelectTool.View
_tap: (e) ->
canvas = @plot_view.canvas
vx = canvas.sx_to_vx(e.bokeh.sx)
vy = canvas.sy_to_vy(e.bokeh.sy)
append = e.srcEvent.shiftKey ? false
@_select(vx, vy, true, append)
_select: (vx, v... |
[
{
"context": "atch\n forms\n\n# Deinflect Rules 20081220-0509 | by Jonathan Zarate | http://www.polarcloud.com\n#\nrules =\n 9:\n \"く",
"end": 524,
"score": 0.999906063079834,
"start": 509,
"tag": "NAME",
"value": "Jonathan Zarate"
}
] | src/deinflect.coffee | ashchan/japanese-coffee-kit | 8 | # Verb Deinflection
#
Deinflector = exports? and exports or @Deinflector = {}
# Returns possible dictionary forms for a given verb
# including itself
# Note: combine rules are not used.
Deinflector.deinflect = (verb) ->
forms = [verb]
for len in (k for k, v of rules when k <= verb.length)
beginning = verb.sub... | 218638 | # Verb Deinflection
#
Deinflector = exports? and exports or @Deinflector = {}
# Returns possible dictionary forms for a given verb
# including itself
# Note: combine rules are not used.
Deinflector.deinflect = (verb) ->
forms = [verb]
for len in (k for k, v of rules when k <= verb.length)
beginning = verb.sub... | true | # Verb Deinflection
#
Deinflector = exports? and exports or @Deinflector = {}
# Returns possible dictionary forms for a given verb
# including itself
# Note: combine rules are not used.
Deinflector.deinflect = (verb) ->
forms = [verb]
for len in (k for k, v of rules when k <= verb.length)
beginning = verb.sub... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9971986413002014,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/expandingTextArea.coffee | LogicalOutcomes/KoNote | 1 | # Copyright (c) Konode. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# A <textarea> whose height is determined by the height of its content.
# Note: users can add line breaks inside textar... | 121465 | # Copyright (c) <NAME>. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# A <textarea> whose height is determined by the height of its content.
# Note: users can add line breaks inside textar... | true | # Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# A <textarea> whose height is determined by the height of its content.
# Note: users can add line breaks... |
[
{
"context": ")()\n app.use require('cookie-session')\n key: 'codecombat.sess'\n secret: config.cookie_secret\n\nsetupCountryTa",
"end": 4255,
"score": 0.9992061853408813,
"start": 4240,
"tag": "KEY",
"value": "codecombat.sess"
},
{
"context": " isOldBrowser = (req) ->\n # ... | server_setup.coffee | Awesome-Coder1/codecombat | 1 | express = require 'express'
path = require 'path'
useragent = require 'express-useragent'
fs = require 'graceful-fs'
log = require 'winston'
compressible = require 'compressible'
compression = require 'compression'
geoip = require '@basicer/geoip-lite'
crypto = require 'crypto'
config = require './server_config'
globa... | 100459 | express = require 'express'
path = require 'path'
useragent = require 'express-useragent'
fs = require 'graceful-fs'
log = require 'winston'
compressible = require 'compressible'
compression = require 'compression'
geoip = require '@basicer/geoip-lite'
crypto = require 'crypto'
config = require './server_config'
globa... | true | express = require 'express'
path = require 'path'
useragent = require 'express-useragent'
fs = require 'graceful-fs'
log = require 'winston'
compressible = require 'compressible'
compression = require 'compression'
geoip = require '@basicer/geoip-lite'
crypto = require 'crypto'
config = require './server_config'
globa... |
[
{
"context": "cts'\n time_format_mode: 'decimal'\n user_names: 'Katie, Mike, Nick, Paul'\n project_names: 'Toggl Support, Integrations, Ф",
"end": 296,
"score": 0.9177176356315613,
"start": 273,
"tag": "NAME",
"value": "Katie, Mike, Nick, Paul"
},
{
"context": "з, Ножтро аппэльльь... | testdata/test_detailed.coffee | meeDamian/toggl-pdf | 1 | DetailedReport = require '../app/detailed_report'
data = require './data/detailed.json'
fs = require 'fs'
data.params =
user_count: 4
since: '2013-04-29'
until: '2013-05-05'
subgrouping: 'tasks'
grouping: 'projects'
time_format_mode: 'decimal'
user_names: 'Katie, Mike, Nick, Paul'
project_names: 'Togg... | 194286 | DetailedReport = require '../app/detailed_report'
data = require './data/detailed.json'
fs = require 'fs'
data.params =
user_count: 4
since: '2013-04-29'
until: '2013-05-05'
subgrouping: 'tasks'
grouping: 'projects'
time_format_mode: 'decimal'
user_names: '<NAME>'
project_names: 'Toggl Support, Integr... | true | DetailedReport = require '../app/detailed_report'
data = require './data/detailed.json'
fs = require 'fs'
data.params =
user_count: 4
since: '2013-04-29'
until: '2013-05-05'
subgrouping: 'tasks'
grouping: 'projects'
time_format_mode: 'decimal'
user_names: 'PI:NAME:<NAME>END_PI'
project_names: 'Toggl S... |
[
{
"context": "#! Object properties\nkids =\n brother:\n name: \"Max\"\n age: 11\n sister:\n name: \"Ida\"\n age: ",
"end": 591,
"score": 0.9998427629470825,
"start": 588,
"tag": "NAME",
"value": "Max"
},
{
"context": " name: \"Max\"\n age: 11\n sister:\n nam... | coffeescript/example.coffee | zokugun/highlight-examples | 0 | #! Header comment
###
# example.coffee
# Version 1.0.0
#
# Licensed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
###
#! Comments
# This is a comment
### This is a
multi-line comment###
#! Strings
'foo \'bar\' baz'
"foo \"bar\" baz"
'Multi-line
strings are supported'
"Multi-line
str... | 198776 | #! Header comment
###
# example.coffee
# Version 1.0.0
#
# Licensed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
###
#! Comments
# This is a comment
### This is a
multi-line comment###
#! Strings
'foo \'bar\' baz'
"foo \"bar\" baz"
'Multi-line
strings are supported'
"Multi-line
str... | true | #! Header comment
###
# example.coffee
# Version 1.0.0
#
# Licensed under the MIT license.
# http://www.opensource.org/licenses/mit-license.php
###
#! Comments
# This is a comment
### This is a
multi-line comment###
#! Strings
'foo \'bar\' baz'
"foo \"bar\" baz"
'Multi-line
strings are supported'
"Multi-line
str... |
[
{
"context": "\n }\n auth.login(server, {username: \"test@test.com\", password:\"password\"}, 200, \n (res)->",
"end": 856,
"score": 0.9998957514762878,
"start": 843,
"tag": "EMAIL",
"value": "test@test.com"
},
{
"context": "gin(server, {username: \"test@test... | test/services_tests/test_test_services.coffee | ureport-web/ureport-s | 3 | #load application models
server = require('../../app')
_ = require('underscore');
test = require('../api_objects/test_api_object')
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
mo... | 94870 | #load application models
server = require('../../app')
_ = require('underscore');
test = require('../api_objects/test_api_object')
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
mo... | true | #load application models
server = require('../../app')
_ = require('underscore');
test = require('../api_objects/test_api_object')
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
mo... |
[
{
"context": "module.exports =\n access_token: '797b35a2fa11603bc5d440922383a89485e707c81582d518780069c998965c5f'\n space_id: '7vfiut035ckb'\n content_types: ",
"end": 98,
"score": 0.9903680682182312,
"start": 34,
"tag": "KEY",
"value": "797b35a2fa11603bc5d440922383a89485e707c81582d51... | contentful.coffee | owentribe/pushmepresscom | 0 | module.exports =
access_token: '797b35a2fa11603bc5d440922383a89485e707c81582d518780069c998965c5f'
space_id: '7vfiut035ckb'
content_types: # remove these object braces once the config below is filled out
topics: # data will be made available through this key on the `conte... | 102268 | module.exports =
access_token: '<KEY>'
space_id: '7vfiut035ckb'
content_types: # remove these object braces once the config below is filled out
topics: # data will be made available through this key on the `contentful` object in your templates
id: 'topic' ... | true | module.exports =
access_token: 'PI:KEY:<KEY>END_PI'
space_id: '7vfiut035ckb'
content_types: # remove these object braces once the config below is filled out
topics: # data will be made available through this key on the `contentful` object in your templates
id: 'to... |
[
{
"context": ")\n\n\nresetTable = ->\n\tPlayers.remove {}\n\tnames = [\"Martin Luther King\",\"Michael Jackson\",\"Leonardo Da Vinci\",\n\t\"Albert ",
"end": 109,
"score": 0.9998490214347839,
"start": 91,
"tag": "NAME",
"value": "Martin Luther King"
},
{
"context": "Players.remove {}... | lib/leaderboard.coffee | zeke/Leaderboards-XL | 1 | Players = new Meteor.Collection("players")
resetTable = ->
Players.remove {}
names = ["Martin Luther King","Michael Jackson","Leonardo Da Vinci",
"Albert Einstein","Gandhi","William Shakespeare","Abraham Lincoln",
"Princess Diana"]
for name in names
Players.insert {name:name, score: _.random 0, 10} | 157652 | Players = new Meteor.Collection("players")
resetTable = ->
Players.remove {}
names = ["<NAME>","<NAME>","<NAME>",
"<NAME>","<NAME>","<NAME>","<NAME>",
"<NAME>"]
for name in names
Players.insert {name:name, score: _.random 0, 10} | true | Players = new Meteor.Collection("players")
resetTable = ->
Players.remove {}
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_PI","PI:NAME:<NAME>END_PI",
"PI:NAME:<NAME>END_PI"]
for name in names
Players.insert {name... |
[
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)\n# MIT Licensed\n###\n\ncoffeekup",
"end": 44,
"score": 0.9998459219932556,
"start": 36,
"tag": "NAME",
"value": "Jae Kwon"
},
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.... | static/markz.coffee | jaekwon/YCatalyst | 3 | ###
# YCatalyst
# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)
# MIT Licensed
###
coffeekup = if CoffeeKup? then CoffeeKup else require './coffeekup'
# some regexes ripped from the node.js validator project
# https://github.com/chriso/node-validator.git
# NOTE: > The /m flag is multiline matching.
# > (?!...)... | 21789 | ###
# YCatalyst
# Copyright(c) 2011 <NAME> (<EMAIL>)
# MIT Licensed
###
coffeekup = if CoffeeKup? then CoffeeKup else require './coffeekup'
# some regexes ripped from the node.js validator project
# https://github.com/chriso/node-validator.git
# NOTE: > The /m flag is multiline matching.
# > (?!...) is a negati... | true | ###
# YCatalyst
# Copyright(c) 2011 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# MIT Licensed
###
coffeekup = if CoffeeKup? then CoffeeKup else require './coffeekup'
# some regexes ripped from the node.js validator project
# https://github.com/chriso/node-validator.git
# NOTE: > The /m flag is multiline matching.
... |
[
{
"context": "3c86ef8c05a728b9918e958f03bcfe164092bdfc488d64733e40127db45e4f61b7dddf2b0cbbd8d5ebdd98e5194d382236d5e",
"end": 507,
"score": 0.5066136121749878,
"start": 506,
"tag": "KEY",
"value": "4"
},
{
"context": "05a728b9918e958f03bcfe164092bdfc488d64733e40127db45e4f61b7dddf2b0cb... | examples/datasets/plants.coffee | wmiller848/GoGP | 2 | #!/usr/local/bin/coffee
######################
## GoGP Program
## Version - 0.1.0
######################
DNA = 'bdc7f223df2fa9194876f426fe389607631b9f0be51c534ed1f9ab23494d4a5fd1685d1668c2863dd837f9cd87da9199591a28242342aa6347411bd1251a5ee6770dece01a4f7071626f8774ce8ac81f0449ca3f41b4d95298c8c9098b014674ca4340d11dd9a1... | 209235 | #!/usr/local/bin/coffee
######################
## GoGP Program
## Version - 0.1.0
######################
DNA = 'bdc7f223df2fa9194876f426fe389607631b9f0be51c534ed1f9ab23494d4a5fd1685d1668c2863dd837f9cd87da9199591a28242342aa6347411bd1251a5ee6770dece01a4f7071626f8774ce8ac81f0449ca3f41b4d95298c8c9098b014674ca4340d11dd9a1... | true | #!/usr/local/bin/coffee
######################
## GoGP Program
## Version - 0.1.0
######################
DNA = 'bdc7f223df2fa9194876f426fe389607631b9f0be51c534ed1f9ab23494d4a5fd1685d1668c2863dd837f9cd87da9199591a28242342aa6347411bd1251a5ee6770dece01a4f7071626f8774ce8ac81f0449ca3f41b4d95298c8c9098b014674ca4340d11dd9a1... |
[
{
"context": "###\nPDFFont - embeds fonts in PDF documents\nBy Devon Govett\n###\n\nTTFFont = require './font/ttf'\nAFMFont = req",
"end": 59,
"score": 0.999874472618103,
"start": 47,
"tag": "NAME",
"value": "Devon Govett"
}
] | lib/font.coffee | bryandragon/pdfkit | 0 | ###
PDFFont - embeds fonts in PDF documents
By Devon Govett
###
TTFFont = require './font/ttf'
AFMFont = require './font/afm'
Subset = require './font/subset'
zlib = require 'zlib'
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
class PDFFont
constructor: (@document, @filename, @family, @id) ->
if @fil... | 225450 | ###
PDFFont - embeds fonts in PDF documents
By <NAME>
###
TTFFont = require './font/ttf'
AFMFont = require './font/afm'
Subset = require './font/subset'
zlib = require 'zlib'
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
class PDFFont
constructor: (@document, @filename, @family, @id) ->
if @filename ... | true | ###
PDFFont - embeds fonts in PDF documents
By PI:NAME:<NAME>END_PI
###
TTFFont = require './font/ttf'
AFMFont = require './font/afm'
Subset = require './font/subset'
zlib = require 'zlib'
WORD_RE = /([^ ,\/!.?:;\-\n]+[ ,\/!.?:;\-]*)|\n/g
class PDFFont
constructor: (@document, @filename, @family, @id) ->
... |
[
{
"context": " id: \"\"\n }\n )\n $scope.pass = $scope.$storage.pass\n $scope.id = $scope.$storage.id\n ",
"end": 371,
"score": 0.5431649088859558,
"start": 371,
"tag": "PASSWORD",
"value": ""
},
{
"context": "\"\"\n }\n )\n $scope.pass = $scope.$storage... | cbt/app/scripts/controllers/config.coffee | cloneko/31days_2nd | 0 | 'use strict'
###*
# @ngdoc function
# @name cbtApp.controller:ConfigCtrl
# @description
# # ConfigCtrl
# Controller of the cbtApp
###
angular.module 'cbtApp'
.controller 'ConfigCtrl', ['$scope', '$localStorage', ($scope, $localStorage)->
$scope.$storage = $localStorage.$default(
{
pass: "",
... | 191764 | 'use strict'
###*
# @ngdoc function
# @name cbtApp.controller:ConfigCtrl
# @description
# # ConfigCtrl
# Controller of the cbtApp
###
angular.module 'cbtApp'
.controller 'ConfigCtrl', ['$scope', '$localStorage', ($scope, $localStorage)->
$scope.$storage = $localStorage.$default(
{
pass: "",
... | true | 'use strict'
###*
# @ngdoc function
# @name cbtApp.controller:ConfigCtrl
# @description
# # ConfigCtrl
# Controller of the cbtApp
###
angular.module 'cbtApp'
.controller 'ConfigCtrl', ['$scope', '$localStorage', ($scope, $localStorage)->
$scope.$storage = $localStorage.$default(
{
pass: "",
... |
[
{
"context": "essage)\n \n d = ->\n privateKeyBs58 = \"5JSSUaTbYeZxXt2btUKJhxU2KY1yvPvPs6eh329fSTHrCdRUGbS\"\n privateKeyBuffer = bs58.decode(privateKe",
"end": 2064,
"score": 0.9997751712799072,
"start": 2013,
"tag": "KEY",
"value": "5JSSUaTbYeZxXt2btUKJhxU2KY1yvPvPs6eh3... | programs/web_wallet/test/crypto/scratchpad/mailparse.coffee | larkx/LarkX | 0 | console.log "\n###\n#",process.argv[1],'\n#'
{MailMessage} = require './src/mailmessage'
###
echo 0770...c414 | xxd -r -p - - > _msg
hexdump _msg -C
###
MailMessageParse = ->
ByteBuffer=require 'bytebuffer'
data="077375626a656374c5023132333435363738393031323334353637383930313233343536373839303132333435363738... | 188448 | console.log "\n###\n#",process.argv[1],'\n#'
{MailMessage} = require './src/mailmessage'
###
echo 0770...c414 | xxd -r -p - - > _msg
hexdump _msg -C
###
MailMessageParse = ->
ByteBuffer=require 'bytebuffer'
data="077375626a656374c5023132333435363738393031323334353637383930313233343536373839303132333435363738... | true | console.log "\n###\n#",process.argv[1],'\n#'
{MailMessage} = require './src/mailmessage'
###
echo 0770...c414 | xxd -r -p - - > _msg
hexdump _msg -C
###
MailMessageParse = ->
ByteBuffer=require 'bytebuffer'
data="077375626a656374c5023132333435363738393031323334353637383930313233343536373839303132333435363738... |
[
{
"context": "app.use(express.session({\n #secret: 'fasr_42*@3paskr$2LQRkvQ',\n #store: new mongoStore({\n #url: co",
"end": 1333,
"score": 0.603668212890625,
"start": 1318,
"tag": "KEY",
"value": "@3paskr$2LQRkvQ"
}
] | src/config/express.coffee | poikilos/node-ticket-manager | 81 | # Module dependencies.
express = require('express')
mongoStore = require('connect-mongo')(express)
flash = require('connect-flash')
path = require "path"
view_helper = require "../utils/view_helper"
module.exports = (app, config, passport)->
app.set('showStackError', true)
# should be placed before express.stati... | 199725 | # Module dependencies.
express = require('express')
mongoStore = require('connect-mongo')(express)
flash = require('connect-flash')
path = require "path"
view_helper = require "../utils/view_helper"
module.exports = (app, config, passport)->
app.set('showStackError', true)
# should be placed before express.stati... | true | # Module dependencies.
express = require('express')
mongoStore = require('connect-mongo')(express)
flash = require('connect-flash')
path = require "path"
view_helper = require "../utils/view_helper"
module.exports = (app, config, passport)->
app.set('showStackError', true)
# should be placed before express.stati... |
[
{
"context": "ntSideValidations::VERSION %> (https://github.com/DavyJonesLocker/client_side_validations)\n * Copyright (c) <%= Dat",
"end": 108,
"score": 0.998284637928009,
"start": 93,
"tag": "USERNAME",
"value": "DavyJonesLocker"
},
{
"context": "dations)\n * Copyright (c) <%= Date... | coffeescript/rails.validations.coffee | AbelToy/client_side_validations | 0 | ###!
* Client Side Validations - v<%= ClientSideValidations::VERSION %> (https://github.com/DavyJonesLocker/client_side_validations)
* Copyright (c) <%= DateTime.now.year %> Geremia Taglialatela, Brian Cardarella
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
###
$ = jQuery
$.fn.disableClien... | 140484 | ###!
* Client Side Validations - v<%= ClientSideValidations::VERSION %> (https://github.com/DavyJonesLocker/client_side_validations)
* Copyright (c) <%= DateTime.now.year %> <NAME>, <NAME>
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
###
$ = jQuery
$.fn.disableClientSideValidations = ->
... | true | ###!
* Client Side Validations - v<%= ClientSideValidations::VERSION %> (https://github.com/DavyJonesLocker/client_side_validations)
* Copyright (c) <%= DateTime.now.year %> PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
* Licensed under MIT (https://opensource.org/licenses/mit-license.php)
###
$ = jQuery
$.fn.disableC... |
[
{
"context": "ck?service_provider_id=11\"\n oauth_consumer_key: \"GDdmIQH6jhtmLUypg82g\"\n oauth_nonce: \"QP70eNmVz8jvdPevU3oJD2AfF7R7odC2",
"end": 379,
"score": 0.9995267391204834,
"start": 359,
"tag": "KEY",
"value": "GDdmIQH6jhtmLUypg82g"
},
{
"context": "r.com/oauth/access_toke... | deps/npm/node_modules/request/node_modules/oauth-sign/test.coffee | lxe/io.coffee | 0 | hmacsign = require("./index").hmacsign
assert = require("assert")
qs = require("querystring")
# Tests from Twitter documentation https://dev.twitter.com/docs/auth/oauth
reqsign = hmacsign("POST", "https://api.twitter.com/oauth/request_token",
oauth_callback: "http://localhost:3005/the_dance/process_callback?service_... | 19977 | hmacsign = require("./index").hmacsign
assert = require("assert")
qs = require("querystring")
# Tests from Twitter documentation https://dev.twitter.com/docs/auth/oauth
reqsign = hmacsign("POST", "https://api.twitter.com/oauth/request_token",
oauth_callback: "http://localhost:3005/the_dance/process_callback?service_... | true | hmacsign = require("./index").hmacsign
assert = require("assert")
qs = require("querystring")
# Tests from Twitter documentation https://dev.twitter.com/docs/auth/oauth
reqsign = hmacsign("POST", "https://api.twitter.com/oauth/request_token",
oauth_callback: "http://localhost:3005/the_dance/process_callback?service_... |
[
{
"context": "render()\n @view.inner.$('[name=email]').val 'foo@bar.com'\n @view.inner.$('[name=password]').val 'moo'",
"end": 1670,
"score": 0.9999025464057922,
"start": 1659,
"tag": "EMAIL",
"value": "foo@bar.com"
},
{
"context": ".com'\n @view.inner.$('[name=passwor... | src/desktop/components/marketing_signup_modal/test/index.coffee | kanaabe/force | 1 | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
describe 'MarketingSignupModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require('jquery'), jQuery: benv.require('jquery')
Backbone.$ = $
sinon.stub $, 'ajax'
@MarketingSignupModal = benv.require... | 17072 | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
describe 'MarketingSignupModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require('jquery'), jQuery: benv.require('jquery')
Backbone.$ = $
sinon.stub $, 'ajax'
@MarketingSignupModal = benv.require... | true | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
describe 'MarketingSignupModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require('jquery'), jQuery: benv.require('jquery')
Backbone.$ = $
sinon.stub $, 'ajax'
@MarketingSignupModal = benv.require... |
[
{
"context": " user object is provided\", ->\n user = name: \"Bill\"\n view.login(user)\n expect(view.updateU",
"end": 2006,
"score": 0.9996566772460938,
"start": 2002,
"tag": "NAME",
"value": "Bill"
},
{
"context": "e \"#updateUser()\", ->\n user =\n fullname:... | test/spec/readmill/view.coffee | aron/annotator.readmill.js | 0 | describe "View", ->
jQuery = Annotator.$
View = Annotator.Readmill.View
view = null
beforeEach ->
view = new View
sinon.stub(view, "publish")
it "should be an instance of Annotator.Class", ->
expect(view).to.be.an.instanceof Annotator.Class
it "should have a @element containing a <div>", ... | 45041 | describe "View", ->
jQuery = Annotator.$
View = Annotator.Readmill.View
view = null
beforeEach ->
view = new View
sinon.stub(view, "publish")
it "should be an instance of Annotator.Class", ->
expect(view).to.be.an.instanceof Annotator.Class
it "should have a @element containing a <div>", ... | true | describe "View", ->
jQuery = Annotator.$
View = Annotator.Readmill.View
view = null
beforeEach ->
view = new View
sinon.stub(view, "publish")
it "should be an instance of Annotator.Class", ->
expect(view).to.be.an.instanceof Annotator.Class
it "should have a @element containing a <div>", ... |
[
{
"context": "tedModel: 'Player',\n keyDestination: 'Player1Id',\n includeInJSON: 'id'\n },\n {\n ty",
"end": 280,
"score": 0.8711755275726318,
"start": 278,
"tag": "KEY",
"value": "Id"
},
{
"context": " {\n type: Backbone.HasOne,\n key: 'Player2',\n ... | elements/js/frames.coffee | RedBulli/LiveSnooker | 0 | class Frame extends Livesnooker.Model
urlRoot: ->
leagueId = @get('League')?.id || @get('LeagueId')
"/leagues/" + leagueId + "/frames"
relations: [
{
type: Backbone.HasOne,
key: 'Player1',
relatedModel: 'Player',
keyDestination: 'Player1Id',
includeInJSON: 'id'
},
... | 190624 | class Frame extends Livesnooker.Model
urlRoot: ->
leagueId = @get('League')?.id || @get('LeagueId')
"/leagues/" + leagueId + "/frames"
relations: [
{
type: Backbone.HasOne,
key: 'Player1',
relatedModel: 'Player',
keyDestination: 'Player1<KEY>',
includeInJSON: 'id'
},
... | true | class Frame extends Livesnooker.Model
urlRoot: ->
leagueId = @get('League')?.id || @get('LeagueId')
"/leagues/" + leagueId + "/frames"
relations: [
{
type: Backbone.HasOne,
key: 'Player1',
relatedModel: 'Player',
keyDestination: 'Player1PI:KEY:<KEY>END_PI',
includeInJSON: ... |
[
{
"context": " The UsersList shows a list of users.\n\n @author Sebastian Sachtleben\n###\nclass UsersList extends AdminAuthView\n\n\tentit",
"end": 157,
"score": 0.9998939037322998,
"start": 137,
"tag": "NAME",
"value": "Sebastian Sachtleben"
}
] | app/assets/javascripts/admin/views/users/list.coffee | ssachtleben/herowar | 1 | AdminAuthView = require 'views/adminAuthView'
templates = require 'templates'
###
The UsersList shows a list of users.
@author Sebastian Sachtleben
###
class UsersList extends AdminAuthView
entity: 'api/users'
id: 'users-list'
template: templates.get 'users/list.tmpl'
return UsersList | 55144 | AdminAuthView = require 'views/adminAuthView'
templates = require 'templates'
###
The UsersList shows a list of users.
@author <NAME>
###
class UsersList extends AdminAuthView
entity: 'api/users'
id: 'users-list'
template: templates.get 'users/list.tmpl'
return UsersList | true | AdminAuthView = require 'views/adminAuthView'
templates = require 'templates'
###
The UsersList shows a list of users.
@author PI:NAME:<NAME>END_PI
###
class UsersList extends AdminAuthView
entity: 'api/users'
id: 'users-list'
template: templates.get 'users/list.tmpl'
return UsersList |
[
{
"context": "# Vex.Flow.VexTab\n# Copyright 2012 Mohit Cheppudira <mohit@muthanna.com>\n#\n# This class implements th",
"end": 51,
"score": 0.9998680949211121,
"start": 35,
"tag": "NAME",
"value": "Mohit Cheppudira"
},
{
"context": "ex.Flow.VexTab\n# Copyright 2012 Mohit Cheppudira ... | src/vextab.coffee | TheodoreChu/vextab | 382 | # Vex.Flow.VexTab
# Copyright 2012 Mohit Cheppudira <mohit@muthanna.com>
#
# This class implements the semantic analysis of the Jison
# output, and generates elements that can be used by
# Vex.Flow.Artist to render the notation.
# parsed by Vex.Flow.VexTab.
import Vex from 'vexflow'
import * as _ from 'lodash'
import ... | 206129 | # Vex.Flow.VexTab
# Copyright 2012 <NAME> <<EMAIL>>
#
# This class implements the semantic analysis of the Jison
# output, and generates elements that can be used by
# Vex.Flow.Artist to render the notation.
# parsed by Vex.Flow.VexTab.
import Vex from 'vexflow'
import * as _ from 'lodash'
import * as parser from './v... | true | # Vex.Flow.VexTab
# Copyright 2012 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# This class implements the semantic analysis of the Jison
# output, and generates elements that can be used by
# Vex.Flow.Artist to render the notation.
# parsed by Vex.Flow.VexTab.
import Vex from 'vexflow'
import * as _ from 'lodash'... |
[
{
"context": " my research project on blah blah blah\"\nauthor = \"Your Name\"\nemail = \"yname@someuniversity.edu\"\nurl = \"http:/",
"end": 164,
"score": 0.997640073299408,
"start": 155,
"tag": "NAME",
"value": "Your Name"
},
{
"context": " on blah blah blah\"\nauthor = \"Your Name... | docpad.coffee | srubin/docpad-research-site-skeleton | 0 | # Basic information about your site
title = "Your Name's Research Site"
description = "This is a site for my research project on blah blah blah"
author = "Your Name"
email = "yname@someuniversity.edu"
url = "http://someuniversity.edu/~yname/my-awesome-research-site"
# Want to include some stylesheets on every page?
cs... | 101326 | # Basic information about your site
title = "Your Name's Research Site"
description = "This is a site for my research project on blah blah blah"
author = "<NAME>"
email = "<EMAIL>"
url = "http://someuniversity.edu/~yname/my-awesome-research-site"
# Want to include some stylesheets on every page?
css = [
"styles/sampl... | true | # Basic information about your site
title = "Your Name's Research Site"
description = "This is a site for my research project on blah blah blah"
author = "PI:NAME:<NAME>END_PI"
email = "PI:EMAIL:<EMAIL>END_PI"
url = "http://someuniversity.edu/~yname/my-awesome-research-site"
# Want to include some stylesheets on every... |
[
{
"context": "f LOCAL then \"http://localhost:5000\" else \"http://50.116.7.184\"\n\nurl = window.location.href\n\nwindow.location.hre",
"end": 84,
"score": 0.9995639324188232,
"start": 72,
"tag": "IP_ADDRESS",
"value": "50.116.7.184"
}
] | src/bookmarklet.coffee | feross/Fling | 13 | LOCAL = off
SERVER = if LOCAL then "http://localhost:5000" else "http://50.116.7.184"
url = window.location.href
window.location.href = "#{SERVER}/static/handler.html?#{url}"; | 224413 | LOCAL = off
SERVER = if LOCAL then "http://localhost:5000" else "http://172.16.58.3"
url = window.location.href
window.location.href = "#{SERVER}/static/handler.html?#{url}"; | true | LOCAL = off
SERVER = if LOCAL then "http://localhost:5000" else "http://PI:IP_ADDRESS:172.16.58.3END_PI"
url = window.location.href
window.location.href = "#{SERVER}/static/handler.html?#{url}"; |
[
{
"context": "h ->\n Team.save {\n _id: 't1'\n name: 'foo'\n local: true\n }\n\n it \"should create new",
"end": 174,
"score": 0.9629014730453491,
"start": 171,
"tag": "NAME",
"value": "foo"
}
] | application/api/test/commands/create-new-item-test.coffee | CHU-BURA/clone-app-kobito-oss | 215 | # require '../../src/commands/create-new-item'
describe "src/commands/create-new-item", ->
stubDatabases()
beforeEach ->
Team.save {
_id: 't1'
name: 'foo'
local: true
}
it "should create new item", ->
kobito.commands.createNewItem('title', 'body', [name: 'tag1'], 't1')
.then (i... | 196467 | # require '../../src/commands/create-new-item'
describe "src/commands/create-new-item", ->
stubDatabases()
beforeEach ->
Team.save {
_id: 't1'
name: '<NAME>'
local: true
}
it "should create new item", ->
kobito.commands.createNewItem('title', 'body', [name: 'tag1'], 't1')
.then... | true | # require '../../src/commands/create-new-item'
describe "src/commands/create-new-item", ->
stubDatabases()
beforeEach ->
Team.save {
_id: 't1'
name: 'PI:NAME:<NAME>END_PI'
local: true
}
it "should create new item", ->
kobito.commands.createNewItem('title', 'body', [name: 'tag1'], '... |
[
{
"context": " add: function(obj) {\n# someQueue.add({key: 'kissmetrics', data: obj});\n# }\n# };\n# batch = new BatchKiss",
"end": 519,
"score": 0.9893777966499329,
"start": 508,
"tag": "KEY",
"value": "kissmetrics"
},
{
"context": "gular HTTP API.\n #\n # ```\n # batch.ad... | src/kissmetrics-batch.coffee | evansolomon/kissmetrics-js | 1 | # # Batch Kissmetrics
# -------------------
# Wrapper for queuing batch queries and processing the batch queue. It's
# unlikely you should create instances of this class directly. It is used
# internally by the `KissmetricsClient` class.
#
# ##### Arguments
#
# `queue` (Object): An object with an `add()` method that c... | 146550 | # # Batch Kissmetrics
# -------------------
# Wrapper for queuing batch queries and processing the batch queue. It's
# unlikely you should create instances of this class directly. It is used
# internally by the `KissmetricsClient` class.
#
# ##### Arguments
#
# `queue` (Object): An object with an `add()` method that c... | true | # # Batch Kissmetrics
# -------------------
# Wrapper for queuing batch queries and processing the batch queue. It's
# unlikely you should create instances of this class directly. It is used
# internally by the `KissmetricsClient` class.
#
# ##### Arguments
#
# `queue` (Object): An object with an `add()` method that c... |
[
{
"context": "###\n * bag\n * getbag.io\n *\n * Copyright (c) 2015 Ryan Gaus\n * Licensed under the MIT license.\n###\nuuid = req",
"end": 58,
"score": 0.9998399615287781,
"start": 49,
"tag": "NAME",
"value": "Ryan Gaus"
},
{
"context": " else\n user_params.passw... | src/controllers/user_controller.coffee | 1egoman/bag-node | 0 | ###
* bag
* getbag.io
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
uuid = require "uuid"
_ = require "underscore"
bcrypt = require "bcrypt"
async = require "async"
User = require "../models/user_model"
Pick = require "../models/pick_model"
Bag = require "../models/bag_model"
Store = requ... | 191695 | ###
* bag
* getbag.io
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
uuid = require "uuid"
_ = require "underscore"
bcrypt = require "bcrypt"
async = require "async"
User = require "../models/user_model"
Pick = require "../models/pick_model"
Bag = require "../models/bag_model"
Store = require... | true | ###
* bag
* getbag.io
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
uuid = require "uuid"
_ = require "underscore"
bcrypt = require "bcrypt"
async = require "async"
User = require "../models/user_model"
Pick = require "../models/pick_model"
Bag = require "../models/bag_model"
S... |
[
{
"context": "\": \"it\", \"s\": 0},\n {\"w\": \"keep\", \"s\": 0},\n {\"w\": \"laugh\", \"s\": 0},\n {\"w\": \"learn\", \"s\": 0},\n {\"w\": \"le",
"end": 2336,
"score": 0.992156982421875,
"start": 2334,
"tag": "NAME",
"value": "la"
},
{
"context": " \"it\", \"s\": 0},\n {\"w\": \"k... | src/wordlist.coffee | elfsternberg/fridgemagnets | 0 | [{"w": "a", "s": 0},
{"w": "a", "s": 0},
{"w": "about", "s": 0},
{"w": "above", "s": 0},
{"w": "after", "s": 0},
{"w": "all", "s": 0},
{"w": "almost", "s": 0},
{"w": "always", "s": 0},
{"w": "am", "s": 0},
{"w": "an", "s": 0},
{"w": "an", "s": 0},
{"w": "and", "s": 0},
{"w": "and", "s": 0},
{"w": "animal",... | 124284 | [{"w": "a", "s": 0},
{"w": "a", "s": 0},
{"w": "about", "s": 0},
{"w": "above", "s": 0},
{"w": "after", "s": 0},
{"w": "all", "s": 0},
{"w": "almost", "s": 0},
{"w": "always", "s": 0},
{"w": "am", "s": 0},
{"w": "an", "s": 0},
{"w": "an", "s": 0},
{"w": "and", "s": 0},
{"w": "and", "s": 0},
{"w": "animal",... | true | [{"w": "a", "s": 0},
{"w": "a", "s": 0},
{"w": "about", "s": 0},
{"w": "above", "s": 0},
{"w": "after", "s": 0},
{"w": "all", "s": 0},
{"w": "almost", "s": 0},
{"w": "always", "s": 0},
{"w": "am", "s": 0},
{"w": "an", "s": 0},
{"w": "an", "s": 0},
{"w": "and", "s": 0},
{"w": "and", "s": 0},
{"w": "animal",... |
[
{
"context": "shedUrl = \"https://docs.google.com/spreadsheets/d/1vyPu1EtzU1DvGXfthjrR-blJ8mGe75TL4BFNWtFMm0I/pubhtml\"\n @key = \"1vyPu1EtzU1DvGXfthjrR-blJ8mG",
"end": 195,
"score": 0.9788786768913269,
"start": 151,
"tag": "KEY",
"value": "1vyPu1EtzU1DvGXfthjrR-blJ8mGe75TL4BFNWtFMm0I"
... | google-spreadsheets-parser-0.2.0/spec/googleSpreadsheetsUtilSpec.coffee | gordonhu7/SRCCalendar | 4 | #require 'jasmine-collection-matchers'
describe GoogleSpreadsheetsUtil, ->
beforeAll ->
@publishedUrl = "https://docs.google.com/spreadsheets/d/1vyPu1EtzU1DvGXfthjrR-blJ8mGe75TL4BFNWtFMm0I/pubhtml"
@key = "1vyPu1EtzU1DvGXfthjrR-blJ8mGe75TL4BFNWtFMm0I"
@firstWorksheetId = "od6"
@secondWorksheetId = "o... | 186595 | #require 'jasmine-collection-matchers'
describe GoogleSpreadsheetsUtil, ->
beforeAll ->
@publishedUrl = "https://docs.google.com/spreadsheets/d/<KEY>/pubhtml"
@key = "<KEY>"
@firstWorksheetId = "od6"
@secondWorksheetId = "obeh737"
@util = new GoogleSpreadsheetsUtil()
describe '.extractKey', ->... | true | #require 'jasmine-collection-matchers'
describe GoogleSpreadsheetsUtil, ->
beforeAll ->
@publishedUrl = "https://docs.google.com/spreadsheets/d/PI:KEY:<KEY>END_PI/pubhtml"
@key = "PI:KEY:<KEY>END_PI"
@firstWorksheetId = "od6"
@secondWorksheetId = "obeh737"
@util = new GoogleSpreadsheetsUtil()
... |
[
{
"context": " # .then ->\n # browser.fill \"Email\", \"armbiter@example.com\"\n # browser.fill \"Password\", \"b100d\"\n # ",
"end": 2258,
"score": 0.9999205470085144,
"start": 2238,
"tag": "EMAIL",
"value": "armbiter@example.com"
},
{
"context": "@example.com\"... | test/promises_test.coffee | pscheit/zombie | 2 | { assert, brains, Browser } = require("./helpers")
describe "Promises", ->
browser = null
before (done)->
browser = Browser.create()
brains.ready(done)
before ->
brains.get "/promises", (req, res)->
res.send """
<script>document.title = "Loaded"</script>
"""
# The simplest p... | 157631 | { assert, brains, Browser } = require("./helpers")
describe "Promises", ->
browser = null
before (done)->
browser = Browser.create()
brains.ready(done)
before ->
brains.get "/promises", (req, res)->
res.send """
<script>document.title = "Loaded"</script>
"""
# The simplest p... | true | { assert, brains, Browser } = require("./helpers")
describe "Promises", ->
browser = null
before (done)->
browser = Browser.create()
brains.ready(done)
before ->
brains.get "/promises", (req, res)->
res.send """
<script>document.title = "Loaded"</script>
"""
# The simplest p... |
[
{
"context": " [\n {\n class: 'Alabama',\n nickname: 'Alabama',\n mascot: 'Crimson Tide',\n logo: 'sec/",
"end": 115,
"score": 0.822472333908081,
"start": 108,
"tag": "NAME",
"value": "Alabama"
},
{
"context": ",\n {\n class: 'Arkansas',\n nickname... | app/assets/javascripts/constants/teams.coffee | learric/ChalkboardClassroomAdminPortal | 0 | angular.module('constants')
.constant('TEAMS', {
'sec': [
{
class: 'Alabama',
nickname: 'Alabama',
mascot: 'Crimson Tide',
logo: 'sec/alabama',
conference: 'sec',
slogan: 'roll tide'
},
{
class: 'Arkansas',
nickname: 'Arkansas',
mascot: 'Razorbacks',
... | 44961 | angular.module('constants')
.constant('TEAMS', {
'sec': [
{
class: 'Alabama',
nickname: '<NAME>',
mascot: 'Crimson Tide',
logo: 'sec/alabama',
conference: 'sec',
slogan: 'roll tide'
},
{
class: 'Arkansas',
nickname: '<NAME>',
mascot: 'Razorbacks',
... | true | angular.module('constants')
.constant('TEAMS', {
'sec': [
{
class: 'Alabama',
nickname: 'PI:NAME:<NAME>END_PI',
mascot: 'Crimson Tide',
logo: 'sec/alabama',
conference: 'sec',
slogan: 'roll tide'
},
{
class: 'Arkansas',
nickname: 'PI:NAME:<NAME>END_PI',
... |
[
{
"context": "# Copyright © 2014–6 Brad Ackerman.\n#\n# Licensed under the Apache License, Version 2",
"end": 34,
"score": 0.9998660087585449,
"start": 21,
"tag": "NAME",
"value": "Brad Ackerman"
},
{
"context": "ters = JSON.parse JSON.stringify [\n name: \"Arjun Kansene\"\n ... | spec/charPickerDirective.coffee | backerman/eveindy | 2 | # Copyright © 2014–6 Brad Ackerman.
#
# Licensed under the Apache License, Version 2.0 the "License";
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 188481 | # Copyright © 2014–6 <NAME>.
#
# Licensed under the Apache License, Version 2.0 the "License";
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | true | # Copyright © 2014–6 PI:NAME:<NAME>END_PI.
#
# Licensed under the Apache License, Version 2.0 the "License";
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... |
[
{
"context": "!Meteor.user()\n commentUser =\n name: 'Anonymous'\n avatarUrl: settings.defaultImg\n i",
"end": 5221,
"score": 0.9742666482925415,
"start": 5212,
"tag": "NAME",
"value": "Anonymous"
},
{
"context": "tings.defaultImg\n commentUser =\n ... | client/views/blog/blog.coffee | Rathius/meteor-blog-materialize | 111 |
# ------------------------------------------------------------------------------
# BLOG INDEX
Template.blogIndex.onCreated ->
@tag = new ReactiveVar null
@autorun =>
@tag.set Blog.Router.getParam 'tag'
if not Session.get('blog.postLimit')
if Blog.settings.pageSize
Session.set 'blog.postLimit', B... | 151635 |
# ------------------------------------------------------------------------------
# BLOG INDEX
Template.blogIndex.onCreated ->
@tag = new ReactiveVar null
@autorun =>
@tag.set Blog.Router.getParam 'tag'
if not Session.get('blog.postLimit')
if Blog.settings.pageSize
Session.set 'blog.postLimit', B... | true |
# ------------------------------------------------------------------------------
# BLOG INDEX
Template.blogIndex.onCreated ->
@tag = new ReactiveVar null
@autorun =>
@tag.set Blog.Router.getParam 'tag'
if not Session.get('blog.postLimit')
if Blog.settings.pageSize
Session.set 'blog.postLimit', B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.