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": "ack at the highest level\n# see https://github.com/TooTallNate/node-weak#weak-callback-function-best-practices\n#",
"end": 623,
"score": 0.9994912147521973,
"start": 612,
"tag": "USERNAME",
"value": "TooTallNate"
},
{
"context": " + authInfo.mountPoint, 403)\n\n ... | src/server/application_manager/index.coffee | bladepan/cloudbrowser | 0 | Fs = require('fs')
Path = require('path')
{EventEmitter} = require('events')
Weak = require('weak')
Async = require('async')
lodash = require('lodash')
debug = require('debug')
request = require('request')
Applica... | 102197 | Fs = require('fs')
Path = require('path')
{EventEmitter} = require('events')
Weak = require('weak')
Async = require('async')
lodash = require('lodash')
debug = require('debug')
request = require('request')
Applica... | true | Fs = require('fs')
Path = require('path')
{EventEmitter} = require('events')
Weak = require('weak')
Async = require('async')
lodash = require('lodash')
debug = require('debug')
request = require('request')
Applica... |
[
{
"context": "\n# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 19,
"score": 0.9995740056037903,
"start": 13,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-event-emitter-listeners.coffee | lxe/io.coffee | 0 |
# Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, m... | 209854 |
# Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, m... | true |
# Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, c... |
[
{
"context": "ort default {\n sizes:\n shootOut:\n name: 'Shoot-out'\n soulstones:\n min: 0\n max: 25",
"end": 62,
"score": 0.9538982510566711,
"start": 53,
"tag": "NAME",
"value": "Shoot-out"
},
{
"context": " max: 25\n typical: 20\n lead... | src/data/Encounters.coffee | AppSynergy/malifaux-crew-explorer | 0 | export default {
sizes:
shootOut:
name: 'Shoot-out'
soulstones:
min: 0
max: 25
typical: 20
leader: ['Henchman']
dustup:
name: 'Dustup'
soulstones:
min: 26
max: 40
typical: 30
leader: ['Master', 'Henchman']
scrap:
nam... | 180806 | export default {
sizes:
shootOut:
name: '<NAME>'
soulstones:
min: 0
max: 25
typical: 20
leader: ['<NAME>']
dustup:
name: '<NAME>'
soulstones:
min: 26
max: 40
typical: 30
leader: ['<NAME>', '<NAME>']
scrap:
name: '<NA... | true | export default {
sizes:
shootOut:
name: 'PI:NAME:<NAME>END_PI'
soulstones:
min: 0
max: 25
typical: 20
leader: ['PI:NAME:<NAME>END_PI']
dustup:
name: 'PI:NAME:<NAME>END_PI'
soulstones:
min: 26
max: 40
typical: 30
leader: ['PI:N... |
[
{
"context": "data = [\n {\n id: 1,\n active: 1,\n name: 'Katra',\n slug: 'katra',\n url: 'https://github.com",
"end": 651,
"score": 0.9139847755432129,
"start": 646,
"tag": "NAME",
"value": "Katra"
},
{
"context": ",\n slug: 'katra',\n url: 'https://github.com/... | bin/automigrate.coffee | darkoverlordofdata/games | 0 | path = require('path')
app = require(path.resolve(__dirname, '../server'))
DataSource = require('loopback-datasource-juggler').DataSource
Sqlite3 = require('loopback-connector-sqlite')
db = new DataSource(Sqlite3, file_name: 'db.sqlite3', debug: false)
model =
id: type: Number, required: true
active: type: Bool... | 44751 | path = require('path')
app = require(path.resolve(__dirname, '../server'))
DataSource = require('loopback-datasource-juggler').DataSource
Sqlite3 = require('loopback-connector-sqlite')
db = new DataSource(Sqlite3, file_name: 'db.sqlite3', debug: false)
model =
id: type: Number, required: true
active: type: Bool... | true | path = require('path')
app = require(path.resolve(__dirname, '../server'))
DataSource = require('loopback-datasource-juggler').DataSource
Sqlite3 = require('loopback-connector-sqlite')
db = new DataSource(Sqlite3, file_name: 'db.sqlite3', debug: false)
model =
id: type: Number, required: true
active: type: Bool... |
[
{
"context": "s the JSUri library from here: https://github.com/derek-watson/jsUri\n # Thanks to Jake Moffat for the suggestio",
"end": 771,
"score": 0.9996837377548218,
"start": 759,
"tag": "USERNAME",
"value": "derek-watson"
},
{
"context": "ttps://github.com/derek-watson/jsUri\n ... | core/app/assets/javascripts/spree.js.coffee | javierJordan10/outlet | 1 | #= require jsuri
class window.Spree
@ready: (callback) ->
jQuery(document).ready(callback)
# fire ready callbacks also on turbolinks page change event
jQuery(document).on 'page:load', ->
callback(jQuery)
@mountedAt: ->
window.SpreePaths.mounted_at
@adminPath: ->
window.SpreePaths.admi... | 23517 | #= require jsuri
class window.Spree
@ready: (callback) ->
jQuery(document).ready(callback)
# fire ready callbacks also on turbolinks page change event
jQuery(document).on 'page:load', ->
callback(jQuery)
@mountedAt: ->
window.SpreePaths.mounted_at
@adminPath: ->
window.SpreePaths.admi... | true | #= require jsuri
class window.Spree
@ready: (callback) ->
jQuery(document).ready(callback)
# fire ready callbacks also on turbolinks page change event
jQuery(document).on 'page:load', ->
callback(jQuery)
@mountedAt: ->
window.SpreePaths.mounted_at
@adminPath: ->
window.SpreePaths.admi... |
[
{
"context": "@data, parent, @hidden) ->\n\t\t\t\tself = @\n\t\t\t\tname = @name\n\t\t\t\tdataArrayFlag = false\n\t\t\t\tif _.isType @da",
"end": 723,
"score": 0.7453282475471497,
"start": 723,
"tag": "NAME",
"value": ""
},
{
"context": "ata, parent, @hidden) ->\n\t\t\t\tself = @\n\t... | js/workflow/Data.coffee | imsun/visboard | 4 | (() ->
Workflow = (@owner) ->
owner = @owner
wf = @
@outPool = outPool = {}
@checkInput = () ->
if Primitives.list[owner].prop.parent?
parent = Primitives.list[owner].prop.parent.value
inPool = Data.workflow(parent).outPool
for key, value of inPool
if not DataModel.list[key]
new wf.Da... | 85718 | (() ->
Workflow = (@owner) ->
owner = @owner
wf = @
@outPool = outPool = {}
@checkInput = () ->
if Primitives.list[owner].prop.parent?
parent = Primitives.list[owner].prop.parent.value
inPool = Data.workflow(parent).outPool
for key, value of inPool
if not DataModel.list[key]
new wf.Da... | true | (() ->
Workflow = (@owner) ->
owner = @owner
wf = @
@outPool = outPool = {}
@checkInput = () ->
if Primitives.list[owner].prop.parent?
parent = Primitives.list[owner].prop.parent.value
inPool = Data.workflow(parent).outPool
for key, value of inPool
if not DataModel.list[key]
new wf.Da... |
[
{
"context": " 'abc', '10001', 'USD 5950', \"\", \"\", \"\", '', '', 'John' ],\n [ 'abc',\n '10001',\n ",
"end": 672,
"score": 0.9992302060127258,
"start": 668,
"tag": "NAME",
"value": "John"
},
{
"context": " 'abc', '10001', 'USD 5950', '', '', '', '', '', 'J... | src/spec/csv-mapping.spec.coffee | commercetools/sphere-order-export | 3 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Mapping = require '../lib/mapping-utils/csv'
testOrders = require '../data/orders'
template = 'id,orderNumber,totalPrice,customLineItems.id,customLineItems.slug,customLineItems.quantity,lineItems.id,lineItems.productId,billingAddress.firstName'
describe 'C... | 132093 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Mapping = require '../lib/mapping-utils/csv'
testOrders = require '../data/orders'
template = 'id,orderNumber,totalPrice,customLineItems.id,customLineItems.slug,customLineItems.quantity,lineItems.id,lineItems.productId,billingAddress.firstName'
describe 'C... | true | _ = require 'underscore'
_.mixin require('underscore-mixins')
Mapping = require '../lib/mapping-utils/csv'
testOrders = require '../data/orders'
template = 'id,orderNumber,totalPrice,customLineItems.id,customLineItems.slug,customLineItems.quantity,lineItems.id,lineItems.productId,billingAddress.firstName'
describe 'C... |
[
{
"context": "changePassword({email: profile.email, oldPassword: oldPass, newPassword: newPass})\n # * .then(func",
"end": 779,
"score": 0.9287199974060059,
"start": 772,
"tag": "PASSWORD",
"value": "oldPass"
},
{
"context": " profile.email, oldPassword: oldPass, newPasswor... | app/scripts/controllers/account.coffee | nerdfiles/utxo_us | 0 | "use strict"
###*
@ngdoc function
@name muck2App.controller:AccountCtrl
@description
# AccountCtrl
Provides rudimentary account management functions.
###
angular.module("utxoPmc").controller "AccountCtrl", ($scope, Auth, Ref, $firebaseObject, $timeout, person) ->
#var profile = $firebaseObject(Ref.child('users/' ... | 134686 | "use strict"
###*
@ngdoc function
@name muck2App.controller:AccountCtrl
@description
# AccountCtrl
Provides rudimentary account management functions.
###
angular.module("utxoPmc").controller "AccountCtrl", ($scope, Auth, Ref, $firebaseObject, $timeout, person) ->
#var profile = $firebaseObject(Ref.child('users/' ... | true | "use strict"
###*
@ngdoc function
@name muck2App.controller:AccountCtrl
@description
# AccountCtrl
Provides rudimentary account management functions.
###
angular.module("utxoPmc").controller "AccountCtrl", ($scope, Auth, Ref, $firebaseObject, $timeout, person) ->
#var profile = $firebaseObject(Ref.child('users/' ... |
[
{
"context": ")\n return 'over' if node.data.key == 'query-root'\n # prevent dropping a parent below it",
"end": 2109,
"score": 0.6121812462806702,
"start": 2109,
"tag": "KEY",
"value": ""
}
] | app/assets/javascripts/query_builder/query_tree_options.coffee | BI/enterprise-search-os | 0 | window.QueryTreeOptions = class QueryTreeOptions
@defaults:
debugLevel: 0
onQueryActivate: (node) -> false
onQuerySelect: (node) -> false
keyboard: false
clickFolderMode: 1
fx:
height: 'toggle'
duration: 300
onCustomRender: (node) ->
node.data.query = n... | 51337 | window.QueryTreeOptions = class QueryTreeOptions
@defaults:
debugLevel: 0
onQueryActivate: (node) -> false
onQuerySelect: (node) -> false
keyboard: false
clickFolderMode: 1
fx:
height: 'toggle'
duration: 300
onCustomRender: (node) ->
node.data.query = n... | true | window.QueryTreeOptions = class QueryTreeOptions
@defaults:
debugLevel: 0
onQueryActivate: (node) -> false
onQuerySelect: (node) -> false
keyboard: false
clickFolderMode: 1
fx:
height: 'toggle'
duration: 300
onCustomRender: (node) ->
node.data.query = n... |
[
{
"context": "t'\n $scope.user =\n username : \"admin@admin.com\"\n password : 12345\n\n $scope.ableToCo",
"end": 734,
"score": 0.9999017715454102,
"start": 719,
"tag": "EMAIL",
"value": "admin@admin.com"
},
{
"context": "username : \"admin@admin.com\... | client/web/src/features/login/scripts/login-controller.coffee | TimeoutZero/ProjectTrail | 0 | 'use strict'
# =============================================
# Module
# =============================================
angular.module 'ProjectTrailApp.controllers'
# =============================================
# LoginController
# =============================================
.controller 'LoginController', ['... | 163128 | 'use strict'
# =============================================
# Module
# =============================================
angular.module 'ProjectTrailApp.controllers'
# =============================================
# LoginController
# =============================================
.controller 'LoginController', ['... | true | 'use strict'
# =============================================
# Module
# =============================================
angular.module 'ProjectTrailApp.controllers'
# =============================================
# LoginController
# =============================================
.controller 'LoginController', ['... |
[
{
"context": "having all events happen more often.\n *\n * @name Jester\n * @physical\n * @hp 30+[level*10]+[con*9]\n * @",
"end": 199,
"score": 0.7034942507743835,
"start": 193,
"tag": "NAME",
"value": "Jester"
}
] | src/character/classes/Jester.coffee | sadbear-/IdleLands | 3 |
Class = require "./../base/Class"
`/**
* This class is a very lucky class. It uses its luck to affect everything. It also gets a bonus to having all events happen more often.
*
* @name Jester
* @physical
* @hp 30+[level*10]+[con*9]
* @mp 0
* @itemScore luck*5 + luckPercent*5 (Note, all other stats are i... | 101276 |
Class = require "./../base/Class"
`/**
* This class is a very lucky class. It uses its luck to affect everything. It also gets a bonus to having all events happen more often.
*
* @name <NAME>
* @physical
* @hp 30+[level*10]+[con*9]
* @mp 0
* @itemScore luck*5 + luckPercent*5 (Note, all other stats are i... | true |
Class = require "./../base/Class"
`/**
* This class is a very lucky class. It uses its luck to affect everything. It also gets a bonus to having all events happen more often.
*
* @name PI:NAME:<NAME>END_PI
* @physical
* @hp 30+[level*10]+[con*9]
* @mp 0
* @itemScore luck*5 + luckPercent*5 (Note, all oth... |
[
{
"context": "itude\n g.name = g.name\n .replace(\"Bezirk\", \"\")\n .replace(\",\", \" \")\n .rep",
"end": 1188,
"score": 0.9926771521568298,
"start": 1182,
"tag": "NAME",
"value": "Bezirk"
},
{
"context": " else cb p\n else cb p\n\n ... | geonames.coffee | orangeman/geodata | 0 | exec = require('child_process').exec
csv = require('csv-streamify')
request = require('request')
through = require('through2')
es = require('event-stream')
level = require('level')
fs = require('fs')
alt = level "./data/alt"
tmp = level "./data/tmp", valueEncoding: 'json'
#tmp.createReadStream gte: "ADM", lt: "ADM~"
... | 90258 | exec = require('child_process').exec
csv = require('csv-streamify')
request = require('request')
through = require('through2')
es = require('event-stream')
level = require('level')
fs = require('fs')
alt = level "./data/alt"
tmp = level "./data/tmp", valueEncoding: 'json'
#tmp.createReadStream gte: "ADM", lt: "ADM~"
... | true | exec = require('child_process').exec
csv = require('csv-streamify')
request = require('request')
through = require('through2')
es = require('event-stream')
level = require('level')
fs = require('fs')
alt = level "./data/alt"
tmp = level "./data/tmp", valueEncoding: 'json'
#tmp.createReadStream gte: "ADM", lt: "ADM~"
... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9992459416389465,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "closeSync fd\n return\n), 10\n\n# https://github.com/joyent/node/issues/2293 - non-persistent... | test/simple/test-fs-watch.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 61504 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": "a template for new repos. E.g. https://github.com/cfpb/open-source-project-template.git\n# HUBOT_GITHUB",
"end": 507,
"score": 0.9595479965209961,
"start": 503,
"tag": "USERNAME",
"value": "cfpb"
},
{
"context": "ganization\n#\n# Notes:\n# Based on hubot-github by O... | src/github-management.coffee | catops/hubot-github-management | 8 | # Description:
# Allow Hubot to manage your github organization members and teams.
#
# Configuration:
# HUBOT_GITHUB_ORG_TOKEN - (required) Github access token. See https://help.github.com/articles/creating-an-access-token-for-command-line-use/.
# HUBOT_GITHUB_ORG_NAME - (required) Github organization name. The <... | 202355 | # Description:
# Allow Hubot to manage your github organization members and teams.
#
# Configuration:
# HUBOT_GITHUB_ORG_TOKEN - (required) Github access token. See https://help.github.com/articles/creating-an-access-token-for-command-line-use/.
# HUBOT_GITHUB_ORG_NAME - (required) Github organization name. The <... | true | # Description:
# Allow Hubot to manage your github organization members and teams.
#
# Configuration:
# HUBOT_GITHUB_ORG_TOKEN - (required) Github access token. See https://help.github.com/articles/creating-an-access-token-for-command-line-use/.
# HUBOT_GITHUB_ORG_NAME - (required) Github organization name. The <... |
[
{
"context": "# Copyright (C) 2016-present Arctic Ice Studio <development@arcticicestudio.com>\n# Copyright (C)",
"end": 46,
"score": 0.6498240232467651,
"start": 31,
"tag": "NAME",
"value": "ctic Ice Studio"
},
{
"context": "# Copyright (C) 2016-present Arctic Ice Studio <developmen... | spec/full-width-tab-sizing-spec.coffee | germanescobar/nord-atom-ui | 125 | # Copyright (C) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (C) 2016-present Sven Greb <development@svengreb.de>
# Project: Nord Atom UI
# Repository: https://github.com/arcticicestudio/nord-atom-ui
# License: MIT
describe "Nord Atom UI theme", ->
beforeEach ->
waitsForPro... | 154852 | # Copyright (C) 2016-present Ar<NAME> <<EMAIL>>
# Copyright (C) 2016-present <NAME> <<EMAIL>>
# Project: Nord Atom UI
# Repository: https://github.com/arcticicestudio/nord-atom-ui
# License: MIT
describe "Nord Atom UI theme", ->
beforeEach ->
waitsForPromise ->
atom.packages.activatePackage('nord-at... | true | # Copyright (C) 2016-present ArPI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2016-present PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Project: Nord Atom UI
# Repository: https://github.com/arcticicestudio/nord-atom-ui
# License: MIT
describe "Nord Atom UI theme", ->
beforeEach ->
waits... |
[
{
"context": " 还要存入内容\n bookInfo =\n name : name,\n path : path,\n map ",
"end": 788,
"score": 0.72158282995224,
"start": 784,
"tag": "NAME",
"value": "name"
}
] | tools/updata.coffee | ruicky/node-wiki | 99 | treeModel = require '../models/tree'
bookModel = require '../models/book'
fs = require 'fs'
_ = require 'underscore'
path = require 'path'
updata =
menu : (port) ->
#console.log(port);
saveBook = (name,path) ->
bookModel.findByUrl path, (err,book) ->
if err
console.log err
if ... | 106506 | treeModel = require '../models/tree'
bookModel = require '../models/book'
fs = require 'fs'
_ = require 'underscore'
path = require 'path'
updata =
menu : (port) ->
#console.log(port);
saveBook = (name,path) ->
bookModel.findByUrl path, (err,book) ->
if err
console.log err
if ... | true | treeModel = require '../models/tree'
bookModel = require '../models/book'
fs = require 'fs'
_ = require 'underscore'
path = require 'path'
updata =
menu : (port) ->
#console.log(port);
saveBook = (name,path) ->
bookModel.findByUrl path, (err,book) ->
if err
console.log err
if ... |
[
{
"context": "s User\n\naccounts = [\n {\n email: 'admin@admin.com'\n firstName: 'Sir Super'\n username",
"end": 114,
"score": 0.9999223947525024,
"start": 99,
"tag": "EMAIL",
"value": "admin@admin.com"
},
{
"context": " 'admin@admin.com'\n fi... | server/db/seeds/development/000005-account.coffee | Contactis/translation-manager | 0 | moment = require 'moment'
# Info: Account extends User
accounts = [
{
email: 'admin@admin.com'
firstName: 'Sir Super'
username: 'Sir Admin'
lastName: 'Admin'
password: 'admin'
role: 'admin'
interfaceLanguage: 'en-us'
... | 101199 | moment = require 'moment'
# Info: Account extends User
accounts = [
{
email: '<EMAIL>'
firstName: '<NAME>'
username: 'Sir Admin'
lastName: 'Admin'
password: '<PASSWORD>'
role: 'admin'
interfaceLanguage: 'en-us'
emailV... | true | moment = require 'moment'
# Info: Account extends User
accounts = [
{
email: 'PI:EMAIL:<EMAIL>END_PI'
firstName: 'PI:NAME:<NAME>END_PI'
username: 'Sir Admin'
lastName: 'Admin'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
role: 'ad... |
[
{
"context": "ient\n settings handler in client\n\n copyright mark hahn 2013\n MIT license\n https://github.com/mark-",
"end": 93,
"score": 0.9998284578323364,
"start": 84,
"tag": "NAME",
"value": "mark hahn"
},
{
"context": " hahn 2013\n MIT license\n https://githu... | src/client/settings-client.coffee | mark-hahn/bace | 1 | ###
file: src/client/settings-client
settings handler in client
copyright mark hahn 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
settings = (bace.settings ?= {})
helpers = (bace.helpers ?= {})
popup = (bace.popup ?= {})
edit = (bace.edit ?= {})
{rende... | 16764 | ###
file: src/client/settings-client
settings handler in client
copyright <NAME> 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
settings = (bace.settings ?= {})
helpers = (bace.helpers ?= {})
popup = (bace.popup ?= {})
edit = (bace.edit ?= {})
{render,d... | true | ###
file: src/client/settings-client
settings handler in client
copyright PI:NAME:<NAME>END_PI 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
settings = (bace.settings ?= {})
helpers = (bace.helpers ?= {})
popup = (bace.popup ?= {})
edit = (bace.edit ?= ... |
[
{
"context": "sition in transitions\n key = transition.from.join(' ')\n hops = (@transitions[key] ?= {})\n ",
"end": 614,
"score": 0.7901707887649536,
"start": 610,
"tag": "KEY",
"value": "join"
},
{
"context": " the object.\n get: (prior, callback) ->\n key = prior... | src/storage/memory.coffee | migstopheles/hubot-markov | 57 | # Markov storage implementation that uses entirely in-memory storage.
class MemoryStorage
# Create a storage module.
constructor: (connStr, modelName) ->
@transitions = {}
# No initialization necessary.
initialize: (callback) ->
process.nextTick callback
# Record a series of transitions within the ... | 98270 | # Markov storage implementation that uses entirely in-memory storage.
class MemoryStorage
# Create a storage module.
constructor: (connStr, modelName) ->
@transitions = {}
# No initialization necessary.
initialize: (callback) ->
process.nextTick callback
# Record a series of transitions within the ... | true | # Markov storage implementation that uses entirely in-memory storage.
class MemoryStorage
# Create a storage module.
constructor: (connStr, modelName) ->
@transitions = {}
# No initialization necessary.
initialize: (callback) ->
process.nextTick callback
# Record a series of transitions within the ... |
[
{
"context": "hange jwtSecret key \n\ntoken_config =\n\t\n\tjwtSecret: \"$WBOeEhzbaYhdbFKMg0hd@R_\"\n\texpires: \"120m\"\n\nmodule.exports = token_config",
"end": 90,
"score": 0.9956672191619873,
"start": 64,
"tag": "KEY",
"value": "\"$WBOeEhzbaYhdbFKMg0hd@R_\""
}
] | config/auth_config.coffee | GermanMtzmx/Mokarest | 0 | #you should change jwtSecret key
token_config =
jwtSecret: "$WBOeEhzbaYhdbFKMg0hd@R_"
expires: "120m"
module.exports = token_config | 151023 | #you should change jwtSecret key
token_config =
jwtSecret: <KEY>
expires: "120m"
module.exports = token_config | true | #you should change jwtSecret key
token_config =
jwtSecret: PI:KEY:<KEY>END_PI
expires: "120m"
module.exports = token_config |
[
{
"context": "ext Completions converted from https://github.com/Southclaw/pawn-sublime-language\n# Converter created by Rena",
"end": 103,
"score": 0.9995208382606506,
"start": 94,
"tag": "USERNAME",
"value": "Southclaw"
},
{
"context": "hclaw/pawn-sublime-language\n# Converter creat... | snippets/socket.cson | Wuzi/language-pawn | 4 | # Socket Plugin Atom Snippets from Sublime Text Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by Renato "Hii" Garcia.
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':
'socket_create':
'prefix': 'socket_cre... | 52199 | # Socket Plugin Atom Snippets from Sublime Text Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by <NAME> "<NAME>" <NAME>.
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':
'socket_create':
'prefix': 'socket_... | true | # Socket Plugin Atom Snippets from Sublime Text Completions converted from https://github.com/Southclaw/pawn-sublime-language
# Converter created by PI:NAME:<NAME>END_PI "PI:NAME:<NAME>END_PI" PI:NAME:<NAME>END_PI.
# Repo: https://github.com/Renato-Garcia/sublime-completions-to-atom-snippets
'.source.pwn, .source.inc':... |
[
{
"context": "ertFile = \"localhost-cine-io.crt\"\n sslKeyFile = \"localhost-cine-io.key\"\n sslIntermediateCertFiles = [ \"COMODORSADom",
"end": 200,
"score": 0.9237928986549377,
"start": 183,
"tag": "KEY",
"value": "localhost-cine-io"
}
] | create_cine_https_server.coffee | ccns1/ccns71 | 52 | https = require("https")
fs = require("fs")
module.exports = (app)->
sslCertsPath = process.env.SSL_CERTS_PATH or __dirname
sslCertFile = "localhost-cine-io.crt"
sslKeyFile = "localhost-cine-io.key"
sslIntermediateCertFiles = [ "COMODORSADomainValidationSecureServerCA.crt", "COMODORSAAddTrustCA.crt", "AddTrust... | 120970 | https = require("https")
fs = require("fs")
module.exports = (app)->
sslCertsPath = process.env.SSL_CERTS_PATH or __dirname
sslCertFile = "localhost-cine-io.crt"
sslKeyFile = "<KEY>.key"
sslIntermediateCertFiles = [ "COMODORSADomainValidationSecureServerCA.crt", "COMODORSAAddTrustCA.crt", "AddTrustExternalCARo... | true | https = require("https")
fs = require("fs")
module.exports = (app)->
sslCertsPath = process.env.SSL_CERTS_PATH or __dirname
sslCertFile = "localhost-cine-io.crt"
sslKeyFile = "PI:KEY:<KEY>END_PI.key"
sslIntermediateCertFiles = [ "COMODORSADomainValidationSecureServerCA.crt", "COMODORSAAddTrustCA.crt", "AddTrus... |
[
{
"context": "# author Alex Bardas\n# Converts a valid XML ontology generated in *Pro",
"end": 20,
"score": 0.9998527765274048,
"start": 9,
"tag": "NAME",
"value": "Alex Bardas"
}
] | tools/naflex/NUCMD/htmlib/help/onto/js/ontology.coffee | Multiscale-Genomics/VRE | 5 | # author Alex Bardas
# Converts a valid XML ontology generated in *Protege* into a JSON
# First it creates the ontology's tree defined by root and children nodes
# Then, it creates a proper json from this tree
define ['cs!log', 'cs!tree'], (log, Tree) ->
# set debug to true or false
log.debug(false)
print ... | 109594 | # author <NAME>
# Converts a valid XML ontology generated in *Protege* into a JSON
# First it creates the ontology's tree defined by root and children nodes
# Then, it creates a proper json from this tree
define ['cs!log', 'cs!tree'], (log, Tree) ->
# set debug to true or false
log.debug(false)
print = log... | true | # author PI:NAME:<NAME>END_PI
# Converts a valid XML ontology generated in *Protege* into a JSON
# First it creates the ontology's tree defined by root and children nodes
# Then, it creates a proper json from this tree
define ['cs!log', 'cs!tree'], (log, Tree) ->
# set debug to true or false
log.debug(false)
... |
[
{
"context": ").Strategy\n\nUSERS =\n 1:\n id: 1\n username: 'admin'\n password: bcrypt.hashSync('secure', 10)\n 2:",
"end": 201,
"score": 0.9946960210800171,
"start": 196,
"tag": "USERNAME",
"value": "admin"
},
{
"context": " username: 'admin'\n password: bcrypt.hashSy... | example/server.coffee | mattinsler/trojan | 8 | path = require 'path'
bcrypt = require 'bcrypt'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
USERS =
1:
id: 1
username: 'admin'
password: bcrypt.hashSync('secure', 10)
2:
id: 2
username: 'foo'
password: bcrypt.hashSync('barbaz'... | 179629 | path = require 'path'
bcrypt = require 'bcrypt'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
USERS =
1:
id: 1
username: 'admin'
password: bcrypt.hashSync('<PASSWORD>', 10)
2:
id: 2
username: 'foo'
password: bcrypt.hashSync('<PA... | true | path = require 'path'
bcrypt = require 'bcrypt'
express = require 'express'
passport = require 'passport'
LocalStrategy = require('passport-local').Strategy
USERS =
1:
id: 1
username: 'admin'
password: bcrypt.hashSync('PI:PASSWORD:<PASSWORD>END_PI', 10)
2:
id: 2
username: 'foo'
password: bc... |
[
{
"context": "o.surname}' <#{@options.to.email}>\"\n from: \"'Kindzy.com' <no-reply@kindzy.com>\"\n subject: @options.s",
"end": 513,
"score": 0.9207475781440735,
"start": 503,
"tag": "EMAIL",
"value": "Kindzy.com"
},
{
"context": "#{@options.to.email}>\"\n from: \"'Ki... | lib/emailer.coffee | doomhz/daycare_social_platform | 3 | emailer = require("nodemailer")
fs = require("fs")
_ = require("underscore")
class Emailer
options: {}
data: {}
attachments: [
fileName: "logo.png"
filePath: "./public/images/email/logo.png"
cid: "logo@kindzy"
]
constructor: (@options, @data)->
send: (callback)->
html = @get... | 211140 | emailer = require("nodemailer")
fs = require("fs")
_ = require("underscore")
class Emailer
options: {}
data: {}
attachments: [
fileName: "logo.png"
filePath: "./public/images/email/logo.png"
cid: "logo@kindzy"
]
constructor: (@options, @data)->
send: (callback)->
html = @get... | true | emailer = require("nodemailer")
fs = require("fs")
_ = require("underscore")
class Emailer
options: {}
data: {}
attachments: [
fileName: "logo.png"
filePath: "./public/images/email/logo.png"
cid: "logo@kindzy"
]
constructor: (@options, @data)->
send: (callback)->
html = @get... |
[
{
"context": " and, optionally, one or more users.\n#\n# Thanks, Brian Eno.\n#\n# Author:\n# hakanensari\n\nmodule.exports = (r",
"end": 391,
"score": 0.9998964071273804,
"start": 382,
"tag": "NAME",
"value": "Brian Eno"
},
{
"context": "re users.\n#\n# Thanks, Brian Eno.\n#\n#... | src/scripts/oblique.coffee | contolini/hubot-scripts | 9 | # Description:
# Suggests an oblique strategy
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot strategy - Suggests a strategy
# hubot a strategy for <user> - Suggests a strategy to user
#
# Notes:
# You can be as verbose as you want as long as you address Hubot and mention
# the wo... | 81370 | # Description:
# Suggests an oblique strategy
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot strategy - Suggests a strategy
# hubot a strategy for <user> - Suggests a strategy to user
#
# Notes:
# You can be as verbose as you want as long as you address Hubot and mention
# the wo... | true | # Description:
# Suggests an oblique strategy
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot strategy - Suggests a strategy
# hubot a strategy for <user> - Suggests a strategy to user
#
# Notes:
# You can be as verbose as you want as long as you address Hubot and mention
# the wo... |
[
{
"context": " false\n\n return true\n\n\n\n\nword = \"hello\"\nword2 = \"racecar\"\nconsole.log \"#{word}\", isPalindrome(word)\ncon",
"end": 239,
"score": 0.8045269846916199,
"start": 235,
"tag": "KEY",
"value": "race"
},
{
"context": "se\n\n return true\n\n\n\n\nword = \"hello\"... | stack/test/isPalindrome.coffee | youqingkui/DataStructure | 0 | Stack = require('../stack')
isPalindrome = (word) ->
s = new Stack()
for i in word
s.push i
rword = ''
while s.length()
rword += s.pop()
if word != rword
return false
return true
word = "hello"
word2 = "racecar"
console.log "#{word}", isPalindrome(word)
console.log "#{word2}", isPalindro... | 211871 | Stack = require('../stack')
isPalindrome = (word) ->
s = new Stack()
for i in word
s.push i
rword = ''
while s.length()
rword += s.pop()
if word != rword
return false
return true
word = "hello"
word2 = "<KEY> <PASSWORD>"
console.log "#{word}", isPalindrome(word)
console.log "#{word2}", i... | true | Stack = require('../stack')
isPalindrome = (word) ->
s = new Stack()
for i in word
s.push i
rword = ''
while s.length()
rword += s.pop()
if word != rword
return false
return true
word = "hello"
word2 = "PI:KEY:<KEY>END_PI PI:PASSWORD:<PASSWORD>END_PI"
console.log "#{word}", isPalindrome(... |
[
{
"context": "Client:=> \n\t\t\t\treturn @rclient\n\t\t@emailAddress = \"bob@smith\"\n\t\t@sessionId = \"sess:123456\"\n\t\t@stubbedKey",
"end": 672,
"score": 0.9244333505630493,
"start": 669,
"tag": "EMAIL",
"value": "bob"
},
{
"context": "ent:=> \n\t\t\t\treturn @rclient\n\t\t@emai... | test/UnitTests/coffee/Security/SessionInvalidatorTests.coffee | mickaobrien/web-sharelatex | 1 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/Security/SessionInvalidator"
expect = require("chai").expect
describe "SessionInvaildator", ->
befo... | 144495 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/Security/SessionInvalidator"
expect = require("chai").expect
describe "SessionInvaildator", ->
befo... | true | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/Security/SessionInvalidator"
expect = require("chai").expect
describe "SessionInvaildator", ->
befo... |
[
{
"context": " return yes if key is '$$hashKey' and x is hashKey\n ",
"end": 6689,
"score": 0.9408197402954102,
"start": 6680,
"tag": "KEY",
"value": "$$hashKey"
}
] | src/directive.coffee | efacilitation/angular-validator | 0 | $ = angular.element
angular.module 'validator.directive', ['validator.provider']
.directive 'validator', ['$injector', ($injector) ->
restrict: 'A'
require: 'ngModel'
link: (scope, element, attrs, ctrl) ->
# ----------------------------------------
# providers
# --------------------... | 98103 | $ = angular.element
angular.module 'validator.directive', ['validator.provider']
.directive 'validator', ['$injector', ($injector) ->
restrict: 'A'
require: 'ngModel'
link: (scope, element, attrs, ctrl) ->
# ----------------------------------------
# providers
# --------------------... | true | $ = angular.element
angular.module 'validator.directive', ['validator.provider']
.directive 'validator', ['$injector', ($injector) ->
restrict: 'A'
require: 'ngModel'
link: (scope, element, attrs, ctrl) ->
# ----------------------------------------
# providers
# --------------------... |
[
{
"context": "alue' for i in [0..9]\n models[3].key = 'specialValue'\n\n collection = new Luca.Collection models\n\n ",
"end": 2722,
"score": 0.6264151930809021,
"start": 2717,
"tag": "KEY",
"value": "Value"
},
{
"context": "collection = new Luca.Collection [],\n name: \"... | spec/javascripts/core/collection_spec.coffee | datapimp/luca | 4 | #### Luca.Collection
setupCollection = ()->
window.cachedMethodOne = 0
window.cachedMethodTwo = 0
window.CachedMethodCollection = Luca.Collection.extend
cachedMethods:["cachedMethodOne","cachedMethodTwo"]
cachedMethodOne: ()->
window.cachedMethodOne += 1
cachedMethodTwo: ()->
window.ca... | 52886 | #### Luca.Collection
setupCollection = ()->
window.cachedMethodOne = 0
window.cachedMethodTwo = 0
window.CachedMethodCollection = Luca.Collection.extend
cachedMethods:["cachedMethodOne","cachedMethodTwo"]
cachedMethodOne: ()->
window.cachedMethodOne += 1
cachedMethodTwo: ()->
window.ca... | true | #### Luca.Collection
setupCollection = ()->
window.cachedMethodOne = 0
window.cachedMethodTwo = 0
window.CachedMethodCollection = Luca.Collection.extend
cachedMethods:["cachedMethodOne","cachedMethodTwo"]
cachedMethodOne: ()->
window.cachedMethodOne += 1
cachedMethodTwo: ()->
window.ca... |
[
{
"context": "-> {\n id: this.id\n name: this.alias || 'John Doe'\n mode: this.mode || { video: '2d', audio: t",
"end": 1336,
"score": 0.9997653961181641,
"start": 1328,
"tag": "NAME",
"value": "John Doe"
}
] | lib/chat.coffee | lugati-eu/altexo-signal-server | 1 | request = require 'request'
JsonRpc = require './utils/json-rpc.coffee'
ListenerMixin = require './utils/listener.coffee'
Registry = require './registry.coffee'
module.exports = (config, logger, KurentoRoom, P2pRoom) ->
class ChatRpc extends JsonRpc
Object.assign( @::, ListenerMixin )
registry = new Regis... | 158569 | request = require 'request'
JsonRpc = require './utils/json-rpc.coffee'
ListenerMixin = require './utils/listener.coffee'
Registry = require './registry.coffee'
module.exports = (config, logger, KurentoRoom, P2pRoom) ->
class ChatRpc extends JsonRpc
Object.assign( @::, ListenerMixin )
registry = new Regis... | true | request = require 'request'
JsonRpc = require './utils/json-rpc.coffee'
ListenerMixin = require './utils/listener.coffee'
Registry = require './registry.coffee'
module.exports = (config, logger, KurentoRoom, P2pRoom) ->
class ChatRpc extends JsonRpc
Object.assign( @::, ListenerMixin )
registry = new Regis... |
[
{
"context": "t-11.coffee\n# Commandment11 widget for Übersicht\n# Chris Scharff (http://tenlions.com)\n# Adapted from Wojciech Rut",
"end": 76,
"score": 0.9998754262924194,
"start": 63,
"tag": "NAME",
"value": "Chris Scharff"
},
{
"context": "Chris Scharff (http://tenlions.com)\n# A... | commandment-11.coffee | cscharff/commandment-11 | 0 | # commandment-11.coffee
# Commandment11 widget for Übersicht
# Chris Scharff (http://tenlions.com)
# Adapted from Wojciech Rutkowski (http://wojciech-rutkowski.com/) and
# Raphael Hanneken (behoernchen.github.io) code used from Time Words widget
# both of whom did *all* the heavy lifting.
#
# Idea shamelessly borrowe... | 84847 | # commandment-11.coffee
# Commandment11 widget for Übersicht
# <NAME> (http://tenlions.com)
# Adapted from <NAME> (http://wojciech-rutkowski.com/) and
# <NAME> (behoernchen.github.io) code used from Time Words widget
# both of whom did *all* the heavy lifting.
#
# Idea shamelessly borrowed from the folks at http://ww... | true | # commandment-11.coffee
# Commandment11 widget for Übersicht
# PI:NAME:<NAME>END_PI (http://tenlions.com)
# Adapted from PI:NAME:<NAME>END_PI (http://wojciech-rutkowski.com/) and
# PI:NAME:<NAME>END_PI (behoernchen.github.io) code used from Time Words widget
# both of whom did *all* the heavy lifting.
#
# Idea shamel... |
[
{
"context": "f they've played a card this round\n#\n# Author:\n# MattRick and KevinBehrens\n\nUtil = require \"util\"\n\nblack_ca",
"end": 1057,
"score": 0.9997667074203491,
"start": 1049,
"tag": "NAME",
"value": "MattRick"
},
{
"context": "yed a card this round\n#\n# Author:\n# ... | src/devops-against-humanity.coffee | dev-null-matt/devops-against-humanity | 3 | # Description:
# The robot can run a game of devops against humanity using cards from
# http://devopsagainsthumanity.com
#
# An editorial pass was made at the crowd-sourced cards. YMMV.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_TOKEN
#
# Commands:
# hubot devops card me - Returns a random ... | 69999 | # Description:
# The robot can run a game of devops against humanity using cards from
# http://devopsagainsthumanity.com
#
# An editorial pass was made at the crowd-sourced cards. YMMV.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_TOKEN
#
# Commands:
# hubot devops card me - Returns a random ... | true | # Description:
# The robot can run a game of devops against humanity using cards from
# http://devopsagainsthumanity.com
#
# An editorial pass was made at the crowd-sourced cards. YMMV.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_TOKEN
#
# Commands:
# hubot devops card me - Returns a random ... |
[
{
"context": "cribe 'client and call apis', ->\n\n _userId = '53be41be138556909068769f'\n token = '5e7f8ead-47fa-4256-9",
"end": 588,
"score": 0.42220282554626465,
"start": 580,
"tag": "PASSWORD",
"value": "3be41be1"
},
{
"context": "_userId = '53be41be138556909068769f'\n to... | test/main.coffee | jianliaoim/talk-node-sdk | 4 | http = require 'http'
should = require 'should'
express = require 'express'
supertest = require 'supertest'
Promise = require 'bluebird'
talk = require '../src/talk'
logger = require('graceful-logger').mute()
app = require './app'
describe 'Talk#Main', ->
talk.init(app.config)
describe 'retry connecting', ->... | 144160 | http = require 'http'
should = require 'should'
express = require 'express'
supertest = require 'supertest'
Promise = require 'bluebird'
talk = require '../src/talk'
logger = require('graceful-logger').mute()
app = require './app'
describe 'Talk#Main', ->
talk.init(app.config)
describe 'retry connecting', ->... | true | http = require 'http'
should = require 'should'
express = require 'express'
supertest = require 'supertest'
Promise = require 'bluebird'
talk = require '../src/talk'
logger = require('graceful-logger').mute()
app = require './app'
describe 'Talk#Main', ->
talk.init(app.config)
describe 'retry connecting', ->... |
[
{
"context": " context = Serenade(items: [{ valid: true, name: 'foo' }, { name: 'bar' }])\n @render '''\n ul\n ",
"end": 2588,
"score": 0.9265750646591187,
"start": 2585,
"tag": "NAME",
"value": "foo"
},
{
"context": "de(items: [{ valid: true, name: 'foo' }, { name: 'bar' }]... | test/integration/if.spec.coffee | jnicklas/serenade.js | 1 | require './../spec_helper'
Serenade = require('../../lib/serenade')
describe 'If', ->
beforeEach ->
@setupDom()
it 'shows the content if the context value is truthy', ->
context = { valid: true, visible: "true" }
@render '''
ul
- if $valid
li[id="valid"]
- if $visible
... | 147865 | require './../spec_helper'
Serenade = require('../../lib/serenade')
describe 'If', ->
beforeEach ->
@setupDom()
it 'shows the content if the context value is truthy', ->
context = { valid: true, visible: "true" }
@render '''
ul
- if $valid
li[id="valid"]
- if $visible
... | true | require './../spec_helper'
Serenade = require('../../lib/serenade')
describe 'If', ->
beforeEach ->
@setupDom()
it 'shows the content if the context value is truthy', ->
context = { valid: true, visible: "true" }
@render '''
ul
- if $valid
li[id="valid"]
- if $visible
... |
[
{
"context": "sName=\"font-weight-bold\" href=\"https://github.com/edemaine/cocreate\">Cocreate</a> for a shared whiteboard.</",
"end": 544,
"score": 0.9947441220283508,
"start": 536,
"tag": "USERNAME",
"value": "edemaine"
},
{
"context": "/#{zoomID}\" +\n if zoomPwd then \"?p... | client/TabNew.coffee | diomidov/comingle | 0 | import React, {useState, useEffect, useRef} from 'react'
import {Form} from 'react-bootstrap'
import {validURL, tabTypes, categories, mangleTab, zoomRegExp} from '/lib/tabs'
import {useDebounce} from './lib/useDebounce'
import {getCreator} from './lib/presenceId'
import {capitalize} from './lib/capitalize'
export tab... | 201646 | import React, {useState, useEffect, useRef} from 'react'
import {Form} from 'react-bootstrap'
import {validURL, tabTypes, categories, mangleTab, zoomRegExp} from '/lib/tabs'
import {useDebounce} from './lib/useDebounce'
import {getCreator} from './lib/presenceId'
import {capitalize} from './lib/capitalize'
export tab... | true | import React, {useState, useEffect, useRef} from 'react'
import {Form} from 'react-bootstrap'
import {validURL, tabTypes, categories, mangleTab, zoomRegExp} from '/lib/tabs'
import {useDebounce} from './lib/useDebounce'
import {getCreator} from './lib/presenceId'
import {capitalize} from './lib/capitalize'
export tab... |
[
{
"context": "#options.username or= null\n #options.password or= null\n options.authdb or= 'admin'\n return options\n\ncl",
"end": 553,
"score": 0.9404250383377075,
"start": 549,
"tag": "PASSWORD",
"value": "null"
}
] | lib/main.coffee | classdojo/mongo-watch | 0 | {EventEmitter} = require 'events'
formats = require './formats'
getOplogStream = require './getOplogStream'
{walk, convertObjectID} = require './util'
applyDefaults = (options) ->
options or= {}
options.port or= 27017
options.host or= 'localhost'
options.dbOpts or= {w: 1}
options.format or= 'raw'
options.u... | 121094 | {EventEmitter} = require 'events'
formats = require './formats'
getOplogStream = require './getOplogStream'
{walk, convertObjectID} = require './util'
applyDefaults = (options) ->
options or= {}
options.port or= 27017
options.host or= 'localhost'
options.dbOpts or= {w: 1}
options.format or= 'raw'
options.u... | true | {EventEmitter} = require 'events'
formats = require './formats'
getOplogStream = require './getOplogStream'
{walk, convertObjectID} = require './util'
applyDefaults = (options) ->
options or= {}
options.port or= 27017
options.host or= 'localhost'
options.dbOpts or= {w: 1}
options.format or= 'raw'
options.u... |
[
{
"context": "e' : (test) ->\n message = \"<presence from='thing@clayster.com/imc'\n to='discovery.clayster.com'\n ",
"end": 824,
"score": 0.9985742568969727,
"start": 806,
"tag": "EMAIL",
"value": "thing@clayster.com"
},
{
"context": "resence'\n test.... | test/presence-handler.test.coffee | TNO-IoT/ekster | 3 | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
PresenceHandler = require '../src/presence-handler.coffee'
Backend = require '../src/backend.coffee'
Processor = require '.... | 66339 | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
PresenceHandler = require '../src/presence-handler.coffee'
Backend = require '../src/backend.coffee'
Processor = require '.... | true | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
PresenceHandler = require '../src/presence-handler.coffee'
Backend = require '../src/backend.coffee'
Processor = require '.... |
[
{
"context": "xedDB = require \"fake-indexeddb\"\n\n###\nimport_key \"1.2.15\" \"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zk",
"end": 1327,
"score": 0.9926398396492004,
"start": 1321,
"tag": "KEY",
"value": "1.2.15"
},
{
"context": "equire \"fake-indexeddb\"\n\n###\nimport_key \"... | dl/test/tr_tests.coffee | ttcoinofficial/ttshares-ui | 0 | PrivateKey = require '../src/ecc/key_private'
PublicKey = require '../src/ecc/key_public'
Signature = require '../src/ecc/signature'
Aes = require 'ecc/aes'
WebSocketRpc = require '../src/rpc_api/WebSocketRpc'
GrapheneApi = require '../src/rpc_api/GrapheneApi'
Promise = require '../src/common/Promise'
ByteBuffer = req... | 135644 | PrivateKey = require '../src/ecc/key_private'
PublicKey = require '../src/ecc/key_public'
Signature = require '../src/ecc/signature'
Aes = require 'ecc/aes'
WebSocketRpc = require '../src/rpc_api/WebSocketRpc'
GrapheneApi = require '../src/rpc_api/GrapheneApi'
Promise = require '../src/common/Promise'
ByteBuffer = req... | true | PrivateKey = require '../src/ecc/key_private'
PublicKey = require '../src/ecc/key_public'
Signature = require '../src/ecc/signature'
Aes = require 'ecc/aes'
WebSocketRpc = require '../src/rpc_api/WebSocketRpc'
GrapheneApi = require '../src/rpc_api/GrapheneApi'
Promise = require '../src/common/Promise'
ByteBuffer = req... |
[
{
"context": "ng\" and has a referrer-restriction set\napi_key = \"AIzaSyDNunorfrD4Wp21oL0F96Ov_L8mb9rdw_s\"\n\nyoutube_api_endpoint = 'https://www.googleapis.",
"end": 150,
"score": 0.9997512102127075,
"start": 111,
"tag": "KEY",
"value": "AIzaSyDNunorfrD4Wp21oL0F96Ov_L8mb9rdw_s"
},
{
... | web/js/make.coffee | andychase/radmontage | 2 | # The api key below is a public key
# It set to be "user-facing" and has a referrer-restriction set
api_key = "AIzaSyDNunorfrD4Wp21oL0F96Ov_L8mb9rdw_s"
youtube_api_endpoint = 'https://www.googleapis.com/youtube/v3/videos'
youtube_video_link = "https://www.youtube.com/watch?v="
youtube_channel_link = "https://www.youtu... | 102179 | # The api key below is a public key
# It set to be "user-facing" and has a referrer-restriction set
api_key = "<KEY>"
youtube_api_endpoint = 'https://www.googleapis.com/youtube/v3/videos'
youtube_video_link = "https://www.youtube.com/watch?v="
youtube_channel_link = "https://www.youtube.com/channel/"
my_host_url = ""... | true | # The api key below is a public key
# It set to be "user-facing" and has a referrer-restriction set
api_key = "PI:KEY:<KEY>END_PI"
youtube_api_endpoint = 'https://www.googleapis.com/youtube/v3/videos'
youtube_video_link = "https://www.youtube.com/watch?v="
youtube_channel_link = "https://www.youtube.com/channel/"
my_... |
[
{
"context": " [\n key: 'series1'\n label: 'Hello'\n values: []\n ,\n key",
"end": 278,
"score": 0.949926495552063,
"start": 273,
"tag": "NAME",
"value": "Hello"
},
{
"context": " ,\n key: 'series2'\n label: 'Wo... | test/data.coffee | robinfhu/forest-d3 | 58 | describe 'Data API', ->
it 'should have ability to get raw data', ->
api = ForestD3.DataAPI [1,2,3]
api.get().should.deep.equal [1,2,3]
it 'has methods to show/hide data series`', ->
data = [
key: 'series1'
label: 'Hello'
values: []
,
... | 89715 | describe 'Data API', ->
it 'should have ability to get raw data', ->
api = ForestD3.DataAPI [1,2,3]
api.get().should.deep.equal [1,2,3]
it 'has methods to show/hide data series`', ->
data = [
key: 'series1'
label: '<NAME>'
values: []
,
... | true | describe 'Data API', ->
it 'should have ability to get raw data', ->
api = ForestD3.DataAPI [1,2,3]
api.get().should.deep.equal [1,2,3]
it 'has methods to show/hide data series`', ->
data = [
key: 'series1'
label: 'PI:NAME:<NAME>END_PI'
values: []
... |
[
{
"context": "istory\"\n chat:\n name: \"People wax poetic about Jerry\"\n\nclass App.Views.Header extends App.Views.View\n ",
"end": 99,
"score": 0.9867845773696899,
"start": 94,
"tag": "NAME",
"value": "Jerry"
}
] | app/views/header.coffee | RelistenNet/relisten.net-original | 2 | otherPages =
today:
name: "Today in History"
chat:
name: "People wax poetic about Jerry"
class App.Views.Header extends App.Views.View
autoRender: true
el: 'header'
template: JST['header']
events:
'click .band': 'refreshBand'
initialize: ->
super
render: (playlist) =>
@$el.html @tem... | 144976 | otherPages =
today:
name: "Today in History"
chat:
name: "People wax poetic about <NAME>"
class App.Views.Header extends App.Views.View
autoRender: true
el: 'header'
template: JST['header']
events:
'click .band': 'refreshBand'
initialize: ->
super
render: (playlist) =>
@$el.html @te... | true | otherPages =
today:
name: "Today in History"
chat:
name: "People wax poetic about PI:NAME:<NAME>END_PI"
class App.Views.Header extends App.Views.View
autoRender: true
el: 'header'
template: JST['header']
events:
'click .band': 'refreshBand'
initialize: ->
super
render: (playlist) =>
... |
[
{
"context": "response_data\":{\n \"account_id\":\"14449979\",\n \"name\": \"Choochee\"\n ",
"end": 379,
"score": 0.9591376781463623,
"start": 371,
"tag": "KEY",
"value": "14449979"
},
{
"context": "count_id\":\"14449979\",\n ... | models/account/fixture/get_account.coffee | signonsridhar/sridhar_hbs | 0 | define(['can_fixture'], (can)->
can.fixture('GET /bss/account?action=getaccount',(req, res)->
return {
"response":{
"service":"getaccount",
"response_code":100,
"execution_time":125,
"timestamp":"2013-11-25T18:36:37+0000",
... | 136226 | define(['can_fixture'], (can)->
can.fixture('GET /bss/account?action=getaccount',(req, res)->
return {
"response":{
"service":"getaccount",
"response_code":100,
"execution_time":125,
"timestamp":"2013-11-25T18:36:37+0000",
... | true | define(['can_fixture'], (can)->
can.fixture('GET /bss/account?action=getaccount',(req, res)->
return {
"response":{
"service":"getaccount",
"response_code":100,
"execution_time":125,
"timestamp":"2013-11-25T18:36:37+0000",
... |
[
{
"context": " db:\n dbName: 'masons_test'\n login: 'masons'\n password: 'masons'\n host: \"#{process.",
"end": 101,
"score": 0.9995697736740112,
"start": 95,
"tag": "USERNAME",
"value": "masons"
},
{
"context": "sons_test'\n login: 'masons'\n passwor... | src/server/conf.coffee | osboo/masonsmafia-db | 0 | if process.env.MASONS_ENV == 'TEST'
conf =
db:
dbName: 'masons_test'
login: 'masons'
password: 'masons'
host: "#{process.env.MYSQL_HOST}"
else
conf =
db:
dbName: 'masons'
login: 'masons'
password: 'masons'
host: "#{process.env.MYSQL_HOST}"
module.exports = (s... | 72124 | if process.env.MASONS_ENV == 'TEST'
conf =
db:
dbName: 'masons_test'
login: 'masons'
password: '<PASSWORD>'
host: "#{process.env.MYSQL_HOST}"
else
conf =
db:
dbName: 'masons'
login: 'masons'
password: '<PASSWORD>'
host: "#{process.env.MYSQL_HOST}"
module.expo... | true | if process.env.MASONS_ENV == 'TEST'
conf =
db:
dbName: 'masons_test'
login: 'masons'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
host: "#{process.env.MYSQL_HOST}"
else
conf =
db:
dbName: 'masons'
login: 'masons'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
host: "#{p... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9888670444488525,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/clientFilePage/modifySectionStatusDialog.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
# Dialog to change the status of a section within the client's plan (default/deactivated/completed)
# TODO: Consolidate... | 103918 | # 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
# Dialog to change the status of a section within the client's plan (default/deactivated/completed)
# TODO: Consolidate... | 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
# Dialog to change the status of a section within the client's plan (default/deactivated/completed)
# TOD... |
[
{
"context": "email) ->\n doc =\n email: email\n password: '12345678'\n profile:\n first_name: faker.name.firstN",
"end": 18846,
"score": 0.9993749856948853,
"start": 18838,
"tag": "PASSWORD",
"value": "12345678"
},
{
"context": "one, email) ->\n Meteor.loginWithPassw... | app_tests/client/sells.app-tests.coffee | Phaze1D/SA-Units | 0 | faker = require 'faker'
{ chai, assert, expect } = require 'meteor/practicalmeteor:chai'
{ Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ resetDatabase } = require 'meteor/xolvio:cleaner'
{ Random } = require 'meteor/random'
{ _ } = require 'meteor/underscore'
EventModule = requir... | 115958 | faker = require 'faker'
{ chai, assert, expect } = require 'meteor/practicalmeteor:chai'
{ Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ resetDatabase } = require 'meteor/xolvio:cleaner'
{ Random } = require 'meteor/random'
{ _ } = require 'meteor/underscore'
EventModule = requir... | true | faker = require 'faker'
{ chai, assert, expect } = require 'meteor/practicalmeteor:chai'
{ Meteor } = require 'meteor/meteor'
{ Accounts } = require 'meteor/accounts-base'
{ resetDatabase } = require 'meteor/xolvio:cleaner'
{ Random } = require 'meteor/random'
{ _ } = require 'meteor/underscore'
EventModule = requir... |
[
{
"context": "nse object', -> co =>\n yield pretend.user('sam').send 'door 1'\n yield @path.match pretend",
"end": 6868,
"score": 0.8800855278968811,
"start": 6865,
"tag": "NAME",
"value": "sam"
},
{
"context": "s the path', -> co =>\n yield pretend.user('sam').s... | test/unit/02-path_test.coffee | PropertyUX/nubot-playbook | 0 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Path = require '../../lib/modules/path'
resMatch = (value) ->
responseKeys = [ 'robot', 'message', 'match', 'envelope' ]
difference = _.differe... | 34987 | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Path = require '../../lib/modules/path'
resMatch = (value) ->
responseKeys = [ 'robot', 'message', 'match', 'envelope' ]
difference = _.differe... | true | sinon = require 'sinon'
chai = require 'chai'
should = chai.should()
chai.use require 'sinon-chai'
co = require 'co'
_ = require 'lodash'
pretend = require 'hubot-pretend'
Path = require '../../lib/modules/path'
resMatch = (value) ->
responseKeys = [ 'robot', 'message', 'match', 'envelope' ]
difference = _.differe... |
[
{
"context": "ld just work\", -> \n validators.validateUser(\"anton\", \"anton@circuithub.com\").isValid().should.be.tru",
"end": 216,
"score": 0.9994896650314331,
"start": 211,
"tag": "USERNAME",
"value": "anton"
},
{
"context": "ork\", -> \n validators.validateUser(\"anto... | test/input.validators.coffee | circuithub/massive-git | 6 | should = require "should"
validators = require "../lib/validators/input.validators"
describe "user validation", ->
describe "with valid user", ->
it "should just work", ->
validators.validateUser("anton", "anton@circuithub.com").isValid().should.be.true
describe "with null username", ->
it "should r... | 104633 | should = require "should"
validators = require "../lib/validators/input.validators"
describe "user validation", ->
describe "with valid user", ->
it "should just work", ->
validators.validateUser("anton", "<EMAIL>").isValid().should.be.true
describe "with null username", ->
it "should return 'Invali... | true | should = require "should"
validators = require "../lib/validators/input.validators"
describe "user validation", ->
describe "with valid user", ->
it "should just work", ->
validators.validateUser("anton", "PI:EMAIL:<EMAIL>END_PI").isValid().should.be.true
describe "with null username", ->
it "should... |
[
{
"context": " message.pid, 38324\n assert.equal message.key, 1717739733\n\n\ndescribe 'BackendMessage.ReadyForQuery', ->\n i",
"end": 1883,
"score": 0.9964934587478638,
"start": 1873,
"tag": "KEY",
"value": "1717739733"
}
] | test/unit/backend_message_test.coffee | gauravbansal74/node-vertica | 25 | assert = require 'assert'
BackendMessage = require('../../src/backend_message')
Buffer = require('../../src/buffer').Buffer
describe 'BackendMessage.Authentication', ->
it "should read a message correctly", ->
message = BackendMessage.fromBuffer(new Buffer([0x52, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0... | 58538 | assert = require 'assert'
BackendMessage = require('../../src/backend_message')
Buffer = require('../../src/buffer').Buffer
describe 'BackendMessage.Authentication', ->
it "should read a message correctly", ->
message = BackendMessage.fromBuffer(new Buffer([0x52, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0... | true | assert = require 'assert'
BackendMessage = require('../../src/backend_message')
Buffer = require('../../src/buffer').Buffer
describe 'BackendMessage.Authentication', ->
it "should read a message correctly", ->
message = BackendMessage.fromBuffer(new Buffer([0x52, 0x00, 0x00, 0x00, 0x08, 0x00, 0x0... |
[
{
"context": " expect(headers.meshblu_auth_token).to.equal 'treachery'\n ).respond()\n @httpBackend.flush()",
"end": 3809,
"score": 0.9933910369873047,
"start": 3800,
"tag": "PASSWORD",
"value": "treachery"
}
] | test/trigger-service-spec.coffee | octoblu/blu-web | 3 | describe 'TriggerService', =>
beforeEach ->
module 'blu', =>
inject (_$httpBackend_, TriggerService) =>
@httpBackend = _$httpBackend_
@sut = TriggerService
it 'should exist', ->
expect(@sut).to.exist
describe '->trigger', ->
it 'should exist', ->
expect(@sut.trigger).to.exist
... | 124900 | describe 'TriggerService', =>
beforeEach ->
module 'blu', =>
inject (_$httpBackend_, TriggerService) =>
@httpBackend = _$httpBackend_
@sut = TriggerService
it 'should exist', ->
expect(@sut).to.exist
describe '->trigger', ->
it 'should exist', ->
expect(@sut.trigger).to.exist
... | true | describe 'TriggerService', =>
beforeEach ->
module 'blu', =>
inject (_$httpBackend_, TriggerService) =>
@httpBackend = _$httpBackend_
@sut = TriggerService
it 'should exist', ->
expect(@sut).to.exist
describe '->trigger', ->
it 'should exist', ->
expect(@sut.trigger).to.exist
... |
[
{
"context": "***************************\n ** Copyright (c) 2019 Sujaykumar.Hublikar <hello@sujaykumarh.com> **\n ** ",
"end": 138,
"score": 0.9998968839645386,
"start": 119,
"tag": "NAME",
"value": "Sujaykumar.Hublikar"
},
{
"context": "*****\n ** Copyright (c) 20... | docs/assets/js/default.coffee | sujaykumarh/sujaykumarh.github.io | 3 | ---
---
###
*********************************************************************************
** Copyright (c) 2019 Sujaykumar.Hublikar <hello@sujaykumarh.com> **
** **
** Licensed under the Apache License, Version 2.0 (the "L... | 184933 | ---
---
###
*********************************************************************************
** Copyright (c) 2019 <NAME> <<EMAIL>> **
** **
** Licensed under the Apache License, Version 2.0 (the "License") **
*... | true | ---
---
###
*********************************************************************************
** Copyright (c) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> **
** **
** Licensed under the Apache License, Version 2.0 (the ... |
[
{
"context": "d in room.beds\n key = night.id + '|' + bed.id\n if key of ",
"end": 4180,
"score": 0.8140323162078857,
"start": 4178,
"tag": "KEY",
"value": "id"
},
{
"context": "room.beds\n key = night.id + '|' + be... | static/main.coffee | cassiamartin/hrsfanssummerparty | 0 | # Utility functions and classes
# A mixin for formatting (positive and negative) dollar values
_.mixin dollars: (x, precision = 2, blank_zero = false) ->
if not x? or (blank_zero and Math.abs(x) < 0.005)
return ''
val = '$' + Math.abs(x).toFixed(precision)
if x < 0
val = '(' + val + ')'
... | 31047 | # Utility functions and classes
# A mixin for formatting (positive and negative) dollar values
_.mixin dollars: (x, precision = 2, blank_zero = false) ->
if not x? or (blank_zero and Math.abs(x) < 0.005)
return ''
val = '$' + Math.abs(x).toFixed(precision)
if x < 0
val = '(' + val + ')'
... | true | # Utility functions and classes
# A mixin for formatting (positive and negative) dollar values
_.mixin dollars: (x, precision = 2, blank_zero = false) ->
if not x? or (blank_zero and Math.abs(x) < 0.005)
return ''
val = '$' + Math.abs(x).toFixed(precision)
if x < 0
val = '(' + val + ')'
... |
[
{
"context": "or k,v of params}\"\n\n rest = (config) ->\n key = createKey(config)\n if config.join and (not config.method",
"end": 466,
"score": 0.6327545642852783,
"start": 457,
"tag": "KEY",
"value": "createKey"
}
] | ModelCatalogueCorePluginTestApp/grails-app/assets/javascripts/modelcatalogue/util/rest.fct.coffee | passionfruit18/ModelCataloguePlugin | 0 | angular.module('mc.util.rest', ['mc.util.messages', 'mc.util.objectVisitor']).factory 'rest', ($q, $log, $http, $rootScope, $timeout, objectVisitor) ->
staleTolerance = 100 # do not request again within this period (ms)
pendingRequests = {}
createKey = (config) ->
method = config.method ? 'GET'
url = co... | 198652 | angular.module('mc.util.rest', ['mc.util.messages', 'mc.util.objectVisitor']).factory 'rest', ($q, $log, $http, $rootScope, $timeout, objectVisitor) ->
staleTolerance = 100 # do not request again within this period (ms)
pendingRequests = {}
createKey = (config) ->
method = config.method ? 'GET'
url = co... | true | angular.module('mc.util.rest', ['mc.util.messages', 'mc.util.objectVisitor']).factory 'rest', ($q, $log, $http, $rootScope, $timeout, objectVisitor) ->
staleTolerance = 100 # do not request again within this period (ms)
pendingRequests = {}
createKey = (config) ->
method = config.method ? 'GET'
url = co... |
[
{
"context": "er [ \n {id:1, age: 12, gender: 0, author: 'John', labels: [1,4,6]},\n {id:2, age: 20, gende",
"end": 868,
"score": 0.9988235831260681,
"start": 864,
"tag": "NAME",
"value": "John"
},
{
"context": ",6]},\n {id:2, age: 20, gender: 1, author: 'Bob', l... | test/components/list/filterable_list_test.coffee | pieces-js/pieces-list | 0 | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Filterable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... | 110401 | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Filterable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... | true | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Filterable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... |
[
{
"context": "###\nLayer filter effect\n\n@auther threeword (dev@threeword.com)\n@since 2016.07.08\n###\nMateria",
"end": 42,
"score": 0.9977370500564575,
"start": 33,
"tag": "USERNAME",
"value": "threeword"
},
{
"context": "###\nLayer filter effect\n\n@auther threeword (dev@threewor... | framer/backups/backup-2016-07-10 22.42.26.coffee | framer-modules/layer-filter.framer | 1 | ###
Layer filter effect
@auther threeword (dev@threeword.com)
@since 2016.07.08
###
MaterialColor = require "MaterialColor"
COLOR =
Red: { DEFAULT: "#F44336" }
# Constant
DEFINED =
COLORS: { DEFAULT: "rgba(85,85,85,1.0)", ACCENT: "rgba(51,176,247,1.0)" }
STATES: { SHOW: "show", DISMISS: "dismiss", DEFAULT: "defa... | 39687 | ###
Layer filter effect
@auther threeword (<EMAIL>)
@since 2016.07.08
###
MaterialColor = require "MaterialColor"
COLOR =
Red: { DEFAULT: "#F44336" }
# Constant
DEFINED =
COLORS: { DEFAULT: "rgba(85,85,85,1.0)", ACCENT: "rgba(51,176,247,1.0)" }
STATES: { SHOW: "show", DISMISS: "dismiss", DEFAULT: "default"}
FON... | true | ###
Layer filter effect
@auther threeword (PI:EMAIL:<EMAIL>END_PI)
@since 2016.07.08
###
MaterialColor = require "MaterialColor"
COLOR =
Red: { DEFAULT: "#F44336" }
# Constant
DEFINED =
COLORS: { DEFAULT: "rgba(85,85,85,1.0)", ACCENT: "rgba(51,176,247,1.0)" }
STATES: { SHOW: "show", DISMISS: "dismiss", DEFAULT: ... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.999912440776825,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/_components/big-button.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, button, span, i } from 'react-dom-factories'
import { Spinner } from 'spinner'
el = React.createElemen... | 24828 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, button, span, i } from 'react-dom-factories'
import { Spinner } from 'spinner'
el = React.createElement
expo... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, button, span, i } from 'react-dom-factories'
import { Spinner } from 'spinner'
el = React.crea... |
[
{
"context": "v.HUBOT_FLOWDOCK_LOGIN_EMAIL\n login_password: process.env.HUBOT_FLOWDOCK_LOGIN_PASSWORD\n\n bot = new flowdock.Session(options.login_ema",
"end": 494,
"score": 0.8669915199279785,
"start": 453,
"tag": "PASSWORD",
"value": "process.env.HUBOT_FLOWDOCK_LOGIN_PASSWORD"
}... | src/adapters/flowdock.coffee | ivey/hubot | 1 | Robot = require "../robot"
flowdock = require "flowdock"
class Flowdock extends Robot.Adapter
send: (user, strings...) ->
strings.forEach (str) =>
@bot.chatMessage(user.flow.subdomain, user.flow.name, str)
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.nam... | 144632 | Robot = require "../robot"
flowdock = require "flowdock"
class Flowdock extends Robot.Adapter
send: (user, strings...) ->
strings.forEach (str) =>
@bot.chatMessage(user.flow.subdomain, user.flow.name, str)
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.nam... | true | Robot = require "../robot"
flowdock = require "flowdock"
class Flowdock extends Robot.Adapter
send: (user, strings...) ->
strings.forEach (str) =>
@bot.chatMessage(user.flow.subdomain, user.flow.name, str)
reply: (user, strings...) ->
strings.forEach (str) =>
@send user, "#{user.nam... |
[
{
"context": "'\n 'Maltese'\n 'Manatee'\n 'Mandrill'\n 'Markhor'\n 'Mastiff'\n 'Mayfly'\n 'Meerkat'\n 'Mi",
"end": 2286,
"score": 0.5920019149780273,
"start": 2279,
"tag": "NAME",
"value": "Markhor"
},
{
"context": "alrus'\n 'Warthog'\n 'Wasp'\n 'Weas... | coffeescript/public/js/services/animals.coffee | purple-circle/chat | 0 | app = angular.module('app')
app.service 'animals', ->
animals = [
'Abyssinian'
'Affenpinscher'
'Akbash'
'Akita'
'Albatross'
'Alligator'
'Angelfish'
'Ant'
'Anteater'
'Antelope'
'Armadillo'
'Avocet'
'Axolotl'
'Baboon'
'Badger'
'Balinese'
'Bandicoot'
... | 34763 | app = angular.module('app')
app.service 'animals', ->
animals = [
'Abyssinian'
'Affenpinscher'
'Akbash'
'Akita'
'Albatross'
'Alligator'
'Angelfish'
'Ant'
'Anteater'
'Antelope'
'Armadillo'
'Avocet'
'Axolotl'
'Baboon'
'Badger'
'Balinese'
'Bandicoot'
... | true | app = angular.module('app')
app.service 'animals', ->
animals = [
'Abyssinian'
'Affenpinscher'
'Akbash'
'Akita'
'Albatross'
'Alligator'
'Angelfish'
'Ant'
'Anteater'
'Antelope'
'Armadillo'
'Avocet'
'Axolotl'
'Baboon'
'Badger'
'Balinese'
'Bandicoot'
... |
[
{
"context": " ikey\n\t\t\t\t\t\t\t\"data\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"key\": \"Raw\"\n\t\t\t\t\t\t\t\t\t\"values\": $scope.stride(values)\n\t\t\t\t\t\t\t",
"end": 2863,
"score": 0.5628635883331299,
"start": 2860,
"tag": "KEY",
"value": "Raw"
},
{
"context": "ikey)\n\... | ers_frontend/app/scripts/video/video_feature.coffee | dumoulinj/erf | 0 | frame2seconds = (frameNb, fps) ->
frameNb * 1 / fps
seconds2frame = (seconds, fps) ->
seconds * fps
angular
.module 'app.video'
.controller 'FeaturesCtrl', ($scope, video, $timeout, Restangular, $dragon, featureTypes, featureFunctionTypes) ->
# Initialize tooltips on buttons
$timeout(() ->
$('[data-toggle... | 33503 | frame2seconds = (frameNb, fps) ->
frameNb * 1 / fps
seconds2frame = (seconds, fps) ->
seconds * fps
angular
.module 'app.video'
.controller 'FeaturesCtrl', ($scope, video, $timeout, Restangular, $dragon, featureTypes, featureFunctionTypes) ->
# Initialize tooltips on buttons
$timeout(() ->
$('[data-toggle... | true | frame2seconds = (frameNb, fps) ->
frameNb * 1 / fps
seconds2frame = (seconds, fps) ->
seconds * fps
angular
.module 'app.video'
.controller 'FeaturesCtrl', ($scope, video, $timeout, Restangular, $dragon, featureTypes, featureFunctionTypes) ->
# Initialize tooltips on buttons
$timeout(() ->
$('[data-toggle... |
[
{
"context": "l] [?email ?height]]',\n args: \"\"\"[\n [\"Doe\" \"John\" \"jdoe@example.com\"]\n [\"jdoe@exampl",
"end": 2503,
"score": 0.9997677206993103,
"start": 2500,
"tag": "NAME",
"value": "Doe"
},
{
"context": "mail ?height]]',\n args: \"\"\"[\n ... | test/datomic.coffee | limadelic/datomicjs | 37 | { Datomic } = require src + 'datomic'
parse = require '../lib/parse'
schema = require './schema'
describe 'Datomic', ->
datomic = new Datomic 'localhost', 8888, 'db', 'test'
it 'should fetch available storage aliases', (done) ->
datomic.storages (err, storages) ->
parse.json(storages).should.include... | 146437 | { Datomic } = require src + 'datomic'
parse = require '../lib/parse'
schema = require './schema'
describe 'Datomic', ->
datomic = new Datomic 'localhost', 8888, 'db', 'test'
it 'should fetch available storage aliases', (done) ->
datomic.storages (err, storages) ->
parse.json(storages).should.include... | true | { Datomic } = require src + 'datomic'
parse = require '../lib/parse'
schema = require './schema'
describe 'Datomic', ->
datomic = new Datomic 'localhost', 8888, 'db', 'test'
it 'should fetch available storage aliases', (done) ->
datomic.storages (err, storages) ->
parse.json(storages).should.include... |
[
{
"context": "try = new Sentry()\n assert.equal _sentry.key, 'c28500314a0f4cf28b6d658c3dd37ddb'\n assert.equal _sentry.secret, 'a5d3fcd72b7049",
"end": 774,
"score": 0.9997715353965759,
"start": 742,
"tag": "KEY",
"value": "c28500314a0f4cf28b6d658c3dd37ddb"
},
{
"context": "6d6... | socketio/node_modules/sentry-node/test/sentry.coffee | motephyr/realtime_demo | 0 | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
Sentry = require("#{__dirname}/../lib/sentry")
sentry_settings = require("#{__dirname}/credentials").sentry
describe 'sentry-node', ->
before ->
@sentry = new Sentry sentry_settings
# because only in production ... | 11320 | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
Sentry = require("#{__dirname}/../lib/sentry")
sentry_settings = require("#{__dirname}/credentials").sentry
describe 'sentry-node', ->
before ->
@sentry = new Sentry sentry_settings
# because only in production ... | true | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
Sentry = require("#{__dirname}/../lib/sentry")
sentry_settings = require("#{__dirname}/credentials").sentry
describe 'sentry-node', ->
before ->
@sentry = new Sentry sentry_settings
# because only in production ... |
[
{
"context": " likely to get into monster battles.\n *\n * @name Warmonger\n * @prerequisite Enter 10 battles\n * @category ",
"end": 156,
"score": 0.9960800409317017,
"start": 147,
"tag": "NAME",
"value": "Warmonger"
}
] | src/character/personalities/Warmonger.coffee | sadbear-/IdleLands | 3 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are more likely to get into monster battles.
*
* @name Warmonger
* @prerequisite Enter 10 battles
* @category Personalities
* @package Player
*/`
class Warmonger extends Personality
constructor: ->
eventModifier: (pla... | 159914 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are more likely to get into monster battles.
*
* @name <NAME>
* @prerequisite Enter 10 battles
* @category Personalities
* @package Player
*/`
class Warmonger extends Personality
constructor: ->
eventModifier: (player... | true |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are more likely to get into monster battles.
*
* @name PI:NAME:<NAME>END_PI
* @prerequisite Enter 10 battles
* @category Personalities
* @package Player
*/`
class Warmonger extends Personality
constructor: ->
eventMod... |
[
{
"context": "present a collection of graphic object\n*\n* @author David Jegat <david.jegat@gmail.com>\n###\nclass GraphicCollecti",
"end": 71,
"score": 0.9998871088027954,
"start": 60,
"tag": "NAME",
"value": "David Jegat"
},
{
"context": "ection of graphic object\n*\n* @author Davi... | src/Collection/GraphicCollection.coffee | Djeg/MicroRacing | 1 | ###*
* Represent a collection of graphic object
*
* @author David Jegat <david.jegat@gmail.com>
###
class GraphicCollection extends Collection
###*
* REdefined the add to handle Graphic object only support
*
* @param {BaseGraphic} graphic
* @throws String, if the graphic is not a BaseGraphic
* @return {Grap... | 152572 | ###*
* Represent a collection of graphic object
*
* @author <NAME> <<EMAIL>>
###
class GraphicCollection extends Collection
###*
* REdefined the add to handle Graphic object only support
*
* @param {BaseGraphic} graphic
* @throws String, if the graphic is not a BaseGraphic
* @return {GraphicCollection}
##... | true | ###*
* Represent a collection of graphic object
*
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
class GraphicCollection extends Collection
###*
* REdefined the add to handle Graphic object only support
*
* @param {BaseGraphic} graphic
* @throws String, if the graphic is not a BaseGraphic
* @re... |
[
{
"context": " \"hostname\": \"localhost\"\n \"user\": username\n \"password\": password\n \"dat",
"end": 693,
"score": 0.9976575970649719,
"start": 685,
"tag": "USERNAME",
"value": "username"
},
{
"context": " \"user\": username\n ... | server/magnet_server.coffee | elfsternberg/fridgemagnets | 0 | express = require 'express'
mysql = require('db-mysql')
OAuth = require('oauth').OAuth
util = require('util')
config = require('./config')
fs = require('fs')
wordlist = JSON.parse(fs.readFileSync('./wordlist.js', 'utf-8'))
wordstream = (i.w for i in wordlist).join(' ')
body_to_haiku = (lines) ->
ret = (for words ... | 135951 | express = require 'express'
mysql = require('db-mysql')
OAuth = require('oauth').OAuth
util = require('util')
config = require('./config')
fs = require('fs')
wordlist = JSON.parse(fs.readFileSync('./wordlist.js', 'utf-8'))
wordstream = (i.w for i in wordlist).join(' ')
body_to_haiku = (lines) ->
ret = (for words ... | true | express = require 'express'
mysql = require('db-mysql')
OAuth = require('oauth').OAuth
util = require('util')
config = require('./config')
fs = require('fs')
wordlist = JSON.parse(fs.readFileSync('./wordlist.js', 'utf-8'))
wordstream = (i.w for i in wordlist).join(' ')
body_to_haiku = (lines) ->
ret = (for words ... |
[
{
"context": "CompanyIds();\n\t# params[\"X-Auth-Token\"] = Accounts._storedLoginToken();\n\tsdk = require(\"@steedos/builder-com",
"end": 9512,
"score": 0.5480586886405945,
"start": 9506,
"tag": "KEY",
"value": "stored"
}
] | creator/packages/steedos-creator/core.coffee | baozhoutao/steedos-platform | 0 |
# Creator.initApps()
# Creator.initApps = ()->
# if Meteor.isServer
# _.each Creator.Apps, (app, app_id)->
# db_app = db.apps.findOne(app_id)
# if !db_app
# app._id = app_id
# db.apps.insert(app)
# else
# app._id = app_id
# db.apps.update({_id: app_id}, app)
Creator.getSchema = (object_name)->
... | 217421 |
# Creator.initApps()
# Creator.initApps = ()->
# if Meteor.isServer
# _.each Creator.Apps, (app, app_id)->
# db_app = db.apps.findOne(app_id)
# if !db_app
# app._id = app_id
# db.apps.insert(app)
# else
# app._id = app_id
# db.apps.update({_id: app_id}, app)
Creator.getSchema = (object_name)->
... | true |
# Creator.initApps()
# Creator.initApps = ()->
# if Meteor.isServer
# _.each Creator.Apps, (app, app_id)->
# db_app = db.apps.findOne(app_id)
# if !db_app
# app._id = app_id
# db.apps.insert(app)
# else
# app._id = app_id
# db.apps.update({_id: app_id}, app)
Creator.getSchema = (object_name)->
... |
[
{
"context": "t \"checks the arguments\", ->\n obj = { name: 'A'}\n vm = new ViewModel obj\n assert.isTru",
"end": 256,
"score": 0.8980189561843872,
"start": 255,
"tag": "NAME",
"value": "A"
},
{
"context": "operties in load object\", ->\n obj = { name: \"A\" }\n ... | tests/viewmodel-instance.coffee | ManuelDeLeon/viewmodel | 215 | describe "ViewModel instance", ->
beforeEach ->
@checkStub = sinon.stub ViewModel, "check"
@viewmodel = new ViewModel()
afterEach ->
sinon.restoreAll()
describe "constructor", ->
it "checks the arguments", ->
obj = { name: 'A'}
vm = new ViewModel obj
assert.isTrue @checkStub.c... | 38474 | describe "ViewModel instance", ->
beforeEach ->
@checkStub = sinon.stub ViewModel, "check"
@viewmodel = new ViewModel()
afterEach ->
sinon.restoreAll()
describe "constructor", ->
it "checks the arguments", ->
obj = { name: '<NAME>'}
vm = new ViewModel obj
assert.isTrue @checkS... | true | describe "ViewModel instance", ->
beforeEach ->
@checkStub = sinon.stub ViewModel, "check"
@viewmodel = new ViewModel()
afterEach ->
sinon.restoreAll()
describe "constructor", ->
it "checks the arguments", ->
obj = { name: 'PI:NAME:<NAME>END_PI'}
vm = new ViewModel obj
assert.... |
[
{
"context": "ount 'verbose'\n .alias\n l: 'loginurl'\n u: 'username'\n p: 'password'\n v: 'verbose'\n .describe\n ",
"end": 432,
"score": 0.9987084269523621,
"start": 424,
"tag": "USERNAME",
"value": "username"
},
{
"context": "describe\n loginurl: 'Login URL'\n ... | src/argv.coffee | jdcrensh/force-coverage | 2 | {apiVersion} = require '../package.json'
logger = require './logger'
yargs = require 'yargs'
argv = yargs
.usage 'Usage: $0 [options]'
.help 'help'
.default
loginurl: 'https://test.salesforce.com'
version: apiVersion
target: 0.76
class: 'CoverageInflation'
pollTimeout: 600 * 1000
pollInte... | 26329 | {apiVersion} = require '../package.json'
logger = require './logger'
yargs = require 'yargs'
argv = yargs
.usage 'Usage: $0 [options]'
.help 'help'
.default
loginurl: 'https://test.salesforce.com'
version: apiVersion
target: 0.76
class: 'CoverageInflation'
pollTimeout: 600 * 1000
pollInte... | true | {apiVersion} = require '../package.json'
logger = require './logger'
yargs = require 'yargs'
argv = yargs
.usage 'Usage: $0 [options]'
.help 'help'
.default
loginurl: 'https://test.salesforce.com'
version: apiVersion
target: 0.76
class: 'CoverageInflation'
pollTimeout: 600 * 1000
pollInte... |
[
{
"context": "\n\ndnschain\nhttp://dnschain.net\n\nCopyright (c) 2013 Greg Slepak\nLicensed under the BSD 3-Clause license.\n\n###\n\nmo",
"end": 65,
"score": 0.999869167804718,
"start": 54,
"tag": "NAME",
"value": "Greg Slepak"
},
{
"context": "ged into NodeJS in the future: https:/... | src/lib/globals.coffee | wartron/dnschain | 1 | ###
dnschain
http://dnschain.net
Copyright (c) 2013 Greg Slepak
Licensed under the BSD 3-Clause license.
###
module.exports = (dnschain) ->
# 1. global dependencies
dnschain.globals =
rpc : 'json-rpc2'
_ : 'lodash-contrib'
S : 'string'
dns2 : 'native-dns'
... | 120368 | ###
dnschain
http://dnschain.net
Copyright (c) 2013 <NAME>
Licensed under the BSD 3-Clause license.
###
module.exports = (dnschain) ->
# 1. global dependencies
dnschain.globals =
rpc : 'json-rpc2'
_ : 'lodash-contrib'
S : 'string'
dns2 : 'native-dns'
... | true | ###
dnschain
http://dnschain.net
Copyright (c) 2013 PI:NAME:<NAME>END_PI
Licensed under the BSD 3-Clause license.
###
module.exports = (dnschain) ->
# 1. global dependencies
dnschain.globals =
rpc : 'json-rpc2'
_ : 'lodash-contrib'
S : 'string'
dns2 : 'native... |
[
{
"context": "returnValue field of the response object.\r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass SynchronizeSlav",
"end": 712,
"score": 0.9998800158500671,
"start": 700,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/router/routes/rpc/admin/SynchronizeSlaveDbRoute.coffee | qrefdev/qref | 0 | RpcRoute = require('../../../RpcRoute')
QRefSlaveManager = require('../../../../db/QRefSlaveManager')
RpcResponse = require('../../../../serialization/RpcResponse')
UserAuth = require('../../../../security/UserAuth')
https = require('https')
async = require('async')
###
Service route that returns the next availa... | 70363 | RpcRoute = require('../../../RpcRoute')
QRefSlaveManager = require('../../../../db/QRefSlaveManager')
RpcResponse = require('../../../../serialization/RpcResponse')
UserAuth = require('../../../../security/UserAuth')
https = require('https')
async = require('async')
###
Service route that returns the next availa... | true | RpcRoute = require('../../../RpcRoute')
QRefSlaveManager = require('../../../../db/QRefSlaveManager')
RpcResponse = require('../../../../serialization/RpcResponse')
UserAuth = require('../../../../security/UserAuth')
https = require('https')
async = require('async')
###
Service route that returns the next availa... |
[
{
"context": "ldweatheronline.com/free/v2/weather.ashx\"\n key: \"55f1fdd05fba23be0a18043d0a017\"",
"end": 118,
"score": 0.9997535347938538,
"start": 89,
"tag": "KEY",
"value": "55f1fdd05fba23be0a18043d0a017"
}
] | config.coffee | destec/Node-Weather-CLI | 0 | module.exports =
url: "http://api.worldweatheronline.com/free/v2/weather.ashx"
key: "55f1fdd05fba23be0a18043d0a017" | 106044 | module.exports =
url: "http://api.worldweatheronline.com/free/v2/weather.ashx"
key: "<KEY>" | true | module.exports =
url: "http://api.worldweatheronline.com/free/v2/weather.ashx"
key: "PI:KEY:<KEY>END_PI" |
[
{
"context": "\n GooglePlusProvider.init\n clientId: '1069600990715-qr2quvqt0nl1nr8vkdtljtu0jnb22igv.apps.googleusercontent.com'\n apiKey: 'AIzaSyCmqKjIhh5ySTPDprOkfKHkKdP",
"end": 700,
"score": 0.9983994960784912,
"start": 627,
"tag": "KEY",
"value": "1069600990715-qr2quv... | src/coffee/app.coffee | KinveyApps/Gulper-AngularJS | 2 | angular.module 'app', [
'app.control',
'app.state',
'app.templates',
'app.service',
'ui.router',
'facebook',
'kinvey',
'ngStorage',
'angularMoment'
'pubnub.angular.service',
'googleplus'
'ui.bootstrap'
]
.config ['$urlRouterProvider', '$facebookProvider', '$kinveyProvider', '$httpProvider', '... | 185692 | angular.module 'app', [
'app.control',
'app.state',
'app.templates',
'app.service',
'ui.router',
'facebook',
'kinvey',
'ngStorage',
'angularMoment'
'pubnub.angular.service',
'googleplus'
'ui.bootstrap'
]
.config ['$urlRouterProvider', '$facebookProvider', '$kinveyProvider', '$httpProvider', '... | true | angular.module 'app', [
'app.control',
'app.state',
'app.templates',
'app.service',
'ui.router',
'facebook',
'kinvey',
'ngStorage',
'angularMoment'
'pubnub.angular.service',
'googleplus'
'ui.bootstrap'
]
.config ['$urlRouterProvider', '$facebookProvider', '$kinveyProvider', '$httpProvider', '... |
[
{
"context": "ppi.util\n# @description utility services\n# @author Michael Lin, Snaphappi Inc.\n###\n\n\nangular.module 'snappi.util",
"end": 109,
"score": 0.9993659257888794,
"start": 98,
"tag": "NAME",
"value": "Michael Lin"
},
{
"context": "timeSpan\n\n\n]\n\n\n# borrowed from htt... | app/js/services/util.coffee | mixersoft/ionic-parse-facebook-scaffold | 5 | 'use strict'
###*
# @ngdoc service
# @name snappi.util
# @description utility services
# @author Michael Lin, Snaphappi Inc.
###
angular.module 'snappi.util', [
'ionic',
'ngCordova',
# 'ngStorage'
]
.factory 'deviceReady', [
'$q', '$timeout', '$ionicPlatform'
($q, $timeout, $ionicPlatform)->
_prom... | 132318 | 'use strict'
###*
# @ngdoc service
# @name snappi.util
# @description utility services
# @author <NAME>, Snaphappi Inc.
###
angular.module 'snappi.util', [
'ionic',
'ngCordova',
# 'ngStorage'
]
.factory 'deviceReady', [
'$q', '$timeout', '$ionicPlatform'
($q, $timeout, $ionicPlatform)->
_promise =... | true | 'use strict'
###*
# @ngdoc service
# @name snappi.util
# @description utility services
# @author PI:NAME:<NAME>END_PI, Snaphappi Inc.
###
angular.module 'snappi.util', [
'ionic',
'ngCordova',
# 'ngStorage'
]
.factory 'deviceReady', [
'$q', '$timeout', '$ionicPlatform'
($q, $timeout, $ionicPlatform)->
... |
[
{
"context": " title: \"Catty Art\"\n },\n {\n gene_id: \"percy\",\n medium: \"*\",\n title: \"Art by Percy\"\n",
"end": 292,
"score": 0.9321757555007935,
"start": 287,
"tag": "NAME",
"value": "percy"
},
{
"context": "n the filter matches', ->\n query = { gen... | src/desktop/apps/collect/test/helpers.coffee | kanaabe/force | 0 | sinon = require 'sinon'
Backbone = require 'backbone'
pageTitle = require '../../../components/commercial_filter/page_title.coffee'
describe 'Page title helper', ->
filters = [
{
gene_id: "*",
medium: "catty-art",
title: "Catty Art"
},
{
gene_id: "percy",
medium: "*",
... | 193483 | sinon = require 'sinon'
Backbone = require 'backbone'
pageTitle = require '../../../components/commercial_filter/page_title.coffee'
describe 'Page title helper', ->
filters = [
{
gene_id: "*",
medium: "catty-art",
title: "Catty Art"
},
{
gene_id: "<NAME>",
medium: "*",
... | true | sinon = require 'sinon'
Backbone = require 'backbone'
pageTitle = require '../../../components/commercial_filter/page_title.coffee'
describe 'Page title helper', ->
filters = [
{
gene_id: "*",
medium: "catty-art",
title: "Catty Art"
},
{
gene_id: "PI:NAME:<NAME>END_PI",
medi... |
[
{
"context": "x}.js\"])\n headerVars.externalScripts = ['https://134.147.198.48:7021/scripts/kmswrapper.js']\n res.render('secret",
"end": 560,
"score": 0.9996628761291504,
"start": 546,
"tag": "IP_ADDRESS",
"value": "134.147.198.48"
}
] | src/server/routes/index.coffee | RUB-NDS/SECRET | 5 | express = require('express')
router = express.Router()
DEBUG = false
suffix = ''
suffix = '.uncompressed' if DEBUG
defaultHeaderVars = {
scripts: ['bcsocket.js', "webclient/share#{suffix}.js"]
title: 'SECRET - Secure Live Collaboration'
}
renderSECRET = (req, res) ->
headerVars = Object.assign({}, defaultHeade... | 76312 | express = require('express')
router = express.Router()
DEBUG = false
suffix = ''
suffix = '.uncompressed' if DEBUG
defaultHeaderVars = {
scripts: ['bcsocket.js', "webclient/share#{suffix}.js"]
title: 'SECRET - Secure Live Collaboration'
}
renderSECRET = (req, res) ->
headerVars = Object.assign({}, defaultHeade... | true | express = require('express')
router = express.Router()
DEBUG = false
suffix = ''
suffix = '.uncompressed' if DEBUG
defaultHeaderVars = {
scripts: ['bcsocket.js', "webclient/share#{suffix}.js"]
title: 'SECRET - Secure Live Collaboration'
}
renderSECRET = (req, res) ->
headerVars = Object.assign({}, defaultHeade... |
[
{
"context": "# Copyright (c) 2015 Jesse Grosjean. All rights reserved.\n\nshallowEquals = require 's",
"end": 35,
"score": 0.9997667074203491,
"start": 21,
"tag": "NAME",
"value": "Jesse Grosjean"
}
] | atom/packages/foldingtext-for-atom/lib/editor/selection.coffee | prookie/dotfiles-1 | 0 | # Copyright (c) 2015 Jesse Grosjean. All rights reserved.
shallowEquals = require 'shallow-equals'
Item = require '../core/item'
assert = require 'assert'
ItemRenderer = null
# Public: The selection returned by {OutlineEditor::selection}.
#
# The anchor of a selection is the beginning point of the selection. When
# ... | 160432 | # Copyright (c) 2015 <NAME>. All rights reserved.
shallowEquals = require 'shallow-equals'
Item = require '../core/item'
assert = require 'assert'
ItemRenderer = null
# Public: The selection returned by {OutlineEditor::selection}.
#
# The anchor of a selection is the beginning point of the selection. When
# making a... | true | # Copyright (c) 2015 PI:NAME:<NAME>END_PI. All rights reserved.
shallowEquals = require 'shallow-equals'
Item = require '../core/item'
assert = require 'assert'
ItemRenderer = null
# Public: The selection returned by {OutlineEditor::selection}.
#
# The anchor of a selection is the beginning point of the selection. W... |
[
{
"context": "###\n * cena_auth\n * https://github.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan Gaus\n * Li",
"end": 46,
"score": 0.998560905456543,
"start": 39,
"tag": "USERNAME",
"value": "1egoman"
},
{
"context": "thub.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan G... | src/frontend/controllers/foodstuff.coffee | 1egoman/cena_app | 0 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
'use strict';
# foodstuff controller
@app.controller 'FsController', ($scope, $routeParams, FoodStuff, Shop, Tag, $rootScope, $modal) ->
root = $scope
root.isData = false
# get all t... | 74947 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
'use strict';
# foodstuff controller
@app.controller 'FsController', ($scope, $routeParams, FoodStuff, Shop, Tag, $rootScope, $modal) ->
root = $scope
root.isData = false
# get all tags... | true | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
'use strict';
# foodstuff controller
@app.controller 'FsController', ($scope, $routeParams, FoodStuff, Shop, Tag, $rootScope, $modal) ->
root = $scope
root.isData = false
... |
[
{
"context": "topology\n\n properties =\n listenOn: \"tcp://127.0.0.1:1221\",\n broadcastOn: \"tcp://127.0.0.1:2998\",",
"end": 1915,
"score": 0.9991652369499207,
"start": 1906,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "\"tcp://127.0.0.1:1221\",\n b... | test/hUnsubscribe.coffee | fredpottier/hubiquitus | 2 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... | 67312 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... | true | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... |
[
{
"context": "el: 'remote'\n sudo: true\n ssh:\n host: '127.0.0.1', username: process.env.USER,\n private_key_p",
"end": 302,
"score": 0.9997696280479431,
"start": 293,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "sername: process.env.USER,\n privat... | packages/service/env/ubuntu/test.coffee | wdavidw/node-mecano | 0 |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: false
service:
name: 'nginx-light'
srv_name: 'nginx'
chk_name: 'nginx'
config: [
label: 'local'
sudo: true
,
label: 'remote'
sudo: true
ssh:
host: '127.0.0.1', username: proce... | 169766 |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: false
service:
name: 'nginx-light'
srv_name: 'nginx'
chk_name: 'nginx'
config: [
label: 'local'
sudo: true
,
label: 'remote'
sudo: true
ssh:
host: '127.0.0.1', username: proce... | true |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: false
service:
name: 'nginx-light'
srv_name: 'nginx'
chk_name: 'nginx'
config: [
label: 'local'
sudo: true
,
label: 'remote'
sudo: true
ssh:
host: '127.0.0.1', username: proce... |
[
{
"context": " Chaplin.EventBroker.publishEvent 'tell_user', 'Brak kontaktu z serwerem'\n @publishEvent('log:debug', \"s",
"end": 8458,
"score": 0.9787797331809998,
"start": 8445,
"tag": "NAME",
"value": "Brak kontaktu"
}
] | app/views/list-view.coffee | zzart/mp_old | 0 | View = require 'views/base/view'
#SubView = require 'views/list-items-view'
NavigationView = require 'views/navigation-view'
mediator = require 'mediator'
module.exports = class ListView extends View
autoRender: true
containerMethod: "html"
#attributes: { 'data-role':'content' }
initialize: (params) ->... | 171782 | View = require 'views/base/view'
#SubView = require 'views/list-items-view'
NavigationView = require 'views/navigation-view'
mediator = require 'mediator'
module.exports = class ListView extends View
autoRender: true
containerMethod: "html"
#attributes: { 'data-role':'content' }
initialize: (params) ->... | true | View = require 'views/base/view'
#SubView = require 'views/list-items-view'
NavigationView = require 'views/navigation-view'
mediator = require 'mediator'
module.exports = class ListView extends View
autoRender: true
containerMethod: "html"
#attributes: { 'data-role':'content' }
initialize: (params) ->... |
[
{
"context": "': @options.port\n }\n @auth = {\n 'username': @options.username\n 'password': @options.",
"end": 2334,
"score": 0.9941346049308777,
"start": 2326,
"tag": "USERNAME",
"value": "username"
},
{
"context": " }\n @auth = {\n 'username':... | index.coffee | octoblu/meshblu-xenmobile | 0 | {EventEmitter} = require 'events'
debug = require('debug')('meshblu-connector-meshblu-xenmobile:index')
_ = require 'lodash'
schemas = require './legacySchemas.json'
channelJson = require './channelJson'
request = require 'requ... | 17300 | {EventEmitter} = require 'events'
debug = require('debug')('meshblu-connector-meshblu-xenmobile:index')
_ = require 'lodash'
schemas = require './legacySchemas.json'
channelJson = require './channelJson'
request = require 'requ... | true | {EventEmitter} = require 'events'
debug = require('debug')('meshblu-connector-meshblu-xenmobile:index')
_ = require 'lodash'
schemas = require './legacySchemas.json'
channelJson = require './channelJson'
request = require 'requ... |
[
{
"context": "'use strict'\n# Neanderthal JS\n# Pedro Lucas Porcellis - pedrolucasporcellis@gmail.com\n# 20/06/2016\n# MI",
"end": 53,
"score": 0.9998588562011719,
"start": 32,
"tag": "NAME",
"value": "Pedro Lucas Porcellis"
},
{
"context": "strict'\n# Neanderthal JS\n# Pedro Lucas P... | neanderthal.coffee | pedrolucasp/neanderthal-js | 1 | 'use strict'
# Neanderthal JS
# Pedro Lucas Porcellis - pedrolucasporcellis@gmail.com
# 20/06/2016
# MIT License (see LICENSE)
class @Neanderthal
# TODO: refactor the structure of execution of steps
# and general organization of program memory
###
# programSteps : Array {
# [ "LDA", "128", "ADD", "10", "... | 132801 | 'use strict'
# Neanderthal JS
# <NAME> - <EMAIL>
# 20/06/2016
# MIT License (see LICENSE)
class @Neanderthal
# TODO: refactor the structure of execution of steps
# and general organization of program memory
###
# programSteps : Array {
# [ "LDA", "128", "ADD", "10", "STA", 130, "HLT" ]
# }
#
# prog... | true | 'use strict'
# Neanderthal JS
# PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
# 20/06/2016
# MIT License (see LICENSE)
class @Neanderthal
# TODO: refactor the structure of execution of steps
# and general organization of program memory
###
# programSteps : Array {
# [ "LDA", "128", "ADD", "10", "STA", 13... |
[
{
"context": "#\n# Autocompleter main file\n#\n# Copyright (C) 2012 Nikolay Nemshilov\n#\n\n# hook up dependencies\ncore = require('core",
"end": 68,
"score": 0.9998884797096252,
"start": 51,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | ui/autocompleter/main.coffee | lovely-io/lovely.io-stl | 2 | #
# Autocompleter main file
#
# Copyright (C) 2012 Nikolay Nemshilov
#
# hook up dependencies
core = require('core')
$ = require('dom')
UI = require('ui')
Ajax = require('ajax')
# local variables assignments
ext = core.ext
Class = core.Class
Element = $.Element
isArray = core.isArray
# glue in... | 182969 | #
# Autocompleter main file
#
# Copyright (C) 2012 <NAME>
#
# hook up dependencies
core = require('core')
$ = require('dom')
UI = require('ui')
Ajax = require('ajax')
# local variables assignments
ext = core.ext
Class = core.Class
Element = $.Element
isArray = core.isArray
# glue in your files... | true | #
# Autocompleter main file
#
# Copyright (C) 2012 PI:NAME:<NAME>END_PI
#
# hook up dependencies
core = require('core')
$ = require('dom')
UI = require('ui')
Ajax = require('ajax')
# local variables assignments
ext = core.ext
Class = core.Class
Element = $.Element
isArray = core.isArray
# glue... |
[
{
"context": "rc = \"https://maps.googleapis.com/maps/api/js?key=AIzaSyAxUiFoRbIsNrZo-NW_QSbIQfE-R7QcB4k&sensor=false&callback=window.initialiseMaps\"\n do",
"end": 8618,
"score": 0.9996122717857361,
"start": 8579,
"tag": "KEY",
"value": "AIzaSyAxUiFoRbIsNrZo-NW_QSbIQfE-R7QcB4k"
},
{
... | source/javascripts/site.js.coffee | oneiota/oneiota | 1 | #= require vendor/waypoints2.0.2.min
#= require vendor/jquery-ui-1.9.2.custom
#= require vendor/jquery.color-2.1.2.min.js
#= require vendor/jquery.ui.touch-punch.min
#= require feed
#= require intro
window.isTouch = if ($('html').hasClass('touch')) then true else false
window.isCanvas = if ($('html').hasClass('canvas'... | 182464 | #= require vendor/waypoints2.0.2.min
#= require vendor/jquery-ui-1.9.2.custom
#= require vendor/jquery.color-2.1.2.min.js
#= require vendor/jquery.ui.touch-punch.min
#= require feed
#= require intro
window.isTouch = if ($('html').hasClass('touch')) then true else false
window.isCanvas = if ($('html').hasClass('canvas'... | true | #= require vendor/waypoints2.0.2.min
#= require vendor/jquery-ui-1.9.2.custom
#= require vendor/jquery.color-2.1.2.min.js
#= require vendor/jquery.ui.touch-punch.min
#= require feed
#= require intro
window.isTouch = if ($('html').hasClass('touch')) then true else false
window.isCanvas = if ($('html').hasClass('canvas'... |
[
{
"context": "# Alexander Danylchenko\n# BMC tpl\\tplre language settings.\n# 2017-08-14 -",
"end": 23,
"score": 0.9998248815536499,
"start": 2,
"tag": "NAME",
"value": "Alexander Danylchenko"
}
] | settings/language-tplpre.cson | triaglesis/language-tplpre | 1 | # Alexander Danylchenko
# BMC tpl\tplre language settings.
# 2017-08-14 - Latest version.
# experimental:
'.source.tplpre':
'editor':
'autoIndentOnPaste': true
'softTabs': true
'tabLength': 4
'commentStart': '// '
'increaseIndentPattern': '(if|elif).*(\\S+\\s+then)\\b.*$'
'increaseIndentPatter... | 2642 | # <NAME>
# BMC tpl\tplre language settings.
# 2017-08-14 - Latest version.
# experimental:
'.source.tplpre':
'editor':
'autoIndentOnPaste': true
'softTabs': true
'tabLength': 4
'commentStart': '// '
'increaseIndentPattern': '(if|elif).*(\\S+\\s+then)\\b.*$'
'increaseIndentPattern': '(for).*(\\... | true | # PI:NAME:<NAME>END_PI
# BMC tpl\tplre language settings.
# 2017-08-14 - Latest version.
# experimental:
'.source.tplpre':
'editor':
'autoIndentOnPaste': true
'softTabs': true
'tabLength': 4
'commentStart': '// '
'increaseIndentPattern': '(if|elif).*(\\S+\\s+then)\\b.*$'
'increaseIndentPattern... |
[
{
"context": "class Paladin\n key: 'paladin'\n name: 'paladin'\n\n genders: ['male', 'female']",
"end": 29,
"score": 0.9667465686798096,
"start": 22,
"tag": "USERNAME",
"value": "paladin"
},
{
"context": "class Paladin\n key: 'paladin'\n name: 'paladin'\n\n genders: ['male', 'f... | js/classes/paladin.coffee | ktchernov/7drl-lion.github.io | 27 | class Paladin
key: 'paladin'
name: 'paladin'
genders: ['male', 'female']
alignments: ['good']
races: ['human', 'giant', 'angel', 'elf', 'dwarf', 'hobbit']
base_hp: 10
base_mp: 10
base_speed: -30
base_attack: 4
base_sight_range: 0
skills: [
'healing_aura'
'smite'
'shield_bash'
'di... | 41470 | class Paladin
key: 'paladin'
name: '<NAME>'
genders: ['male', 'female']
alignments: ['good']
races: ['human', 'giant', 'angel', 'elf', 'dwarf', 'hobbit']
base_hp: 10
base_mp: 10
base_speed: -30
base_attack: 4
base_sight_range: 0
skills: [
'healing_aura'
'smite'
'shield_bash'
'div... | true | class Paladin
key: 'paladin'
name: 'PI:NAME:<NAME>END_PI'
genders: ['male', 'female']
alignments: ['good']
races: ['human', 'giant', 'angel', 'elf', 'dwarf', 'hobbit']
base_hp: 10
base_mp: 10
base_speed: -30
base_attack: 4
base_sight_range: 0
skills: [
'healing_aura'
'smite'
'shield_... |
[
{
"context": "peer dependencies yourself.”\n# https://github.com/roughcoder/grunt-humans-txt/pull/7\n# @robinpokorny version:\n",
"end": 401,
"score": 0.9992612600326538,
"start": 391,
"tag": "USERNAME",
"value": "roughcoder"
},
{
"context": "://github.com/roughcoder/grunt-humans-txt... | grunt/humans_txt.coffee | Kristinita/--- | 6 | ######################
## grunt-humans-txt ##
######################
# Generate humans.txt file:
# https://www.npmjs.com/package/grunt-humans-txt
# http://humanstxt.org/
# [WARNING] Generator outdated, you get a warning in console:
# “npm WARN grunt-humans-txt@0.2.1 requires a peer of grunt@~0.4.1 but none is installed... | 220919 | ######################
## grunt-humans-txt ##
######################
# Generate humans.txt file:
# https://www.npmjs.com/package/grunt-humans-txt
# http://humanstxt.org/
# [WARNING] Generator outdated, you get a warning in console:
# “npm WARN grunt-humans-txt@0.2.1 requires a peer of grunt@~0.4.1 but none is installed... | true | ######################
## grunt-humans-txt ##
######################
# Generate humans.txt file:
# https://www.npmjs.com/package/grunt-humans-txt
# http://humanstxt.org/
# [WARNING] Generator outdated, you get a warning in console:
# “npm WARN grunt-humans-txt@0.2.1 requires a peer of grunt@~0.4.1 but none is installed... |
[
{
"context": "ntinue\n\n key = if key is ' ' then '' else \"#{key}=\"\n str += '; ' if str isnt '' and key isnt",
"end": 565,
"score": 0.8636162281036377,
"start": 556,
"tag": "KEY",
"value": "\"#{key}=\""
}
] | src/mock-cookie.coffee | luanpotter/mock-cookie | 0 | # Support trim
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ""
# Support Getters/Setters
Function::property = (prop, desc) ->
Object.defineProperty @prototype, prop, desc
# Mock the document.cookie
class Document
constructor: (@_cookie = {}) ->
@_cookie = {}
@property 'cookie',
get: -... | 146957 | # Support trim
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ""
# Support Getters/Setters
Function::property = (prop, desc) ->
Object.defineProperty @prototype, prop, desc
# Mock the document.cookie
class Document
constructor: (@_cookie = {}) ->
@_cookie = {}
@property 'cookie',
get: -... | true | # Support trim
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ""
# Support Getters/Setters
Function::property = (prop, desc) ->
Object.defineProperty @prototype, prop, desc
# Mock the document.cookie
class Document
constructor: (@_cookie = {}) ->
@_cookie = {}
@property 'cookie',
get: -... |
[
{
"context": "->\n beforeEach -> forgotPassword.set email: 'user@example.com'\n\n it 'is ok', -> expect(forgotPassword.isVa",
"end": 479,
"score": 0.9999117851257324,
"start": 463,
"tag": "EMAIL",
"value": "user@example.com"
}
] | source/NuGet/coffeescript/content/Scripts/specs/application/models/forgotpassword.coffee | kazimanzurrashid/AspNetMvcBackboneJsSpa | 22 | expect = @chai.expect
describe 'Models.ForgotPassword', ->
forgotPassword = null
beforeEach -> forgotPassword = new Application.Models.ForgotPassword
describe '#defaults', ->
it 'has email', ->
expect(forgotPassword.defaults()).to.have.property 'email'
describe '#urlRoot', ->
it 'is set', -> e... | 7744 | expect = @chai.expect
describe 'Models.ForgotPassword', ->
forgotPassword = null
beforeEach -> forgotPassword = new Application.Models.ForgotPassword
describe '#defaults', ->
it 'has email', ->
expect(forgotPassword.defaults()).to.have.property 'email'
describe '#urlRoot', ->
it 'is set', -> e... | true | expect = @chai.expect
describe 'Models.ForgotPassword', ->
forgotPassword = null
beforeEach -> forgotPassword = new Application.Models.ForgotPassword
describe '#defaults', ->
it 'has email', ->
expect(forgotPassword.defaults()).to.have.property 'email'
describe '#urlRoot', ->
it 'is set', -> e... |
[
{
"context": ".glog([\"Test Glog\"])\n\n\t.open(\"Level 2b\")\n\t.add \"2bshit\"\n\n_.glog(\"Test Glog\").print(0)\n\n_.glog \"Witnesses",
"end": 8296,
"score": 0.996222734451294,
"start": 8292,
"tag": "NAME",
"value": "shit"
}
] | utility.coffee | michael-lumley/morslamina-utility | 0 | _ = require("underscore")
m$ = {}
# Utility Functions @fold
String.prototype.toDash = () ->
@replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()
String.prototype.frontCap = () ->
@charAt(0).toUpperCase() + @slice(1);
String.prototype.pluralize = (revert = false)->
plural = {
'(quiz)$' : "$1zes",
'^(ox)$... | 170557 | _ = require("underscore")
m$ = {}
# Utility Functions @fold
String.prototype.toDash = () ->
@replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()
String.prototype.frontCap = () ->
@charAt(0).toUpperCase() + @slice(1);
String.prototype.pluralize = (revert = false)->
plural = {
'(quiz)$' : "$1zes",
'^(ox)$... | true | _ = require("underscore")
m$ = {}
# Utility Functions @fold
String.prototype.toDash = () ->
@replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()
String.prototype.frontCap = () ->
@charAt(0).toUpperCase() + @slice(1);
String.prototype.pluralize = (revert = false)->
plural = {
'(quiz)$' : "$1zes",
'^(ox)$... |
[
{
"context": "require '../lib/hmac-sha1')\n consumer_key = '10204'\n consumer_secret = 'secret-shhh'\n\n pro",
"end": 290,
"score": 0.9991558790206909,
"start": 285,
"tag": "KEY",
"value": "10204"
},
{
"context": " consumer_key = '10204'\n consumer_secret = 'secr... | test/Provider.coffee | iturgeon/ims-lti | 4 | should = require 'should'
lti = require '../'
describe 'LTI.Provider', () ->
before ()=>
@lti = lti
describe 'Initialization', () =>
it 'should accept (consumer_key, consumer_secret)', () =>
sig = new (require '../lib/hmac-sha1')
consumer_key = '10204'
consumer_secret = 'sec... | 88640 | should = require 'should'
lti = require '../'
describe 'LTI.Provider', () ->
before ()=>
@lti = lti
describe 'Initialization', () =>
it 'should accept (consumer_key, consumer_secret)', () =>
sig = new (require '../lib/hmac-sha1')
consumer_key = '<KEY>'
consumer_secret = '<KE... | true | should = require 'should'
lti = require '../'
describe 'LTI.Provider', () ->
before ()=>
@lti = lti
describe 'Initialization', () =>
it 'should accept (consumer_key, consumer_secret)', () =>
sig = new (require '../lib/hmac-sha1')
consumer_key = 'PI:KEY:<KEY>END_PI'
consumer_... |
[
{
"context": "beforeEach ->\n\t\t@user =\n\t\t\t_id: 'abcd'\n\t\t\temail: 'user@example.com'\n\t\t@UserGetter =\n\t\t\tgetUser: sinon.stub().callsAr",
"end": 405,
"score": 0.9999149441719055,
"start": 389,
"tag": "EMAIL",
"value": "user@example.com"
},
{
"context": "oller =\n\t\t\tge... | test/unit/coffee/SudoMode/SudoModeControllerTests.coffee | shyoshyo/web-sharelatex | 1 | SandboxedModule = require('sandboxed-module')
sinon = require 'sinon'
should = require("chai").should()
expect = require('chai').expect
MockRequest = require "../helpers/MockRequest"
MockResponse = require "../helpers/MockResponse"
modulePath = '../../../../app/js/Features/SudoMode/SudoModeController'
describe 'SudoMo... | 49625 | SandboxedModule = require('sandboxed-module')
sinon = require 'sinon'
should = require("chai").should()
expect = require('chai').expect
MockRequest = require "../helpers/MockRequest"
MockResponse = require "../helpers/MockResponse"
modulePath = '../../../../app/js/Features/SudoMode/SudoModeController'
describe 'SudoMo... | true | SandboxedModule = require('sandboxed-module')
sinon = require 'sinon'
should = require("chai").should()
expect = require('chai').expect
MockRequest = require "../helpers/MockRequest"
MockResponse = require "../helpers/MockResponse"
modulePath = '../../../../app/js/Features/SudoMode/SudoModeController'
describe 'SudoMo... |
[
{
"context": "iew Tests for max-classes-per-file rule.\n# @author James Garbutt <https://github.com/43081j>\n###\n'use strict'\n\n#--",
"end": 81,
"score": 0.999878466129303,
"start": 68,
"tag": "NAME",
"value": "James Garbutt"
},
{
"context": "rule.\n# @author James Garbutt <https:/... | src/tests/rules/max-classes-per-file.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for max-classes-per-file rule.
# @author James Garbutt <https://github.com/43081j>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '... | 122328 | ###*
# @fileoverview Tests for max-classes-per-file rule.
# @author <NAME> <https://github.com/43081j>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/... | true | ###*
# @fileoverview Tests for max-classes-per-file rule.
# @author PI:NAME:<NAME>END_PI <https://github.com/43081j>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = re... |
[
{
"context": "stylus = require 'stylus'\nbanner = 'Copyright 2015 Thomas Yang http://thomas-yang.me/'\n\npaths =\n src: path.join",
"end": 132,
"score": 0.9996479749679565,
"start": 121,
"tag": "NAME",
"value": "Thomas Yang"
}
] | webpack.config.coffee | Hacker-YHJ/SingleElementForPhilographics | 2 | webpack = require 'webpack'
path = require 'path'
nib = require 'nib'
stylus = require 'stylus'
banner = 'Copyright 2015 Thomas Yang http://thomas-yang.me/'
paths =
src: path.join(__dirname, 'src')
dest: path.join(__dirname, 'dist')
module.exports =
entry: [
'webpack/hot/dev-server',
'webpack-dev-server... | 159532 | webpack = require 'webpack'
path = require 'path'
nib = require 'nib'
stylus = require 'stylus'
banner = 'Copyright 2015 <NAME> http://thomas-yang.me/'
paths =
src: path.join(__dirname, 'src')
dest: path.join(__dirname, 'dist')
module.exports =
entry: [
'webpack/hot/dev-server',
'webpack-dev-server/clie... | true | webpack = require 'webpack'
path = require 'path'
nib = require 'nib'
stylus = require 'stylus'
banner = 'Copyright 2015 PI:NAME:<NAME>END_PI http://thomas-yang.me/'
paths =
src: path.join(__dirname, 'src')
dest: path.join(__dirname, 'dist')
module.exports =
entry: [
'webpack/hot/dev-server',
'webpack-d... |
[
{
"context": "rtices.length]\n if v1 <= v2\n key = \"#{v1},#{v2}\"\n else\n key = \"#{v2},#{v1}\"\n ",
"end": 7088,
"score": 0.9987239837646484,
"start": 7075,
"tag": "KEY",
"value": "\"#{v1},#{v2}\""
},
{
"context": " key = \"#{v1},#{v2}\"\n ... | src/convert.coffee | pimmu1s/fold | 231 | ### FOLD FORMAT MANIPULATORS ###
geom = require './geom'
filter = require './filter'
convert = exports
convert.edges_vertices_to_vertices_vertices_unsorted = (fold) ->
###
Works for abstract structures, so NOT SORTED.
Use sort_vertices_vertices to sort in counterclockwise order.
###
fold.vertices_vertices =... | 122684 | ### FOLD FORMAT MANIPULATORS ###
geom = require './geom'
filter = require './filter'
convert = exports
convert.edges_vertices_to_vertices_vertices_unsorted = (fold) ->
###
Works for abstract structures, so NOT SORTED.
Use sort_vertices_vertices to sort in counterclockwise order.
###
fold.vertices_vertices =... | true | ### FOLD FORMAT MANIPULATORS ###
geom = require './geom'
filter = require './filter'
convert = exports
convert.edges_vertices_to_vertices_vertices_unsorted = (fold) ->
###
Works for abstract structures, so NOT SORTED.
Use sort_vertices_vertices to sort in counterclockwise order.
###
fold.vertices_vertices =... |
[
{
"context": "OSE Integration Test Suite\", ->\n\n\trecord = name: \"Gemma\", age: 24\n\n\tinputKey = {\n\t\tkty: 'oct'\n\t\tkid: 'c93",
"end": 191,
"score": 0.9997566938400269,
"start": 186,
"tag": "NAME",
"value": "Gemma"
},
{
"context": "d = name: \"Gemma\", age: 24\n\n\tinputKey ... | spec/joseIntegrationSpec.coffee | privatwolke/collections.coffee | 0 | collections = require "../src/collections"
collections_jose = require "../src/collections-jose"
jose = require "node-jose"
describe "JOSE Integration Test Suite", ->
record = name: "Gemma", age: 24
inputKey = {
kty: 'oct'
kid: 'c93a540b-cb2d-4ebe-b8fa-b7d63a2da4a0'
k: 'TLznmW6vAmqYQPBAwYrKIg6WZyIpwMVZrMCm3X... | 198360 | collections = require "../src/collections"
collections_jose = require "../src/collections-jose"
jose = require "node-jose"
describe "JOSE Integration Test Suite", ->
record = name: "<NAME>", age: 24
inputKey = {
kty: '<KEY>'
kid: '<KEY>'
k: '<KEY>'
}
beforeEach (done) ->
@keystore = jose.JWK.createKeyS... | true | collections = require "../src/collections"
collections_jose = require "../src/collections-jose"
jose = require "node-jose"
describe "JOSE Integration Test Suite", ->
record = name: "PI:NAME:<NAME>END_PI", age: 24
inputKey = {
kty: 'PI:KEY:<KEY>END_PI'
kid: 'PI:KEY:<KEY>END_PI'
k: 'PI:KEY:<KEY>END_PI'
}
b... |
[
{
"context": "includedPrivates: [\"name\", \"email\", \"firstName\", \"lastName\", \"coursePrepaid\", \"coursePrepaidID\"] }) for memb",
"end": 7078,
"score": 0.6983206868171692,
"start": 7070,
"tag": "NAME",
"value": "lastName"
},
{
"context": ")\n yield student.update({ $set: { ... | server/middleware/classrooms.coffee | johanvl/codecombat | 1 | _ = require 'lodash'
utils = require '../lib/utils'
errors = require '../commons/errors'
schemas = require '../../app/schemas/schemas'
wrap = require 'co-express'
log = require 'winston'
Promise = require 'bluebird'
database = require '../commons/database'
mongoose = require 'mongoose'
Classroom = require '../models/Cl... | 154827 | _ = require 'lodash'
utils = require '../lib/utils'
errors = require '../commons/errors'
schemas = require '../../app/schemas/schemas'
wrap = require 'co-express'
log = require 'winston'
Promise = require 'bluebird'
database = require '../commons/database'
mongoose = require 'mongoose'
Classroom = require '../models/Cl... | true | _ = require 'lodash'
utils = require '../lib/utils'
errors = require '../commons/errors'
schemas = require '../../app/schemas/schemas'
wrap = require 'co-express'
log = require 'winston'
Promise = require 'bluebird'
database = require '../commons/database'
mongoose = require 'mongoose'
Classroom = require '../models/Cl... |
[
{
"context": " analytics.__set__ 'opts', SEGMENT_WRITE_KEY: 'foobar'\n scope = this\n analytics.__set__ 'Analytic",
"end": 194,
"score": 0.7255129218101501,
"start": 188,
"tag": "KEY",
"value": "foobar"
}
] | test/app/analytics.coffee | eessex/artsy-passport | 0 | sinon = require 'sinon'
rewire = require 'rewire'
analytics = rewire '../../lib/app/analytics'
describe 'analytics', ->
beforeEach ->
analytics.__set__ 'opts', SEGMENT_WRITE_KEY: 'foobar'
scope = this
analytics.__set__ 'Analytics', class Analytics
constructor: ->
scope.analytics = this
... | 183101 | sinon = require 'sinon'
rewire = require 'rewire'
analytics = rewire '../../lib/app/analytics'
describe 'analytics', ->
beforeEach ->
analytics.__set__ 'opts', SEGMENT_WRITE_KEY: '<KEY>'
scope = this
analytics.__set__ 'Analytics', class Analytics
constructor: ->
scope.analytics = this
... | true | sinon = require 'sinon'
rewire = require 'rewire'
analytics = rewire '../../lib/app/analytics'
describe 'analytics', ->
beforeEach ->
analytics.__set__ 'opts', SEGMENT_WRITE_KEY: 'PI:KEY:<KEY>END_PI'
scope = this
analytics.__set__ 'Analytics', class Analytics
constructor: ->
scope.analytic... |
[
{
"context": "#\n# Project's main unit\n#\n# Copyright (C) 2012 Nikolay Nemshilov\n#\nclass Tabs extends Element\n include: core.Opti",
"end": 64,
"score": 0.999881386756897,
"start": 47,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | ui/tabs/src/tabs.coffee | lovely-io/lovely.io-stl | 2 | #
# Project's main unit
#
# Copyright (C) 2012 Nikolay Nemshilov
#
class Tabs extends Element
include: core.Options
extend:
Options: # default options
idPrefix: ''
#
# Default constructor
#
constructor: (element, options)->
options = ext({}, options)
try
options = ext(options, JSON... | 207008 | #
# Project's main unit
#
# Copyright (C) 2012 <NAME>
#
class Tabs extends Element
include: core.Options
extend:
Options: # default options
idPrefix: ''
#
# Default constructor
#
constructor: (element, options)->
options = ext({}, options)
try
options = ext(options, JSON.parse(elem... | true | #
# Project's main unit
#
# Copyright (C) 2012 PI:NAME:<NAME>END_PI
#
class Tabs extends Element
include: core.Options
extend:
Options: # default options
idPrefix: ''
#
# Default constructor
#
constructor: (element, options)->
options = ext({}, options)
try
options = ext(options, J... |
[
{
"context": "[\n {\n title: \"Spyns\"\n group: \"Development\"\n paths: [\n \"~/D",
"end": 23,
"score": 0.9994957447052002,
"start": 18,
"tag": "NAME",
"value": "Spyns"
}
] | atom/dot-atom/projects.leopard-jkg.cson | jkglasbrenner/dotfiles | 0 | [
{
title: "Spyns"
group: "Development"
paths: [
"~/Development/spyns"
]
},
{
title: "CSI-702: Homework02 Instructor Attempt"
group: "Mason Spring 2017"
paths: [
"~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/homework02-instru... | 4290 | [
{
title: "<NAME>"
group: "Development"
paths: [
"~/Development/spyns"
]
},
{
title: "CSI-702: Homework02 Instructor Attempt"
group: "Mason Spring 2017"
paths: [
"~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/homework02-instr... | true | [
{
title: "PI:NAME:<NAME>END_PI"
group: "Development"
paths: [
"~/Development/spyns"
]
},
{
title: "CSI-702: Homework02 Instructor Attempt"
group: "Mason Spring 2017"
paths: [
"~/Documents/work/teaching/2017_Spring_Semester/CSI-702_High_Performance_Computing/assignments/ho... |
[
{
"context": "ongoose.resources/users/create\",\n {email: 'jon@test.com'}, (err, result) =>\n\n # Then I should ge",
"end": 2156,
"score": 0.9999208450317383,
"start": 2144,
"tag": "EMAIL",
"value": "jon@test.com"
},
{
"context": " 'expected user'\n user.emai... | test/run.coffee | TorchlightSoftware/axiom-mongoose | 0 | {join} = require 'path'
rel = (args...) -> join __dirname, '..', args...
should = require 'should'
axiom = require 'axiom'
_ = require 'lodash'
db = require 'mongoose'
axiomMongoose = require '..'
describe 'Mongoose Run', ->
before (done) ->
axiom.wireUpLoggers [{writer: 'console', level: 'warning'}]
axio... | 166497 | {join} = require 'path'
rel = (args...) -> join __dirname, '..', args...
should = require 'should'
axiom = require 'axiom'
_ = require 'lodash'
db = require 'mongoose'
axiomMongoose = require '..'
describe 'Mongoose Run', ->
before (done) ->
axiom.wireUpLoggers [{writer: 'console', level: 'warning'}]
axio... | true | {join} = require 'path'
rel = (args...) -> join __dirname, '..', args...
should = require 'should'
axiom = require 'axiom'
_ = require 'lodash'
db = require 'mongoose'
axiomMongoose = require '..'
describe 'Mongoose Run', ->
before (done) ->
axiom.wireUpLoggers [{writer: 'console', level: 'warning'}]
axio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.