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": "lize(\"YiujpEcIch86xDgsFFjQIsps3jvCimK9jarh4VBf\", \"GVuyJ8WqfzX8Wl2M4PCeXLiJujQvSMHpIYO260OI\");\n\n UserSch",
"end": 86,
"score": 0.6534258127212524,
"start": 82,
"tag": "KEY",
"value": "GVuy"
},
{
"context": "YiujpEcIch86xDgsFFjQIsps3jvCimK9jarh4VBf\", \"GVuyJ8WqfzX... | DB/ParseMng.coffee | juancjara/guitar-hero-firefox-os | 0 | ParseMng = (() ->
Parse.initialize("YiujpEcIch86xDgsFFjQIsps3jvCimK9jarh4VBf", "GVuyJ8WqfzX8Wl2M4PCeXLiJujQvSMHpIYO260OI");
UserSchema = Parse.Object.extend 'UserSchema'
handler = (cb) ->
res =
success: (obj) -> cb(null, obj)
error: (obj, err) -> cb(err)
handlerQuery = (cb) ->
res =
... | 20479 | ParseMng = (() ->
Parse.initialize("YiujpEcIch86xDgsFFjQIsps3jvCimK9jarh4VBf", "<KEY>J8<KEY>qf<KEY>");
UserSchema = Parse.Object.extend 'UserSchema'
handler = (cb) ->
res =
success: (obj) -> cb(null, obj)
error: (obj, err) -> cb(err)
handlerQuery = (cb) ->
res =
success: (obj) -> ... | true | ParseMng = (() ->
Parse.initialize("YiujpEcIch86xDgsFFjQIsps3jvCimK9jarh4VBf", "PI:KEY:<KEY>END_PIJ8PI:KEY:<KEY>END_PIqfPI:KEY:<KEY>END_PI");
UserSchema = Parse.Object.extend 'UserSchema'
handler = (cb) ->
res =
success: (obj) -> cb(null, obj)
error: (obj, err) -> cb(err)
handlerQuery = (cb)... |
[
{
"context": " extensions unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\nLovely = require('lovely')\n{Test, assert} = Lov",
"end": 82,
"score": 0.9998872876167297,
"start": 65,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/lang/test/number_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "Number extensions", ->
describe "#abs()", ->
it "should return the number itself for positive values",->
num = 16
assert.equal num, nu... | 137400 | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "Number extensions", ->
describe "#abs()", ->
it "should return the number itself for positive values",->
num = 16
assert.equal num, num.abs()
... | true | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "Number extensions", ->
describe "#abs()", ->
it "should return the number itself for positive values",->
num = 16
assert.equal num,... |
[
{
"context": "nie.ca',\n\t\t\t\tcredential: 'muazkh',\n\t\t\t\tusername: 'webrtc@live.com'\n\t\t\t},\n\t\t\t{\n\t\t\t\turl: 'turn:192.158.29.39:3478?tra",
"end": 1432,
"score": 0.9998894929885864,
"start": 1417,
"tag": "EMAIL",
"value": "webrtc@live.com"
},
{
"context": "name: 'webrt... | src/coffee/common.coffee | DakEnviy/taten | 0 | # Requires
PeerServer = require('peer').PeerServer
# Classes
server = PeerServer({port: 9000, path: '/taten'})
# Methods
getUserMedia = (callback) ->
browserUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia
re... | 27867 | # Requires
PeerServer = require('peer').PeerServer
# Classes
server = PeerServer({port: 9000, path: '/taten'})
# Methods
getUserMedia = (callback) ->
browserUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia
re... | true | # Requires
PeerServer = require('peer').PeerServer
# Classes
server = PeerServer({port: 9000, path: '/taten'})
# Methods
getUserMedia = (callback) ->
browserUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia
re... |
[
{
"context": " co =>\n yield @room.user.say 'alice', '@hubot show open bosun incidents'\n ",
"end": 762,
"score": 0.6915292143821716,
"start": 757,
"tag": "NAME",
"value": "alice"
},
{
"context": " expect(@room.messages).to.eql [\n ['alice... | test/bosun-test.coffee | lukaspustina/hubot-bosun | 1 | Helper = require('hubot-test-helper')
chai = require 'chai'
auth = require 'hubot-auth'
Promise = require('bluebird')
co = require('co')
http = require 'http'
expect = chai.expect
process.env.EXPRESS_PORT = 18080
api_call_delay = 20
customMessages = []
describe 'bosun without authorization', ->
beforeEach ->
[... | 15577 | Helper = require('hubot-test-helper')
chai = require 'chai'
auth = require 'hubot-auth'
Promise = require('bluebird')
co = require('co')
http = require 'http'
expect = chai.expect
process.env.EXPRESS_PORT = 18080
api_call_delay = 20
customMessages = []
describe 'bosun without authorization', ->
beforeEach ->
[... | true | Helper = require('hubot-test-helper')
chai = require 'chai'
auth = require 'hubot-auth'
Promise = require('bluebird')
co = require('co')
http = require 'http'
expect = chai.expect
process.env.EXPRESS_PORT = 18080
api_call_delay = 20
customMessages = []
describe 'bosun without authorization', ->
beforeEach ->
[... |
[
{
"context": "---------------------------------\n# Copyright 2013 Patrick Mueller\n#\n# Licensed under the Apache License, Version 2.",
"end": 6829,
"score": 0.9998308420181274,
"start": 6814,
"tag": "NAME",
"value": "Patrick Mueller"
}
] | lib-src/jbuild.coffee | pmuellr/jbuild | 1 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
_ = require "underscore"
coffee = require "coffee-script"
require "shelljs/global"
pkg = require "../package.json"
watch = require "./watch"
coffee.register()
global.watch = watch.watch
global.watc... | 56725 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
_ = require "underscore"
coffee = require "coffee-script"
require "shelljs/global"
pkg = require "../package.json"
watch = require "./watch"
coffee.register()
global.watch = watch.watch
global.watc... | true | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
_ = require "underscore"
coffee = require "coffee-script"
require "shelljs/global"
pkg = require "../package.json"
watch = require "./watch"
coffee.register()
global.watch = watch.watch
global.watc... |
[
{
"context": "\n # ```bash\n # $ curl -X POST -d \"username=$USERNAME&password=$PASSWORD\" http://diaryapi.auckland.ac.n",
"end": 1954,
"score": 0.8990586996078491,
"start": 1946,
"tag": "USERNAME",
"value": "USERNAME"
},
{
"context": "# $ curl -X POST -d \"username=$USERNAME&p... | UoACalendarClient.coffee | UoA-CompSci/diary-api | 0 | # uoacalendar-js
# ============================================
http = require "http"
# The UoACalendarClient class
# ----------------
#
# This class provides with all the necessary functionality to
# interact with the calendar backend for creating, retrieving
# and modifying calendar and event objects.
#
class UoACa... | 46261 | # uoacalendar-js
# ============================================
http = require "http"
# The UoACalendarClient class
# ----------------
#
# This class provides with all the necessary functionality to
# interact with the calendar backend for creating, retrieving
# and modifying calendar and event objects.
#
class UoACa... | true | # uoacalendar-js
# ============================================
http = require "http"
# The UoACalendarClient class
# ----------------
#
# This class provides with all the necessary functionality to
# interact with the calendar backend for creating, retrieving
# and modifying calendar and event objects.
#
class UoACa... |
[
{
"context": "tfcode : ''\n username : generateRandomUsername()\n password : 'testpass'\n redire",
"end": 397,
"score": 0.7815880179405212,
"start": 375,
"tag": "USERNAME",
"value": "generateRandomUsername"
},
{
"context": "nerateRandomUser... | servers/testhelper/handler/loginhelper.coffee | ezgikaysi/koding | 1 | querystring = require 'querystring'
{ generateUrl
deepObjectExtend
generateRandomString
generateRandomUsername
generateRequestParamsEncodeBody } = require '../index'
generateLoginRequestBody = (opts = {}) ->
defaultBodyObject =
_csrf : generateRandomString()
token : ''
... | 16646 | querystring = require 'querystring'
{ generateUrl
deepObjectExtend
generateRandomString
generateRandomUsername
generateRequestParamsEncodeBody } = require '../index'
generateLoginRequestBody = (opts = {}) ->
defaultBodyObject =
_csrf : generateRandomString()
token : ''
... | true | querystring = require 'querystring'
{ generateUrl
deepObjectExtend
generateRandomString
generateRandomUsername
generateRequestParamsEncodeBody } = require '../index'
generateLoginRequestBody = (opts = {}) ->
defaultBodyObject =
_csrf : generateRandomString()
token : ''
... |
[
{
"context": "ist2: ['one', 'two', 'three']\n person: {name: 'Alexander Schilling', job: 'Developer'}\n complex: [{name: 'Egon'},",
"end": 872,
"score": 0.9997644424438477,
"start": 853,
"tag": "NAME",
"value": "Alexander Schilling"
},
{
"context": "hilling', job: 'Developer'}\... | test/mocha/yaml.coffee | alinex/node-formatter | 0 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "YAML", ->
file = __dirname + '/../data/format.yml'
format = 'yaml'
example = fs.readFileSync file, 'UTF8'
data =
... | 86618 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "YAML", ->
file = __dirname + '/../data/format.yml'
format = 'yaml'
example = fs.readFileSync file, 'UTF8'
data =
... | true | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "YAML", ->
file = __dirname + '/../data/format.yml'
format = 'yaml'
example = fs.readFileSync file, 'UTF8'
data =
... |
[
{
"context": " _ref: 'project/ref'\n Name: 'TestProject'\n workspace:\n ",
"end": 719,
"score": 0.6975902318954468,
"start": 715,
"tag": "NAME",
"value": "Test"
}
] | test/spec/roadmapplanningboard/RoadmapPlanningBoardAppSpec.coffee | sboles/app-catalog | 0 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.RoadmapPlanningBoardApp'
'Rally.apps.roadmapplanningboard.SplashContainer'
'Rally.test.mock.ModelObjectMother'
]
describe 'Rally.apps.roadmapplanningboard.RoadmapPl... | 181510 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.RoadmapPlanningBoardApp'
'Rally.apps.roadmapplanningboard.SplashContainer'
'Rally.test.mock.ModelObjectMother'
]
describe 'Rally.apps.roadmapplanningboard.RoadmapPl... | true | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.RoadmapPlanningBoardApp'
'Rally.apps.roadmapplanningboard.SplashContainer'
'Rally.test.mock.ModelObjectMother'
]
describe 'Rally.apps.roadmapplanningboard.RoadmapPl... |
[
{
"context": "ate')\n \n config.shared_key = opts.shared_key ? '59b325af9e266d0285bc1f0840a5e89915a3105c36f19bae58f5176b15476d05'\n config.shared_key_header = opts.shared_key_hea",
"end": 512,
"score": 0.999778151512146,
"start": 448,
"tag": "KEY",
"value": "59b325af9e266d0285bc1f0840a5e8... | lib/configuration.coffee | mattinsler/keyless | 1 | path = require 'path'
walkabout = require 'walkabout'
module.exports = (opts) ->
config = {}
config.url = {
root: opts.root_url ? '/'
}
config.url.root = '/' + config.url.root unless config.url.root[0] is '/'
config.url.login = path.join(config.url.root, 'login')
config.url.logout = path.join(config... | 146738 | path = require 'path'
walkabout = require 'walkabout'
module.exports = (opts) ->
config = {}
config.url = {
root: opts.root_url ? '/'
}
config.url.root = '/' + config.url.root unless config.url.root[0] is '/'
config.url.login = path.join(config.url.root, 'login')
config.url.logout = path.join(config... | true | path = require 'path'
walkabout = require 'walkabout'
module.exports = (opts) ->
config = {}
config.url = {
root: opts.root_url ? '/'
}
config.url.root = '/' + config.url.root unless config.url.root[0] is '/'
config.url.login = path.join(config.url.root, 'login')
config.url.logout = path.join(config... |
[
{
"context": "oad precompiled handlebars templates.\n\n @author Sebastian Sachtleben\n###\ntemplates = \n\n ###\n Load template b",
"end": 103,
"score": 0.9998824596405029,
"start": 83,
"tag": "NAME",
"value": "Sebastian Sachtleben"
}
] | app/assets/javascripts/shared/templates.coffee | ssachtleben/herowar | 1 | ###
The templates helps to load precompiled handlebars templates.
@author Sebastian Sachtleben
###
templates =
###
Load template by name via our loader and return handlebars template function.
@param {String} The template name.
@return {Function} The precompiled handlebars templa... | 224267 | ###
The templates helps to load precompiled handlebars templates.
@author <NAME>
###
templates =
###
Load template by name via our loader and return handlebars template function.
@param {String} The template name.
@return {Function} The precompiled handlebars template.
###
... | true | ###
The templates helps to load precompiled handlebars templates.
@author PI:NAME:<NAME>END_PI
###
templates =
###
Load template by name via our loader and return handlebars template function.
@param {String} The template name.
@return {Function} The precompiled handlebars templa... |
[
{
"context": " : 'StoreCloud'\n 'owner_email' : 'john@koding.com'\n 'owner_name' : 'John Smith'\n ",
"end": 300,
"score": 0.9999294877052307,
"start": 285,
"tag": "EMAIL",
"value": "john@koding.com"
},
{
"context": "'john@koding.com'\n 'owner_name... | servers/lib/server/handlers/api/gitlab/_sampledata.coffee | lionheart1022/koding | 0 | module.exports = {
'project_create' : {
'created_at' : '2012-07-21T07:30:54Z'
'updated_at' : '2012-07-21T07:38:22Z'
'event_name' : 'project_create'
'name' : 'StoreCloud'
'owner_email' : 'john@koding.com'
'owner_name' ... | 85713 | module.exports = {
'project_create' : {
'created_at' : '2012-07-21T07:30:54Z'
'updated_at' : '2012-07-21T07:38:22Z'
'event_name' : 'project_create'
'name' : 'StoreCloud'
'owner_email' : '<EMAIL>'
'owner_name' ... | true | module.exports = {
'project_create' : {
'created_at' : '2012-07-21T07:30:54Z'
'updated_at' : '2012-07-21T07:38:22Z'
'event_name' : 'project_create'
'name' : 'StoreCloud'
'owner_email' : 'PI:EMAIL:<EMAIL>END_PI'
'owner_... |
[
{
"context": "entation of the List abstract data type.\n @author Mads Hartmann Jensen (mads379@gmail.com)\n### \n\nmugs.provide('mugs.List",
"end": 111,
"score": 0.9998427629470825,
"start": 91,
"tag": "NAME",
"value": "Mads Hartmann Jensen"
},
{
"context": "stract data type.\n @au... | src/List.coffee | mads-hartmann/mugs | 1 | ###*
@fileoverview Contains the implementation of the List abstract data type.
@author Mads Hartmann Jensen (mads379@gmail.com)
###
mugs.provide('mugs.List')
mugs.require("mugs.Some")
mugs.require("mugs.None")
###*
List provides the implementation of the abstract data type List based on a Singly-Linked list. ... | 144560 | ###*
@fileoverview Contains the implementation of the List abstract data type.
@author <NAME> (<EMAIL>)
###
mugs.provide('mugs.List')
mugs.require("mugs.Some")
mugs.require("mugs.None")
###*
List provides the implementation of the abstract data type List based on a Singly-Linked list. The
list contains the ... | true | ###*
@fileoverview Contains the implementation of the List abstract data type.
@author PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
###
mugs.provide('mugs.List')
mugs.require("mugs.Some")
mugs.require("mugs.None")
###*
List provides the implementation of the abstract data type List based on a Singly-Linked l... |
[
{
"context": "io.com\n\nCopyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>\n\nLicensed under the Apache License, Version 2.0 ",
"end": 194,
"score": 0.999919593334198,
"start": 178,
"tag": "EMAIL",
"value": "info@chaibio.com"
}
] | frontend/javascripts/app/directives/status-bar.coffee | MakerButt/chaipcr | 1 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | 96364 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | true | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <PI:EMAIL:<EMAIL>END_PI>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... |
[
{
"context": "ey attribute', ->\n @base.key.should.equal 'basey-mcbase'\n\n context 'without robot', ->\n\n beforeEa",
"end": 1084,
"score": 0.9865447878837585,
"start": 1072,
"tag": "KEY",
"value": "basey-mcbase"
},
{
"context": "= new Base 'test', pretend.robot\n ... | test/unit/01-base_test.coffee | PropertyUX/nubot-playbook | 0 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Base = require '../../lib/modules/base'
Module = require '../../lib/utils/module'
describe 'Base', ->
beforeEach ->
pretend.start()
pretend.log.level = '... | 57650 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Base = require '../../lib/modules/base'
Module = require '../../lib/utils/module'
describe 'Base', ->
beforeEach ->
pretend.start()
pretend.log.level = '... | true | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Base = require '../../lib/modules/base'
Module = require '../../lib/utils/module'
describe 'Base', ->
beforeEach ->
pretend.start()
pretend.log.level = '... |
[
{
"context": "{\n \"fileTypes\": [\n \"marko\"\n ],\n \"name\": \"Marko\",\n \"patterns\": [\n {\n \"begin\": \"^\\\\s*(sty",
"end": 52,
"score": 0.7058511972427368,
"start": 47,
"tag": "NAME",
"value": "Marko"
}
] | grammars/marko.cson | marko-js/atom-language-marko | 37 | {
"fileTypes": [
"marko"
],
"name": "Marko",
"patterns": [
{
"begin": "^\\s*(style)\\s+(\\{)",
"beginCaptures": {
"1": {
"name": "storage.type.marko.css"
},
"2": {
"name": "punctuation.section.scope.begin.marko.css"
}
},
"commen... | 5550 | {
"fileTypes": [
"marko"
],
"name": "<NAME>",
"patterns": [
{
"begin": "^\\s*(style)\\s+(\\{)",
"beginCaptures": {
"1": {
"name": "storage.type.marko.css"
},
"2": {
"name": "punctuation.section.scope.begin.marko.css"
}
},
"comme... | true | {
"fileTypes": [
"marko"
],
"name": "PI:NAME:<NAME>END_PI",
"patterns": [
{
"begin": "^\\s*(style)\\s+(\\{)",
"beginCaptures": {
"1": {
"name": "storage.type.marko.css"
},
"2": {
"name": "punctuation.section.scope.begin.marko.css"
}
}... |
[
{
"context": "|fs-nt)', '#REQUIRED')\n .dat('<owner>John</owner>')\n .ele('node')\n ",
"end": 1482,
"score": 0.6640788316726685,
"start": 1478,
"tag": "NAME",
"value": "John"
},
{
"context": "|fs-nt)', '#REQUIRED')\n .dat('<owner>John... | test/basic/doctype.coffee | tomhughes/xmlbuilder-js | 0 | suite 'Document Type Declaration:', ->
test 'SYSTEM dtd from create()', ->
eq(
xml('root', { sysID: 'hello.dtd' }).ele('node').txt('test').end()
'<?xml version="1.0"?><!DOCTYPE root SYSTEM "hello.dtd"><root><node>test</node></root>'
)
test 'Public dtd from create()', ->
eq(
xml('HTML'... | 70161 | suite 'Document Type Declaration:', ->
test 'SYSTEM dtd from create()', ->
eq(
xml('root', { sysID: 'hello.dtd' }).ele('node').txt('test').end()
'<?xml version="1.0"?><!DOCTYPE root SYSTEM "hello.dtd"><root><node>test</node></root>'
)
test 'Public dtd from create()', ->
eq(
xml('HTML'... | true | suite 'Document Type Declaration:', ->
test 'SYSTEM dtd from create()', ->
eq(
xml('root', { sysID: 'hello.dtd' }).ele('node').txt('test').end()
'<?xml version="1.0"?><!DOCTYPE root SYSTEM "hello.dtd"><root><node>test</node></root>'
)
test 'Public dtd from create()', ->
eq(
xml('HTML'... |
[
{
"context": " \"properties\": {\n 0: \"Salzburg\"\n 1: \"41,5%\"\n }",
"end": 2209,
"score": 0.9822872281074524,
"start": 2201,
"tag": "NAME",
"value": "Salzburg"
},
{
"context": " \"properties\": {\n ... | app/components/converter/service-test.coffee | vidatio/web-app | 0 | "use strict"
describe "Service Converter", ->
beforeEach ->
module "app"
inject (ConverterService, $injector, $q) ->
@injector = $injector
@Converter = ConverterService
@deferred = $q.defer()
spyOn(@Converter, 'convertSHP2GeoJSON').and.returnValue(@de... | 69602 | "use strict"
describe "Service Converter", ->
beforeEach ->
module "app"
inject (ConverterService, $injector, $q) ->
@injector = $injector
@Converter = ConverterService
@deferred = $q.defer()
spyOn(@Converter, 'convertSHP2GeoJSON').and.returnValue(@de... | true | "use strict"
describe "Service Converter", ->
beforeEach ->
module "app"
inject (ConverterService, $injector, $q) ->
@injector = $injector
@Converter = ConverterService
@deferred = $q.defer()
spyOn(@Converter, 'convertSHP2GeoJSON').and.returnValue(@de... |
[
{
"context": "me jquery.<%= pkg.name %>.js\\n' +\n '@author Sebastian Helzle (sebastian@helzle.net or @sebobo)\\n' +\n '@",
"end": 502,
"score": 0.9998934864997864,
"start": 486,
"tag": "NAME",
"value": "Sebastian Helzle"
},
{
"context": "ame %>.js\\n' +\n '@auth... | Gruntfile.coffee | Sebobo/jquery.smallipop | 15 | module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-qunit'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-sass'
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON... | 209569 | module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-qunit'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-sass'
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON... | true | module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-qunit'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-sass'
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON... |
[
{
"context": "#\n# Copyright (c) 2012 Konstantin Bender.\n#\n# Permission is hereby granted, free of charge",
"end": 40,
"score": 0.9998616576194763,
"start": 23,
"tag": "NAME",
"value": "Konstantin Bender"
}
] | source/array.coffee | konstantinbe/milk | 0 | #
# Copyright (c) 2012 Konstantin Bender.
#
# 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... | 215094 | #
# Copyright (c) 2012 <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, distribut... | true | #
# Copyright (c) 2012 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, publ... |
[
{
"context": " for n in [ 0 .. 1000 ]\n key = [ \"number:#{n}\", \"square\", n ** 2, ]\n input.write key\n yield later",
"end": 6913,
"score": 0.9584726095199585,
"start": 6882,
"tag": "KEY",
"value": "number:#{n}\", \"square\", n ** 2,"
},
{
"contex... | src/tests.coffee | loveencounterflow/hollerith-legacy | 0 |
############################################################################################################
njs_path = require 'path'
# njs_fs = require 'fs'
join = njs_path.join
#.................................................................................. | 135494 |
############################################################################################################
njs_path = require 'path'
# njs_fs = require 'fs'
join = njs_path.join
#.................................................................................. | true |
############################################################################################################
njs_path = require 'path'
# njs_fs = require 'fs'
join = njs_path.join
#.................................................................................. |
[
{
"context": "//neocotic.com/UndoWikipediaBlackout) \n# (c) 2012 Alasdair Mercer \n# Freely distributable under the MIT license. ",
"end": 99,
"score": 0.9998787641525269,
"start": 84,
"tag": "NAME",
"value": "Alasdair Mercer"
},
{
"context": "Wikipedia Blackouts analytics account... | src/lib/analytics.coffee | neocotic/UndoWikipediaBlackout | 1 | # [Undo Wikipedia Blackout](http://neocotic.com/UndoWikipediaBlackout)
# (c) 2012 Alasdair Mercer
# Freely distributable under the MIT license.
# For all details and documentation:
# <http://neocotic.com/UndoWikipediaBlackout>
# Private constants
# -----------------
# Code for Undo Wikipedia Blackouts analyti... | 29599 | # [Undo Wikipedia Blackout](http://neocotic.com/UndoWikipediaBlackout)
# (c) 2012 <NAME>
# Freely distributable under the MIT license.
# For all details and documentation:
# <http://neocotic.com/UndoWikipediaBlackout>
# Private constants
# -----------------
# Code for Undo Wikipedia Blackouts analytics accoun... | true | # [Undo Wikipedia Blackout](http://neocotic.com/UndoWikipediaBlackout)
# (c) 2012 PI:NAME:<NAME>END_PI
# Freely distributable under the MIT license.
# For all details and documentation:
# <http://neocotic.com/UndoWikipediaBlackout>
# Private constants
# -----------------
# Code for Undo Wikipedia Blackouts an... |
[
{
"context": "\t\t\temail:$('#customer_email').val()\n\t\t\t# password:$('#customer_password').val()\n\t\t\tprofile:\n\t\t\t\tfullname:$('#customer_nam",
"end": 260,
"score": 0.9314392805099487,
"start": 239,
"tag": "PASSWORD",
"value": "$('#customer_password"
},
{
"context": "ail').... | client/views/users/quickAdd.coffee | sawima/kimashare | 0 | Template.quickAddUser.events
'submit #customer_quick_form': (evt) ->
evt.preventDefault()
roles=$('#select_roles').val()
if !roles
roles=[]
roles.push('customer')
customer={
email:$('#customer_email').val()
# password:$('#customer_password').val()
profile:
fullname:$('#customer_name').val()
... | 141475 | Template.quickAddUser.events
'submit #customer_quick_form': (evt) ->
evt.preventDefault()
roles=$('#select_roles').val()
if !roles
roles=[]
roles.push('customer')
customer={
email:$('#customer_email').val()
# password:<PASSWORD>').<PASSWORD>()
profile:
fullname:$('#customer_name').val()
... | true | Template.quickAddUser.events
'submit #customer_quick_form': (evt) ->
evt.preventDefault()
roles=$('#select_roles').val()
if !roles
roles=[]
roles.push('customer')
customer={
email:$('#customer_email').val()
# password:PI:PASSWORD:<PASSWORD>END_PI').PI:PASSWORD:<PASSWORD>END_PI()
profile:
ful... |
[
{
"context": "ir.me',\n patient: '123',\n auth: {user: 'client', pass: 'secret'}\n mkfail = (done)->\n (err)->",
"end": 207,
"score": 0.9058396220207214,
"start": 201,
"tag": "USERNAME",
"value": "client"
},
{
"context": "tient: '123',\n auth: {user: 'client', pass... | integration_test_buffer/yuiSpec.coffee | a-mroz/fhir.js | 349 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
fhir = require('../src/adapters/yui')
describe "yui", ->
subject = fhir
baseUrl: 'https://ci-api.fhir.me',
patient: '123',
auth: {user: 'client', pass: 'secret'}
mkfail = (done)->
(err)->
console.error(err)
done()
it 'simplest', (done)... | 73686 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
fhir = require('../src/adapters/yui')
describe "yui", ->
subject = fhir
baseUrl: 'https://ci-api.fhir.me',
patient: '123',
auth: {user: 'client', pass: '<PASSWORD>'}
mkfail = (done)->
(err)->
console.error(err)
done()
it 'simplest', (d... | true | jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
fhir = require('../src/adapters/yui')
describe "yui", ->
subject = fhir
baseUrl: 'https://ci-api.fhir.me',
patient: '123',
auth: {user: 'client', pass: 'PI:PASSWORD:<PASSWORD>END_PI'}
mkfail = (done)->
(err)->
console.error(err)
done()
... |
[
{
"context": "\nmodule.exports = (robot) ->\n MAINTAINERS_KEY = \"maintainers\"\n\n fs.exists './kubeconfig', (exists) ->\n unl",
"end": 101,
"score": 0.6328898668289185,
"start": 90,
"tag": "KEY",
"value": "maintainers"
},
{
"context": "ntainers_url = \"https://raw.githubuserco... | images/kubot/worker.coffee | mazzystr/project-infra | 16 | YAML = require 'yaml'
fs = require 'fs'
module.exports = (robot) ->
MAINTAINERS_KEY = "maintainers"
fs.exists './kubeconfig', (exists) ->
unless exists
fs.cp '/etc/kubeconfig/config', './kubeconfig', { dereference: true }, (error) ->
if error
console.log "Could not copy kubeconfig: #{e... | 106623 | YAML = require 'yaml'
fs = require 'fs'
module.exports = (robot) ->
MAINTAINERS_KEY = "<KEY>"
fs.exists './kubeconfig', (exists) ->
unless exists
fs.cp '/etc/kubeconfig/config', './kubeconfig', { dereference: true }, (error) ->
if error
console.log "Could not copy kubeconfig: #{error}"... | true | YAML = require 'yaml'
fs = require 'fs'
module.exports = (robot) ->
MAINTAINERS_KEY = "PI:KEY:<KEY>END_PI"
fs.exists './kubeconfig', (exists) ->
unless exists
fs.cp '/etc/kubeconfig/config', './kubeconfig', { dereference: true }, (error) ->
if error
console.log "Could not copy kubeconf... |
[
{
"context": "TRRanking.m\n\n The MIT License\n\n Copyright (c) 2008 Lachie Cox\n\n Permission is hereby granted, free of charge, t",
"end": 558,
"score": 0.9998539090156555,
"start": 548,
"tag": "NAME",
"value": "Lachie Cox"
}
] | node_modules/coffee-trace/lib/quicksilver_score.coffee | jpietrok-pnnl/wiki | 5 | ###
** Modified Quicksilver so that that it doesn't extends the `String` object's prototype.
qs_score - Quicksilver Score
A port of the Quicksilver string ranking algorithm
score("hello world", "axl") //=> 0.0
score("hello world", "ow") //=> 0.6
score("hello world", "hello world") //=> 1.0
Tested in Firefox ... | 22326 | ###
** Modified Quicksilver so that that it doesn't extends the `String` object's prototype.
qs_score - Quicksilver Score
A port of the Quicksilver string ranking algorithm
score("hello world", "axl") //=> 0.0
score("hello world", "ow") //=> 0.6
score("hello world", "hello world") //=> 1.0
Tested in Firefox ... | true | ###
** Modified Quicksilver so that that it doesn't extends the `String` object's prototype.
qs_score - Quicksilver Score
A port of the Quicksilver string ranking algorithm
score("hello world", "axl") //=> 0.0
score("hello world", "ow") //=> 0.6
score("hello world", "hello world") //=> 1.0
Tested in Firefox ... |
[
{
"context": " data: {\n email: email,\n password: password, \n username: username,\n },\n dat",
"end": 6893,
"score": 0.9989948868751526,
"start": 6885,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "l,\n password: password, \n ... | jotleaf/static/js/views_base.coffee | reverie/jotleaf.com | 1 | # views_base.coffee is for the 'base' models that other Backbone.Views derive
# from, and methods/data shared between views
makeUrl = (content, render) ->
assert URLs[content]
URLs[content]
makeMessage = (msgName) ->
assert msgs[msgName]
msgs[msgName]
URLs = {
registration_register: '/account/register/'
... | 52177 | # views_base.coffee is for the 'base' models that other Backbone.Views derive
# from, and methods/data shared between views
makeUrl = (content, render) ->
assert URLs[content]
URLs[content]
makeMessage = (msgName) ->
assert msgs[msgName]
msgs[msgName]
URLs = {
registration_register: '/account/register/'
... | true | # views_base.coffee is for the 'base' models that other Backbone.Views derive
# from, and methods/data shared between views
makeUrl = (content, render) ->
assert URLs[content]
URLs[content]
makeMessage = (msgName) ->
assert msgs[msgName]
msgs[msgName]
URLs = {
registration_register: '/account/register/'
... |
[
{
"context": "ect)', ->\n fn = -> 'foo'\n fn.key = 'value'\n expect(up.util.isOptions(fn)).toBe(false",
"end": 42751,
"score": 0.6574239730834961,
"start": 42746,
"tag": "KEY",
"value": "value"
},
{
"context": "ect)', ->\n fn = -> 'foo'\n fn.key = '... | spec_app/spec/javascripts/up/util_spec.js.coffee | ktec/unpoly | 0 | describe 'up.util', ->
u = up.util
describe 'JavaScript functions', ->
# describe 'up.util.flatMap', ->
#
# it 'collects the Array results of the given map function, then concatenates the result arrays into one flat array', ->
# fun = (x) -> [x, x]
# result = up.util.flatMap([1, 2, 3], fun)... | 105396 | describe 'up.util', ->
u = up.util
describe 'JavaScript functions', ->
# describe 'up.util.flatMap', ->
#
# it 'collects the Array results of the given map function, then concatenates the result arrays into one flat array', ->
# fun = (x) -> [x, x]
# result = up.util.flatMap([1, 2, 3], fun)... | true | describe 'up.util', ->
u = up.util
describe 'JavaScript functions', ->
# describe 'up.util.flatMap', ->
#
# it 'collects the Array results of the given map function, then concatenates the result arrays into one flat array', ->
# fun = (x) -> [x, x]
# result = up.util.flatMap([1, 2, 3], fun)... |
[
{
"context": "onfig = require '../config'\n\nSERIALIZATION_KEY = 'MODEL'\n# SERIALIZATION_EXPIRE_TIME_MS = 1000 * 10 # 10 ",
"end": 3105,
"score": 0.7463817000389099,
"start": 3100,
"tag": "KEY",
"value": "MODEL"
},
{
"context": " @overlay = new Overlay()\n\n @auth = new Auth {... | src/models/index.coffee | FreeRoamApp/free-roam | 14 | Exoid = require 'exoid'
_isEmpty = require 'lodash/isEmpty'
_isPlainObject = require 'lodash/isPlainObject'
_defaults = require 'lodash/defaults'
_merge = require 'lodash/merge'
_pick = require 'lodash/pick'
_map = require 'lodash/map'
_zipWith = require 'lodash/zipWith'
_differenceWith = require 'lodash/differenceWith... | 105819 | Exoid = require 'exoid'
_isEmpty = require 'lodash/isEmpty'
_isPlainObject = require 'lodash/isPlainObject'
_defaults = require 'lodash/defaults'
_merge = require 'lodash/merge'
_pick = require 'lodash/pick'
_map = require 'lodash/map'
_zipWith = require 'lodash/zipWith'
_differenceWith = require 'lodash/differenceWith... | true | Exoid = require 'exoid'
_isEmpty = require 'lodash/isEmpty'
_isPlainObject = require 'lodash/isPlainObject'
_defaults = require 'lodash/defaults'
_merge = require 'lodash/merge'
_pick = require 'lodash/pick'
_map = require 'lodash/map'
_zipWith = require 'lodash/zipWith'
_differenceWith = require 'lodash/differenceWith... |
[
{
"context": "rink - reduce and simplify vector and mbtiles\n by Michael Strassburger <codepoet@cpan.org>\n\n Downsamples the extent of ",
"end": 83,
"score": 0.9998741149902344,
"start": 63,
"tag": "NAME",
"value": "Michael Strassburger"
},
{
"context": "ify vector and mbtiles\n ... | src/Shrinker.coffee | rastapasta/tileshrink | 27 | ###
tileshrink - reduce and simplify vector and mbtiles
by Michael Strassburger <codepoet@cpan.org>
Downsamples the extent of all layers and simplifies the resulting polylines
###
simplify = require 'simplify-js'
module.exports = class Shrinker
config:
extent: 1024
precision: 1
include: null
... | 184350 | ###
tileshrink - reduce and simplify vector and mbtiles
by <NAME> <<EMAIL>>
Downsamples the extent of all layers and simplifies the resulting polylines
###
simplify = require 'simplify-js'
module.exports = class Shrinker
config:
extent: 1024
precision: 1
include: null
shrink: null
clampP... | true | ###
tileshrink - reduce and simplify vector and mbtiles
by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
Downsamples the extent of all layers and simplifies the resulting polylines
###
simplify = require 'simplify-js'
module.exports = class Shrinker
config:
extent: 1024
precision: 1
include: null... |
[
{
"context": "config =\n title: 'Runners'\n token: 'CHANGEME'\n org: 'CHANGEME'\n topposition: '650px'\n leftp",
"end": 46,
"score": 0.9874438047409058,
"start": 38,
"tag": "PASSWORD",
"value": "CHANGEME"
}
] | github-runner.coffee | mms-gianni/uebersicht-widget-guthub-runner | 0 | config =
title: 'Runners'
token: 'CHANGEME'
org: 'CHANGEME'
topposition: '650px'
leftposition: '10px'
command: "curl -sS -u :#{config.token} -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/orgs/#{config.org}/actions/runners"
refreshFrequency: 4800
style: """
color: #fff
font-fami... | 117719 | config =
title: 'Runners'
token: '<PASSWORD>'
org: 'CHANGEME'
topposition: '650px'
leftposition: '10px'
command: "curl -sS -u :#{config.token} -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/orgs/#{config.org}/actions/runners"
refreshFrequency: 4800
style: """
color: #fff
font-fa... | true | config =
title: 'Runners'
token: 'PI:PASSWORD:<PASSWORD>END_PI'
org: 'CHANGEME'
topposition: '650px'
leftposition: '10px'
command: "curl -sS -u :#{config.token} -H \"Accept: application/vnd.github.v3+json\" https://api.github.com/orgs/#{config.org}/actions/runners"
refreshFrequency: 4800
style: """
col... |
[
{
"context": " 0, 0, 1\n 1, 1, 0\n]\nkids =\n brother:\n name: \"Max\"\n age : 11\n sister:\n name: \"Ida\"\n age :",
"end": 156,
"score": 0.9998275637626648,
"start": 153,
"tag": "NAME",
"value": "Max"
},
{
"context": " name: \"Max\"\n age : 11\n sister:\n n... | CoffeeScriptRunTime/CoffeeScripts/ObjectAndArray.coffee | fredericaltorres/DynamicJavaScriptRunTimes.NET | 4 | song = ["do", "re", "mi", "fa", "so"]
singers = {Jagger: "Rock", Elvis: "Roll"}
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
kids =
brother:
name: "Max"
age : 11
sister:
name: "Ida"
age : 9
printJSON(song)
printJSON(singers)
printJSON(bitlist)
printJSON(kids) | 178568 | song = ["do", "re", "mi", "fa", "so"]
singers = {Jagger: "Rock", Elvis: "Roll"}
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
kids =
brother:
name: "<NAME>"
age : 11
sister:
name: "<NAME>"
age : 9
printJSON(song)
printJSON(singers)
printJSON(bitlist)
printJSON(kids) | true | song = ["do", "re", "mi", "fa", "so"]
singers = {Jagger: "Rock", Elvis: "Roll"}
bitlist = [
1, 0, 1
0, 0, 1
1, 1, 0
]
kids =
brother:
name: "PI:NAME:<NAME>END_PI"
age : 11
sister:
name: "PI:NAME:<NAME>END_PI"
age : 9
printJSON(song)
printJSON(singers)
printJSON(bitlist)
printJSON(kids) |
[
{
"context": ".\n\n@module joukou-api/persona/graph/routes\n@author Isaac Johnston <isaac.johnston@joukou.com>\n###\n\n_ ",
"end": 778,
"score": 0.9998853802680969,
"start": 764,
"tag": "NAME",
"value": "Isaac Johnston"
},
{
"context": "-api/persona/graph/routes\n@autho... | src/persona/graph/routes.coffee | joukou/joukou-api | 0 | "use strict"
###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 157246 | "use strict"
###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | true | "use strict"
###*
Copyright 2014 Joukou Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
[
{
"context": "###\nGulp task watch\n@create 2014-10-07\n@author KoutarouYabe <idolm@ster.pw>\n###\n\nmodule.exports = (gulp, plug",
"end": 59,
"score": 0.9998920559883118,
"start": 47,
"tag": "NAME",
"value": "KoutarouYabe"
},
{
"context": "sk watch\n@create 2014-10-07\n@author Kouta... | tasks/config/watch.coffee | moorvin/Sea-Fight | 1 | ###
Gulp task watch
@create 2014-10-07
@author KoutarouYabe <idolm@ster.pw>
###
module.exports = (gulp, plugins, growl, path)->
gulp.task "watch:assets", ->
plugins.livereload = plugins.livereload.listen()
plugins.watch ["assets/**/*.sass", "assets/**/*.scss"], (file)->
plugins.util.log file.path.yello... | 96274 | ###
Gulp task watch
@create 2014-10-07
@author <NAME> <<EMAIL>>
###
module.exports = (gulp, plugins, growl, path)->
gulp.task "watch:assets", ->
plugins.livereload = plugins.livereload.listen()
plugins.watch ["assets/**/*.sass", "assets/**/*.scss"], (file)->
plugins.util.log file.path.yellow + " was ch... | true | ###
Gulp task watch
@create 2014-10-07
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
module.exports = (gulp, plugins, growl, path)->
gulp.task "watch:assets", ->
plugins.livereload = plugins.livereload.listen()
plugins.watch ["assets/**/*.sass", "assets/**/*.scss"], (file)->
plugins.util.lo... |
[
{
"context": "#\n# Zen Photon Garden.\n#\n# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>\n#\n# Permission is hereby g",
"end": 71,
"score": 0.9998819828033447,
"start": 50,
"tag": "NAME",
"value": "Micah Elizabeth Scott"
},
{
"context": ".\n#\n# Copyright (c)... | example /html/src/zen-widgets.coffee | amane312/photon_generator | 0 | #
# Zen Photon Garden.
#
# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without... | 89424 | #
# Zen Photon Garden.
#
# Copyright (c) 2013 <NAME> <<EMAIL>>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to ... | true | #
# Zen Photon Garden.
#
# Copyright (c) 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including with... |
[
{
"context": "T /cache', ->\n beforeEach ->\n @publicKey = '''-----BEGIN PUBLIC KEY-----\nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAILmZ+FAnHRH5uxDCjuZNf4/NO1+RlnB\nrgGbCwRSmrezo4kBnAcOEx54m18toGFLI40oHFazEgvOM3F1N3jxelkCAwEAAQ==\n-----END PUBLIC KEY-----'''\n @privateKey = '''-----BEGIN RSA PRIVATE KE",
"end... | test/integration/get-cache-spec.coffee | octoblu/meshblu-ref-cache-service | 0 | {beforeEach, afterEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
request = require 'request'
enableDestroy = require 'server-destroy'
Server = require '../../src/server'
Redis = require 'ioredis'
RedisNS = require '@octoblu/redis-ns'
UUID ... | 199765 | {beforeEach, afterEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
request = require 'request'
enableDestroy = require 'server-destroy'
Server = require '../../src/server'
Redis = require 'ioredis'
RedisNS = require '@octoblu/redis-ns'
UUID ... | true | {beforeEach, afterEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
request = require 'request'
enableDestroy = require 'server-destroy'
Server = require '../../src/server'
Redis = require 'ioredis'
RedisNS = require '@octoblu/redis-ns'
UUID ... |
[
{
"context": "end(\"<option jpg-val='#{jpg_url}' username-val='#{default_username}' password-val='#{default_password}' selected='se",
"end": 2436,
"score": 0.9821484684944153,
"start": 2420,
"tag": "USERNAME",
"value": "default_username"
},
{
"context": " username-val='#{default_user... | data/coffeescript/202ca33b972f16f13410cf05e393146a_add_camera.js.coffee | maxim5/code-inspector | 5 | #= require jquery
#= require jquery_ujs
#= require bootstrap
#= require ladda/spin.min.js
#= require ladda/ladda.min.js
Evercam_MEDIA_URL = 'https://media.evercam.io/v1/'
Evercam_API_URL = 'https://api.evercam.io/v1/'
Dasboard_URL = 'https://dash.evercam.io'
API_ID = ''
API_Key = ''
iframeWindow = undefined
gotSnapshot... | 20068 | #= require jquery
#= require jquery_ujs
#= require bootstrap
#= require ladda/spin.min.js
#= require ladda/ladda.min.js
Evercam_MEDIA_URL = 'https://media.evercam.io/v1/'
Evercam_API_URL = 'https://api.evercam.io/v1/'
Dasboard_URL = 'https://dash.evercam.io'
API_ID = ''
API_Key = ''
iframeWindow = undefined
gotSnapshot... | true | #= require jquery
#= require jquery_ujs
#= require bootstrap
#= require ladda/spin.min.js
#= require ladda/ladda.min.js
Evercam_MEDIA_URL = 'https://media.evercam.io/v1/'
Evercam_API_URL = 'https://api.evercam.io/v1/'
Dasboard_URL = 'https://dash.evercam.io'
API_ID = ''
API_Key = ''
iframeWindow = undefined
gotSnapshot... |
[
{
"context": "datoms[ idx ] = lets d, ( d ) ->\n d.$key = \"#{sigil}#{p.tagname}\"\n d.id = p.id if p.id?\n ",
"end": 3783,
"score": 0.9524312019348145,
"start": 3772,
"tag": "KEY",
"value": "\"#{sigil}#{"
},
{
"context": "s d, ( d ) ->\n d.$key = \"#{sig... | dev/paragate/src/old-intertext-code/mkts.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERTEXT/MKTS'
log = CND.get_logger 'plain', badge
info ... | 24039 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERTEXT/MKTS'
log = CND.get_logger 'plain', badge
info ... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERTEXT/MKTS'
log = CND.get_logger 'plain', badge
info ... |
[
{
"context": " \"Model Sin\", ()->\n sin = new Sin\n name: \"name\"\n icon: \"icon\"\n explanation: \"text\"\n ",
"end": 114,
"score": 0.7901666760444641,
"start": 110,
"tag": "NAME",
"value": "name"
}
] | public/coffeescripts/tests/models/sin.coffee | googleheim/ablass | 0 | define ["sin", "sin_view"], (Sin, SinItemView)->
describe "Model Sin", ()->
sin = new Sin
name: "name"
icon: "icon"
explanation: "text"
id: 23
sin_view = new SinItemView( {model: sin} )
it "should have attributes", ()->
expect(sin.get("name")).toBe("name")
it "should ... | 220744 | define ["sin", "sin_view"], (Sin, SinItemView)->
describe "Model Sin", ()->
sin = new Sin
name: "<NAME>"
icon: "icon"
explanation: "text"
id: 23
sin_view = new SinItemView( {model: sin} )
it "should have attributes", ()->
expect(sin.get("name")).toBe("name")
it "shoul... | true | define ["sin", "sin_view"], (Sin, SinItemView)->
describe "Model Sin", ()->
sin = new Sin
name: "PI:NAME:<NAME>END_PI"
icon: "icon"
explanation: "text"
id: 23
sin_view = new SinItemView( {model: sin} )
it "should have attributes", ()->
expect(sin.get("name")).toBe("name")
... |
[
{
"context": "#\t> File Name: index.coffee\n#\t> Author: LY\n#\t> Mail: ly.franky@gmail.com\n#\t> Created Time: W",
"end": 42,
"score": 0.9991358518600464,
"start": 40,
"tag": "USERNAME",
"value": "LY"
},
{
"context": "> File Name: index.coffee\n#\t> Author: LY\n#\t> Mail: ly.franky@... | server/routes/index.coffee | wiiliamking/miac-website | 0 | # > File Name: index.coffee
# > Author: LY
# > Mail: ly.franky@gmail.com
# > Created Time: Wednesday, November 19, 2014 AM10:44:10 CST
express = require 'express'
router = express.Router()
router.get '/', (req, res)->
res.render('index')
module.exports = router
| 225996 | # > File Name: index.coffee
# > Author: LY
# > Mail: <EMAIL>
# > Created Time: Wednesday, November 19, 2014 AM10:44:10 CST
express = require 'express'
router = express.Router()
router.get '/', (req, res)->
res.render('index')
module.exports = router
| true | # > File Name: index.coffee
# > Author: LY
# > Mail: PI:EMAIL:<EMAIL>END_PI
# > Created Time: Wednesday, November 19, 2014 AM10:44:10 CST
express = require 'express'
router = express.Router()
router.get '/', (req, res)->
res.render('index')
module.exports = router
|
[
{
"context": "png\" />\n <div className=\"team-member-name\">Paola Bouley</div>\n <div className=\"team-member-title\">",
"end": 374,
"score": 0.9997668266296387,
"start": 362,
"tag": "NAME",
"value": "Paola Bouley"
},
{
"context": "png\" />\n <div className=\"te... | app/pages/about/team.cjsx | zooniverse/wildcam-gorongosa-facebook | 7 | React = require 'react'
module.exports = React.createClass
displayName: 'Team'
render: ->
<div className="secondary-page">
<h2 className="team-page-header">Lion Research Project Team</h2>
<div className="team-list">
<div className="team-member">
<img src="assets/about/team/paola.png" />
... | 224762 | React = require 'react'
module.exports = React.createClass
displayName: 'Team'
render: ->
<div className="secondary-page">
<h2 className="team-page-header">Lion Research Project Team</h2>
<div className="team-list">
<div className="team-member">
<img src="assets/about/team/paola.png" />
... | true | React = require 'react'
module.exports = React.createClass
displayName: 'Team'
render: ->
<div className="secondary-page">
<h2 className="team-page-header">Lion Research Project Team</h2>
<div className="team-list">
<div className="team-member">
<img src="assets/about/team/paola.png" />
... |
[
{
"context": "ed from CourseEnrollView\n\n data =\n name: 'Single Player'\n seats: 9999\n courseID: courseID\n ",
"end": 5433,
"score": 0.9983364343643188,
"start": 5420,
"tag": "NAME",
"value": "Single Player"
}
] | app/views/courses/CoursesView.coffee | SaintRamzes/codecombat | 1 | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
RootView = require 'views/core/RootView'
template = require 'templates/courses/courses'
utils = require 'cor... | 50812 | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
RootView = require 'views/core/RootView'
template = require 'templates/courses/courses'
utils = require 'cor... | true | app = require 'core/application'
AuthModal = require 'views/core/AuthModal'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
RootView = require 'views/core/RootView'
template = require 'templates/courses/courses'
utils = require 'cor... |
[
{
"context": "<Task {...@props} workflow={@state.workflow} key={id} plumbId={id} taskKey={id} taskNumber={idx} initi",
"end": 6807,
"score": 0.5269137620925903,
"start": 6805,
"tag": "KEY",
"value": "id"
}
] | app/pages/lab/workflow-viewer/workflow.cjsx | Crentist/Panoptes-frontend-spanish | 1 | React = require 'react'
ReactDOM = require 'react-dom'
{Task, StartEndNode} = require './task.cjsx'
DETACHABLE = false
module.exports = React.createClass
displayName: 'WorkflowNodes'
getInitialState: ->
{initialTask, keys, workflow, taskStateSet} = @getWorkflow()
position = {}
#if @props.workflow.met... | 159338 | React = require 'react'
ReactDOM = require 'react-dom'
{Task, StartEndNode} = require './task.cjsx'
DETACHABLE = false
module.exports = React.createClass
displayName: 'WorkflowNodes'
getInitialState: ->
{initialTask, keys, workflow, taskStateSet} = @getWorkflow()
position = {}
#if @props.workflow.met... | true | React = require 'react'
ReactDOM = require 'react-dom'
{Task, StartEndNode} = require './task.cjsx'
DETACHABLE = false
module.exports = React.createClass
displayName: 'WorkflowNodes'
getInitialState: ->
{initialTask, keys, workflow, taskStateSet} = @getWorkflow()
position = {}
#if @props.workflow.met... |
[
{
"context": "e COOLSTRAP.Util\n * @class Platform\n * \n * @author Abraham Barrera <abarrerac@gmail.com> || @abraham_barrera\n * Insp",
"end": 118,
"score": 0.9998939633369446,
"start": 103,
"tag": "NAME",
"value": "Abraham Barrera"
},
{
"context": "* @class Platform\n * \n * @autho... | coolstrap-core/app/assets/javascripts/coolstrap/util/_Coolstrap.Util.Platform.coffee | cristianferrarig/coolstrap | 0 | ###
* Coolstrap Platform functions
*
* @namespace COOLSTRAP.Util
* @class Platform
*
* @author Abraham Barrera <abarrerac@gmail.com> || @abraham_barrera
* Inspired by LungoJS
###
COOLSTRAP.Util.Platform = ((cool) ->
SUPPORTED_OS =
android: /(Android)\s+([\d.]+)/
ipad: /(iPad).*OS\s([\d_]+)/
ipho... | 164372 | ###
* Coolstrap Platform functions
*
* @namespace COOLSTRAP.Util
* @class Platform
*
* @author <NAME> <<EMAIL>> || @abraham_barrera
* Inspired by LungoJS
###
COOLSTRAP.Util.Platform = ((cool) ->
SUPPORTED_OS =
android: /(Android)\s+([\d.]+)/
ipad: /(iPad).*OS\s([\d_]+)/
iphone: /(iPhone\sOS)\s([... | true | ###
* Coolstrap Platform functions
*
* @namespace COOLSTRAP.Util
* @class Platform
*
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> || @abraham_barrera
* Inspired by LungoJS
###
COOLSTRAP.Util.Platform = ((cool) ->
SUPPORTED_OS =
android: /(Android)\s+([\d.]+)/
ipad: /(iPad).*OS\s([\d_]+)/
... |
[
{
"context": " 1.0.0\n@file RestDelete.js\n@author Welington Sampaio (http://welington.zaez.net/)\n@contact http://",
"end": 143,
"score": 0.9998928308486938,
"start": 126,
"tag": "NAME",
"value": "Welington Sampaio"
}
] | vendor/assets/javascripts/joker/RestDelete.coffee | zaeznet/joker-rails | 0 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file RestDelete.js
@author Welington Sampaio (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free... | 215003 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file RestDelete.js
@author <NAME> (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, ... | true | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file RestDelete.js
@author PI:NAME:<NAME>END_PI (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is f... |
[
{
"context": "(done)->\n client\n .setValue \"#username\", \"admin\"\n .setValue \"#password\", \"password\"\n .s",
"end": 556,
"score": 0.9038124680519104,
"start": 551,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "#username\", \"admin\"\n .setValue \"... | test/UiSpec.coffee | dni/oophaga | 0 | webdriverio = require('webdriverio')
options = desiredCapabilities: browserName: 'firefox'
client = webdriverio.remote(options)
App = require "../app"
describe "UI - Usertests", ->
server = {}
apiUrl = "http://localhost:1666"
before (done)->
server = App
port: 1666
dbname: "oophaga-test"
... | 36105 | webdriverio = require('webdriverio')
options = desiredCapabilities: browserName: 'firefox'
client = webdriverio.remote(options)
App = require "../app"
describe "UI - Usertests", ->
server = {}
apiUrl = "http://localhost:1666"
before (done)->
server = App
port: 1666
dbname: "oophaga-test"
... | true | webdriverio = require('webdriverio')
options = desiredCapabilities: browserName: 'firefox'
client = webdriverio.remote(options)
App = require "../app"
describe "UI - Usertests", ->
server = {}
apiUrl = "http://localhost:1666"
before (done)->
server = App
port: 1666
dbname: "oophaga-test"
... |
[
{
"context": " email: @config.email ? \"\"\n password: @config.password ? \"\"\n group: @config.group ? \"pimatic\"\n ",
"end": 775,
"score": 0.9940234422683716,
"start": 759,
"tag": "PASSWORD",
"value": "@config.password"
},
{
"context": ": @plugin.smartnoraCon... | pimatic-smartnora.coffee | bertreb/pimatic-smartnora | 0 | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
switchAdapter = require('./adapters/switch')(env)
lightAdapter = require('./adapters/light')(env)
#lightColorAdapter = require('./adapters/lightcolor')(env)
#sensorAdapter = require('./adapters/sensor')(env)
buttonAd... | 159911 | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
switchAdapter = require('./adapters/switch')(env)
lightAdapter = require('./adapters/light')(env)
#lightColorAdapter = require('./adapters/lightcolor')(env)
#sensorAdapter = require('./adapters/sensor')(env)
buttonAd... | true | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
switchAdapter = require('./adapters/switch')(env)
lightAdapter = require('./adapters/light')(env)
#lightColorAdapter = require('./adapters/lightcolor')(env)
#sensorAdapter = require('./adapters/sensor')(env)
buttonAd... |
[
{
"context": "'insert text': (test) ->\n doc = new Doc {text:\"Hello there!\"}\n doc.at('text').insert 11, ', ShareJS'\n ",
"end": 1452,
"score": 0.5460481643676758,
"start": 1441,
"tag": "NAME",
"value": "Hello there"
}
] | node_modules/share/test/types/json-api.coffee | LaPingvino/rizzoma | 88 | assert = require 'assert'
json = require '../../src/types/json'
require '../../src/types/json-api'
MicroEvent = require '../../src/client/microevent'
Doc = (data) ->
@snapshot = data ? json.create()
@type = json
@submitOp = (op) ->
@snapshot = json.apply @snapshot, op
@emit 'change', op
@_register()
Do... | 9028 | assert = require 'assert'
json = require '../../src/types/json'
require '../../src/types/json-api'
MicroEvent = require '../../src/client/microevent'
Doc = (data) ->
@snapshot = data ? json.create()
@type = json
@submitOp = (op) ->
@snapshot = json.apply @snapshot, op
@emit 'change', op
@_register()
Do... | true | assert = require 'assert'
json = require '../../src/types/json'
require '../../src/types/json-api'
MicroEvent = require '../../src/client/microevent'
Doc = (data) ->
@snapshot = data ? json.create()
@type = json
@submitOp = (op) ->
@snapshot = json.apply @snapshot, op
@emit 'change', op
@_register()
Do... |
[
{
"context": "functions for React components detection\n# @author Yannick Croissant\n###\n'use strict'\n\nutil = require 'util'\ndoctrine ",
"end": 107,
"score": 0.9998360872268677,
"start": 90,
"tag": "NAME",
"value": "Yannick Croissant"
},
{
"context": "odes on initial AST traversa... | src/util/react/Components.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Utility class and functions for React components detection
# @author Yannick Croissant
###
'use strict'
util = require 'util'
doctrine = require 'doctrine'
variableUtil = require './variable'
pragmaUtil = require 'eslint-plugin-react/lib/util/pragma'
astUtil = require './ast'
propTypes = require '... | 86867 | ###*
# @fileoverview Utility class and functions for React components detection
# @author <NAME>
###
'use strict'
util = require 'util'
doctrine = require 'doctrine'
variableUtil = require './variable'
pragmaUtil = require 'eslint-plugin-react/lib/util/pragma'
astUtil = require './ast'
propTypes = require './propTypes... | true | ###*
# @fileoverview Utility class and functions for React components detection
# @author PI:NAME:<NAME>END_PI
###
'use strict'
util = require 'util'
doctrine = require 'doctrine'
variableUtil = require './variable'
pragmaUtil = require 'eslint-plugin-react/lib/util/pragma'
astUtil = require './ast'
propTypes = requir... |
[
{
"context": "icle-section-artworks').html().should.containEql 'Govinda Sah'\n @$('.article-section-artworks').html().shoul",
"end": 2195,
"score": 0.9997644424438477,
"start": 2184,
"tag": "NAME",
"value": "Govinda Sah"
},
{
"context": "icle-section-artworks').html().should.conta... | mobile/components/article/test/templates.coffee | dblock/force | 1 | _ = require 'underscore'
fs = require 'fs'
jade = require 'jade'
path = require 'path'
cheerio = require 'cheerio'
Backbone = require 'backbone'
{ resolve } = require 'path'
Article = require '../../../models/article'
Section = require '../../../models/section'
Articles = require '../../../collections/articles'
fixture... | 118907 | _ = require 'underscore'
fs = require 'fs'
jade = require 'jade'
path = require 'path'
cheerio = require 'cheerio'
Backbone = require 'backbone'
{ resolve } = require 'path'
Article = require '../../../models/article'
Section = require '../../../models/section'
Articles = require '../../../collections/articles'
fixture... | true | _ = require 'underscore'
fs = require 'fs'
jade = require 'jade'
path = require 'path'
cheerio = require 'cheerio'
Backbone = require 'backbone'
{ resolve } = require 'path'
Article = require '../../../models/article'
Section = require '../../../models/section'
Articles = require '../../../collections/articles'
fixture... |
[
{
"context": "Mail sender module:\", ->\n\n destinationEmail = 'mail@gertuproject.info'\n\n before (done) ->\n\n done()\n\n describ",
"end": 187,
"score": 0.9999293088912964,
"start": 165,
"tag": "EMAIL",
"value": "mail@gertuproject.info"
}
] | test/tools/mailer.coffee | gertu/gertu | 1 | should = require "should"
Mailer = require "../../server/tools/mailer"
describe "<Unit Test>", ->
describe "Mail sender module:", ->
destinationEmail = 'mail@gertuproject.info'
before (done) ->
done()
describe "The mail module", ->
it "should be send it to address " + destinationEmai... | 166725 | should = require "should"
Mailer = require "../../server/tools/mailer"
describe "<Unit Test>", ->
describe "Mail sender module:", ->
destinationEmail = '<EMAIL>'
before (done) ->
done()
describe "The mail module", ->
it "should be send it to address " + destinationEmail, (done) ->
... | true | should = require "should"
Mailer = require "../../server/tools/mailer"
describe "<Unit Test>", ->
describe "Mail sender module:", ->
destinationEmail = 'PI:EMAIL:<EMAIL>END_PI'
before (done) ->
done()
describe "The mail module", ->
it "should be send it to address " + destinationEmai... |
[
{
"context": "04d0000d94f87', 'slug': 'emptiness', 'creator': '5388f9ac9a904d0000d94f87', 'original': '53a0a1e2d9048dbc3a793c81', 'watche",
"end": 457,
"score": 0.7241109013557434,
"start": 434,
"tag": "PASSWORD",
"value": "388f9ac9a904d0000d94f87"
}
] | test/app/views/editor/level/EditorLevelView.spec.coffee | Melondonut/codecombat | 1 | EditorLevelView = require 'views/editor/level/edit'
emptyLevel = {'_id': '53a0a1e2d9048dbc3a793c81', 'name': 'Emptiness', 'description': 'Tis nothing..', 'documentation': {'generalArticles': [], 'specificArticles': []}, 'scripts': [], 'thangs': [], 'systems': [], 'victory': {}, 'version': {'minor': 0, 'major': 0, 'isL... | 129821 | EditorLevelView = require 'views/editor/level/edit'
emptyLevel = {'_id': '53a0a1e2d9048dbc3a793c81', 'name': 'Emptiness', 'description': 'Tis nothing..', 'documentation': {'generalArticles': [], 'specificArticles': []}, 'scripts': [], 'thangs': [], 'systems': [], 'victory': {}, 'version': {'minor': 0, 'major': 0, 'isL... | true | EditorLevelView = require 'views/editor/level/edit'
emptyLevel = {'_id': '53a0a1e2d9048dbc3a793c81', 'name': 'Emptiness', 'description': 'Tis nothing..', 'documentation': {'generalArticles': [], 'specificArticles': []}, 'scripts': [], 'thangs': [], 'systems': [], 'victory': {}, 'version': {'minor': 0, 'major': 0, 'isL... |
[
{
"context": "rdHash = hashedPassword.hash\n @passwordSalt = hashedPassword.salt\n @password = undefined\n next()\n",
"end": 740,
"score": 0.8000674247741699,
"start": 726,
"tag": "PASSWORD",
"value": "hashedPassword"
},
{
"context": "rdSalt = hashedPassword.salt\n... | server/models/user.coffee | paulbjensen/shogun | 1 | bcrypt = require 'bcrypt'
toLower = (value) -> value.toLowerCase()
hashPassword = (password, cb) ->
bcrypt.genSalt 10, (err, salt) ->
bcrypt.hash password, salt, (err, hash) ->
cb hash: hash, salt: salt
global.Users = new Schema
username : type: String, set: toLower
email ... | 30581 | bcrypt = require 'bcrypt'
toLower = (value) -> value.toLowerCase()
hashPassword = (password, cb) ->
bcrypt.genSalt 10, (err, salt) ->
bcrypt.hash password, salt, (err, hash) ->
cb hash: hash, salt: salt
global.Users = new Schema
username : type: String, set: toLower
email ... | true | bcrypt = require 'bcrypt'
toLower = (value) -> value.toLowerCase()
hashPassword = (password, cb) ->
bcrypt.genSalt 10, (err, salt) ->
bcrypt.hash password, salt, (err, hash) ->
cb hash: hash, salt: salt
global.Users = new Schema
username : type: String, set: toLower
email ... |
[
{
"context": "assert = chai.assert\n\nVISIBILITY_KEY ='hypothesis.visibility'\nVISIBILITY_PUBLIC = 'public'\nVISIBILITY_PRIVATE ",
"end": 60,
"score": 0.7227658033370972,
"start": 39,
"tag": "KEY",
"value": "hypothesis.visibility"
},
{
"context": ".create()\n\n fakeAuth = {\n ... | tests/js/directives/privacy-test.coffee | Treora/h | 0 | assert = chai.assert
VISIBILITY_KEY ='hypothesis.visibility'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
describe 'h.directives.privacy', ->
$window = null
$scope = null
$compile = null
$injector = null
$element = null
$isolateScope = null
beforeEach module('h')
beforeEach module('h.t... | 37329 | assert = chai.assert
VISIBILITY_KEY ='<KEY>'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
describe 'h.directives.privacy', ->
$window = null
$scope = null
$compile = null
$injector = null
$element = null
$isolateScope = null
beforeEach module('h')
beforeEach module('h.templates')
de... | true | assert = chai.assert
VISIBILITY_KEY ='PI:KEY:<KEY>END_PI'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
describe 'h.directives.privacy', ->
$window = null
$scope = null
$compile = null
$injector = null
$element = null
$isolateScope = null
beforeEach module('h')
beforeEach module('h.temp... |
[
{
"context": "alert \"hello, #{= @first_name} #{== @last_name}\"",
"end": 29,
"score": 0.7282513380050659,
"start": 18,
"tag": "USERNAME",
"value": "@first_name"
},
{
"context": "alert \"hello, #{= @first_name} #{== @last_name}\"",
"end": 35,
"score": 0.4120033383369446,
... | spec/dummy/app/views/events/index.js.coffee | lmgtfy/coffee-views | 8 | alert "hello, #{= @first_name} #{== @last_name}" | 52674 | alert "hello, #{= @first_name} #{==<NAME> @last_name}" | true | alert "hello, #{= @first_name} #{==PI:NAME:<NAME>END_PI @last_name}" |
[
{
"context": "---\n---\nfirst_word = \"Hello\"\nboth_words = \"#{first_word} World\"\n",
"end": 27,
"score": 0.8234581351280212,
"start": 22,
"tag": "NAME",
"value": "Hello"
}
] | js/trycoffee.coffee | AYCHERA/AYCHERA.github.io | 0 | ---
---
first_word = "Hello"
both_words = "#{first_word} World"
| 197462 | ---
---
first_word = "<NAME>"
both_words = "#{first_word} World"
| true | ---
---
first_word = "PI:NAME:<NAME>END_PI"
both_words = "#{first_word} World"
|
[
{
"context": "e: Model.String.required\n\t# \t\t# toString: -> \"User [@fullName]\"\n\t# \t\t# hobies:[\n\t# \t\t# \ttitle: String\n\t# \t\t# \ts",
"end": 3346,
"score": 0.9970686435699463,
"start": 3336,
"tag": "USERNAME",
"value": "[@fullName"
},
{
"context": "d: Boolean\n\t# \t\t#... | assets-test/browser/schema.coffee | gridfw/gridfw-model | 1 | try
Model= new ModelClass()
# ...
console.log 'Test schema ========================>'
userSchema= Model.freeze.value
_id: Model.Hex.default('445a54c566b4e')
id: Model.alias '_id'
firstName: Model.String.required
lastName: Model.String
status: Model.virtual.extensible.value
st1: Model.default(5)
st2... | 185975 | try
Model= new ModelClass()
# ...
console.log 'Test schema ========================>'
userSchema= Model.freeze.value
_id: Model.Hex.default('445a54c566b4e')
id: Model.alias '_id'
firstName: Model.String.required
lastName: Model.String
status: Model.virtual.extensible.value
st1: Model.default(5)
st2... | true | try
Model= new ModelClass()
# ...
console.log 'Test schema ========================>'
userSchema= Model.freeze.value
_id: Model.Hex.default('445a54c566b4e')
id: Model.alias '_id'
firstName: Model.String.required
lastName: Model.String
status: Model.virtual.extensible.value
st1: Model.default(5)
st2... |
[
{
"context": "s/\"))\n view_engine: 'jade'\n\n state_key: 'spotify_auth_state'\n access_key: 'spotify_access_token'\n refres",
"end": 838,
"score": 0.975411057472229,
"start": 820,
"tag": "KEY",
"value": "spotify_auth_state"
},
{
"context": "e_key: 'spotify_auth_sta... | back/src/config.coffee | dropofwill/upm-ui | 0 | parse = require('url-parse')
url = require('url')
path = require('path')
###
# If these environment variable are not set, we cannot continue
# Throw a warning and kill the process
###
if (not process.env.SPOTIFY_CLIENT_ID and
not process.env.SPOTIFY_CLIENT_SECRET and
not process.env.ECHO_API_KEY ... | 29431 | parse = require('url-parse')
url = require('url')
path = require('path')
###
# If these environment variable are not set, we cannot continue
# Throw a warning and kill the process
###
if (not process.env.SPOTIFY_CLIENT_ID and
not process.env.SPOTIFY_CLIENT_SECRET and
not process.env.ECHO_API_KEY ... | true | parse = require('url-parse')
url = require('url')
path = require('path')
###
# If these environment variable are not set, we cannot continue
# Throw a warning and kill the process
###
if (not process.env.SPOTIFY_CLIENT_ID and
not process.env.SPOTIFY_CLIENT_SECRET and
not process.env.ECHO_API_KEY ... |
[
{
"context": "# Description:\n# Motivation from Ron Swanson\n#\n# Dependencies:\n# None\n#\n# Configuration:\n# ",
"end": 46,
"score": 0.9442520141601562,
"start": 35,
"tag": "NAME",
"value": "Ron Swanson"
},
{
"context": "- Motivates you to be more awesome\n#\n# Author:\n# da... | src/scripts/swanson.coffee | Reelhouse/hubot-scripts | 1,450 | # Description:
# Motivation from Ron Swanson
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot swanson me - Motivates you to be more awesome
#
# Author:
# danielmurphy
module.exports = (robot) ->
robot.respond /swanson me$/i, (msg) ->
images = [
"http://i.imgur.com/kW0f7.jp... | 195694 | # Description:
# Motivation from <NAME>
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot swanson me - Motivates you to be more awesome
#
# Author:
# danielmurphy
module.exports = (robot) ->
robot.respond /swanson me$/i, (msg) ->
images = [
"http://i.imgur.com/kW0f7.jpg",
... | true | # Description:
# Motivation from PI:NAME:<NAME>END_PI
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot swanson me - Motivates you to be more awesome
#
# Author:
# danielmurphy
module.exports = (robot) ->
robot.respond /swanson me$/i, (msg) ->
images = [
"http://i.imgur.com... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission ",
"end": 18,
"score": 0.9085404872894287,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-timers-uncaught-exception.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... | 135003 | # 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": " super(5) + ' by slithering'\n\nsam = new Snake 'Sam'\nsam.move()\n\n# Trace:\n# 1: before Animal=<fun",
"end": 189,
"score": 0.9965795874595642,
"start": 186,
"tag": "NAME",
"value": "Sam"
},
{
"context": "ter\n# 11: before sam=/\n# 2: enter @name='Sam'... | test/traces/coffee/inheritance.coffee | paigeruten/pencil-tracer | 1 | class Animal
constructor: (@name) ->
move: (meters) ->
@name + ' moved ' + meters + 'm'
class Snake extends Animal
move: ->
super(5) + ' by slithering'
sam = new Snake 'Sam'
sam.move()
# Trace:
# 1: before Animal=<function>
# 1: after Animal=<function>
# 2: before
# 2: after
# 4: bef... | 13645 | class Animal
constructor: (@name) ->
move: (meters) ->
@name + ' moved ' + meters + 'm'
class Snake extends Animal
move: ->
super(5) + ' by slithering'
sam = new Snake '<NAME>'
sam.move()
# Trace:
# 1: before Animal=<function>
# 1: after Animal=<function>
# 2: before
# 2: after
# 4: ... | true | class Animal
constructor: (@name) ->
move: (meters) ->
@name + ' moved ' + meters + 'm'
class Snake extends Animal
move: ->
super(5) + ' by slithering'
sam = new Snake 'PI:NAME:<NAME>END_PI'
sam.move()
# Trace:
# 1: before Animal=<function>
# 1: after Animal=<function>
# 2: before
# 2: ... |
[
{
"context": "uire '../../config'\nconfig.MONGO_URL = 'mongodb://127.0.0.1:27017/nfd-test'\n\ndescribe 'auth', ->\n\n beforeEac",
"end": 185,
"score": 0.9997198581695557,
"start": 176,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "ogs you in', (done) ->\n Users.inser... | test/integration/auth.coffee | craigspaeth/nfd-api | 0 | app = require '../../'
request = require 'superagent'
dal = require '../../dal'
Users = require '../../dal/users'
config = require '../../config'
config.MONGO_URL = 'mongodb://127.0.0.1:27017/nfd-test'
describe 'auth', ->
beforeEach (done) ->
dal.connect =>
@server = app.listen 5000, ->
console.lo... | 111058 | app = require '../../'
request = require 'superagent'
dal = require '../../dal'
Users = require '../../dal/users'
config = require '../../config'
config.MONGO_URL = 'mongodb://127.0.0.1:27017/nfd-test'
describe 'auth', ->
beforeEach (done) ->
dal.connect =>
@server = app.listen 5000, ->
console.lo... | true | app = require '../../'
request = require 'superagent'
dal = require '../../dal'
Users = require '../../dal/users'
config = require '../../config'
config.MONGO_URL = 'mongodb://127.0.0.1:27017/nfd-test'
describe 'auth', ->
beforeEach (done) ->
dal.connect =>
@server = app.listen 5000, ->
console.lo... |
[
{
"context": " (ƒ) -> storage.index \"test/models/1\", {\"name\": \"Duke\"}, ƒ\n (ƒ) -> storage.refresh \"test\", ƒ\n ]",
"end": 402,
"score": 0.9958944916725159,
"start": 398,
"tag": "NAME",
"value": "Duke"
},
{
"context": "SON(),\n \"id\": \"1\"\n \"n... | test/sync_test.coffee | craigdavey/elastic-storage | 0 | {ElasticStorage} = require "./test_helper"
{series, nextTick} = require "async"
Backbone = require "backbone"
module.exports =
setUp: (done) -> (new ElasticStorage).init "test", done
tearDown: (done) -> (new ElasticStorage).drop "test", done
"fetch a model": (test) ->
test.expect 1
storage = new Elas... | 42241 | {ElasticStorage} = require "./test_helper"
{series, nextTick} = require "async"
Backbone = require "backbone"
module.exports =
setUp: (done) -> (new ElasticStorage).init "test", done
tearDown: (done) -> (new ElasticStorage).drop "test", done
"fetch a model": (test) ->
test.expect 1
storage = new Elas... | true | {ElasticStorage} = require "./test_helper"
{series, nextTick} = require "async"
Backbone = require "backbone"
module.exports =
setUp: (done) -> (new ElasticStorage).init "test", done
tearDown: (done) -> (new ElasticStorage).drop "test", done
"fetch a model": (test) ->
test.expect 1
storage = new Elas... |
[
{
"context": "(galaxy_id)}/galaxy/create\", {\n username: username\n password: password\n rememberMe",
"end": 3030,
"score": 0.9989238977432251,
"start": 3022,
"tag": "USERNAME",
"value": "username"
},
{
"context": "{\n username: username\n ... | plugins/starpeace-client/api/api-client.coffee | starpeace-project/starpeace-client-website | 1 | import _ from 'lodash'
import moment from 'moment'
import axios from 'axios'
import SandboxConfiguration from '~/plugins/starpeace-client/api/sandbox/sandbox-configuration.coffee'
export default class APIClient
constructor: (@client_state) ->
new SandboxConfiguration(axios)
axios.defaults.withCredentials = t... | 194874 | import _ from 'lodash'
import moment from 'moment'
import axios from 'axios'
import SandboxConfiguration from '~/plugins/starpeace-client/api/sandbox/sandbox-configuration.coffee'
export default class APIClient
constructor: (@client_state) ->
new SandboxConfiguration(axios)
axios.defaults.withCredentials = t... | true | import _ from 'lodash'
import moment from 'moment'
import axios from 'axios'
import SandboxConfiguration from '~/plugins/starpeace-client/api/sandbox/sandbox-configuration.coffee'
export default class APIClient
constructor: (@client_state) ->
new SandboxConfiguration(axios)
axios.defaults.withCredentials = t... |
[
{
"context": "ps controller\n#\n# Nodize CMS\n# https://github.com/nodize/nodizecms\n#\n# Copyright 2012, Hypee\n# http://hype",
"end": 62,
"score": 0.9994558095932007,
"start": 56,
"tag": "USERNAME",
"value": "nodize"
},
{
"context": "://github.com/nodize/nodizecms\n#\n# Copyright 2... | modules/backend/controllers/ctrl_group.coffee | nodize/nodizecms | 32 | # Groups controller
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, Hypee
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#
#
# Creating a new group
#
@post '/:lang/admin/groups/save' : (req, res) ->
values = req.... | 16720 | # Groups controller
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, <NAME>
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#
#
# Creating a new group
#
@post '/:lang/admin/groups/save' : (req, res) ->
values = req... | true | # Groups controller
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, PI:NAME:<NAME>END_PI
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#
#
# Creating a new group
#
@post '/:lang/admin/groups/save' : (req, res) ->
... |
[
{
"context": "lass IsyInsteonDimmerNode extends IsyNode\n key: 'insteonDimmer'\n types: [[1, 14], [1, 32]]\n\n aspects:\n powe",
"end": 114,
"score": 0.9388879537582397,
"start": 101,
"tag": "KEY",
"value": "insteonDimmer"
}
] | lib/adapters/isy/IsyInsteonDimmerNode.coffee | monitron/jarvis-ha | 1 |
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonDimmerNode extends IsyNode
key: 'insteonDimmer'
types: [[1, 14], [1, 32]]
aspects:
powerOnOff:
commands:
set: (node, value) ->
if value
command = 'DON'
args = [255]
operative = node.g... | 136420 |
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonDimmerNode extends IsyNode
key: '<KEY>'
types: [[1, 14], [1, 32]]
aspects:
powerOnOff:
commands:
set: (node, value) ->
if value
command = 'DON'
args = [255]
operative = node.getAspect... | true |
IsyNode = require('./IsyNode')
module.exports = class IsyInsteonDimmerNode extends IsyNode
key: 'PI:KEY:<KEY>END_PI'
types: [[1, 14], [1, 32]]
aspects:
powerOnOff:
commands:
set: (node, value) ->
if value
command = 'DON'
args = [255]
operative = n... |
[
{
"context": "hisCollectible\n achieved.push\n name: \"Impossible I\"\n desc: \"Find a certain collectible in Nor",
"end": 576,
"score": 0.9715597629547119,
"start": 564,
"tag": "NAME",
"value": "Impossible I"
}
] | src/character/achievements/Impossible.coffee | jawsome/IdleLands | 3 |
Achievement = require "../base/Achievement"
_ = require "lodash"
`/**
* This achievement, in a perfect world, will never be earned. But, feel free to try!
*
* @name Impossible
* @prerequisite Varies
* @reward Bragging rights
* @category Achievements
* @package Player
*/`
class Impossible extends Achieve... | 94904 |
Achievement = require "../base/Achievement"
_ = require "lodash"
`/**
* This achievement, in a perfect world, will never be earned. But, feel free to try!
*
* @name Impossible
* @prerequisite Varies
* @reward Bragging rights
* @category Achievements
* @package Player
*/`
class Impossible extends Achieve... | true |
Achievement = require "../base/Achievement"
_ = require "lodash"
`/**
* This achievement, in a perfect world, will never be earned. But, feel free to try!
*
* @name Impossible
* @prerequisite Varies
* @reward Bragging rights
* @category Achievements
* @package Player
*/`
class Impossible extends Achieve... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999092817306519,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/account-edit-avatar.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @AccountEditAvatar
constructor: ->
$(document).on 'turbolinks:load', @initialize
$(document).on 'turbolinks:before-cache', @rollb... | 225770 | # 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.
class @AccountEditAvatar
constructor: ->
$(document).on 'turbolinks:load', @initialize
$(document).on 'turbolinks:before-cache', @rollback
... | 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.
class @AccountEditAvatar
constructor: ->
$(document).on 'turbolinks:load', @initialize
$(document).on 'turbolinks:before-cache'... |
[
{
"context": "app.use session(\n secret: \"keyboard cat\"\n key: \"sid\"\n cookie:\n secure: true\n)\n\n# Set View Engine.",
"end": 1739,
"score": 0.6203336119651794,
"start": 1736,
"tag": "KEY",
"value": "sid"
}
] | src/index.coffee | timmyg/pedalwagon-api | 0 | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
mongoose = require 'mongoose'
session = require('express-session')
cookieParser = require('cookie-parser')
bodyParser = require("body-parser")
#### Basic application initialization
# Create app instance.
app = express()
# Define P... | 79988 | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
mongoose = require 'mongoose'
session = require('express-session')
cookieParser = require('cookie-parser')
bodyParser = require("body-parser")
#### Basic application initialization
# Create app instance.
app = express()
# Define P... | true | express = require 'express'
stylus = require 'stylus'
assets = require 'connect-assets'
mongoose = require 'mongoose'
session = require('express-session')
cookieParser = require('cookie-parser')
bodyParser = require("body-parser")
#### Basic application initialization
# Create app instance.
app = express()
# Define P... |
[
{
"context": "s\",\"Prov\",\"Eccl\",\"Song\",\"Isa\",\"Jer\",\"Lam\",\"Ezek\",\"Dan\",\"Hos\",\"Joel\",\"Amos\",\"Obad\",\"Jonah\",\"Mic\",\"Nah\",\"",
"end": 505,
"score": 0.7877184748649597,
"start": 502,
"tag": "NAME",
"value": "Dan"
},
{
"context": "ov\",\"Eccl\",\"Song\",\"Isa\"... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/af/spec.coffee | saiba-mais/bible-lessons | 0 | bcv_parser = require("../../js/af_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | 133729 | bcv_parser = require("../../js/af_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | true | bcv_parser = require("../../js/af_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... |
[
{
"context": "r.forms['default'];\n # Fixes: https://github.com/kelp404/angular-form-builder/blob/master/example/demo.js\n",
"end": 452,
"score": 0.9996596574783325,
"start": 445,
"tag": "USERNAME",
"value": "kelp404"
},
{
"context": "ob/master/example/demo.js\n \n $scope.greeting... | coffee/controller/InitController.coffee | MichaelBakker1986/framings | 0 | ###
InitController
//bliep
Initializer for the page.
###
app.controller 'InitController', ['$scope', '$builder', 'UserService', 'FormService', 'ComponentService', ($scope, $builder, $user, $form, $component) ->
$scope.path = 'ROOT'
$scope.greeting = '<b>Hello</b>';
for component of components
$compo... | 119209 | ###
InitController
//bliep
Initializer for the page.
###
app.controller 'InitController', ['$scope', '$builder', 'UserService', 'FormService', 'ComponentService', ($scope, $builder, $user, $form, $component) ->
$scope.path = 'ROOT'
$scope.greeting = '<b>Hello</b>';
for component of components
$compo... | true | ###
InitController
//bliep
Initializer for the page.
###
app.controller 'InitController', ['$scope', '$builder', 'UserService', 'FormService', 'ComponentService', ($scope, $builder, $user, $form, $component) ->
$scope.path = 'ROOT'
$scope.greeting = '<b>Hello</b>';
for component of components
$compo... |
[
{
"context": "###\n Copyright (c) 2014, Andrew Cantino\n Copyright (c) 2009, Andrew Cantino & Kyle Maxwe",
"end": 40,
"score": 0.9998607039451599,
"start": 26,
"tag": "NAME",
"value": "Andrew Cantino"
},
{
"context": "ght (c) 2014, Andrew Cantino\n Copyright (c) 2009, Andrew Canti... | lib/js/jquery.json-editor.js.coffee | cantino/jsoneditor | 14 | ###
Copyright (c) 2014, Andrew Cantino
Copyright (c) 2009, Andrew Cantino & Kyle Maxwell
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... | 182973 | ###
Copyright (c) 2014, <NAME>
Copyright (c) 2009, <NAME> & <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, ... | true | ###
Copyright (c) 2014, PI:NAME:<NAME>END_PI
Copyright (c) 2009, PI:NAME:<NAME>END_PI & 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, includin... |
[
{
"context": "ead\n })\n\n style = layer.style\n blockKey = sketchIDToUniqueKey(layer.objectID)\n block =\n to",
"end": 9121,
"score": 0.7514516711235046,
"start": 9113,
"tag": "KEY",
"value": "sketchID"
}
] | sketch-importer/importer.coffee | caffed/pagedraw | 3,213 | fs = require 'fs'
path = require 'path'
child_process = require 'child_process'
crc64 = require 'crc64-ecma182'
_l = require 'lodash'
async = require 'async'
tinycolor = require 'tinycolor2'
PromisePool = require 'es6-promise-pool'
mkdirp = require 'mkdirp'
{Doc} = require '../src/doc'
{Dynamicable} = require '../sr... | 135947 | fs = require 'fs'
path = require 'path'
child_process = require 'child_process'
crc64 = require 'crc64-ecma182'
_l = require 'lodash'
async = require 'async'
tinycolor = require 'tinycolor2'
PromisePool = require 'es6-promise-pool'
mkdirp = require 'mkdirp'
{Doc} = require '../src/doc'
{Dynamicable} = require '../sr... | true | fs = require 'fs'
path = require 'path'
child_process = require 'child_process'
crc64 = require 'crc64-ecma182'
_l = require 'lodash'
async = require 'async'
tinycolor = require 'tinycolor2'
PromisePool = require 'es6-promise-pool'
mkdirp = require 'mkdirp'
{Doc} = require '../src/doc'
{Dynamicable} = require '../sr... |
[
{
"context": "s file is part of the Konsserto package.\n *\n * (c) Jessym Reziga <jessym@konsserto.com>\n *\n * For the full copyrig",
"end": 74,
"score": 0.9998824000358582,
"start": 61,
"tag": "NAME",
"value": "Jessym Reziga"
},
{
"context": "f the Konsserto package.\n *\n * (c) Je... | node_modules/konsserto/lib/src/Konsserto/Component/Console/Input/InputDefinition.coffee | konsserto/konsserto | 2 | ###
* This file is part of the Konsserto package.
*
* (c) Jessym Reziga <jessym@konsserto.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
###
InputOption = use('@Konsserto/Component/Console/Input/InputOption')
Tools = use('@Konss... | 137614 | ###
* This file is part of the Konsserto package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
###
InputOption = use('@Konsserto/Component/Console/Input/InputOption')
Tools = use('@Konsserto/Component/Stati... | true | ###
* This file is part of the Konsserto package.
*
* (c) PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
###
InputOption = use('@Konsserto/Component/Console/Input/InputOption')
Tools = us... |
[
{
"context": "l\", \"utf-8\")\n mint.ejs input, {locals: {name: \"My Name\"}}, (error, result) ->\n assert.equal result,",
"end": 4660,
"score": 0.9926389455795288,
"start": 4653,
"tag": "NAME",
"value": "My Name"
},
{
"context": "nt.compile(template: input, engine: 'ejs')(na... | test/mintTest.coffee | lancejpollard/mint.js | 3 | mint = require('../mint')
fs = require('fs')
global.assert = require("chai").assert
describe "mint", ->
it 'should render sequentially based on filename', (done) ->
output = '''
$(document).ready(function() {
return alert("Hello World");
});
'''
mint.render path: "test/fixtures/javascripts/some.extens... | 92163 | mint = require('../mint')
fs = require('fs')
global.assert = require("chai").assert
describe "mint", ->
it 'should render sequentially based on filename', (done) ->
output = '''
$(document).ready(function() {
return alert("Hello World");
});
'''
mint.render path: "test/fixtures/javascripts/some.extens... | true | mint = require('../mint')
fs = require('fs')
global.assert = require("chai").assert
describe "mint", ->
it 'should render sequentially based on filename', (done) ->
output = '''
$(document).ready(function() {
return alert("Hello World");
});
'''
mint.render path: "test/fixtures/javascripts/some.extens... |
[
{
"context": " = \"http://locohost:5000/root.json\"\nPOLICY_KEY = \"whimsy-rpg-S3Policy\"\n\nmodule.exports = (I={}) ->\n defaults I,\n ba",
"end": 118,
"score": 0.9995279312133789,
"start": 99,
"tag": "KEY",
"value": "whimsy-rpg-S3Policy"
}
] | data.coffee | STRd6/whimsy-rpg | 3 | S3Uploader = require "s3-uploader"
policyEndpoint = "http://locohost:5000/root.json"
POLICY_KEY = "whimsy-rpg-S3Policy"
module.exports = (I={}) ->
defaults I,
base: "http://whimsy.space/whimsy-rpg/"
fetchPolicy = ->
console.log "Fetching policy from #{policyEndpoint}"
Q($.getJSON(policyEndpoint))
g... | 163364 | S3Uploader = require "s3-uploader"
policyEndpoint = "http://locohost:5000/root.json"
POLICY_KEY = "<KEY>"
module.exports = (I={}) ->
defaults I,
base: "http://whimsy.space/whimsy-rpg/"
fetchPolicy = ->
console.log "Fetching policy from #{policyEndpoint}"
Q($.getJSON(policyEndpoint))
getS3Credential... | true | S3Uploader = require "s3-uploader"
policyEndpoint = "http://locohost:5000/root.json"
POLICY_KEY = "PI:KEY:<KEY>END_PI"
module.exports = (I={}) ->
defaults I,
base: "http://whimsy.space/whimsy-rpg/"
fetchPolicy = ->
console.log "Fetching policy from #{policyEndpoint}"
Q($.getJSON(policyEndpoint))
ge... |
[
{
"context": "ll [\n knex('users').insert id: 1, name: 'foo'\n knex('users').insert id: 2, name: 'bar",
"end": 207,
"score": 0.9213083982467651,
"start": 204,
"tag": "NAME",
"value": "foo"
},
{
"context": "foo'\n knex('users').insert id: 2, name: 'bar'\n ... | test/seeder.coffee | douglasduteil/knex-csv-seeder | 10 | describe 'seeder', ->
context 'when 2 lines of csv file', ->
beforeEach ->
@timeout 10000
knex('users').del().then ->
Promise.all [
knex('users').insert id: 1, name: 'foo'
knex('users').insert id: 2, name: 'bar'
]
it 'import the seed', ->
@timeout 10000
... | 224347 | describe 'seeder', ->
context 'when 2 lines of csv file', ->
beforeEach ->
@timeout 10000
knex('users').del().then ->
Promise.all [
knex('users').insert id: 1, name: '<NAME>'
knex('users').insert id: 2, name: '<NAME>'
]
it 'import the seed', ->
@timeout ... | true | describe 'seeder', ->
context 'when 2 lines of csv file', ->
beforeEach ->
@timeout 10000
knex('users').del().then ->
Promise.all [
knex('users').insert id: 1, name: 'PI:NAME:<NAME>END_PI'
knex('users').insert id: 2, name: 'PI:NAME:<NAME>END_PI'
]
it 'import t... |
[
{
"context": "pl(\n id: user.user_id\n name: user.user_name\n mail: user.user_mail\n stat",
"end": 619,
"score": 0.8488527536392212,
"start": 605,
"tag": "NAME",
"value": "user.user_name"
}
] | src/client/users.coffee | mauriciodelrio/lendme | 1 | class User
constructor: () ->
@load_users()
load_users: () ->
$.getJSON('/api/users')
.always (data) ->
if data.status is 'OK' and data?.data
for user in data.data or []
$('#users').tmpl(
id: user.user_id
name: user.user_name
mail: user.user_m... | 137936 | class User
constructor: () ->
@load_users()
load_users: () ->
$.getJSON('/api/users')
.always (data) ->
if data.status is 'OK' and data?.data
for user in data.data or []
$('#users').tmpl(
id: user.user_id
name: user.user_name
mail: user.user_m... | true | class User
constructor: () ->
@load_users()
load_users: () ->
$.getJSON('/api/users')
.always (data) ->
if data.status is 'OK' and data?.data
for user in data.data or []
$('#users').tmpl(
id: user.user_id
name: user.user_name
mail: user.user_m... |
[
{
"context": "nmodified expressions in loop conditions\n# @author Toru Nagashima\n###\n\n'use strict'\n\n#-----------------------------",
"end": 111,
"score": 0.9998735785484314,
"start": 97,
"tag": "NAME",
"value": "Toru Nagashima"
}
] | src/rules/no-unmodified-loop-condition.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Rule to disallow use of unmodified expressions in loop conditions
# @author Toru Nagashima
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
Traverser =
... | 109953 | ###*
# @fileoverview Rule to disallow use of unmodified expressions in loop conditions
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
Traverser =
try
... | true | ###*
# @fileoverview Rule to disallow use of unmodified expressions in loop conditions
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
Travers... |
[
{
"context": "# Slovak translation - sk\n# Translators: Martin Bucko (MartinBucko) and Rober Kamenicky (aladinko) (tre",
"end": 53,
"score": 0.9998641014099121,
"start": 41,
"tag": "NAME",
"value": "Martin Bucko"
},
{
"context": "vak translation - sk\n# Translators: Martin Bucko (Mar... | t9n/sk.coffee | coWorkr-InSights/meteor-accounts-t9n | 80 | # Slovak translation - sk
# Translators: Martin Bucko (MartinBucko) and Rober Kamenicky (aladinko) (treecom.sk)
sk =
add: "pridať"
and: "a"
back: "späť"
changePassword: "Zmena hesla"
choosePassword: "Zvoľte si heslo"
clickAgree: "Stlačením tlačidla \"Registrovať\" akceptujete"
configure: "Nastaviť"
cr... | 83877 | # Slovak translation - sk
# Translators: <NAME> (MartinBucko) and <NAME> (aladinko) (treecom.sk)
sk =
add: "pridať"
and: "a"
back: "späť"
changePassword: "<PASSWORD>"
choosePassword: "<PASSWORD>"
clickAgree: "Stlačením tlačidla \"Registrovať\" akceptujete"
configure: "Nastaviť"
createAccount: "Vytvori... | true | # Slovak translation - sk
# Translators: PI:NAME:<NAME>END_PI (MartinBucko) and PI:NAME:<NAME>END_PI (aladinko) (treecom.sk)
sk =
add: "pridať"
and: "a"
back: "späť"
changePassword: "PI:PASSWORD:<PASSWORD>END_PI"
choosePassword: "PI:PASSWORD:<PASSWORD>END_PI"
clickAgree: "Stlačením tlačidla \"Registrovať\... |
[
{
"context": "\n\t\t\trarity =\n\t\t\t\tid: Rarity.Mythron\n\t\t\t\tdevName: \"mythron\"\n\t\t\t\tname: \"Mythron\"\n\t\t\t\tspiritCost: 1200\n\t\t\t\tspi",
"end": 2497,
"score": 0.9883525967597961,
"start": 2490,
"tag": "NAME",
"value": "mythron"
},
{
"context": " Rarity.Mythron\n\t... | app/sdk/cards/rarityFactory.coffee | willroberts/duelyst | 5 |
Rarity = require './rarityLookup'
i18next = require 'i18next'
class RarityFactory
@rarityForIdentifier: (identifier) ->
rarity = null
if identifier == Rarity.Fixed
rarity =
id: Rarity.Fixed
name: i18next.t("rarity.rarity_basic")
devName: "basic"
spiritCost: 0
spiritReward: 0
spiritCo... | 141466 |
Rarity = require './rarityLookup'
i18next = require 'i18next'
class RarityFactory
@rarityForIdentifier: (identifier) ->
rarity = null
if identifier == Rarity.Fixed
rarity =
id: Rarity.Fixed
name: i18next.t("rarity.rarity_basic")
devName: "basic"
spiritCost: 0
spiritReward: 0
spiritCo... | true |
Rarity = require './rarityLookup'
i18next = require 'i18next'
class RarityFactory
@rarityForIdentifier: (identifier) ->
rarity = null
if identifier == Rarity.Fixed
rarity =
id: Rarity.Fixed
name: i18next.t("rarity.rarity_basic")
devName: "basic"
spiritCost: 0
spiritReward: 0
spiritCo... |
[
{
"context": "\n helper.store.admin.setup helper._tenantId,\"martin\",\"password1\",\"martin@wawrusch.com\",null,{}, (err,",
"end": 564,
"score": 0.9192930459976196,
"start": 558,
"tag": "USERNAME",
"value": "martin"
},
{
"context": "lper.store.admin.setup helper._tenantId,\"mar... | test/method-admin-tests.coffee | codedoctor/mongoose-user-store-multi-tenant | 4 | _ = require 'underscore'
should = require 'should'
helper = require './support/helper'
mongoHelper = require './support/mongo-helper'
sampleUsers = null
describe 'testing admin functions', ->
before (cb) ->
helper.start null, cb
after (cb) ->
helper.stop cb
it 'should exist', ->
should.exist help... | 222214 | _ = require 'underscore'
should = require 'should'
helper = require './support/helper'
mongoHelper = require './support/mongo-helper'
sampleUsers = null
describe 'testing admin functions', ->
before (cb) ->
helper.start null, cb
after (cb) ->
helper.stop cb
it 'should exist', ->
should.exist help... | true | _ = require 'underscore'
should = require 'should'
helper = require './support/helper'
mongoHelper = require './support/mongo-helper'
sampleUsers = null
describe 'testing admin functions', ->
before (cb) ->
helper.start null, cb
after (cb) ->
helper.stop cb
it 'should exist', ->
should.exist help... |
[
{
"context": "###\nRecipe Step Base Class\n\n@author Torstein Thune\n@copyright 2015 Microbrew.it\n###\nclass Step\n\n\tFer",
"end": 50,
"score": 0.9998751878738403,
"start": 36,
"tag": "NAME",
"value": "Torstein Thune"
}
] | src/steps/Step.coffee | Microbrewit/microbrewit-recipe | 1 | ###
Recipe Step Base Class
@author Torstein Thune
@copyright 2015 Microbrew.it
###
class Step
Fermentable: require './ingredients/Fermentable'
Hop: require './ingredients/Hop'
Other: require './ingredients/Other'
Yeast: require './ingredients/Yeast'
_calc:
bitterness: {}
mcu: 0
gravityPoints: 0
# Recalc... | 190929 | ###
Recipe Step Base Class
@author <NAME>
@copyright 2015 Microbrew.it
###
class Step
Fermentable: require './ingredients/Fermentable'
Hop: require './ingredients/Hop'
Other: require './ingredients/Other'
Yeast: require './ingredients/Yeast'
_calc:
bitterness: {}
mcu: 0
gravityPoints: 0
# Recalculate st... | true | ###
Recipe Step Base Class
@author PI:NAME:<NAME>END_PI
@copyright 2015 Microbrew.it
###
class Step
Fermentable: require './ingredients/Fermentable'
Hop: require './ingredients/Hop'
Other: require './ingredients/Other'
Yeast: require './ingredients/Yeast'
_calc:
bitterness: {}
mcu: 0
gravityPoints: 0
# ... |
[
{
"context": "nsole.log(timeDiff)\n res = JSON.stringify(@userpassdict)\n console.log \"json created\"\n f",
"end": 1897,
"score": 0.9967989325523376,
"start": 1884,
"tag": "USERNAME",
"value": "@userpassdict"
},
{
"context": "eated\"\n fs.writeFil... | perfomance_simulations/idbp/create_json.coffee | lucy7li/compromised-credential-checking | 6 | fs = require 'fs';
zlib = require 'zlib';
readline = require 'readline';
crypto = require 'crypto';
ecc = require 'elliptic';
EC = ecc.ec;
ec = new EC('secp256k1');
class UserpassJson
constructor: (@filename) ->
@userpassdict = {}
@key = ec.genKeyPair();
@lineReader = r... | 41305 | fs = require 'fs';
zlib = require 'zlib';
readline = require 'readline';
crypto = require 'crypto';
ecc = require 'elliptic';
EC = ecc.ec;
ec = new EC('secp256k1');
class UserpassJson
constructor: (@filename) ->
@userpassdict = {}
@key = ec.genKeyPair();
@lineReader = r... | true | fs = require 'fs';
zlib = require 'zlib';
readline = require 'readline';
crypto = require 'crypto';
ecc = require 'elliptic';
EC = ecc.ec;
ec = new EC('secp256k1');
class UserpassJson
constructor: (@filename) ->
@userpassdict = {}
@key = ec.genKeyPair();
@lineReader = r... |
[
{
"context": "ageRenderer\n\n @PROJECT_URL = \"noahsug.github.com/circ\"\n\n constructor: (@win) ->\n @_resetActivityMar",
"end": 233,
"score": 0.9923600554466248,
"start": 229,
"tag": "USERNAME",
"value": "circ"
},
{
"context": "e about group'\n @message '', \" * UI mocks... | src/chat/window_message_renderer.coffee | nornagon/ircv | 20 | exports = (window.chat ?= {}).window ?= {}
##
# Handles outputing text to the window and provides functions to display
# some specific messages like help and about.
##
class MessageRenderer
@PROJECT_URL = "noahsug.github.com/circ"
constructor: (@win) ->
@_resetActivityMarker = false
@_activityMarkerLocat... | 223417 | exports = (window.chat ?= {}).window ?= {}
##
# Handles outputing text to the window and provides functions to display
# some specific messages like help and about.
##
class MessageRenderer
@PROJECT_URL = "noahsug.github.com/circ"
constructor: (@win) ->
@_resetActivityMarker = false
@_activityMarkerLocat... | true | exports = (window.chat ?= {}).window ?= {}
##
# Handles outputing text to the window and provides functions to display
# some specific messages like help and about.
##
class MessageRenderer
@PROJECT_URL = "noahsug.github.com/circ"
constructor: (@win) ->
@_resetActivityMarker = false
@_activityMarkerLocat... |
[
{
"context": "localeCompare(a.id)\n @classrooms.fetchByOwner(@teacherID)\n @supermodel.trackCollection(@classrooms)\n ",
"end": 5170,
"score": 0.9687425494194031,
"start": 5161,
"tag": "USERNAME",
"value": "teacherID"
},
{
"context": "ourseInstances()\n @courseInstances.fe... | app/views/courses/TeacherClassesView.coffee | Dakicka/codecombat | 0 | require('app/styles/courses/teacher-classes-view.sass')
RootView = require 'views/core/RootView'
template = require 'templates/courses/teacher-classes-view'
Classroom = require 'models/Classroom'
Classrooms = require 'collections/Classrooms'
Courses = require 'collections/Courses'
Campaign = require 'models/Campaign'
C... | 12508 | require('app/styles/courses/teacher-classes-view.sass')
RootView = require 'views/core/RootView'
template = require 'templates/courses/teacher-classes-view'
Classroom = require 'models/Classroom'
Classrooms = require 'collections/Classrooms'
Courses = require 'collections/Courses'
Campaign = require 'models/Campaign'
C... | true | require('app/styles/courses/teacher-classes-view.sass')
RootView = require 'views/core/RootView'
template = require 'templates/courses/teacher-classes-view'
Classroom = require 'models/Classroom'
Classrooms = require 'collections/Classrooms'
Courses = require 'collections/Courses'
Campaign = require 'models/Campaign'
C... |
[
{
"context": "pell\"\n\nclass DrunkenFrenzy extends Spell\n name: \"drunken frenzy\"\n @element = DrunkenFrenzy::element = Spell::Ele",
"end": 97,
"score": 0.9138669371604919,
"start": 83,
"tag": "NAME",
"value": "drunken frenzy"
}
] | src/character/spells/combat-skills/pirate/DrunkenFrenzy.coffee | jawsome/IdleLands | 3 |
Spell = require "../../../base/Spell"
class DrunkenFrenzy extends Spell
name: "drunken frenzy"
@element = DrunkenFrenzy::element = Spell::Element.physical
determineTargets: ->
@targetSomeEnemies size: 1
calcDamage: ->
baseDamage = (@caster.calc.stat 'str')*(1+(99-@caster.special.getValue())/100)
... | 56017 |
Spell = require "../../../base/Spell"
class DrunkenFrenzy extends Spell
name: "<NAME>"
@element = DrunkenFrenzy::element = Spell::Element.physical
determineTargets: ->
@targetSomeEnemies size: 1
calcDamage: ->
baseDamage = (@caster.calc.stat 'str')*(1+(99-@caster.special.getValue())/100)
minStat... | true |
Spell = require "../../../base/Spell"
class DrunkenFrenzy extends Spell
name: "PI:NAME:<NAME>END_PI"
@element = DrunkenFrenzy::element = Spell::Element.physical
determineTargets: ->
@targetSomeEnemies size: 1
calcDamage: ->
baseDamage = (@caster.calc.stat 'str')*(1+(99-@caster.special.getValue())/10... |
[
{
"context": "umper | responsive | image\n# * https://github.com/brewster1134/bumper\n# *\n# * @author Ryan Brewster\n# * Copyrigh",
"end": 71,
"score": 0.9994359612464905,
"start": 59,
"tag": "USERNAME",
"value": "brewster1134"
},
{
"context": "s://github.com/brewster1134/bumper\n# ... | src/bumper-responsive-image.coffee | brewster1134/bumper | 0 | ###
# * bumper | responsive | image
# * https://github.com/brewster1134/bumper
# *
# * @author Ryan Brewster
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'bumper-core'
'bumper-responsive-breakpoint'
], (Core, ResponsiveBreakpoint) ->
f... | 205862 | ###
# * bumper | responsive | image
# * https://github.com/brewster1134/bumper
# *
# * @author <NAME>
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'bumper-core'
'bumper-responsive-breakpoint'
], (Core, ResponsiveBreakpoint) ->
factory ... | true | ###
# * bumper | responsive | image
# * https://github.com/brewster1134/bumper
# *
# * @author PI:NAME:<NAME>END_PI
# * Copyright (c) 2014
# * Licensed under the MIT license.
###
((factory) ->
if define?.amd
define [
'bumper-core'
'bumper-responsive-breakpoint'
], (Core, ResponsiveBreakpoint) ->
... |
[
{
"context": "mpest',\r\n title : \"The Tempest\",\r\n name : \"William\"\r\n surname : \"Shakespeare\"\r\n length : 123\r\n\r\no",
"end": 507,
"score": 0.9998340606689453,
"start": 500,
"tag": "NAME",
"value": "William"
},
{
"context": "he Tempest\",\r\n name : \"Willi... | archive/backbone/bower_components/backbone/test/model.coffee | Morgantheplant/website | 0 | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class D... | 7794 | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class D... | true | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class D... |
[
{
"context": " routes.submitForgotPassword { body: { email: 'foo@bar.com' } }, @res\n Backbone.sync.args[0][2].url.shoul",
"end": 827,
"score": 0.9999151229858398,
"start": 816,
"tag": "EMAIL",
"value": "foo@bar.com"
},
{
"context": "ontainEql 'send_reset_password_instructions?... | src/mobile/apps/auth/test/routes.coffee | kierangillen/force | 0 | { fabricate } = require 'antigravity'
_ = require 'underscore'
sinon = require 'sinon'
rewire = require 'rewire'
routes = rewire '../routes'
Backbone = require 'backbone'
describe '#forgotPassword', ->
it 'renders the reset form', ->
@res =
render: @render = sinon.stub(),
locals:
sd:
... | 22930 | { fabricate } = require 'antigravity'
_ = require 'underscore'
sinon = require 'sinon'
rewire = require 'rewire'
routes = rewire '../routes'
Backbone = require 'backbone'
describe '#forgotPassword', ->
it 'renders the reset form', ->
@res =
render: @render = sinon.stub(),
locals:
sd:
... | true | { fabricate } = require 'antigravity'
_ = require 'underscore'
sinon = require 'sinon'
rewire = require 'rewire'
routes = rewire '../routes'
Backbone = require 'backbone'
describe '#forgotPassword', ->
it 'renders the reset form', ->
@res =
render: @render = sinon.stub(),
locals:
sd:
... |
[
{
"context": "d.equal true\n @client.rtm._token.should.equal 'xoxb-faketoken'\n\n it 'Should initialize with a Web client', ",
"end": 331,
"score": 0.8455631136894226,
"start": 320,
"tag": "KEY",
"value": "xoxb-faketo"
},
{
"context": "d.equal true\n @client.web._token.should.... | test/client.coffee | mtoedtem/jarvis | 0 | {RtmClient, WebClient, MemoryDataStore} = require '@slack/client'
SlackFormatter = require '../src/formatter'
should = require 'should'
_ = require 'lodash'
describe 'Init', ->
it 'Should initialize with an RTM client', ->
(@client.rtm instanceof RtmClient).should.equal true
@client.rtm._token.should.equal '... | 47867 | {RtmClient, WebClient, MemoryDataStore} = require '@slack/client'
SlackFormatter = require '../src/formatter'
should = require 'should'
_ = require 'lodash'
describe 'Init', ->
it 'Should initialize with an RTM client', ->
(@client.rtm instanceof RtmClient).should.equal true
@client.rtm._token.should.equal '... | true | {RtmClient, WebClient, MemoryDataStore} = require '@slack/client'
SlackFormatter = require '../src/formatter'
should = require 'should'
_ = require 'lodash'
describe 'Init', ->
it 'Should initialize with an RTM client', ->
(@client.rtm instanceof RtmClient).should.equal true
@client.rtm._token.should.equal '... |
[
{
"context": "\n\n a = \n name: \"name\"\n\n $a = $(a)\n\n $a.w",
"end": 4120,
"score": 0.6794300079345703,
"start": 4116,
"tag": "NAME",
"value": "name"
}
] | test/$Spec.coffee | zhongxingdou/mayjs | 0 | # encoding: utf-8
sinon = require 'sinon'
describe '$.js', ->
M = require("../may.js")
M ($, $$) ->
describe "$()", ->
it "包装值类型", ->
m =
wrap: ->
__option__:
supports: [Number]
$.reg m
... | 76941 | # encoding: utf-8
sinon = require 'sinon'
describe '$.js', ->
M = require("../may.js")
M ($, $$) ->
describe "$()", ->
it "包装值类型", ->
m =
wrap: ->
__option__:
supports: [Number]
$.reg m
... | true | # encoding: utf-8
sinon = require 'sinon'
describe '$.js', ->
M = require("../may.js")
M ($, $$) ->
describe "$()", ->
it "包装值类型", ->
m =
wrap: ->
__option__:
supports: [Number]
$.reg m
... |
[
{
"context": "lectorAll('.js-reply'), {\n csrfToken: \"foo csrf_token\",\n target: \"/foo/\",\n ",
"end": 1949,
"score": 0.5448184013366699,
"start": 1946,
"tag": "PASSWORD",
"value": "foo"
},
{
"context": "torAll('.js-reply'), {\n csrfToken: \"... | spirit/core/static/spirit/scripts/test/suites/editor_file_upload-spec.coffee | Ke-xueting/Spirit | 974 | describe "editor file upload plugin tests", ->
textarea = null
post = null
editor = null
dialog = null
responseData = null
triggerFakeUpload = (name='foo.doc') ->
inputFileOrg = editor.inputFile
try
editor.inputFile = {files: [{name: name}]}
evt = documen... | 48422 | describe "editor file upload plugin tests", ->
textarea = null
post = null
editor = null
dialog = null
responseData = null
triggerFakeUpload = (name='foo.doc') ->
inputFileOrg = editor.inputFile
try
editor.inputFile = {files: [{name: name}]}
evt = documen... | true | describe "editor file upload plugin tests", ->
textarea = null
post = null
editor = null
dialog = null
responseData = null
triggerFakeUpload = (name='foo.doc') ->
inputFileOrg = editor.inputFile
try
editor.inputFile = {files: [{name: name}]}
evt = documen... |
[
{
"context": "or name and message', ->\n message = 'random message'\n error = new TypeError message\n ob",
"end": 8092,
"score": 0.6664804220199585,
"start": 8085,
"tag": "PASSWORD",
"value": "message"
}
] | packages/core/neft-core/src/util/index.test.coffee | Neft-io/neftio | 23 | 'use strict'
util = require './'
describe 'is()', ->
it 'returns true if the given values are the same', ->
assert.is util.is('a', 'a'), true
assert.is util.is(1, 1), true
assert.is util.is(undefined, undefined), true
assert.is util.is(null, null), true
assert.is util.is(tr... | 214455 | 'use strict'
util = require './'
describe 'is()', ->
it 'returns true if the given values are the same', ->
assert.is util.is('a', 'a'), true
assert.is util.is(1, 1), true
assert.is util.is(undefined, undefined), true
assert.is util.is(null, null), true
assert.is util.is(tr... | true | 'use strict'
util = require './'
describe 'is()', ->
it 'returns true if the given values are the same', ->
assert.is util.is('a', 'a'), true
assert.is util.is(1, 1), true
assert.is util.is(undefined, undefined), true
assert.is util.is(null, null), true
assert.is util.is(tr... |
[
{
"context": "ask\", ->\n # Given\n newTask = name: \"New task\", done: false\n\n # When\n ctrl.addTas",
"end": 1779,
"score": 0.8579176664352417,
"start": 1771,
"tag": "NAME",
"value": "New task"
}
] | client/test/unit/controllers/tasks_ctrl_spec.coffee | lucassus/angular-coffee-seed | 2 | describe "Controller `TasksCtrl`", ->
beforeEach module "myApp"
ctrl = null
$scope = null
# Initialize the controller and a mock scope
beforeEach inject ($rootScope, $controller) ->
$scope = $rootScope.$new()
ctrl = $controller "TasksCtrl", $scope: $scope
it "assigns tasks", ->
expect(ctrl.t... | 105851 | describe "Controller `TasksCtrl`", ->
beforeEach module "myApp"
ctrl = null
$scope = null
# Initialize the controller and a mock scope
beforeEach inject ($rootScope, $controller) ->
$scope = $rootScope.$new()
ctrl = $controller "TasksCtrl", $scope: $scope
it "assigns tasks", ->
expect(ctrl.t... | true | describe "Controller `TasksCtrl`", ->
beforeEach module "myApp"
ctrl = null
$scope = null
# Initialize the controller and a mock scope
beforeEach inject ($rootScope, $controller) ->
$scope = $rootScope.$new()
ctrl = $controller "TasksCtrl", $scope: $scope
it "assigns tasks", ->
expect(ctrl.t... |
[
{
"context": "get the weakest enemy when possible.\n *\n * @name Bully\n * @prerequisite Attack 75 times\n * @effect +5%",
"end": 371,
"score": 0.9185209274291992,
"start": 366,
"tag": "NAME",
"value": "Bully"
}
] | src/character/personalities/Bully.coffee | jawsome/IdleLands | 3 |
Personality = require "../base/Personality"
Constants = require "../../system/utilities/Constants"
_ = require "lodash"
slay = (player, enemies) ->
targets = _.sortBy (_.compact enemies.result), (enemy) -> enemy.hp.getValue()
{ probability: 200, result: [targets[0]] }
`/**
* This personality makes you target t... | 12434 |
Personality = require "../base/Personality"
Constants = require "../../system/utilities/Constants"
_ = require "lodash"
slay = (player, enemies) ->
targets = _.sortBy (_.compact enemies.result), (enemy) -> enemy.hp.getValue()
{ probability: 200, result: [targets[0]] }
`/**
* This personality makes you target t... | true |
Personality = require "../base/Personality"
Constants = require "../../system/utilities/Constants"
_ = require "lodash"
slay = (player, enemies) ->
targets = _.sortBy (_.compact enemies.result), (enemy) -> enemy.hp.getValue()
{ probability: 200, result: [targets[0]] }
`/**
* This personality makes you target t... |
[
{
"context": ", Safari4+, Chrome4+ and Opera 10.5+\n *\n * Author: Andris Reinman, andris.reinman@gmail.com\n * Project homepage: ww",
"end": 265,
"score": 0.999866783618927,
"start": 251,
"tag": "NAME",
"value": "Andris Reinman"
},
{
"context": "me4+ and Opera 10.5+\n *\n * Author: ... | coffee/api/3rd/jstorage.coffee | Spartan322/Spartan-Dev-Project | 1 | `/*
* ----------------------------- JSTORAGE -------------------------------------
* Simple local storage wrapper to save data on the browser side, supporting
* all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+
*
* Author: Andris Reinman, andris.reinman@gmail.com
* Project homepage: www.jst... | 76050 | `/*
* ----------------------------- JSTORAGE -------------------------------------
* Simple local storage wrapper to save data on the browser side, supporting
* all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+
*
* Author: <NAME>, <EMAIL>
* Project homepage: www.jstorage.info
*
* Licensed... | true | `/*
* ----------------------------- JSTORAGE -------------------------------------
* Simple local storage wrapper to save data on the browser side, supporting
* all major browsers - IE6+, Firefox2+, Safari4+, Chrome4+ and Opera 10.5+
*
* Author: PI:NAME:<NAME>END_PI, PI:EMAIL:<EMAIL>END_PI
* Project homepage: www... |
[
{
"context": " implementation of Ruby's string.succ method.\n# By Devon Govett\n#\n# Returns the successor to str. The successor i",
"end": 71,
"score": 0.9998854398727417,
"start": 59,
"tag": "NAME",
"value": "Devon Govett"
}
] | lib/font/utils.coffee | sergeyt/pdfkit | 5 | ###
# An implementation of Ruby's string.succ method.
# By Devon Govett
#
# Returns the successor to str. The successor is calculated by incrementing characters starting
# from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the
# string. Incrementing a digit always results in ... | 115138 | ###
# An implementation of Ruby's string.succ method.
# By <NAME>
#
# Returns the successor to str. The successor is calculated by incrementing characters starting
# from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the
# string. Incrementing a digit always results in anothe... | true | ###
# An implementation of Ruby's string.succ method.
# By PI:NAME:<NAME>END_PI
#
# Returns the successor to str. The successor is calculated by incrementing characters starting
# from the rightmost alphanumeric (or the rightmost character if there are no alphanumerics) in the
# string. Incrementing a digit always res... |
[
{
"context": "\nconcatする際のファイルの順番を指定する\n@create 2016-06-23\n@author KoutarouYabe <idolm@ster.pw>\n###\n\nmodule.exports =\n cssFilesT",
"end": 87,
"score": 0.9998893737792969,
"start": 75,
"tag": "NAME",
"value": "KoutarouYabe"
},
{
"context": "の順番を指定する\n@create 2016-06-23\n@author ... | tasks/pipeline.coffee | ky0615/atc_tram | 0 | ###
Gulp configure file
concatする際のファイルの順番を指定する
@create 2016-06-23
@author KoutarouYabe <idolm@ster.pw>
###
module.exports =
cssFilesToInject: [
"lib/**/*.css"
"**/*.css"
].map (path)-> "www/css/" + path
jsFilesToInject: [
"lib/angular.js"
"lib/**/*.js"
"application.js"
"**/*.js"
].map... | 49335 | ###
Gulp configure file
concatする際のファイルの順番を指定する
@create 2016-06-23
@author <NAME> <<EMAIL>>
###
module.exports =
cssFilesToInject: [
"lib/**/*.css"
"**/*.css"
].map (path)-> "www/css/" + path
jsFilesToInject: [
"lib/angular.js"
"lib/**/*.js"
"application.js"
"**/*.js"
].map (path)-> "w... | true | ###
Gulp configure file
concatする際のファイルの順番を指定する
@create 2016-06-23
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
module.exports =
cssFilesToInject: [
"lib/**/*.css"
"**/*.css"
].map (path)-> "www/css/" + path
jsFilesToInject: [
"lib/angular.js"
"lib/**/*.js"
"application.js"
... |
[
{
"context": " destroy)\nasync.series([\n -> dyn.senders.create(\"foo@bars.com\").then (x) ->\n log.info 'RESULT', \"created se",
"end": 354,
"score": 0.9999256134033203,
"start": 342,
"tag": "EMAIL",
"value": "foo@bars.com"
},
{
"context": "ON.stringify(x)}\"\n x\n -> dyn.... | examples/messaging_example.coffee | dyninc/dyn-js | 6 |
Dyn = require '../lib/dyn-js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({messaging:{apikey:"yourapikey"}})
dynClient.log.level = 'silly'
dyn = dynClient.messaging
fail = (bad) -> console.log 'FAIL', arguments
# senders: list, create, update, details, status, dkim, destroy)
async.series([
-... | 223168 |
Dyn = require '../lib/dyn-js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({messaging:{apikey:"yourapikey"}})
dynClient.log.level = 'silly'
dyn = dynClient.messaging
fail = (bad) -> console.log 'FAIL', arguments
# senders: list, create, update, details, status, dkim, destroy)
async.series([
-... | true |
Dyn = require '../lib/dyn-js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({messaging:{apikey:"yourapikey"}})
dynClient.log.level = 'silly'
dyn = dynClient.messaging
fail = (bad) -> console.log 'FAIL', arguments
# senders: list, create, update, details, status, dkim, destroy)
async.series([
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.