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": "local building command\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\nexports.init = (args) ->\n fs = require('",
"end": 81,
"score": 0.9998889565467834,
"start": 64,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | cli/commands/build.coffee | lovely-io/lovely.io-stl | 2 | #
# Package, local building command
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
exports.init = (args) ->
fs = require('fs')
source = require('../source')
pack = require('../package')
vanilla = args.indexOf('--vanilla') isnt -1
no_style = args.indexOf('--no-styles') isnt -1 || args.indexOf('... | 86015 | #
# Package, local building command
#
# Copyright (C) 2011-2012 <NAME>
#
exports.init = (args) ->
fs = require('fs')
source = require('../source')
pack = require('../package')
vanilla = args.indexOf('--vanilla') isnt -1
no_style = args.indexOf('--no-styles') isnt -1 || args.indexOf('--no-style'... | true | #
# Package, local building command
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
exports.init = (args) ->
fs = require('fs')
source = require('../source')
pack = require('../package')
vanilla = args.indexOf('--vanilla') isnt -1
no_style = args.indexOf('--no-styles') isnt -1 || args.indexO... |
[
{
"context": "uld work with map', ->\n user = { firstName: 'tom' }\n expect(getFirstName user).to.deep.equal ",
"end": 497,
"score": 0.9268333911895752,
"start": 494,
"tag": "NAME",
"value": "tom"
},
{
"context": "rstName user).to.deep.equal Maybe.Just 'my name is tom'\n\n ... | app/shared/utilities/functional-utils.spec.coffee | kasperstorgaard/chatapp | 0 | expect = chai.expect;
F = require './functional-utils.js'
Maybe = require 'pointfree-fantasy/instances/maybe'
Identity = require('pointfree-fantasy/instances/identity').Identity
R = require 'ramda'
getFirstName = R.compose(R.map(R.add 'my name is '), F.safeGet 'firstName')
describe 'functional utils', ->
describe ... | 163025 | expect = chai.expect;
F = require './functional-utils.js'
Maybe = require 'pointfree-fantasy/instances/maybe'
Identity = require('pointfree-fantasy/instances/identity').Identity
R = require 'ramda'
getFirstName = R.compose(R.map(R.add 'my name is '), F.safeGet 'firstName')
describe 'functional utils', ->
describe ... | true | expect = chai.expect;
F = require './functional-utils.js'
Maybe = require 'pointfree-fantasy/instances/maybe'
Identity = require('pointfree-fantasy/instances/identity').Identity
R = require 'ramda'
getFirstName = R.compose(R.map(R.add 'my name is '), F.safeGet 'firstName')
describe 'functional utils', ->
describe ... |
[
{
"context": "%= deploy.username %>\"\n\t\t\t\t\tpassword: \"<%= deploy.password %>\"\n\t\t\t\t\tcreateDirectories: true\n\t\n\t\t\tclientconfi",
"end": 4597,
"score": 0.5984742045402527,
"start": 4589,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "<%= deploy.username %>\"\... | Gruntfile.coffee | mpneuried/node-pi-photobooth | 0 | path = require( "path" )
request = require( "request" )
_ = require( "lodash" )
try
_gconfig = require( "./config.json" )?.grunt
if not _gconfig?
console.log( "INFO: No grunt config in `config.json` found. So use default.\n" )
_gconfig = {}
catch _e
if _e.code is "MODULE_NOT_FOUND"
console.log( "INFO: No `c... | 70222 | path = require( "path" )
request = require( "request" )
_ = require( "lodash" )
try
_gconfig = require( "./config.json" )?.grunt
if not _gconfig?
console.log( "INFO: No grunt config in `config.json` found. So use default.\n" )
_gconfig = {}
catch _e
if _e.code is "MODULE_NOT_FOUND"
console.log( "INFO: No `c... | true | path = require( "path" )
request = require( "request" )
_ = require( "lodash" )
try
_gconfig = require( "./config.json" )?.grunt
if not _gconfig?
console.log( "INFO: No grunt config in `config.json` found. So use default.\n" )
_gconfig = {}
catch _e
if _e.code is "MODULE_NOT_FOUND"
console.log( "INFO: No `c... |
[
{
"context": "quetas\"\nPAGES: \"Páginas\"\nPOSTS: \"Posts\"\nAUTHORS: \"Autores\"\nSEARCH: \"Buscar\"\nSOCIAL_NETWORKS: \"Redes Sociais",
"end": 356,
"score": 0.9946791529655457,
"start": 349,
"tag": "NAME",
"value": "Autores"
},
{
"context": "aring\": \n \"shared\": \"Compartilh... | src/i18n/pt.cson | Intraktio/hybrid | 2 | PULL_TO_REFRESH: "Puxe para atualizar"
RETRY: "Tentar novamente"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Voltar"
ERROR: "Ocorreu um erro, tente novamente."
ATTEMPT_TO_CONNECT: "Tentativa de conexão {{attempt}} de {{attemptMax}}."
OK: "Ok"
YES: "Sim"
NO: "Não"
MENU: "Menu"
HOME: "Início"
TAGS: "Etiquetas"
PAGES: "Págin... | 31725 | PULL_TO_REFRESH: "Puxe para atualizar"
RETRY: "Tentar novamente"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Voltar"
ERROR: "Ocorreu um erro, tente novamente."
ATTEMPT_TO_CONNECT: "Tentativa de conexão {{attempt}} de {{attemptMax}}."
OK: "Ok"
YES: "Sim"
NO: "Não"
MENU: "Menu"
HOME: "Início"
TAGS: "Etiquetas"
PAGES: "Págin... | true | PULL_TO_REFRESH: "Puxe para atualizar"
RETRY: "Tentar novamente"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Voltar"
ERROR: "Ocorreu um erro, tente novamente."
ATTEMPT_TO_CONNECT: "Tentativa de conexão {{attempt}} de {{attemptMax}}."
OK: "Ok"
YES: "Sim"
NO: "Não"
MENU: "Menu"
HOME: "Início"
TAGS: "Etiquetas"
PAGES: "Págin... |
[
{
"context": ".MONGOLAB_URI or process.env.db or \"mongodb://bag:bag@ds047602.mongolab.com:47602/bag-dev\"\n\n\nStore = require \"../src/models/s",
"end": 107,
"score": 0.9971498250961304,
"start": 82,
"tag": "EMAIL",
"value": "bag@ds047602.mongolab.com"
},
{
"context": "from the bag... | policeman/index.coffee | 1egoman/bag-node | 0 | require("../src/db") process.env.MONGOLAB_URI or process.env.db or "mongodb://bag:bag@ds047602.mongolab.com:47602/bag-dev"
Store = require "../src/models/store_model"
Foodstuff = require "../src/models/foodstuff_model"
Bag = require "../src/models/bag_model"
inq = require "inquirer"
async = require "async"
chalk = re... | 33005 | require("../src/db") process.env.MONGOLAB_URI or process.env.db or "mongodb://bag:<EMAIL>:47602/bag-dev"
Store = require "../src/models/store_model"
Foodstuff = require "../src/models/foodstuff_model"
Bag = require "../src/models/bag_model"
inq = require "inquirer"
async = require "async"
chalk = require "chalk"
_ = ... | true | require("../src/db") process.env.MONGOLAB_URI or process.env.db or "mongodb://bag:PI:EMAIL:<EMAIL>END_PI:47602/bag-dev"
Store = require "../src/models/store_model"
Foodstuff = require "../src/models/foodstuff_model"
Bag = require "../src/models/bag_model"
inq = require "inquirer"
async = require "async"
chalk = requi... |
[
{
"context": "e: #{new Date()}\n\nProject Ukko\nhttps://github.com/MoritzStefaner/project-ukko-os\nLicensed under Apache 2.0\n(c) by ",
"end": 755,
"score": 0.9578168988227844,
"start": 741,
"tag": "USERNAME",
"value": "MoritzStefaner"
},
{
"context": "r/project-ukko-os\nLicensed und... | www/gulpfile.coffee | MoritzStefaner/project-ukko-os | 2 | gulp = require 'gulp'
coffee = require 'gulp-coffee'
concat = require 'gulp-concat'
notify = require 'gulp-notify'
sourcemaps = require 'gulp-sourcemaps'
bower = require 'main-bower-files'
sass = require 'gulp-sass'
fileinclude = require 'gulp-file-include'
replace = require 'gulp-replace-task'
connect = require 'gulp-... | 81126 | gulp = require 'gulp'
coffee = require 'gulp-coffee'
concat = require 'gulp-concat'
notify = require 'gulp-notify'
sourcemaps = require 'gulp-sourcemaps'
bower = require 'main-bower-files'
sass = require 'gulp-sass'
fileinclude = require 'gulp-file-include'
replace = require 'gulp-replace-task'
connect = require 'gulp-... | true | gulp = require 'gulp'
coffee = require 'gulp-coffee'
concat = require 'gulp-concat'
notify = require 'gulp-notify'
sourcemaps = require 'gulp-sourcemaps'
bower = require 'main-bower-files'
sass = require 'gulp-sass'
fileinclude = require 'gulp-file-include'
replace = require 'gulp-replace-task'
connect = require 'gulp-... |
[
{
"context": " TODO fix on travis\n\n###\n\nuserData = {\n email: 'teacher@example.com'\n password: 'password'\n password_confirmation: ",
"end": 90,
"score": 0.999911904335022,
"start": 71,
"tag": "EMAIL",
"value": "teacher@example.com"
},
{
"context": "a = {\n email: 'teacher@... | test/spec/integration/profile/signup_test.coffee | JulianMiller/opened.io | 1 | ###
Sign up tests
TODO fix on travis
###
userData = {
email: 'teacher@example.com'
password: 'password'
password_confirmation: 'password'
first_name: 'John'
last_name: 'Bull'
}
password = '.ts-signup-password'
passwordConfirmation = '.ts-signup-password'
email = '.ts-signup-email'
firstName = '.ts... | 147621 | ###
Sign up tests
TODO fix on travis
###
userData = {
email: '<EMAIL>'
password: '<PASSWORD>'
password_confirmation: '<PASSWORD>'
first_name: '<NAME>'
last_name: '<NAME>'
}
password = <PASSWORD>'
passwordConfirmation = <PASSWORD>'
email = '.ts-signup-email'
firstName = '.ts-signup-firstName'
lastN... | true | ###
Sign up tests
TODO fix on travis
###
userData = {
email: 'PI:EMAIL:<EMAIL>END_PI'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
password_confirmation: 'PI:PASSWORD:<PASSWORD>END_PI'
first_name: 'PI:NAME:<NAME>END_PI'
last_name: 'PI:NAME:<NAME>END_PI'
}
password = PI:PASSWORD:<PASSWORD>END_PI'
password... |
[
{
"context": "ess.env.DB_USER ? 'postgres'\n password: process.env.DB_PASSWORD\n database: process.env.DB ? 'gc'\n\n ",
"end": 1641,
"score": 0.9446917772293091,
"start": 1618,
"tag": "PASSWORD",
"value": "process.env.DB_PASSWORD"
},
{
"context": " type:... | storage/test/integration-geocaches.coffee | foobert/gc | 1 | {expect} = require 'chai'
Promise = require 'bluebird'
request = require 'superagent-as-promised'
access = require '../lib/access'
geocacheService = require '../lib/geocache'
describe 'REST routes for geocaches', ->
@timeout 5000
db = null
token = null
url = null
setupTestData = Promise.coroutin... | 13059 | {expect} = require 'chai'
Promise = require 'bluebird'
request = require 'superagent-as-promised'
access = require '../lib/access'
geocacheService = require '../lib/geocache'
describe 'REST routes for geocaches', ->
@timeout 5000
db = null
token = null
url = null
setupTestData = Promise.coroutin... | true | {expect} = require 'chai'
Promise = require 'bluebird'
request = require 'superagent-as-promised'
access = require '../lib/access'
geocacheService = require '../lib/geocache'
describe 'REST routes for geocaches', ->
@timeout 5000
db = null
token = null
url = null
setupTestData = Promise.coroutin... |
[
{
"context": ".1:9999/test/tests.html'\n ]\n username: 'goldinteractive-open'\n key: 'bb3f9f3e-8dac-43bd-823f-16f7d998fe16",
"end": 164,
"score": 0.999646008014679,
"start": 144,
"tag": "USERNAME",
"value": "goldinteractive-open"
},
{
"context": " username: 'goldin... | grunt/saucelabs-mocha.coffee | hrishiranjan/Grid | 0 | module.exports = (grunt, options) =>
all:
options:
urls: [
'http://127.0.0.1:9999/test/tests.html'
]
username: 'goldinteractive-open'
key: 'bb3f9f3e-8dac-43bd-823f-16f7d998fe16'
browsers: grunt.file.readJSON('test/saucelabs-browsers.json')
build: process.env.TRAVIS_JOB_... | 67232 | module.exports = (grunt, options) =>
all:
options:
urls: [
'http://127.0.0.1:9999/test/tests.html'
]
username: 'goldinteractive-open'
key: '<KEY>'
browsers: grunt.file.readJSON('test/saucelabs-browsers.json')
build: process.env.TRAVIS_JOB_ID
testname: 'jQuery.GI.T... | true | module.exports = (grunt, options) =>
all:
options:
urls: [
'http://127.0.0.1:9999/test/tests.html'
]
username: 'goldinteractive-open'
key: 'PI:KEY:<KEY>END_PI'
browsers: grunt.file.readJSON('test/saucelabs-browsers.json')
build: process.env.TRAVIS_JOB_ID
testname:... |
[
{
"context": "/register\"\n\t\t\tjson:\n\t\t\t\temail: email\n\t\t\t\tpassword: password\n\t\t}, callback\n\n\ndescribe \"LoginRateLimit\", ->\n\n\tb",
"end": 1074,
"score": 0.9952285885810852,
"start": 1066,
"tag": "PASSWORD",
"value": "password"
},
{
"context": ">\n\n\tbefore ->\n\... | test/acceptance/coffee/RegistrationTests.coffee | shyoshyo/web-sharelatex | 1 | expect = require("chai").expect
assert = require("chai").assert
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
redis = require "./helpers/redis"
_ = require 'lodash'
# Currently this is testing registration via the 'public-registr... | 119947 | expect = require("chai").expect
assert = require("chai").assert
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
redis = require "./helpers/redis"
_ = require 'lodash'
# Currently this is testing registration via the 'public-registr... | true | expect = require("chai").expect
assert = require("chai").assert
async = require("async")
User = require "./helpers/User"
request = require "./helpers/request"
settings = require "settings-sharelatex"
redis = require "./helpers/redis"
_ = require 'lodash'
# Currently this is testing registration via the 'public-registr... |
[
{
"context": "# mologie:autoform-selectize\n# Copyright 2014 Oliver Kuckertz <oliver.kuckertz@mologie.de>\n# See COPYING for li",
"end": 61,
"score": 0.9990830421447754,
"start": 46,
"tag": "NAME",
"value": "Oliver Kuckertz"
},
{
"context": "oform-selectize\n# Copyright 2014 Oliver K... | autoform-selectize.coffee | mologie/meteor-autoform-selectize | 0 | # mologie:autoform-selectize
# Copyright 2014 Oliver Kuckertz <oliver.kuckertz@mologie.de>
# See COPYING for license information.
# Support for dynamically evaluating default values (non-standard)
evaluateArray = (values) -> _.map values, (value) ->
if typeof value is "function"
Tracker.nonreactive -> value()
els... | 188863 | # mologie:autoform-selectize
# Copyright 2014 <NAME> <<EMAIL>>
# See COPYING for license information.
# Support for dynamically evaluating default values (non-standard)
evaluateArray = (values) -> _.map values, (value) ->
if typeof value is "function"
Tracker.nonreactive -> value()
else
value
AutoForm.addInpu... | true | # mologie:autoform-selectize
# Copyright 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# See COPYING for license information.
# Support for dynamically evaluating default values (non-standard)
evaluateArray = (values) -> _.map values, (value) ->
if typeof value is "function"
Tracker.nonreactive -> value()
el... |
[
{
"context": "ebook\n phonebook = [\n { name: \"Jurg\", surname: \"Billeter\", phone: \"555-0123\", descrip",
"end": 1475,
"score": 0.9997649788856506,
"start": 1471,
"tag": "NAME",
"value": "Jurg"
},
{
"context": "nebook = [\n { name: \"Jurg\", surname... | example/liststore.coffee | darkoverlordofdata/gir2scala | 0 | #!/usr/bin/gjs
GObject = imports.gi.GObject
Gtk = imports.gi.Gtk
Pango = imports.gi.Pango
class TreeViewExample
Name: 'TreeView Example with Simple ListStore'
# Create the application itself
constructor:() ->
@application = new Gtk.Application(
application_id: 'org.example.jstreeview... | 173298 | #!/usr/bin/gjs
GObject = imports.gi.GObject
Gtk = imports.gi.Gtk
Pango = imports.gi.Pango
class TreeViewExample
Name: 'TreeView Example with Simple ListStore'
# Create the application itself
constructor:() ->
@application = new Gtk.Application(
application_id: 'org.example.jstreeview... | true | #!/usr/bin/gjs
GObject = imports.gi.GObject
Gtk = imports.gi.Gtk
Pango = imports.gi.Pango
class TreeViewExample
Name: 'TreeView Example with Simple ListStore'
# Create the application itself
constructor:() ->
@application = new Gtk.Application(
application_id: 'org.example.jstreeview... |
[
{
"context": "ffort\n\n# Based on juration \n\n# https://github.com/domchristie/juration\n# \n# Copyright 2011, Dom Christie\n# Lice",
"end": 72,
"score": 0.9982743263244629,
"start": 61,
"tag": "USERNAME",
"value": "domchristie"
},
{
"context": "thub.com/domchristie/juration\n# \n# ... | src/assets/coffee/angular/factories/effort.coffee | assignittous/aitui | 0 | # # PersonEffort
# Based on juration
# https://github.com/domchristie/juration
#
# Copyright 2011, Dom Christie
# Licenced under the MIT licence
# Converts human readable effort amounts into minutes, and vice versa.
# ## Dependencies
# * Angular
# * Sugar.js
# Parse Example:
# "1 h" -> 60
# Humanize Example... | 200974 | # # PersonEffort
# Based on juration
# https://github.com/domchristie/juration
#
# Copyright 2011, <NAME>
# Licenced under the MIT licence
# Converts human readable effort amounts into minutes, and vice versa.
# ## Dependencies
# * Angular
# * Sugar.js
# Parse Example:
# "1 h" -> 60
# Humanize Example:
# 9... | true | # # PersonEffort
# Based on juration
# https://github.com/domchristie/juration
#
# Copyright 2011, PI:NAME:<NAME>END_PI
# Licenced under the MIT licence
# Converts human readable effort amounts into minutes, and vice versa.
# ## Dependencies
# * Angular
# * Sugar.js
# Parse Example:
# "1 h" -> 60
# Humanize... |
[
{
"context": " pushToken = {type: user.type, token: user.token}\n if pushToken.type is 'iOS'\n ",
"end": 559,
"score": 0.48955628275871277,
"start": 559,
"tag": "PASSWORD",
"value": ""
},
{
"context": " pushToken = {type: user.type, token: user.token}\n ... | PushServer/server/start_push.coffee | Ritesh1991/mobile_app_server | 0 |
if Meteor.isServer
Meteor.startup ()->
pushToAllJPushUsers = (content)->
extras = {
type: "Notify"
}
client.push().setPlatform 'ios', 'android'
.setAudience JPush.ALL
.setNotification '回复通知',JPush.ios(content,null,null,null,extras),JPush.android... | 122445 |
if Meteor.isServer
Meteor.startup ()->
pushToAllJPushUsers = (content)->
extras = {
type: "Notify"
}
client.push().setPlatform 'ios', 'android'
.setAudience JPush.ALL
.setNotification '回复通知',JPush.ios(content,null,null,null,extras),JPush.android... | true |
if Meteor.isServer
Meteor.startup ()->
pushToAllJPushUsers = (content)->
extras = {
type: "Notify"
}
client.push().setPlatform 'ios', 'android'
.setAudience JPush.ALL
.setNotification '回复通知',JPush.ios(content,null,null,null,extras),JPush.android... |
[
{
"context": " ['test.xml',\n '<person>\\n <name>Kenji Doi</name>\\n <age>31</age>\\n</person>\\n'\n ]",
"end": 345,
"score": 0.9995271563529968,
"start": 336,
"tag": "NAME",
"value": "Kenji Doi"
},
{
"context": "est-2sheets-1.xml',\n '<person>\\n... | test/generate-test.coffee | knjcode/autometa | 0 | chai = require 'chai'
chai.should()
autometa = require '../src/autometa.coffee'
describe 'autometa generate function should return', ->
it '1 sheet data if input Excel spreadsheet with 1 sheet', ->
autometa.generate('./test/test.xlsx').should.deep.equal(
[1,
[
['test.xml',
'<p... | 178949 | chai = require 'chai'
chai.should()
autometa = require '../src/autometa.coffee'
describe 'autometa generate function should return', ->
it '1 sheet data if input Excel spreadsheet with 1 sheet', ->
autometa.generate('./test/test.xlsx').should.deep.equal(
[1,
[
['test.xml',
'<p... | true | chai = require 'chai'
chai.should()
autometa = require '../src/autometa.coffee'
describe 'autometa generate function should return', ->
it '1 sheet data if input Excel spreadsheet with 1 sheet', ->
autometa.generate('./test/test.xlsx').should.deep.equal(
[1,
[
['test.xml',
'<p... |
[
{
"context": "aStore.size--\n\treturn value\n\nON_NODE_DISPOSE_KEY = \"__onNodeDispose\"\nON_NODE_REMOVE_KEY = \"__onNodeRemove\"\nON_NODE_IN",
"end": 2880,
"score": 0.8893271684646606,
"start": 2864,
"tag": "KEY",
"value": "\"__onNodeDispose"
},
{
"context": "SPOSE_KEY = \"__onNodeD... | src/core/dom-util.coffee | homeant/cola-ui | 90 | _$ = $()
_$.length = 1
this.$fly = (dom)->
_$[0] = dom
return _$
cola.util.isVisible = (dom)->
return !!(dom.offsetWidth or dom.offsetHeight)
cola.util.setText = (dom, text = "")->
if cola.browser.mozilla
if typeof text is "string"
text = text.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<"... | 148575 | _$ = $()
_$.length = 1
this.$fly = (dom)->
_$[0] = dom
return _$
cola.util.isVisible = (dom)->
return !!(dom.offsetWidth or dom.offsetHeight)
cola.util.setText = (dom, text = "")->
if cola.browser.mozilla
if typeof text is "string"
text = text.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<"... | true | _$ = $()
_$.length = 1
this.$fly = (dom)->
_$[0] = dom
return _$
cola.util.isVisible = (dom)->
return !!(dom.offsetWidth or dom.offsetHeight)
cola.util.setText = (dom, text = "")->
if cola.browser.mozilla
if typeof text is "string"
text = text.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<"... |
[
{
"context": "is file is part of the ChinesePuzzle package.\n\n(c) Mathieu Ledru\n\nFor the full copyright and license information, ",
"end": 70,
"score": 0.9998525977134705,
"start": 57,
"tag": "NAME",
"value": "Mathieu Ledru"
}
] | Common/Bin/Data/coffee/Background/Background.coffee | matyo91/ChinesePuzzle | 1 | ###
This file is part of the ChinesePuzzle package.
(c) Mathieu Ledru
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
###
cpz.Background = cc.Layer.extend(
_bgPattern: null
_gs: null
initWithGameScene: (gs) ->
return false unless @in... | 136917 | ###
This file is part of the ChinesePuzzle package.
(c) <NAME>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
###
cpz.Background = cc.Layer.extend(
_bgPattern: null
_gs: null
initWithGameScene: (gs) ->
return false unless @init()
... | true | ###
This file is part of the ChinesePuzzle package.
(c) PI:NAME:<NAME>END_PI
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
###
cpz.Background = cc.Layer.extend(
_bgPattern: null
_gs: null
initWithGameScene: (gs) ->
return false unl... |
[
{
"context": "(legend.coffee)\n#\n# Air Sciences Inc. - 2017\n# Jacob Fielding\n#\n\nwindow.Plotter ||= {}\n\nwindow.Plotter.Legend =",
"end": 91,
"score": 0.9998445510864258,
"start": 77,
"tag": "NAME",
"value": "Jacob Fielding"
}
] | coffee/legend.coffee | airsciences/metplotter | 0 | #
# D3 V4 Legend Method (legend.coffee)
#
# Air Sciences Inc. - 2017
# Jacob Fielding
#
window.Plotter ||= {}
window.Plotter.Legend = class Legend
constructor: (plotter, plotId) ->
@preError = "Plotter.Legend."
preError = "#{@preError}.constructor(...)"
@plotter = plotter
@svg = @plotter.plot... | 17909 | #
# D3 V4 Legend Method (legend.coffee)
#
# Air Sciences Inc. - 2017
# <NAME>
#
window.Plotter ||= {}
window.Plotter.Legend = class Legend
constructor: (plotter, plotId) ->
@preError = "Plotter.Legend."
preError = "#{@preError}.constructor(...)"
@plotter = plotter
@svg = @plotter.plots[plotId... | true | #
# D3 V4 Legend Method (legend.coffee)
#
# Air Sciences Inc. - 2017
# PI:NAME:<NAME>END_PI
#
window.Plotter ||= {}
window.Plotter.Legend = class Legend
constructor: (plotter, plotId) ->
@preError = "Plotter.Legend."
preError = "#{@preError}.constructor(...)"
@plotter = plotter
@svg = @plotte... |
[
{
"context": "tory.createClient(key, null, url)\n key = utl.add0x(currentClient.secretKeyHex)\n id = utl.add0",
"end": 1712,
"score": 0.875525951385498,
"start": 1705,
"tag": "KEY",
"value": "l.add0x"
}
] | source/floatinginputpagemodule/floatinginputpagemodule.coffee | JhonnyJason/secret-cockpit-sources | 0 | floatinginputpagemodule = {name: "floatinginputpagemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["floatinginputpagemodule"]? then console.log "[floatinginputpagemodule]: " + arg
return
ostr = (obj) -> JSON... | 153550 | floatinginputpagemodule = {name: "floatinginputpagemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["floatinginputpagemodule"]? then console.log "[floatinginputpagemodule]: " + arg
return
ostr = (obj) -> JSON... | true | floatinginputpagemodule = {name: "floatinginputpagemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["floatinginputpagemodule"]? then console.log "[floatinginputpagemodule]: " + arg
return
ostr = (obj) -> JSON... |
[
{
"context": ".equal(transaction.request.uri, '/honey?beekeeper=Adam')\n )\n )\n )\n\n describe('with parameter h",
"end": 10357,
"score": 0.7962073087692261,
"start": 10353,
"tag": "NAME",
"value": "Adam"
},
{
"context": ".equal(transaction.request.uri, '/honey?beekeeper=H... | test/integration/compile-test.coffee | cranieri/dredd-transactions-extended | 0 |
fixtures = require('../fixtures')
createCompilationResultSchema = require('../schemas/compilation-result')
createLocationSchema = require('../schemas/location')
createOriginSchema = require('../schemas/origin')
{assert, compileFixture} = require('../utils')
describe('compile() · all API description formats', ->
lo... | 67908 |
fixtures = require('../fixtures')
createCompilationResultSchema = require('../schemas/compilation-result')
createLocationSchema = require('../schemas/location')
createOriginSchema = require('../schemas/origin')
{assert, compileFixture} = require('../utils')
describe('compile() · all API description formats', ->
lo... | true |
fixtures = require('../fixtures')
createCompilationResultSchema = require('../schemas/compilation-result')
createLocationSchema = require('../schemas/location')
createOriginSchema = require('../schemas/origin')
{assert, compileFixture} = require('../utils')
describe('compile() · all API description formats', ->
lo... |
[
{
"context": "use database and create schema\n password: 'dev.psql'\n database: 'postgres'\n schema: 'DB",
"end": 167,
"score": 0.9992668628692627,
"start": 159,
"tag": "PASSWORD",
"value": "dev.psql"
},
{
"context": "es'\n schema: 'DBLAYER_TEST'\n ... | test/config.coffee | smbape/node-dblayer | 0 | _ = require 'lodash'
_.extend exports,
postgres:
root: 'postgres' # a user who can create/use database and create schema
password: 'dev.psql'
database: 'postgres'
schema: 'DBLAYER_TEST'
host: '127.0.0.1'
port: 5432
cmd: 'psql'
create:
... | 54423 | _ = require 'lodash'
_.extend exports,
postgres:
root: 'postgres' # a user who can create/use database and create schema
password: '<PASSWORD>'
database: 'postgres'
schema: 'DBLAYER_TEST'
host: '127.0.0.1'
port: 5432
cmd: 'psql'
create:
... | true | _ = require 'lodash'
_.extend exports,
postgres:
root: 'postgres' # a user who can create/use database and create schema
password: 'PI:PASSWORD:<PASSWORD>END_PI'
database: 'postgres'
schema: 'DBLAYER_TEST'
host: '127.0.0.1'
port: 5432
cmd: 'psql'
... |
[
{
"context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http",
"end": 63,
"score": 0.5220626592636108,
"start": 62,
"tag": "NAME",
"value": "H"
}
] | src/handle/HandleRect.coffee | heartyoh/infopik | 0 | # ==========================================
# Copyright 2014 Hatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
LEFT = -1
CENTER = 0
RIGHT = 1
... | 200919 | # ==========================================
# Copyright 2014 <NAME>atio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
LEFT = -1
CENTER = 0
RIGHT = ... | true | # ==========================================
# Copyright 2014 PI:NAME:<NAME>END_PIatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
LEFT = -1
CENTER = ... |
[
{
"context": "ype: \"object\"\nproperties:\n username:\n title: \"Username\"\n type: \"string\"\n minLength: 1\n password:\n",
"end": 59,
"score": 0.9966257810592651,
"start": 51,
"tag": "USERNAME",
"value": "Username"
},
{
"context": "\"string\"\n minLength: 1\n passw... | public/schemas/message-schema.cson | octoblu/meshblu-authenticator-local-exchange | 0 | type: "object"
properties:
username:
title: "Username"
type: "string"
minLength: 1
password:
title: "Password"
type: "string"
minLength: 1
| 175571 | type: "object"
properties:
username:
title: "Username"
type: "string"
minLength: 1
password:
title: "<PASSWORD>"
type: "string"
minLength: 1
| true | type: "object"
properties:
username:
title: "Username"
type: "string"
minLength: 1
password:
title: "PI:PASSWORD:<PASSWORD>END_PI"
type: "string"
minLength: 1
|
[
{
"context": " value: @doc.name.toString()}\n {key: 'age_bin', value: @doc.age.toString()}\n ]\n\n sc",
"end": 443,
"score": 0.7970759272575378,
"start": 440,
"tag": "KEY",
"value": "bin"
},
{
"context": "= IndexedModel.create 'indexed-key-thing', name: 'zack', a... | ExampleZukaiRestApi/node_modules/zukai/test/indexes.coffee | radjivC/interaction-node-riak | 0 | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel} = require '../src'
Model = IndexedModel = null
describe 'Indexes', ->
before (done)->
Model = createModel 'foo',
connection: createClient()
indexes: ->
null
IndexedModel = createModel 'bar',
connection: c... | 30 | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel} = require '../src'
Model = IndexedModel = null
describe 'Indexes', ->
before (done)->
Model = createModel 'foo',
connection: createClient()
indexes: ->
null
IndexedModel = createModel 'bar',
connection: c... | true | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel} = require '../src'
Model = IndexedModel = null
describe 'Indexes', ->
before (done)->
Model = createModel 'foo',
connection: createClient()
indexes: ->
null
IndexedModel = createModel 'bar',
connection: c... |
[
{
"context": " new FactoryBase class: User, ->\n @name = 'john'\n @email = 'john@example.com'\n @seq",
"end": 283,
"score": 0.8789591193199158,
"start": 279,
"tag": "NAME",
"value": "john"
},
{
"context": "User, ->\n @name = 'john'\n @email = 'john@... | test/factory_base_test.coffee | JackDanger/factory-boy | 2 | require('./test_helper')
FactoryBase = require('../src/factory_base')
class User extends Object
describe 'FactoryBase', ->
describe '#attributes', ->
it 'should return only factory defined attributes', ->
factory = new FactoryBase class: User, ->
@name = 'john'
@email = 'john@example.com'... | 168927 | require('./test_helper')
FactoryBase = require('../src/factory_base')
class User extends Object
describe 'FactoryBase', ->
describe '#attributes', ->
it 'should return only factory defined attributes', ->
factory = new FactoryBase class: User, ->
@name = '<NAME>'
@email = '<EMAIL>'
... | true | require('./test_helper')
FactoryBase = require('../src/factory_base')
class User extends Object
describe 'FactoryBase', ->
describe '#attributes', ->
it 'should return only factory defined attributes', ->
factory = new FactoryBase class: User, ->
@name = 'PI:NAME:<NAME>END_PI'
@email = 'P... |
[
{
"context": "lass Hobbit extends Race\n key: 'hobbit'\n name: 'hobbit'\n\n alignments: ['good']\n rarity: ['trash']",
"end": 52,
"score": 0.5361436009407043,
"start": 51,
"tag": "NAME",
"value": "h"
}
] | js/races/hobbit.coffee | ktchernov/7drl-lion.github.io | 27 | class Hobbit extends Race
key: 'hobbit'
name: 'hobbit'
alignments: ['good']
rarity: ['trash']
base_hp: 10
base_mp: 20
base_speed: 90
base_attack: 10
base_sight_range: 8
for_player: false
skills: []
register_race Hobbit
| 5352 | class Hobbit extends Race
key: 'hobbit'
name: '<NAME>obbit'
alignments: ['good']
rarity: ['trash']
base_hp: 10
base_mp: 20
base_speed: 90
base_attack: 10
base_sight_range: 8
for_player: false
skills: []
register_race Hobbit
| true | class Hobbit extends Race
key: 'hobbit'
name: 'PI:NAME:<NAME>END_PIobbit'
alignments: ['good']
rarity: ['trash']
base_hp: 10
base_mp: 20
base_speed: 90
base_attack: 10
base_sight_range: 8
for_player: false
skills: []
register_race Hobbit
|
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.987066924571991,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/timeoutDialog.coffee | LogicalOutcomes/KoNote | 1 | # Copyright (c) Konode. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Load in Timeout listeners and trigger warning dialogs
_ = require 'underscore'
Config = require './config'
Persist ... | 209201 | # Copyright (c) <NAME>. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Load in Timeout listeners and trigger warning dialogs
_ = require 'underscore'
Config = require './config'
Persist ... | true | # Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Load in Timeout listeners and trigger warning dialogs
_ = require 'underscore'
Config = require './co... |
[
{
"context": "me format, format should be in the form of email : user@sample.com'\n\n\n LANG.title='Manage Profile Setting",
"end": 1605,
"score": 0.9999145269393921,
"start": 1590,
"tag": "EMAIL",
"value": "user@sample.com"
}
] | modules/profile_settings/profile_settings.coffee | signonsridhar/sridhar_hbs | 0 | define(['bases/control',
'models/user/user',
'css!modules/profile_settings/profile_settings'
], (BaseControl, User)->
BaseControl.extend({
LANG: (controller)->
LANG = {
errors:{
first_name:{}
last_name:{}
... | 97767 | define(['bases/control',
'models/user/user',
'css!modules/profile_settings/profile_settings'
], (BaseControl, User)->
BaseControl.extend({
LANG: (controller)->
LANG = {
errors:{
first_name:{}
last_name:{}
... | true | define(['bases/control',
'models/user/user',
'css!modules/profile_settings/profile_settings'
], (BaseControl, User)->
BaseControl.extend({
LANG: (controller)->
LANG = {
errors:{
first_name:{}
last_name:{}
... |
[
{
"context": "##\n * Federated Wiki : Node Server\n *\n * Copyright Ward Cunningham and other contributors\n * Licensed under the MIT ",
"end": 67,
"score": 0.9998761415481567,
"start": 52,
"tag": "NAME",
"value": "Ward Cunningham"
},
{
"context": "nsed under the MIT license.\n * htt... | cli.coffee | RalfBarkow/wiki | 0 | ###
* Federated Wiki : Node Server
*
* Copyright Ward Cunningham and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki/blob/master/LICENSE.txt
###
# **cli.coffee** command line interface for the
# Smallest-Federated-Wiki express server
http = require('http')
# socketio = requ... | 218421 | ###
* Federated Wiki : Node Server
*
* Copyright <NAME> and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki/blob/master/LICENSE.txt
###
# **cli.coffee** command line interface for the
# Smallest-Federated-Wiki express server
http = require('http')
# socketio = require('sock... | true | ###
* Federated Wiki : Node Server
*
* Copyright PI:NAME:<NAME>END_PI and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki/blob/master/LICENSE.txt
###
# **cli.coffee** command line interface for the
# Smallest-Federated-Wiki express server
http = require('http')
# socketio =... |
[
{
"context": "er for the `STYLE` elements\n#\n# Copyright (C) 2012 Nikolay Nemshilov\n#\n\nclass Style extends Element\n\n #\n # Basic con",
"end": 84,
"score": 0.9998900294303894,
"start": 67,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dom/src/style.coffee | lovely-io/lovely.io-stl | 2 | #
# Custom wrapper for the `STYLE` elements
#
# Copyright (C) 2012 Nikolay Nemshilov
#
class Style extends Element
#
# Basic constructor
#
# @param {Object} options
# @return {Style} this
#
constructor: (options)->
super 'style', type: 'text/css'
options or= {}
if typeof(options.html) is '... | 73899 | #
# Custom wrapper for the `STYLE` elements
#
# Copyright (C) 2012 <NAME>
#
class Style extends Element
#
# Basic constructor
#
# @param {Object} options
# @return {Style} this
#
constructor: (options)->
super 'style', type: 'text/css'
options or= {}
if typeof(options.html) is 'string'
... | true | #
# Custom wrapper for the `STYLE` elements
#
# Copyright (C) 2012 PI:NAME:<NAME>END_PI
#
class Style extends Element
#
# Basic constructor
#
# @param {Object} options
# @return {Style} this
#
constructor: (options)->
super 'style', type: 'text/css'
options or= {}
if typeof(options.html) i... |
[
{
"context": "lly installed packages\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\n\nexports.init = (args) ->\n fs = require",
"end": 92,
"score": 0.9998892545700073,
"start": 75,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | cli/commands/update.coffee | lovely-io/lovely.io-stl | 2 | #
# Updates all the locally installed packages
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
exports.init = (args) ->
fs = require('fs')
hosting = require('../hosting')
repo = require('../repository')
lovelyrc = require('../lovelyrc')
location = lovelyrc.base
installed = []
for name, v... | 85694 | #
# Updates all the locally installed packages
#
# Copyright (C) 2011-2012 <NAME>
#
exports.init = (args) ->
fs = require('fs')
hosting = require('../hosting')
repo = require('../repository')
lovelyrc = require('../lovelyrc')
location = lovelyrc.base
installed = []
for name, versions of ... | true | #
# Updates all the locally installed packages
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
exports.init = (args) ->
fs = require('fs')
hosting = require('../hosting')
repo = require('../repository')
lovelyrc = require('../lovelyrc')
location = lovelyrc.base
installed = []
for name... |
[
{
"context": "5 * 24 * 60 * 60)\n app.use json()\n app.keys = ['gdaf987G**(*^%', '&*YUG^RTFUF^GYU']\n app.use session(\n store: ",
"end": 823,
"score": 0.9992183446884155,
"start": 807,
"tag": "KEY",
"value": "gdaf987G**(*^%',"
},
{
"context": ")\n app.use json()\n app.keys =... | coffee/index.coffee | touka0/snaply | 0 | module.exports = (root) ->
# Core dependency
koa = require 'koa'
app = koa()
Router = require 'koa-router'
json = require 'koa-json'
path = require 'path'
session = require 'koa-generic-session'
staticCache = require 'koa-static-cache'
redisStore = require 'koa-redis'
cors = require 'koa-cors'
lo... | 130252 | module.exports = (root) ->
# Core dependency
koa = require 'koa'
app = koa()
Router = require 'koa-router'
json = require 'koa-json'
path = require 'path'
session = require 'koa-generic-session'
staticCache = require 'koa-static-cache'
redisStore = require 'koa-redis'
cors = require 'koa-cors'
lo... | true | module.exports = (root) ->
# Core dependency
koa = require 'koa'
app = koa()
Router = require 'koa-router'
json = require 'koa-json'
path = require 'path'
session = require 'koa-generic-session'
staticCache = require 'koa-static-cache'
redisStore = require 'koa-redis'
cors = require 'koa-cors'
lo... |
[
{
"context": " array for list of trigger phrases\n#\n# Author:\n# Morgan Wigmanich <okize123@gmail.com> (https://github.com/okize)\n\n",
"end": 424,
"score": 0.9998934268951416,
"start": 408,
"tag": "NAME",
"value": "Morgan Wigmanich"
},
{
"context": "trigger phrases\n#\n# Author:\... | src/businesscat.coffee | thomasward1212/hubot-business-cat | 0 | # Description:
# Business cat is summoned when business jargon is used
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional "tiggers"
# HUBOT_BUSINESS_CAT_OMITTED_JARGON comma-separated list of triggers to ignore
#
# Commands:
# Business jargon - summons b... | 219885 | # Description:
# Business cat is summoned when business jargon is used
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional "tiggers"
# HUBOT_BUSINESS_CAT_OMITTED_JARGON comma-separated list of triggers to ignore
#
# Commands:
# Business jargon - summons b... | true | # Description:
# Business cat is summoned when business jargon is used
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_BUSINESS_CAT_JARGON comma-separated list of additional "tiggers"
# HUBOT_BUSINESS_CAT_OMITTED_JARGON comma-separated list of triggers to ignore
#
# Commands:
# Business jargon - summons b... |
[
{
"context": "egex from various stack overflow blogs\n#\n# @author Christopher Kelley\n# @author Eric Fitzpatrick\n\nASCII = { }\nfor a in ",
"end": 243,
"score": 0.9998721480369568,
"start": 225,
"tag": "NAME",
"value": "Christopher Kelley"
},
{
"context": "low blogs\n#\n# @author C... | src/parser.coffee | efitzpa1/tasty | 0 |
# chunk statemachine inspired by jsep
# operator precedence from
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/
# Reference/Operators/Operator_Precedence
# regex from various stack overflow blogs
#
# @author Christopher Kelley
# @author Eric Fitzpatrick
ASCII = { }
for a in [0...128] by 1
ASCII[St... | 131910 |
# chunk statemachine inspired by jsep
# operator precedence from
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/
# Reference/Operators/Operator_Precedence
# regex from various stack overflow blogs
#
# @author <NAME>
# @author <NAME>
ASCII = { }
for a in [0...128] by 1
ASCII[String.fromCharCode a] =... | true |
# chunk statemachine inspired by jsep
# operator precedence from
# https://developer.mozilla.org/en-US/docs/Web/JavaScript/
# Reference/Operators/Operator_Precedence
# regex from various stack overflow blogs
#
# @author PI:NAME:<NAME>END_PI
# @author PI:NAME:<NAME>END_PI
ASCII = { }
for a in [0...128] by 1
AS... |
[
{
"context": "angular: [\n { key: \"data.name\" }\n { key: \"data.uuid\" }\n { key: \"data.operation\" }\n { key: \"data.des",
"end": 53,
"score": 0.8463597893714905,
"start": 44,
"tag": "KEY",
"value": "data.uuid"
},
{
"context": "data.name\" }\n { key: \"data.uuid\" }\n { key... | jobs/vm-lifecycle/form.cson | ratokeshi/meshblu-connector-xenserver | 0 | angular: [
{ key: "data.name" }
{ key: "data.uuid" }
{ key: "data.operation" }
{ key: "data.destination" }
]
| 19692 | angular: [
{ key: "data.name" }
{ key: "<KEY>" }
{ key: "data<KEY>.operation" }
{ key: "data<KEY>.destination" }
]
| true | angular: [
{ key: "data.name" }
{ key: "PI:KEY:<KEY>END_PI" }
{ key: "dataPI:KEY:<KEY>END_PI.operation" }
{ key: "dataPI:KEY:<KEY>END_PI.destination" }
]
|
[
{
"context": "******\n# JSLabel - One line text object\n# Coded by Hajime Oh-yake 2013.03.25\n#*************************************",
"end": 101,
"score": 0.9998908638954163,
"start": 87,
"tag": "NAME",
"value": "Hajime Oh-yake"
},
{
"context": ".css(\"font-weight\", @_textWeight)\n... | JSKit/03_JSLabel.coffee | digitarhythm/codeJS | 0 | #*****************************************
# JSLabel - One line text object
# Coded by Hajime Oh-yake 2013.03.25
#*****************************************
class JSLabel extends JSView
constructor: (frame = JSRectMake(0, 0, 120, 24)) ->
super(frame)
@_textSize = 10
@_textColor = JSColor("bl... | 180785 | #*****************************************
# JSLabel - One line text object
# Coded by <NAME> 2013.03.25
#*****************************************
class JSLabel extends JSView
constructor: (frame = JSRectMake(0, 0, 120, 24)) ->
super(frame)
@_textSize = 10
@_textColor = JSColor("black")
... | true | #*****************************************
# JSLabel - One line text object
# Coded by PI:NAME:<NAME>END_PI 2013.03.25
#*****************************************
class JSLabel extends JSView
constructor: (frame = JSRectMake(0, 0, 120, 24)) ->
super(frame)
@_textSize = 10
@_textColor = JSCol... |
[
{
"context": "# Copyright (c) 2015 Jesse Grosjean. All rights reserved.\n\nVelocity = require 'veloci",
"end": 35,
"score": 0.9996998906135559,
"start": 21,
"tag": "NAME",
"value": "Jesse Grosjean"
}
] | atom/packages/foldingtext-for-atom/lib/editor/animations/remove-animation.coffee | prookie/dotfiles-1 | 0 | # Copyright (c) 2015 Jesse Grosjean. All rights reserved.
Velocity = require 'velocity-animate'
module.exports =
class RemoveAnimation
@id = 'RemoveAnimation'
constructor: (id, item, itemRenderer) ->
@itemRenderer = itemRenderer
@_id = id
@_item = item
@_removingLI = null
@_targetHeight = 0
... | 113187 | # Copyright (c) 2015 <NAME>. All rights reserved.
Velocity = require 'velocity-animate'
module.exports =
class RemoveAnimation
@id = 'RemoveAnimation'
constructor: (id, item, itemRenderer) ->
@itemRenderer = itemRenderer
@_id = id
@_item = item
@_removingLI = null
@_targetHeight = 0
fastF... | true | # Copyright (c) 2015 PI:NAME:<NAME>END_PI. All rights reserved.
Velocity = require 'velocity-animate'
module.exports =
class RemoveAnimation
@id = 'RemoveAnimation'
constructor: (id, item, itemRenderer) ->
@itemRenderer = itemRenderer
@_id = id
@_item = item
@_removingLI = null
@_targetHeigh... |
[
{
"context": "eEach (done) ->\n App.User.insert firstName: \"Lance\", (error, record) =>\n user = record\n ",
"end": 191,
"score": 0.999688982963562,
"start": 186,
"tag": "NAME",
"value": "Lance"
},
{
"context": "r-first-name-input\" name=\"user[firstName]\" value=\"... | test/cases/view/shared/formTest.coffee | jivagoalves/tower | 1 | view = null
user = null
describe "Tower.ViewForm", ->
beforeEach ->
view = Tower.View.create()
describe 'form', ->
beforeEach (done) ->
App.User.insert firstName: "Lance", (error, record) =>
user = record
done()
test '#formFor()', ->
template = ->
formFor()
... | 214625 | view = null
user = null
describe "Tower.ViewForm", ->
beforeEach ->
view = Tower.View.create()
describe 'form', ->
beforeEach (done) ->
App.User.insert firstName: "<NAME>", (error, record) =>
user = record
done()
test '#formFor()', ->
template = ->
formFor()
... | true | view = null
user = null
describe "Tower.ViewForm", ->
beforeEach ->
view = Tower.View.create()
describe 'form', ->
beforeEach (done) ->
App.User.insert firstName: "PI:NAME:<NAME>END_PI", (error, record) =>
user = record
done()
test '#formFor()', ->
template = ->
... |
[
{
"context": "\n # \n allMeta = [[[\"name\",\"author\"],[\"content\",\"James A. Hinds: The Celarien's best friend. I'm not him, I wear",
"end": 1072,
"score": 0.9998308420181274,
"start": 1058,
"tag": "NAME",
"value": "James A. Hinds"
},
{
"context": "5229129\n debug: \"\"\n aut... | templates/error/404.coffee | jahbini/aframe-lowroller-component | 0 | # #-------- class start
renderer = class index extends celarientemplate
#
# section html
#
#
# section celarien_body
#
#
# section cover
#
cover: =>
T.div "#cover", style: "background-image:url(/assets/images/hooray-fade2.jpg);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-tran... | 16824 | # #-------- class start
renderer = class index extends celarientemplate
#
# section html
#
#
# section celarien_body
#
#
# section cover
#
cover: =>
T.div "#cover", style: "background-image:url(/assets/images/hooray-fade2.jpg);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-tran... | true | # #-------- class start
renderer = class index extends celarientemplate
#
# section html
#
#
# section celarien_body
#
#
# section cover
#
cover: =>
T.div "#cover", style: "background-image:url(/assets/images/hooray-fade2.jpg);-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-tran... |
[
{
"context": " for i in [1..5]\n\n levelNameKey = \"level#{i}\"\n levelNameData = classification[levelNa",
"end": 14283,
"score": 0.8302452564239502,
"start": 14281,
"tag": "KEY",
"value": "#{"
},
{
"context": "\n if i != 5\n levelDescKey = \"level#{i... | src/glados/static/coffee/models/Compound.coffee | BNext-IQT/glados-frontend-chembl-main-interface | 0 | Compound = Backbone.Model.extend(DownloadModelOrCollectionExt).extend
entityName: 'Compound'
entityNamePlural: 'Compounds'
idAttribute: 'molecule_chembl_id'
defaults:
fetch_from_elastic: true
indexName: 'chembl_molecule'
initialize: ->
id = @get('id')
id ?= @get('molecule_chembl_id')
@set(... | 72867 | Compound = Backbone.Model.extend(DownloadModelOrCollectionExt).extend
entityName: 'Compound'
entityNamePlural: 'Compounds'
idAttribute: 'molecule_chembl_id'
defaults:
fetch_from_elastic: true
indexName: 'chembl_molecule'
initialize: ->
id = @get('id')
id ?= @get('molecule_chembl_id')
@set(... | true | Compound = Backbone.Model.extend(DownloadModelOrCollectionExt).extend
entityName: 'Compound'
entityNamePlural: 'Compounds'
idAttribute: 'molecule_chembl_id'
defaults:
fetch_from_elastic: true
indexName: 'chembl_molecule'
initialize: ->
id = @get('id')
id ?= @get('molecule_chembl_id')
@set(... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999105334281921,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/lib/back-to-top.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { createElement as el, createRef, PureComponent } from 'react'
import * as React from 'react'
import { button, div, i } from 'react-dom-fa... | 64116 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { createElement as el, createRef, PureComponent } from 'react'
import * as React from 'react'
import { button, div, i } from 'react-dom-factories... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { createElement as el, createRef, PureComponent } from 'react'
import * as React from 'react'
import { button, div, i } from 'reac... |
[
{
"context": "ncremental flip algorithm.\n#\n# _Copyright (c) 2011 Olaf Delgado-Friedrichs_\n\n# ----\n\n# First, we import some necessary data ",
"end": 174,
"score": 0.9998041987419128,
"start": 151,
"tag": "NAME",
"value": "Olaf Delgado-Friedrichs"
}
] | examples/delaunay.coffee | odf/pazy.js | 0 | # These are the beginnings of a package to compute 2-dimensional Delaunay
# triangulations via the incremental flip algorithm.
#
# _Copyright (c) 2011 Olaf Delgado-Friedrichs_
# ----
# First, we import some necessary data structures (**TODO**: use a better
# package system).
if typeof(require) != 'undefined'
{ equa... | 188938 | # These are the beginnings of a package to compute 2-dimensional Delaunay
# triangulations via the incremental flip algorithm.
#
# _Copyright (c) 2011 <NAME>_
# ----
# First, we import some necessary data structures (**TODO**: use a better
# package system).
if typeof(require) != 'undefined'
{ equal, hashCode } ... | true | # These are the beginnings of a package to compute 2-dimensional Delaunay
# triangulations via the incremental flip algorithm.
#
# _Copyright (c) 2011 PI:NAME:<NAME>END_PI_
# ----
# First, we import some necessary data structures (**TODO**: use a better
# package system).
if typeof(require) != 'undefined'
{ equal, ... |
[
{
"context": "ssword'\n current: 'Current password'\n new: 'New password'\n confirm: 'Confirm new password'\n changeBu",
"end": 400,
"score": 0.6829510927200317,
"start": 388,
"tag": "PASSWORD",
"value": "New password"
}
] | app/pages/settings/account.cjsx | Crentist/Panoptes-frontend-spanish | 0 | React = require 'react'
counterpart = require 'counterpart'
Translate = require 'react-translate-component'
AutoSave = require '../../components/auto-save'
handleInputChange = require '../../lib/handle-input-change'
auth = require 'panoptes-client/lib/auth'
counterpart.registerTranslations 'en',
pass:
changeLabe... | 33664 | React = require 'react'
counterpart = require 'counterpart'
Translate = require 'react-translate-component'
AutoSave = require '../../components/auto-save'
handleInputChange = require '../../lib/handle-input-change'
auth = require 'panoptes-client/lib/auth'
counterpart.registerTranslations 'en',
pass:
changeLabe... | true | React = require 'react'
counterpart = require 'counterpart'
Translate = require 'react-translate-component'
AutoSave = require '../../components/auto-save'
handleInputChange = require '../../lib/handle-input-change'
auth = require 'panoptes-client/lib/auth'
counterpart.registerTranslations 'en',
pass:
changeLabe... |
[
{
"context": " fails\", (done) ->\n connectionInfo.password = 'absolute_nonsense'\n Vertica.connect connectionInfo, (err, _) ->\n",
"end": 1345,
"score": 0.9992319345474243,
"start": 1328,
"tag": "PASSWORD",
"value": "absolute_nonsense"
}
] | test/functional/connection_test.coffee | gauravbansal74/node-vertica | 25 | path = require 'path'
fs = require 'fs'
assert = require 'assert'
Vertica = require '../../src/vertica'
errors = require '../../src/errors'
describe 'Vertica.connect', ->
connectionInfo = null
beforeEach ->
if !fs.existsSync('./test/connection.json')
throw new Error("Create test/connection.jso... | 49501 | path = require 'path'
fs = require 'fs'
assert = require 'assert'
Vertica = require '../../src/vertica'
errors = require '../../src/errors'
describe 'Vertica.connect', ->
connectionInfo = null
beforeEach ->
if !fs.existsSync('./test/connection.json')
throw new Error("Create test/connection.jso... | true | path = require 'path'
fs = require 'fs'
assert = require 'assert'
Vertica = require '../../src/vertica'
errors = require '../../src/errors'
describe 'Vertica.connect', ->
connectionInfo = null
beforeEach ->
if !fs.existsSync('./test/connection.json')
throw new Error("Create test/connection.jso... |
[
{
"context": "The `Event` unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\n{Test,should} = require('lovely')\n\ndescribe 'Ev",
"end": 72,
"score": 0.999888002872467,
"start": 55,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dom/test/event_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The `Event` unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
{Test,should} = require('lovely')
describe 'Event', ->
$ = Event = window = document = null
before Test.load (dom, win)->
$ = dom
Event = $.Event
window = win
document = win.document
describe "constructor", -... | 39101 | #
# The `Event` unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
{Test,should} = require('lovely')
describe 'Event', ->
$ = Event = window = document = null
before Test.load (dom, win)->
$ = dom
Event = $.Event
window = win
document = win.document
describe "constructor", ->
it "... | true | #
# The `Event` unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
{Test,should} = require('lovely')
describe 'Event', ->
$ = Event = window = document = null
before Test.load (dom, win)->
$ = dom
Event = $.Event
window = win
document = win.document
describe "constructor"... |
[
{
"context": "\n VIDEO_UPLOAD_PATH = \"http://res.cloudinary.com/test123/video/upload/\"\n DEFAULT_UPLOAD_PATH = \"http://re",
"end": 157,
"score": 0.7228163480758667,
"start": 150,
"tag": "USERNAME",
"value": "test123"
},
{
"context": " DEFAULT_UPLOAD_PATH = \"http://res.cloudinar... | countProject/countproject_temp/node_modules/keystone/node_modules/cloudinary/test/videospec.coffee | edagarli/countProjects | 0 | expect = require('expect.js')
cloudinary = require('../cloudinary')
describe "video tag helper", ->
VIDEO_UPLOAD_PATH = "http://res.cloudinary.com/test123/video/upload/"
DEFAULT_UPLOAD_PATH = "http://res.cloudinary.com/test123/image/upload/"
beforeEach ->
cloudinary.config(true) # Reset
cloudinary.confi... | 53451 | expect = require('expect.js')
cloudinary = require('../cloudinary')
describe "video tag helper", ->
VIDEO_UPLOAD_PATH = "http://res.cloudinary.com/test123/video/upload/"
DEFAULT_UPLOAD_PATH = "http://res.cloudinary.com/test123/image/upload/"
beforeEach ->
cloudinary.config(true) # Reset
cloudinary.confi... | true | expect = require('expect.js')
cloudinary = require('../cloudinary')
describe "video tag helper", ->
VIDEO_UPLOAD_PATH = "http://res.cloudinary.com/test123/video/upload/"
DEFAULT_UPLOAD_PATH = "http://res.cloudinary.com/test123/image/upload/"
beforeEach ->
cloudinary.config(true) # Reset
cloudinary.confi... |
[
{
"context": "# @file vec2d.coffee\n# @Copyright (c) 2017 Taylor Siviter\n# This source code is licensed under the MIT Lice",
"end": 57,
"score": 0.9996617436408997,
"start": 43,
"tag": "NAME",
"value": "Taylor Siviter"
}
] | src/maths/vec2d.coffee | siviter-t/lampyridae.coffee | 4 | # @file vec2d.coffee
# @Copyright (c) 2017 Taylor Siviter
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'lampyridae'
class Lampyridae.Vec2D
### Construct a two-dimensional vector for the Lampyridae framework.
# Lampyridae vectors ar... | 35867 | # @file vec2d.coffee
# @Copyright (c) 2017 <NAME>
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'lampyridae'
class Lampyridae.Vec2D
### Construct a two-dimensional vector for the Lampyridae framework.
# Lampyridae vectors are self-r... | true | # @file vec2d.coffee
# @Copyright (c) 2017 PI:NAME:<NAME>END_PI
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'lampyridae'
class Lampyridae.Vec2D
### Construct a two-dimensional vector for the Lampyridae framework.
# Lampyridae vect... |
[
{
"context": "# Copyright (c) 2015 Jesse Grosjean. All rights reserved.\n\nFoldingTextService = requi",
"end": 35,
"score": 0.999719500541687,
"start": 21,
"tag": "NAME",
"value": "Jesse Grosjean"
}
] | atom/packages/foldingtext-for-atom/lib/extensions/ui/date-time-element.coffee | prookie/dotfiles-1 | 0 | # Copyright (c) 2015 Jesse Grosjean. All rights reserved.
FoldingTextService = require '../../foldingtext-service'
{Disposable, CompositeDisposable} = require 'atom'
class DateTimeElement extends HTMLElement
constructor: ->
super()
createdCallback: ->
attachedCallback: ->
detachedCallback: ->
###
... | 86729 | # Copyright (c) 2015 <NAME>. All rights reserved.
FoldingTextService = require '../../foldingtext-service'
{Disposable, CompositeDisposable} = require 'atom'
class DateTimeElement extends HTMLElement
constructor: ->
super()
createdCallback: ->
attachedCallback: ->
detachedCallback: ->
###
Section:... | true | # Copyright (c) 2015 PI:NAME:<NAME>END_PI. All rights reserved.
FoldingTextService = require '../../foldingtext-service'
{Disposable, CompositeDisposable} = require 'atom'
class DateTimeElement extends HTMLElement
constructor: ->
super()
createdCallback: ->
attachedCallback: ->
detachedCallback: ->
... |
[
{
"context": "ersion: Keybase Go client (OpenPGP version 0.1.0)\n\nxA0DAAIBnGEbwJfFZzABrQIPYgBTPsOMeyJib2R5Ijp7ImNsaW",
"end": 285,
"score": 0.9926331043243408,
"start": 285,
"tag": "KEY",
"value": ""
},
{
"context": "rsion: Keybase Go client (OpenPGP version 0.1.0)\n\nxA0DAAIBnGEbwJ... | test/files/sig_gocli.iced | thinq4yourself/kbpgp | 1 | {KeyManager} = require '../../lib/keymanager'
{do_message,Processor} = require '../../lib/openpgp/processor'
#==================================================================
sigs = [
{
sig : """
-----BEGIN PGP MESSAGE-----
Version: Keybase Go client (OpenPGP version 0.1.0)
xA0DAAIBnGEbwJfFZzABrQIPYgBTPsOMey... | 5292 | {KeyManager} = require '../../lib/keymanager'
{do_message,Processor} = require '../../lib/openpgp/processor'
#==================================================================
sigs = [
{
sig : """
-----BEGIN PGP MESSAGE-----
Version: Keybase Go client (OpenPGP version 0.1.0)
<KEY>
<KEY>CY8JLvFE
qFd18S+Phr28d/P... | true | {KeyManager} = require '../../lib/keymanager'
{do_message,Processor} = require '../../lib/openpgp/processor'
#==================================================================
sigs = [
{
sig : """
-----BEGIN PGP MESSAGE-----
Version: Keybase Go client (OpenPGP version 0.1.0)
PI:KEY:<KEY>END_PI
PI:KEY:<KEY>END_... |
[
{
"context": "p://coffeescript.org/\n\nstrengthReadable = {\n 0: 'Péssimo'\n 1: 'Ruim'\n 2: 'Fraco'\n 3: 'Bom'\n 4: 'Forte'",
"end": 246,
"score": 0.9945886135101318,
"start": 239,
"tag": "NAME",
"value": "Péssimo"
},
{
"context": "t.org/\n\nstrengthReadable = {\n 0: 'Péssimo'\... | public/javascripts/user.coffee | GCES-2018-2/core | 1 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
strengthReadable = {
0: 'Péssimo'
1: 'Ruim'
2: 'Fraco'
3: 'Bom'
4: 'Forte'
}
$(document).ready ()... | 154406 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
strengthReadable = {
0: '<NAME>'
1: '<NAME>'
2: 'Fr<NAME>'
3: 'Bom'
4: 'Forte'
}
$(document).read... | true | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
strengthReadable = {
0: 'PI:NAME:<NAME>END_PI'
1: 'PI:NAME:<NAME>END_PI'
2: 'FrPI:NAME:<NAME>END_PI'
... |
[
{
"context": "\"UserLocator\", ->\n\n\tbeforeEach ->\n\t\t@user = {_id:\"12390i\"}\n\t\t@UserLocator = SandboxedModule.require module",
"end": 246,
"score": 0.8545112609863281,
"start": 240,
"tag": "USERNAME",
"value": "12390i"
},
{
"context": ".stub().callsArgWith(1, null, @user)\n\... | test/unit/coffee/User/UserLocatorTests.coffee | dtu-compute/web-sharelatex | 0 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserLocator.js"
SandboxedModule = require('sandboxed-module')
describe "UserLocator", ->
beforeEach ->
@user = {_id:"12390i"}
@UserLocator = SandboxedModule.require modulePath, requires:
"../.... | 19456 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserLocator.js"
SandboxedModule = require('sandboxed-module')
describe "UserLocator", ->
beforeEach ->
@user = {_id:"12390i"}
@UserLocator = SandboxedModule.require modulePath, requires:
"../.... | true | sinon = require('sinon')
chai = require('chai')
should = chai.should()
modulePath = "../../../../app/js/Features/User/UserLocator.js"
SandboxedModule = require('sandboxed-module')
describe "UserLocator", ->
beforeEach ->
@user = {_id:"12390i"}
@UserLocator = SandboxedModule.require modulePath, requires:
"../.... |
[
{
"context": "iguration for tests\n\nmodule.exports =\n thing: 'thing@xmpp.local'\n owner: 'owner@xmpp.local'\n rack: 'rack@xm",
"end": 72,
"score": 0.9998390674591064,
"start": 56,
"tag": "EMAIL",
"value": "thing@xmpp.local"
},
{
"context": "ports =\n thing: 'thing@xmpp.... | test/helpers/config.coffee | TNO-IoT/testing-xep-0347 | 0 | # Configuration for tests
module.exports =
thing: 'thing@xmpp.local'
owner: 'owner@xmpp.local'
rack: 'rack@xmpp.local'
registry: 'registry.xmpp.local'
password: 'testing'
host: process.env.XMPP_HOST
port: '5222'
| 17806 | # Configuration for tests
module.exports =
thing: '<EMAIL>'
owner: '<EMAIL>'
rack: '<EMAIL>'
registry: 'registry.xmpp.local'
password: '<PASSWORD>'
host: process.env.XMPP_HOST
port: '5222'
| true | # Configuration for tests
module.exports =
thing: 'PI:EMAIL:<EMAIL>END_PI'
owner: 'PI:EMAIL:<EMAIL>END_PI'
rack: 'PI:EMAIL:<EMAIL>END_PI'
registry: 'registry.xmpp.local'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
host: process.env.XMPP_HOST
port: '5222'
|
[
{
"context": "corporates code from [markmon](https://github.com/yyjhao/markmon)\n# covered by the following terms:\n#\n# Co",
"end": 70,
"score": 0.9990246891975403,
"start": 64,
"tag": "USERNAME",
"value": "yyjhao"
},
{
"context": "ed by the following terms:\n#\n# Copyright (c) 2014... | lib/wrapped-dom-tree.coffee | abejfehr/markdown-preview-katex | 20 | # This file incorporates code from [markmon](https://github.com/yyjhao/markmon)
# covered by the following terms:
#
# Copyright (c) 2014, Yao Yujian, http://yjyao.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), ... | 80186 | # This file incorporates code from [markmon](https://github.com/yyjhao/markmon)
# covered by the following terms:
#
# Copyright (c) 2014, <NAME>, http://yjyao.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to d... | true | # This file incorporates code from [markmon](https://github.com/yyjhao/markmon)
# covered by the following terms:
#
# Copyright (c) 2014, PI:NAME:<NAME>END_PI, http://yjyao.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "So... |
[
{
"context": "egate new_datom '^flowmatic-event', 123\n $key = '°s/^one'\n debug '^8887^', await DB.query [ \"select FM.em",
"end": 2628,
"score": 0.9993544816970825,
"start": 2621,
"tag": "KEY",
"value": "°s/^one"
}
] | src/experiments/demo-intershop-rpc.coffee | loveencounterflow/flowmatic | 1 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERSHOP-RPC/DEMO'
debug = CND.get_logger 'debug', badge
alert... | 211361 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERSHOP-RPC/DEMO'
debug = CND.get_logger 'debug', badge
alert... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'INTERSHOP-RPC/DEMO'
debug = CND.get_logger 'debug', badge
alert... |
[
{
"context": "torage = require 'lib/storage'\nGPLUS_TOKEN_KEY = 'gplusToken'\n\n# gplus user object props to\nuserPropsToSave =\n",
"end": 164,
"score": 0.8899123072624207,
"start": 154,
"tag": "KEY",
"value": "gplusToken"
},
{
"context": "t props to\nuserPropsToSave =\n 'name.given... | app/lib/GPlusHandler.coffee | Melondonut/codecombat | 1 | CocoClass = require 'lib/CocoClass'
{me} = require 'lib/auth'
{backboneFailure} = require 'lib/errors'
storage = require 'lib/storage'
GPLUS_TOKEN_KEY = 'gplusToken'
# gplus user object props to
userPropsToSave =
'name.givenName': 'firstName'
'name.familyName': 'lastName'
'gender': 'gender'
'id': 'gplusID'
fi... | 213902 | CocoClass = require 'lib/CocoClass'
{me} = require 'lib/auth'
{backboneFailure} = require 'lib/errors'
storage = require 'lib/storage'
GPLUS_TOKEN_KEY = '<KEY>'
# gplus user object props to
userPropsToSave =
'name.givenName': '<NAME>'
'name.familyName': '<NAME>'
'gender': 'gender'
'id': 'gplusID'
fieldsToFetc... | true | CocoClass = require 'lib/CocoClass'
{me} = require 'lib/auth'
{backboneFailure} = require 'lib/errors'
storage = require 'lib/storage'
GPLUS_TOKEN_KEY = 'PI:KEY:<KEY>END_PI'
# gplus user object props to
userPropsToSave =
'name.givenName': 'PI:NAME:<NAME>END_PI'
'name.familyName': 'PI:NAME:<NAME>END_PI'
'gender':... |
[
{
"context": " \n if options.tag\n host = '0.0.0.0'\n port = 80\n opts =\n ",
"end": 1899,
"score": 0.9996561408042908,
"start": 1892,
"tag": "IP_ADDRESS",
"value": "0.0.0.0"
},
{
"context": "entials\n options.user = c... | src/commands.coffee | mobify/mobify-client | 4 | FS = require 'fs'
Path = require 'path'
HTTPS = require 'https'
program = require 'commander'
Async = require 'async'
Wrench = require 'wrench'
{appSourceDir} = require '../lib/pathUtils'
{Project} = require './project.coffee'
Injector = require './injector.coffee'
Preview = require './preview.coffee'
Scaffold = requi... | 100690 | FS = require 'fs'
Path = require 'path'
HTTPS = require 'https'
program = require 'commander'
Async = require 'async'
Wrench = require 'wrench'
{appSourceDir} = require '../lib/pathUtils'
{Project} = require './project.coffee'
Injector = require './injector.coffee'
Preview = require './preview.coffee'
Scaffold = requi... | true | FS = require 'fs'
Path = require 'path'
HTTPS = require 'https'
program = require 'commander'
Async = require 'async'
Wrench = require 'wrench'
{appSourceDir} = require '../lib/pathUtils'
{Project} = require './project.coffee'
Injector = require './injector.coffee'
Preview = require './preview.coffee'
Scaffold = requi... |
[
{
"context": "sable?.dispose()\n commands = {}\n\n allKey = \"window:select-account-0\"\n commands[allKey] = @_focusAccounts.bind(@, a",
"end": 638,
"score": 0.9987363815307617,
"start": 615,
"tag": "KEY",
"value": "window:select-account-0"
},
{
"context": "dex - 1]\n r... | app/internal_packages/account-sidebar/lib/account-commands.coffee | immershy/nodemail | 0 | _ = require 'underscore'
{AccountStore, MenuHelpers} = require 'nylas-exports'
SidebarActions = require './sidebar-actions'
class AccountCommands
@_focusAccounts: (accounts) ->
SidebarActions.focusAccounts(accounts)
NylasEnv.show() unless NylasEnv.isVisible()
@_isSelected: (account, focusedAccounts) =>
... | 17117 | _ = require 'underscore'
{AccountStore, MenuHelpers} = require 'nylas-exports'
SidebarActions = require './sidebar-actions'
class AccountCommands
@_focusAccounts: (accounts) ->
SidebarActions.focusAccounts(accounts)
NylasEnv.show() unless NylasEnv.isVisible()
@_isSelected: (account, focusedAccounts) =>
... | true | _ = require 'underscore'
{AccountStore, MenuHelpers} = require 'nylas-exports'
SidebarActions = require './sidebar-actions'
class AccountCommands
@_focusAccounts: (accounts) ->
SidebarActions.focusAccounts(accounts)
NylasEnv.show() unless NylasEnv.isVisible()
@_isSelected: (account, focusedAccounts) =>
... |
[
{
"context": "scribe \"basic redis functioniality\", ->\n\t\tp = \"deltest\"\n\t\td = \"hejejee\"\n\t\tdescribe \"pset\", ->\n\t\t\tit \"sho",
"end": 1224,
"score": 0.7224403619766235,
"start": 1220,
"tag": "USERNAME",
"value": "test"
},
{
"context": "\" }\n\t\t\t{ host: \"localhos... | test/RedisPort_test.coffee | viriciti/redis-port | 2 | _ = require "underscore"
async = require "async"
assert = require "assert"
RedisPort = require "../src/RedisPort"
newClient = (p, id, cb) ->
p or= "undisclosed#{Math.round Math.random() * 100}"
rpc = new RedisPort
redisHost: "localhost"
redisPort: 6379
host: "localhost"
project: p
env: ... | 29618 | _ = require "underscore"
async = require "async"
assert = require "assert"
RedisPort = require "../src/RedisPort"
newClient = (p, id, cb) ->
p or= "undisclosed#{Math.round Math.random() * 100}"
rpc = new RedisPort
redisHost: "localhost"
redisPort: 6379
host: "localhost"
project: p
env: ... | true | _ = require "underscore"
async = require "async"
assert = require "assert"
RedisPort = require "../src/RedisPort"
newClient = (p, id, cb) ->
p or= "undisclosed#{Math.round Math.random() * 100}"
rpc = new RedisPort
redisHost: "localhost"
redisPort: 6379
host: "localhost"
project: p
env: ... |
[
{
"context": "=\n development:\n basicAuth:\n username : \"dev\"\n password : \"123\"\n\n test:\n basicAuth:\n ",
"end": 93,
"score": 0.9943020343780518,
"start": 90,
"tag": "USERNAME",
"value": "dev"
},
{
"context": "sicAuth:\n username : \"dev\"\n passwo... | src/config/config.coffee | yxdh4620/node-ticket-manager-client | 0 |
path = require('path')
module.exports =
development:
basicAuth:
username : "dev"
password : "123"
test:
basicAuth:
username : "test"
password : "123"
production:
basicAuth:
username : "production"
password : "123"
| 179229 |
path = require('path')
module.exports =
development:
basicAuth:
username : "dev"
password : "<PASSWORD>"
test:
basicAuth:
username : "test"
password : "<PASSWORD>"
production:
basicAuth:
username : "production"
password : "<PASSWORD>"
| true |
path = require('path')
module.exports =
development:
basicAuth:
username : "dev"
password : "PI:PASSWORD:<PASSWORD>END_PI"
test:
basicAuth:
username : "test"
password : "PI:PASSWORD:<PASSWORD>END_PI"
production:
basicAuth:
username : "production"
password : "PI:... |
[
{
"context": ">\n @view.$('input[name=\"card_name\"]').val 'Foo Bar'\n @view.$('select[name=\"card_expiration_mo",
"end": 1401,
"score": 0.9457957744598389,
"start": 1394,
"tag": "NAME",
"value": "Foo Bar"
}
] | apps/auction_support/test/client/registration_form.coffee | l2succes/force | 1 | benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
{ resolve } = require 'path'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../../models/current_user'
Order = require '../../../../models/order'
Sale = require '../../../../models/sale'
RegistrationForm = require '../../cl... | 56450 | benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
{ resolve } = require 'path'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../../models/current_user'
Order = require '../../../../models/order'
Sale = require '../../../../models/sale'
RegistrationForm = require '../../cl... | true | benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
{ resolve } = require 'path'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../../../models/current_user'
Order = require '../../../../models/order'
Sale = require '../../../../models/sale'
RegistrationForm = require '../../cl... |
[
{
"context": " getOrElse: (rawKey, val, opts, cb) ->\n key = @applyPrefix rawKey\n\n {cb,opts} = optionalOpts(opts, ",
"end": 3901,
"score": 0.5426701903343201,
"start": 3896,
"tag": "KEY",
"value": "apply"
}
] | src/cache.coffee | Kofia5/node-cached | 0 | ###
Copyright (c) 2014, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following dis... | 62062 | ###
Copyright (c) 2014, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following dis... | true | ###
Copyright (c) 2014, Groupon, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following dis... |
[
{
"context": " http://coffeescript.org\n *\n * Copyright 2011, Jeremy Ashkenas\n * Released under the MIT License\n */\n\"\"\"\n\n# ",
"end": 547,
"score": 0.9998693466186523,
"start": 532,
"tag": "NAME",
"value": "Jeremy Ashkenas"
}
] | Cakefile.coffee | chaosim/coffee-script | 1 | fs = require 'fs'
path = require 'path'
CoffeeScript = require './lib/coffee-script'
{spawn, exec} = require 'child_process'
helpers = require './lib/coffee-script/helpers'
# ANSI Terminal Colors.
bold = red = green = reset = ''
unless process.env.NODE_DISABLE_COLORS
bold = '\x1B[0;1m'
... | 124548 | fs = require 'fs'
path = require 'path'
CoffeeScript = require './lib/coffee-script'
{spawn, exec} = require 'child_process'
helpers = require './lib/coffee-script/helpers'
# ANSI Terminal Colors.
bold = red = green = reset = ''
unless process.env.NODE_DISABLE_COLORS
bold = '\x1B[0;1m'
... | true | fs = require 'fs'
path = require 'path'
CoffeeScript = require './lib/coffee-script'
{spawn, exec} = require 'child_process'
helpers = require './lib/coffee-script/helpers'
# ANSI Terminal Colors.
bold = red = green = reset = ''
unless process.env.NODE_DISABLE_COLORS
bold = '\x1B[0;1m'
... |
[
{
"context": " step.push \"\"\"\n cat #{files} | coffee -cbs > Cin7Menu@darkoverlordofdata.com/applet.js\n \"\"\"\n \n return step\n \n ",
"end": 988,
"score": 0.976520299911499,
"start": 957,
"tag": "EMAIL",
"value": "Cin7Menu@darkoverlordofdata.com"
},
{
"cont... | package.scripts.coffee | darkoverlordofdata/Cin7Menu | 1 | ###
#+--------------------------------------------------------------------+
#| package.scripts.coffee
#+--------------------------------------------------------------------+
#| Copyright DarkOverlordOfData (c) 2014-2015
#+--------------------------------------------------------------------+
#|
#| Generate package.scrip... | 62536 | ###
#+--------------------------------------------------------------------+
#| package.scripts.coffee
#+--------------------------------------------------------------------+
#| Copyright DarkOverlordOfData (c) 2014-2015
#+--------------------------------------------------------------------+
#|
#| Generate package.scrip... | true | ###
#+--------------------------------------------------------------------+
#| package.scripts.coffee
#+--------------------------------------------------------------------+
#| Copyright DarkOverlordOfData (c) 2014-2015
#+--------------------------------------------------------------------+
#|
#| Generate package.scrip... |
[
{
"context": "\"))\n\ndescribe 'source helper', ->\n cloud_name = 'test123'\n public_id = \"sample\"\n image_format = \"jpg\"\n ",
"end": 515,
"score": 0.9084383249282837,
"start": 508,
"tag": "USERNAME",
"value": "test123"
},
{
"context": "(true) # Reset\n cloudinary.config(c... | test/source_tag_spec.coffee | optune/cloudinary | 0 | expect = require('expect.js')
cloudinary = require('../cloudinary')
utils = cloudinary.utils
helper = require("./spechelper")
sharedContext = helper.sharedContext
sharedExamples = helper.sharedExamples
includeContext = helper.includeContext
extend = require('lodash/extend')
BREAKPOINTS = [5,3,7,5]
UPLOAD_PATH = "http:/... | 203455 | expect = require('expect.js')
cloudinary = require('../cloudinary')
utils = cloudinary.utils
helper = require("./spechelper")
sharedContext = helper.sharedContext
sharedExamples = helper.sharedExamples
includeContext = helper.includeContext
extend = require('lodash/extend')
BREAKPOINTS = [5,3,7,5]
UPLOAD_PATH = "http:/... | true | expect = require('expect.js')
cloudinary = require('../cloudinary')
utils = cloudinary.utils
helper = require("./spechelper")
sharedContext = helper.sharedContext
sharedExamples = helper.sharedExamples
includeContext = helper.includeContext
extend = require('lodash/extend')
BREAKPOINTS = [5,3,7,5]
UPLOAD_PATH = "http:/... |
[
{
"context": "\n\t\tdoi: [\"jaes/savva001\"]\n\t\ttitle: \"Replication of Grier, Henry, Olekalns and Shields (2004)--The Asym",
"end": 878,
"score": 0.581762969493866,
"start": 877,
"tag": "NAME",
"value": "G"
},
{
"context": " [\"jaes/savva001\"]\n\t\ttitle: \"Replication of Grier, ... | data.cson | infolis/infolis-button | 2 | # vim: ft=coffee :
# :nnoremap <buffer> <F5> :!cson2json % > %:t:r.json<cr>
uri2doi:
'http://www.igi-global.com/article/a-prescriptive-stock-market-investment-strategy-for-the-restaurant-industry-using-an-artificial-neural-network-methodology/142778': '10.4018/IJBAN.2016010101'
'http://indexes.nikkei.co.jp/en/nkave/i... | 132054 | # vim: ft=coffee :
# :nnoremap <buffer> <F5> :!cson2json % > %:t:r.json<cr>
uri2doi:
'http://www.igi-global.com/article/a-prescriptive-stock-market-investment-strategy-for-the-restaurant-industry-using-an-artificial-neural-network-methodology/142778': '10.4018/IJBAN.2016010101'
'http://indexes.nikkei.co.jp/en/nkave/i... | true | # vim: ft=coffee :
# :nnoremap <buffer> <F5> :!cson2json % > %:t:r.json<cr>
uri2doi:
'http://www.igi-global.com/article/a-prescriptive-stock-market-investment-strategy-for-the-restaurant-industry-using-an-artificial-neural-network-methodology/142778': '10.4018/IJBAN.2016010101'
'http://indexes.nikkei.co.jp/en/nkave/i... |
[
{
"context": "#\n ScrollHandler\n Copyright(c) 2014 SHIFTBRAIN - Tsukasa Tokura\n This software is released under the MIT License",
"end": 116,
"score": 0.9998566508293152,
"start": 102,
"tag": "NAME",
"value": "Tsukasa Tokura"
}
] | scrollHandler.coffee | tsukasa-web/myFuncs_coffee | 2 | $ = require('jquery')
_ = require('underscore')
###
ScrollHandler
Copyright(c) 2014 SHIFTBRAIN - Tsukasa Tokura
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
# require()で返されるオブジェクト
module.exports = class ScrollHandler
constructor : ($scrollTarget, thrott... | 120389 | $ = require('jquery')
_ = require('underscore')
###
ScrollHandler
Copyright(c) 2014 SHIFTBRAIN - <NAME>
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
# require()で返されるオブジェクト
module.exports = class ScrollHandler
constructor : ($scrollTarget, throttletime =... | true | $ = require('jquery')
_ = require('underscore')
###
ScrollHandler
Copyright(c) 2014 SHIFTBRAIN - PI:NAME:<NAME>END_PI
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
###
# require()で返されるオブジェクト
module.exports = class ScrollHandler
constructor : ($scrollTarget, ... |
[
{
"context": "WithTarget = (name, actual, target) ->\n key = example.i.toString()\n expected = expectedSwatches[target][key][na",
"end": 351,
"score": 0.9992281794548035,
"start": 331,
"tag": "KEY",
"value": "example.i.toString()"
}
] | test/vibrant.browser-spec.coffee | Kronuz/node-vibrant | 0 | examples = [1..4].map (i) ->
e =
i: i
fileName: "#{i}.jpg"
fileUrl: "base/examples/#{i}.jpg"
expectedSwatches = {}
TARGETS = ['chrome', 'firefox', 'ie']
paletteCallback = (example, done) ->
(err, palette) ->
if err? then throw err
failCount = 0
testWithTarget = (name, actual, target) ->
... | 26658 | examples = [1..4].map (i) ->
e =
i: i
fileName: "#{i}.jpg"
fileUrl: "base/examples/#{i}.jpg"
expectedSwatches = {}
TARGETS = ['chrome', 'firefox', 'ie']
paletteCallback = (example, done) ->
(err, palette) ->
if err? then throw err
failCount = 0
testWithTarget = (name, actual, target) ->
... | true | examples = [1..4].map (i) ->
e =
i: i
fileName: "#{i}.jpg"
fileUrl: "base/examples/#{i}.jpg"
expectedSwatches = {}
TARGETS = ['chrome', 'firefox', 'ie']
paletteCallback = (example, done) ->
(err, palette) ->
if err? then throw err
failCount = 0
testWithTarget = (name, actual, target) ->
... |
[
{
"context": "\"title\": \"Costa Azul Digital\"\n\n\"api\":\n \"baseUrl\": \"http://costazuldigital.c",
"end": 28,
"score": 0.8384086489677429,
"start": 10,
"tag": "NAME",
"value": "Costa Azul Digital"
}
] | config/config.cson | MariusMez/CADMobile | 1 | "title": "Costa Azul Digital"
"api":
"baseUrl": "http://costazuldigital.com/wp-json"
"timeout": 15000
"maxAttempt": 3
"translation":
"displayed" : ["es", "en", "fr"]
"prefered": "es"
# CACHE
"cache":
"img":
"localCacheFolder": "imgcache"
"useDataURI": false
"ch... | 23398 | "title": "<NAME>"
"api":
"baseUrl": "http://costazuldigital.com/wp-json"
"timeout": 15000
"maxAttempt": 3
"translation":
"displayed" : ["es", "en", "fr"]
"prefered": "es"
# CACHE
"cache":
"img":
"localCacheFolder": "imgcache"
"useDataURI": false
"chromeQuota": ... | true | "title": "PI:NAME:<NAME>END_PI"
"api":
"baseUrl": "http://costazuldigital.com/wp-json"
"timeout": 15000
"maxAttempt": 3
"translation":
"displayed" : ["es", "en", "fr"]
"prefered": "es"
# CACHE
"cache":
"img":
"localCacheFolder": "imgcache"
"useDataURI": false
"... |
[
{
"context": "foreEach ->\n struct = new TestStruct(hello: 'guys', whats: 'up', nada: 'much')\n\n it \"gives all t",
"end": 618,
"score": 0.993899941444397,
"start": 614,
"tag": "NAME",
"value": "guys"
},
{
"context": " expect( struct.attrs() )\n .to.eql(hello: 'guys',... | public/js/plugins/onionjs-master/test/struct_spec.coffee | kemiedon/android_project | 6 | Struct = requirejs('onion/struct')
describe "Struct", ->
describe "attributes", ->
class TestStruct extends Struct
@attributes 'brucy'
struct = null
beforeEach ->
struct = new TestStruct(brucy: 'bonus')
it "sets provided attributes", ->
expect( struct.attrs() ).to.eql(brucy: 'bon... | 1417 | Struct = requirejs('onion/struct')
describe "Struct", ->
describe "attributes", ->
class TestStruct extends Struct
@attributes 'brucy'
struct = null
beforeEach ->
struct = new TestStruct(brucy: 'bonus')
it "sets provided attributes", ->
expect( struct.attrs() ).to.eql(brucy: 'bon... | true | Struct = requirejs('onion/struct')
describe "Struct", ->
describe "attributes", ->
class TestStruct extends Struct
@attributes 'brucy'
struct = null
beforeEach ->
struct = new TestStruct(brucy: 'bonus')
it "sets provided attributes", ->
expect( struct.attrs() ).to.eql(brucy: 'bon... |
[
{
"context": " name: User.schema.properties.name\n password: User.schema.properties.password\n required: switch @signupState.get('path')\n ",
"end": 6380,
"score": 0.9927536845207214,
"start": 6349,
"tag": "PASSWORD",
"value": "User.schema.properties.password"
},
{
"context... | app/views/core/CreateAccountModal/BasicInfoView.coffee | robertkachniarz/codecombat | 1 | require('app/styles/modal/create-account-modal/basic-info-view.sass')
CocoView = require 'views/core/CocoView'
AuthModal = require 'views/core/AuthModal'
template = require 'templates/core/create-account-modal/basic-info-view'
forms = require 'core/forms'
errors = require 'core/errors'
User = require 'models/User'
Stat... | 153664 | require('app/styles/modal/create-account-modal/basic-info-view.sass')
CocoView = require 'views/core/CocoView'
AuthModal = require 'views/core/AuthModal'
template = require 'templates/core/create-account-modal/basic-info-view'
forms = require 'core/forms'
errors = require 'core/errors'
User = require 'models/User'
Stat... | true | require('app/styles/modal/create-account-modal/basic-info-view.sass')
CocoView = require 'views/core/CocoView'
AuthModal = require 'views/core/AuthModal'
template = require 'templates/core/create-account-modal/basic-info-view'
forms = require 'core/forms'
errors = require 'core/errors'
User = require 'models/User'
Stat... |
[
{
"context": "re_auth = null\r\n credentials = \r\n email: \"testing@tedchef.com\"\r\n password: \"testing\"\r\n\r\n beforeEach ->\r",
"end": 403,
"score": 0.999922513961792,
"start": 384,
"tag": "EMAIL",
"value": "testing@tedchef.com"
},
{
"context": " email: \"tes... | test/specs/fire_auth.spec.coffee | CurtisHumphrey/knockout-firebase-users | 0 | define (require) ->
ko = require 'knockout'
_ = require 'lodash'
window.ko = ko
MockFirebase = require('mockfirebase').MockFirebase
Fire_Auth_Class = require 'fire_auth_class'
Fire_Auth = require 'fire_auth'
describe 'Fire Auth', ->
fire_ref ... | 193869 | define (require) ->
ko = require 'knockout'
_ = require 'lodash'
window.ko = ko
MockFirebase = require('mockfirebase').MockFirebase
Fire_Auth_Class = require 'fire_auth_class'
Fire_Auth = require 'fire_auth'
describe 'Fire Auth', ->
fire_ref ... | true | define (require) ->
ko = require 'knockout'
_ = require 'lodash'
window.ko = ko
MockFirebase = require('mockfirebase').MockFirebase
Fire_Auth_Class = require 'fire_auth_class'
Fire_Auth = require 'fire_auth'
describe 'Fire Auth', ->
fire_ref ... |
[
{
"context": " desc: '预约,体检,诊疗业务操作演示'\r\n key: 'guahao'\r\n href: 'guide.html'\r\n }\r\n ",
"end": 820,
"score": 0.9711430668830872,
"start": 814,
"tag": "KEY",
"value": "guahao"
},
{
"context": "ml'\r\n }\r\n {\r\n ... | src/base/coffee/demo-index-page.coffee | ben7th/zdmockup | 0 | @DemoIndexPage = React.createClass
render: ->
<div className='demo-index-page'>
<div className='ui vertical segment page-title'>
<div className='ui container'>
<DemoIndexPage.Header />
</div>
</div>
<div className='ui vertical segment'>
<div classNa... | 171582 | @DemoIndexPage = React.createClass
render: ->
<div className='demo-index-page'>
<div className='ui vertical segment page-title'>
<div className='ui container'>
<DemoIndexPage.Header />
</div>
</div>
<div className='ui vertical segment'>
<div classNa... | true | @DemoIndexPage = React.createClass
render: ->
<div className='demo-index-page'>
<div className='ui vertical segment page-title'>
<div className='ui container'>
<DemoIndexPage.Header />
</div>
</div>
<div className='ui vertical segment'>
<div classNa... |
[
{
"context": "ss.env.SLURRY_SPREADER_NAMESPACE\n privateKey: process.env.MESHBLU_PRIVATE_KEY\n\n jobsPath = path.join __d",
"end": 2155,
"score": 0.764738142490387,
"start": 2144,
"tag": "KEY",
"value": "process.env"
},
{
"context": "_SPREADER_NAMESPACE\n privateKey: pro... | command.coffee | octoblu/slurry-exchange | 0 | _ = require 'lodash'
MeshbluConfig = require 'meshblu-config'
path = require 'path'
Slurry = require 'slurry-core'
OctobluStrategy = require 'slurry-core/octoblu-strategy'
MessageHandler = require 'slurry-core/message-handler'
ConfigureHandler = require 'slurry-core/configure-... | 79044 | _ = require 'lodash'
MeshbluConfig = require 'meshblu-config'
path = require 'path'
Slurry = require 'slurry-core'
OctobluStrategy = require 'slurry-core/octoblu-strategy'
MessageHandler = require 'slurry-core/message-handler'
ConfigureHandler = require 'slurry-core/configure-... | true | _ = require 'lodash'
MeshbluConfig = require 'meshblu-config'
path = require 'path'
Slurry = require 'slurry-core'
OctobluStrategy = require 'slurry-core/octoblu-strategy'
MessageHandler = require 'slurry-core/message-handler'
ConfigureHandler = require 'slurry-core/configure-... |
[
{
"context": "emachine.com/talk1/17b.html\n# http://mrl.nyu.edu/~perlin/noise/\n# generate permutation\n\nclass PerlinNoise\n",
"end": 14937,
"score": 0.9837049245834351,
"start": 14931,
"tag": "USERNAME",
"value": "perlin"
},
{
"context": "the\nstandard random() function. It was inv... | coffee/globals/math.coffee | xinaesthete/livecodelab | 1 | # Functions adapted from processing.js
#//////////////////////////////////////////////////////////////////////////
# Math functions
#//////////////////////////////////////////////////////////////////////////
# Calculation
###
Calculates the absolute value (magnitude) of a number. The absolute value of a
number is alw... | 27814 | # Functions adapted from processing.js
#//////////////////////////////////////////////////////////////////////////
# Math functions
#//////////////////////////////////////////////////////////////////////////
# Calculation
###
Calculates the absolute value (magnitude) of a number. The absolute value of a
number is alw... | true | # Functions adapted from processing.js
#//////////////////////////////////////////////////////////////////////////
# Math functions
#//////////////////////////////////////////////////////////////////////////
# Calculation
###
Calculates the absolute value (magnitude) of a number. The absolute value of a
number is alw... |
[
{
"context": "Version: FORMAT_VERSION, noteData: []}\n\nLS_KEY = \"chiptool song data\"\n\n@state_changed = ->\n\t# TODO: update playback he",
"end": 426,
"score": 0.9932982325553894,
"start": 408,
"tag": "KEY",
"value": "chiptool song data"
},
{
"context": "ok through the source his... | src/app.coffee | 1j01/chiptool | 3 |
scale = teoria.note("c#4").scale("lydian")
scale_notes = scale.notes()
scale_note_midis = (note.midi() for note in scale_notes)
midi_to_freq = (midi)->
teoria.note.fromMIDI(midi).fq()
audioContext = new AudioContext()
#master = audioContext.createGain()
#master.gain.value = 0
#master.connect audioContext.destinatio... | 80444 |
scale = teoria.note("c#4").scale("lydian")
scale_notes = scale.notes()
scale_note_midis = (note.midi() for note in scale_notes)
midi_to_freq = (midi)->
teoria.note.fromMIDI(midi).fq()
audioContext = new AudioContext()
#master = audioContext.createGain()
#master.gain.value = 0
#master.connect audioContext.destinatio... | true |
scale = teoria.note("c#4").scale("lydian")
scale_notes = scale.notes()
scale_note_midis = (note.midi() for note in scale_notes)
midi_to_freq = (midi)->
teoria.note.fromMIDI(midi).fq()
audioContext = new AudioContext()
#master = audioContext.createGain()
#master.gain.value = 0
#master.connect audioContext.destinatio... |
[
{
"context": ".stringify(@getLog()))\n\n logKey: =>\n key = [ @id, PokeBattle.username ]\n key.sort()\n key.joi",
"end": 1146,
"score": 0.8687909841537476,
"start": 1144,
"tag": "KEY",
"value": "id"
}
] | client/app/js/models/chats/private_message.coffee | sarenji/pokebattle-sim | 5 | MAX_LOG_LENGTH = 50
class @PrivateMessage extends Backbone.Model
initialize: =>
@loadLog()
@set('notifications', 0)
add: (username, message, opts = {}) =>
@set('notifications', @get('notifications') + 1) if username == @id
@trigger("receive", this, @id, username, message, opts)
log = @get('l... | 125172 | MAX_LOG_LENGTH = 50
class @PrivateMessage extends Backbone.Model
initialize: =>
@loadLog()
@set('notifications', 0)
add: (username, message, opts = {}) =>
@set('notifications', @get('notifications') + 1) if username == @id
@trigger("receive", this, @id, username, message, opts)
log = @get('l... | true | MAX_LOG_LENGTH = 50
class @PrivateMessage extends Backbone.Model
initialize: =>
@loadLog()
@set('notifications', 0)
add: (username, message, opts = {}) =>
@set('notifications', @get('notifications') + 1) if username == @id
@trigger("receive", this, @id, username, message, opts)
log = @get('l... |
[
{
"context": "#####\nrouteDetect = /^[a-z0-9]+/i\n\nrouteKey = \"### /\"\nrequestKey = \"#### request\"\nresponseKey = \"#### ",
"end": 907,
"score": 0.9654139280319214,
"start": 906,
"tag": "KEY",
"value": "/"
},
{
"context": "= /^[a-z0-9]+/i\n\nrouteKey = \"### /\"\nrequestKey = \"... | source/definitionfilemodule/definitionfilemodule.coffee | JhonnyJason/interface-gen-sources | 0 | definitionfilemodule = {name: "definitionfilemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["definitionfilemodule"]? then console.log "[definitionfilemodule]: " + arg
return
ostr = (obj) -> JSON.stringify(o... | 47286 | definitionfilemodule = {name: "definitionfilemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["definitionfilemodule"]? then console.log "[definitionfilemodule]: " + arg
return
ostr = (obj) -> JSON.stringify(o... | true | definitionfilemodule = {name: "definitionfilemodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if allModules.debugmodule.modulesToDebug["definitionfilemodule"]? then console.log "[definitionfilemodule]: " + arg
return
ostr = (obj) -> JSON.stringify(o... |
[
{
"context": "# Made by Viktor Strate\n# Based on SmoothAnalogClock by N00bySumairu\n# ht",
"end": 23,
"score": 0.9998958706855774,
"start": 10,
"tag": "NAME",
"value": "Viktor Strate"
},
{
"context": "e by Viktor Strate\n# Based on SmoothAnalogClock by N00bySumairu\n# https://github... | simple-analog-clock.widget/index.coffee | viktorstrate/simple-analog-clock | 2 | # Made by Viktor Strate
# Based on SmoothAnalogClock by N00bySumairu
# https://github.com/N00bySumairu/SmoothAnalogClock.widget
# Begin of styling options
options =
pos:
x: "left: 50px"
y: "top: 40px"
size: 192 # width of the clock in px
scale: 1 # for retina displays set to 2
fontSize: 48 # in px
... | 115741 | # Made by <NAME>
# Based on SmoothAnalogClock by N00bySumairu
# https://github.com/N00bySumairu/SmoothAnalogClock.widget
# Begin of styling options
options =
pos:
x: "left: 50px"
y: "top: 40px"
size: 192 # width of the clock in px
scale: 1 # for retina displays set to 2
fontSize: 48 # in px
secPtr... | true | # Made by PI:NAME:<NAME>END_PI
# Based on SmoothAnalogClock by N00bySumairu
# https://github.com/N00bySumairu/SmoothAnalogClock.widget
# Begin of styling options
options =
pos:
x: "left: 50px"
y: "top: 40px"
size: 192 # width of the clock in px
scale: 1 # for retina displays set to 2
fontSize: 48 # ... |
[
{
"context": "###\n\nbump.js\n\nCopyright (c) 2013 Jairo Luiz\nLicensed under the MIT license.\n\n###\n\nArray.proto",
"end": 43,
"score": 0.9997796416282654,
"start": 33,
"tag": "NAME",
"value": "Jairo Luiz"
}
] | src/lib/bump.coffee | tangerinagames/bump.js | 1 | ###
bump.js
Copyright (c) 2013 Jairo Luiz
Licensed under the MIT license.
###
Array.prototype.remove = (item) ->
from = @indexOf(item)
rest = this.slice(from + 1, @length)
@length = if from < 0 then @length + from else from
@push.apply(@, rest)
class HashMap
@_currentItemId = 1
constructor: ->
@... | 26434 | ###
bump.js
Copyright (c) 2013 <NAME>
Licensed under the MIT license.
###
Array.prototype.remove = (item) ->
from = @indexOf(item)
rest = this.slice(from + 1, @length)
@length = if from < 0 then @length + from else from
@push.apply(@, rest)
class HashMap
@_currentItemId = 1
constructor: ->
@_dic... | true | ###
bump.js
Copyright (c) 2013 PI:NAME:<NAME>END_PI
Licensed under the MIT license.
###
Array.prototype.remove = (item) ->
from = @indexOf(item)
rest = this.slice(from + 1, @length)
@length = if from < 0 then @length + from else from
@push.apply(@, rest)
class HashMap
@_currentItemId = 1
constructor... |
[
{
"context": ".sync.args[0][2].success fabricate 'artist', id: 'damien-hershey'\n @templateName = renderStub.args[0][0]\n @t",
"end": 468,
"score": 0.9904417395591736,
"start": 454,
"tag": "NAME",
"value": "damien-hershey"
},
{
"context": " @templateOptions.artist.get('id').sh... | apps/artist/test/routes.coffee | kanaabe/microgravity | 1 | { fabricate } = require 'antigravity'
sinon = require 'sinon'
Backbone = require 'backbone'
rewire = require 'rewire'
routes = rewire '../routes'
Q = require 'bluebird-q'
describe '#index', ->
beforeEach ->
sinon.stub Backbone, 'sync'
routes.index(
{ params: { id: 'foo' } }
{ locals: { sd: {}, a... | 19873 | { fabricate } = require 'antigravity'
sinon = require 'sinon'
Backbone = require 'backbone'
rewire = require 'rewire'
routes = rewire '../routes'
Q = require 'bluebird-q'
describe '#index', ->
beforeEach ->
sinon.stub Backbone, 'sync'
routes.index(
{ params: { id: 'foo' } }
{ locals: { sd: {}, a... | true | { fabricate } = require 'antigravity'
sinon = require 'sinon'
Backbone = require 'backbone'
rewire = require 'rewire'
routes = rewire '../routes'
Q = require 'bluebird-q'
describe '#index', ->
beforeEach ->
sinon.stub Backbone, 'sync'
routes.index(
{ params: { id: 'foo' } }
{ locals: { sd: {}, a... |
[
{
"context": "BEB']\n neuquen:\n name: 'Neuquen'\n kmlURL: 'Neuquen.kml'\n ",
"end": 1274,
"score": 0.8642660975456238,
"start": 1267,
"tag": "NAME",
"value": "Neuquen"
}
] | app/scripts/main.coffee | rafen/sandbox-elections | 0 | class Elections
constructor: ->
# Load charts library
google.load 'visualization', '1.0', 'packages': ['corechart']
# Load Map
google.maps.event.addDomListener window, 'load', @.initialize
# static files
@.baseURL = 'http://rafen.webfactional.com/elections2015/kml/'
... | 31438 | class Elections
constructor: ->
# Load charts library
google.load 'visualization', '1.0', 'packages': ['corechart']
# Load Map
google.maps.event.addDomListener window, 'load', @.initialize
# static files
@.baseURL = 'http://rafen.webfactional.com/elections2015/kml/'
... | true | class Elections
constructor: ->
# Load charts library
google.load 'visualization', '1.0', 'packages': ['corechart']
# Load Map
google.maps.event.addDomListener window, 'load', @.initialize
# static files
@.baseURL = 'http://rafen.webfactional.com/elections2015/kml/'
... |
[
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)\n###\n\nfs = requi",
"end": 37,
"score": 0.9998374581336975,
"start": 26,
"tag": "NAME",
"value": "David Worms"
},
{
"context": "\n###\nTest CSV - Copyright David Worms <open@adaltas.com> (BSD Lic... | servers/nodejs/node_modules/restify/node_modules/csv/test/delimiter.coffee | HyperNexus/crashdumper | 186 |
###
Test CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'delimiter', ->
it 'Test empty value', (next) ->
csv()
.from.string( """
20322051544,,8.80172... | 166830 |
###
Test CSV - Copyright <NAME> <<EMAIL>> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'delimiter', ->
it 'Test empty value', (next) ->
csv()
.from.string( """
20322051544,,8.8017226E7,45,
... | true |
###
Test CSV - Copyright PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (BSD Licensed)
###
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
describe 'delimiter', ->
it 'Test empty value', (next) ->
csv()
.from.string( """
20322... |
[
{
"context": " scene allow player to defined options\n*\n* @author David Jegat <david.jegat@gmail.com>\n###\nclass OptionsScene ex",
"end": 73,
"score": 0.9998897314071655,
"start": 62,
"tag": "NAME",
"value": "David Jegat"
},
{
"context": "layer to defined options\n*\n* @author Davi... | src/Scene/OptionsScene.coffee | Djeg/MicroRacing | 1 | ###*
* This scene allow player to defined options
*
* @author David Jegat <david.jegat@gmail.com>
###
class OptionsScene extends BaseScene
###*
* Initialize this scene
###
init: () ->
###*
* Display the scene
###
display: () ->
@game.context.fillStyle = "rgb(0, 0, 0)"
@game.context.fillText "Pe... | 70006 | ###*
* This scene allow player to defined options
*
* @author <NAME> <<EMAIL>>
###
class OptionsScene extends BaseScene
###*
* Initialize this scene
###
init: () ->
###*
* Display the scene
###
display: () ->
@game.context.fillStyle = "rgb(0, 0, 0)"
@game.context.fillText "Pending !", @game.ele... | true | ###*
* This scene allow player to defined options
*
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
class OptionsScene extends BaseScene
###*
* Initialize this scene
###
init: () ->
###*
* Display the scene
###
display: () ->
@game.context.fillStyle = "rgb(0, 0, 0)"
@game.context.fi... |
[
{
"context": "ill we know if the user is logged in.\n\n @author Sebastian Sachtleben\n###\nclass AuthView extends BaseView\n\t\n\tauthTempla",
"end": 248,
"score": 0.9998924136161804,
"start": 228,
"tag": "NAME",
"value": "Sebastian Sachtleben"
}
] | app/assets/javascripts/shared/views/authView.coffee | ssachtleben/herowar | 1 | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The AuthView shows temporarily the auth view untill we know if the user is logged in.
@author Sebastian Sachtleben
###
class AuthView extends BaseView
authTemplate: templates.get 'aut... | 88229 | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The AuthView shows temporarily the auth view untill we know if the user is logged in.
@author <NAME>
###
class AuthView extends BaseView
authTemplate: templates.get 'auth.tmpl'
red... | true | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The AuthView shows temporarily the auth view untill we know if the user is logged in.
@author PI:NAME:<NAME>END_PI
###
class AuthView extends BaseView
authTemplate: templates.get 'aut... |
[
{
"context": "\nScaffolded with generator-microjs v0.1.2\n\n@author Daniel Lamb <dlamb.open.source@gmail.com>\n###\n\ndescribe 'gras",
"end": 118,
"score": 0.9998698234558105,
"start": 107,
"tag": "NAME",
"value": "Daniel Lamb"
},
{
"context": "th generator-microjs v0.1.2\n\n@author ... | test/spec/grasp.spec.coffee | daniellmb/grasp.js | 1 | ###
@file
## Responsibilities
- unit test grasp.coffee
Scaffolded with generator-microjs v0.1.2
@author Daniel Lamb <dlamb.open.source@gmail.com>
###
describe 'grasp.coffee', ->
beforeEach ->
# add spies
it 'should have a working test harness', ->
# arrange
# act
# assert
expect(true).not.t... | 147261 | ###
@file
## Responsibilities
- unit test grasp.coffee
Scaffolded with generator-microjs v0.1.2
@author <NAME> <<EMAIL>>
###
describe 'grasp.coffee', ->
beforeEach ->
# add spies
it 'should have a working test harness', ->
# arrange
# act
# assert
expect(true).not.toBe false
it 'should e... | true | ###
@file
## Responsibilities
- unit test grasp.coffee
Scaffolded with generator-microjs v0.1.2
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
describe 'grasp.coffee', ->
beforeEach ->
# add spies
it 'should have a working test harness', ->
# arrange
# act
# assert
expect(true).n... |
[
{
"context": "host == 'localhost'\n assert.ok config.user == 'dbmigrate'\n assert.ok config.password == 'dbmigrate'\n ",
"end": 247,
"score": 0.9859133958816528,
"start": 238,
"tag": "USERNAME",
"value": "dbmigrate"
},
{
"context": " == 'dbmigrate'\n assert.ok config.passw... | test/config-loader.coffee | holyshared/db-migrate-diff | 0 | describe 'configLoader', ->
it 'returns an instance of applying the long option', ->
config = configLoader(__dirname + '/fixtures/migrations.js', 'development')
assert.ok config.host == 'localhost'
assert.ok config.user == 'dbmigrate'
assert.ok config.password == 'dbmigrate'
assert.ok config.datab... | 59997 | describe 'configLoader', ->
it 'returns an instance of applying the long option', ->
config = configLoader(__dirname + '/fixtures/migrations.js', 'development')
assert.ok config.host == 'localhost'
assert.ok config.user == 'dbmigrate'
assert.ok config.password == '<PASSWORD>'
assert.ok config.data... | true | describe 'configLoader', ->
it 'returns an instance of applying the long option', ->
config = configLoader(__dirname + '/fixtures/migrations.js', 'development')
assert.ok config.host == 'localhost'
assert.ok config.user == 'dbmigrate'
assert.ok config.password == 'PI:PASSWORD:<PASSWORD>END_PI'
ass... |
[
{
"context": " addToken: Promise.coroutine ->\n token = uuid.v4()\n [client, done] = yield db.connect()\n ",
"end": 682,
"score": 0.8078731298446655,
"start": 675,
"tag": "KEY",
"value": "uuid.v4"
}
] | storage/lib/access.coffee | foobert/gc | 1 | uuid = require 'uuid'
Promise = require 'bluebird'
module.exports = (db) ->
init: Promise.coroutine ->
return (yield @getToken()) or (yield @addToken())
check: Promise.coroutine (token) ->
return false if not token?
[client, done] = yield db.connect()
try
sql = db.... | 19994 | uuid = require 'uuid'
Promise = require 'bluebird'
module.exports = (db) ->
init: Promise.coroutine ->
return (yield @getToken()) or (yield @addToken())
check: Promise.coroutine (token) ->
return false if not token?
[client, done] = yield db.connect()
try
sql = db.... | true | uuid = require 'uuid'
Promise = require 'bluebird'
module.exports = (db) ->
init: Promise.coroutine ->
return (yield @getToken()) or (yield @addToken())
check: Promise.coroutine (token) ->
return false if not token?
[client, done] = yield db.connect()
try
sql = db.... |
[
{
"context": " 'alice'\n errors:\n password: 'missing'\n reason: 'bad credentials'\n $htt",
"end": 1477,
"score": 0.9980841875076294,
"start": 1470,
"tag": "PASSWORD",
"value": "missing"
},
{
"context": "ure and send the xsrf token', ->\n to... | tests/js/session-service-test.coffee | Treora/h | 0 | assert = chai.assert
sinon.assert.expose assert, prefix: null
sandbox = sinon.sandbox.create()
mockFlash = sandbox.spy()
mockDocumentHelpers = {absoluteURI: -> '/session'}
describe 'session', ->
beforeEach module('h.session')
beforeEach module ($provide, sessionProvider) ->
$provide.value 'documentHelpers', ... | 160625 | assert = chai.assert
sinon.assert.expose assert, prefix: null
sandbox = sinon.sandbox.create()
mockFlash = sandbox.spy()
mockDocumentHelpers = {absoluteURI: -> '/session'}
describe 'session', ->
beforeEach module('h.session')
beforeEach module ($provide, sessionProvider) ->
$provide.value 'documentHelpers', ... | true | assert = chai.assert
sinon.assert.expose assert, prefix: null
sandbox = sinon.sandbox.create()
mockFlash = sandbox.spy()
mockDocumentHelpers = {absoluteURI: -> '/session'}
describe 'session', ->
beforeEach module('h.session')
beforeEach module ($provide, sessionProvider) ->
$provide.value 'documentHelpers', ... |
[
{
"context": "\n\n requests[0].respond(200, undefined, '[bob, steve, kate]')\n\n\n it 'should check the response if a",
"end": 5488,
"score": 0.6469221711158752,
"start": 5483,
"tag": "NAME",
"value": "steve"
},
{
"context": "equests[0].respond(200, undefined, '[bob, steve, k... | src/utils/request/spec.coffee | p-koscielniak/hexagonjs | 61 | import {
request,
html,
text,
json,
reshapedRequest
} from 'utils/request'
import logger from 'utils/logger'
describe 'Request API', ->
defaultCb = chai.spy()
xhr = undefined
requests = undefined
beforeEach ->
xhr = sinon.useFakeXMLHttpRequest()
requests = []
xhr.onCreate = (req) -> re... | 13905 | import {
request,
html,
text,
json,
reshapedRequest
} from 'utils/request'
import logger from 'utils/logger'
describe 'Request API', ->
defaultCb = chai.spy()
xhr = undefined
requests = undefined
beforeEach ->
xhr = sinon.useFakeXMLHttpRequest()
requests = []
xhr.onCreate = (req) -> re... | true | import {
request,
html,
text,
json,
reshapedRequest
} from 'utils/request'
import logger from 'utils/logger'
describe 'Request API', ->
defaultCb = chai.spy()
xhr = undefined
requests = undefined
beforeEach ->
xhr = sinon.useFakeXMLHttpRequest()
requests = []
xhr.onCreate = (req) -> re... |
[
{
"context": "fileoverview Tests for missing-err rule.\n# @author Jamund Ferguson\n###\n\n'use strict'\n\n#-----------------------------",
"end": 74,
"score": 0.9998528361320496,
"start": 59,
"tag": "NAME",
"value": "Jamund Ferguson"
}
] | src/tests/rules/handle-callback-err.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for missing-err rule.
# @author Jamund Ferguson
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/handle-callback-e... | 213470 | ###*
# @fileoverview Tests for missing-err rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/handle-callback-err'
{Rule... | true | ###*
# @fileoverview Tests for missing-err rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/handle-callb... |
[
{
"context": "ocol()}://#{uri.host()}#{uri.path()}\"\n auth = \"X-USER-TOKEN=#{uri.query(true)[\"X-USER-TOKEN\"]}\"\n\n # ",
"end": 285,
"score": 0.6537508964538574,
"start": 279,
"tag": "KEY",
"value": "X-USER"
}
] | app/coffee/views/historic-view.coffee | nanobox-io/nanobox-dash-ui-logs | 1 | #
module.exports = class Historic
#
constructor: (@$node, @options={}, @main) ->
#
Eventify.extend(@)
# parse the uri and build our connection credentials
uri = new URI(@options.url);
host = "#{uri.protocol()}://#{uri.host()}#{uri.path()}"
auth = "X-USER-TOKEN=#{uri.query(true)["X-USER-TO... | 84511 | #
module.exports = class Historic
#
constructor: (@$node, @options={}, @main) ->
#
Eventify.extend(@)
# parse the uri and build our connection credentials
uri = new URI(@options.url);
host = "#{uri.protocol()}://#{uri.host()}#{uri.path()}"
auth = "<KEY>-TOKEN=#{uri.query(true)["X-USER-TOK... | true | #
module.exports = class Historic
#
constructor: (@$node, @options={}, @main) ->
#
Eventify.extend(@)
# parse the uri and build our connection credentials
uri = new URI(@options.url);
host = "#{uri.protocol()}://#{uri.host()}#{uri.path()}"
auth = "PI:KEY:<KEY>END_PI-TOKEN=#{uri.query(true... |
[
{
"context": "loc = kb.viewModel(kb.locale_manager, {\n\t\tkeys: ['complete_all', 'create_placeholder', 'create_tooltip', 'instruct",
"end": 4373,
"score": 0.9614107608795166,
"start": 4359,
"tag": "KEY",
"value": "complete_all',"
},
{
"context": "el(kb.locale_manager, {\n\t\tkeys: [... | app/todos-extended/src/viewmodels/app.coffee | kmalakoff/knockback-todos-app | 2 | ENTER_KEY = 13
window.AppViewModel = ->
#############################
#############################
# CLASSIC APP with some EXTENSION hooks
#############################
#############################
#############################
# Shared
#############################
# collections
@collections =
todos: n... | 16964 | ENTER_KEY = 13
window.AppViewModel = ->
#############################
#############################
# CLASSIC APP with some EXTENSION hooks
#############################
#############################
#############################
# Shared
#############################
# collections
@collections =
todos: n... | true | ENTER_KEY = 13
window.AppViewModel = ->
#############################
#############################
# CLASSIC APP with some EXTENSION hooks
#############################
#############################
#############################
# Shared
#############################
# collections
@collections =
todos: n... |
[
{
"context": "###\n# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)\n#",
"end": 21,
"score": 0.9982496500015259,
"start": 14,
"tag": "USERNAME",
"value": "iTonyYo"
},
{
"context": "###\n# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)\n# Last Update ... | node_modules/node-find-folder/gulp/uglify.coffee | long-grass/mikey | 0 | ###
# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
extend = require 'xtend'
... | 95505 | ###
# Author: iTonyYo <<EMAIL>> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <<EMAIL>> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
extend = require 'xtend'
clp = req... | true | ###
# Author: iTonyYo <PI:EMAIL:<EMAIL>END_PI> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <PI:EMAIL:<EMAIL>END_PI> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
extend = requ... |
[
{
"context": "nly uses arguments\", ->\n person =\n name: \"Jim\"\n nameWithSuffix: (suffix) -> @name + suffix",
"end": 3174,
"score": 0.9997715353965759,
"start": 3171,
"tag": "NAME",
"value": "Jim"
},
{
"context": "pect(personNameWithSuffix(person, \"!\")).to.equal(\"J... | test/common/kozu/core_test.coffee | jamesmacaulay/kozu | 2 | expect = require("chai").expect
core = require("../../../../../lib/kozu/core")
plus1 = (n) -> n+1
times2 = (n) -> n*2
exclaim = (x) -> "#{x}!"
describe "kozu.core.compose(... funcs)", ->
it "calls from right to left", ->
times2plus1 = core.compose(plus1, times2)
expect(times2plus1(3)).to.equal(7)
describe ... | 197552 | expect = require("chai").expect
core = require("../../../../../lib/kozu/core")
plus1 = (n) -> n+1
times2 = (n) -> n*2
exclaim = (x) -> "#{x}!"
describe "kozu.core.compose(... funcs)", ->
it "calls from right to left", ->
times2plus1 = core.compose(plus1, times2)
expect(times2plus1(3)).to.equal(7)
describe ... | true | expect = require("chai").expect
core = require("../../../../../lib/kozu/core")
plus1 = (n) -> n+1
times2 = (n) -> n*2
exclaim = (x) -> "#{x}!"
describe "kozu.core.compose(... funcs)", ->
it "calls from right to left", ->
times2plus1 = core.compose(plus1, times2)
expect(times2plus1(3)).to.equal(7)
describe ... |
[
{
"context": "erver = http.createServer(app).listen undefined, '127.0.0.1', ->\n # Obviously, we need to know the port to",
"end": 1996,
"score": 0.9997673034667969,
"start": 1987,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "on, '99'\n assert.deepEqual session.... | test/server.coffee | lever/node-browserchannel | 108 | # # Unit tests for BrowserChannel server
#
# This contains all the unit tests to make sure the server works like it
# should. The tests are written using mocha - you can run them using
# % npm test
#
# For now I'm not going to add in any SSL testing code. I should probably generate
# a self-signed key pair, start the ... | 35309 | # # Unit tests for BrowserChannel server
#
# This contains all the unit tests to make sure the server works like it
# should. The tests are written using mocha - you can run them using
# % npm test
#
# For now I'm not going to add in any SSL testing code. I should probably generate
# a self-signed key pair, start the ... | true | # # Unit tests for BrowserChannel server
#
# This contains all the unit tests to make sure the server works like it
# should. The tests are written using mocha - you can run them using
# % npm test
#
# For now I'm not going to add in any SSL testing code. I should probably generate
# a self-signed key pair, start the ... |
[
{
"context": "# regex by Diego Perini \n# https://gist.github.com/dperini/729294\n# modif",
"end": 23,
"score": 0.9998882412910461,
"start": 11,
"tag": "NAME",
"value": "Diego Perini"
},
{
"context": " regex by Diego Perini \n# https://gist.github.com/dperini/729294\n# modified to be... | _src/lib/utils.coffee | smrchy/task-queue-worker | 11 | # regex by Diego Perini
# https://gist.github.com/dperini/729294
# modified to be able to use 127.x.x.x and 192.x.x.x
regExUrl = new RegExp(
"^" +
# protocol identifier
"(?:(?:https?|ftp)://)" +
# user:pass authentication
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
# IP address exclusion
# private & local networks
"(?!1... | 9439 | # regex by <NAME>
# https://gist.github.com/dperini/729294
# modified to be able to use 127.x.x.x and 192.x.x.x
regExUrl = new RegExp(
"^" +
# protocol identifier
"(?:(?:https?|ftp)://)" +
# user:pass authentication
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
# IP address exclusion
# private & local networks
"(?!10(?:\\... | true | # regex by PI:NAME:<NAME>END_PI
# https://gist.github.com/dperini/729294
# modified to be able to use 127.x.x.x and 192.x.x.x
regExUrl = new RegExp(
"^" +
# protocol identifier
"(?:(?:https?|ftp)://)" +
# user:pass authentication
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
# IP address exclusion
# private & local network... |
[
{
"context": "ca 2\"]\n port: 1000 #port number\n user: \"dbUser\"\n pass: \"dbPass\"\n options:\n mong",
"end": 471,
"score": 0.9128919839859009,
"start": 465,
"tag": "USERNAME",
"value": "dbUser"
},
{
"context": "00 #port number\n user: \"dbUser\"\n ... | src/core/initializers.database/index.coffee | classdojo/mongoose-builder | 0 | exports.plugin = () ->
###
This is class abstracts away mongoose connections
###
mongoose = require("mongoose")
_ = require("underscore")
class Connections
###
databaseSettings: {Object} -> This should be a hash
with the following structure:
databaseTag1:
name: "name of the da... | 126946 | exports.plugin = () ->
###
This is class abstracts away mongoose connections
###
mongoose = require("mongoose")
_ = require("underscore")
class Connections
###
databaseSettings: {Object} -> This should be a hash
with the following structure:
databaseTag1:
name: "name of the da... | true | exports.plugin = () ->
###
This is class abstracts away mongoose connections
###
mongoose = require("mongoose")
_ = require("underscore")
class Connections
###
databaseSettings: {Object} -> This should be a hash
with the following structure:
databaseTag1:
name: "name of the da... |
[
{
"context": "0, 0, 1\n 1, 1, 0\n]\n\nkids =\n brother:\n name: \"Max\"\n age: 11\n sister:\n name: \"Ida\"\n age: ",
"end": 159,
"score": 0.9998762607574463,
"start": 156,
"tag": "NAME",
"value": "Max"
},
{
"context": " name: \"Max\"\n age: 11\n sister:\n ... | public/node_modules/coffee-register/benchmarks/samples/medium2.coffee | nandartika/bibe | 1 | 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
gold = silver = rest = "unknown"
awardMedals = (first, second, others...) ->
gold = first
silver =... | 11609 | 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
gold = silver = rest = "unknown"
awardMedals = (first, second, others...) ->
gold = first
si... | 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
gold = silver = rest = "unknown"
awardMedals = (first, second, others.... |
[
{
"context": "ards_data[0].user = new ObjectId(results[1]._id) #test@test.com' operator\n dashboards_data[1].user = n",
"end": 2118,
"score": 0.9988983273506165,
"start": 2105,
"tag": "EMAIL",
"value": "test@test.com"
},
{
"context": "ards_data[1].user = new ObjectId(resul... | test/hooks.coffee | J-JRC/ureport-standalone | 0 | process.env.NODE_ENV = 'test'
mongoose = require('mongoose')
config = require('config')
process.env.PORT = config.PORT
Promise = require("bluebird")
async = require("async")
ObjectId = mongoose.Types.ObjectId;
Setting = require('../src/models/setting')
settings_data = require('./seed/settings')
Assignment = requir... | 179247 | process.env.NODE_ENV = 'test'
mongoose = require('mongoose')
config = require('config')
process.env.PORT = config.PORT
Promise = require("bluebird")
async = require("async")
ObjectId = mongoose.Types.ObjectId;
Setting = require('../src/models/setting')
settings_data = require('./seed/settings')
Assignment = requir... | true | process.env.NODE_ENV = 'test'
mongoose = require('mongoose')
config = require('config')
process.env.PORT = config.PORT
Promise = require("bluebird")
async = require("async")
ObjectId = mongoose.Types.ObjectId;
Setting = require('../src/models/setting')
settings_data = require('./seed/settings')
Assignment = requir... |
[
{
"context": "urn the name of the style', () ->\n name = 'Test'\n style = new ContentTools.Style(name, 'te",
"end": 1994,
"score": 0.9711862802505493,
"start": 1990,
"tag": "NAME",
"value": "Test"
}
] | src/spec/styles.coffee | robinlluu2002/ContentTools | 0 | # StylePalette
describe 'ContentTools.StylePalette.add()', () ->
it 'should return a `ContentTools.Style` instance', () ->
style = new ContentTools.Style('test', 'test', ['test'])
ContentTools.StylePalette.add(style)
expect(ContentTools.StylePalette.styles('test')).toEqual [style]
descri... | 57863 | # StylePalette
describe 'ContentTools.StylePalette.add()', () ->
it 'should return a `ContentTools.Style` instance', () ->
style = new ContentTools.Style('test', 'test', ['test'])
ContentTools.StylePalette.add(style)
expect(ContentTools.StylePalette.styles('test')).toEqual [style]
descri... | true | # StylePalette
describe 'ContentTools.StylePalette.add()', () ->
it 'should return a `ContentTools.Style` instance', () ->
style = new ContentTools.Style('test', 'test', ['test'])
ContentTools.StylePalette.add(style)
expect(ContentTools.StylePalette.styles('test')).toEqual [style]
descri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.