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": "erver/users/User'\n\ntestPost =\n data:\n email: 'scott@codecombat.com'\n id: '12345678'\n merges:\n INTERESTS: ",
"end": 161,
"score": 0.9999237060546875,
"start": 141,
"tag": "EMAIL",
"value": "scott@codecombat.com"
},
{
"context": ", Diplomats, Ambassa... | test/server/functional/mail.spec.coffee | madawei2699/codecombat | 0 | require '../common'
mail = require '../../../server/routes/mail'
User = require '../../../server/users/User'
testPost =
data:
email: 'scott@codecombat.com'
id: '12345678'
merges:
INTERESTS: 'Announcements, Adventurers, Archmages, Scribes, Diplomats, Ambassadors, Artisans'
FNAME: 'Scott'
... | 67934 | require '../common'
mail = require '../../../server/routes/mail'
User = require '../../../server/users/User'
testPost =
data:
email: '<EMAIL>'
id: '12345678'
merges:
INTERESTS: 'Announcements, Adventurers, Archmages, Scribes, Diplomats, Ambassadors, Artisans'
FNAME: '<NAME>'
LNAME: '<NA... | true | require '../common'
mail = require '../../../server/routes/mail'
User = require '../../../server/users/User'
testPost =
data:
email: 'PI:EMAIL:<EMAIL>END_PI'
id: '12345678'
merges:
INTERESTS: 'Announcements, Adventurers, Archmages, Scribes, Diplomats, Ambassadors, Artisans'
FNAME: 'PI:NAME:<N... |
[
{
"context": " @store.pushPayload \"salsa\",\n data:\n id: \"seinaru iyazoi\"\n type: \"salsas\"\n attributes:\n i",
"end": 1710,
"score": 0.9936254620552063,
"start": 1696,
"tag": "NAME",
"value": "seinaru iyazoi"
},
{
"context": "ment()\n updatedAt: ... | tests/acceptance/field-schema-engine-test.coffee | foxnewsnetwork/autox | 0 | `import Ember from 'ember'`
`import { test } from 'qunit'`
`import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'`
`import _ from 'lodash/lodash'`
{chain} = _
moduleForAcceptance 'Acceptance: FieldSchemaEngine'
test 'shop fields', (assert) ->
@container = @application.__container__
visit "/"... | 39155 | `import Ember from 'ember'`
`import { test } from 'qunit'`
`import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'`
`import _ from 'lodash/lodash'`
{chain} = _
moduleForAcceptance 'Acceptance: FieldSchemaEngine'
test 'shop fields', (assert) ->
@container = @application.__container__
visit "/"... | true | `import Ember from 'ember'`
`import { test } from 'qunit'`
`import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'`
`import _ from 'lodash/lodash'`
{chain} = _
moduleForAcceptance 'Acceptance: FieldSchemaEngine'
test 'shop fields', (assert) ->
@container = @application.__container__
visit "/"... |
[
{
"context": "].tracingConfig ?= \"PassThrough\"\n\n if key in [\"viewerRequest\", \"viewerResponse\"]\n include secondar",
"end": 5882,
"score": 0.5878767371177673,
"start": 5876,
"tag": "KEY",
"value": "viewer"
},
{
"context": "sThrough\"\n\n if key in [\"viewerRequest\"... | src/configuration/preprocessor/lambdas.coffee | pandastrike/haiku9 | 10 | import {flow} from "panda-garden"
import {resolve, parse, relative} from "path"
import {resolve as resolveURL} from "url"
import {isEmpty, include, dashed, clone} from "panda-parchment"
import {read, rm, rmr, mkdir, mkdirp, glob, write} from "panda-quill"
import PandaTemplate from "panda-template"
import {shell} from "... | 213027 | import {flow} from "panda-garden"
import {resolve, parse, relative} from "path"
import {resolve as resolveURL} from "url"
import {isEmpty, include, dashed, clone} from "panda-parchment"
import {read, rm, rmr, mkdir, mkdirp, glob, write} from "panda-quill"
import PandaTemplate from "panda-template"
import {shell} from "... | true | import {flow} from "panda-garden"
import {resolve, parse, relative} from "path"
import {resolve as resolveURL} from "url"
import {isEmpty, include, dashed, clone} from "panda-parchment"
import {read, rm, rmr, mkdir, mkdirp, glob, write} from "panda-quill"
import PandaTemplate from "panda-template"
import {shell} from "... |
[
{
"context": "#########\n#\n# Resume view of solution\n# Created by Markus on 15/11/2015.\n#\n################################",
"end": 94,
"score": 0.9996324777603149,
"start": 88,
"tag": "NAME",
"value": "Markus"
}
] | client/views/portfolio/portfolio.coffee | MooqitaSFH/worklearn | 0 | ##############################################
#
# Resume view of solution
# Created by Markus on 15/11/2015.
#
##############################################
##########################################################
# import
##########################################################
################################... | 20846 | ##############################################
#
# Resume view of solution
# Created by <NAME> on 15/11/2015.
#
##############################################
##########################################################
# import
##########################################################
################################... | true | ##############################################
#
# Resume view of solution
# Created by PI:NAME:<NAME>END_PI on 15/11/2015.
#
##############################################
##########################################################
# import
##########################################################
##################... |
[
{
"context": "# parsing Ruby code\n#\n# Copyright (c) 2013 JeongHoon Byun aka \"Outsider\", <http://blog.outsider.ne.kr/>\n# L",
"end": 57,
"score": 0.9998731017112732,
"start": 43,
"tag": "NAME",
"value": "JeongHoon Byun"
},
{
"context": "y code\n#\n# Copyright (c) 2013 JeongHoon By... | src/parser/ruby-parser.coffee | uppalapatisujitha/CodingConventionofCommitHistory | 421 | # parsing Ruby code
#
# Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
_ = require 'underscore'
rubyParser = module.exports =
lang: 'rb'
parse: (line, convention, commitUrl) ->
... | 236 | # parsing Ruby code
#
# Copyright (c) 2013 <NAME> aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
helpers = require '../helpers'
_ = require 'underscore'
rubyParser = module.exports =
lang: 'rb'
parse: (line, convention, commitUrl) ->
conve... | true | # parsing Ruby code
#
# 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/>
helpers = require '../helpers'
_ = require 'underscore'
rubyParser = module.exports =
lang: 'rb'
parse: (line, convention, commitUrl... |
[
{
"context": "ormation, please see the LICENSE file\n\n@author Bryan Conrad <bkconrad@gmail.com>\n@copyright 2015 Bryan Conra",
"end": 181,
"score": 0.9998961687088013,
"start": 169,
"tag": "NAME",
"value": "Bryan Conrad"
},
{
"context": "e see the LICENSE file\n\n@author Br... | src/nested_object_mask.coffee | bkconrad/node-nested-object-mask | 1 | _ = require 'lodash'
###
kaen\recursive-object-mask
Licensed under the MIT license
For full copyright and license information, please see the LICENSE file
@author Bryan Conrad <bkconrad@gmail.com>
@copyright 2015 Bryan Conrad
@link https://github.com/kaen/node-nested-object-mask
@license http://chooseal... | 83503 | _ = require 'lodash'
###
kaen\recursive-object-mask
Licensed under the MIT license
For full copyright and license information, please see the LICENSE file
@author <NAME> <<EMAIL>>
@copyright 2015 <NAME>
@link https://github.com/kaen/node-nested-object-mask
@license http://choosealicense.com/licenses/MIT... | true | _ = require 'lodash'
###
kaen\recursive-object-mask
Licensed under the MIT license
For full copyright and license information, please see the LICENSE file
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
@copyright 2015 PI:NAME:<NAME>END_PI
@link https://github.com/kaen/node-nested-object-mask
@licens... |
[
{
"context": "lse\r\n admin_role_name: \"admin\"\r\n username: \"Guest\"\r\n session: null\r\n auth: {role: '', user: '",
"end": 318,
"score": 0.9931026697158813,
"start": 313,
"tag": "USERNAME",
"value": "Guest"
},
{
"context": "en(f())\r\n\r\n reset: ->\r\n this.aut... | resources/public/admin/kadmin.coffee | PranceCloud/Kaleido | 0 | kadmin =
setting:
admin_project: 'kaleido'
admin_url: 'm'
base_url: '/'
project_prefix_url: 'project'
project:
name: 'kaleido'
path: ''
allow_manage_ip: ''
model: []
auth:
is_login: false
is_admin: false
admin_role_name: "admin"
username: "Guest"
... | 154358 | kadmin =
setting:
admin_project: 'kaleido'
admin_url: 'm'
base_url: '/'
project_prefix_url: 'project'
project:
name: 'kaleido'
path: ''
allow_manage_ip: ''
model: []
auth:
is_login: false
is_admin: false
admin_role_name: "admin"
username: "Guest"
... | true | kadmin =
setting:
admin_project: 'kaleido'
admin_url: 'm'
base_url: '/'
project_prefix_url: 'project'
project:
name: 'kaleido'
path: ''
allow_manage_ip: ''
model: []
auth:
is_login: false
is_admin: false
admin_role_name: "admin"
username: "Guest"
... |
[
{
"context": "to get to the elasticsearch cluster\n#\n# Author:\n# Paul Stack\n\n_esAliases = {}\n\nQS = require 'querystring'\n\nmod",
"end": 1645,
"score": 0.9998335838317871,
"start": 1635,
"tag": "NAME",
"value": "Paul Stack"
}
] | src/elasticsearch.coffee | stack72/hubot-elasticsearch | 23 | # Description:
# Get ElasticSearch Cluster Information
#
# Commands:
# hubot: elasticsearch cluster health [cluster] - Gets the cluster health for the given server or alias
# hubot: elasticsearch cat nodes [cluster] - Gets the information from the cat nodes endpoint for the given server o... | 72441 | # Description:
# Get ElasticSearch Cluster Information
#
# Commands:
# hubot: elasticsearch cluster health [cluster] - Gets the cluster health for the given server or alias
# hubot: elasticsearch cat nodes [cluster] - Gets the information from the cat nodes endpoint for the given server o... | true | # Description:
# Get ElasticSearch Cluster Information
#
# Commands:
# hubot: elasticsearch cluster health [cluster] - Gets the cluster health for the given server or alias
# hubot: elasticsearch cat nodes [cluster] - Gets the information from the cat nodes endpoint for the given server o... |
[
{
"context": "[\\]/\"'\\*=~\\-\\u2013\\u2014])|$)///gi\r\n\t,\r\n\t\tosis: [\"Jonah\", \"Job\", \"Josh\", \"Joel\"]\r\n\t\tregexp: ///(^|#{bcv_p",
"end": 25266,
"score": 0.9994688034057617,
"start": 25261,
"tag": "NAME",
"value": "Jonah"
},
{
"context": "~\\-\\u2013\\u2014])|$)///gi\... | src/fr/regexps.coffee | phillipb/Bible-Passage-Reference-Parser | 149 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... | 152859 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... | true | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... |
[
{
"context": "class HelloWorld\n hello: (name = 'World') ->\n \"Hello, #{name}!\"\n\nmodule.exports = Hell",
"end": 40,
"score": 0.9424713850021362,
"start": 35,
"tag": "NAME",
"value": "World"
}
] | coffeescript/hello-world/hello_world.coffee | rootulp/exercism | 41 | class HelloWorld
hello: (name = 'World') ->
"Hello, #{name}!"
module.exports = HelloWorld
| 127653 | class HelloWorld
hello: (name = '<NAME>') ->
"Hello, #{name}!"
module.exports = HelloWorld
| true | class HelloWorld
hello: (name = 'PI:NAME:<NAME>END_PI') ->
"Hello, #{name}!"
module.exports = HelloWorld
|
[
{
"context": "ema for the Post table in the database.\n * @module mystic-noggin\n * @submodule server/database/schemas/post-schema",
"end": 79,
"score": 0.6436048150062561,
"start": 66,
"tag": "USERNAME",
"value": "mystic-noggin"
},
{
"context": " Date.now }\n name: { type: Stri... | src/server/database/schemas/post-schema.coffee | ingshtrom/mystic-noggin | 0 | ###
* Post Schema for the Post table in the database.
* @module mystic-noggin
* @submodule server/database/schemas/post-schema
* @requires {module} mongoose
* @requires {module} bluebird
* @requires {submodule} server/database/schemas/tag-schema
* @requires {submodule} server/database/schemas/post-type-schema
*... | 69805 | ###
* Post Schema for the Post table in the database.
* @module mystic-noggin
* @submodule server/database/schemas/post-schema
* @requires {module} mongoose
* @requires {module} bluebird
* @requires {submodule} server/database/schemas/tag-schema
* @requires {submodule} server/database/schemas/post-type-schema
*... | true | ###
* Post Schema for the Post table in the database.
* @module mystic-noggin
* @submodule server/database/schemas/post-schema
* @requires {module} mongoose
* @requires {module} bluebird
* @requires {submodule} server/database/schemas/tag-schema
* @requires {submodule} server/database/schemas/post-type-schema
*... |
[
{
"context": "8'\n window.Templates.user(users: ['fred', 'steve']).should.equal userFile\n ",
"end": 1031,
"score": 0.974148690700531,
"start": 1027,
"tag": "NAME",
"value": "fred"
},
{
"context": " window.Templates.user(users: ['fred', 'steve']... | test/jade.coffee | lgs/asset-rack | 1 |
should = require('chai').should()
rack = require '../.'
express = require 'express.io'
easyrequest = require 'request'
fs = require 'fs'
describe 'a jade asset', ->
app = null
fixturesDir = "#{__dirname}/fixtures/jade"
it 'should work', (done) ->
compiled = fs.readFileSync "#{fixturesDir}/templat... | 225481 |
should = require('chai').should()
rack = require '../.'
express = require 'express.io'
easyrequest = require 'request'
fs = require 'fs'
describe 'a jade asset', ->
app = null
fixturesDir = "#{__dirname}/fixtures/jade"
it 'should work', (done) ->
compiled = fs.readFileSync "#{fixturesDir}/templat... | true |
should = require('chai').should()
rack = require '../.'
express = require 'express.io'
easyrequest = require 'request'
fs = require 'fs'
describe 'a jade asset', ->
app = null
fixturesDir = "#{__dirname}/fixtures/jade"
it 'should work', (done) ->
compiled = fs.readFileSync "#{fixturesDir}/templat... |
[
{
"context": "ation.ConfigError()\n\t\t\treturn\n\n\t\tcredentialToken = Random.secret()\n\t\tloginStyle = OAuth._loginStyle @name, ",
"end": 2059,
"score": 0.44245538115501404,
"start": 2053,
"tag": "KEY",
"value": "Random"
}
] | packages/rocketchat-custom-oauth/custom_oauth_client.coffee | dotdatait/prueba | 2 | # Request custom OAuth credentials for the user
# @param options {optional}
# @param credentialRequestCompleteCallback {Function} Callback function to call on
# completion. Takes one argument, credentialToken on success, or Error on
# error.
class CustomOAuth
constructor: (@name, options) ->
if not Match.test @n... | 159363 | # Request custom OAuth credentials for the user
# @param options {optional}
# @param credentialRequestCompleteCallback {Function} Callback function to call on
# completion. Takes one argument, credentialToken on success, or Error on
# error.
class CustomOAuth
constructor: (@name, options) ->
if not Match.test @n... | true | # Request custom OAuth credentials for the user
# @param options {optional}
# @param credentialRequestCompleteCallback {Function} Callback function to call on
# completion. Takes one argument, credentialToken on success, or Error on
# error.
class CustomOAuth
constructor: (@name, options) ->
if not Match.test @n... |
[
{
"context": "mponents/sdk/index.js'\n Digits.init(consumerKey:\"9rGXb3mmlyfOrY8sTBl7uG61n\")\n module.exports.Digits = Digits\n\nelse\n modu",
"end": 144,
"score": 0.7421388030052185,
"start": 119,
"tag": "KEY",
"value": "9rGXb3mmlyfOrY8sTBl7uG61n"
}
] | client/scripts/components/digits.coffee | corydolphin/sendthistome | 1 | if typeof window is "undefined"
Digits = require '../../../bower_components/sdk/index.js'
Digits.init(consumerKey:"9rGXb3mmlyfOrY8sTBl7uG61n")
module.exports.Digits = Digits
else
module.exports.Digits =
getLoginStatus: ->
fail: (fun)->
done: (fun)->
login: ->
fail: (fun)->
do... | 130051 | if typeof window is "undefined"
Digits = require '../../../bower_components/sdk/index.js'
Digits.init(consumerKey:"<KEY>")
module.exports.Digits = Digits
else
module.exports.Digits =
getLoginStatus: ->
fail: (fun)->
done: (fun)->
login: ->
fail: (fun)->
done: (fun)->
| true | if typeof window is "undefined"
Digits = require '../../../bower_components/sdk/index.js'
Digits.init(consumerKey:"PI:KEY:<KEY>END_PI")
module.exports.Digits = Digits
else
module.exports.Digits =
getLoginStatus: ->
fail: (fun)->
done: (fun)->
login: ->
fail: (fun)->
done: (fu... |
[
{
"context": "':\n# topic: new Foo\n# email: 'Abc@abc.com'\n# \n# 'lowercase email': ({ email",
"end": 457,
"score": 0.9998374581336975,
"start": 446,
"tag": "EMAIL",
"value": "Abc@abc.com"
},
{
"context": "({ email }) ->\n# assert.equa... | test/models/plugins/email.coffee | cncolder/vcvs | 0 | # { _, vows, assert, async, cwd, mongoose } = require '../../helper'
# { email } = require "#{cwd}/models/plugins"
#
# schema = new mongoose.Schema
# name:
# type: String
#
# schema.plugin email
#
# Foo = mongoose.model 'Foo', schema
#
# vows
# .describe(email)
# .addBatch
# teardown: ->
#... | 122326 | # { _, vows, assert, async, cwd, mongoose } = require '../../helper'
# { email } = require "#{cwd}/models/plugins"
#
# schema = new mongoose.Schema
# name:
# type: String
#
# schema.plugin email
#
# Foo = mongoose.model 'Foo', schema
#
# vows
# .describe(email)
# .addBatch
# teardown: ->
#... | true | # { _, vows, assert, async, cwd, mongoose } = require '../../helper'
# { email } = require "#{cwd}/models/plugins"
#
# schema = new mongoose.Schema
# name:
# type: String
#
# schema.plugin email
#
# Foo = mongoose.model 'Foo', schema
#
# vows
# .describe(email)
# .addBatch
# teardown: ->
#... |
[
{
"context": " name:\n honorifics: 'Mr'\n first: 'John'\n middle: 'Winston'\n last: 'Lennon'",
"end": 244,
"score": 0.9998337030410767,
"start": 240,
"tag": "NAME",
"value": "John"
},
{
"context": "fics: 'Mr'\n first: 'John'\n middle: 'Wins... | src/test/temporary-active.coffee | bbs-enterprise/odse | 0 |
{ expect } = require 'chai'
{ ObjectDataStorageEngine } = require './../odse'
describe 'Active Temporary Test Cases' , ->
it.only 'Small Data Set', (doneCbfn)->
demoUserData =
name:
honorifics: 'Mr'
first: 'John'
middle: 'Winston'
last: 'Lennon'
password: 'Working ... | 221013 |
{ expect } = require 'chai'
{ ObjectDataStorageEngine } = require './../odse'
describe 'Active Temporary Test Cases' , ->
it.only 'Small Data Set', (doneCbfn)->
demoUserData =
name:
honorifics: 'Mr'
first: '<NAME>'
middle: '<NAME>'
last: '<NAME>'
password: '<PASSWO... | true |
{ expect } = require 'chai'
{ ObjectDataStorageEngine } = require './../odse'
describe 'Active Temporary Test Cases' , ->
it.only 'Small Data Set', (doneCbfn)->
demoUserData =
name:
honorifics: 'Mr'
first: 'PI:NAME:<NAME>END_PI'
middle: 'PI:NAME:<NAME>END_PI'
last: 'PI:N... |
[
{
"context": "til'\n\narticleHtml = \"\"\"\nHello, <mention data-id=\"1\">@Grace</mention>. It's been a long time since we me",
"end": 135,
"score": 0.9988084435462952,
"start": 129,
"tag": "USERNAME",
"value": "@Grace"
},
{
"context": "ime since we met last time.<br><mention da... | test/main.coffee | teambition/talk-lexer | 1 | should = require 'should'
lexer = require '../src/lexer'
util = require './util'
articleHtml = """
Hello, <mention data-id="1">@Grace</mention>. It's been a long time since we met last time.<br><mention data-id="2">@Bran</mention> is very missing you.
"""
articleText = """
Hello, @Grace. It's been a long time s... | 147102 | should = require 'should'
lexer = require '../src/lexer'
util = require './util'
articleHtml = """
Hello, <mention data-id="1">@Grace</mention>. It's been a long time since we met last time.<br><mention data-id="2">@Bran</mention> is very missing you.
"""
articleText = """
Hello, @Grace. It's been a long time s... | true | should = require 'should'
lexer = require '../src/lexer'
util = require './util'
articleHtml = """
Hello, <mention data-id="1">@Grace</mention>. It's been a long time since we met last time.<br><mention data-id="2">@Bran</mention> is very missing you.
"""
articleText = """
Hello, @Grace. It's been a long time s... |
[
{
"context": "# Copyright (c) 2016-2017 Bennet Carstensen\n#\n# Permission is hereby granted, free of charge,",
"end": 43,
"score": 0.9998471140861511,
"start": 26,
"tag": "NAME",
"value": "Bennet Carstensen"
}
] | lib/config.coffee | BenSolus/linter-clcc | 0 | # Copyright (c) 2016-2017 Bennet Carstensen
#
# 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, publi... | 189360 | # Copyright (c) 2016-2017 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distr... | true | # Copyright (c) 2016-2017 PI:NAME:<NAME>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, copy, modify, merge, pu... |
[
{
"context": "\n data =\n login: env.sipAgent\n password: env.sipSecret\n\n phone.notify = (call) ->\n console",
"end": 161,
"score": 0.9160267114639282,
"start": 158,
"tag": "PASSWORD",
"value": "env"
}
] | app/assets/javascripts/connections.js.coffee | fwoeck/voice-rails | 1 | app.setupPhone = ->
return unless phone.isWebRTCAvailable
return unless app.loadLocalKey('useWebRtc')
data =
login: env.sipAgent
password: env.sipSecret
phone.notify = (call) ->
console.log('SIP notify call:', call) if env.debug
phone.notifyAddCall = (call) ->
console.log('SIP add call:... | 115472 | app.setupPhone = ->
return unless phone.isWebRTCAvailable
return unless app.loadLocalKey('useWebRtc')
data =
login: env.sipAgent
password: <PASSWORD>.sipSecret
phone.notify = (call) ->
console.log('SIP notify call:', call) if env.debug
phone.notifyAddCall = (call) ->
console.log('SIP ad... | true | app.setupPhone = ->
return unless phone.isWebRTCAvailable
return unless app.loadLocalKey('useWebRtc')
data =
login: env.sipAgent
password: PI:PASSWORD:<PASSWORD>END_PI.sipSecret
phone.notify = (call) ->
console.log('SIP notify call:', call) if env.debug
phone.notifyAddCall = (call) ->
c... |
[
{
"context": " ], 'which-way'\n path.key.should.eql 'which-way'\n\n it 'sends the prompt', -> co ->\n d",
"end": 7979,
"score": 0.8081578612327576,
"start": 7970,
"tag": "KEY",
"value": "which-way"
}
] | test/unit/03-dialogue_test.coffee | PropertyUX/nubot-playbook | 0 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Dialogue = require '../../lib/modules/dialogue'
# get the null Timeout prototype instance for comparison
Timeout = setTimeout () ->
null
, 0
.con... | 52954 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Dialogue = require '../../lib/modules/dialogue'
# get the null Timeout prototype instance for comparison
Timeout = setTimeout () ->
null
, 0
.con... | true | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Dialogue = require '../../lib/modules/dialogue'
# get the null Timeout prototype instance for comparison
Timeout = setTimeout () ->
null
, 0
.con... |
[
{
"context": "ser: user }, (e, o) ->\n if o\n if o.pass == pass then callback(o) else callback(null)\n else\n ",
"end": 946,
"score": 0.559292733669281,
"start": 942,
"tag": "PASSWORD",
"value": "pass"
},
{
"context": " callback null\n event.emit 'login',\n pass:... | app/server/modules/account-manager.mongo.coffee | coderofsalvation/express-api-user-management-signup | 1 | crypto = require('crypto')
mongo = require('mongodb')
MongoClient = mongo.MongoClient
moment = require('moment')
EventEmitter = require('events').EventEmitter
event = exports.event = new EventEmitter
### establish the database connection ###
db = {}
accounts = {}
exports.init = (cfg) ->
dbPort = (cfg.port || 27017... | 179701 | crypto = require('crypto')
mongo = require('mongodb')
MongoClient = mongo.MongoClient
moment = require('moment')
EventEmitter = require('events').EventEmitter
event = exports.event = new EventEmitter
### establish the database connection ###
db = {}
accounts = {}
exports.init = (cfg) ->
dbPort = (cfg.port || 27017... | true | crypto = require('crypto')
mongo = require('mongodb')
MongoClient = mongo.MongoClient
moment = require('moment')
EventEmitter = require('events').EventEmitter
event = exports.event = new EventEmitter
### establish the database connection ###
db = {}
accounts = {}
exports.init = (cfg) ->
dbPort = (cfg.port || 27017... |
[
{
"context": "e: \"\"\n }\n ]\n\n Stations.insert\n name: \"Trevithick Dock\"\n system: \"LHS 3447\"\n type: \"outpost\"\n h",
"end": 672,
"score": 0.9988344311714172,
"start": 657,
"tag": "NAME",
"value": "Trevithick Dock"
},
{
"context": " bannedItems: []\n\... | server/fixtures.coffee | sean-clayton/elite-dangerous-market-tracker | 0 | console.log "Stations count: #{Stations.find().count()}"
if Stations.find().count() is 0
console.log "Creating stations"
# Creating initial stations
Stations.insert
name: "Fairbairn Station"
system: "LHS 3447"
type: "outpost"
hasBlackmarket: false
bannedItems: []
Stations.insert
nam... | 170719 | console.log "Stations count: #{Stations.find().count()}"
if Stations.find().count() is 0
console.log "Creating stations"
# Creating initial stations
Stations.insert
name: "Fairbairn Station"
system: "LHS 3447"
type: "outpost"
hasBlackmarket: false
bannedItems: []
Stations.insert
nam... | true | console.log "Stations count: #{Stations.find().count()}"
if Stations.find().count() is 0
console.log "Creating stations"
# Creating initial stations
Stations.insert
name: "Fairbairn Station"
system: "LHS 3447"
type: "outpost"
hasBlackmarket: false
bannedItems: []
Stations.insert
nam... |
[
{
"context": "me,password} = request.query\n\n if username == 'meshblu' && password == @password\n return @client.se",
"end": 245,
"score": 0.9996412396430969,
"start": 238,
"tag": "USERNAME",
"value": "meshblu"
},
{
"context": " @meshbluConfig,\n uuid: username\n t... | src/controllers/auth-controller.coffee | octoblu/meshblu-rabbitmq-auth-service | 0 | _ = require 'lodash'
MeshbluHttp = require 'meshblu-http'
class AuthController
constructor: ({@client,@meshbluConfig,@password}) ->
user: (request, response) =>
{username,password} = request.query
if username == 'meshblu' && password == @password
return @client.setex username, 30, new Dat... | 196005 | _ = require 'lodash'
MeshbluHttp = require 'meshblu-http'
class AuthController
constructor: ({@client,@meshbluConfig,@password}) ->
user: (request, response) =>
{username,password} = request.query
if username == 'meshblu' && password == @password
return @client.setex username, 30, new Dat... | true | _ = require 'lodash'
MeshbluHttp = require 'meshblu-http'
class AuthController
constructor: ({@client,@meshbluConfig,@password}) ->
user: (request, response) =>
{username,password} = request.query
if username == 'meshblu' && password == @password
return @client.setex username, 30, new Dat... |
[
{
"context": "ners = @options.maintainers\n @myEstimateKey = \"estimatedEffort[#{window.user.id}]\"\n @allEstimateKeys = (\"estimatedEffort[#{maint",
"end": 340,
"score": 0.9446669220924377,
"start": 306,
"tag": "KEY",
"value": "estimatedEffort[#{window.user.id}]"
},
{
"context... | app/assets/javascripts/houston/scheduler/views/planning_poker.coffee | houston/houston-scheduler | 0 | class Scheduler.PlanningPoker extends Backbone.View
className: 'planning-poker'
initialize: (options)->
@options = options
@template = HandlebarsTemplates['houston/scheduler/tickets/planning_poker']
@tickets = @options.tickets
@maintainers = @options.maintainers
@myEstimateKey = "estimatedEffor... | 213490 | class Scheduler.PlanningPoker extends Backbone.View
className: 'planning-poker'
initialize: (options)->
@options = options
@template = HandlebarsTemplates['houston/scheduler/tickets/planning_poker']
@tickets = @options.tickets
@maintainers = @options.maintainers
@myEstimateKey = "<KEY>"
@al... | true | class Scheduler.PlanningPoker extends Backbone.View
className: 'planning-poker'
initialize: (options)->
@options = options
@template = HandlebarsTemplates['houston/scheduler/tickets/planning_poker']
@tickets = @options.tickets
@maintainers = @options.maintainers
@myEstimateKey = "PI:KEY:<KEY>EN... |
[
{
"context": "3 Flarebyte.com Ltd. All rights reserved.\nCreator: Olivier Huin\nContributors:\n###\n\n'use strict'\n\n###\nModule depen",
"end": 151,
"score": 0.9998701214790344,
"start": 139,
"tag": "NAME",
"value": "Olivier Huin"
}
] | nodejs/flarebyte.net/0.8/node/flaming/live.coffee | flarebyte/wonderful-bazar | 0 | ###
GENERATED - DO NOT EDIT - Tue Jan 14 2014 22:25:31 GMT+0000 (GMT)
Copyright (c) 2013 Flarebyte.com Ltd. All rights reserved.
Creator: Olivier Huin
Contributors:
###
'use strict'
###
Module dependencies.
###
express = require("express")
init = require("fb-custom-init")
nconf = require("nconf")
winston = require("... | 191071 | ###
GENERATED - DO NOT EDIT - Tue Jan 14 2014 22:25:31 GMT+0000 (GMT)
Copyright (c) 2013 Flarebyte.com Ltd. All rights reserved.
Creator: <NAME>
Contributors:
###
'use strict'
###
Module dependencies.
###
express = require("express")
init = require("fb-custom-init")
nconf = require("nconf")
winston = require("winsto... | true | ###
GENERATED - DO NOT EDIT - Tue Jan 14 2014 22:25:31 GMT+0000 (GMT)
Copyright (c) 2013 Flarebyte.com Ltd. All rights reserved.
Creator: PI:NAME:<NAME>END_PI
Contributors:
###
'use strict'
###
Module dependencies.
###
express = require("express")
init = require("fb-custom-init")
nconf = require("nconf")
winston = r... |
[
{
"context": "\n label: \"DoveCot\"\n login: \"testuser\"\n password: \"applesauce\"\n s",
"end": 1776,
"score": 0.9996525049209595,
"start": 1768,
"tag": "USERNAME",
"value": "testuser"
},
{
"context": " login: \"testuser\"\n ... | tests/index.coffee | gelnior/cozy-emails | 0 | global.appPath = if process.env.USEJS then '../build/' else '../'
should = require('should')
helpers = require './helpers'
fixtures = require 'cozy-fixtures'
DovecotTesting = require 'dovecot-testing'
SMTPTesting = require './smtp-testing/index'
Client = require('request-json').JsonClient
# CONSTANTS
SMTP_PORT = 8889... | 126103 | global.appPath = if process.env.USEJS then '../build/' else '../'
should = require('should')
helpers = require './helpers'
fixtures = require 'cozy-fixtures'
DovecotTesting = require 'dovecot-testing'
SMTPTesting = require './smtp-testing/index'
Client = require('request-json').JsonClient
# CONSTANTS
SMTP_PORT = 8889... | true | global.appPath = if process.env.USEJS then '../build/' else '../'
should = require('should')
helpers = require './helpers'
fixtures = require 'cozy-fixtures'
DovecotTesting = require 'dovecot-testing'
SMTPTesting = require './smtp-testing/index'
Client = require('request-json').JsonClient
# CONSTANTS
SMTP_PORT = 8889... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9983357787132263,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": ".opensslCli, [\n \"s_client\"\n \"-connect\"\n \"127.0.0.1:\" + common.PORT\n ])\n ... | test/simple/test-tls-securepair-server.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 41714 | # 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": ": process.env.PIN_AUTHENTICATOR_UUID\n token: process.env.PIN_AUTHENTICATOR_TOKEN\n server: process.e",
"end": 435,
"score": 0.33852899074554443,
"start": 428,
"tag": "KEY",
"value": "process"
},
{
"context": "ess.env.PIN_AUTHENTICATOR_UUID\n token: process... | server.coffee | octoblu/meshblu-pin-trusted-device | 0 | express = require 'express'
morgan = require 'morgan'
errorHandler = require 'errorhandler'
meshbluHealthcheck = require 'express-meshblu-healthcheck'
bodyParser = require 'body-parser'
cors = require 'cors'
meshblu = require 'meshblu'
Routes = require './app/routes'
try
meshbluJSON ... | 126346 | express = require 'express'
morgan = require 'morgan'
errorHandler = require 'errorhandler'
meshbluHealthcheck = require 'express-meshblu-healthcheck'
bodyParser = require 'body-parser'
cors = require 'cors'
meshblu = require 'meshblu'
Routes = require './app/routes'
try
meshbluJSON ... | true | express = require 'express'
morgan = require 'morgan'
errorHandler = require 'errorhandler'
meshbluHealthcheck = require 'express-meshblu-healthcheck'
bodyParser = require 'body-parser'
cors = require 'cors'
meshblu = require 'meshblu'
Routes = require './app/routes'
try
meshbluJSON ... |
[
{
"context": "Welcome:\n tabTitle: \"Vitajte\"\n subtitle: {\n text1: \"Modifikovateľný ",
"end": 23,
"score": 0.70341956615448,
"start": 22,
"tag": "NAME",
"value": "V"
}
] | def/sk/welcome.cson | abilogos/atom-i18n | 76 | Welcome:
tabTitle: "Vitajte"
subtitle: {
text1: "Modifikovateľný editor pre 21"
superscript: ""
text2: " storočie"
}
help: {
forHelpVisit: "Pre pomoc prosím navštívte"
atomDocs: {
text1: ""
link: "Dokumentáciu Atomu"
text2: " pre Návody a API REFERENCIE."
_template: "... | 39078 | Welcome:
tabTitle: "<NAME>itajte"
subtitle: {
text1: "Modifikovateľný editor pre 21"
superscript: ""
text2: " storočie"
}
help: {
forHelpVisit: "Pre pomoc prosím navštívte"
atomDocs: {
text1: ""
link: "Dokumentáciu Atomu"
text2: " pre Návody a API REFERENCIE."
_templa... | true | Welcome:
tabTitle: "PI:NAME:<NAME>END_PIitajte"
subtitle: {
text1: "Modifikovateľný editor pre 21"
superscript: ""
text2: " storočie"
}
help: {
forHelpVisit: "Pre pomoc prosím navštívte"
atomDocs: {
text1: ""
link: "Dokumentáciu Atomu"
text2: " pre Návody a API REFERENCIE."... |
[
{
"context": "\n CONTACT_PHONE: '13810906731'\n CONTACT_EMAIL: 'china@codecombat.com'\n}\n\nmodule.exports = {\n STARTER_LICENSE_COURSE_I",
"end": 1373,
"score": 0.9999211430549622,
"start": 1353,
"tag": "EMAIL",
"value": "china@codecombat.com"
}
] | app/core/constants.coffee | michaelrn/codecombat | 2 | STARTER_LICENSE_COURSE_IDS = [
"560f1a9f22961295f9427742" # Introduction to Computer Science
"5632661322961295f9428638" # Computer Science 2
"5789587aad86a6efb573701e" # Game Development 1
"5789587aad86a6efb573701f" # Web Development 1
]
LICENSE_PRESETS = {
'CS1+CS2+GD1+WD1': STARTER_LICENSE_COURSE_IDS
'CS... | 205383 | STARTER_LICENSE_COURSE_IDS = [
"560f1a9f22961295f9427742" # Introduction to Computer Science
"5632661322961295f9428638" # Computer Science 2
"5789587aad86a6efb573701e" # Game Development 1
"5789587aad86a6efb573701f" # Web Development 1
]
LICENSE_PRESETS = {
'CS1+CS2+GD1+WD1': STARTER_LICENSE_COURSE_IDS
'CS... | true | STARTER_LICENSE_COURSE_IDS = [
"560f1a9f22961295f9427742" # Introduction to Computer Science
"5632661322961295f9428638" # Computer Science 2
"5789587aad86a6efb573701e" # Game Development 1
"5789587aad86a6efb573701f" # Web Development 1
]
LICENSE_PRESETS = {
'CS1+CS2+GD1+WD1': STARTER_LICENSE_COURSE_IDS
'CS... |
[
{
"context": " CanvasFilmMovie\n Copyright(c) 2015 SHIFTBRAIN - Tsukasa Tokura\n This software is released under the MIT License",
"end": 69,
"score": 0.9998410940170288,
"start": 55,
"tag": "NAME",
"value": "Tsukasa Tokura"
}
] | src/CanvasFilmMovie.coffee | tsukasa-web/CanvasFilmMovie | 1 | ###
CanvasFilmMovie
Copyright(c) 2015 SHIFTBRAIN - Tsukasa Tokura
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class CanvasFilmMovie
defaults :
acTime : 3 #フィルムの最大速度到達時間
acEasing : $.easing.easeInSine #加速のEasing
deTime : 2 #フィルムの停止到達時間
d... | 160803 | ###
CanvasFilmMovie
Copyright(c) 2015 SHIFTBRAIN - <NAME>
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class CanvasFilmMovie
defaults :
acTime : 3 #フィルムの最大速度到達時間
acEasing : $.easing.easeInSine #加速のEasing
deTime : 2 #フィルムの停止到達時間
deEasing ... | true | ###
CanvasFilmMovie
Copyright(c) 2015 SHIFTBRAIN - PI:NAME:<NAME>END_PI
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
class CanvasFilmMovie
defaults :
acTime : 3 #フィルムの最大速度到達時間
acEasing : $.easing.easeInSine #加速のEasing
deTime : 2 #フィルムの停止到達時間... |
[
{
"context": "# Copyright (C) 2017 Alexandre Pielucha\n#\n# Permission to use, copy, modify, and/or distr",
"end": 39,
"score": 0.9998427033424377,
"start": 21,
"tag": "NAME",
"value": "Alexandre Pielucha"
},
{
"context": "rts =\n # IP Address of the server\n ip_address: '127.0.0.1... | src/app/http/server.coffee | Riemannn/ast_lab | 0 | # Copyright (C) 2017 Alexandre Pielucha
#
# 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 ... | 95412 | # Copyright (C) 2017 <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 WARRANTI... | true | # Copyright (C) 2017 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" AND THE AUTHOR DISCLAIM... |
[
{
"context": "module.exports = new Users(\n [\n {\n _id: \"student0\"\n name: \"Student Zero\"\n }\n \n {\n ",
"end": 95,
"score": 0.879551887512207,
"start": 87,
"tag": "USERNAME",
"value": "student0"
},
{
"context": "ers(\n [\n {\n _id: \"student0... | test/app/fixtures/students.coffee | cihatislamdede/codecombat | 4,858 | Users = require 'collections/Users'
module.exports = new Users(
[
{
_id: "student0"
name: "Student Zero"
}
{
_id: "student1"
name: "Student One"
}
{
_id: "student2"
name: "Student Two"
}
{
_id: "student3"
name: "Student Three"... | 28575 | Users = require 'collections/Users'
module.exports = new Users(
[
{
_id: "student0"
name: "<NAME>"
}
{
_id: "student1"
name: "<NAME>"
}
{
_id: "student2"
name: "<NAME>"
}
{
_id: "student3"
name: "<NAME>"
}
]
)
| true | Users = require 'collections/Users'
module.exports = new Users(
[
{
_id: "student0"
name: "PI:NAME:<NAME>END_PI"
}
{
_id: "student1"
name: "PI:NAME:<NAME>END_PI"
}
{
_id: "student2"
name: "PI:NAME:<NAME>END_PI"
}
{
_id: "student3"
... |
[
{
"context": "enario names\n nodeMap = {\n \"1\":\"533de20aa498867c56c6cba5\"\n \"2\":\"533de20aa498867c56c6cba7\"\n ",
"end": 1230,
"score": 0.9966341257095337,
"start": 1206,
"tag": "KEY",
"value": "533de20aa498867c56c6cba5"
},
{
"context": " \"1\"... | scripts/habitatTab.coffee | mcclintock-lab/training-reports-v2 | 0 | ReportTab = require 'reportTab'
templates = require '../templates/templates.js'
class HabitatTab extends ReportTab
name: 'Habitat'
className: 'habitat'
template: templates.habitat
dependencies: [
'BarbudaHabitat'
'MarxanAnalysis'
]
paramName: 'Habitats'
timeout: 120000
heading: "Habitat Represe... | 15053 | ReportTab = require 'reportTab'
templates = require '../templates/templates.js'
class HabitatTab extends ReportTab
name: 'Habitat'
className: 'habitat'
template: templates.habitat
dependencies: [
'BarbudaHabitat'
'MarxanAnalysis'
]
paramName: 'Habitats'
timeout: 120000
heading: "Habitat Represe... | true | ReportTab = require 'reportTab'
templates = require '../templates/templates.js'
class HabitatTab extends ReportTab
name: 'Habitat'
className: 'habitat'
template: templates.habitat
dependencies: [
'BarbudaHabitat'
'MarxanAnalysis'
]
paramName: 'Habitats'
timeout: 120000
heading: "Habitat Represe... |
[
{
"context": "new Vue(\n el: \"#demo\"\n data:\n firstName: 'none'\n lastName: 'ti'\n computed:\n fullName: ->\n",
"end": 51,
"score": 0.9990883469581604,
"start": 47,
"tag": "NAME",
"value": "none"
},
{
"context": "emo\"\n data:\n firstName: 'none'\n lastName: 'ti... | app/scripts/main.coffee | yoshihara/self-vue-app-base | 0 | new Vue(
el: "#demo"
data:
firstName: 'none'
lastName: 'ti'
computed:
fullName: ->
return this.lastName + ' ' + this.firstName
)
| 98417 | new Vue(
el: "#demo"
data:
firstName: '<NAME>'
lastName: '<NAME>'
computed:
fullName: ->
return this.lastName + ' ' + this.firstName
)
| true | new Vue(
el: "#demo"
data:
firstName: 'PI:NAME:<NAME>END_PI'
lastName: 'PI:NAME:<NAME>END_PI'
computed:
fullName: ->
return this.lastName + ' ' + this.firstName
)
|
[
{
"context": "3\n username: 'user'\n password: 'password'\n\n beforeEach ->\n sinon.stub mong",
"end": 1363,
"score": 0.9994503855705261,
"start": 1355,
"tag": "PASSWORD",
"value": "password"
}
] | test/server/common/dal/mongo.coffee | valueflowquality/gi-util-update | 0 | path = require 'path'
sinon = require 'sinon'
expect = require('chai').expect
proxyquire = require 'proxyquire'
dir = path.normalize __dirname + '../../../../../server'
module.exports = () ->
describe 'mongo', ->
mongo = null
mongooseStub =
connect: ->
connection:
on: ->
model: ->... | 42663 | path = require 'path'
sinon = require 'sinon'
expect = require('chai').expect
proxyquire = require 'proxyquire'
dir = path.normalize __dirname + '../../../../../server'
module.exports = () ->
describe 'mongo', ->
mongo = null
mongooseStub =
connect: ->
connection:
on: ->
model: ->... | true | path = require 'path'
sinon = require 'sinon'
expect = require('chai').expect
proxyquire = require 'proxyquire'
dir = path.normalize __dirname + '../../../../../server'
module.exports = () ->
describe 'mongo', ->
mongo = null
mongooseStub =
connect: ->
connection:
on: ->
model: ->... |
[
{
"context": "key: 'comments'\npatterns: [\n {\n name: 'comment.md'\n begin",
"end": 14,
"score": 0.9872282147407532,
"start": 6,
"tag": "KEY",
"value": "comments"
}
] | grammars/repositories/inlines/comments.cson | doc22940/language-markdown | 138 | key: 'comments'
patterns: [
{
name: 'comment.md'
begin: '(<!(?:-{2,}))'
end: '((?:-{2,})>)'
captures:
1: name: 'punctuation.md'
3: name: 'punctuation.md'
}
]
| 203945 | key: '<KEY>'
patterns: [
{
name: 'comment.md'
begin: '(<!(?:-{2,}))'
end: '((?:-{2,})>)'
captures:
1: name: 'punctuation.md'
3: name: 'punctuation.md'
}
]
| true | key: 'PI:KEY:<KEY>END_PI'
patterns: [
{
name: 'comment.md'
begin: '(<!(?:-{2,}))'
end: '((?:-{2,})>)'
captures:
1: name: 'punctuation.md'
3: name: 'punctuation.md'
}
]
|
[
{
"context": "'use strict'\n#\n# Ethan Mick\n# 2015\n#\n#\nEventEmitter = require('events').Event",
"end": 27,
"score": 0.9996671080589294,
"start": 17,
"tag": "NAME",
"value": "Ethan Mick"
}
] | lib/models/scheduler.coffee | ethanmick/future-server | 0 | 'use strict'
#
# Ethan Mick
# 2015
#
#
EventEmitter = require('events').EventEmitter
PriorityQueue = require 'priorityqueuejs'
_100_MILLISECONDS = 100
_3_MINUTES = 180000
log = require '../helpers/log'
Task = require './task'
class Scheduler extends EventEmitter
constructor: ->
super()
@queue = new Priority... | 158954 | 'use strict'
#
# <NAME>
# 2015
#
#
EventEmitter = require('events').EventEmitter
PriorityQueue = require 'priorityqueuejs'
_100_MILLISECONDS = 100
_3_MINUTES = 180000
log = require '../helpers/log'
Task = require './task'
class Scheduler extends EventEmitter
constructor: ->
super()
@queue = new PriorityQueu... | true | 'use strict'
#
# PI:NAME:<NAME>END_PI
# 2015
#
#
EventEmitter = require('events').EventEmitter
PriorityQueue = require 'priorityqueuejs'
_100_MILLISECONDS = 100
_3_MINUTES = 180000
log = require '../helpers/log'
Task = require './task'
class Scheduler extends EventEmitter
constructor: ->
super()
@queue = ne... |
[
{
"context": "fo.info\n\nFramer.Info =\n\ttitle: \"Rocket\"\n\tauthor: \"Tony\"\n\ttwitter: \"TonyJing\"\n\tdescription: \"Rocket Launc",
"end": 152,
"score": 0.9778214693069458,
"start": 148,
"tag": "NAME",
"value": "Tony"
},
{
"context": "nfo =\n\ttitle: \"Rocket\"\n\tauthor: \"Ton... | 52rocket.framer/app.coffee | gremjua-forks/100daysofframer | 26 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: "Rocket"
author: "Tony"
twitter: "TonyJing"
description: "Rocket Launch Animation"
# Var
gray = "#ebebeb"
red = "ee5656"
launchTime = 2
flameYBase = 0.1
flameXBase = 1.7
launched = fal... | 25605 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: "Rocket"
author: "<NAME>"
twitter: "TonyJing"
description: "Rocket Launch Animation"
# Var
gray = "#ebebeb"
red = "ee5656"
launchTime = 2
flameYBase = 0.1
flameXBase = 1.7
launched = f... | true | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: "Rocket"
author: "PI:NAME:<NAME>END_PI"
twitter: "TonyJing"
description: "Rocket Launch Animation"
# Var
gray = "#ebebeb"
red = "ee5656"
launchTime = 2
flameYBase = 0.1
flameXBase = 1.7... |
[
{
"context": "\r\n },\r\n {\r\n \"name\": \"FIFA 2014\",\r\n \"level\": 15\r\n },\r\n ",
"end": 395,
"score": 0.761618435382843,
"start": 387,
"tag": "NAME",
"value": "FIFA 201"
},
{
"context": "\r\n },\r\n {\r\n... | mock/data/example.data.coffee | unDemian/protractor-mock | 6 | module.exports = () ->
angular.module("MockedGames", []).run ['Mock', (Mock) ->
# Endpoint Configuration
################################################################
Mock.add 'games',
url: '/games'
response:
data: [
{
"name": "Starcraft II",
... | 194417 | module.exports = () ->
angular.module("MockedGames", []).run ['Mock', (Mock) ->
# Endpoint Configuration
################################################################
Mock.add 'games',
url: '/games'
response:
data: [
{
"name": "Starcraft II",
... | true | module.exports = () ->
angular.module("MockedGames", []).run ['Mock', (Mock) ->
# Endpoint Configuration
################################################################
Mock.add 'games',
url: '/games'
response:
data: [
{
"name": "Starcraft II",
... |
[
{
"context": "\n $scope.user =\n email: ''\n password: null\n passwordRepeat: null\n type: 'advertise",
"end": 293,
"score": 0.9989346265792847,
"start": 289,
"tag": "PASSWORD",
"value": "null"
},
{
"context": "ail: ''\n password: null\n passwordRepea... | src/Vifeed/UserBundle/Resources/assets/js/controllers/signup-ctrl.coffee | bzis/zomba | 0 | angular.module('userApp').controller 'SignupCtrl', [
'$scope', '$window', '$routeParams', 'security', 'ErrorProcessor', 'ProgressBar',
($scope, $window, $routeParams, security, ErrorProcessor, ProgressBar) ->
$scope.errorList = []
$scope.user =
email: ''
password: null
passwordRepeat: null... | 84459 | angular.module('userApp').controller 'SignupCtrl', [
'$scope', '$window', '$routeParams', 'security', 'ErrorProcessor', 'ProgressBar',
($scope, $window, $routeParams, security, ErrorProcessor, ProgressBar) ->
$scope.errorList = []
$scope.user =
email: ''
password: <PASSWORD>
passwordRepeat... | true | angular.module('userApp').controller 'SignupCtrl', [
'$scope', '$window', '$routeParams', 'security', 'ErrorProcessor', 'ProgressBar',
($scope, $window, $routeParams, security, ErrorProcessor, ProgressBar) ->
$scope.errorList = []
$scope.user =
email: ''
password: PI:PASSWORD:<PASSWORD>END_PI
... |
[
{
"context": "PlayerConnection: (pc)->\n\n # Why the following, Michael??\n # @pingTimestamp = @pingTimestamp - 5*1000\n",
"end": 41179,
"score": 0.991003155708313,
"start": 41172,
"tag": "NAME",
"value": "Michael"
},
{
"context": "rs to run on the same network\n if username... | app-src/player_network.coffee | hyperbotic/crowdgame-trivially | 0 | # TODO
# Factor out Message, MessageQueue so that these can be used for HTTP as well, if necessary
# Figure out how to stop HTTP Service
# Figure out how to close a socket associated with an HTTP user that has been removed
# Abstract various message types, refactor used of "messageInfo"
#
#
# message = <connection><dat... | 6450 | # TODO
# Factor out Message, MessageQueue so that these can be used for HTTP as well, if necessary
# Figure out how to stop HTTP Service
# Figure out how to close a socket associated with an HTTP user that has been removed
# Abstract various message types, refactor used of "messageInfo"
#
#
# message = <connection><dat... | true | # TODO
# Factor out Message, MessageQueue so that these can be used for HTTP as well, if necessary
# Figure out how to stop HTTP Service
# Figure out how to close a socket associated with an HTTP user that has been removed
# Abstract various message types, refactor used of "messageInfo"
#
#
# message = <connection><dat... |
[
{
"context": "maintainers - please feel free to <a href=\"mailto:i@fantix.pro\">leave me a message</a> if\n yo",
"end": 2147,
"score": 0.999930202960968,
"start": 2135,
"tag": "EMAIL",
"value": "i@fantix.pro"
}
] | src/scripts/components/pages/aboutme.cjsx | ArchLinux-x32/archlinux-x32.github.io.src | 0 | React = require('react')
GenericContent = require('../modules/generic-content')
module.exports = React.createClass
render: ->
return (
<div className="aboutme">
<GenericContent title="About x32">
In <a href="https://sites.google.com/site/x32abi/">short</a>: A... | 46593 | React = require('react')
GenericContent = require('../modules/generic-content')
module.exports = React.createClass
render: ->
return (
<div className="aboutme">
<GenericContent title="About x32">
In <a href="https://sites.google.com/site/x32abi/">short</a>: A... | true | React = require('react')
GenericContent = require('../modules/generic-content')
module.exports = React.createClass
render: ->
return (
<div className="aboutme">
<GenericContent title="About x32">
In <a href="https://sites.google.com/site/x32abi/">short</a>: A... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9976412653923035,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-https-eof-for-eom.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... | 24702 | # 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": "Each ->\n\t\t@fakeUser =\n\t\t\t_id: '12390i'\n\t\t\temail: 'email2@foo.bar'\n\t\t\temails: [\n\t\t\t\t{ email: 'email1@foo.bar', reve",
"end": 427,
"score": 0.9999013543128967,
"start": 413,
"tag": "EMAIL",
"value": "email2@foo.bar"
},
{
"context": "mail: 'email2@foo.b... | test/unit/coffee/User/UserGetterTests.coffee | shyoshyo/web-sharelatex | 1 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserGetter"
expect = require("chai").expect
Errors = require "../../../../app/js/Features/Errors/... | 225343 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserGetter"
expect = require("chai").expect
Errors = require "../../../../app/js/Features/Errors/... | true | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserGetter"
expect = require("chai").expect
Errors = require "../../../../app/js/Features/Errors/... |
[
{
"context": "4-718f-4d41-b348-5b2ef578ad06'\n password_reset: 'a57c6003-5beb-4717-b1f9-8a5b38e08d33'\n share_licenses_joiner: 'b413fc9d-34a0-45aa-90b",
"end": 1582,
"score": 0.9993028044700623,
"start": 1546,
"tag": "PASSWORD",
"value": "a57c6003-5beb-4717-b1f9-8a5b38e08d33"
}
] | server/sendgrid.coffee | IngJuanRuiz/codecombat | 0 | config = require '../server_config'
sendgridAPI = require '@sendgrid/mail'
sendgridAPIKey = config.mail.sendgridAPIKey
log = require 'winston'
Promise = require 'bluebird'
debug = not config.isProduction
module.exports.api =
send: (context) ->
#log.debug('Tried to send email via SendGrid with context: ', JSON.st... | 48497 | config = require '../server_config'
sendgridAPI = require '@sendgrid/mail'
sendgridAPIKey = config.mail.sendgridAPIKey
log = require 'winston'
Promise = require 'bluebird'
debug = not config.isProduction
module.exports.api =
send: (context) ->
#log.debug('Tried to send email via SendGrid with context: ', JSON.st... | true | config = require '../server_config'
sendgridAPI = require '@sendgrid/mail'
sendgridAPIKey = config.mail.sendgridAPIKey
log = require 'winston'
Promise = require 'bluebird'
debug = not config.isProduction
module.exports.api =
send: (context) ->
#log.debug('Tried to send email via SendGrid with context: ', JSON.st... |
[
{
"context": "iew Rule to disallow a negated condition\n# @author Alberto Rodríguez\n###\n'use strict'\n\n#------------------------------",
"end": 85,
"score": 0.9998540282249451,
"start": 68,
"tag": "NAME",
"value": "Alberto Rodríguez"
}
] | src/rules/no-negated-condition.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Rule to disallow a negated condition
# @author Alberto Rodríguez
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#------------------------------------------------------------------------------
module.exports =
meta:
docs:
... | 62137 | ###*
# @fileoverview Rule to disallow a negated condition
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#------------------------------------------------------------------------------
module.exports =
meta:
docs:
descrip... | true | ###*
# @fileoverview Rule to disallow a negated condition
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#------------------------------------------------------------------------------
module.exports =
meta:
docs:... |
[
{
"context": "m('title', $(this).val())\n return\n key = 'post'\n else\n key = /\\w{24}/.exec(window.location)[",
"end": 851,
"score": 0.7906361222267151,
"start": 847,
"tag": "KEY",
"value": "post"
}
] | assets/js/editor.coffee | zhy0216-collection/Gather | 0 | $ ->
names = []
add_name = (ele) ->
name = $(ele).text()
if name not in names
names.push(name)
for a in $('.username')
add_name a
for a in $('.reply_user')
add_name a
$('#content').elastic().atWho '@', {data: names}
$('.reply').click ->
reply = $(this)
floor = reply.data(... | 217269 | $ ->
names = []
add_name = (ele) ->
name = $(ele).text()
if name not in names
names.push(name)
for a in $('.username')
add_name a
for a in $('.reply_user')
add_name a
$('#content').elastic().atWho '@', {data: names}
$('.reply').click ->
reply = $(this)
floor = reply.data(... | true | $ ->
names = []
add_name = (ele) ->
name = $(ele).text()
if name not in names
names.push(name)
for a in $('.username')
add_name a
for a in $('.reply_user')
add_name a
$('#content').elastic().atWho '@', {data: names}
$('.reply').click ->
reply = $(this)
floor = reply.data(... |
[
{
"context": "= grammar.tokenizeLine '{\"Client SB1\": {\"token\": \"abcd1234\"}}'\n expect(tokens[0]).toEqual value: '{', sco",
"end": 579,
"score": 0.8402810096740723,
"start": 571,
"tag": "KEY",
"value": "abcd1234"
}
] | spec/nstba-spec.coffee | caleb531/language-sca | 2 | describe 'NSTBA grammar', ->
grammar = null
beforeEach ->
atom.config.set('core.useTreeSitterParsers', false)
waitsForPromise ->
atom.packages.activatePackage('language-json')
waitsForPromise ->
atom.packages.activatePackage('language-sca')
runs ->
grammar = atom.grammars.grammar... | 48097 | describe 'NSTBA grammar', ->
grammar = null
beforeEach ->
atom.config.set('core.useTreeSitterParsers', false)
waitsForPromise ->
atom.packages.activatePackage('language-json')
waitsForPromise ->
atom.packages.activatePackage('language-sca')
runs ->
grammar = atom.grammars.grammar... | true | describe 'NSTBA grammar', ->
grammar = null
beforeEach ->
atom.config.set('core.useTreeSitterParsers', false)
waitsForPromise ->
atom.packages.activatePackage('language-json')
waitsForPromise ->
atom.packages.activatePackage('language-sca')
runs ->
grammar = atom.grammars.grammar... |
[
{
"context": "module.exports =\n michael:\n first_name: \"Michael\"\n last_name: \"Richar",
"end": 26,
"score": 0.813901424407959,
"start": 19,
"tag": "NAME",
"value": "michael"
},
{
"context": "module.exports =\n michael:\n first_name: \"Michael\"\n last_name: \"Richar... | app/sample-data.coffee | wmdmark/backbone-rivets-example | 28 | module.exports =
michael:
first_name: "Michael"
last_name: "Richards"
short_bio: "Ruby/JavaScript developer. Author of Rivets.js."
email: "mike22e@gmail.com"
twitter: "https://twitter.com/mikeric"
github: "http://github.com/mikeric"
website: ""
mark:
first_name: "Mark"
last_name:... | 138229 | module.exports =
<NAME>:
first_name: "<NAME>"
last_name: "<NAME>"
short_bio: "Ruby/JavaScript developer. Author of Rivets.js."
email: "<EMAIL>"
twitter: "https://twitter.com/mikeric"
github: "http://github.com/mikeric"
website: ""
mark:
first_name: "<NAME>"
last_name: "<NAME>"
... | true | module.exports =
PI:NAME:<NAME>END_PI:
first_name: "PI:NAME:<NAME>END_PI"
last_name: "PI:NAME:<NAME>END_PI"
short_bio: "Ruby/JavaScript developer. Author of Rivets.js."
email: "PI:EMAIL:<EMAIL>END_PI"
twitter: "https://twitter.com/mikeric"
github: "http://github.com/mikeric"
website: ""
... |
[
{
"context": "###*\n * 首页\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n{View} = req",
"end": 28,
"score": 0.999345600605011,
"start": 22,
"tag": "USERNAME",
"value": "vfasky"
},
{
"context": "###*\n * 首页\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n{View... | example/src/home.coffee | vfasky/mcore-weui | 0 | ###*
* 首页
* @author vfasky <vfasky@gmail.com>
###
'use strict'
{View} = require 'mcoreapp'
class Home extends View
run: ->
@render require('../tpl/home.html'),
list: [
{
url: '#/button'
title: '按钮'
desc: '直接调用,没有封装'
... | 25771 | ###*
* 首页
* @author vfasky <<EMAIL>>
###
'use strict'
{View} = require 'mcoreapp'
class Home extends View
run: ->
@render require('../tpl/home.html'),
list: [
{
url: '#/button'
title: '按钮'
desc: '直接调用,没有封装'
... | true | ###*
* 首页
* @author vfasky <PI:EMAIL:<EMAIL>END_PI>
###
'use strict'
{View} = require 'mcoreapp'
class Home extends View
run: ->
@render require('../tpl/home.html'),
list: [
{
url: '#/button'
title: '按钮'
desc: '直接调用,... |
[
{
"context": "e} = require 'nylas-exports'\n\nShowImportantKey = 'core.workspace.showImportant'\n\nclass MailImportantIcon extends React.Component",
"end": 256,
"score": 0.9785251021385193,
"start": 228,
"tag": "KEY",
"value": "core.workspace.showImportant"
}
] | packages/client-app/src/components/mail-important-icon.cjsx | cnheider/nylas-mail | 24,369 | _ = require 'underscore'
React = require 'react'
classNames = require 'classnames'
{Actions,
Utils,
Thread,
TaskFactory,
CategoryStore,
FocusedPerspectiveStore,
AccountStore} = require 'nylas-exports'
ShowImportantKey = 'core.workspace.showImportant'
class MailImportantIcon extends React.Component
@displayNam... | 146928 | _ = require 'underscore'
React = require 'react'
classNames = require 'classnames'
{Actions,
Utils,
Thread,
TaskFactory,
CategoryStore,
FocusedPerspectiveStore,
AccountStore} = require 'nylas-exports'
ShowImportantKey = '<KEY>'
class MailImportantIcon extends React.Component
@displayName: 'MailImportantIcon'
... | true | _ = require 'underscore'
React = require 'react'
classNames = require 'classnames'
{Actions,
Utils,
Thread,
TaskFactory,
CategoryStore,
FocusedPerspectiveStore,
AccountStore} = require 'nylas-exports'
ShowImportantKey = 'PI:KEY:<KEY>END_PI'
class MailImportantIcon extends React.Component
@displayName: 'MailIm... |
[
{
"context": "ess type == \"manyToOne\"\n foreign_key = \"#{key}_id\" unless foreign_key\n @attributes[foreign_key",
"end": 467,
"score": 0.9817367792129517,
"start": 465,
"tag": "KEY",
"value": "id"
},
{
"context": "\"integer\"\n )\n\n save: ->\n data = {}\n data... | src/javascripts/models/base.coffee | NprApp/npr | 0 | class Base
constructor: (data) ->
@_setProperties(data)
@store = angular.injector(["npr.app"]).get("Store")
@_ = angular.injector(["npr.app"]).get("_")
# @_rootScope = angular.injector(["npr.app"]).get("$rootScope")
# @_timeout = angular.injector(["npr.app"]).get("$timeout")
@_.each(_.keys(@a... | 1338 | class Base
constructor: (data) ->
@_setProperties(data)
@store = angular.injector(["npr.app"]).get("Store")
@_ = angular.injector(["npr.app"]).get("_")
# @_rootScope = angular.injector(["npr.app"]).get("$rootScope")
# @_timeout = angular.injector(["npr.app"]).get("$timeout")
@_.each(_.keys(@a... | true | class Base
constructor: (data) ->
@_setProperties(data)
@store = angular.injector(["npr.app"]).get("Store")
@_ = angular.injector(["npr.app"]).get("_")
# @_rootScope = angular.injector(["npr.app"]).get("$rootScope")
# @_timeout = angular.injector(["npr.app"]).get("$timeout")
@_.each(_.keys(@a... |
[
{
"context": "##\n#\n# Copyright 2014 Netflix, Inc.\n#\n# Licensed under the Apache Licen",
"end": 26,
"score": 0.9487088322639465,
"start": 23,
"tag": "NAME",
"value": "Net"
}
] | web-ui/public/coffee/apps/application.coffee | krishnachaitanyareddy/inviso | 162 | ##
#
# Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 92044 | ##
#
# Copyright 2014 <NAME>flix, Inc.
#
# 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 applicabl... | true | ##
#
# Copyright 2014 PI:NAME:<NAME>END_PIflix, Inc.
#
# 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 require... |
[
{
"context": "a.user.enable connection: ipa,\n username: 'test_user_enable'\n , ({config: {uid}}) ->\n uid.should.",
"end": 363,
"score": 0.9991549253463745,
"start": 347,
"tag": "USERNAME",
"value": "test_user_enable"
},
{
"context": " sn: 'Disable'\n m... | packages/ipa/test/user/enable.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 0 |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user.enable', ->
describe 'schema', ->
they 'use `username` as alias for `uid`', ({ssh}) ->
nikita
$ssh: ssh
.ipa.user.enable connectio... | 134936 |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user.enable', ->
describe 'schema', ->
they 'use `username` as alias for `uid`', ({ssh}) ->
nikita
$ssh: ssh
.ipa.user.enable connectio... | true |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user.enable', ->
describe 'schema', ->
they 'use `username` as alias for `uid`', ({ssh}) ->
nikita
$ssh: ssh
.ipa.user.enable connectio... |
[
{
"context": ">\n it \"unpacks signals\", ->\n name = new Slot(\"John\")\n outer = new Slot(name)\n vals = []\n\n u",
"end": 240,
"score": 0.998354434967041,
"start": 236,
"tag": "NAME",
"value": "John"
},
{
"context": "\n vals.push val\n assert.deepEqual vals, [... | test/methods/latest.coffee | trello/hearsay | 5 | latest = require 'hearsay/methods/latest'
Emitter = require 'hearsay/emitter'
Slot = require 'hearsay/slot'
defer = require 'util/defer'
{ assert } = require 'chai'
describe "latest", ->
it "unpacks signals", ->
name = new Slot("John")
outer = new Slot(name)
vals = []
unsubscribe = latest.call(outer... | 220118 | latest = require 'hearsay/methods/latest'
Emitter = require 'hearsay/emitter'
Slot = require 'hearsay/slot'
defer = require 'util/defer'
{ assert } = require 'chai'
describe "latest", ->
it "unpacks signals", ->
name = new Slot("<NAME>")
outer = new Slot(name)
vals = []
unsubscribe = latest.call(out... | true | latest = require 'hearsay/methods/latest'
Emitter = require 'hearsay/emitter'
Slot = require 'hearsay/slot'
defer = require 'util/defer'
{ assert } = require 'chai'
describe "latest", ->
it "unpacks signals", ->
name = new Slot("PI:NAME:<NAME>END_PI")
outer = new Slot(name)
vals = []
unsubscribe = l... |
[
{
"context": " HTTP POST request to create a checklist.\r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass CreateAircraftC",
"end": 158,
"score": 0.9998100996017456,
"start": 146,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/specification/request/ajax/CreateAircraftChecklistAjaxRequest.coffee | qrefdev/qref | 0 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a checklist.
@author Nathan Klick
@copyright QRef 2012
###
class CreateAircraftChecklistAjaxRequest extends AjaxRequest
###
@property [ObjectId] (Required) The manufacturer that this check... | 51939 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a checklist.
@author <NAME>
@copyright QRef 2012
###
class CreateAircraftChecklistAjaxRequest extends AjaxRequest
###
@property [ObjectId] (Required) The manufacturer that this checklist i... | true | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a checklist.
@author PI:NAME:<NAME>END_PI
@copyright QRef 2012
###
class CreateAircraftChecklistAjaxRequest extends AjaxRequest
###
@property [ObjectId] (Required) The manufacturer that th... |
[
{
"context": " <a href=\"#\"><i class=\"fa fa-envelope\"></i>support@company.com</a>\n </li>\n <",
"end": 9194,
"score": 0.9998334646224976,
"start": 9175,
"tag": "EMAIL",
"value": "support@company.com"
},
{
"context": "put type=\"text\" cla... | snippets/snippets.cson | bhavana05/bootstrap-snippets-atom | 1 |
# html and erb
'.text.html.basic , .text.html.erb':
'bootstrap media':
'prefix': 'media'
'body': """
<div class="media">
<div class="media-left">
$1
</div>
<div class="media-body">
$2
</div>
<div class="media-right">
$3
</div... | 36403 |
# html and erb
'.text.html.basic , .text.html.erb':
'bootstrap media':
'prefix': 'media'
'body': """
<div class="media">
<div class="media-left">
$1
</div>
<div class="media-body">
$2
</div>
<div class="media-right">
$3
</div... | true |
# html and erb
'.text.html.basic , .text.html.erb':
'bootstrap media':
'prefix': 'media'
'body': """
<div class="media">
<div class="media-left">
$1
</div>
<div class="media-body">
$2
</div>
<div class="media-right">
$3
</div... |
[
{
"context": "assword'\n username: document.getElementById('username').value.trim(),\n password: document.getEleme",
"end": 3267,
"score": 0.998362123966217,
"start": 3259,
"tag": "USERNAME",
"value": "username"
},
{
"context": ".trim(),\n password: document.getElement... | src/auth.coffee | Schine/StarMade-Launcher | 7 | 'use strict'
REGISTRY_TOKEN_URL = 'https://registry.star-made.org/oauth/token'
REGISTRY_REGISTER_URL = 'https://registry.star-made.org/api/v1/users.json'
electron = require('electron')
request = require('request')
ipc = electron.ipcRenderer
remote = electron.remote
util = require('./util')
log = require(... | 198453 | 'use strict'
REGISTRY_TOKEN_URL = 'https://registry.star-made.org/oauth/token'
REGISTRY_REGISTER_URL = 'https://registry.star-made.org/api/v1/users.json'
electron = require('electron')
request = require('request')
ipc = electron.ipcRenderer
remote = electron.remote
util = require('./util')
log = require(... | true | 'use strict'
REGISTRY_TOKEN_URL = 'https://registry.star-made.org/oauth/token'
REGISTRY_REGISTER_URL = 'https://registry.star-made.org/api/v1/users.json'
electron = require('electron')
request = require('request')
ipc = electron.ipcRenderer
remote = electron.remote
util = require('./util')
log = require(... |
[
{
"context": "tics'\nanalytics = new GoogleAnalytics\n account: 'UA-1224199-59'\n domain: 'floatingforests.org'\n\n$(\".readymade-c",
"end": 1683,
"score": 0.9992968440055847,
"start": 1670,
"tag": "KEY",
"value": "UA-1224199-59"
}
] | overrides.coffee | zooniverse/floatingforests | 1 | translate = require "t7e"
enUs = require './translations/en-us'
translate.load enUs
LanguageManager = require 'zooniverse/lib/language-manager'
languageManager = new LanguageManager
translations:
en: label: 'English', strings: enUs
es: label: 'Español', strings: './translations/es.json'
pl: label: 'Polsk... | 139345 | translate = require "t7e"
enUs = require './translations/en-us'
translate.load enUs
LanguageManager = require 'zooniverse/lib/language-manager'
languageManager = new LanguageManager
translations:
en: label: 'English', strings: enUs
es: label: 'Español', strings: './translations/es.json'
pl: label: 'Polsk... | true | translate = require "t7e"
enUs = require './translations/en-us'
translate.load enUs
LanguageManager = require 'zooniverse/lib/language-manager'
languageManager = new LanguageManager
translations:
en: label: 'English', strings: enUs
es: label: 'Español', strings: './translations/es.json'
pl: label: 'Polsk... |
[
{
"context": "date gameid, {$push: players: {id: playerid, name: name, score: 0}}\n removePlayer: ({playerid, gameid}",
"end": 454,
"score": 0.8318675756454468,
"start": 450,
"tag": "NAME",
"value": "name"
}
] | komodo/play.coffee | KamikazeKumquatsLLC/komodo | 1 | Router.route "/play/:shortid", ->
@wait Meteor.subscribe "quizPlay", @params.shortid
if @ready()
@layout ""
Session.set "gameid", LiveGames.findOne(shortid: @params.shortid)._id
@render "play", data: -> LiveGames.findOne shortid: @params.shortid
else
@render "loading"
M... | 137045 | Router.route "/play/:shortid", ->
@wait Meteor.subscribe "quizPlay", @params.shortid
if @ready()
@layout ""
Session.set "gameid", LiveGames.findOne(shortid: @params.shortid)._id
@render "play", data: -> LiveGames.findOne shortid: @params.shortid
else
@render "loading"
M... | true | Router.route "/play/:shortid", ->
@wait Meteor.subscribe "quizPlay", @params.shortid
if @ready()
@layout ""
Session.set "gameid", LiveGames.findOne(shortid: @params.shortid)._id
@render "play", data: -> LiveGames.findOne shortid: @params.shortid
else
@render "loading"
M... |
[
{
"context": " when 'uglify-js' then key = 'jsParametersForUglifyJS2'\n when 'yui-js' th",
"end": 2006,
"score": 0.5540145039558411,
"start": 1996,
"tag": "KEY",
"value": "Parameters"
},
{
"context": "S2'\n when 'yui-js' then ke... | atom-minify/lib/minifier-options-parser.coffee | raintao/Atom_packages | 34 | module.exports =
class AtomMinifyMinifierOptionsParser
parse: (contentType, options, inlineParameters) ->
@contentType = contentType
@options = options
@inlineParameters = inlineParameters
optionsStr = @getMinifierOptionsStr()
regex = /(?:([\w-\.]+)(?:\s*=\s*(?:(?:'(.*?)')|... | 160334 | module.exports =
class AtomMinifyMinifierOptionsParser
parse: (contentType, options, inlineParameters) ->
@contentType = contentType
@options = options
@inlineParameters = inlineParameters
optionsStr = @getMinifierOptionsStr()
regex = /(?:([\w-\.]+)(?:\s*=\s*(?:(?:'(.*?)')|... | true | module.exports =
class AtomMinifyMinifierOptionsParser
parse: (contentType, options, inlineParameters) ->
@contentType = contentType
@options = options
@inlineParameters = inlineParameters
optionsStr = @getMinifierOptionsStr()
regex = /(?:([\w-\.]+)(?:\s*=\s*(?:(?:'(.*?)')|... |
[
{
"context": "@getAvatarUrlFromUsername = (username) ->\n\tkey = \"avatar_random_#{username}\"\n\trandom = Session.keys[key] or 0\n\tif not username",
"end": 76,
"score": 0.9989919662475586,
"start": 50,
"tag": "KEY",
"value": "avatar_random_#{username}\""
},
{
"context": "\n\n@updat... | packages/rocketchat-livechat/app/client/lib/fromApp/avatar.coffee | Cosecha/rocket-chat-stable | 2 | @getAvatarUrlFromUsername = (username) ->
key = "avatar_random_#{username}"
random = Session.keys[key] or 0
if not username?
return
return "#{Meteor.absoluteUrl()}avatar/#{username}.jpg?_dc=#{random}"
@updateAvatarOfUsername = (username) ->
key = "avatar_random_#{username}"
Session.set key, Math.round(Math.ra... | 163975 | @getAvatarUrlFromUsername = (username) ->
key = "<KEY>
random = Session.keys[key] or 0
if not username?
return
return "#{Meteor.absoluteUrl()}avatar/#{username}.jpg?_dc=#{random}"
@updateAvatarOfUsername = (username) ->
key = "<KEY>
Session.set key, Math.round(Math.random() * 1000)
for key, room of RoomMana... | true | @getAvatarUrlFromUsername = (username) ->
key = "PI:KEY:<KEY>END_PI
random = Session.keys[key] or 0
if not username?
return
return "#{Meteor.absoluteUrl()}avatar/#{username}.jpg?_dc=#{random}"
@updateAvatarOfUsername = (username) ->
key = "PI:KEY:<KEY>END_PI
Session.set key, Math.round(Math.random() * 1000)
... |
[
{
"context": "table.setAverageLogged(0)\n @user = new User('Aaron Sky', 'aaronsky', true, timetable)\n @projectName",
"end": 883,
"score": 0.9998140931129456,
"start": 874,
"tag": "NAME",
"value": "Aaron Sky"
},
{
"context": "ageLogged(0)\n @user = new User('Aaron Sky'... | tests/models/test_punch.coffee | fangamer/ibizan | 0 |
moment = require 'moment'
expect = require('chai').expect
Organization = require('../../src/models/organization').get('test')
MockSheet = require '../mocks/mock_sheet.js'
Organization.spreadsheet.sheet = MockSheet
Project = require '../../src/models/project'
{ User, Timetable } = require '../../src/models/user'
Punch... | 153182 |
moment = require 'moment'
expect = require('chai').expect
Organization = require('../../src/models/organization').get('test')
MockSheet = require '../mocks/mock_sheet.js'
Organization.spreadsheet.sheet = MockSheet
Project = require '../../src/models/project'
{ User, Timetable } = require '../../src/models/user'
Punch... | true |
moment = require 'moment'
expect = require('chai').expect
Organization = require('../../src/models/organization').get('test')
MockSheet = require '../mocks/mock_sheet.js'
Organization.spreadsheet.sheet = MockSheet
Project = require '../../src/models/project'
{ User, Timetable } = require '../../src/models/user'
Punch... |
[
{
"context": " runs ->\n findView.findEditor.setText 'kitten'\n editorView.trigger 'find-and-replace:sho",
"end": 1951,
"score": 0.9709285497665405,
"start": 1945,
"tag": "NAME",
"value": "kitten"
},
{
"context": "osition([2,0])\n findView.findEditor.setText 'n... | spec/find-view-spec.coffee | abe33/find-and-replace | 1 | _ = require 'underscore-plus'
{$, EditorView, WorkspaceView} = require 'atom'
path = require 'path'
describe 'FindView', ->
[editorView, editor, findView, activationPromise] = []
beforeEach ->
spyOn(atom, 'beep')
atom.workspaceView = new WorkspaceView()
atom.project.setPath(path.join(__dirname, 'fixt... | 52761 | _ = require 'underscore-plus'
{$, EditorView, WorkspaceView} = require 'atom'
path = require 'path'
describe 'FindView', ->
[editorView, editor, findView, activationPromise] = []
beforeEach ->
spyOn(atom, 'beep')
atom.workspaceView = new WorkspaceView()
atom.project.setPath(path.join(__dirname, 'fixt... | true | _ = require 'underscore-plus'
{$, EditorView, WorkspaceView} = require 'atom'
path = require 'path'
describe 'FindView', ->
[editorView, editor, findView, activationPromise] = []
beforeEach ->
spyOn(atom, 'beep')
atom.workspaceView = new WorkspaceView()
atom.project.setPath(path.join(__dirname, 'fixt... |
[
{
"context": " \"support_letter\": {\n \"first_name\": first_name,\n \"last_name\": last_name,\n ",
"end": 3651,
"score": 0.7786914706230164,
"start": 3641,
"tag": "NAME",
"value": "first_name"
},
{
"context": "\"first_name\": first_name,\n ... | app/assets/javascripts/frontend/custom_questions/support_letters.js.coffee | wowonrails/qae | 2 | window.SupportLetters =
init: ->
$('.js-support-letter-attachment').each (idx, el) ->
SupportLetters.fileupload_init(el)
SupportLetters.save_collection_init()
new_item_init: (el) ->
SupportLetters.clean_up_system_tags(el)
SupportLetters.enable_item_fields_and_controls(el)
SupportLetters.f... | 4660 | window.SupportLetters =
init: ->
$('.js-support-letter-attachment').each (idx, el) ->
SupportLetters.fileupload_init(el)
SupportLetters.save_collection_init()
new_item_init: (el) ->
SupportLetters.clean_up_system_tags(el)
SupportLetters.enable_item_fields_and_controls(el)
SupportLetters.f... | true | window.SupportLetters =
init: ->
$('.js-support-letter-attachment').each (idx, el) ->
SupportLetters.fileupload_init(el)
SupportLetters.save_collection_init()
new_item_init: (el) ->
SupportLetters.clean_up_system_tags(el)
SupportLetters.enable_item_fields_and_controls(el)
SupportLetters.f... |
[
{
"context": "=new studentModel\n# sno: '123456'\n# sname: '123456'\n# gender: '男'\n# class: '123456'\n# depar",
"end": 501,
"score": 0.79005366563797,
"start": 495,
"tag": "NAME",
"value": "123456"
}
] | test/studentTest.coffee | ycjcl868/StudentInfo | 0 | db = require('../config/database');
mongoose = require 'mongoose'
studentModel = require('../model/Student');
#for i in [20113092..20113122]
# studentEntity = new student
# sno: '' + i
# sname: '' + i
# gender: if Math.random() > 0.5 then '男' else '女'
# class: '2011221'
# departm... | 23469 | db = require('../config/database');
mongoose = require 'mongoose'
studentModel = require('../model/Student');
#for i in [20113092..20113122]
# studentEntity = new student
# sno: '' + i
# sname: '' + i
# gender: if Math.random() > 0.5 then '男' else '女'
# class: '2011221'
# departm... | true | db = require('../config/database');
mongoose = require 'mongoose'
studentModel = require('../model/Student');
#for i in [20113092..20113122]
# studentEntity = new student
# sno: '' + i
# sname: '' + i
# gender: if Math.random() > 0.5 then '男' else '女'
# class: '2011221'
# departm... |
[
{
"context": "ated by the following individuals:\n# Ethernet by Michael Anthony from The Noun Project\n# Wireless by Piotrek Chu",
"end": 361,
"score": 0.9998860359191895,
"start": 346,
"tag": "NAME",
"value": "Michael Anthony"
},
{
"context": "hael Anthony from The Noun Project\... | network-info.widget/network-info.widget.coffee | orbitbot/ubersicht-widgets | 0 | #--------------------------------------------------------------------------------------
# Please Read
#--------------------------------------------------------------------------------------
# The images used in this widget are from the Noun Project (http://thenounproject.com).
#
# They were created by the following ind... | 120650 | #--------------------------------------------------------------------------------------
# Please Read
#--------------------------------------------------------------------------------------
# The images used in this widget are from the Noun Project (http://thenounproject.com).
#
# They were created by the following ind... | true | #--------------------------------------------------------------------------------------
# Please Read
#--------------------------------------------------------------------------------------
# The images used in this widget are from the Noun Project (http://thenounproject.com).
#
# They were created by the following ind... |
[
{
"context": "abLength: 4\n \"exception-reporting\":\n userId: \"1a71acde-aaec-49ce-a555-e567e98fcbaf\"\n github:\n remoteFetchProtocol: \"ssh\"\n \"lint",
"end": 516,
"score": 0.9746516346931458,
"start": 480,
"tag": "PASSWORD",
"value": "1a71acde-aaec-49ce-a555-e567e98fcbaf"
}
] | config.cson | pgrepds/atom-config | 0 | "*":
Hydrogen:
gateways: '''
[{
"name": "Remote server",
"options": {
"baseUrl": "http://localhost:8888",
}
}]
'''
globalMode: true
languageMappings: "{ \"sagemath\": \"Sage\", \"python\": \"magicpython\" }"
"autocomplete-python":
useKite: false
co... | 141976 | "*":
Hydrogen:
gateways: '''
[{
"name": "Remote server",
"options": {
"baseUrl": "http://localhost:8888",
}
}]
'''
globalMode: true
languageMappings: "{ \"sagemath\": \"Sage\", \"python\": \"magicpython\" }"
"autocomplete-python":
useKite: false
co... | true | "*":
Hydrogen:
gateways: '''
[{
"name": "Remote server",
"options": {
"baseUrl": "http://localhost:8888",
}
}]
'''
globalMode: true
languageMappings: "{ \"sagemath\": \"Sage\", \"python\": \"magicpython\" }"
"autocomplete-python":
useKite: false
co... |
[
{
"context": "# Author: Josh Bass\n\nReact = require(\"react\");\nmathjs = require(\"math",
"end": 19,
"score": 0.9998685121536255,
"start": 10,
"tag": "NAME",
"value": "Josh Bass"
},
{
"context": " getInitialState: ->\n @filter_types = [{key: \"first_name\", name: \"First Name\"... | src/client/components/customers/CustomerView.coffee | jbass86/Aroma | 0 | # Author: Josh Bass
React = require("react");
mathjs = require("mathjs");
CreateCustomer = require("./CustomerCreate.coffee");
CustomerTable = require("./CustomerTable.coffee");
Filters = require("client/components/filters/FiltersView.coffee");
css = require("./res/styles/customers.scss")
module.exports = React.cre... | 191985 | # Author: <NAME>
React = require("react");
mathjs = require("mathjs");
CreateCustomer = require("./CustomerCreate.coffee");
CustomerTable = require("./CustomerTable.coffee");
Filters = require("client/components/filters/FiltersView.coffee");
css = require("./res/styles/customers.scss")
module.exports = React.create... | true | # Author: PI:NAME:<NAME>END_PI
React = require("react");
mathjs = require("mathjs");
CreateCustomer = require("./CustomerCreate.coffee");
CustomerTable = require("./CustomerTable.coffee");
Filters = require("client/components/filters/FiltersView.coffee");
css = require("./res/styles/customers.scss")
module.exports ... |
[
{
"context": "\t\t\t\t@newAccessLevel = 'tokenBased'\n\t\t\t\t@tokens = {readOnly: 'aaa', readAndWrite: '42bbb'}\n\t\t\t\t@ProjectDetail",
"end": 16833,
"score": 0.8922584056854248,
"start": 16825,
"tag": "KEY",
"value": "readOnly"
},
{
"context": "essLevel = 'tokenBased'\n\t\t\t\t@t... | test/unit/coffee/Editor/EditorControllerTests.coffee | davidmehren/web-sharelatex | 0 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... | 37401 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... | true | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
expect = require("chai").expect
modulePath = require('path').join __dirname, '../../../../app/js/Features/Editor/EditorController'
MockClient = require "../helpers/MockClient"
assert = require('assert')
describe "EditorCon... |
[
{
"context": "nt true)\n return ''\n else\n whoto = ['help@openaccessbutton.org']\n text = ''\n for k of this.request.bod",
"end": 3440,
"score": 0.9999312162399292,
"start": 3415,
"tag": "EMAIL",
"value": "help@openaccessbutton.org"
},
{
"context": "rm in ['wr... | noddy/service/v2/api.coffee | oaworks/API | 2 |
import moment from 'moment'
API.service ?= {}
API.service.oab ?= {}
# these are global so can be accessed on other oabutton files
@oab_support = new API.collection {index:"oab",type:"support"}
@oab_catalogue = new API.collection {index:"oab",type:"catalogue"}
@oab_request = new API.collection {index:"oab",type:"requ... | 165718 |
import moment from 'moment'
API.service ?= {}
API.service.oab ?= {}
# these are global so can be accessed on other oabutton files
@oab_support = new API.collection {index:"oab",type:"support"}
@oab_catalogue = new API.collection {index:"oab",type:"catalogue"}
@oab_request = new API.collection {index:"oab",type:"requ... | true |
import moment from 'moment'
API.service ?= {}
API.service.oab ?= {}
# these are global so can be accessed on other oabutton files
@oab_support = new API.collection {index:"oab",type:"support"}
@oab_catalogue = new API.collection {index:"oab",type:"catalogue"}
@oab_request = new API.collection {index:"oab",type:"requ... |
[
{
"context": "#\n# The MIT License (MIT)\n#\n# Copyright (c) 2015 - Studionet\n#\n# Permission is hereby granted, free of ",
"end": 55,
"score": 0.5654720067977905,
"start": 53,
"tag": "USERNAME",
"value": "St"
},
{
"context": " The MIT License (MIT)\n#\n# Copyright (c) 2015 - Studio... | sources/coffee/tags-input.coffee | studio-net/tags-input | 3 | ###
# The MIT License (MIT)
#
# Copyright (c) 2015 - Studionet
#
# 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, m... | 7155 | ###
# The MIT License (MIT)
#
# Copyright (c) 2015 - St<NAME>
#
# 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, mo... | true | ###
# The MIT License (MIT)
#
# Copyright (c) 2015 - StPI:NAME:<NAME>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... |
[
{
"context": " at Bob and observer whether they\n # propagate to Alice as a remote ref with Bob's peer name (not Bob's p",
"end": 1740,
"score": 0.7694295048713684,
"start": 1735,
"tag": "NAME",
"value": "Alice"
},
{
"context": "r they\n # propagate to Alice as a remote ref with Bo... | packages/nog-sync/nog-sync-peer-sync-tests.coffee | nogproject/nog | 0 | { createTestPeers } = require './nog-sync-peer-tests.coffee'
{ createContentFaker } = require './nog-sync-store-tests.coffee'
NULL_SHA1 = '0000000000000000000000000000000000000000'
describe 'nog-sync', ->
peers = null
euid = null
aliceOwner = null
AliceMain = null
BobMain = null
rndBob = null
contentF... | 104368 | { createTestPeers } = require './nog-sync-peer-tests.coffee'
{ createContentFaker } = require './nog-sync-store-tests.coffee'
NULL_SHA1 = '0000000000000000000000000000000000000000'
describe 'nog-sync', ->
peers = null
euid = null
aliceOwner = null
AliceMain = null
BobMain = null
rndBob = null
contentF... | true | { createTestPeers } = require './nog-sync-peer-tests.coffee'
{ createContentFaker } = require './nog-sync-store-tests.coffee'
NULL_SHA1 = '0000000000000000000000000000000000000000'
describe 'nog-sync', ->
peers = null
euid = null
aliceOwner = null
AliceMain = null
BobMain = null
rndBob = null
contentF... |
[
{
"context": ".tooltip()\n\t\t, 500)\n\n\t\t$scope.about = {\n\t\t\tmail: 'joel.dumoulin@hefr.ch'\n\t\t\thomepage: 'http://joel.dumoulin.ch'\n\t\t\tlinked",
"end": 2334,
"score": 0.9999139904975891,
"start": 2313,
"tag": "EMAIL",
"value": "joel.dumoulin@hefr.ch"
},
{
"context": "ulin... | ers_frontend/app/scripts/home/home.coffee | dumoulinj/erf | 0 | 'use strict'
# app.home Module
#
# @abstract Home controllers
angular
.module 'app.home', []
.config ($stateProvider, $urlRouterProvider) ->
$stateProvider
.state 'home', {
url: '/home',
templateUrl: '/partials/home.html',
controller: 'HomeCtrl'
}
.state 'about', {
url: '/about',
temp... | 140910 | 'use strict'
# app.home Module
#
# @abstract Home controllers
angular
.module 'app.home', []
.config ($stateProvider, $urlRouterProvider) ->
$stateProvider
.state 'home', {
url: '/home',
templateUrl: '/partials/home.html',
controller: 'HomeCtrl'
}
.state 'about', {
url: '/about',
temp... | true | 'use strict'
# app.home Module
#
# @abstract Home controllers
angular
.module 'app.home', []
.config ($stateProvider, $urlRouterProvider) ->
$stateProvider
.state 'home', {
url: '/home',
templateUrl: '/partials/home.html',
controller: 'HomeCtrl'
}
.state 'about', {
url: '/about',
temp... |
[
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright (C) 2014 Jesús Espino ",
"end": 38,
"score": 0.9998860359191895,
"start": 25,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright... | public/taiga-front/app/coffee/modules/auth.coffee | mabotech/maboss | 0 | ###
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
... | 8601 | ###
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
#
# 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... | true | ###
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gen... |
[
{
"context": " token: $stateParams.token, pass: $scope.userData.password\n }).then ->\n $scope.processing = ",
"end": 533,
"score": 0.8250743746757507,
"start": 525,
"tag": "PASSWORD",
"value": "password"
}
] | src/controllers/public/reset.coffee | ah450/guclink-auth-www | 0 | angular.module 'guclinkAuth'
.controller 'ResetController', ($scope, AUTH_BASE_URL, $stateParams,
$timeout, $state, $http, authConfigurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope... | 62984 | angular.module 'guclinkAuth'
.controller 'ResetController', ($scope, AUTH_BASE_URL, $stateParams,
$timeout, $state, $http, authConfigurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope... | true | angular.module 'guclinkAuth'
.controller 'ResetController', ($scope, AUTH_BASE_URL, $stateParams,
$timeout, $state, $http, authConfigurations) ->
$scope.processing = false
$scope.done = false
$scope.userData = {}
$scope.resetPassword = ->
return if $scope.processing
$scope... |
[
{
"context": "ror\n contents = {\n name: \"Untitled Note\"\n content: raw.toString()\n",
"end": 4201,
"score": 0.6832018494606018,
"start": 4198,
"tag": "NAME",
"value": "Unt"
}
] | app/controllers/upgrader.coffee | sarthakganguly/notes | 191 | ###############
# If you're reading this code, and you're like
# ERMAGERD, WHY IS THIS IDIOT USING NODE.JS, S`NOT EVEN ASYNC!!11!!
# Well, it's because Spine doesn't work too well when it's async.
# Not sure why, it just loves to run out of memory and crash.
###############
Spine = require 'spine'
marked = require 'mar... | 59016 | ###############
# If you're reading this code, and you're like
# ERMAGERD, WHY IS THIS IDIOT USING NODE.JS, S`NOT EVEN ASYNC!!11!!
# Well, it's because Spine doesn't work too well when it's async.
# Not sure why, it just loves to run out of memory and crash.
###############
Spine = require 'spine'
marked = require 'mar... | true | ###############
# If you're reading this code, and you're like
# ERMAGERD, WHY IS THIS IDIOT USING NODE.JS, S`NOT EVEN ASYNC!!11!!
# Well, it's because Spine doesn't work too well when it's async.
# Not sure why, it just loves to run out of memory and crash.
###############
Spine = require 'spine'
marked = require 'mar... |
[
{
"context": "###*\n@author Mat Groves http://matgroves.com/ @Doormat23\n###\n\ndefine 'Cof",
"end": 23,
"score": 0.9998793005943298,
"start": 13,
"tag": "NAME",
"value": "Mat Groves"
},
{
"context": "###*\n@author Mat Groves http://matgroves.com/ @Doormat23\n###\n\ndefine 'Coffixi/p... | src/Coffixi/primitives/Graphics.coffee | namuol/Coffixi | 1 | ###*
@author Mat Groves http://matgroves.com/ @Doormat23
###
define 'Coffixi/primitives/Graphics', [
'Coffixi/display/DisplayObjectContainer'
'Coffixi/core/RenderTypes'
], (
DisplayObjectContainer
RenderTypes
) ->
###*
The Graphics class contains a set of methods that you can use to create primitive shape... | 70781 | ###*
@author <NAME> http://matgroves.com/ @Doormat23
###
define 'Coffixi/primitives/Graphics', [
'Coffixi/display/DisplayObjectContainer'
'Coffixi/core/RenderTypes'
], (
DisplayObjectContainer
RenderTypes
) ->
###*
The Graphics class contains a set of methods that you can use to create primitive shapes an... | true | ###*
@author PI:NAME:<NAME>END_PI http://matgroves.com/ @Doormat23
###
define 'Coffixi/primitives/Graphics', [
'Coffixi/display/DisplayObjectContainer'
'Coffixi/core/RenderTypes'
], (
DisplayObjectContainer
RenderTypes
) ->
###*
The Graphics class contains a set of methods that you can use to create primi... |
[
{
"context": " 'Esquema del caso:'\n 'Eixemplos:'\n 'Dau '\n 'Dada '\n 'Daus '\n 'Dadas '\n ",
"end": 193,
"score": 0.9995157718658447,
"start": 190,
"tag": "NAME",
"value": "Dau"
},
{
"context": "del caso:'\n 'Eixemplos:'\n 'Dau '\n 'Dad... | settings/language-gherkin_an.cson | mackoj/language-gherkin-i18n | 17 | '.text.gherkin.feature.an':
'editor':
'completions': [
'Caracteristica:'
'Antecedents:'
'Eixemplo:'
'Caso:'
'Esquema del caso:'
'Eixemplos:'
'Dau '
'Dada '
'Daus '
'Dadas '
'Cuan '
'Alavez '
'Allora '
'Antonces '
'Pero '
... | 97646 | '.text.gherkin.feature.an':
'editor':
'completions': [
'Caracteristica:'
'Antecedents:'
'Eixemplo:'
'Caso:'
'Esquema del caso:'
'Eixemplos:'
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<N... | true | '.text.gherkin.feature.an':
'editor':
'completions': [
'Caracteristica:'
'Antecedents:'
'Eixemplo:'
'Caso:'
'Esquema del caso:'
'Eixemplos:'
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<N... |
[
{
"context": "###******************************\n* StromBewusst - UDP Simulator\n# *******************************",
"end": 49,
"score": 0.9983446002006531,
"start": 37,
"tag": "NAME",
"value": "StromBewusst"
}
] | server/udp_simulation.coffee | rastapasta/strombewusst | 0 | ###******************************
* StromBewusst - UDP Simulator
# *******************************
###
dgram = require "dgram"
message = new Buffer "\xAA\xBB\xCC\xDD\xEE\xFF\x3C\x01"
client = dgram.createSocket "udp4"
client.send message, 0, message.length, 8888, "localhost", (err, bytes) ->
client.close()
| 204404 | ###******************************
* <NAME> - UDP Simulator
# *******************************
###
dgram = require "dgram"
message = new Buffer "\xAA\xBB\xCC\xDD\xEE\xFF\x3C\x01"
client = dgram.createSocket "udp4"
client.send message, 0, message.length, 8888, "localhost", (err, bytes) ->
client.close()
| true | ###******************************
* PI:NAME:<NAME>END_PI - UDP Simulator
# *******************************
###
dgram = require "dgram"
message = new Buffer "\xAA\xBB\xCC\xDD\xEE\xFF\x3C\x01"
client = dgram.createSocket "udp4"
client.send message, 0, message.length, 8888, "localhost", (err, bytes) ->
client.close()... |
[
{
"context": ", 'success', 4\n \n save: (name, data)->\n key = @generateKey(name)\n if ws then ws.set(key, JSON.stringify(data))\n",
"end": 5110,
"score": 0.8922513127326965,
"start": 5092,
"tag": "KEY",
"value": "@generateKey(name)"
},
{
"context": " @behaviorLoad()\n\n bac... | src/choreographer/app/assets/javascripts/aesthetic_actuation/levels/Actuator/ActuatorWidgets.js.coffee | Hybrid-Ecologies/a-conversation-with-actuators | 0 | window.SPECIAL_KEYS = [32]
$ ->
$(document).keypress (event) ->
# console.log event
# console.log event.which, Widget.bindings
if Widget.bindings_on
if event.ctrlKey or _.includes window.SPECIAL_KEYS, event.which
console.log "WIDGET ACTIVATED", event.which
event.preventDefault(... | 180258 | window.SPECIAL_KEYS = [32]
$ ->
$(document).keypress (event) ->
# console.log event
# console.log event.which, Widget.bindings
if Widget.bindings_on
if event.ctrlKey or _.includes window.SPECIAL_KEYS, event.which
console.log "WIDGET ACTIVATED", event.which
event.preventDefault(... | true | window.SPECIAL_KEYS = [32]
$ ->
$(document).keypress (event) ->
# console.log event
# console.log event.which, Widget.bindings
if Widget.bindings_on
if event.ctrlKey or _.includes window.SPECIAL_KEYS, event.which
console.log "WIDGET ACTIVATED", event.which
event.preventDefault(... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999128580093384,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/_components/flag-country.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { span } from 'react-dom-factories'
el = React.createElement
bn = 'flag-country'
export FlagCountry = ({c... | 13992 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { span } from 'react-dom-factories'
el = React.createElement
bn = 'flag-country'
export FlagCountry = ({country,... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { span } from 'react-dom-factories'
el = React.createElement
bn = 'flag-country'
export FlagCount... |
[
{
"context": "place to get drunk with your guildies!\n *\n * @name Tavern\n * @category Buildings\n * @package Guild\n * @cost",
"end": 136,
"score": 0.9660488963127136,
"start": 130,
"tag": "NAME",
"value": "Tavern"
},
{
"context": "Cost = (level) -> level * 50000\n\n f =\n name... | src/map/guild-buildings/Tavern.coffee | jawsome/IdleLands | 3 |
GuildBuilding = require "../GuildBuilding"
`/**
* The Tavern provides you a place to get drunk with your guildies!
*
* @name Tavern
* @category Buildings
* @package Guild
* @cost {level-up} level*50000
* @size {lg}
*/`
class Tavern extends GuildBuilding
@size = Tavern::size = "lg"
@desc = Tavern::desc = ... | 64758 |
GuildBuilding = require "../GuildBuilding"
`/**
* The Tavern provides you a place to get drunk with your guildies!
*
* @name <NAME>
* @category Buildings
* @package Guild
* @cost {level-up} level*50000
* @size {lg}
*/`
class Tavern extends GuildBuilding
@size = Tavern::size = "lg"
@desc = Tavern::desc = ... | true |
GuildBuilding = require "../GuildBuilding"
`/**
* The Tavern provides you a place to get drunk with your guildies!
*
* @name PI:NAME:<NAME>END_PI
* @category Buildings
* @package Guild
* @cost {level-up} level*50000
* @size {lg}
*/`
class Tavern extends GuildBuilding
@size = Tavern::size = "lg"
@desc = T... |
[
{
"context": "/:id', ->\n client = _id: @params.id, name:'Bob'\n @format\n 'json': =>\n ",
"end": 902,
"score": 0.9984319806098938,
"start": 899,
"tag": "NAME",
"value": "Bob"
},
{
"context": "ual 1, body._id, '3'\n t.equal 2, body.name, 'Bob'\n ... | tests/more.coffee | zappajs/zappajs | 50 | zappa = require '../src/zappa'
port = 15900
@tests =
'powered by': (t) ->
t.expect 'express handles errors', 'zappa handles successful queries'
t.wait 3000
zapp = zappa port++, ->
@get '/foo', -> 'ok'
c = t.client(zapp.server)
c.get '/', (err, res) ->
t.ok 'express handles errors',... | 128901 | zappa = require '../src/zappa'
port = 15900
@tests =
'powered by': (t) ->
t.expect 'express handles errors', 'zappa handles successful queries'
t.wait 3000
zapp = zappa port++, ->
@get '/foo', -> 'ok'
c = t.client(zapp.server)
c.get '/', (err, res) ->
t.ok 'express handles errors',... | true | zappa = require '../src/zappa'
port = 15900
@tests =
'powered by': (t) ->
t.expect 'express handles errors', 'zappa handles successful queries'
t.wait 3000
zapp = zappa port++, ->
@get '/foo', -> 'ok'
c = t.client(zapp.server)
c.get '/', (err, res) ->
t.ok 'express handles errors',... |
[
{
"context": "il\n country: req.body.country\n pass: req.body.pass\n }\n data.meta = JSON.parse( req.body['m",
"end": 3462,
"score": 0.9988815188407898,
"start": 3449,
"tag": "PASSWORD",
"value": "req.body.pass"
},
{
"context": "['email']\n user: req.body... | app/server/router.coffee | coderofsalvation/express-api-user-management-signup | 1 |
console.log "registered user signup routings"
module.exports = (app,layout,mongocfg) ->
CT = @CT = require('./modules/country-list')
AM = @AM = {}
EM = @EM = require('./modules/email-dispatcher')
AM = @AM = require('./modules/account-manager.mongo')
AM.init mongocfg
@layout = layout
updateCookieAge = (... | 186892 |
console.log "registered user signup routings"
module.exports = (app,layout,mongocfg) ->
CT = @CT = require('./modules/country-list')
AM = @AM = {}
EM = @EM = require('./modules/email-dispatcher')
AM = @AM = require('./modules/account-manager.mongo')
AM.init mongocfg
@layout = layout
updateCookieAge = (... | true |
console.log "registered user signup routings"
module.exports = (app,layout,mongocfg) ->
CT = @CT = require('./modules/country-list')
AM = @AM = {}
EM = @EM = require('./modules/email-dispatcher')
AM = @AM = require('./modules/account-manager.mongo')
AM.init mongocfg
@layout = layout
updateCookieAge = (... |
[
{
"context": "an error msg', (assert) ->\n model = \n email: \"foxnewsnetwork@gmail.com\"\n username: \"foxnewsnetwork\"\n\n checker = (mod",
"end": 386,
"score": 0.9999209642410278,
"start": 362,
"tag": "EMAIL",
"value": "foxnewsnetwork@gmail.com"
},
{
"context": " email: \"... | tests/unit/validators/custom-test.coffee | foxnewsnetwork/ember-functional-validation | 4 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import custom from 'ember-functional-validation/validators/custom'`
module 'Validators: Custom'
test 'it should exist', (assert) ->
assert.ok custom
assert.equal typeof custom, 'function'
test 'it should error out if the checker returns an error... | 28515 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import custom from 'ember-functional-validation/validators/custom'`
module 'Validators: Custom'
test 'it should exist', (assert) ->
assert.ok custom
assert.equal typeof custom, 'function'
test 'it should error out if the checker returns an error... | true | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import custom from 'ember-functional-validation/validators/custom'`
module 'Validators: Custom'
test 'it should exist', (assert) ->
assert.ok custom
assert.equal typeof custom, 'function'
test 'it should error out if the checker returns an error... |
[
{
"context": "###\ngrunt-styledocco\nhttps://github.com/weareinteractive/grunt-styledocco\n\nCopyright (c) 2013 We Are Inter",
"end": 56,
"score": 0.9995620250701904,
"start": 40,
"tag": "USERNAME",
"value": "weareinteractive"
},
{
"context": "reinteractive/grunt-styledocco\n\nCopyri... | Gruntfile.coffee | gruntjs-updater/grunt-styledocco | 0 | ###
grunt-styledocco
https://github.com/weareinteractive/grunt-styledocco
Copyright (c) 2013 We Are Interactive
Licensed under the MIT license.
###
module.exports = (grunt) ->
"use strict"
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON "package.json"
coffeelint:
files: ["Grun... | 199258 | ###
grunt-styledocco
https://github.com/weareinteractive/grunt-styledocco
Copyright (c) 2013 <NAME>
Licensed under the MIT license.
###
module.exports = (grunt) ->
"use strict"
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON "package.json"
coffeelint:
files: ["Gruntfile.coffee... | true | ###
grunt-styledocco
https://github.com/weareinteractive/grunt-styledocco
Copyright (c) 2013 PI:NAME:<NAME>END_PI
Licensed under the MIT license.
###
module.exports = (grunt) ->
"use strict"
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON "package.json"
coffeelint:
files: ["Gr... |
[
{
"context": "`null` representation for Date flags\nfor key in ['archived', 'protected', 'raised'] # 'deleted' always used nul",
"end": 401,
"score": 0.8440488576889038,
"start": 389,
"tag": "KEY",
"value": "archived', '"
},
{
"context": "sentation for Date flags\nfor key in ['archi... | server/bootstrap.coffee | mehtank/comingle | 37 | import {Meetings, makeMeetingSecret} from '/lib/meetings'
import {Rooms} from '/lib/rooms'
import {Tabs} from '/lib/tabs'
## Add missing meeting secrets (though still only gettable via database)
Meetings.find
secret: $exists: false
.forEach (room) ->
Meetings.update room._id, $set: secret: makeMeetingSecret()
## ... | 199629 | import {Meetings, makeMeetingSecret} from '/lib/meetings'
import {Rooms} from '/lib/rooms'
import {Tabs} from '/lib/tabs'
## Add missing meeting secrets (though still only gettable via database)
Meetings.find
secret: $exists: false
.forEach (room) ->
Meetings.update room._id, $set: secret: makeMeetingSecret()
## ... | true | import {Meetings, makeMeetingSecret} from '/lib/meetings'
import {Rooms} from '/lib/rooms'
import {Tabs} from '/lib/tabs'
## Add missing meeting secrets (though still only gettable via database)
Meetings.find
secret: $exists: false
.forEach (room) ->
Meetings.update room._id, $set: secret: makeMeetingSecret()
## ... |
[
{
"context": "raph.coffee\n# Library for graph theory functions\n# J. Hassler Thurston\n# Adapted from Mathematica code written in 2010-2",
"end": 73,
"score": 0.9998629093170166,
"start": 54,
"tag": "NAME",
"value": "J. Hassler Thurston"
}
] | graph.js.coffee | jthurst3/computermusic | 0 | # graph.coffee
# Library for graph theory functions
# J. Hassler Thurston
# Adapted from Mathematica code written in 2010-2011
# January 24, 2014
# graphs:
# represented by an object, which has vertex and edge attributes
# the vertices are represented by an array of vertex names
# the edges are represented by a ragg... | 57184 | # graph.coffee
# Library for graph theory functions
# <NAME>
# Adapted from Mathematica code written in 2010-2011
# January 24, 2014
# graphs:
# represented by an object, which has vertex and edge attributes
# the vertices are represented by an array of vertex names
# the edges are represented by a ragged array, whe... | true | # graph.coffee
# Library for graph theory functions
# PI:NAME:<NAME>END_PI
# Adapted from Mathematica code written in 2010-2011
# January 24, 2014
# graphs:
# represented by an object, which has vertex and edge attributes
# the vertices are represented by an array of vertex names
# the edges are represented by a rag... |
[
{
"context": "{{/with}}\n</div>\n\"\"\"\n\t\tvm =\n\t\t\titem: {\n\t\t\t\tname: 'test'\n\t\t\t}\n\t\tko.applyBindings vm\n\n\t\t$('.item').text().",
"end": 1955,
"score": 0.9960554838180542,
"start": 1951,
"tag": "NAME",
"value": "test"
}
] | test/test.coffee | sergeyt/knockout-handlebars | 3 | describe 'ko.handlebars', ->
init = ->
ko.cleanNode document.body
div = $ '#sandbox'
$('<div id="sandbox"></div>').appendTo($('body')) unless div.length
div.html ''
template = (s) ->
init()
$(s).appendTo $('#sandbox')
it 'should replace text nodes', ->
template '<div class="test">before {{value}} af... | 115896 | describe 'ko.handlebars', ->
init = ->
ko.cleanNode document.body
div = $ '#sandbox'
$('<div id="sandbox"></div>').appendTo($('body')) unless div.length
div.html ''
template = (s) ->
init()
$(s).appendTo $('#sandbox')
it 'should replace text nodes', ->
template '<div class="test">before {{value}} af... | true | describe 'ko.handlebars', ->
init = ->
ko.cleanNode document.body
div = $ '#sandbox'
$('<div id="sandbox"></div>').appendTo($('body')) unless div.length
div.html ''
template = (s) ->
init()
$(s).appendTo $('#sandbox')
it 'should replace text nodes', ->
template '<div class="test">before {{value}} af... |
[
{
"context": " JavaScript highligher\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\nColorifier.js = Colorifier.javascript = new Cla",
"end": 71,
"score": 0.9998908042907715,
"start": 54,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | src/lang/javascript.coffee | MadRabbit/colorifier | 1 | #
# JavaScript highligher
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
Colorifier.js = Colorifier.javascript = new Class Colorifier,
comments: "/* */,//"
keywords: "function,return,for,if,else,while,do,throw,try,catch,instanceof,break,continue"
objects: "var,new,this,self"
booleans: "true,false,null,undefi... | 76040 | #
# JavaScript highligher
#
# Copyright (C) 2011-2012 <NAME>
#
Colorifier.js = Colorifier.javascript = new Class Colorifier,
comments: "/* */,//"
keywords: "function,return,for,if,else,while,do,throw,try,catch,instanceof,break,continue"
objects: "var,new,this,self"
booleans: "true,false,null,undefined,typeof"... | true | #
# JavaScript highligher
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
Colorifier.js = Colorifier.javascript = new Class Colorifier,
comments: "/* */,//"
keywords: "function,return,for,if,else,while,do,throw,try,catch,instanceof,break,continue"
objects: "var,new,this,self"
booleans: "true,false,null,und... |
[
{
"context": " Looking-Glass\n\n 'Really, now you ask me,' said Alice, very much confused, 'I don't\n think—'\n\n 'T",
"end": 94,
"score": 0.7758482694625854,
"start": 89,
"tag": "NAME",
"value": "Alice"
},
{
"context": "\n 'At any rate I'll never go THERE again!' said Al... | mingkwai.app/Contents/Resources/app.nw/src/demo-text.coffee | loveencounterflow/mingkwai-app | 0 | module.exports = """
# Through the Looking-Glass
'Really, now you ask me,' said Alice, very much confused, 'I don't
think—'
'Then you shouldn't talk,' said the Hatter.
This piece of rudeness was more than Alice could bear: she got up in
great disgust, and walked off; the Dormouse fell asleep ... | 63730 | module.exports = """
# Through the Looking-Glass
'Really, now you ask me,' said <NAME>, very much confused, 'I don't
think—'
'Then you shouldn't talk,' said the Hatter.
This piece of rudeness was more than Alice could bear: she got up in
great disgust, and walked off; the Dormouse fell asleep... | true | module.exports = """
# Through the Looking-Glass
'Really, now you ask me,' said PI:NAME:<NAME>END_PI, very much confused, 'I don't
think—'
'Then you shouldn't talk,' said the Hatter.
This piece of rudeness was more than Alice could bear: she got up in
great disgust, and walked off; the Dormou... |
[
{
"context": "/global_state_endpoint'\n @globalState = {key: 'val'}\n\n afterEach ->\n jasmine.Ajax.uninstall()\n ",
"end": 260,
"score": 0.9769308567047119,
"start": 257,
"tag": "KEY",
"value": "val"
}
] | spec/javascripts/global_state_saver_spec.coffee | sciencelabshs/lara | 0 | describe 'GlobalIframeSaver', ->
beforeEach ->
loadFixtures "global-iframe-saver.html" # just 3 iframes
jasmine.Ajax.install()
jasmine.mockIframePhone.install()
@saveUrl = 'https://lara.url/global_state_endpoint'
@globalState = {key: 'val'}
afterEach ->
jasmine.Ajax.uninstall()
jasmine.... | 182058 | describe 'GlobalIframeSaver', ->
beforeEach ->
loadFixtures "global-iframe-saver.html" # just 3 iframes
jasmine.Ajax.install()
jasmine.mockIframePhone.install()
@saveUrl = 'https://lara.url/global_state_endpoint'
@globalState = {key: '<KEY>'}
afterEach ->
jasmine.Ajax.uninstall()
jasmin... | true | describe 'GlobalIframeSaver', ->
beforeEach ->
loadFixtures "global-iframe-saver.html" # just 3 iframes
jasmine.Ajax.install()
jasmine.mockIframePhone.install()
@saveUrl = 'https://lara.url/global_state_endpoint'
@globalState = {key: 'PI:KEY:<KEY>END_PI'}
afterEach ->
jasmine.Ajax.uninstall... |
[
{
"context": " socksHost: config.get 'proxy.socks5.host', '127.0.0.1'\n socksPort: config.get 'proxy.socks5.po",
"end": 1016,
"score": 0.999779462814331,
"start": 1007,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "Agent\n agentOptions:\n so... | lib/proxy.coffee | dazzyd/poi | 0 | Promise = require 'bluebird'
async = Promise.coroutine
EventEmitter = require 'events'
url = require 'url'
net = require 'net'
http = require 'http'
querystring = require 'querystring'
_ = require 'underscore'
caseNormalizer = require 'header-case-normalizer'
fs = Promise.promisifyAll require 'fs-extra'
request = Promi... | 167418 | Promise = require 'bluebird'
async = Promise.coroutine
EventEmitter = require 'events'
url = require 'url'
net = require 'net'
http = require 'http'
querystring = require 'querystring'
_ = require 'underscore'
caseNormalizer = require 'header-case-normalizer'
fs = Promise.promisifyAll require 'fs-extra'
request = Promi... | true | Promise = require 'bluebird'
async = Promise.coroutine
EventEmitter = require 'events'
url = require 'url'
net = require 'net'
http = require 'http'
querystring = require 'querystring'
_ = require 'underscore'
caseNormalizer = require 'header-case-normalizer'
fs = Promise.promisifyAll require 'fs-extra'
request = Promi... |
[
{
"context": "inimaps for WXTiles.\n# Based largely on minimap by Jan Pieter Waagmeester <jieter@jieter.nl>\n\n_cloneLayer = (layer) ->\n\topt",
"end": 124,
"score": 0.9999028444290161,
"start": 102,
"tag": "NAME",
"value": "Jan Pieter Waagmeester"
},
{
"context": "sed largely on min... | src/wxtiles.leaflet.minimap.coffee | metocean/wxserver-api | 3 | # # WXTilesMinimap
#
# Layers control with synced minimaps for WXTiles.
# Based largely on minimap by Jan Pieter Waagmeester <jieter@jieter.nl>
_cloneLayer = (layer) ->
options = layer.options
if layer instanceof L.WXTileLayer
result = L.wxTileLayer layer._config, options
result.setField layer._field
result.se... | 83684 | # # WXTilesMinimap
#
# Layers control with synced minimaps for WXTiles.
# Based largely on minimap by <NAME> <<EMAIL>>
_cloneLayer = (layer) ->
options = layer.options
if layer instanceof L.WXTileLayer
result = L.wxTileLayer layer._config, options
result.setField layer._field
result.setKey layer._key
return ... | true | # # WXTilesMinimap
#
# Layers control with synced minimaps for WXTiles.
# Based largely on minimap by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
_cloneLayer = (layer) ->
options = layer.options
if layer instanceof L.WXTileLayer
result = L.wxTileLayer layer._config, options
result.setField layer._field
resul... |
[
{
"context": "ink-shortener'\n redis: 'localhost'\n redis_key: 'link-shortener'\n\n memcached: 'localhost'\n\n cookie_session: {\n ",
"end": 141,
"score": 0.9800238609313965,
"start": 127,
"tag": "KEY",
"value": "link-shortener"
},
{
"context": "ookie_session: {\n enabled: no\... | conf.iced | tosadvisor/link-shortener | 0 | module.exports = conf = {
cluster: off
port: 10001
mongo: 'localhost/link-shortener'
redis: 'localhost'
redis_key: 'link-shortener'
memcached: 'localhost'
cookie_session: {
enabled: no
secret_key: 'MY_UNIQUE_ENCRYPTION_KEY'
}
allow_http_method_override: on
allow_model_exposure: on
allo... | 98009 | module.exports = conf = {
cluster: off
port: 10001
mongo: 'localhost/link-shortener'
redis: 'localhost'
redis_key: '<KEY>'
memcached: 'localhost'
cookie_session: {
enabled: no
secret_key: '<KEY>'
}
allow_http_method_override: on
allow_model_exposure: on
allow_underscore_routes: on
d... | true | module.exports = conf = {
cluster: off
port: 10001
mongo: 'localhost/link-shortener'
redis: 'localhost'
redis_key: 'PI:KEY:<KEY>END_PI'
memcached: 'localhost'
cookie_session: {
enabled: no
secret_key: 'PI:KEY:<KEY>END_PI'
}
allow_http_method_override: on
allow_model_exposure: on
allow_... |
[
{
"context": "n't perform something twice\", ->\n onceToken = \"I'm a nice onceToken\"\n a = 2\n CB.DispatchOnce onceToke",
"end": 724,
"score": 0.8478125929832458,
"start": 714,
"tag": "PASSWORD",
"value": "I'm a nice"
}
] | test/support/dispatch_test.js.coffee | zhangkaiyufromdongbei/CocoaBean | 0 | describe "Dispatch Async", ->
a = 25
time = new Date().getTime()
beforeEach (done) ->
CB.DispatchAsync(-> a = 26; done())
it "should perform function right away", ->
later = new Date().getTime()
expect(a).toBe(26)
expect(later - time).not.toBeGreaterThan(200)
describe "Dispatch After", ->
a ... | 38418 | describe "Dispatch Async", ->
a = 25
time = new Date().getTime()
beforeEach (done) ->
CB.DispatchAsync(-> a = 26; done())
it "should perform function right away", ->
later = new Date().getTime()
expect(a).toBe(26)
expect(later - time).not.toBeGreaterThan(200)
describe "Dispatch After", ->
a ... | true | describe "Dispatch Async", ->
a = 25
time = new Date().getTime()
beforeEach (done) ->
CB.DispatchAsync(-> a = 26; done())
it "should perform function right away", ->
later = new Date().getTime()
expect(a).toBe(26)
expect(later - time).not.toBeGreaterThan(200)
describe "Dispatch After", ->
a ... |
[
{
"context": "h ->\n @game = new GamingAPI.Models.Game(name: \"test1\")\n @view = new GamingAPI.Views.Game(game: @gam",
"end": 102,
"score": 0.8605642318725586,
"start": 97,
"tag": "NAME",
"value": "test1"
}
] | spec/javascripts/games/views/game_spec.js.coffee | Mack0856/gaming_api | 0 | describe "GamingAPI.Views.Game", ->
beforeEach ->
@game = new GamingAPI.Models.Game(name: "test1")
@view = new GamingAPI.Views.Game(game: @game)
@view.render()
describe "#render", ->
it "renders the specific game", ->
expect(@view.$("a").text()).toEqual "test1"
| 144925 | describe "GamingAPI.Views.Game", ->
beforeEach ->
@game = new GamingAPI.Models.Game(name: "<NAME>")
@view = new GamingAPI.Views.Game(game: @game)
@view.render()
describe "#render", ->
it "renders the specific game", ->
expect(@view.$("a").text()).toEqual "test1"
| true | describe "GamingAPI.Views.Game", ->
beforeEach ->
@game = new GamingAPI.Models.Game(name: "PI:NAME:<NAME>END_PI")
@view = new GamingAPI.Views.Game(game: @game)
@view.render()
describe "#render", ->
it "renders the specific game", ->
expect(@view.$("a").text()).toEqual "test1"
|
[
{
"context": "\"continue\"\n Number(context.registers[\"for\"][@name]) or 0\n else\n Number(context[@attribu",
"end": 2743,
"score": 0.9939426183700562,
"start": 2738,
"tag": "USERNAME",
"value": "@name"
},
{
"context": "][@name]) or 0\n else\n Number(c... | src/liquid/tags/for.coffee | bergie/liquid-node | 1 | Liquid = require "../../liquid"
_ = require("underscore")._
# "For" iterates over an array or collection.
# Several useful variables are available to you within the loop.
#
# == Basic usage:
# {% for item in collection %}
# {{ forloop.index }}: {{ item.name }}
# {% endfor %}
#
# == Advanced usage:
# {% f... | 61742 | Liquid = require "../../liquid"
_ = require("underscore")._
# "For" iterates over an array or collection.
# Several useful variables are available to you within the loop.
#
# == Basic usage:
# {% for item in collection %}
# {{ forloop.index }}: {{ item.name }}
# {% endfor %}
#
# == Advanced usage:
# {% f... | true | Liquid = require "../../liquid"
_ = require("underscore")._
# "For" iterates over an array or collection.
# Several useful variables are available to you within the loop.
#
# == Basic usage:
# {% for item in collection %}
# {{ forloop.index }}: {{ item.name }}
# {% endfor %}
#
# == Advanced usage:
# {% f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.