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": "MeshbluXMPP\n uuid: 'uuid'\n token: 'token'\n hostname: 'localhost'\n port: 5222",
"end": 598,
"score": 0.6490418910980225,
"start": 593,
"tag": "KEY",
"value": "token"
},
{
"context": "MeshbluXMPP\n uuid: 'uuid'\n token: 'tok... | test/connect-spec.coffee | octoblu/node-meshblu-xmpp | 1 | _ = require 'lodash'
xmpp = require 'node-xmpp-server'
MeshbluXMPP = require '../'
describe 'Connect', ->
beforeEach (done) ->
@server = new xmpp.C2S.TCPServer
port: 5222
domain: 'localhost'
@server.on 'listening', done
afterEach 'shutdown server', (done) ->
@server.end done
describe '... | 75950 | _ = require 'lodash'
xmpp = require 'node-xmpp-server'
MeshbluXMPP = require '../'
describe 'Connect', ->
beforeEach (done) ->
@server = new xmpp.C2S.TCPServer
port: 5222
domain: 'localhost'
@server.on 'listening', done
afterEach 'shutdown server', (done) ->
@server.end done
describe '... | true | _ = require 'lodash'
xmpp = require 'node-xmpp-server'
MeshbluXMPP = require '../'
describe 'Connect', ->
beforeEach (done) ->
@server = new xmpp.C2S.TCPServer
port: 5222
domain: 'localhost'
@server.on 'listening', done
afterEach 'shutdown server', (done) ->
@server.end done
describe '... |
[
{
"context": " parse it for redis storeage.\nfields = \n alias0:'a person'\n option0:'a option'\n data0:'a data'\n a",
"end": 194,
"score": 0.5280992984771729,
"start": 193,
"tag": "NAME",
"value": "a"
},
{
"context": "a44:'the last data'\n\n\n# change fields as [{alias:'a person... | share/convert.coffee | android1and1/tickets | 0 | # tell us how to convert a flap obj,to a serilized array
# be used at route '/admin/daka-complement',server side resort the uploading data,then parse it for redis storeage.
fields =
alias0:'a person'
option0:'a option'
data0:'a data'
alias1:'b person'
option1:'b option'
data1:'b data'
alias2:'c person'
... | 104879 | # tell us how to convert a flap obj,to a serilized array
# be used at route '/admin/daka-complement',server side resort the uploading data,then parse it for redis storeage.
fields =
alias0:'<NAME> person'
option0:'a option'
data0:'a data'
alias1:'b person'
option1:'b option'
data1:'b data'
alias2:'c pers... | true | # tell us how to convert a flap obj,to a serilized array
# be used at route '/admin/daka-complement',server side resort the uploading data,then parse it for redis storeage.
fields =
alias0:'PI:NAME:<NAME>END_PI person'
option0:'a option'
data0:'a data'
alias1:'b person'
option1:'b option'
data1:'b data'
... |
[
{
"context": "JSON.stringify({\n id: 1\n name: \"monster\"\n status: \"alive\"\n })\n }\n ",
"end": 5362,
"score": 0.862118661403656,
"start": 5355,
"tag": "NAME",
"value": "monster"
},
{
"context": " params = {\n body: JSON.stringify(... | src/swagger-request-spec.coffee | dilipkrish/swagger.js | 0 | window.api_key = 'special-key'
describe 'SwaggerRequest', ->
beforeEach ->
success = ->
console.log "success"
window.authorizations.add "key", new ApiKeyAuthorization("api_key", "special-key", "header")
window.swagger = new SwaggerApi({url: 'http://localhost:8002/api/api-docs', success: success... | 224386 | window.api_key = 'special-key'
describe 'SwaggerRequest', ->
beforeEach ->
success = ->
console.log "success"
window.authorizations.add "key", new ApiKeyAuthorization("api_key", "special-key", "header")
window.swagger = new SwaggerApi({url: 'http://localhost:8002/api/api-docs', success: success... | true | window.api_key = 'special-key'
describe 'SwaggerRequest', ->
beforeEach ->
success = ->
console.log "success"
window.authorizations.add "key", new ApiKeyAuthorization("api_key", "special-key", "header")
window.swagger = new SwaggerApi({url: 'http://localhost:8002/api/api-docs', success: success... |
[
{
"context": "#\n# Copyright 2012 Sami Hangaslammi\n#\n# The future.js library is licensed under the M",
"end": 35,
"score": 0.9998546242713928,
"start": 19,
"tag": "NAME",
"value": "Sami Hangaslammi"
}
] | app/assets/javascripts/future.js.coffee | ayystudentunion/hhj | 0 | #
# Copyright 2012 Sami Hangaslammi
#
# The future.js library is licensed under the MIT license
# http://www.opensource.org/licenses/mit-license.html
#
WAITING = 0
SUCCESS = 1
ERROR = -1
class Future
constructor: () ->
@listeners = []
@result = null
@status = WAITING
callback: (error, value) ... | 30731 | #
# Copyright 2012 <NAME>
#
# The future.js library is licensed under the MIT license
# http://www.opensource.org/licenses/mit-license.html
#
WAITING = 0
SUCCESS = 1
ERROR = -1
class Future
constructor: () ->
@listeners = []
@result = null
@status = WAITING
callback: (error, value) =>
if ... | true | #
# Copyright 2012 PI:NAME:<NAME>END_PI
#
# The future.js library is licensed under the MIT license
# http://www.opensource.org/licenses/mit-license.html
#
WAITING = 0
SUCCESS = 1
ERROR = -1
class Future
constructor: () ->
@listeners = []
@result = null
@status = WAITING
callback: (error, val... |
[
{
"context": "ey = sha1 key, keyLength\n\n ipad = (key[i] ^ 0x36363636 for i in [0...16])\n opad = (key[i] ^ 0x5C5C5C5C ",
"end": 1834,
"score": 0.5291889309883118,
"start": 1829,
"tag": "KEY",
"value": "63636"
}
] | src/util/hmac.coffee | fatihacet/dropbox-js | 1 | # HMAC-SHA1 implementation heavily inspired from
# http://pajhome.org.uk/crypt/md5/sha1.js
# Base64-encoded HMAC-SHA1.
#
# @private
# This should only be used by {Dropbox.Util.Oauth}.
#
# @param {String} string the ASCII string to be signed
# @param {String} key the HMAC key
# @return {String} a base64-encoded HMAC ... | 37758 | # HMAC-SHA1 implementation heavily inspired from
# http://pajhome.org.uk/crypt/md5/sha1.js
# Base64-encoded HMAC-SHA1.
#
# @private
# This should only be used by {Dropbox.Util.Oauth}.
#
# @param {String} string the ASCII string to be signed
# @param {String} key the HMAC key
# @return {String} a base64-encoded HMAC ... | true | # HMAC-SHA1 implementation heavily inspired from
# http://pajhome.org.uk/crypt/md5/sha1.js
# Base64-encoded HMAC-SHA1.
#
# @private
# This should only be used by {Dropbox.Util.Oauth}.
#
# @param {String} string the ASCII string to be signed
# @param {String} key the HMAC key
# @return {String} a base64-encoded HMAC ... |
[
{
"context": "# @file gravity.coffee\n# @Copyright (c) 2017 Taylor Siviter\n# This source code is licensed under the MIT Lice",
"end": 59,
"score": 0.9998459815979004,
"start": 45,
"tag": "NAME",
"value": "Taylor Siviter"
}
] | examples/gravity/gravity.coffee | siviter-t/lampyridae.coffee | 4 | # @file gravity.coffee
# @Copyright (c) 2017 Taylor Siviter
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
###
# Example usage of lampyridae.coffee with forces! (Gravity in this case)
###
# Only the Canvas and base Particle classes are included ... | 160442 | # @file gravity.coffee
# @Copyright (c) 2017 <NAME>
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
###
# Example usage of lampyridae.coffee with forces! (Gravity in this case)
###
# Only the Canvas and base Particle classes are included by defau... | true | # @file gravity.coffee
# @Copyright (c) 2017 PI:NAME:<NAME>END_PI
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
###
# Example usage of lampyridae.coffee with forces! (Gravity in this case)
###
# Only the Canvas and base Particle classes are inc... |
[
{
"context": "erms of the MIT license.\nCopyright 2012 - 2016 (c) Markus Kohlhase <mail@markus-kohlhase.de>\n###\n\nltx = require ",
"end": 109,
"score": 0.9998972415924072,
"start": 94,
"tag": "NAME",
"value": "Markus Kohlhase"
},
{
"context": "cense.\nCopyright 2012 - 2016 (c) ... | src/Serializer.coffee | flosse/node-xmpp-joap | 0 | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) Markus Kohlhase <mail@markus-kohlhase.de>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
stanza = joap.stanza
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
JOAP_STANZAS = ["describe", "... | 43925 | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) <NAME> <<EMAIL>>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
stanza = joap.stanza
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
JOAP_STANZAS = ["describe", "read","add", "edit", "del... | true | ###
This program is distributed under the terms of the MIT license.
Copyright 2012 - 2016 (c) PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
ltx = require "ltx"
joap = require "./node-xmpp-joap"
stanza = joap.stanza
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
JOAP_STANZAS = ["describe... |
[
{
"context": "g.GuideCollection\n username: @model.get('username')\n type: 'passport'\n @passportCol",
"end": 978,
"score": 0.9871952533721924,
"start": 970,
"tag": "USERNAME",
"value": "username"
},
{
"context": "g.GuideCollection\n username: @model... | app/assets/javascripts/backbone/views/profileview.js.coffee | vacaybug/vacaybug | 0 | jQuery ->
class ProfileView extends window.Vacaybug.GenericView
showSpinner: true
isPublic: true
events:
'click .js-follow': 'follow'
'click .js-unfollow': 'unfollow'
'click .js-edit': 'edit'
'click .js-cancel': 'cancel'
'click .js-save': 'save'
'click .js-tab': 'click... | 15588 | jQuery ->
class ProfileView extends window.Vacaybug.GenericView
showSpinner: true
isPublic: true
events:
'click .js-follow': 'follow'
'click .js-unfollow': 'unfollow'
'click .js-edit': 'edit'
'click .js-cancel': 'cancel'
'click .js-save': 'save'
'click .js-tab': 'click... | true | jQuery ->
class ProfileView extends window.Vacaybug.GenericView
showSpinner: true
isPublic: true
events:
'click .js-follow': 'follow'
'click .js-unfollow': 'unfollow'
'click .js-edit': 'edit'
'click .js-cancel': 'cancel'
'click .js-save': 'save'
'click .js-tab': 'click... |
[
{
"context": "# Copyright (c) 2013 JeongHoon Byun aka \"Outsider\", <http://blog.outsider.ne.kr/>\n# L",
"end": 35,
"score": 0.9998757243156433,
"start": 21,
"tag": "NAME",
"value": "JeongHoon Byun"
},
{
"context": "# Copyright (c) 2013 JeongHoon Byun aka \"Outsider\", <http://blog.o... | test/persistence.test.coffee | uppalapatisujitha/CodingConventionofCommitHistory | 421 | # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
persistence = require '../src/persistence'
describe 'persistence >', ->
before (done) ->
persistence.open ->
done()
it 'do ... | 176831 | # Copyright (c) 2013 <NAME> aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
persistence = require '../src/persistence'
describe 'persistence >', ->
before (done) ->
persistence.open ->
done()
it 'do getTimel... | true | # Copyright (c) 2013 PI:NAME:<NAME>END_PI aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
persistence = require '../src/persistence'
describe 'persistence >', ->
before (done) ->
persistence.open ->
done()
i... |
[
{
"context": " (config, params) =>\n if params.username == 'test' && params.password == 'test' && @sandbox.sandbox",
"end": 866,
"score": 0.9987323880195618,
"start": 862,
"tag": "USERNAME",
"value": "test"
},
{
"context": " params.username == 'test' && params.password == 'test'... | plugins/starpeace-client/api/sandbox/sandbox-configuration.coffee | starpeace-project/starpeace-client-website | 1 |
import moment from 'moment'
import _ from 'lodash'
import MockAdapter from 'axios-mock-adapter'
import ChunkMap from '~/plugins/starpeace-client/map/chunk/chunk-map.coffee'
import TimeUtils from '~/plugins/starpeace-client/utils/time-utils.coffee'
import Utils from '~/plugins/starpeace-client/utils/utils.coffee'
im... | 123986 |
import moment from 'moment'
import _ from 'lodash'
import MockAdapter from 'axios-mock-adapter'
import ChunkMap from '~/plugins/starpeace-client/map/chunk/chunk-map.coffee'
import TimeUtils from '~/plugins/starpeace-client/utils/time-utils.coffee'
import Utils from '~/plugins/starpeace-client/utils/utils.coffee'
im... | true |
import moment from 'moment'
import _ from 'lodash'
import MockAdapter from 'axios-mock-adapter'
import ChunkMap from '~/plugins/starpeace-client/map/chunk/chunk-map.coffee'
import TimeUtils from '~/plugins/starpeace-client/utils/time-utils.coffee'
import Utils from '~/plugins/starpeace-client/utils/utils.coffee'
im... |
[
{
"context": "Spell\"\n\nclass LitanyOfPain extends Spell\n name: \"Litany of Pain\"\n @element = LitanyOfPain::element = Spell::Elem",
"end": 96,
"score": 0.9738254547119141,
"start": 82,
"tag": "NAME",
"value": "Litany of Pain"
},
{
"context": "amage upfront and over time.\n ... | src/character/spells/debuffs/multi/LitanyofPain.coffee | sadbear-/IdleLands | 3 |
Spell = require "../../../base/Spell"
class LitanyOfPain extends Spell
name: "Litany of Pain"
@element = LitanyOfPain::element = Spell::Element.energy
@tiers = LitanyOfPain::tiers = [
`/**
* This spell does damage upfront and over time.
*
* @name Litany of Pain
* @requirement {class}... | 157286 |
Spell = require "../../../base/Spell"
class LitanyOfPain extends Spell
name: "<NAME>"
@element = LitanyOfPain::element = Spell::Element.energy
@tiers = LitanyOfPain::tiers = [
`/**
* This spell does damage upfront and over time.
*
* @name <NAME>
* @requirement {class} Bard
* @r... | true |
Spell = require "../../../base/Spell"
class LitanyOfPain extends Spell
name: "PI:NAME:<NAME>END_PI"
@element = LitanyOfPain::element = Spell::Element.energy
@tiers = LitanyOfPain::tiers = [
`/**
* This spell does damage upfront and over time.
*
* @name PI:NAME:<NAME>END_PI
* @require... |
[
{
"context": "plan 1\n s = table([\n [\n \"master\"\n \"0123456789abcdef\"\n ]\n [\n \"staging\"\n \"fedcba9876543",
"end": 136,
"score": 0.7404808402061462,
"start": 121,
"tag": "KEY",
"value": "123456789abcdef"
},
{
"context": "3456789abcdef\"\n ]\n... | deps/npm/node_modules/text-table/test/table.coffee | lxe/io.coffee | 0 | test = require("tape")
table = require("../")
test "table", (t) ->
t.plan 1
s = table([
[
"master"
"0123456789abcdef"
]
[
"staging"
"fedcba9876543210"
]
])
t.equal s, [
"master 0123456789abcdef"
"staging fedcba9876543210"
].join("\n")
return
| 198543 | test = require("tape")
table = require("../")
test "table", (t) ->
t.plan 1
s = table([
[
"master"
"0<KEY>"
]
[
"staging"
"<KEY>"
]
])
t.equal s, [
"master 012<KEY>abcdef"
"staging <KEY>"
].join("\n")
return
| true | test = require("tape")
table = require("../")
test "table", (t) ->
t.plan 1
s = table([
[
"master"
"0PI:KEY:<KEY>END_PI"
]
[
"staging"
"PI:KEY:<KEY>END_PI"
]
])
t.equal s, [
"master 012PI:KEY:<KEY>END_PIabcdef"
"staging PI:KEY:<KEY>END_PI"
].join("\n")
retu... |
[
{
"context": "s us to set the editor to \"GLSL\"\n\n# NVIDIA FXAA by Timothy Lottes\n# http://timothylottes.blogspot.com/2011/06/fxaa3",
"end": 80,
"score": 0.999870777130127,
"start": 66,
"tag": "NAME",
"value": "Timothy Lottes"
},
{
"context": "11/06/fxaa3-source-released.html\n# -... | engine/effects/FXAA.coffee | myou-engine/myou | 29 | # /* This allows us to set the editor to "GLSL"
# NVIDIA FXAA by Timothy Lottes
# http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html
# - WebGL port by @supereggbert
# http://www.glge.org/demos/fxaa/
# TODO: separate GLSL code into files to avoid linter errors, etc
library = ''' #line 8 /**/
#de... | 11962 | # /* This allows us to set the editor to "GLSL"
# NVIDIA FXAA by <NAME>
# http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html
# - WebGL port by @supereggbert
# http://www.glge.org/demos/fxaa/
# TODO: separate GLSL code into files to avoid linter errors, etc
library = ''' #line 8 /**/
#define FXA... | true | # /* This allows us to set the editor to "GLSL"
# NVIDIA FXAA by PI:NAME:<NAME>END_PI
# http://timothylottes.blogspot.com/2011/06/fxaa3-source-released.html
# - WebGL port by @supereggbert
# http://www.glge.org/demos/fxaa/
# TODO: separate GLSL code into files to avoid linter errors, etc
library = ''' #line 8 /**/
... |
[
{
"context": " (Darwin)\nComment: GPGTools - http://gpgtools.org\n\nmI0EUv9PLQEEAKaVQtVri04jctAhmr8nJEM1LS3J71XifbcFtB3MxPJMTeIDN262\ndCjqm6qpmZjmoxOyuCnjWsXmypBsoZWDimqT0ty0zjssjT50wNhV1ab3kjv4HXPm\nICGUNqSQr/5okQ4cG9BdBsSq7MF0h3ymyQEzuyLAQGZPJgxdKbrJVdgpABEBAAG0\nKUhlcmJlcnQgS2l0Y2hlbmVyIDxoZXJiZXJ0QGtpdGNoZW... | test/data/keys.iced | samkenxstream/kbpgp | 464 |
exports.keys = {
with_pic_1 : """
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
mI0EUv9PLQEEAKaVQtVri04jctAhmr8nJEM1LS3J71XifbcFtB3MxPJMTeIDN262
dCjqm6qpmZjmoxOyuCnjWsXmypBsoZWDimqT0ty0zjssjT50wNhV1ab3kjv4HXPm
ICGUNqSQr/5okQ4cG9BdBsSq7MF0h3ymyQ... | 165285 |
exports.keys = {
with_pic_1 : """
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
<KEY>
MLS/<KEY>
-----END PGP PUBLIC KEY BLOCK-----
""",
sneak : """
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.4
Comment: Hostname: pgp.mit.edu
<KEY>
... | true |
exports.keys = {
with_pic_1 : """
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
PI:KEY:<KEY>END_PI
MLS/PI:KEY:<KEY>END_PI
-----END PGP PUBLIC KEY BLOCK-----
""",
sneak : """
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.4
Comment: Hos... |
[
{
"context": "-----------------------------\n fsmd =\n name: 'knob'\n moves:\n start: 'bar'\n step: [",
"end": 19760,
"score": 0.45559510588645935,
"start": 19758,
"tag": "NAME",
"value": "kn"
},
{
"context": "---------------------------\n fsmd =\n name: 'knob... | dev/intermatic/src/main.tests.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'HENGIST/DEV/INTERMATIC'
debug = CND.get_logger 'debug', badge
wa... | 208343 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'HENGIST/DEV/INTERMATIC'
debug = CND.get_logger 'debug', badge
wa... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'HENGIST/DEV/INTERMATIC'
debug = CND.get_logger 'debug', badge
wa... |
[
{
"context": "#\n# Ethan Mick\n# 2015\n#\n\nmongoose = require('mongoose-q')()\nSche",
"end": 14,
"score": 0.9997730255126953,
"start": 4,
"tag": "NAME",
"value": "Ethan Mick"
}
] | lib/models/galaxy.coffee | ethanmick/mustached-octo-dubstep | 0 | #
# Ethan Mick
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
Galaxy = new Schema
name:
type: String
systems: [
{
type: ObjectId
ref: 'SolarSystem'
}
]
module.exports = mongoose.model 'Galaxy', Galaxy
| 145076 | #
# <NAME>
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
Galaxy = new Schema
name:
type: String
systems: [
{
type: ObjectId
ref: 'SolarSystem'
}
]
module.exports = mongoose.model 'Galaxy', Galaxy
| true | #
# PI:NAME:<NAME>END_PI
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
Galaxy = new Schema
name:
type: String
systems: [
{
type: ObjectId
ref: 'SolarSystem'
}
]
module.exports = mongoose.model 'Galaxy', Galaxy
|
[
{
"context": "lid_email.com'\n Users.create\n email: 'valid@email.com'\n , validate: true, (err, user) ->\n s",
"end": 832,
"score": 0.9999114274978638,
"start": 817,
"tag": "EMAIL",
"value": "valid@email.com"
},
{
"context": "update', (next) ->\n Users.cre... | test/type_email.coffee | wdavidw/node-ron | 14 |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get
name: 'users'
properties:
user_id: identifier: true
email: {type: 'email', index: true}
next()
beforeEach (next) ->
... | 138157 |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get
name: 'users'
properties:
user_id: identifier: true
email: {type: 'email', index: true}
next()
beforeEach (next) ->
... | true |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get
name: 'users'
properties:
user_id: identifier: true
email: {type: 'email', index: true}
next()
beforeEach (next) ->
... |
[
{
"context": "\"Zatvoriť panel\"\n Developer:\n value: \"Vývojár\"\n submenu:\n \"Open In Dev Mode…\"",
"end": 5752,
"score": 0.6178281903266907,
"start": 5747,
"tag": "NAME",
"value": "Vývoj"
}
] | def/sk/menu_darwin.cson | erikbs/atom-i18n | 76 | Menu:
Atom:
value: "Atom"
submenu:
"About Atom":
value: "O Atome"
"View License":
value: "Zobraziť Licenciu"
"Check for Update":
value: "Skontrolovať aktualizácie"
"Preferences…":
value: "Nastavenie..."
"Config…":
value: "Config..."
"... | 13148 | Menu:
Atom:
value: "Atom"
submenu:
"About Atom":
value: "O Atome"
"View License":
value: "Zobraziť Licenciu"
"Check for Update":
value: "Skontrolovať aktualizácie"
"Preferences…":
value: "Nastavenie..."
"Config…":
value: "Config..."
"... | true | Menu:
Atom:
value: "Atom"
submenu:
"About Atom":
value: "O Atome"
"View License":
value: "Zobraziť Licenciu"
"Check for Update":
value: "Skontrolovať aktualizácie"
"Preferences…":
value: "Nastavenie..."
"Config…":
value: "Config..."
"... |
[
{
"context": ")\n section = 'devel'\n maintainer = 'GitHub <atom@github.com>'\n installDir = '/usr'\n iconName = 'atom'\n ",
"end": 1121,
"score": 0.9999191164970398,
"start": 1106,
"tag": "EMAIL",
"value": "atom@github.com"
}
] | build/tasks/mkdeb-task.coffee | postcasio/atom | 1 | fs = require 'fs'
path = require 'path'
_ = require 'underscore-plus'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
fillTemplate = (filePath, data) ->
template = _.template(String(fs.readFileSync("#{filePath}.in")))
filled = template(data)
outputPath = path.join(grunt.config.... | 217175 | fs = require 'fs'
path = require 'path'
_ = require 'underscore-plus'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
fillTemplate = (filePath, data) ->
template = _.template(String(fs.readFileSync("#{filePath}.in")))
filled = template(data)
outputPath = path.join(grunt.config.... | true | fs = require 'fs'
path = require 'path'
_ = require 'underscore-plus'
module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
fillTemplate = (filePath, data) ->
template = _.template(String(fs.readFileSync("#{filePath}.in")))
filled = template(data)
outputPath = path.join(grunt.config.... |
[
{
"context": "# Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>\n#\n# Permission is here",
"end": 37,
"score": 0.9998659491539001,
"start": 24,
"tag": "NAME",
"value": "Florian Mayer"
},
{
"context": "# Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>\n#\... | life.coffee | segfaulthunter/life | 2 | # Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>
#
# 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,... | 162712 | # Copyright (C) 2011 by <NAME> <<EMAIL>>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | true | # Copyright (C) 2011 by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, ... |
[
{
"context": "offee\n#\n# The MIT License (MIT)\n# Copyright © 2015 Santeri Paavolainen <santtu@iki.fi>\n#\n# Permission is hereby granted,",
"end": 110,
"score": 0.9998857975006104,
"start": 91,
"tag": "NAME",
"value": "Santeri Paavolainen"
},
{
"context": "nse (MIT)\n# Copyright © ... | modemizr.coffee | santtu/modemizr | 3 | # -*- tab-width: 2 -*-
###
# modemizr.coffee
#
# The MIT License (MIT)
# Copyright © 2015 Santeri Paavolainen <santtu@iki.fi>
#
# 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 restri... | 163906 | # -*- tab-width: 2 -*-
###
# modemizr.coffee
#
# The MIT License (MIT)
# Copyright © 2015 <NAME> <<EMAIL>>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the “Software”), to deal in the Software without restriction,
# including ... | true | # -*- tab-width: 2 -*-
###
# modemizr.coffee
#
# The MIT License (MIT)
# Copyright © 2015 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the “Software”), to deal in the Software with... |
[
{
"context": " #{@forename} #{@surname}\"\n\n\t\t\tjohn = new Person 'John', 'Doe'\n\t\t\texpect(msg).to.equal('Welcome John Doe",
"end": 854,
"score": 0.9998509883880615,
"start": 850,
"tag": "NAME",
"value": "John"
},
{
"context": "name} #{@surname}\"\n\n\t\t\tjohn = new Person 'Jo... | spec/spec.coffee | florian/Strukt | 5 | describe 'Struct', ->
it 'should be in the global scope', ->
expect(window).to.have.property('Struct')
it 'should be a function', ->
expect(Struct).to.be.a('function')
it 'should return a function', ->
expect(new Struct).to.be.a('function')
describe 'instance', ->
it 'should return an object', ->
expe... | 105773 | describe 'Struct', ->
it 'should be in the global scope', ->
expect(window).to.have.property('Struct')
it 'should be a function', ->
expect(Struct).to.be.a('function')
it 'should return a function', ->
expect(new Struct).to.be.a('function')
describe 'instance', ->
it 'should return an object', ->
expe... | true | describe 'Struct', ->
it 'should be in the global scope', ->
expect(window).to.have.property('Struct')
it 'should be a function', ->
expect(Struct).to.be.a('function')
it 'should return a function', ->
expect(new Struct).to.be.a('function')
describe 'instance', ->
it 'should return an object', ->
expe... |
[
{
"context": "ke3'\nimport * as base64 from \"https://denopkg.com/chiefbiiko/base64/mod.ts\"\nimport seed from './config/seed'\n\n",
"end": 272,
"score": 0.7821890115737915,
"start": 262,
"tag": "USERNAME",
"value": "chiefbiiko"
},
{
"context": "send(\n encode(n+\" \"+now)\n {\... | src/index.coffee | rmw-deno/rs | 0 | #!/usr/bin/env coffee
import {encode,decode} from "https://deno.land/std/encoding/utf8.ts"
import * as hex from "https://deno.land/std/encoding/hex.ts"
import udp from './net/udp'
import {hash} from '../wasm/blake3'
import * as base64 from "https://denopkg.com/chiefbiiko/base64/mod.ts"
import seed from './config/seed'... | 26406 | #!/usr/bin/env coffee
import {encode,decode} from "https://deno.land/std/encoding/utf8.ts"
import * as hex from "https://deno.land/std/encoding/hex.ts"
import udp from './net/udp'
import {hash} from '../wasm/blake3'
import * as base64 from "https://denopkg.com/chiefbiiko/base64/mod.ts"
import seed from './config/seed'... | true | #!/usr/bin/env coffee
import {encode,decode} from "https://deno.land/std/encoding/utf8.ts"
import * as hex from "https://deno.land/std/encoding/hex.ts"
import udp from './net/udp'
import {hash} from '../wasm/blake3'
import * as base64 from "https://denopkg.com/chiefbiiko/base64/mod.ts"
import seed from './config/seed'... |
[
{
"context": "tFindOptions()\n # options.filter = \"Bob\"\n options.multiple = true\n options.",
"end": 1697,
"score": 0.9803221821784973,
"start": 1694,
"tag": "NAME",
"value": "Bob"
}
] | client/app/scripts/Home.coffee | softwarerero/protothril | 0 | m = require 'mithril'
Module = require './components/abstract/Module'
module.exports = class Login extends Module
onDeviceReady = () ->
log('ready: ' + navigator?.camera)
pictureSource = navigator.camera.PictureSourceType;
log 'pictureSource: ' + pictureSource
destinationType = navigator.camera.Dest... | 39638 | m = require 'mithril'
Module = require './components/abstract/Module'
module.exports = class Login extends Module
onDeviceReady = () ->
log('ready: ' + navigator?.camera)
pictureSource = navigator.camera.PictureSourceType;
log 'pictureSource: ' + pictureSource
destinationType = navigator.camera.Dest... | true | m = require 'mithril'
Module = require './components/abstract/Module'
module.exports = class Login extends Module
onDeviceReady = () ->
log('ready: ' + navigator?.camera)
pictureSource = navigator.camera.PictureSourceType;
log 'pictureSource: ' + pictureSource
destinationType = navigator.camera.Dest... |
[
{
"context": "响应。\n #\n # 消息内容均为`JSON`格式。\n key_access_token = \"WX:ACCESS_TOKEN:#{app_id}\"\n redis_pubsub.subscribe key_access_token, 'WX:SC",
"end": 2277,
"score": 0.9931921362876892,
"start": 2251,
"tag": "KEY",
"value": "WX:ACCESS_TOKEN:#{app_id}\""
},
{
"context": "lient.de... | src/wx.coffee | jinzaizhichi/wx | 192 | # ### 内部模组
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
{exec} = require 'child_process'
# ### 外部模组
redis = require 'redis'
_ = require 'underscore'
_s = require 'underscore.string'
qs = require 'qs'
request = require 'request'
getRawBody = re... | 84188 | # ### 内部模组
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
{exec} = require 'child_process'
# ### 外部模组
redis = require 'redis'
_ = require 'underscore'
_s = require 'underscore.string'
qs = require 'qs'
request = require 'request'
getRawBody = re... | true | # ### 内部模组
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
{exec} = require 'child_process'
# ### 外部模组
redis = require 'redis'
_ = require 'underscore'
_s = require 'underscore.string'
qs = require 'qs'
request = require 'request'
getRawBody = re... |
[
{
"context": "()\n $http.post('/api/users/login', {username: username, password: password})\n .then ->\n ",
"end": 449,
"score": 0.9970192909240723,
"start": 441,
"tag": "USERNAME",
"value": "username"
},
{
"context": "'/api/users/login', {username: username, pas... | client/src/app/model/users.coffee | bcfuchs/RedWire | 0 | angular.module('gamEvolve.model.users', [])
.factory 'loggedUser', ($http) ->
profile: null
isLoggedIn: -> @profile?
isNotLoggedIn: -> not @isLoggedIn()
logout: ->
$http.post('/api/users/logout').then -> console.log 'Logging Out'
@profile = null
.factory 'users', (loggedUser, $http, $... | 217161 | angular.module('gamEvolve.model.users', [])
.factory 'loggedUser', ($http) ->
profile: null
isLoggedIn: -> @profile?
isNotLoggedIn: -> not @isLoggedIn()
logout: ->
$http.post('/api/users/logout').then -> console.log 'Logging Out'
@profile = null
.factory 'users', (loggedUser, $http, $... | true | angular.module('gamEvolve.model.users', [])
.factory 'loggedUser', ($http) ->
profile: null
isLoggedIn: -> @profile?
isNotLoggedIn: -> not @isLoggedIn()
logout: ->
$http.post('/api/users/logout').then -> console.log 'Logging Out'
@profile = null
.factory 'users', (loggedUser, $http, $... |
[
{
"context": "[string]: IP [string]\n @dns =\n \"besafe.com\": \"256.241.23.02\"\n\n apps: {}\n\n bgm: \"bgm.mp3\"\n\n # dictionary of",
"end": 100,
"score": 0.9997568726539612,
"start": 87,
"tag": "IP_ADDRESS",
"value": "256.241.23.02"
},
{
"context": "ver]\n servers:\n \... | src/coffee/game.coffee | hsandt/hacker | 0 | class @Game
# domain table of URL [string]: IP [string]
@dns =
"besafe.com": "256.241.23.02"
apps: {}
bgm: "bgm.mp3"
# dictionary of serverID [string]: server [Server]
servers:
"local": new Server "local", "456.231.24.57",
[
new Directory "home", [
new TextFile "tutorial"... | 85642 | class @Game
# domain table of URL [string]: IP [string]
@dns =
"besafe.com": "256.241.23.02"
apps: {}
bgm: "bgm.mp3"
# dictionary of serverID [string]: server [Server]
servers:
"local": new Server "local", "456.231.24.57",
[
new Directory "home", [
new TextFile "tutorial"... | true | class @Game
# domain table of URL [string]: IP [string]
@dns =
"besafe.com": "256.241.23.02"
apps: {}
bgm: "bgm.mp3"
# dictionary of serverID [string]: server [Server]
servers:
"local": new Server "local", "456.231.24.57",
[
new Directory "home", [
new TextFile "tutorial"... |
[
{
"context": "# Copyright (C) 2013 John Judnich\n# Released under The MIT License - see \"LICENSE\" ",
"end": 33,
"score": 0.9998706579208374,
"start": 21,
"tag": "NAME",
"value": "John Judnich"
}
] | source/Starfield.coffee | anandprabhakar0507/Kosmos | 46 | # Copyright (C) 2013 John Judnich
# Released under The MIT License - see "LICENSE" file for details.
root = exports ? this
root.universeSeed = 31415
root.starBufferSize = 10000
class root.Starfield
constructor: ({blockMinStars, blockMaxStars, blockScale, starSize, viewRange}) ->
@_starBufferSize = root.starBuffer... | 128163 | # Copyright (C) 2013 <NAME>
# Released under The MIT License - see "LICENSE" file for details.
root = exports ? this
root.universeSeed = 31415
root.starBufferSize = 10000
class root.Starfield
constructor: ({blockMinStars, blockMaxStars, blockScale, starSize, viewRange}) ->
@_starBufferSize = root.starBufferSize
... | true | # Copyright (C) 2013 PI:NAME:<NAME>END_PI
# Released under The MIT License - see "LICENSE" file for details.
root = exports ? this
root.universeSeed = 31415
root.starBufferSize = 10000
class root.Starfield
constructor: ({blockMinStars, blockMaxStars, blockScale, starSize, viewRange}) ->
@_starBufferSize = root.st... |
[
{
"context": "lubr app can be installed from https://github.com/okize/flubr\n#\n# Author:\n# Morgan Wigmanich <okize123@",
"end": 454,
"score": 0.9969639778137207,
"start": 449,
"tag": "USERNAME",
"value": "okize"
},
{
"context": "rom https://github.com/okize/flubr\n#\n# Author:\n#... | src/flubr.coffee | okize/hubot-flubr | 0 | # Description:
# Hubot script that requests pass/fail images from a Flubr app instance in response to build states
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_FLUBR_URL url of a deployed instance of a Flubr app
# HUBOT_FLUBR_PASS regexp, defines PASS image trigger phrase
# HUBOT_FLUBR_FAIL r... | 33110 | # Description:
# Hubot script that requests pass/fail images from a Flubr app instance in response to build states
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_FLUBR_URL url of a deployed instance of a Flubr app
# HUBOT_FLUBR_PASS regexp, defines PASS image trigger phrase
# HUBOT_FLUBR_FAIL r... | true | # Description:
# Hubot script that requests pass/fail images from a Flubr app instance in response to build states
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_FLUBR_URL url of a deployed instance of a Flubr app
# HUBOT_FLUBR_PASS regexp, defines PASS image trigger phrase
# HUBOT_FLUBR_FAIL r... |
[
{
"context": "ord_redirect_to\n res.locals.sd.SET_PASSWORD = req.query.set_password\n\n res.render 'index',\n heroUnits: her",
"end": 2425,
"score": 0.9955739974975586,
"start": 2403,
"tag": "PASSWORD",
"value": "req.query.set_password"
}
] | src/desktop/apps/home/routes.coffee | kanaabe/force | 0 | _ = require 'underscore'
Q = require 'bluebird-q'
{ parse } = require 'url'
Backbone = require 'backbone'
sd = require('sharify').data
Items = require '../../collections/items'
{ client } = require '../../lib/cache'
metaphysics = require '../../../lib/metaphysics.coffee'
viewHelpers = require './view_helpers.coffee'
we... | 62257 | _ = require 'underscore'
Q = require 'bluebird-q'
{ parse } = require 'url'
Backbone = require 'backbone'
sd = require('sharify').data
Items = require '../../collections/items'
{ client } = require '../../lib/cache'
metaphysics = require '../../../lib/metaphysics.coffee'
viewHelpers = require './view_helpers.coffee'
we... | true | _ = require 'underscore'
Q = require 'bluebird-q'
{ parse } = require 'url'
Backbone = require 'backbone'
sd = require('sharify').data
Items = require '../../collections/items'
{ client } = require '../../lib/cache'
metaphysics = require '../../../lib/metaphysics.coffee'
viewHelpers = require './view_helpers.coffee'
we... |
[
{
"context": "concepts/filter_box_concept\n\n# https://github.com/chartjs/Chart.js/issues/5106 --> wait version 2.8\nclass R",
"end": 80,
"score": 0.9992094039916992,
"start": 73,
"tag": "USERNAME",
"value": "chartjs"
},
{
"context": "ions) =>\n unless $(\"#{@ADDED_ITEM}[data-key=... | ext_rails_admin/app/assets/javascripts/rails_admin/concepts/chart_concept.coffee | patleb/ext_plugins | 0 | #= require rails_admin/concepts/filter_box_concept
# https://github.com/chartjs/Chart.js/issues/5106 --> wait version 2.8
class RailsAdmin.ChartConcept
constants: ->
CONFIG: '.js_chartkick_config'
CHART_ID: 'chart-1'
INIT: 'ID'
ADDED_LIST: 'CLASS'
ADDED_ITEM: 'CLASS'
ADD_LINK: 'CLASS'
FOR... | 212115 | #= require rails_admin/concepts/filter_box_concept
# https://github.com/chartjs/Chart.js/issues/5106 --> wait version 2.8
class RailsAdmin.ChartConcept
constants: ->
CONFIG: '.js_chartkick_config'
CHART_ID: 'chart-1'
INIT: 'ID'
ADDED_LIST: 'CLASS'
ADDED_ITEM: 'CLASS'
ADD_LINK: 'CLASS'
FOR... | true | #= require rails_admin/concepts/filter_box_concept
# https://github.com/chartjs/Chart.js/issues/5106 --> wait version 2.8
class RailsAdmin.ChartConcept
constants: ->
CONFIG: '.js_chartkick_config'
CHART_ID: 'chart-1'
INIT: 'ID'
ADDED_LIST: 'CLASS'
ADDED_ITEM: 'CLASS'
ADD_LINK: 'CLASS'
FOR... |
[
{
"context": "eturn event.obj == 'membership'\n key: 'TIMELINE.NEW_MEMBER',\n translate_params: ['project_name']\n",
"end": 986,
"score": 0.8359415531158447,
"start": 967,
"tag": "KEY",
"value": "TIMELINE.NEW_MEMBER"
},
{
"context": "ject' && event.type == 'crea... | app/modules/user-timeline/user-timeline-item/user-timeline-item-type.service.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 82727 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": "dresses\", (cb) ->\n test.markdown null, 'http://192.168.1.1', [\n {type: 'document', nesting: 1}\n {t",
"end": 656,
"score": 0.99959796667099,
"start": 645,
"tag": "IP_ADDRESS",
"value": "192.168.1.1"
},
{
"context": "1}\n {type: 'link', nesting: 1, h... | test/mocha/markdown/linkify.coffee | alinex/node-report | 1 | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown linkify", ->
it "should allow direct links", (cb) ->
test.markdown null, 'http://foo.com', [
{type: 'document', nesting: 1}
{type: 'paragr... | 38487 | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown linkify", ->
it "should allow direct links", (cb) ->
test.markdown null, 'http://foo.com', [
{type: 'document', nesting: 1}
{type: 'paragr... | true | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown linkify", ->
it "should allow direct links", (cb) ->
test.markdown null, 'http://foo.com', [
{type: 'document', nesting: 1}
{type: 'paragr... |
[
{
"context": "# grunt-sass-linter\n# https://github.com/ocupop/grunt-sass-linter\n\n# Copyright (c) 2013 Justin Fa",
"end": 47,
"score": 0.9961289763450623,
"start": 41,
"tag": "USERNAME",
"value": "ocupop"
},
{
"context": "com/ocupop/grunt-sass-linter\n\n# Copyright (c) 2013 Justin ... | tasks/sass_linter.coffee | ocupop/grunt-sass-linter | 1 | # grunt-sass-linter
# https://github.com/ocupop/grunt-sass-linter
# Copyright (c) 2013 Justin Falcone
# Licensed under the MIT license.
"use strict"
module.exports = (grunt)->
# fs = require 'fs'
grunt.registerMultiTask 'sass_linter', 'Advanced style guide fascism for SASS', ()->
# defaults
options = ... | 203977 | # grunt-sass-linter
# https://github.com/ocupop/grunt-sass-linter
# Copyright (c) 2013 <NAME>
# Licensed under the MIT license.
"use strict"
module.exports = (grunt)->
# fs = require 'fs'
grunt.registerMultiTask 'sass_linter', 'Advanced style guide fascism for SASS', ()->
# defaults
options = @options... | true | # grunt-sass-linter
# https://github.com/ocupop/grunt-sass-linter
# Copyright (c) 2013 PI:NAME:<NAME>END_PI
# Licensed under the MIT license.
"use strict"
module.exports = (grunt)->
# fs = require 'fs'
grunt.registerMultiTask 'sass_linter', 'Advanced style guide fascism for SASS', ()->
# defaults
opti... |
[
{
"context": " beforeEach ->\n @message =\n bandit: \"Ralph\"\n mastiff: false\n banditCaptain: \"C",
"end": 634,
"score": 0.7795016169548035,
"start": 630,
"tag": "NAME",
"value": "alph"
},
{
"context": "h\"\n mastiff: false\n banditCaptain: \... | test/parser/message-to-parameter-spec.coffee | octoblu/swagger-device-generator | 0 | _ = require 'lodash'
MessageToParameter = require '../../parser/message-to-parameter'
describe 'MessageToParameter', ->
it 'should exist', ->
expect(MessageToParameter).to.exist
describe 'when constructed with a parameter map', ->
beforeEach ->
@parameterNameMap = {
"bandit": "Bandit"
"banditC... | 163570 | _ = require 'lodash'
MessageToParameter = require '../../parser/message-to-parameter'
describe 'MessageToParameter', ->
it 'should exist', ->
expect(MessageToParameter).to.exist
describe 'when constructed with a parameter map', ->
beforeEach ->
@parameterNameMap = {
"bandit": "Bandit"
"banditC... | true | _ = require 'lodash'
MessageToParameter = require '../../parser/message-to-parameter'
describe 'MessageToParameter', ->
it 'should exist', ->
expect(MessageToParameter).to.exist
describe 'when constructed with a parameter map', ->
beforeEach ->
@parameterNameMap = {
"bandit": "Bandit"
"banditC... |
[
{
"context": "salsa = @store.createRecord \"salsa\",\n name: \"avocado mild\"\n price: 1.34\n @salsa.save()\n\n andThen =",
"end": 674,
"score": 0.9970270991325378,
"start": 662,
"tag": "NAME",
"value": "avocado mild"
}
] | tests/acceptance/polymorph-history-test.coffee | foxnewsnetwork/autox | 0 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
module 'Acceptance: PolymorphHistory',
beforeEach: ->
@application = startApp()
###
Don't return anything, because QUnit looks for a .then
that is present on Ember.Application, bu... | 20979 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
module 'Acceptance: PolymorphHistory',
beforeEach: ->
@application = startApp()
###
Don't return anything, because QUnit looks for a .then
that is present on Ember.Application, bu... | true | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
module 'Acceptance: PolymorphHistory',
beforeEach: ->
@application = startApp()
###
Don't return anything, because QUnit looks for a .then
that is present on Ember.Application, bu... |
[
{
"context": "ER_BASEURL}/login\"\n# form:\n# username: user.username\n# password: user.password\n# }, (err, r,",
"end": 156,
"score": 0.9992987513542175,
"start": 143,
"tag": "USERNAME",
"value": "user.username"
},
{
"context": " username: user.username\... | test/exchanges/authorization_code.coffee | tungv/oauth2-provider | 2 | ## make sure user has logged in
# before (done)->
# request.post {
# uri: "#{PROVIDER_BASEURL}/login"
# form:
# username: user.username
# password: user.password
# }, (err, r, body)->
# logger.debug 'body', body
# done()
request = require 'request'
module.exports = (mockup)->
... | 190283 | ## make sure user has logged in
# before (done)->
# request.post {
# uri: "#{PROVIDER_BASEURL}/login"
# form:
# username: user.username
# password: <PASSWORD>
# }, (err, r, body)->
# logger.debug 'body', body
# done()
request = require 'request'
module.exports = (mockup)->
P... | true | ## make sure user has logged in
# before (done)->
# request.post {
# uri: "#{PROVIDER_BASEURL}/login"
# form:
# username: user.username
# password: PI:PASSWORD:<PASSWORD>END_PI
# }, (err, r, body)->
# logger.debug 'body', body
# done()
request = require 'request'
module.export... |
[
{
"context": "l\n $state = null\n stateParams = {id: 1, token: 'token'}\n url = null\n beforeEach inject (_$controller_",
"end": 181,
"score": 0.5691095590591431,
"start": 176,
"tag": "KEY",
"value": "token"
}
] | spec/controllers/reset_spec.coffee | ah450/guclink-auth-www | 0 | describe 'ResetController', ->
beforeEach module 'guclinkAuth'
$controller = null
$httpBackend = null
$rootScope = null
$state = null
stateParams = {id: 1, token: 'token'}
url = null
beforeEach inject (_$controller_, _$httpBackend_, _$rootScope_, _$state_) ->
$controller = _$controller_
$httpBac... | 65220 | describe 'ResetController', ->
beforeEach module 'guclinkAuth'
$controller = null
$httpBackend = null
$rootScope = null
$state = null
stateParams = {id: 1, token: '<KEY>'}
url = null
beforeEach inject (_$controller_, _$httpBackend_, _$rootScope_, _$state_) ->
$controller = _$controller_
$httpBac... | true | describe 'ResetController', ->
beforeEach module 'guclinkAuth'
$controller = null
$httpBackend = null
$rootScope = null
$state = null
stateParams = {id: 1, token: 'PI:KEY:<KEY>END_PI'}
url = null
beforeEach inject (_$controller_, _$httpBackend_, _$rootScope_, _$state_) ->
$controller = _$controller_... |
[
{
"context": "st err\n\t\t\tdata.patientVorname.value.should.equal 'Maria'\n\t\t\tdata.patientName.value.should.equal 'Musterfr",
"end": 575,
"score": 0.9997596740722656,
"start": 570,
"tag": "NAME",
"value": "Maria"
},
{
"context": "l 'Maria'\n\t\t\tdata.patientName.value.should.equ... | test/reader.test.coffee | unclegago/test | 0 | global.should = require('chai').should()
dv = require 'dv'
fs = require 'fs'
FormReader = require '../src/form_reader'
describe 'FormReader', ->
contentImage = null
it 'should read M10', (done) ->
imagePath = '/data/m10-content.png'
schemaPath = '/data/m10-schema.json'
formReader = new FormReader 'deu'
for... | 8209 | global.should = require('chai').should()
dv = require 'dv'
fs = require 'fs'
FormReader = require '../src/form_reader'
describe 'FormReader', ->
contentImage = null
it 'should read M10', (done) ->
imagePath = '/data/m10-content.png'
schemaPath = '/data/m10-schema.json'
formReader = new FormReader 'deu'
for... | true | global.should = require('chai').should()
dv = require 'dv'
fs = require 'fs'
FormReader = require '../src/form_reader'
describe 'FormReader', ->
contentImage = null
it 'should read M10', (done) ->
imagePath = '/data/m10-content.png'
schemaPath = '/data/m10-schema.json'
formReader = new FormReader 'deu'
for... |
[
{
"context": ")\n\n browser = new Browser()\n\n spreadsheetKey = '43289432'\n\n browser.visit(\n helpers.appurl('/admin')\n ",
"end": 731,
"score": 0.99953293800354,
"start": 723,
"tag": "KEY",
"value": "43289432"
}
] | server/test/acceptance/indicator_admin.coffee | unepwcmc/NRT | 0 | assert = require('chai').assert
helpers = require '../helpers'
request = require('request')
url = require('url')
Promise = require('bluebird')
sinon = require("sinon")
Indicator = require('../../models/indicator').model
GDocIndicatorImporter = require('../../lib/gdoc_indicator_importer')
suite('Indicator Admin')
tes... | 189725 | assert = require('chai').assert
helpers = require '../helpers'
request = require('request')
url = require('url')
Promise = require('bluebird')
sinon = require("sinon")
Indicator = require('../../models/indicator').model
GDocIndicatorImporter = require('../../lib/gdoc_indicator_importer')
suite('Indicator Admin')
tes... | true | assert = require('chai').assert
helpers = require '../helpers'
request = require('request')
url = require('url')
Promise = require('bluebird')
sinon = require("sinon")
Indicator = require('../../models/indicator').model
GDocIndicatorImporter = require('../../lib/gdoc_indicator_importer')
suite('Indicator Admin')
tes... |
[
{
"context": "# @usage SceneTraveler.to( new Scene() )\n# @author David Ronai / Makiopolis.com / @Makio64\n#\n\nclass SceneTravele",
"end": 99,
"score": 0.9998651146888733,
"start": 88,
"tag": "NAME",
"value": "David Ronai"
},
{
"context": "Traveler.to( new Scene() )\n# @author David... | test/src/coffee/core/scenes/SceneTraveler.coffee | Makio64/christmasxp2015 | 65 | #
# Manage transition betweenScene
#
# @usage SceneTraveler.to( new Scene() )
# @author David Ronai / Makiopolis.com / @Makio64
#
class SceneTraveler
@currentScene = null
@nextScene = null
@isInit = false
@isModule = true
@init = ()=>
@isInit = true
return
@to = (scene)=>
@nextScene = scene
if @c... | 38652 | #
# Manage transition betweenScene
#
# @usage SceneTraveler.to( new Scene() )
# @author <NAME> / <EMAIL> / @Makio64
#
class SceneTraveler
@currentScene = null
@nextScene = null
@isInit = false
@isModule = true
@init = ()=>
@isInit = true
return
@to = (scene)=>
@nextScene = scene
if @currentScene
... | true | #
# Manage transition betweenScene
#
# @usage SceneTraveler.to( new Scene() )
# @author PI:NAME:<NAME>END_PI / PI:EMAIL:<EMAIL>END_PI / @Makio64
#
class SceneTraveler
@currentScene = null
@nextScene = null
@isInit = false
@isModule = true
@init = ()=>
@isInit = true
return
@to = (scene)=>
@nextScen... |
[
{
"context": "hods:\n # @example\n # authenticated name: \"Lance\", password: \"Pollard\", only: \"search\"\n authent",
"end": 107,
"score": 0.9983274936676025,
"start": 102,
"tag": "NAME",
"value": "Lance"
},
{
"context": "e\n # authenticated name: \"Lance\", passwor... | node_modules/tower/packages/tower-controller/shared/authentication.coffee | MagicPower2/Power | 1 | # @mixin
Tower.ControllerAuthentication =
ClassMethods:
# @example
# authenticated name: "Lance", password: "Pollard", only: "search"
authenticated: (options = {}) ->
| 7233 | # @mixin
Tower.ControllerAuthentication =
ClassMethods:
# @example
# authenticated name: "<NAME>", password: "<PASSWORD>", only: "search"
authenticated: (options = {}) ->
| true | # @mixin
Tower.ControllerAuthentication =
ClassMethods:
# @example
# authenticated name: "PI:NAME:<NAME>END_PI", password: "PI:PASSWORD:<PASSWORD>END_PI", only: "search"
authenticated: (options = {}) ->
|
[
{
"context": "Text: (pairText, direction) ->\n # e.g. E10-Pyle-Bleemer\n [identifier, lastNameOne, lastNam",
"end": 124,
"score": 0.8531714677810669,
"start": 120,
"tag": "NAME",
"value": "Pyle"
},
{
"context": " (pairText, direction) ->\n # e.g. E10-Pyle-Bleemer... | dist/gae/scripts/recap.coffee | weisongye/saycbridge | 16 | class BoardResultParser
constructor: (@pairList) ->
_pairFromText: (pairText, direction) ->
# e.g. E10-Pyle-Bleemer
[identifier, lastNameOne, lastNameTwo] = pairText.split('-')
section = identifier[0]
if section in '123456789'
# If the first letter of the id... | 22995 | class BoardResultParser
constructor: (@pairList) ->
_pairFromText: (pairText, direction) ->
# e.g. E10-<NAME>-<NAME>
[identifier, lastNameOne, lastNameTwo] = pairText.split('-')
section = identifier[0]
if section in '123456789'
# If the first letter of the i... | true | class BoardResultParser
constructor: (@pairList) ->
_pairFromText: (pairText, direction) ->
# e.g. E10-PI:NAME:<NAME>END_PI-PI:NAME:<NAME>END_PI
[identifier, lastNameOne, lastNameTwo] = pairText.split('-')
section = identifier[0]
if section in '123456789'
# ... |
[
{
"context": "module.exports = [\n [\n \"What did Dr John Simmons from the Heritage Coast Centre look like?\"\n \"T",
"end": 52,
"score": 0.9976857304573059,
"start": 40,
"tag": "NAME",
"value": "John Simmons"
},
{
"context": "nd thin with a happy smile\"\n ]\n [\n \"Wher... | src/documents/games/quiz/book2hard.js.coffee | davidxmoody/professorp.co.uk | 2 | module.exports = [
[
"What did Dr John Simmons from the Heritage Coast Centre look like?"
"Tall and thin with a serious expression"
"Short and fat with a jolly expression"
"Tall and thin with a happy smile"
]
[
"Where did Peter and Tara first meet Dr John Simmons?"
"At their school when he... | 4772 | module.exports = [
[
"What did Dr <NAME> from the Heritage Coast Centre look like?"
"Tall and thin with a serious expression"
"Short and fat with a jolly expression"
"Tall and thin with a happy smile"
]
[
"Where did <NAME> and <NAME> first meet Dr <NAME>?"
"At their school when he gave a t... | true | module.exports = [
[
"What did Dr PI:NAME:<NAME>END_PI from the Heritage Coast Centre look like?"
"Tall and thin with a serious expression"
"Short and fat with a jolly expression"
"Tall and thin with a happy smile"
]
[
"Where did PI:NAME:<NAME>END_PI and PI:NAME:<NAME>END_PI first meet Dr PI:N... |
[
{
"context": "# Copyright (C) 2017 Alexandre Pielucha & Marie Perin\n#\n# Permission to use, copy, modify",
"end": 39,
"score": 0.999851644039154,
"start": 21,
"tag": "NAME",
"value": "Alexandre Pielucha"
},
{
"context": "# Copyright (C) 2017 Alexandre Pielucha & Marie Perin\n#\n# Pe... | src/http/routes.coffee | Riemannn/AST_Final_Project | 0 | # Copyright (C) 2017 Alexandre Pielucha & Marie Perin
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... | 162185 | # Copyright (C) 2017 <NAME> & <NAME>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL... | true | # Copyright (C) 2017 PI:NAME:<NAME>END_PI & PI:NAME:<NAME>END_PI
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" ... |
[
{
"context": "d('#fields h2').text()\n test.assert 'footer', 'by Nicholas Hwang'\n\n# Start\n do test.run\n",
"end": 349,
"score": 0.9998956918716431,
"start": 335,
"tag": "NAME",
"value": "Nicholas Hwang"
}
] | src/frontend/js/integrate/integrate.coffee | geekjuice/StahkPhotos | 8 | ###
Integrate
###
$ ->
test = new TestBuilder
test.visit '/'
test.assert 'h1', 'Stahk Photos'
test.assert '#image p', 'Image provided by'
test.assert ($page) ->
/Image response/.test $page.find('#debug h2').text()
test.assert ($page) ->
/Endpoint/.test $page.find('#fields h2').text()
test.assert... | 208494 | ###
Integrate
###
$ ->
test = new TestBuilder
test.visit '/'
test.assert 'h1', 'Stahk Photos'
test.assert '#image p', 'Image provided by'
test.assert ($page) ->
/Image response/.test $page.find('#debug h2').text()
test.assert ($page) ->
/Endpoint/.test $page.find('#fields h2').text()
test.assert... | true | ###
Integrate
###
$ ->
test = new TestBuilder
test.visit '/'
test.assert 'h1', 'Stahk Photos'
test.assert '#image p', 'Image provided by'
test.assert ($page) ->
/Image response/.test $page.find('#debug h2').text()
test.assert ($page) ->
/Endpoint/.test $page.find('#fields h2').text()
test.assert... |
[
{
"context": "ge['purpleUserId']\n token: localStorage['purpleToken']\n os: Ext.os.name # just an additional ",
"end": 4416,
"score": 0.6772675514221191,
"start": 4405,
"tag": "KEY",
"value": "purpleToken"
},
{
"context": "VERSION_NUMBER\n user_id: localS... | src/app/controller/PaymentMethods.coffee | Purple-Services/app | 2 | Ext.define 'Purple.controller.PaymentMethods',
extend: 'Ext.app.Controller'
requires: [
'Purple.view.EditPaymentMethodForm'
]
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
accountTabContainer: '#accountTabContainer'
accountForm: 'accountform'
request... | 222003 | Ext.define 'Purple.controller.PaymentMethods',
extend: 'Ext.app.Controller'
requires: [
'Purple.view.EditPaymentMethodForm'
]
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
accountTabContainer: '#accountTabContainer'
accountForm: 'accountform'
request... | true | Ext.define 'Purple.controller.PaymentMethods',
extend: 'Ext.app.Controller'
requires: [
'Purple.view.EditPaymentMethodForm'
]
config:
refs:
mainContainer: 'maincontainer'
topToolbar: 'toptoolbar'
accountTabContainer: '#accountTabContainer'
accountForm: 'accountform'
request... |
[
{
"context": " for obj,index in objects_falling\n key = 'obj_fall_' + index\n @objects[index] = key\n @load.ima",
"end": 912,
"score": 0.8789592981338501,
"start": 900,
"tag": "KEY",
"value": "obj_fall_' +"
}
] | Projects/Games/PhaserProject/source/states/play-state.coffee | carloshpds/MyOmakase | 0 | "use strict"
# ======================================
# Imports
# ======================================
TimerCount = require '../game-objects/timer'
Score = require '../game-objects/score'
ObjectFall = require '../game-objects/object-fall'
TiledGround = require '../game-objects/tiled-ground'
Player = req... | 62545 | "use strict"
# ======================================
# Imports
# ======================================
TimerCount = require '../game-objects/timer'
Score = require '../game-objects/score'
ObjectFall = require '../game-objects/object-fall'
TiledGround = require '../game-objects/tiled-ground'
Player = req... | true | "use strict"
# ======================================
# Imports
# ======================================
TimerCount = require '../game-objects/timer'
Score = require '../game-objects/score'
ObjectFall = require '../game-objects/object-fall'
TiledGround = require '../game-objects/tiled-ground'
Player = req... |
[
{
"context": "ataBrowserSettings\n\n LABEL_PROPERTIES_KEY : 'databrowser.labelProperties'\n LABEL_PROPERTIES_DEFAULT : ['name']\n ",
"end": 180,
"score": 0.7051502466201782,
"start": 153,
"tag": "KEY",
"value": "databrowser.labelProperties"
},
{
"context": "FAULT : ['n... | community/server/src/main/coffeescript/neo4j/webadmin/modules/databrowser/DataBrowserSettings.coffee | rebaze/neo4j | 1 |
define(
['./visualization/models/VisualizationProfiles'],
(VisualizationProfiles) ->
class DataBrowserSettings
LABEL_PROPERTIES_KEY : 'databrowser.labelProperties'
LABEL_PROPERTIES_DEFAULT : ['name']
VIZ_PROFILES_KEY : 'databrowser.visualization.profiles'
VIZ_PROFILES_DEFAULT ... | 42795 |
define(
['./visualization/models/VisualizationProfiles'],
(VisualizationProfiles) ->
class DataBrowserSettings
LABEL_PROPERTIES_KEY : '<KEY>'
LABEL_PROPERTIES_DEFAULT : ['name']
VIZ_PROFILES_KEY : '<KEY>'
VIZ_PROFILES_DEFAULT : [{ id:0, name:"Default profile", builtin:true }]
... | true |
define(
['./visualization/models/VisualizationProfiles'],
(VisualizationProfiles) ->
class DataBrowserSettings
LABEL_PROPERTIES_KEY : 'PI:KEY:<KEY>END_PI'
LABEL_PROPERTIES_DEFAULT : ['name']
VIZ_PROFILES_KEY : 'PI:KEY:<KEY>END_PI'
VIZ_PROFILES_DEFAULT : [{ id:0, name:"Default ... |
[
{
"context": "##############################################\n#\n# Markus 1/23/2017\n#\n#####################################",
"end": 75,
"score": 0.9984774589538574,
"start": 69,
"tag": "NAME",
"value": "Markus"
}
] | server/methods/solution.coffee | MooqitaSFH/worklearn | 0 | ################################################################
#
# Markus 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_solution: (challenge_id) ->
user = Meteor.user()
if not user._id
throw new Meteor.Error('No... | 33817 | ################################################################
#
# <NAME> 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_solution: (challenge_id) ->
user = Meteor.user()
if not user._id
throw new Meteor.Error('No... | true | ################################################################
#
# PI:NAME:<NAME>END_PI 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_solution: (challenge_id) ->
user = Meteor.user()
if not user._id
throw new Me... |
[
{
"context": "plot: many boxplots linked to histogram for each\n# Karl W Broman\n\nHTMLWidgets.widget({\n\n name: \"iboxplot\",\n ",
"end": 70,
"score": 0.9998917579650879,
"start": 57,
"tag": "NAME",
"value": "Karl W Broman"
},
{
"context": "ts\")\n {x: null}\n\n ## ... | inst/htmlwidgets/iboxplot.coffee | Alanocallaghan/qtlcharts | 0 | # iboxplot: many boxplots linked to histogram for each
# Karl W Broman
HTMLWidgets.widget({
name: "iboxplot",
type: "output",
initialize: (widgetdiv, width, height) ->
d3.select(widgetdiv).append("svg")
.attr("width", width)
.attr("height", height)
.attr("class", "qt... | 212143 | # iboxplot: many boxplots linked to histogram for each
# <NAME>
HTMLWidgets.widget({
name: "iboxplot",
type: "output",
initialize: (widgetdiv, width, height) ->
d3.select(widgetdiv).append("svg")
.attr("width", width)
.attr("height", height)
.attr("class", "qtlcharts... | true | # iboxplot: many boxplots linked to histogram for each
# PI:NAME:<NAME>END_PI
HTMLWidgets.widget({
name: "iboxplot",
type: "output",
initialize: (widgetdiv, width, height) ->
d3.select(widgetdiv).append("svg")
.attr("width", width)
.attr("height", height)
.attr("clas... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991191029548645,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-stream2-pipe-error-once-listener.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... | 75952 | # 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": "goose parent', ->\n emb = new Embedded name: 'Foo'\n expect(emb.parent).to.be.undefined\n\n it",
"end": 1031,
"score": 0.8467369675636292,
"start": 1028,
"tag": "NAME",
"value": "Foo"
},
{
"context": " 'sets model', ->\n emb = new Embedded name: 'Foo'\... | test/plugin.test.coffee | goodeggs/mongoose-embedded-document | 1 | fibrous = require 'fibrous'
require 'mocha-sinon'
expect = require('chai').expect
mongoose = require 'mongoose'
embeddedDoc = require '..'
mongoose.connect('mongodb://localhost/mongoose_embedded_document')
embeddedSchema = new mongoose.Schema name: String
embeddedSchema.method
toJSON: (options = {}) ->
result ... | 62525 | fibrous = require 'fibrous'
require 'mocha-sinon'
expect = require('chai').expect
mongoose = require 'mongoose'
embeddedDoc = require '..'
mongoose.connect('mongodb://localhost/mongoose_embedded_document')
embeddedSchema = new mongoose.Schema name: String
embeddedSchema.method
toJSON: (options = {}) ->
result ... | true | fibrous = require 'fibrous'
require 'mocha-sinon'
expect = require('chai').expect
mongoose = require 'mongoose'
embeddedDoc = require '..'
mongoose.connect('mongodb://localhost/mongoose_embedded_document')
embeddedSchema = new mongoose.Schema name: String
embeddedSchema.method
toJSON: (options = {}) ->
result ... |
[
{
"context": "1'}, ːamount}\n\t\t\tu = undefined\n\t\t\tdata1 = [\n\t\t\t\t['Elaine Benes', 34, 3, 'Guest', 3, 3, 11, u, u, u, '1993-02-03'",
"end": 2698,
"score": 0.9998811483383179,
"start": 2686,
"tag": "NAME",
"value": "Elaine Benes"
},
{
"context": "3, 3, 11, u, u, u, '1993-02-0... | src/test__sql.coffee | Cottin/popsiql | 0 | {F, T, join, keys, length, project, type, where} = R = require 'ramda' # auto_require: ramda
{doto, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ː00ː00, ːamount, ːid, ːtype, ːposition, ːdate, ːname, ːALL, ːid〳COUNT, ːtext, ːsalary, ːage, ːsex, ːsalary〳SUM] = ['0000', 'amount', 'id', 'type', 'posit... | 123215 | {F, T, join, keys, length, project, type, where} = R = require 'ramda' # auto_require: ramda
{doto, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ː00ː00, ːamount, ːid, ːtype, ːposition, ːdate, ːname, ːALL, ːid〳COUNT, ːtext, ːsalary, ːage, ːsex, ːsalary〳SUM] = ['0000', 'amount', 'id', 'type', 'posit... | true | {F, T, join, keys, length, project, type, where} = R = require 'ramda' # auto_require: ramda
{doto, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ː00ː00, ːamount, ːid, ːtype, ːposition, ːdate, ːname, ːALL, ːid〳COUNT, ːtext, ːsalary, ːage, ːsex, ːsalary〳SUM] = ['0000', 'amount', 'id', 'type', 'posit... |
[
{
"context": "ache v 2.0 #\n# @Author: Ben Mz #\n# @Email: 0x42",
"end": 443,
"score": 0.9978237152099609,
"start": 437,
"tag": "NAME",
"value": "Ben Mz"
},
{
"context": "Mz #\n# @Email: 0x42... | src/ioserver.coffee | x42en/IOServer | 0 | ####################################################
# IOServer - v1.2.8 #
# #
# Damn simple socket.io server #
####################################################
# - Copyright 2020 - #
# ... | 40690 | ####################################################
# IOServer - v1.2.8 #
# #
# Damn simple socket.io server #
####################################################
# - Copyright 2020 - #
# ... | true | ####################################################
# IOServer - v1.2.8 #
# #
# Damn simple socket.io server #
####################################################
# - Copyright 2020 - #
# ... |
[
{
"context": " path: '/openapi.do?keyfrom=atom-trans-en-zh&key=769450225&type=data&doctype=json&version=1.1&q='+lookup\n ",
"end": 6249,
"score": 0.9995375871658325,
"start": 6240,
"tag": "KEY",
"value": "769450225"
}
] | lib/m-trans.coffee | Snownee/m-trans | 7 | http = require 'http'
$ = require 'jquery'
path = require 'path'
AddDialog = require './add-dialog'
MTransView = require './m-trans-view'
MTransFormatter = require './format'
{CompositeDisposable} = require 'atom'
HTMLsanitize = (str) ->
return str.replace('&', '&').replace('<', '<').replace('>', '>')
no... | 213441 | http = require 'http'
$ = require 'jquery'
path = require 'path'
AddDialog = require './add-dialog'
MTransView = require './m-trans-view'
MTransFormatter = require './format'
{CompositeDisposable} = require 'atom'
HTMLsanitize = (str) ->
return str.replace('&', '&').replace('<', '<').replace('>', '>')
no... | true | http = require 'http'
$ = require 'jquery'
path = require 'path'
AddDialog = require './add-dialog'
MTransView = require './m-trans-view'
MTransFormatter = require './format'
{CompositeDisposable} = require 'atom'
HTMLsanitize = (str) ->
return str.replace('&', '&').replace('<', '<').replace('>', '>')
no... |
[
{
"context": ">\n @stopped = true\n\n\n\n# requestAnimationShim by Paul Irish\n# http://paulirish.com/2011/requestanimationframe",
"end": 1734,
"score": 0.9863734245300293,
"start": 1724,
"tag": "NAME",
"value": "Paul Irish"
}
] | src/engine.coffee | andrewberls/kona | 4 | # The engine is responsible for starting and running the main game loop.
Kona.Engine =
# Only used for requestAnimFrame fallback
defaultFPS: 24
running: false
stopped: false
# Internal: Queue of callbacks to invoke once the engine starts
_queue: []
# Public: Add a function to the startup queue
#
... | 124089 | # The engine is responsible for starting and running the main game loop.
Kona.Engine =
# Only used for requestAnimFrame fallback
defaultFPS: 24
running: false
stopped: false
# Internal: Queue of callbacks to invoke once the engine starts
_queue: []
# Public: Add a function to the startup queue
#
... | true | # The engine is responsible for starting and running the main game loop.
Kona.Engine =
# Only used for requestAnimFrame fallback
defaultFPS: 24
running: false
stopped: false
# Internal: Queue of callbacks to invoke once the engine starts
_queue: []
# Public: Add a function to the startup queue
#
... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9972081780433655,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "Reply()\n return\n\n server.listen common.PORT, \"127.0.0.1\"\nelse if cluster.isMaster\n ... | test/simple/test-cluster-message.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... | 150065 | # 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": " hand hesitates, just a moment, before knocking on Mrs. Brown's door. You have the answers\n she wanted, bu",
"end": 301,
"score": 0.9957075715065002,
"start": 291,
"tag": "NAME",
"value": "Mrs. Brown"
},
{
"context": " that's what you're here to do, at long last,... | src/coffee/game/ending.coffee | arashikou/exper3-2015 | 0 | angular.module 'gameDefinition.endingStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'solve1',
'A cold day'
'''
Your hand hesitates, just a moment, before knocking on Mrs. Brown's door. You have t... | 188700 | angular.module 'gameDefinition.endingStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'solve1',
'A cold day'
'''
Your hand hesitates, just a moment, before knocking on <NAME>'s door. You have the a... | true | angular.module 'gameDefinition.endingStories', ['qbn.edsl', 'gameDefinition.enums']
.run (qbnEdsl, enums) ->
{storylet, choice, reqs, consq} = qbnEdsl
{leads} = enums
storylet 'solve1',
'A cold day'
'''
Your hand hesitates, just a moment, before knocking on PI:NAME:<NAME>END_PI's door. ... |
[
{
"context": "warn` by default.\n \"\"\"\n\n tokens: [ \"DEBUGGER\" ]\n\n lintToken : (token, tokenApi) ->\n ",
"end": 322,
"score": 0.9580948352813721,
"start": 314,
"tag": "KEY",
"value": "DEBUGGER"
}
] | node_modules/coffeelint/src/rules/no_debugger.coffee | buruno/site-cra | 1 |
module.exports = class NoDebugger
rule:
name: 'no_debugger'
level : 'warn'
message : 'Debugger statements will cause warnings'
description: """
This rule detects the `debugger` statement.
This rule is `warn` by default.
"""
tokens: [ "DEBUGG... | 120231 |
module.exports = class NoDebugger
rule:
name: 'no_debugger'
level : 'warn'
message : 'Debugger statements will cause warnings'
description: """
This rule detects the `debugger` statement.
This rule is `warn` by default.
"""
tokens: [ "<KEY>"... | true |
module.exports = class NoDebugger
rule:
name: 'no_debugger'
level : 'warn'
message : 'Debugger statements will cause warnings'
description: """
This rule detects the `debugger` statement.
This rule is `warn` by default.
"""
tokens: [ "PI:KEY... |
[
{
"context": "# iplot: interactive scatterplot\n# Karl W Broman\n\niplot = (data, chartOpts) ->\n\n # chartOpts st",
"end": 48,
"score": 0.9998618960380554,
"start": 35,
"tag": "NAME",
"value": "Karl W Broman"
}
] | inst/charts/iplot.coffee | FourchettesDeInterActive/qtlcharts | 0 | # iplot: interactive scatterplot
# Karl W Broman
iplot = (data, chartOpts) ->
# chartOpts start
height = chartOpts?.height ? 500 # height of chart in pixels
width = chartOpts?.width ? 800 # width of chart in pixels
title = chartOpts?.title ? "" # title for chart
margin = chartOpts?.margin ? {left:... | 116449 | # iplot: interactive scatterplot
# <NAME>
iplot = (data, chartOpts) ->
# chartOpts start
height = chartOpts?.height ? 500 # height of chart in pixels
width = chartOpts?.width ? 800 # width of chart in pixels
title = chartOpts?.title ? "" # title for chart
margin = chartOpts?.margin ? {left:60, top... | true | # iplot: interactive scatterplot
# PI:NAME:<NAME>END_PI
iplot = (data, chartOpts) ->
# chartOpts start
height = chartOpts?.height ? 500 # height of chart in pixels
width = chartOpts?.width ? 800 # width of chart in pixels
title = chartOpts?.title ? "" # title for chart
margin = chartOpts?.margin ?... |
[
{
"context": "f the tail on the rump.\n '''\n\n scientificName: 'Kobus ellipsiprymnus'\n mainImage: 'assets/fieldguide-content/mammals/",
"end": 498,
"score": 0.8695106506347656,
"start": 478,
"tag": "NAME",
"value": "Kobus ellipsiprymnus"
}
] | app/lib/field-guide-content/waterbuck.coffee | zooniverse/wildcam-gorongosa-facebook | 7 | module.exports =
description: '''
The waterbuck is a large, robust antelope. They have a shaggy, coarse, reddish-brown to brown-gray coat, which emits an oily secretion thought to be for waterproofing. They have large, rounded ears and white patches above the eyes, around the nose and mouth, and on the throat. A ... | 204743 | module.exports =
description: '''
The waterbuck is a large, robust antelope. They have a shaggy, coarse, reddish-brown to brown-gray coat, which emits an oily secretion thought to be for waterproofing. They have large, rounded ears and white patches above the eyes, around the nose and mouth, and on the throat. A ... | true | module.exports =
description: '''
The waterbuck is a large, robust antelope. They have a shaggy, coarse, reddish-brown to brown-gray coat, which emits an oily secretion thought to be for waterproofing. They have large, rounded ears and white patches above the eyes, around the nose and mouth, and on the throat. A ... |
[
{
"context": " with a valid urn\", (done) ->\n data = {login: userUrn, password: userUrn}\n hActor.send = (hMessage",
"end": 2389,
"score": 0.9871541857719421,
"start": 2382,
"tag": "USERNAME",
"value": "userUrn"
},
{
"context": " (done) ->\n data = {login: userUrn, pa... | test/socketio_connector.coffee | fredpottier/hubiquitus | 2 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * 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 li... | 5728 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * 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 li... | true | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * 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 li... |
[
{
"context": "#\n# Copyright 2014 Carsten Klein\n#\n# Licensed under the Apache License, Version 2.",
"end": 32,
"score": 0.9998570680618286,
"start": 19,
"tag": "NAME",
"value": "Carsten Klein"
},
{
"context": "s : dynclass\n\n name : 'testclass'\n\n ... | test/dynclass-test.coffee | vibejs/vibejs-dynclass | 0 | #
# Copyright 2014 Carsten Klein
#
# 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 writ... | 66852 | #
# Copyright 2014 <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, so... | true | #
# Copyright 2014 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 ... |
[
{
"context": "###\n Copyright 2013 (c) Javi Jiménez Villar <@soyjavi> <javi@tapquo.com>\n Licensed under the",
"end": 44,
"score": 0.9998814463615417,
"start": 25,
"tag": "NAME",
"value": "Javi Jiménez Villar"
},
{
"context": "###\n Copyright 2013 (c) Javi Jiménez Villar <@soyjavi... | src/hope.coffee | hicom150/hope | 0 | ###
Copyright 2013 (c) Javi Jiménez Villar <@soyjavi> <javi@tapquo.com>
Licensed under the MIT License.
https://github.com/soyjavi/hope
###
((exports) ->
###
Promise object onto which callbacks can be attached.
@method Promise
###
Promise = ->
@_callbacks = []
@
###
Executes a bunch of... | 135720 | ###
Copyright 2013 (c) <NAME> <@soyjavi> <<EMAIL>>
Licensed under the MIT License.
https://github.com/soyjavi/hope
###
((exports) ->
###
Promise object onto which callbacks can be attached.
@method Promise
###
Promise = ->
@_callbacks = []
@
###
Executes a bunch of asynchronous tasks t... | true | ###
Copyright 2013 (c) PI:NAME:<NAME>END_PI <@soyjavi> <PI:EMAIL:<EMAIL>END_PI>
Licensed under the MIT License.
https://github.com/soyjavi/hope
###
((exports) ->
###
Promise object onto which callbacks can be attached.
@method Promise
###
Promise = ->
@_callbacks = []
@
###
Executes a ... |
[
{
"context": "ing', ->\n expect(_.valSub('hello #value', 'Dave')).toBe 'hello Dave'\n\n it 'should replace #val",
"end": 1416,
"score": 0.9323040246963501,
"start": 1412,
"tag": "NAME",
"value": "Dave"
},
{
"context": "pect(_.valSub('hello #value', 'Dave')).toBe 'hello Dave... | cyclotron-site/test/unit/mixins-valsub-spec.coffee | smartcommunitylab/cyclotron | 1 | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law... | 1501 | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law... | true | ###
# Copyright (c) 2013-2015 the original author or authors.
#
# Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
#
# Unless required by applicable law... |
[
{
"context": ".path\n font.idx = 12\n text = \"Jack jumped over the lazy fox\"\n #....................",
"end": 3828,
"score": 0.9996355772018433,
"start": 3824,
"tag": "NAME",
"value": "Jack"
}
] | dev/glyphshapes-and-typesetting-with-harfbuzz/src/basics.test.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... | 176987 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... |
[
{
"context": "r the 'Ajax' interface\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\nclass JSONP\n\n #\n # Basic constructor\n #\n # ",
"end": 87,
"score": 0.9998884201049805,
"start": 70,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/ajax/src/jsonp.coffee | lovely-io/lovely.io-stl | 2 | #
# JSONP tunnel for the 'Ajax' interface
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
class JSONP
#
# Basic constructor
#
# @param {Ajax} original request
#
constructor: (ajax) ->
@ajax = ajax
@name = '__lovely_jsonp' + new Date().getTime()
@param = ajax.options.jsonp
@param = 'callba... | 127366 | #
# JSONP tunnel for the 'Ajax' interface
#
# Copyright (C) 2011-2012 <NAME>
#
class JSONP
#
# Basic constructor
#
# @param {Ajax} original request
#
constructor: (ajax) ->
@ajax = ajax
@name = '__lovely_jsonp' + new Date().getTime()
@param = ajax.options.jsonp
@param = 'callback' if type... | true | #
# JSONP tunnel for the 'Ajax' interface
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
class JSONP
#
# Basic constructor
#
# @param {Ajax} original request
#
constructor: (ajax) ->
@ajax = ajax
@name = '__lovely_jsonp' + new Date().getTime()
@param = ajax.options.jsonp
@param = 'cal... |
[
{
"context": "###\nAuthor: Andy Ching\nEmail: dogdoglization@gmail.com\nLicense: MIT\n###\n\n",
"end": 22,
"score": 0.9921887516975403,
"start": 12,
"tag": "NAME",
"value": "Andy Ching"
},
{
"context": "###\nAuthor: Andy Ching\nEmail: dogdoglization@gmail.com\nLicense: MIT\n###\n\nem... | module/db.coffee | dogdoglization/node-jsso-server | 0 | ###
Author: Andy Ching
Email: dogdoglization@gmail.com
License: MIT
###
emptyFunction = require './empty-function.js'
ost = require './object-string-transfer.js'
#function to deeply clone js object
cloneObject = (obj) ->
return obj if obj is null or typeof obj isnt "object"
newObj = obj.constructor()
for k, v of o... | 202543 | ###
Author: <NAME>
Email: <EMAIL>
License: MIT
###
emptyFunction = require './empty-function.js'
ost = require './object-string-transfer.js'
#function to deeply clone js object
cloneObject = (obj) ->
return obj if obj is null or typeof obj isnt "object"
newObj = obj.constructor()
for k, v of obj
newObj[k] = clon... | true | ###
Author: PI:NAME:<NAME>END_PI
Email: PI:EMAIL:<EMAIL>END_PI
License: MIT
###
emptyFunction = require './empty-function.js'
ost = require './object-string-transfer.js'
#function to deeply clone js object
cloneObject = (obj) ->
return obj if obj is null or typeof obj isnt "object"
newObj = obj.constructor()
for k... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9958450794219971,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/programBubbles.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
# Inline display of colorKeyBubble for each program, sorted alph. by name
Imm = require 'immutable'
load = (win) ->
... | 70857 | # 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
# Inline display of colorKeyBubble for each program, sorted alph. by name
Imm = require 'immutable'
load = (win) ->
... | 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
# Inline display of colorKeyBubble for each program, sorted alph. by name
Imm = require 'immutable'
lo... |
[
{
"context": " 'Epic Fail!'\n promise = model.save 'name', 'Eugene'\n promise.catch catchSpy = sinon.spy()\n\n ",
"end": 1110,
"score": 0.9997944235801697,
"start": 1104,
"tag": "NAME",
"value": "Eugene"
}
] | models/base/model.spec.coffee | kpunith8/gringotts | 0 | import helper from '../../lib/mixin-helper'
import ActiveSyncMachine from '../../mixins/models/active-sync-machine'
import SafeSyncCallback from '../../mixins/models/safe-sync-callback'
import ErrorHandled from '../../mixins/models/error-handled'
import Abortable from '../../mixins/models/abortable'
import WithHeaders ... | 133500 | import helper from '../../lib/mixin-helper'
import ActiveSyncMachine from '../../mixins/models/active-sync-machine'
import SafeSyncCallback from '../../mixins/models/safe-sync-callback'
import ErrorHandled from '../../mixins/models/error-handled'
import Abortable from '../../mixins/models/abortable'
import WithHeaders ... | true | import helper from '../../lib/mixin-helper'
import ActiveSyncMachine from '../../mixins/models/active-sync-machine'
import SafeSyncCallback from '../../mixins/models/safe-sync-callback'
import ErrorHandled from '../../mixins/models/error-handled'
import Abortable from '../../mixins/models/abortable'
import WithHeaders ... |
[
{
"context": "ING)\n\n shortenURL: (url, callback) ->\n key = 'AIzaSyB46wUnmnZaPH9JkHlRizmsQw9W2SSx1x0'\n $.ajax\n url: \"https://www.googleapis.co",
"end": 5098,
"score": 0.9997290968894958,
"start": 5059,
"tag": "KEY",
"value": "AIzaSyB46wUnmnZaPH9JkHlRizmsQw9W2SSx1x0"
}
] | sources/shdr/App.coffee | BKcore/Shdr | 241 | class App
@UPDATE_ALL: 0
@UPDATE_ENTER: 1
@UPDATE_MANUAL: 2
@FRAGMENT: 0
@VERTEX: 1
constructor: (domEditor, domCanvas, conf={}) ->
# CUSTOM THREE.JS HACK
window.THREE_SHADER_OVERRIDE = true
@initBaseurl()
@documents = ['', '']
@marker = null
@viewer = null
@validator = null
... | 216453 | class App
@UPDATE_ALL: 0
@UPDATE_ENTER: 1
@UPDATE_MANUAL: 2
@FRAGMENT: 0
@VERTEX: 1
constructor: (domEditor, domCanvas, conf={}) ->
# CUSTOM THREE.JS HACK
window.THREE_SHADER_OVERRIDE = true
@initBaseurl()
@documents = ['', '']
@marker = null
@viewer = null
@validator = null
... | true | class App
@UPDATE_ALL: 0
@UPDATE_ENTER: 1
@UPDATE_MANUAL: 2
@FRAGMENT: 0
@VERTEX: 1
constructor: (domEditor, domCanvas, conf={}) ->
# CUSTOM THREE.JS HACK
window.THREE_SHADER_OVERRIDE = true
@initBaseurl()
@documents = ['', '']
@marker = null
@viewer = null
@validator = null
... |
[
{
"context": "e to guv=1, measuremedia=1, solveslow=10, web=3 by team+gridbot@thegrid.io\nparseScaleTo = (str) ->\n re = /Scale to (.*) by.",
"end": 2363,
"score": 0.9998657703399658,
"start": 2340,
"tag": "EMAIL",
"value": "team+gridbot@thegrid.io"
}
] | src/heroku.coffee | jonnor/gov | 15 | # guv - Scaling governor of cloud workers
# (c) 2015 The Grid
# guv may be freely distributed under the MIT license
debug = require('debug')('guv:heroku')
Heroku = require 'heroku-client'
child = require 'child_process'
async = require 'async'
statistics = require 'simple-statistics'
exports.dryrun = fals... | 2091 | # guv - Scaling governor of cloud workers
# (c) 2015 The Grid
# guv may be freely distributed under the MIT license
debug = require('debug')('guv:heroku')
Heroku = require 'heroku-client'
child = require 'child_process'
async = require 'async'
statistics = require 'simple-statistics'
exports.dryrun = fals... | true | # guv - Scaling governor of cloud workers
# (c) 2015 The Grid
# guv may be freely distributed under the MIT license
debug = require('debug')('guv:heroku')
Heroku = require 'heroku-client'
child = require 'child_process'
async = require 'async'
statistics = require 'simple-statistics'
exports.dryrun = fals... |
[
{
"context": "ID>', '<YOUR_SECRET_KEY>'\n\ncio.deleteCustomer '50b896ddc814556766000001', (err, res) ->\n\n if err?\n ",
"end": 128,
"score": 0.5335916876792908,
"start": 125,
"tag": "KEY",
"value": "896"
}
] | example/delete.coffee | Bizzby/customer.io | 1 | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.deleteCustomer '50b896ddc814556766000001', (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status code', res.statusCode
| 106067 | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.deleteCustomer '50b<KEY>ddc814556766000001', (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status code', res.statusCode
| true | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.deleteCustomer '50bPI:KEY:<KEY>END_PIddc814556766000001', (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status code', res.statusCode
|
[
{
"context": "e.gontawan.com/ranking_area.html\n #master_card['menseki'] = '面積'\n #master_rank['menseki'] = '北海道,岩手県,福島県",
"end": 1781,
"score": 0.6921486854553223,
"start": 1775,
"tag": "USERNAME",
"value": "enseki"
},
{
"context": " #master_card['menseki'] = '面積'\n #master_rank... | data.coffee | defunty/web-one-week | 0 | # https://www.maff.go.jp/j/tokei/kouhyou/sakumotu/
# https://www.e-stat.go.jp/stat-search/files?page=1&layout=datalist&toukei=00500215&tstat=000001013427&cycle=7&year=20180&month=0&tclass1=000001032287&tclass2=000001032927&tclass3=000001134463
# https://uub.jp/pdr/
# https://news.livedoor.com/article/detail/13320505/
#... | 186896 | # https://www.maff.go.jp/j/tokei/kouhyou/sakumotu/
# https://www.e-stat.go.jp/stat-search/files?page=1&layout=datalist&toukei=00500215&tstat=000001013427&cycle=7&year=20180&month=0&tclass1=000001032287&tclass2=000001032927&tclass3=000001134463
# https://uub.jp/pdr/
# https://news.livedoor.com/article/detail/13320505/
#... | true | # https://www.maff.go.jp/j/tokei/kouhyou/sakumotu/
# https://www.e-stat.go.jp/stat-search/files?page=1&layout=datalist&toukei=00500215&tstat=000001013427&cycle=7&year=20180&month=0&tclass1=000001032287&tclass2=000001032927&tclass3=000001134463
# https://uub.jp/pdr/
# https://news.livedoor.com/article/detail/13320505/
#... |
[
{
"context": "h:Describe*, autoscaling:Describe*\n#\n# Author:\n# Ethan J. Brown\n\nkey = process.env.HUBOT_AWS_ACCESS_KEY_ID\nsecret",
"end": 809,
"score": 0.999858021736145,
"start": 795,
"tag": "NAME",
"value": "Ethan J. Brown"
}
] | src/scripts/aws.coffee | Asquera/hubot-scripts | 1 | # Description:
# Queries for the status of AWS services
#
# Dependencies:
# "aws2js": "0.6.12"
# "underscore": "1.3.3"
# "moment": "1.6.2"
#
# Configuration:
# HUBOT_AWS_ACCESS_KEY_ID
# HUBOT_AWS_SECRET_ACCESS_KEY
# HUBOT_AWS_SQS_REGIONS
# HUBOT_AWS_EC2_REGIONS
#
# Commands:
# hubot sqs status - Retur... | 100416 | # Description:
# Queries for the status of AWS services
#
# Dependencies:
# "aws2js": "0.6.12"
# "underscore": "1.3.3"
# "moment": "1.6.2"
#
# Configuration:
# HUBOT_AWS_ACCESS_KEY_ID
# HUBOT_AWS_SECRET_ACCESS_KEY
# HUBOT_AWS_SQS_REGIONS
# HUBOT_AWS_EC2_REGIONS
#
# Commands:
# hubot sqs status - Retur... | true | # Description:
# Queries for the status of AWS services
#
# Dependencies:
# "aws2js": "0.6.12"
# "underscore": "1.3.3"
# "moment": "1.6.2"
#
# Configuration:
# HUBOT_AWS_ACCESS_KEY_ID
# HUBOT_AWS_SECRET_ACCESS_KEY
# HUBOT_AWS_SQS_REGIONS
# HUBOT_AWS_EC2_REGIONS
#
# Commands:
# hubot sqs status - Retur... |
[
{
"context": "eEach ->\n\t\t@callback = sinon.stub()\n\t\t@user_id = \"user-id-123\"\n\t\t@AuthenticationController =\n\t\t\tgetLogge",
"end": 271,
"score": 0.829191267490387,
"start": 267,
"tag": "USERNAME",
"value": "user"
},
{
"context": "h ->\n\t\t@callback = sinon.stub()\n\t\t@u... | test/UnitTests/coffee/History/HistoryControllerTests.coffee | HasanSanli/web-sharelatex | 0 | chai = require('chai')
chai.should()
sinon = require("sinon")
modulePath = "../../../../app/js/Features/History/HistoryController"
SandboxedModule = require('sandboxed-module')
describe "HistoryController", ->
beforeEach ->
@callback = sinon.stub()
@user_id = "user-id-123"
@AuthenticationController =
getLogg... | 196663 | chai = require('chai')
chai.should()
sinon = require("sinon")
modulePath = "../../../../app/js/Features/History/HistoryController"
SandboxedModule = require('sandboxed-module')
describe "HistoryController", ->
beforeEach ->
@callback = sinon.stub()
@user_id = "user-<PASSWORD>"
@AuthenticationController =
get... | true | chai = require('chai')
chai.should()
sinon = require("sinon")
modulePath = "../../../../app/js/Features/History/HistoryController"
SandboxedModule = require('sandboxed-module')
describe "HistoryController", ->
beforeEach ->
@callback = sinon.stub()
@user_id = "user-PI:PASSWORD:<PASSWORD>END_PI"
@AuthenticationC... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9982209205627441,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "# port before calling listen().\n #\n # FIXME(bnoordhuis) Doesn't work for pipe handles,... | lib/net.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... | 207857 | # 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": "he `RegExp` unit extensions\n#\n# Copyright (C) 2011 Nikolay Nemshilov\n#\n\n\n#\n# Escapes the string for safely use as a re",
"end": 73,
"score": 0.9998891353607178,
"start": 56,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/lang/src/regexp.coffee | lovely-io/lovely.io-stl | 2 | #
# The `RegExp` unit extensions
#
# Copyright (C) 2011 Nikolay Nemshilov
#
#
# Escapes the string for safely use as a regular expression
#
# @param {String} raw string
# @return {String} escaped string
#
RegExp.escape = (string)->
(''+string).replace(/([.*+?\^=!:${}()|\[\]\/\\])/g, '\\$1')
| 156612 | #
# The `RegExp` unit extensions
#
# Copyright (C) 2011 <NAME>
#
#
# Escapes the string for safely use as a regular expression
#
# @param {String} raw string
# @return {String} escaped string
#
RegExp.escape = (string)->
(''+string).replace(/([.*+?\^=!:${}()|\[\]\/\\])/g, '\\$1')
| true | #
# The `RegExp` unit extensions
#
# Copyright (C) 2011 PI:NAME:<NAME>END_PI
#
#
# Escapes the string for safely use as a regular expression
#
# @param {String} raw string
# @return {String} escaped string
#
RegExp.escape = (string)->
(''+string).replace(/([.*+?\^=!:${}()|\[\]\/\\])/g, '\\$1')
|
[
{
"context": "t-module__details__title a').text().should.equal 'Marcel Broodthaers: A Retrospective'\n @$('.artwork-highlight-mo",
"end": 1685,
"score": 0.9998181462287903,
"start": 1667,
"tag": "NAME",
"value": "Marcel Broodthaers"
}
] | apps/artwork/components/highlights/test/template.coffee | xtina-starr/microgravity | 0 | _ = require 'underscore'
jade = require 'jade'
cheerio = require 'cheerio'
path = require 'path'
fs = require 'fs'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
highlights = require './fixture.coffee'
render = (templateName) ->
filename = path.resolve __dirname, "../templates/#{templateName}.ja... | 63499 | _ = require 'underscore'
jade = require 'jade'
cheerio = require 'cheerio'
path = require 'path'
fs = require 'fs'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
highlights = require './fixture.coffee'
render = (templateName) ->
filename = path.resolve __dirname, "../templates/#{templateName}.ja... | true | _ = require 'underscore'
jade = require 'jade'
cheerio = require 'cheerio'
path = require 'path'
fs = require 'fs'
Backbone = require 'backbone'
{ fabricate } = require 'antigravity'
highlights = require './fixture.coffee'
render = (templateName) ->
filename = path.resolve __dirname, "../templates/#{templateName}.ja... |
[
{
"context": "oow',\n 'Yes',\n 'Oki Doki'\n ]\n\n enterReplies = [ 'Ain\\'t n",
"end": 158,
"score": 0.9434788227081299,
"start": 150,
"tag": "NAME",
"value": "Oki Doki"
}
] | example/src/salutation.coffee | victorock/hubot-coprhd | 0 | module.exports = (robot) ->
userReplies = [ 'Heey',
'Hmmm',
'Woow',
'Yes',
'Oki Doki'
]
enterReplies = [ 'Ain\'t no sunshine before you came...',
'Target Acquired',
'Drop it like it is h... | 91928 | module.exports = (robot) ->
userReplies = [ 'Heey',
'Hmmm',
'Woow',
'Yes',
'<NAME>'
]
enterReplies = [ 'Ain\'t no sunshine before you came...',
'Target Acquired',
'Drop it like it is hot... | true | module.exports = (robot) ->
userReplies = [ 'Heey',
'Hmmm',
'Woow',
'Yes',
'PI:NAME:<NAME>END_PI'
]
enterReplies = [ 'Ain\'t no sunshine before you came...',
'Target Acquired',
'Drop it ... |
[
{
"context": "ersion 1.0.0\n@file Form.js\n@author Welington Sampaio (http://welington.zaez.net/)\n@contact http://",
"end": 137,
"score": 0.999890148639679,
"start": 120,
"tag": "NAME",
"value": "Welington Sampaio"
}
] | vendor/assets/javascripts/joker/Form.coffee | zaeznet/joker-rails | 0 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Form.js
@author Welington Sampaio (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free softw... | 220661 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Form.js
@author <NAME> (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, under ... | true | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Form.js
@author PI:NAME:<NAME>END_PI (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free so... |
[
{
"context": " = require 'l10n'\n\nKEYSET_ID = 'vimfx-keyset'\nBUTTON_ID = 'vimfx-toolbar-button'\nK",
"end": 250,
"score": 0.992263674736023,
"start": 238,
"tag": "KEY",
"value": "vimfx-keyset"
},
{
"context": "= 'vimfx-toolbar-button'\nKEY_ID ... | extension/packages/button.coffee | cbertoldi/VimFx | 1 | { getPref
, setPref } = require 'prefs'
{ injectHelp } = require 'help'
{ commands } = require 'commands'
utils = require 'utils'
{ unloader } = require 'unloader'
{ _ } = require 'l10n'
KEYSET_ID = 'vimfx-keyset'
BUTTON_ID = 'vimfx-toolbar-button'
KEY_ID ... | 10437 | { getPref
, setPref } = require 'prefs'
{ injectHelp } = require 'help'
{ commands } = require 'commands'
utils = require 'utils'
{ unloader } = require 'unloader'
{ _ } = require 'l10n'
KEYSET_ID = '<KEY>'
BUTTON_ID = 'vimfx-toolbar-button'
KEY_ID = '<KE... | true | { getPref
, setPref } = require 'prefs'
{ injectHelp } = require 'help'
{ commands } = require 'commands'
utils = require 'utils'
{ unloader } = require 'unloader'
{ _ } = require 'l10n'
KEYSET_ID = 'PI:KEY:<KEY>END_PI'
BUTTON_ID = 'vimfx-toolbar-button'
KEY_ID ... |
[
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)\n###\n\nfs = requi",
"end": 37,
"score": 0.9998398423194885,
"start": 26,
"tag": "NAME",
"value": "David Worms"
},
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Lic... | node_modules/csvtojson/node_modules/csv/test/columns.coffee | thomjoy/sydney-buses | 1 |
###
Test CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'columns', ->
describe 'defined in read option', ->
it 'accept a boolean true', (next) ->
count = ... | 198026 |
###
Test CSV - Copyright <NAME> <<EMAIL>> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'columns', ->
describe 'defined in read option', ->
it 'accept a boolean true', (next) ->
count = 0
# Note... | true |
###
Test CSV - Copyright PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'columns', ->
describe 'defined in read option', ->
it 'accept a boolean true', (next) ->... |
[
{
"context": "sser: new Dismisser\n limit: 1\n name: name\n # Expire any auction reminders when the a",
"end": 2063,
"score": 0.9761310815811157,
"start": 2059,
"tag": "NAME",
"value": "name"
}
] | desktop/components/auction_reminders/index.coffee | dblock/force | 1 | moment = require 'moment'
Q = require 'bluebird-q'
_ = require 'underscore'
mediator = require '../../lib/mediator.coffee'
Dismisser = require '../has_seen/dismisser.coffee'
blacklist = require './blacklist.coffee'
AuctionReminders = require './auction_reminders.coffee'
AuctionReminderView = require './view.coffee'
MyB... | 106020 | moment = require 'moment'
Q = require 'bluebird-q'
_ = require 'underscore'
mediator = require '../../lib/mediator.coffee'
Dismisser = require '../has_seen/dismisser.coffee'
blacklist = require './blacklist.coffee'
AuctionReminders = require './auction_reminders.coffee'
AuctionReminderView = require './view.coffee'
MyB... | true | moment = require 'moment'
Q = require 'bluebird-q'
_ = require 'underscore'
mediator = require '../../lib/mediator.coffee'
Dismisser = require '../has_seen/dismisser.coffee'
blacklist = require './blacklist.coffee'
AuctionReminders = require './auction_reminders.coffee'
AuctionReminderView = require './view.coffee'
MyB... |
[
{
"context": "userCookie1,\n groupId: null\n name: 'New Name'\n , 400\n , null\n , done\n\n it '群",
"end": 4818,
"score": 0.9874078035354614,
"start": 4810,
"tag": "NAME",
"value": "New Name"
},
{
"context": " groupId: '5Vg2XCh9f'\n displa... | spec/groupSpec.coffee | lly5401/dhcseltalkserver | 1 | # 测试用例规则
# 1、有 groupId 参数的,检查群组是否存在
# 2、改变群组成员的,检查群组最大用户数上限
# 3、改变群组成员的,检查用户创建群组数上限
# 4、有群组名字参数的,检查群组名称上下限
# 5、有群组成员昵称参数的,检查群组名称上下限
# 6、有群组成员列表的,检查群组成员列表是否为空
# 7、有群组成员列表的,检查群组成员列表中是否有空值
# 8、根据业务场景,检查是否是群组创建者,有权限操作
# 9、所有参数,检查是否为空
describe '群组接口测试', ->
_global = null
memberIds1_2 = null
memberIds2_3 = null
bef... | 212980 | # 测试用例规则
# 1、有 groupId 参数的,检查群组是否存在
# 2、改变群组成员的,检查群组最大用户数上限
# 3、改变群组成员的,检查用户创建群组数上限
# 4、有群组名字参数的,检查群组名称上下限
# 5、有群组成员昵称参数的,检查群组名称上下限
# 6、有群组成员列表的,检查群组成员列表是否为空
# 7、有群组成员列表的,检查群组成员列表中是否有空值
# 8、根据业务场景,检查是否是群组创建者,有权限操作
# 9、所有参数,检查是否为空
describe '群组接口测试', ->
_global = null
memberIds1_2 = null
memberIds2_3 = null
bef... | true | # 测试用例规则
# 1、有 groupId 参数的,检查群组是否存在
# 2、改变群组成员的,检查群组最大用户数上限
# 3、改变群组成员的,检查用户创建群组数上限
# 4、有群组名字参数的,检查群组名称上下限
# 5、有群组成员昵称参数的,检查群组名称上下限
# 6、有群组成员列表的,检查群组成员列表是否为空
# 7、有群组成员列表的,检查群组成员列表中是否有空值
# 8、根据业务场景,检查是否是群组创建者,有权限操作
# 9、所有参数,检查是否为空
describe '群组接口测试', ->
_global = null
memberIds1_2 = null
memberIds2_3 = null
bef... |
[
{
"context": "s/helpers/and-afterward'`\n\nuserParams =\n email: \"test-email-no-#{Math.random()}@testmail.co\"\n password: \"password123\"\n username: \"test-user",
"end": 251,
"score": 0.9986938238143921,
"start": 209,
"tag": "EMAIL",
"value": "test-email-no-#{Math.random()}@testmail.co... | tests/acceptance/login-tokens-test.coffee | simwms/simwms-shared | 0 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
`import andAfterward from '../../tests/helpers/and-afterward'`
userParams =
email: "test-email-no-#{Math.random()}@testmail.co"
password: "password123"
username: "test-user-no-#{Math.random()... | 59628 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
`import andAfterward from '../../tests/helpers/and-afterward'`
userParams =
email: "<EMAIL>"
password: "<PASSWORD>"
username: "test-user-no-#{Math.random()}"
module 'Acceptance: LoginTokens'... | true | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import startApp from '../../tests/helpers/start-app'`
`import andAfterward from '../../tests/helpers/and-afterward'`
userParams =
email: "PI:EMAIL:<EMAIL>END_PI"
password: "PI:PASSWORD:<PASSWORD>END_PI"
username: "test-user-no-#{Math.random()}"
... |
[
{
"context": " # 色変えする場合\n nz.utils.marge @, {\n name: 'テストキャラクター'\n image: 'character'\n spriteSheet: 'cha",
"end": 467,
"score": 0.9990291595458984,
"start": 458,
"tag": "NAME",
"value": "テストキャラクター"
}
] | src/main/coffeescript/nz/Character.coffee | fukuyama/nineteen | 2 | ###*
* @file Character.coffee
* キャラクター情報
###
###* nineteen namespace.
* @namespace nz
###
# node.js と ブラウザでの this.nz を同じインスタンスにする
_g = window ? global
nz = _g.nz = _g.nz ? {}
_g = undefined
DIRECTIONS = nz.system.character.directions
ACTION_COST = nz.system.character.action_cost
class nz.Character
###* 初期化
* @... | 166626 | ###*
* @file Character.coffee
* キャラクター情報
###
###* nineteen namespace.
* @namespace nz
###
# node.js と ブラウザでの this.nz を同じインスタンスにする
_g = window ? global
nz = _g.nz = _g.nz ? {}
_g = undefined
DIRECTIONS = nz.system.character.directions
ACTION_COST = nz.system.character.action_cost
class nz.Character
###* 初期化
* @... | true | ###*
* @file Character.coffee
* キャラクター情報
###
###* nineteen namespace.
* @namespace nz
###
# node.js と ブラウザでの this.nz を同じインスタンスにする
_g = window ? global
nz = _g.nz = _g.nz ? {}
_g = undefined
DIRECTIONS = nz.system.character.directions
ACTION_COST = nz.system.character.action_cost
class nz.Character
###* 初期化
* @... |
[
{
"context": " {token: $stateParams.token, password: $scope.userData.password}\n ).then ->\n $scope.processing = ",
"end": 442,
"score": 0.8906189799308777,
"start": 425,
"tag": "PASSWORD",
"value": "userData.password"
}
] | frontend/src/controllers/public/reset.coffee | greysteil/evaluator | 1 | angular.module 'evaluator'
.controller 'ResetController', ($scope, $stateParams, $timeout,
$state, $http, configurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope.processing = true
... | 67364 | angular.module 'evaluator'
.controller 'ResetController', ($scope, $stateParams, $timeout,
$state, $http, configurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope.processing = true
... | true | angular.module 'evaluator'
.controller 'ResetController', ($scope, $stateParams, $timeout,
$state, $http, configurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope.processing = true
... |
[
{
"context": "ry = require 'winreg'\r\n\r\nWINDOWS_ACCENT_KEY = '\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Accent'\r\nWINDOWS_10_ACCENT_VALUE = 'AccentColorMenu' # A",
"end": 171,
"score": 0.9993122816085815,
"start": 106,
"tag": "KEY",
"value": "'\\\\SOFTWAR... | lib/config.coffee | michaelmaw/atom-metro-ui | 15 | fs = require 'fs'
metro = require './metro-ui'
registry = require 'winreg'
WINDOWS_ACCENT_KEY = '\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Accent'
WINDOWS_10_ACCENT_VALUE = 'AccentColorMenu' # AccentColor is used by legacy 8.x apps
WINDOWS_8_ACCENT_VALUE = 'AccentColor'
WINDOWS_RELEASE_K... | 30583 | fs = require 'fs'
metro = require './metro-ui'
registry = require 'winreg'
WINDOWS_ACCENT_KEY = <KEY>'
WINDOWS_10_ACCENT_VALUE = 'AccentColorMenu' # AccentColor is used by legacy 8.x apps
WINDOWS_8_ACCENT_VALUE = 'AccentColor'
WINDOWS_RELEASE_KEY = <KEY>'
WINDOWS_RELEASE_VALUE = 'ProductName'
modu... | true | fs = require 'fs'
metro = require './metro-ui'
registry = require 'winreg'
WINDOWS_ACCENT_KEY = PI:KEY:<KEY>END_PI'
WINDOWS_10_ACCENT_VALUE = 'AccentColorMenu' # AccentColor is used by legacy 8.x apps
WINDOWS_8_ACCENT_VALUE = 'AccentColor'
WINDOWS_RELEASE_KEY = PI:KEY:<KEY>END_PI'
WINDOWS_RELEASE_VAL... |
[
{
"context": "'hostname'] = '$2';\n \\$$1['username'] = '$3';\n \\$$1['password'] = '$4';\n ",
"end": 397,
"score": 0.7462781071662903,
"start": 394,
"tag": "USERNAME",
"value": "'$3"
},
{
"context": "'username'] = '$3';\n \\$$1['password'] =... | snippets/ftp.cson | femi-dd/codeigniter-atom | 1 | '.source.php':
'FTP Change Mode':
'prefix': 'ciftpchmod'
'body': '''
\$this->ftp->chmod(${1:\$file}, ${2:0775});
'''
'FTP Close':
'prefix': 'ciftpclose'
'body': '''
\$this->ftp->close();
'''
'FTP Connect':
'prefix': 'ciftpcon'
'body': '''
... | 109125 | '.source.php':
'FTP Change Mode':
'prefix': 'ciftpchmod'
'body': '''
\$this->ftp->chmod(${1:\$file}, ${2:0775});
'''
'FTP Close':
'prefix': 'ciftpclose'
'body': '''
\$this->ftp->close();
'''
'FTP Connect':
'prefix': 'ciftpcon'
'body': '''
... | true | '.source.php':
'FTP Change Mode':
'prefix': 'ciftpchmod'
'body': '''
\$this->ftp->chmod(${1:\$file}, ${2:0775});
'''
'FTP Close':
'prefix': 'ciftpclose'
'body': '''
\$this->ftp->close();
'''
'FTP Connect':
'prefix': 'ciftpcon'
'body': '''
... |
[
{
"context": "ringAsc.exec(@ctx).should.eql ['change', 'dont', 'jenny', 'number', 'your']\n @stringReturnAsc.exec(@ct",
"end": 4841,
"score": 0.9843792915344238,
"start": 4836,
"tag": "NAME",
"value": "jenny"
},
{
"context": "turnAsc.exec(@ctx).should.eql ['change', 'dont', 'jenny... | test/elm/query/test.coffee | zlister/cql-execution | 0 | should = require 'should'
setup = require '../../setup'
data = require './data'
vsets = require './valuesets'
{ p1 } = require './patients'
describe 'DateRangeOptimizedQuery', ->
@beforeEach ->
setup @, data, [ p1 ], vsets
it 'should find encounters performed during the MP', ->
e = @encountersDuringMP.exe... | 145683 | should = require 'should'
setup = require '../../setup'
data = require './data'
vsets = require './valuesets'
{ p1 } = require './patients'
describe 'DateRangeOptimizedQuery', ->
@beforeEach ->
setup @, data, [ p1 ], vsets
it 'should find encounters performed during the MP', ->
e = @encountersDuringMP.exe... | true | should = require 'should'
setup = require '../../setup'
data = require './data'
vsets = require './valuesets'
{ p1 } = require './patients'
describe 'DateRangeOptimizedQuery', ->
@beforeEach ->
setup @, data, [ p1 ], vsets
it 'should find encounters performed during the MP', ->
e = @encountersDuringMP.exe... |
[
{
"context": "# Copyright 2013 Andrey Antukh <niwi@niwi.be>\n#\n# Licensed under the Apache Lice",
"end": 30,
"score": 0.999886691570282,
"start": 17,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": "# Copyright 2013 Andrey Antukh <niwi@niwi.be>\n#\n# Licensed under the Apach... | results/front/app/coffee/services/resource.coffee | gnufede/results | 0 | # Copyright 2013 Andrey Antukh <niwi@niwi.be>
#
# 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... | 165296 | # Copyright 2013 <NAME> <<EMAIL>>
#
# 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 writi... | true | # Copyright 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>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 applica... |
[
{
"context": "\n credentials =\n id: id\n key: \"werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn\"\n algorithm: ((if id is \"1\" then \"sha1\" el",
"end": 410,
"score": 0.9997633695602417,
"start": 367,
"tag": "KEY",
"value": "werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn... | deps/npm/node_modules/request/node_modules/hawk/test/server.coffee | lxe/io.coffee | 0 | # Load modules
Url = require("url")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "server", ->
credentialsFunc = (id, callback) ->
... | 208363 | # Load modules
Url = require("url")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "server", ->
credentialsFunc = (id, callback) ->
... | true | # Load modules
Url = require("url")
Lab = require("lab")
Hawk = require("../lib")
# Declare internals
internals = {}
# Test shortcuts
expect = Lab.expect
before = Lab.before
after = Lab.after
describe = Lab.experiment
it = Lab.test
describe "Hawk", ->
describe "server", ->
credentialsFunc = (id, callback) ->
... |
[
{
"context": "ch ->\n @sut = new RdioStrategy { clientID: 'ABC123', clientSecret: 'secret'},() =>\n describe 'userP",
"end": 153,
"score": 0.8429269194602966,
"start": 150,
"tag": "KEY",
"value": "123"
},
{
"context": "RdioStrategy { clientID: 'ABC123', clientSecret: 'secret'},()... | test/oauth2strategy-spec.coffee | octoblu/passport-rdio | 0 | RdioStrategy = require '../lib/passport-rdio/oauth2strategy'
describe 'RdioStrategy', ->
beforeEach ->
@sut = new RdioStrategy { clientID: 'ABC123', clientSecret: 'secret'},() =>
describe 'userProfile', ->
it 'should instantiate a strategy with Rdio as the name', ->
expect(@sut.name).to.equal 'rdio'... | 115656 | RdioStrategy = require '../lib/passport-rdio/oauth2strategy'
describe 'RdioStrategy', ->
beforeEach ->
@sut = new RdioStrategy { clientID: 'ABC<KEY>', clientSecret: '<KEY>'},() =>
describe 'userProfile', ->
it 'should instantiate a strategy with Rdio as the name', ->
expect(@sut.name).to.equal 'rdio... | true | RdioStrategy = require '../lib/passport-rdio/oauth2strategy'
describe 'RdioStrategy', ->
beforeEach ->
@sut = new RdioStrategy { clientID: 'ABCPI:KEY:<KEY>END_PI', clientSecret: 'PI:KEY:<KEY>END_PI'},() =>
describe 'userProfile', ->
it 'should instantiate a strategy with Rdio as the name', ->
expect... |
[
{
"context": "f the object is of type array. Function adopted by Douglas Crockford (http://crockford.com/)\nisArray = ( value ) ->\n ",
"end": 308,
"score": 0.9996089935302734,
"start": 291,
"tag": "NAME",
"value": "Douglas Crockford"
}
] | InactiveElements.coffee | rtonev/Framer-Inactive-Elements | 0 | # Create overlay that is hidden by default. It will move around the screen and change its size
# for each element, makred as inactive
temp_overlay = new Layer
z: 99999
visible: false
backgroundColor: "#1199EE"
opacity: 0.5
# Check if the object is of type array. Function adopted by Douglas Crockford (http://cro... | 12344 | # Create overlay that is hidden by default. It will move around the screen and change its size
# for each element, makred as inactive
temp_overlay = new Layer
z: 99999
visible: false
backgroundColor: "#1199EE"
opacity: 0.5
# Check if the object is of type array. Function adopted by <NAME> (http://crockford.com/... | true | # Create overlay that is hidden by default. It will move around the screen and change its size
# for each element, makred as inactive
temp_overlay = new Layer
z: 99999
visible: false
backgroundColor: "#1199EE"
opacity: 0.5
# Check if the object is of type array. Function adopted by PI:NAME:<NAME>END_PI (http://... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9900360107421875,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/persist/index.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
# Provides access to persistent data storage.
# Any reading/writing of data should be done using this module.
{buildD... | 218645 | # 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
# Provides access to persistent data storage.
# Any reading/writing of data should be done using this module.
{buildD... | 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
# Provides access to persistent data storage.
# Any reading/writing of data should be done using this mod... |
[
{
"context": "MASSON_SECRET_PW'\n @options.password ?= process.env[@options.envpw]\n @options.algorithm ?= 'aes",
"end": 377,
"score": 0.6515680551528931,
"start": 377,
"tag": "PASSWORD",
"value": ""
},
{
"context": "iv) ->\n text = JSON.stringify secrets\n key = crypto.c... | lib/secrets/index.coffee | wdavidw/node-masson | 7 |
fs = require('fs').promises
fsOrg = require 'fs'
crypto = require 'crypto'
yaml = require 'js-yaml'
generator = require 'generate-password'
get = require 'lodash.get'
set = require 'lodash.set'
unset = require 'lodash.unset'
class Store
constructor: (@options={}) ->
@options.store ?= '.secrets'
@options.env... | 66856 |
fs = require('fs').promises
fsOrg = require 'fs'
crypto = require 'crypto'
yaml = require 'js-yaml'
generator = require 'generate-password'
get = require 'lodash.get'
set = require 'lodash.set'
unset = require 'lodash.unset'
class Store
constructor: (@options={}) ->
@options.store ?= '.secrets'
@options.env... | true |
fs = require('fs').promises
fsOrg = require 'fs'
crypto = require 'crypto'
yaml = require 'js-yaml'
generator = require 'generate-password'
get = require 'lodash.get'
set = require 'lodash.set'
unset = require 'lodash.unset'
class Store
constructor: (@options={}) ->
@options.store ?= '.secrets'
@options.env... |
[
{
"context": "ue.coffee: Github issue class\n#\n# Copyright © 2013 Josh Priestley. All rights reserved\n#\n\n# Requiring modules\nBase ",
"end": 72,
"score": 0.9992201924324036,
"start": 58,
"tag": "NAME",
"value": "Josh Priestley"
},
{
"context": "cb null, b, h\n\n # Delete a comme... | src/octonode/issue.coffee | Palem1988/octonode | 933 | #
# issue.coffee: Github issue class
#
# Copyright © 2013 Josh Priestley. All rights reserved
#
# Requiring modules
Base = require './base'
# Initiate class
class Issue extends Base
constructor: (@repo, @number, @client) ->
# Get a single issue
# '/repos/pksunkara/hub/issues/37' GET
info: (cb) ->
@clien... | 175517 | #
# issue.coffee: Github issue class
#
# Copyright © 2013 <NAME>. All rights reserved
#
# Requiring modules
Base = require './base'
# Initiate class
class Issue extends Base
constructor: (@repo, @number, @client) ->
# Get a single issue
# '/repos/pksunkara/hub/issues/37' GET
info: (cb) ->
@client.get "/... | true | #
# issue.coffee: Github issue class
#
# Copyright © 2013 PI:NAME:<NAME>END_PI. All rights reserved
#
# Requiring modules
Base = require './base'
# Initiate class
class Issue extends Base
constructor: (@repo, @number, @client) ->
# Get a single issue
# '/repos/pksunkara/hub/issues/37' GET
info: (cb) ->
... |
[
{
"context": "Export - Integration tests', ->\n\n CHANNEL_KEY = 'OrderXmlFileExport'\n CHANNEL_ROLE = 'OrderExport'\n CONTAINER_PAYME",
"end": 361,
"score": 0.9859274625778198,
"start": 343,
"tag": "KEY",
"value": "OrderXmlFileExport"
}
] | src/spec/integration/order-export.spec.coffee | celeste-horgan/sphere-order-export | 3 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
{parseString} = require 'xml2js'
{ElasticIo} = require 'sphere-node-utils'
OrderExport = require '../../lib/orderexport'
Config = require '../../config'
SpecHelper = require '../helper'
describe 'OrderExport - Integration tests'... | 170515 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
{parseString} = require 'xml2js'
{ElasticIo} = require 'sphere-node-utils'
OrderExport = require '../../lib/orderexport'
Config = require '../../config'
SpecHelper = require '../helper'
describe 'OrderExport - Integration tests'... | true | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
{parseString} = require 'xml2js'
{ElasticIo} = require 'sphere-node-utils'
OrderExport = require '../../lib/orderexport'
Config = require '../../config'
SpecHelper = require '../helper'
describe 'OrderExport - Integration tests'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.