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": " hubot XXX [<args>] - DESCRIPTION\n#\n# Author:\n# bouzuya <m@bouzuya.net>\n#\nmodule.exports = (robot) ->\n r",
"end": 179,
"score": 0.9997251629829407,
"start": 172,
"tag": "USERNAME",
"value": "bouzuya"
},
{
"context": "X [<args>] - DESCRIPTION\n#\n# Author:\n# ... | src/scripts/rot13.coffee | bouzuya/hubot-rot13 | 1 | # Description
# A Hubot script that DESCRIPTION
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot XXX [<args>] - DESCRIPTION
#
# Author:
# bouzuya <m@bouzuya.net>
#
module.exports = (robot) ->
rot13 = (keyword) ->
original = 'abcdefghijklmnopqrstuvwxyz'
keyword
.split ''... | 73217 | # Description
# A Hubot script that DESCRIPTION
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot XXX [<args>] - DESCRIPTION
#
# Author:
# bouzuya <<EMAIL>>
#
module.exports = (robot) ->
rot13 = (keyword) ->
original = 'abcdefghijklmnopqrstuvwxyz'
keyword
.split ''
... | true | # Description
# A Hubot script that DESCRIPTION
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot XXX [<args>] - DESCRIPTION
#
# Author:
# bouzuya <PI:EMAIL:<EMAIL>END_PI>
#
module.exports = (robot) ->
rot13 = (keyword) ->
original = 'abcdefghijklmnopqrstuvwxyz'
keyword
... |
[
{
"context": " secretLock = (\"00\": bytes);\n secretKey = (\"00\": bytes) ];\n \n const states_INVALID : nat =",
"end": 18050,
"score": 0.9604810476303101,
"start": 18049,
"tag": "KEY",
"value": "0"
},
{
"context": "ecretLock = secretLock_;\n secretKey = (\"00\":... | test/translate_ligo_online_examples.coffee | madfish-solutions/sol2ligo | 66 | config = require "../src/config"
{
translate_ligo_make_test : make_test
} = require("./util")
describe "translate ligo online examples", ()->
@timeout 10000
# NOTE some duplication with other tests
# ###################################################################################################
it "int a... | 150885 | config = require "../src/config"
{
translate_ligo_make_test : make_test
} = require("./util")
describe "translate ligo online examples", ()->
@timeout 10000
# NOTE some duplication with other tests
# ###################################################################################################
it "int a... | true | config = require "../src/config"
{
translate_ligo_make_test : make_test
} = require("./util")
describe "translate ligo online examples", ()->
@timeout 10000
# NOTE some duplication with other tests
# ###################################################################################################
it "int a... |
[
{
"context": "e\"]?.value)\n when \"email\" then email\n when \"samaccountname\" then lowerId\n else email\n\n uaacCreateUserReq",
"end": 10626,
"score": 0.9996519088745117,
"start": 10612,
"tag": "USERNAME",
"value": "samaccountname"
},
{
"context": "\n uaacChangePassword... | routes/cfapi.coffee | MonsantoCo/cf-users | 14 | Promise = require 'promise'
adminOauth = require "./AdminOauth"
uaaadminOauth = require "./uaaAdminOauth"
services = require "./serviceBindings"
requestjs = require 'request'
cfapi = {}
adminOauth.initOauth2()
uaaadminOauth.initOauth2()
cfapi.allOrganizations = (req,res) ->
fetchAllOrganizations(req.headers['author... | 97005 | Promise = require 'promise'
adminOauth = require "./AdminOauth"
uaaadminOauth = require "./uaaAdminOauth"
services = require "./serviceBindings"
requestjs = require 'request'
cfapi = {}
adminOauth.initOauth2()
uaaadminOauth.initOauth2()
cfapi.allOrganizations = (req,res) ->
fetchAllOrganizations(req.headers['author... | true | Promise = require 'promise'
adminOauth = require "./AdminOauth"
uaaadminOauth = require "./uaaAdminOauth"
services = require "./serviceBindings"
requestjs = require 'request'
cfapi = {}
adminOauth.initOauth2()
uaaadminOauth.initOauth2()
cfapi.allOrganizations = (req,res) ->
fetchAllOrganizations(req.headers['author... |
[
{
"context": "g-schema\")\n\n @username = @config.username # \"email@domain.com\";\n @password = @config.password #\"a1b2c3d4\";",
"end": 524,
"score": 0.9999203681945801,
"start": 508,
"tag": "EMAIL",
"value": "email@domain.com"
},
{
"context": "domain.com\";\n @passw... | pimatic-bluelink.coffee | bertreb/pimatic-bluelink | 1 | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
M = env.matcher
_ = require('lodash')
fs = require('fs')
path = require('path')
#Bluelinky = require('kuvork')
Bluelinky = require('bluelinky')
class BluelinkPlugin extends env.plugins.Plugin
init: (app, @fr... | 119974 | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
M = env.matcher
_ = require('lodash')
fs = require('fs')
path = require('path')
#Bluelinky = require('kuvork')
Bluelinky = require('bluelinky')
class BluelinkPlugin extends env.plugins.Plugin
init: (app, @fr... | true | module.exports = (env) ->
Promise = env.require 'bluebird'
assert = env.require 'cassert'
M = env.matcher
_ = require('lodash')
fs = require('fs')
path = require('path')
#Bluelinky = require('kuvork')
Bluelinky = require('bluelinky')
class BluelinkPlugin extends env.plugins.Plugin
init: (app, @fr... |
[
{
"context": "lte lat, lng, und zoom von der aktuellen Karte\n #@map_handler.getMap().getCenter(); // --> .lat(), .lng()\n #@map_handl",
"end": 1972,
"score": 0.953532874584198,
"start": 1952,
"tag": "EMAIL",
"value": "#@map_handler.getMap"
},
{
"context": "er.getMap().getCente... | app/assets/javascripts/points.js.coffee | Bjoernsen/geopoints | 0 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
window.markers = []
jQuery ->
map_handler = false
opt = false
points = []
init_map = (map_id, get_opt... | 47998 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
window.markers = []
jQuery ->
map_handler = false
opt = false
points = []
init_map = (map_id, get_opt... | true | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
window.markers = []
jQuery ->
map_handler = false
opt = false
points = []
init_map = (map_id, get_opt... |
[
{
"context": "# Hey-Coffee!\n# TJ Eastmond - tj.eastmond@gmail.com\n# Copyright 2013\n\nfs = re",
"end": 27,
"score": 0.9998341798782349,
"start": 16,
"tag": "NAME",
"value": "TJ Eastmond"
},
{
"context": "# Hey-Coffee!\n# TJ Eastmond - tj.eastmond@gmail.com\n# Copyright 2013\n\nfs =... | hey.coffee | tjeastmond/hey-coffee | 1 | # Hey-Coffee!
# TJ Eastmond - tj.eastmond@gmail.com
# Copyright 2013
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
http = require 'http'
url = require 'url'
{spawn, exec} = require 'child_process'
async = require 'async'
_ = require 'underscore'
marked = require 'marked'
handlebars = require 'handl... | 80890 | # Hey-Coffee!
# <NAME> - <EMAIL>
# Copyright 2013
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
http = require 'http'
url = require 'url'
{spawn, exec} = require 'child_process'
async = require 'async'
_ = require 'underscore'
marked = require 'marked'
handlebars = require 'handlebars'
mkdirp = req... | true | # Hey-Coffee!
# PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
# Copyright 2013
fs = require 'fs'
path = require 'path'
crypto = require 'crypto'
http = require 'http'
url = require 'url'
{spawn, exec} = require 'child_process'
async = require 'async'
_ = require 'underscore'
marked = require 'marked'
handlebars = requ... |
[
{
"context": "_GIT_URL}:#{gitlab_name}.git\"\n githubRemote = \"git@github.com:#{GITHUB_ORG}/#{github_name}.git\"\n\n rm \"-rf\", ",
"end": 392,
"score": 0.9909152984619141,
"start": 378,
"tag": "EMAIL",
"value": "git@github.com"
},
{
"context": "URL}:#{gitlab_name}.wiki.git\"\... | lib/git.coffee | leilerg/gitlab-github-migrate | 62 | require('dotenv').load()
require 'shelljs/global'
_ = require 'underscore'
GitHub = require './github'
Git = module.exports =
migrateRepo: (options) ->
{ gitlab_name, github_name } = options
{ GITLAB_GIT_URL, GITHUB_ORG } = process.env
repo = "#{_.last(gitlab_name.split('/'))}.git"
gitlabRemote = "... | 140338 | require('dotenv').load()
require 'shelljs/global'
_ = require 'underscore'
GitHub = require './github'
Git = module.exports =
migrateRepo: (options) ->
{ gitlab_name, github_name } = options
{ GITLAB_GIT_URL, GITHUB_ORG } = process.env
repo = "#{_.last(gitlab_name.split('/'))}.git"
gitlabRemote = "... | true | require('dotenv').load()
require 'shelljs/global'
_ = require 'underscore'
GitHub = require './github'
Git = module.exports =
migrateRepo: (options) ->
{ gitlab_name, github_name } = options
{ GITLAB_GIT_URL, GITHUB_ORG } = process.env
repo = "#{_.last(gitlab_name.split('/'))}.git"
gitlabRemote = "... |
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998300671577454,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/light/light.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licenc... | 204592 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
<NAME> - <EMAIL>
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.tx... | true | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
http://pxljs.com
This software is released under th... |
[
{
"context": "\n ###\n uBerscore adaptation of deepExtend, by [Kurt Milam](https://gist.github.com/1868955)\n\n Its mainly ",
"end": 202,
"score": 0.999880850315094,
"start": 192,
"tag": "NAME",
"value": "Kurt Milam"
},
{
"context": "pExtend, by [Kurt Milam](https://gist.github.... | source/code/blending/blenders/DeepExtendBlender.coffee | anodynos/uBerscore | 1 | #Blender = require '../Blender'
#if true
define ['../Blender'], (Blender)->
l = new (require '../../Logger') 'uberscore/DeepExtendBlender'
###
uBerscore adaptation of deepExtend, by [Kurt Milam](https://gist.github.com/1868955)
Its mainly a demonstration of uBerscore's _B.Blender abilities.
It can be ea... | 40470 | #Blender = require '../Blender'
#if true
define ['../Blender'], (Blender)->
l = new (require '../../Logger') 'uberscore/DeepExtendBlender'
###
uBerscore adaptation of deepExtend, by [<NAME>](https://gist.github.com/1868955)
Its mainly a demonstration of uBerscore's _B.Blender abilities.
It can be easily... | true | #Blender = require '../Blender'
#if true
define ['../Blender'], (Blender)->
l = new (require '../../Logger') 'uberscore/DeepExtendBlender'
###
uBerscore adaptation of deepExtend, by [PI:NAME:<NAME>END_PI](https://gist.github.com/1868955)
Its mainly a demonstration of uBerscore's _B.Blender abilities.
It... |
[
{
"context": "sion =\n 'Core': [\n {\n name: 'X-Wing'\n type: 'ship'\n count: 1\n ",
"end": 363,
"score": 0.9993854761123657,
"start": 357,
"tag": "NAME",
"value": "X-Wing"
},
{
"context": " count: 1\n }\n {\n name... | coffeescripts/manifest.coffee | cbmainz/xwing | 0 | exportObj = exports ? this
String::startsWith ?= (t) ->
@indexOf t == 0
sortWithoutQuotes = (a, b) ->
a_name = a.replace /[^a-z0-9]/ig, ''
b_name = b.replace /[^a-z0-9]/ig, ''
if a_name < b_name
-1
else if a_name > b_name
1
else
0
exportObj.manifestByExpansion =
'C... | 202578 | exportObj = exports ? this
String::startsWith ?= (t) ->
@indexOf t == 0
sortWithoutQuotes = (a, b) ->
a_name = a.replace /[^a-z0-9]/ig, ''
b_name = b.replace /[^a-z0-9]/ig, ''
if a_name < b_name
-1
else if a_name > b_name
1
else
0
exportObj.manifestByExpansion =
'C... | true | exportObj = exports ? this
String::startsWith ?= (t) ->
@indexOf t == 0
sortWithoutQuotes = (a, b) ->
a_name = a.replace /[^a-z0-9]/ig, ''
b_name = b.replace /[^a-z0-9]/ig, ''
if a_name < b_name
-1
else if a_name > b_name
1
else
0
exportObj.manifestByExpansion =
'C... |
[
{
"context": "d, 'user'\n test.equal opts.token, 'pass'\n super opts\n\n opts = {\n ",
"end": 1077,
"score": 0.9305680990219116,
"start": 1073,
"tag": "PASSWORD",
"value": "pass"
},
{
"context": " = {\n uuid: 'user'\n token... | test/octoblu-backend.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'
OctobluBackend = require '../src/octoblu-backend.coffee'
Thing = require '../src/thing.coffee'
Property = require '../src/p... | 84539 | # 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'
OctobluBackend = require '../src/octoblu-backend.coffee'
Thing = require '../src/thing.coffee'
Property = require '../src/p... | 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'
OctobluBackend = require '../src/octoblu-backend.coffee'
Thing = require '../src/thing.coffee'
Property = require '../src/p... |
[
{
"context": "eydown\", charCode: 0, keyCode: 0, which: 0, key: \"👏🏻\")\n triggerEvent(element, \"keypress\", charCod",
"end": 2447,
"score": 0.7103402018547058,
"start": 2445,
"tag": "KEY",
"value": "👏🏻"
},
{
"context": "de: 128079, keyCode: 128079, which: 128079, key: \"👏... | test/src/system/mutation_input_test.coffee | setastart/trix | 0 | {assert, defer, testIf, testGroup, triggerEvent, typeCharacters, clickToolbarButton, isToolbarButtonActive, insertNode} = Trix.TestHelpers
test = ->
testIf(Trix.config.input.getLevel() is 0, arguments...)
testGroup "Mutation input", template: "editor_empty", ->
test "deleting a newline", (expectDocument) ->
e... | 158231 | {assert, defer, testIf, testGroup, triggerEvent, typeCharacters, clickToolbarButton, isToolbarButtonActive, insertNode} = Trix.TestHelpers
test = ->
testIf(Trix.config.input.getLevel() is 0, arguments...)
testGroup "Mutation input", template: "editor_empty", ->
test "deleting a newline", (expectDocument) ->
e... | true | {assert, defer, testIf, testGroup, triggerEvent, typeCharacters, clickToolbarButton, isToolbarButtonActive, insertNode} = Trix.TestHelpers
test = ->
testIf(Trix.config.input.getLevel() is 0, arguments...)
testGroup "Mutation input", template: "editor_empty", ->
test "deleting a newline", (expectDocument) ->
e... |
[
{
"context": "Questions? Burning rage? Direct your hatemail to <ddrinkard@sunlightfoundation.com>\n###\n\n@$ = window.jQuery\n@gigya = window.gigya\n@e",
"end": 943,
"score": 0.999923825263977,
"start": 911,
"tag": "EMAIL",
"value": "ddrinkard@sunlightfoundation.com"
}
] | src/gigya.coffee | sunlightlabs/simple-gigya | 1 | ###
Gigya social sharing buttons
============================
Adds social media buttons to an element decorated with data-attrs.
Requires jQuery, but will poll for it if loaded first
Supports multiple sharing contexts on one page
Usage:
<div class="share-buttons"
data-gigya="auto"
data-services="twitter, tw... | 206096 | ###
Gigya social sharing buttons
============================
Adds social media buttons to an element decorated with data-attrs.
Requires jQuery, but will poll for it if loaded first
Supports multiple sharing contexts on one page
Usage:
<div class="share-buttons"
data-gigya="auto"
data-services="twitter, tw... | true | ###
Gigya social sharing buttons
============================
Adds social media buttons to an element decorated with data-attrs.
Requires jQuery, but will poll for it if loaded first
Supports multiple sharing contexts on one page
Usage:
<div class="share-buttons"
data-gigya="auto"
data-services="twitter, tw... |
[
{
"context": "original_id:\"656258342147502080\",\n \tcontent:\"RT @GingerLanier: Putin and the Shiite 'Axis of Resistance' http:/",
"end": 125,
"score": 0.9965165853500366,
"start": 112,
"tag": "USERNAME",
"value": "@GingerLanier"
},
{
"context": "0.jpg\",\n \tfrom_id:\"308130... | test/object_test.coffee | rubenv/node-xlsx-writer | 15 | test = require('./common')
test 'object-test', [
{
original_id:"656258342147502080",
content:"RT @GingerLanier: Putin and the Shiite 'Axis of Resistance' http://t.co/eumnAIIrTV",
date_created:"2015-10-19 23:59:16",
from_display_picture:"http://pbs.twimg.com/profile_images/651504414998396928/hdo... | 154252 | test = require('./common')
test 'object-test', [
{
original_id:"656258342147502080",
content:"RT @GingerLanier: Putin and the Shiite 'Axis of Resistance' http://t.co/eumnAIIrTV",
date_created:"2015-10-19 23:59:16",
from_display_picture:"http://pbs.twimg.com/profile_images/651504414998396928/hdo... | true | test = require('./common')
test 'object-test', [
{
original_id:"656258342147502080",
content:"RT @GingerLanier: Putin and the Shiite 'Axis of Resistance' http://t.co/eumnAIIrTV",
date_created:"2015-10-19 23:59:16",
from_display_picture:"http://pbs.twimg.com/profile_images/651504414998396928/hdo... |
[
{
"context": "-- gets tags to silence\n#\n# Notes:\n#\n# Author:\n# lukas.pustina@centerdevice.de\n#\n# Todos:\n# - Readme\n\nLog = require 'log'\nmoment",
"end": 1297,
"score": 0.9998080134391785,
"start": 1268,
"tag": "EMAIL",
"value": "lukas.pustina@centerdevice.de"
}
] | src/centerdevice.coffee | CenterDevice/hubot-centerdevice | 0 | # Description
# DevOps for CenterDevice via Hubot
#
# Configuration:
# HUBOT_CENTERDEVICE_ROLE -- Auth role required, e.g., "centerdevice"
# HUBOT_DEPLOYMENT_SILENCE_DURATION -- Duration of deployment silence, default is 15m
# HUBOT_CENTERDEVICE_LOG_LEVEL -- Log level, default is "info"
# HUBOT_CENTERDEVICE_B... | 6107 | # Description
# DevOps for CenterDevice via Hubot
#
# Configuration:
# HUBOT_CENTERDEVICE_ROLE -- Auth role required, e.g., "centerdevice"
# HUBOT_DEPLOYMENT_SILENCE_DURATION -- Duration of deployment silence, default is 15m
# HUBOT_CENTERDEVICE_LOG_LEVEL -- Log level, default is "info"
# HUBOT_CENTERDEVICE_B... | true | # Description
# DevOps for CenterDevice via Hubot
#
# Configuration:
# HUBOT_CENTERDEVICE_ROLE -- Auth role required, e.g., "centerdevice"
# HUBOT_DEPLOYMENT_SILENCE_DURATION -- Duration of deployment silence, default is 15m
# HUBOT_CENTERDEVICE_LOG_LEVEL -- Log level, default is "info"
# HUBOT_CENTERDEVICE_B... |
[
{
"context": "\n]\n\nclass Repository\n\n username: null\n password: null\n\n rootPath: null\n\n isHgRepository: false\n bina",
"end": 940,
"score": 0.9938230514526367,
"start": 936,
"tag": "PASSWORD",
"value": "null"
}
] | lib/hg-utils.coffee | victor-torres/atom-hg | 33 | fs = require 'fs'
path = require 'path'
util = require 'util'
urlParser = require 'url'
{spawnSync, exec} = require 'child_process'
diffLib = require 'jsdifflib'
###
Section: Constants used for file/buffer checking against changes
###
statusIndexNew = 1 << 0
statusIndexDeleted = 1 << 2
statusWorkingDirNew = 1 << 7
st... | 80151 | fs = require 'fs'
path = require 'path'
util = require 'util'
urlParser = require 'url'
{spawnSync, exec} = require 'child_process'
diffLib = require 'jsdifflib'
###
Section: Constants used for file/buffer checking against changes
###
statusIndexNew = 1 << 0
statusIndexDeleted = 1 << 2
statusWorkingDirNew = 1 << 7
st... | true | fs = require 'fs'
path = require 'path'
util = require 'util'
urlParser = require 'url'
{spawnSync, exec} = require 'child_process'
diffLib = require 'jsdifflib'
###
Section: Constants used for file/buffer checking against changes
###
statusIndexNew = 1 << 0
statusIndexDeleted = 1 << 2
statusWorkingDirNew = 1 << 7
st... |
[
{
"context": "ptions', 4, ->\n product1 = new @Product(name: \"testA\", cost: 20)\n product2 = new @Product(name: \"te",
"end": 605,
"score": 0.9799554347991943,
"start": 600,
"tag": "NAME",
"value": "testA"
},
{
"context": "tA\", cost: 20)\n product2 = new @Product(name: \"... | tests/batman/storage_adapter/local_storage_test.coffee | amco/batman | 0 | if typeof require isnt 'undefined'
{sharedStorageTestSuite} = require('./storage_adapter_helper')
else
{sharedStorageTestSuite} = window
if typeof window.localStorage isnt 'undefined'
QUnit.module "Batman.LocalStorage",
setup: ->
window.localStorage.clear()
class @Product extends Batman.Model
... | 66095 | if typeof require isnt 'undefined'
{sharedStorageTestSuite} = require('./storage_adapter_helper')
else
{sharedStorageTestSuite} = window
if typeof window.localStorage isnt 'undefined'
QUnit.module "Batman.LocalStorage",
setup: ->
window.localStorage.clear()
class @Product extends Batman.Model
... | true | if typeof require isnt 'undefined'
{sharedStorageTestSuite} = require('./storage_adapter_helper')
else
{sharedStorageTestSuite} = window
if typeof window.localStorage isnt 'undefined'
QUnit.module "Batman.LocalStorage",
setup: ->
window.localStorage.clear()
class @Product extends Batman.Model
... |
[
{
"context": "eys(env.languages).forEach (lang) =>\n key = \"language#{lang.toUpperCase()}\"\n val = @langIsSet(lang)\n @set(key, val)",
"end": 161,
"score": 0.990720272064209,
"start": 131,
"tag": "KEY",
"value": "language#{lang.toUpperCase()}\""
},
{
"context": "eys(... | app/assets/javascripts/mixins/language_settings.js.coffee | fwoeck/voice-rails | 1 | Voice.LanguageSettings = Ember.Mixin.create({
splitLanguages: ( ->
Ember.keys(env.languages).forEach (lang) =>
key = "language#{lang.toUpperCase()}"
val = @langIsSet(lang)
@set(key, val) if @get(key) != val
).observes('languages.[]')
langIsSet: (lang) ->
@get('languages').indexOf(lang... | 142024 | Voice.LanguageSettings = Ember.Mixin.create({
splitLanguages: ( ->
Ember.keys(env.languages).forEach (lang) =>
key = "<KEY>
val = @langIsSet(lang)
@set(key, val) if @get(key) != val
).observes('languages.[]')
langIsSet: (lang) ->
@get('languages').indexOf(lang) > -1
joinLanguages:... | true | Voice.LanguageSettings = Ember.Mixin.create({
splitLanguages: ( ->
Ember.keys(env.languages).forEach (lang) =>
key = "PI:KEY:<KEY>END_PI
val = @langIsSet(lang)
@set(key, val) if @get(key) != val
).observes('languages.[]')
langIsSet: (lang) ->
@get('languages').indexOf(lang) > -1
j... |
[
{
"context": "# WiFi SSID Widget\n#\n# Joe Kelley\n#\n# This widget displays the current connected Wi",
"end": 33,
"score": 0.9998694658279419,
"start": 23,
"tag": "NAME",
"value": "Joe Kelley"
}
] | wifi-network.coffee | Johngeorgesample/dhyanabar | 2 | # WiFi SSID Widget
#
# Joe Kelley
#
# This widget displays the current connected WiFi network name. It can be helpful if you are in an environment where multiple networks are available.
# It uses the built-in OS X airport framework to get and display the SSID name (up to 20 characters in length)
command: "/System/Li... | 90985 | # WiFi SSID Widget
#
# <NAME>
#
# This widget displays the current connected WiFi network name. It can be helpful if you are in an environment where multiple networks are available.
# It uses the built-in OS X airport framework to get and display the SSID name (up to 20 characters in length)
command: "/System/Librar... | true | # WiFi SSID Widget
#
# PI:NAME:<NAME>END_PI
#
# This widget displays the current connected WiFi network name. It can be helpful if you are in an environment where multiple networks are available.
# It uses the built-in OS X airport framework to get and display the SSID name (up to 20 characters in length)
command: "... |
[
{
"context": "'/shops').\n send({name: 'Shop name', email: 'myshop@email.com', password: '123456'}).\n end (err, res) ->\n ",
"end": 451,
"score": 0.9999238848686218,
"start": 435,
"tag": "EMAIL",
"value": "myshop@email.com"
},
{
"context": "Shop name', email: 'myshop@email... | test/shop/api.coffee | gertu/gertu | 1 | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
request = require "supertest"
Shop = mongoose.model "Shop"
server = request.agent(app)
apiPreffix = '/api/v1'
describe "General shop testing", ->
after (done) ->
Shop.remove().exec()
done()
it "should s... | 145865 | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
request = require "supertest"
Shop = mongoose.model "Shop"
server = request.agent(app)
apiPreffix = '/api/v1'
describe "General shop testing", ->
after (done) ->
Shop.remove().exec()
done()
it "should s... | true | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
request = require "supertest"
Shop = mongoose.model "Shop"
server = request.agent(app)
apiPreffix = '/api/v1'
describe "General shop testing", ->
after (done) ->
Shop.remove().exec()
done()
it "should s... |
[
{
"context": "\"|NACHOS\"+\n \"|NOM|NOMS\"+\n \"|POUNCE\" +\n \"|RICK ROLL WIT\" +\n \"|ROUND|ROYGEEBIF2|STRAIGHT\"+\n \"|SHOUT\"",
"end": 3100,
"score": 0.8411104083061218,
"start": 3087,
"tag": "NAME",
"value": "RICK ROLL WIT"
}
] | grammars/lulzcode.cson | ANDnXOR/atom-lulzcode | 1 | fileTypes: [
"lulz"
]
name: "Lolcode"
patterns: [
{
captures:
"1":
name: "storage.type.function.lol"
"2":
name: "entity.name.function.lol"
"3":
name: "punctuation.definition.parameters.begin.lol"
"4":
name: "variable.parameter.function.lol"
"6":
... | 110901 | fileTypes: [
"lulz"
]
name: "Lolcode"
patterns: [
{
captures:
"1":
name: "storage.type.function.lol"
"2":
name: "entity.name.function.lol"
"3":
name: "punctuation.definition.parameters.begin.lol"
"4":
name: "variable.parameter.function.lol"
"6":
... | true | fileTypes: [
"lulz"
]
name: "Lolcode"
patterns: [
{
captures:
"1":
name: "storage.type.function.lol"
"2":
name: "entity.name.function.lol"
"3":
name: "punctuation.definition.parameters.begin.lol"
"4":
name: "variable.parameter.function.lol"
"6":
... |
[
{
"context": "\n test 'urlFor(App.Post, onlyPath: false, user: \"lance\", password: \"pollard\")', ->\n path = Tower.urlF",
"end": 534,
"score": 0.9991903305053711,
"start": 529,
"tag": "USERNAME",
"value": "lance"
},
{
"context": ".Post, onlyPath: false, user: \"lance\", passwor... | test/cases/http/urlForTest.coffee | vjsingh/tower | 1 | require '../../config'
post = null
defaultUrlOptions = null
describe 'urlFor', ->
beforeEach ->
post = new App.Post(id: 10)
defaultUrlOptions =
onlyPath: true,
params: {}
trailingSlash: false,
host: "example.com"
test 'urlFor(App.Post, o... | 12428 | require '../../config'
post = null
defaultUrlOptions = null
describe 'urlFor', ->
beforeEach ->
post = new App.Post(id: 10)
defaultUrlOptions =
onlyPath: true,
params: {}
trailingSlash: false,
host: "example.com"
test 'urlFor(App.Post, o... | true | require '../../config'
post = null
defaultUrlOptions = null
describe 'urlFor', ->
beforeEach ->
post = new App.Post(id: 10)
defaultUrlOptions =
onlyPath: true,
params: {}
trailingSlash: false,
host: "example.com"
test 'urlFor(App.Post, o... |
[
{
"context": " 'prefix': 'password'\n 'body': 'password = \"$1\"'\n\n 'auth url':\n 'prefix': 'auth_url'\n 'bo",
"end": 3952,
"score": 0.8276898860931396,
"start": 3951,
"tag": "PASSWORD",
"value": "1"
}
] | snippets/snippets.cson | awilkins/language-terraform | 48 | '.source.terraform':
'variable':
'prefix': 'variable'
'body': """
variable "$1" {
default = "$2"
}$3
"""
'variable-map':
'prefix': 'variable-map'
'body': """
variable "${1:name}" {
type = "map"
default = {
${3:key1} = "${4:val1}"
${5:key2}... | 151379 | '.source.terraform':
'variable':
'prefix': 'variable'
'body': """
variable "$1" {
default = "$2"
}$3
"""
'variable-map':
'prefix': 'variable-map'
'body': """
variable "${1:name}" {
type = "map"
default = {
${3:key1} = "${4:val1}"
${5:key2}... | true | '.source.terraform':
'variable':
'prefix': 'variable'
'body': """
variable "$1" {
default = "$2"
}$3
"""
'variable-map':
'prefix': 'variable-map'
'body': """
variable "${1:name}" {
type = "map"
default = {
${3:key1} = "${4:val1}"
${5:key2}... |
[
{
"context": "# acorn.js 0.0.0\n# (c) 2012 Juan Batiz-Benet, Ali Yahya, Daniel Windham\n# Acorn is freely dis",
"end": 46,
"score": 0.9998525381088257,
"start": 30,
"tag": "NAME",
"value": "Juan Batiz-Benet"
},
{
"context": "# acorn.js 0.0.0\n# (c) 2012 Juan Batiz-Benet, Ali Yah... | coffee/src/acorn.coffee | athenalabs/acorn-player | 11 | # acorn.js 0.0.0
# (c) 2012 Juan Batiz-Benet, Ali Yahya, Daniel Windham
# Acorn is freely distributable under the MIT license.
# Inspired by github:gist.
# Portions of code from Underscore.js and Backbone.js
# For all details and documentation:
# http://github.com/athenalabs/acorn-player
acorn = (data) ->
aco... | 211034 | # acorn.js 0.0.0
# (c) 2012 <NAME>, <NAME>, <NAME>
# Acorn is freely distributable under the MIT license.
# Inspired by github:gist.
# Portions of code from Underscore.js and Backbone.js
# For all details and documentation:
# http://github.com/athenalabs/acorn-player
acorn = (data) ->
acorn.Model.withData dat... | true | # acorn.js 0.0.0
# (c) 2012 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
# Acorn is freely distributable under the MIT license.
# Inspired by github:gist.
# Portions of code from Underscore.js and Backbone.js
# For all details and documentation:
# http://github.com/athenalabs/acorn-player
ac... |
[
{
"context": "ect authors. All rights reserved.\n# Copyright 1996 John Maloney and Mario Wolczko.\n\n# This program is free softwa",
"end": 91,
"score": 0.9998623728752136,
"start": 79,
"tag": "NAME",
"value": "John Maloney"
},
{
"context": "rights reserved.\n# Copyright 1996 John Ma... | deps/v8/benchmarks/deltablue.coffee | lxe/io.coffee | 0 | # Copyright 2008 the V8 project authors. All rights reserved.
# Copyright 1996 John Maloney and Mario Wolczko.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, o... | 222223 | # Copyright 2008 the V8 project authors. All rights reserved.
# Copyright 1996 <NAME> and <NAME>.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your ... | true | # Copyright 2008 the V8 project authors. All rights reserved.
# Copyright 1996 PI:NAME:<NAME>END_PI and PI:NAME:<NAME>END_PI.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of... |
[
{
"context": "###\n# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)\n#",
"end": 21,
"score": 0.9986658096313477,
"start": 14,
"tag": "USERNAME",
"value": "iTonyYo"
},
{
"context": "###\n# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)\n# Last Update ... | node_modules/node-find-folder/gulp/clp.coffee | long-grass/mikey | 0 | ###
# Author: iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <ceo@holaever.com> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
parse_args = require 'minimist'
__args ... | 118130 | ###
# Author: iTonyYo <<EMAIL>> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <<EMAIL>> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
parse_args = require 'minimist'
__args = parse_args proc... | true | ###
# Author: iTonyYo <PI:EMAIL:<EMAIL>END_PI> (https://github.com/iTonyYo)
# Last Update (author): iTonyYo <PI:EMAIL:<EMAIL>END_PI> (https://github.com/iTonyYo)
###
'use strict'
cfg = require '../config.json'
gulp = require 'gulp'
$ = require('gulp-load-plugins')()
parse_args = require 'minimis... |
[
{
"context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http://o",
"end": 67,
"score": 0.9366964101791382,
"start": 62,
"tag": "NAME",
"value": "Hatio"
}
] | src/spec/SpecGroup.coffee | heartyoh/infopik | 0 | # ==========================================
# Copyright 2014 Hatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (dou, kin) ->
"use strict"
drag_handler = (e) ->
e.targetNode = this i... | 20539 | # ==========================================
# Copyright 2014 <NAME>, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (dou, kin) ->
"use strict"
drag_handler = (e) ->
e.targetNode = this ... | true | # ==========================================
# Copyright 2014 PI:NAME:<NAME>END_PI, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (dou, kin) ->
"use strict"
drag_handler = (e) ->
e.targ... |
[
{
"context": "\n\n compJID = \"comp.exmaple.tld\"\n clientJID = \"client@exmaple.tld\"\n\n createErrorIq = (type, code, msg, clazz, inst",
"end": 297,
"score": 0.9994378089904785,
"start": 279,
"tag": "EMAIL",
"value": "client@exmaple.tld"
},
{
"context": "ses\", ->\n\n cla... | spec/Manager.spec.coffee | flosse/node-xmpp-joap | 0 | chai = require 'chai'
expect = chai.expect
joap = require "../lib/node-xmpp-joap"
ltx = require "ltx"
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Manager", ->
compJID = "comp.exmaple.tld"
clientJID = "client@exmaple.tld"
createErrorIq = (t... | 199495 | chai = require 'chai'
expect = chai.expect
joap = require "../lib/node-xmpp-joap"
ltx = require "ltx"
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Manager", ->
compJID = "comp.exmaple.tld"
clientJID = "<EMAIL>"
createErrorIq = (type, code, ... | true | chai = require 'chai'
expect = chai.expect
joap = require "../lib/node-xmpp-joap"
ltx = require "ltx"
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Manager", ->
compJID = "comp.exmaple.tld"
clientJID = "PI:EMAIL:<EMAIL>END_PI"
createErrorIq ... |
[
{
"context": "ht?'\n options: [\n { value: 'male', text: 'Man' }\n { value: 'female', text: 'Vrouw' }\n ",
"end": 225,
"score": 0.9197440147399902,
"start": 222,
"tag": "NAME",
"value": "Man"
},
{
"context": "e', text: 'Man' }\n { value: 'female', text: 'Vrouw' ... | app/assets/javascripts/components/CompletionForm.coffee | roqua/screensmart | 2 | { div, input, option, span, small, ul, li, p, label, button, form, i } = React.DOM
{ reduxForm } = ReduxForm
questions = [
(
id: 'gender'
text: 'Wat is uw geslacht?'
options: [
{ value: 'male', text: 'Man' }
{ value: 'female', text: 'Vrouw' }
{ value: 'other', text: 'Anders' }
]
)... | 52081 | { div, input, option, span, small, ul, li, p, label, button, form, i } = React.DOM
{ reduxForm } = ReduxForm
questions = [
(
id: 'gender'
text: 'Wat is uw geslacht?'
options: [
{ value: 'male', text: '<NAME>' }
{ value: 'female', text: '<NAME>' }
{ value: 'other', text: '<NAME>' }
]... | true | { div, input, option, span, small, ul, li, p, label, button, form, i } = React.DOM
{ reduxForm } = ReduxForm
questions = [
(
id: 'gender'
text: 'Wat is uw geslacht?'
options: [
{ value: 'male', text: 'PI:NAME:<NAME>END_PI' }
{ value: 'female', text: 'PI:NAME:<NAME>END_PI' }
{ value: 'ot... |
[
{
"context": "'use strict'\n#\n# Ethan Mick\n# 2015\n#\n\nrequire('./lib/models/log')\n\n# connect ",
"end": 27,
"score": 0.9996950030326843,
"start": 17,
"tag": "NAME",
"value": "Ethan Mick"
}
] | init.coffee | ethanmick/metrics | 0 | 'use strict'
#
# Ethan Mick
# 2015
#
require('./lib/models/log')
# connect to the database
# Start Hapi
Server = require './lib/server'
log = require 'winston'
config = require './config'
log.debug 'Start up', config
###
# ToDo: Move this when we have a global config object
###
s = new Server(config.http)
s.set... | 14224 | 'use strict'
#
# <NAME>
# 2015
#
require('./lib/models/log')
# connect to the database
# Start Hapi
Server = require './lib/server'
log = require 'winston'
config = require './config'
log.debug 'Start up', config
###
# ToDo: Move this when we have a global config object
###
s = new Server(config.http)
s.setup(c... | true | 'use strict'
#
# PI:NAME:<NAME>END_PI
# 2015
#
require('./lib/models/log')
# connect to the database
# Start Hapi
Server = require './lib/server'
log = require 'winston'
config = require './config'
log.debug 'Start up', config
###
# ToDo: Move this when we have a global config object
###
s = new Server(config.ht... |
[
{
"context": "gent'\n]\n\nclass LocalStamp\n\n constructor: (@id = 'test', @config = {})->\n @logger = klogger.getLogger",
"end": 2153,
"score": 0.9755637645721436,
"start": 2149,
"tag": "USERNAME",
"value": "test"
},
{
"context": " roles: ['ADMIN']\n 'addresses':... | src/local-stamp.coffee | iti-ict/localstamp | 1 | Launcher = require './component-launcher'
MockPlanner = require './mock-planner'
MockRouterAgent = require './mock-ra'
WebsocketPublisher = require './websocket-publisher'
Resources = require './resources'
State = require './state'
q = require 'q'
net = require 'n... | 88527 | Launcher = require './component-launcher'
MockPlanner = require './mock-planner'
MockRouterAgent = require './mock-ra'
WebsocketPublisher = require './websocket-publisher'
Resources = require './resources'
State = require './state'
q = require 'q'
net = require 'n... | true | Launcher = require './component-launcher'
MockPlanner = require './mock-planner'
MockRouterAgent = require './mock-ra'
WebsocketPublisher = require './websocket-publisher'
Resources = require './resources'
State = require './state'
q = require 'q'
net = require 'n... |
[
{
"context": "lse\n if indisponibil\n return null if name != \"Pret Minim\"\n return <p className={\"#{name} field #{ if in",
"end": 207,
"score": 0.9995617866516113,
"start": 197,
"tag": "NAME",
"value": "Pret Minim"
},
{
"context": "ibil\" else \"\" }\"}>Indisponibil</p>\n\n... | custom/renderers/Pret.coffee | alin23/liftoff | 0 | import React from 'react'
Pret = ({ name, value, row = {} }) ->
indisponibil = row.fields.filter((f) -> f.name == "Indisponibil")[0]?.value ? false
if indisponibil
return null if name != "Pret Minim"
return <p className={"#{name} field #{ if indisponibil then "indisponibil" else "" }"}>Indisponibil</p>
... | 157654 | import React from 'react'
Pret = ({ name, value, row = {} }) ->
indisponibil = row.fields.filter((f) -> f.name == "Indisponibil")[0]?.value ? false
if indisponibil
return null if name != "<NAME>"
return <p className={"#{name} field #{ if indisponibil then "indisponibil" else "" }"}>Indisponibil</p>
if n... | true | import React from 'react'
Pret = ({ name, value, row = {} }) ->
indisponibil = row.fields.filter((f) -> f.name == "Indisponibil")[0]?.value ? false
if indisponibil
return null if name != "PI:NAME:<NAME>END_PI"
return <p className={"#{name} field #{ if indisponibil then "indisponibil" else "" }"}>Indisponib... |
[
{
"context": "\t\"license\": \"MIT\",\n\t\"browsers\": true,\n\t\"author\": \"Barry Michael Doyle <barry@barrymichaeldoyle.com> (https://www.barrym",
"end": 327,
"score": 0.9998925924301147,
"start": 308,
"tag": "NAME",
"value": "Barry Michael Doyle"
},
{
"context": "browsers\": true... | projectz.cson | barrymichaeldoyle/get-os | 3 | {
"title": "simple-os-platform",
"name": "simple-os-platform",
"homepage": "https://www.barrymichaeldoyle.com",
"description": "A helper that returns the current user's operating system. Eg. \"Windows\", \"Linux\", \"Android\", \"MacOS\", \"iOS\" etc.",
"license": "MIT",
"browsers": true,
"author": "Barry Michae... | 151521 | {
"title": "simple-os-platform",
"name": "simple-os-platform",
"homepage": "https://www.barrymichaeldoyle.com",
"description": "A helper that returns the current user's operating system. Eg. \"Windows\", \"Linux\", \"Android\", \"MacOS\", \"iOS\" etc.",
"license": "MIT",
"browsers": true,
"author": "<NAME> <<EMA... | true | {
"title": "simple-os-platform",
"name": "simple-os-platform",
"homepage": "https://www.barrymichaeldoyle.com",
"description": "A helper that returns the current user's operating system. Eg. \"Windows\", \"Linux\", \"Android\", \"MacOS\", \"iOS\" etc.",
"license": "MIT",
"browsers": true,
"author": "PI:NAME:<NAM... |
[
{
"context": "#################\n# Copyright (C) 2014-2017 by Vaughn Iverson\n# fileCollection is free software released un",
"end": 124,
"score": 0.9997100234031677,
"start": 110,
"tag": "NAME",
"value": "Vaughn Iverson"
}
] | src/resumable_server.coffee | swiftcourt/meteor-file-collection | 0 | ############################################################################
# Copyright (C) 2014-2017 by Vaughn Iverson
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
############################################################################... | 204928 | ############################################################################
# Copyright (C) 2014-2017 by <NAME>
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
############################################################################
import... | true | ############################################################################
# Copyright (C) 2014-2017 by PI:NAME:<NAME>END_PI
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
######################################################################... |
[
{
"context": " expect(user.get('passwordHash')[..5] in ['31dc3d', '948c7e']).toBeTruthy()\n expect(user.get",
"end": 1832,
"score": 0.9031532406806946,
"start": 1826,
"tag": "PASSWORD",
"value": "31dc3d"
},
{
"context": "pect(user.get('passwordHash')[..5] in ['31dc3d', ... | spec/server/functional/user.spec.coffee | noscripter/codecombat | 0 | require '../common'
utils = require '../utils'
urlUser = '/db/user'
User = require '../../../server/models/User'
Classroom = require '../../../server/models/Classroom'
CourseInstance = require '../../../server/models/CourseInstance'
Course = require '../../../server/models/Course'
Campaign = require '../../../server/mo... | 141060 | require '../common'
utils = require '../utils'
urlUser = '/db/user'
User = require '../../../server/models/User'
Classroom = require '../../../server/models/Classroom'
CourseInstance = require '../../../server/models/CourseInstance'
Course = require '../../../server/models/Course'
Campaign = require '../../../server/mo... | true | require '../common'
utils = require '../utils'
urlUser = '/db/user'
User = require '../../../server/models/User'
Classroom = require '../../../server/models/Classroom'
CourseInstance = require '../../../server/models/CourseInstance'
Course = require '../../../server/models/Course'
Campaign = require '../../../server/mo... |
[
{
"context": "nd details are available at:\n# https://github.com/rcbops/opencenter or upon written request.\n#\n# You may o",
"end": 656,
"score": 0.9096388816833496,
"start": 650,
"tag": "USERNAME",
"value": "rcbops"
},
{
"context": "r/facts/\",\n JSON.stringify\n ke... | source/coffee/index.coffee | rcbops/opencenter-dashboard | 0 | # OpenCenter™ is Copyright 2013 by Rackspace US, Inc.
# ###############################################################################
#
# OpenCenter is licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. This version
# of Op... | 146595 | # OpenCenter™ is Copyright 2013 by Rackspace US, Inc.
# ###############################################################################
#
# OpenCenter is licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. This version
# of Op... | true | # OpenCenter™ is Copyright 2013 by Rackspace US, Inc.
# ###############################################################################
#
# OpenCenter is licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. This version
# of Op... |
[
{
"context": "****\n# JSFileManager - File manage clss\n# Coded by Hajime Oh-yake 2013.03.31\n#*************************************",
"end": 103,
"score": 0.9998951554298401,
"start": 89,
"tag": "NAME",
"value": "Hajime Oh-yake"
}
] | JSKit/01_JSFileManager.coffee | digitarhythm/codeJS | 0 | #*****************************************
# JSFileManager - File manage clss
# Coded by Hajime Oh-yake 2013.03.31
#*****************************************
class JSFileManager extends JSObject
constructor:->
super()
escapeHTML:(s) ->
s.replace /[&"<>]/g, (c) ->
escapeRules[c]
... | 115411 | #*****************************************
# JSFileManager - File manage clss
# Coded by <NAME> 2013.03.31
#*****************************************
class JSFileManager extends JSObject
constructor:->
super()
escapeHTML:(s) ->
s.replace /[&"<>]/g, (c) ->
escapeRules[c]
escape... | true | #*****************************************
# JSFileManager - File manage clss
# Coded by PI:NAME:<NAME>END_PI 2013.03.31
#*****************************************
class JSFileManager extends JSObject
constructor:->
super()
escapeHTML:(s) ->
s.replace /[&"<>]/g, (c) ->
escapeRules[... |
[
{
"context": "st is run for the second group.\n # file:///Users/daviddellacasa/Fizzygum/Fizzygum-builds/latest/worldWithSystemTe",
"end": 16676,
"score": 0.9986366033554077,
"start": 16662,
"tag": "USERNAME",
"value": "daviddellacasa"
},
{
"context": " simple quick test about shadow... | src/WorldMorph.coffee | intensifier/Fizzygum | 110 | # The WorldMorph takes over the canvas on the page
class WorldMorph extends PanelWdgt
@augmentWith GridPositioningOfAddedShortcutsMixin, @name
@augmentWith KeepIconicDesktopSystemLinksBackMixin, @name
# We need to add and remove
# the event listeners so we are
# going to put them all in properties
# here.... | 222707 | # The WorldMorph takes over the canvas on the page
class WorldMorph extends PanelWdgt
@augmentWith GridPositioningOfAddedShortcutsMixin, @name
@augmentWith KeepIconicDesktopSystemLinksBackMixin, @name
# We need to add and remove
# the event listeners so we are
# going to put them all in properties
# here.... | true | # The WorldMorph takes over the canvas on the page
class WorldMorph extends PanelWdgt
@augmentWith GridPositioningOfAddedShortcutsMixin, @name
@augmentWith KeepIconicDesktopSystemLinksBackMixin, @name
# We need to add and remove
# the event listeners so we are
# going to put them all in properties
# here.... |
[
{
"context": "= 'WrappedUserInput'\n\nlabelKey = (user) ->\n key = \"@#{user.username}\"\n if user.profile?.fullname\n #k",
"end": 1376,
"score": 0.963540256023407,
"start": 1372,
"tag": "KEY",
"value": "\"@#{"
},
{
"context": "dUserInput'\n\nlabelKey = (user) ->\n key = \"@#{u... | client/UserInput.coffee | mehtank/coauthor | 204 | import React, {Suspense, useMemo, useRef} from 'react'
import {useTracker} from 'meteor/react-meteor-data'
Typeahead = React.lazy -> import('react-bootstrap-typeahead/es/components/Typeahead')
import {ErrorBoundary} from './ErrorBoundary'
import 'react-bootstrap-typeahead/css/Typeahead.css'
userInputCount = 0
expor... | 156027 | import React, {Suspense, useMemo, useRef} from 'react'
import {useTracker} from 'meteor/react-meteor-data'
Typeahead = React.lazy -> import('react-bootstrap-typeahead/es/components/Typeahead')
import {ErrorBoundary} from './ErrorBoundary'
import 'react-bootstrap-typeahead/css/Typeahead.css'
userInputCount = 0
expor... | true | import React, {Suspense, useMemo, useRef} from 'react'
import {useTracker} from 'meteor/react-meteor-data'
Typeahead = React.lazy -> import('react-bootstrap-typeahead/es/components/Typeahead')
import {ErrorBoundary} from './ErrorBoundary'
import 'react-bootstrap-typeahead/css/Typeahead.css'
userInputCount = 0
expor... |
[
{
"context": "setCardSetId(CardSet.Coreshatter)\n\t\t\tcard.name = \"Hatefurnace\"\n\t\t\tcard.setDescription(\"Trial: Cast 7 spells tha",
"end": 3668,
"score": 0.9937617182731628,
"start": 3657,
"tag": "NAME",
"value": "Hatefurnace"
},
{
"context": "ard.factionId = Factions.Faction5... | app/sdk/cards/factory/coreshatter/faction5.coffee | willroberts/duelyst | 5 | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
RSX = require('app/data/resources')
Card = require 'app/sdk/cards/card'
Cards = require 'app/... | 75812 | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
RSX = require('app/data/resources')
Card = require 'app/sdk/cards/card'
Cards = require 'app/... | true | # do not add this file to a package
# it is specifically parsed by the package generation script
_ = require 'underscore'
moment = require 'moment'
Logger = require 'app/common/logger'
CONFIG = require('app/common/config')
RSX = require('app/data/resources')
Card = require 'app/sdk/cards/card'
Cards = require 'app/... |
[
{
"context": "SONBlob').andCallFake (key) =>\n if key is \"NylasSyncWorker:#{TEST_ACCOUNT_ID}\"\n return Promise.resolve ",
"end": 1073,
"score": 0.9041265249252319,
"start": 1058,
"tag": "KEY",
"value": "lasSyncWorker:#"
},
{
"context": "e (key) =>\n return 'old-s... | app/internal_packages/worker-sync/spec/nylas-sync-worker-spec.coffee | immershy/nodemail | 0 | _ = require 'underscore'
{Actions, DatabaseStore, DatabaseTransaction, Account, Thread} = require 'nylas-exports'
NylasLongConnection = require '../lib/nylas-long-connection'
NylasSyncWorker = require '../lib/nylas-sync-worker'
describe "NylasSyncWorker", ->
beforeEach ->
@apiRequests = []
@api =
APIRo... | 143468 | _ = require 'underscore'
{Actions, DatabaseStore, DatabaseTransaction, Account, Thread} = require 'nylas-exports'
NylasLongConnection = require '../lib/nylas-long-connection'
NylasSyncWorker = require '../lib/nylas-sync-worker'
describe "NylasSyncWorker", ->
beforeEach ->
@apiRequests = []
@api =
APIRo... | true | _ = require 'underscore'
{Actions, DatabaseStore, DatabaseTransaction, Account, Thread} = require 'nylas-exports'
NylasLongConnection = require '../lib/nylas-long-connection'
NylasSyncWorker = require '../lib/nylas-sync-worker'
describe "NylasSyncWorker", ->
beforeEach ->
@apiRequests = []
@api =
APIRo... |
[
{
"context": " of heartbeats\n authDigest = new Buffer([@get('username'), @get('password')].join(':'))\n .toString('",
"end": 2991,
"score": 0.9217311143875122,
"start": 2983,
"tag": "USERNAME",
"value": "username"
},
{
"context": "rest/#{resource}\"\n auth:\n use... | lib/adapters/isy/IsyAPI.coffee | monitron/jarvis-ha | 1 | _ = require('underscore')
Q = require('q')
Backbone = require('backbone')
xml2js = require('xml2js')
request = require('request')
winston = require('winston')
WebSocketClient = require('websocket').client
module.exports = class IsyAPI extends Backbone.Model
defaults:
commandTimeout: 10000
initialize: ->
@... | 32558 | _ = require('underscore')
Q = require('q')
Backbone = require('backbone')
xml2js = require('xml2js')
request = require('request')
winston = require('winston')
WebSocketClient = require('websocket').client
module.exports = class IsyAPI extends Backbone.Model
defaults:
commandTimeout: 10000
initialize: ->
@... | true | _ = require('underscore')
Q = require('q')
Backbone = require('backbone')
xml2js = require('xml2js')
request = require('request')
winston = require('winston')
WebSocketClient = require('websocket').client
module.exports = class IsyAPI extends Backbone.Model
defaults:
commandTimeout: 10000
initialize: ->
@... |
[
{
"context": "ach ->\n @view.$('.submit-inquiry-name').val 'Foo Bar'\n @view.$('.submit-inquiry-email').val 'foo@",
"end": 1431,
"score": 0.9938153028488159,
"start": 1424,
"tag": "NAME",
"value": "Foo Bar"
},
{
"context": " Bar'\n @view.$('.submit-inquiry-email').val ... | src/mobile/apps/artwork/components/bid/test/client/ask_specialist.coffee | kanaabe/force | 1 | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
Artwork = require '../../../../../../models/artwork'
Profile = require '../../../../../../models/profile'
CurrentUser = require '../../../../../../models/current_user'
benv = require 'benv'
{ fabricate } = require 'antigravity'
{ resolve } =... | 19282 | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
Artwork = require '../../../../../../models/artwork'
Profile = require '../../../../../../models/profile'
CurrentUser = require '../../../../../../models/current_user'
benv = require 'benv'
{ fabricate } = require 'antigravity'
{ resolve } =... | true | _ = require 'underscore'
sinon = require 'sinon'
Backbone = require 'backbone'
Artwork = require '../../../../../../models/artwork'
Profile = require '../../../../../../models/profile'
CurrentUser = require '../../../../../../models/current_user'
benv = require 'benv'
{ fabricate } = require 'antigravity'
{ resolve } =... |
[
{
"context": ".User\n\ndescribe \"new User\", ->\n user = new User(\"anton\", \"anton@circuithub.com\")\n it \"should have corre",
"end": 118,
"score": 0.9996451139450073,
"start": 113,
"tag": "USERNAME",
"value": "anton"
},
{
"context": "scribe \"new User\", ->\n user = new User(... | test/user.coffee | circuithub/massive-git | 6 | should = require "should"
User = require("../lib/objects/user").User
describe "new User", ->
user = new User("anton", "anton@circuithub.com")
it "should have correct proeprties", ->
user.id().should.equal "anton"
user.should.have.property "email", "anton@circuithub.com"
user.attributes().should.have.pr... | 40737 | should = require "should"
User = require("../lib/objects/user").User
describe "new User", ->
user = new User("anton", "<EMAIL>")
it "should have correct proeprties", ->
user.id().should.equal "anton"
user.should.have.property "email", "<EMAIL>"
user.attributes().should.have.property "email", "<EMAIL>"
... | true | should = require "should"
User = require("../lib/objects/user").User
describe "new User", ->
user = new User("anton", "PI:EMAIL:<EMAIL>END_PI")
it "should have correct proeprties", ->
user.id().should.equal "anton"
user.should.have.property "email", "PI:EMAIL:<EMAIL>END_PI"
user.attributes().should.hav... |
[
{
"context": "3Adapter.s3.upload.calledWith\n Key: \"retain_30_180/zipped-ff/20164bb1b885c2ff4de9b4c73c557e6c.ff\"\n Body: sinon.match dataZipper.ZIP_P",
"end": 2270,
"score": 0.9990334510803223,
"start": 2211,
"tag": "KEY",
"value": "retain_30_180/zipped-ff/20164bb... | test/dataZipper.unit.coffee | balihoo/node-fulfillment-worker | 0 | assert = require 'assert'
sinon = require 'sinon'
aws = require 'aws-sdk'
S3Adapter = require '../lib/s3Adapter'
mockS3 = require './mocks/mockS3'
dataZipper = require '../lib/dataZipper'
bigTestData = require './bigTestData.json'
biggerTestData = require './biggerTestData.json'
smallResult = {
stuff: 'things'
}
d... | 31638 | assert = require 'assert'
sinon = require 'sinon'
aws = require 'aws-sdk'
S3Adapter = require '../lib/s3Adapter'
mockS3 = require './mocks/mockS3'
dataZipper = require '../lib/dataZipper'
bigTestData = require './bigTestData.json'
biggerTestData = require './biggerTestData.json'
smallResult = {
stuff: 'things'
}
d... | true | assert = require 'assert'
sinon = require 'sinon'
aws = require 'aws-sdk'
S3Adapter = require '../lib/s3Adapter'
mockS3 = require './mocks/mockS3'
dataZipper = require '../lib/dataZipper'
bigTestData = require './bigTestData.json'
biggerTestData = require './biggerTestData.json'
smallResult = {
stuff: 'things'
}
d... |
[
{
"context": "cope.cities = [{\n id: 0\n name: \"Helsinki\"\n country: \"Finland\"\n }, {\n ",
"end": 443,
"score": 0.6724346876144409,
"start": 436,
"tag": "NAME",
"value": "Helsink"
},
{
"context": " cities.pop()\n cities.push({id: 3, n... | test/standard_setup.coffee | TejasMadappa/angular-table | 302 | describe "angular-table", () ->
describe "standard setup", () ->
expectedRows = [
["0", "Helsinki", "Finland"],
["1", "Zurich", "Switzerland"],
["2", "Amsterdam", "Netherlands"],
["3", "Berlin", "Germany"]
]
beforeEach(() ->
comp = new TemplateCompiler("standard_setu... | 75453 | describe "angular-table", () ->
describe "standard setup", () ->
expectedRows = [
["0", "Helsinki", "Finland"],
["1", "Zurich", "Switzerland"],
["2", "Amsterdam", "Netherlands"],
["3", "Berlin", "Germany"]
]
beforeEach(() ->
comp = new TemplateCompiler("standard_setu... | true | describe "angular-table", () ->
describe "standard setup", () ->
expectedRows = [
["0", "Helsinki", "Finland"],
["1", "Zurich", "Switzerland"],
["2", "Amsterdam", "Netherlands"],
["3", "Berlin", "Germany"]
]
beforeEach(() ->
comp = new TemplateCompiler("standard_setu... |
[
{
"context": "###################\n# Title: ViewHelper\n# Author: kevin@wintr.us @ WINTR\n#########################################",
"end": 104,
"score": 0.9999107718467712,
"start": 90,
"tag": "EMAIL",
"value": "kevin@wintr.us"
},
{
"context": "##\n# Title: ViewHelper\n# Author: ... | source/javascripts/helpers/ViewHelper.coffee | WikiEducationFoundation/WikiEduWizard | 1 |
#########################################################
# Title: ViewHelper
# Author: kevin@wintr.us @ WINTR
#########################################################
Handlebars.registerHelper( 'link', ( text, url ) ->
text = Handlebars.Utils.escapeExpression( text )
url = Handlebars.Utils.escapeExpression(... | 17604 |
#########################################################
# Title: ViewHelper
# Author: <EMAIL> @ WINTR
#########################################################
Handlebars.registerHelper( 'link', ( text, url ) ->
text = Handlebars.Utils.escapeExpression( text )
url = Handlebars.Utils.escapeExpression( url )
... | true |
#########################################################
# Title: ViewHelper
# Author: PI:EMAIL:<EMAIL>END_PI @ WINTR
#########################################################
Handlebars.registerHelper( 'link', ( text, url ) ->
text = Handlebars.Utils.escapeExpression( text )
url = Handlebars.Utils.escapeExp... |
[
{
"context": "rts of comments would come to an end.\"\n name: \"Joe Bloggs\"\n date: \"14:23pm, 4th Dec 2010\"\n ,\n commen",
"end": 352,
"score": 0.999870777130127,
"start": 342,
"tag": "NAME",
"value": "Joe Bloggs"
},
{
"context": "rts of comments would come to an end.\"\... | app/models/comments/comment.coffee | Kenspeckled/react_comments | 0 | Base = require '../baseClass.coffee'
_ = require 'lodash'
class Comment extends Base
#Temporary
data = [
comment: "This is a much longer one that will go on for a few lines.<br/>It has multiple paragraphs and is full of waffle to pad out the comment. Usually, you just wish these sorts of comments would come t... | 155793 | Base = require '../baseClass.coffee'
_ = require 'lodash'
class Comment extends Base
#Temporary
data = [
comment: "This is a much longer one that will go on for a few lines.<br/>It has multiple paragraphs and is full of waffle to pad out the comment. Usually, you just wish these sorts of comments would come t... | true | Base = require '../baseClass.coffee'
_ = require 'lodash'
class Comment extends Base
#Temporary
data = [
comment: "This is a much longer one that will go on for a few lines.<br/>It has multiple paragraphs and is full of waffle to pad out the comment. Usually, you just wish these sorts of comments would come t... |
[
{
"context": "eStyle = \"#3f3f3f\"\nc.strokeRect 10, 10, 300, 80\n\n# Professor Digman-Rünner text\nc.fillStyle = \"#202020\"\nc.font",
"end": 734,
"score": 0.7431874871253967,
"start": 725,
"tag": "NAME",
"value": "Professor"
},
{
"context": "#3f3f3f\"\nc.strokeRect 10, 10, 300, 80\... | src/game.coffee | lazlojuly/jscs-canvas-game | 0 | # alert "Game loaded!
game =
init: ->
if not gfx.init()
alert "Could not set up game canvas!"
return # abort
# Ready to play
gfx.clear()
gfx.load ->
c = gfx.ctx
# c.drawImage gfx.sprites, 10, 20
# Prof solo
gfx.drawSprite 0,0,100,50
# Random Map
ran... | 178785 | # alert "Game loaded!
game =
init: ->
if not gfx.init()
alert "Could not set up game canvas!"
return # abort
# Ready to play
gfx.clear()
gfx.load ->
c = gfx.ctx
# c.drawImage gfx.sprites, 10, 20
# Prof solo
gfx.drawSprite 0,0,100,50
# Random Map
ran... | true | # alert "Game loaded!
game =
init: ->
if not gfx.init()
alert "Could not set up game canvas!"
return # abort
# Ready to play
gfx.clear()
gfx.load ->
c = gfx.ctx
# c.drawImage gfx.sprites, 10, 20
# Prof solo
gfx.drawSprite 0,0,100,50
# Random Map
ran... |
[
{
"context": "ctual sliding effect engine\n#\n# Copyright (C) 2012 Nikolay Nemshilov\n#\nclass Engine\n\n #\n # Constructor. Hooks up the",
"end": 96,
"score": 0.9998888969421387,
"start": 79,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | ui/slideshow/src/engine.coffee | lovely-io/lovely.io-stl | 2 | #
# This file contains the actual sliding effect engine
#
# Copyright (C) 2012 Nikolay Nemshilov
#
class Engine
#
# Constructor. Hooks up the events and stuff
#
# @param {Slideshow} reference
# @return {Engine} this
#
constructor: (slideshow)->
@slideshow = slideshow
slideshow.on
touchstar... | 81826 | #
# This file contains the actual sliding effect engine
#
# Copyright (C) 2012 <NAME>
#
class Engine
#
# Constructor. Hooks up the events and stuff
#
# @param {Slideshow} reference
# @return {Engine} this
#
constructor: (slideshow)->
@slideshow = slideshow
slideshow.on
touchstart: (event)=... | true | #
# This file contains the actual sliding effect engine
#
# Copyright (C) 2012 PI:NAME:<NAME>END_PI
#
class Engine
#
# Constructor. Hooks up the events and stuff
#
# @param {Slideshow} reference
# @return {Engine} this
#
constructor: (slideshow)->
@slideshow = slideshow
slideshow.on
touchs... |
[
{
"context": "esses = 1\n\n # final result object\n password: password\n guesses: guesses\n guesses_log10: @log10 gu",
"end": 4869,
"score": 0.9993947744369507,
"start": 4861,
"tag": "PASSWORD",
"value": "password"
}
] | src/scoring.coffee | glensc/zxcvbn | 1 | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... | 42016 | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... | true | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... |
[
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>\nAll rights reserved.\n\nRedistri",
"end": 42,
"score": 0.9998431205749512,
"start": 24,
"tag": "NAME",
"value": "Alexander Cherniuk"
},
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmai... | library/membrane/api.coffee | ts33kr/granite | 6 | ###
Copyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of co... | 128109 | ###
Copyright (c) 2013, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the foll... | true | ###
Copyright (c) 2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
li... |
[
{
"context": "192, 168, 1, 1])\n test.equal(addr.toString(), '192.168.1.1')\n test.done()\n\n 'returns correct kind for IP",
"end": 647,
"score": 0.9986698031425476,
"start": 636,
"tag": "IP_ADDRESS",
"value": "192.168.1.1"
},
{
"context": "at': (test) ->\n test.equal(ipadd... | node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/test/ipaddr.test.coffee | tuanpembual/anjungan | 64 | ipaddr = require '../lib/ipaddr'
module.exports =
'should define main classes': (test) ->
test.ok(ipaddr.IPv4?, 'defines IPv4 class')
test.ok(ipaddr.IPv6?, 'defines IPv6 class')
test.done()
'can construct IPv4 from octets': (test) ->
test.doesNotThrow ->
new ipaddr.IPv4([192, 168, 1, 2])
... | 195678 | ipaddr = require '../lib/ipaddr'
module.exports =
'should define main classes': (test) ->
test.ok(ipaddr.IPv4?, 'defines IPv4 class')
test.ok(ipaddr.IPv6?, 'defines IPv6 class')
test.done()
'can construct IPv4 from octets': (test) ->
test.doesNotThrow ->
new ipaddr.IPv4([192, 168, 1, 2])
... | true | ipaddr = require '../lib/ipaddr'
module.exports =
'should define main classes': (test) ->
test.ok(ipaddr.IPv4?, 'defines IPv4 class')
test.ok(ipaddr.IPv6?, 'defines IPv6 class')
test.done()
'can construct IPv4 from octets': (test) ->
test.doesNotThrow ->
new ipaddr.IPv4([192, 168, 1, 2])
... |
[
{
"context": "xtFactory.CreateFromKey @network, ECKey.fromWIF \"L36oQYkkqDrE7wzyHGBAoUVHug2daua3sSmuSFkWFTT76hTJgetV\"\n client = new ChannelClient context\n @chan",
"end": 2374,
"score": 0.9712203145027161,
"start": 2323,
"tag": "KEY",
"value": "36oQYkkqDrE7wzyHGBAoUVHug2daua3sSmuSFkW... | demo/client_controller.coffee | devktor/micropayments.js | 0 | {ChannelClientContextFactory, ChannelClientContext} = require "../channel_client_context"
ChannelClient = require "../channel_client"
{Transaction, Address, ECPubKey, ECKey} = require "bitcoinjs-lib"
class Controller
constructor:(@network, @node, @db, @channelServer, @notifier)->
@node.subscribe (err, data)=>
... | 179191 | {ChannelClientContextFactory, ChannelClientContext} = require "../channel_client_context"
ChannelClient = require "../channel_client"
{Transaction, Address, ECPubKey, ECKey} = require "bitcoinjs-lib"
class Controller
constructor:(@network, @node, @db, @channelServer, @notifier)->
@node.subscribe (err, data)=>
... | true | {ChannelClientContextFactory, ChannelClientContext} = require "../channel_client_context"
ChannelClient = require "../channel_client"
{Transaction, Address, ECPubKey, ECKey} = require "bitcoinjs-lib"
class Controller
constructor:(@network, @node, @db, @channelServer, @notifier)->
@node.subscribe (err, data)=>
... |
[
{
"context": "uire('dox-parser')\n *\n * Dox\n * Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>\n * MIT Licensed\n ###\n\n###!\n ",
"end": 149,
"score": 0.9998568296432495,
"start": 135,
"tag": "NAME",
"value": "TJ Holowaychuk"
},
{
"context": ")\n *\n * Dox\n * Copyright (c)... | examples/fixtures/dox-parser.coffee | cbou/markdox | 90 |
###*
* # The parser
*
* This is a incredible parser.
*
* var parser = require('dox-parser')
*
* Dox
* Copyright (c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
###
###!
* Module dependencies.
###
markdown = require("github-flavored-markdown").parse
###!
* Library version.
###
exports.v... | 201475 |
###*
* # The parser
*
* This is a incredible parser.
*
* var parser = require('dox-parser')
*
* Dox
* Copyright (c) 2010 <NAME> <<EMAIL>>
* MIT Licensed
###
###!
* Module dependencies.
###
markdown = require("github-flavored-markdown").parse
###!
* Library version.
###
exports.version = "0.0.5"
#... | true |
###*
* # The parser
*
* This is a incredible parser.
*
* var parser = require('dox-parser')
*
* Dox
* Copyright (c) 2010 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
* MIT Licensed
###
###!
* Module dependencies.
###
markdown = require("github-flavored-markdown").parse
###!
* Library version.
###... |
[
{
"context": "\n @parse: (value) ->\n safe_key_match = /ground\\.(\\S+)\\.(\\S+)\\.(\\S+)\\.(\\S+)\\.bmp/.exec(value)\n\n attributes = {}\n if safe_key_match",
"end": 2395,
"score": 0.9651799201965332,
"start": 2360,
"tag": "KEY",
"value": "S+)\\.(\\S+)\\.(\\S+)\\.(\\S+)\\.bmp/.exe... | src/land/land-attributes.coffee | starpeace-project/starpeace-website-client-assets | 0 |
class LandAttributes
@PLANET_TYPES: { other:'other', earth:'earth' } # FIXME: TODO: add alien swamp
@SEASONS: { other:'other', winter:'winter', spring:'spring', summer:'summer', fall:'fall' }
@ZONES: { other:'other', border:'border', midgrass:'midgrass', grass:'grass', dryground:'dryground', water:'water' }
@T... | 191076 |
class LandAttributes
@PLANET_TYPES: { other:'other', earth:'earth' } # FIXME: TODO: add alien swamp
@SEASONS: { other:'other', winter:'winter', spring:'spring', summer:'summer', fall:'fall' }
@ZONES: { other:'other', border:'border', midgrass:'midgrass', grass:'grass', dryground:'dryground', water:'water' }
@T... | true |
class LandAttributes
@PLANET_TYPES: { other:'other', earth:'earth' } # FIXME: TODO: add alien swamp
@SEASONS: { other:'other', winter:'winter', spring:'spring', summer:'summer', fall:'fall' }
@ZONES: { other:'other', border:'border', midgrass:'midgrass', grass:'grass', dryground:'dryground', water:'water' }
@T... |
[
{
"context": " for key of clonedProps\n if key.indexOf('$') is 0 and key isnt '$$hashKey'\n obj[k",
"end": 3824,
"score": 0.7646017670631409,
"start": 3823,
"tag": "KEY",
"value": "$"
},
{
"context": "\n if key.indexOf('$') is 0 and key isnt '$$hashKey'... | src/index.coffee | ndxbxrme/ndx-rest-client | 0 | 'use strict'
module = null
try
module = angular.module 'ndx'
catch e
module =angular.module 'ndx', []
module.provider 'rest', ->
waitForAuth = false
bustCache = false
lockAll = false
disableCache = false
cacheBuster = ->
if bustCache then "?#{Math.floor(Math.random() * 9999999999999)}" else ''
callb... | 146504 | 'use strict'
module = null
try
module = angular.module 'ndx'
catch e
module =angular.module 'ndx', []
module.provider 'rest', ->
waitForAuth = false
bustCache = false
lockAll = false
disableCache = false
cacheBuster = ->
if bustCache then "?#{Math.floor(Math.random() * 9999999999999)}" else ''
callb... | true | 'use strict'
module = null
try
module = angular.module 'ndx'
catch e
module =angular.module 'ndx', []
module.provider 'rest', ->
waitForAuth = false
bustCache = false
lockAll = false
disableCache = false
cacheBuster = ->
if bustCache then "?#{Math.floor(Math.random() * 9999999999999)}" else ''
callb... |
[
{
"context": "48e72ecb51'\n record =\n name: 'Forwarder'\n uuid: @forwarderUuid\n ",
"end": 987,
"score": 0.5223410129547119,
"start": 984,
"tag": "NAME",
"value": "For"
},
{
"context": "9c65c98df2'\n record =\n name: 'Forwar... | test/publish-forwarder-spec.coffee | CESARBR/knot-cloud-source | 4 | PublishForwarder = require '../src/publish-forwarder'
TestDatabase = require './test-database'
describe 'PublishForwarder', ->
beforeEach (done) ->
TestDatabase.open (error, database) =>
{@devices,@subscriptions} = database
@devices.find {}, (error, devices) =>
done error
beforeEach ->
... | 163173 | PublishForwarder = require '../src/publish-forwarder'
TestDatabase = require './test-database'
describe 'PublishForwarder', ->
beforeEach (done) ->
TestDatabase.open (error, database) =>
{@devices,@subscriptions} = database
@devices.find {}, (error, devices) =>
done error
beforeEach ->
... | true | PublishForwarder = require '../src/publish-forwarder'
TestDatabase = require './test-database'
describe 'PublishForwarder', ->
beforeEach (done) ->
TestDatabase.open (error, database) =>
{@devices,@subscriptions} = database
@devices.find {}, (error, devices) =>
done error
beforeEach ->
... |
[
{
"context": "fail - Display an image of failure\n#\n# Author:\n# Jenn Basalone - jbasalone@gmail.com\n\nfail = [\n \"http://img4.w",
"end": 185,
"score": 0.9998584985733032,
"start": 172,
"tag": "NAME",
"value": "Jenn Basalone"
},
{
"context": "n image of failure\n#\n# Author:\n... | scr/fail.coffee | jbasalone/hubot-fail | 0 | # Description:
# Display a fail image
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# robot fail - Display an image of failure
#
# Author:
# Jenn Basalone - jbasalone@gmail.com
fail = [
"http://img4.wikia.nocookie.net/__cb20130914074755/powerlisting/images/1/12/FAIL-Word-art-300x187.p... | 83831 | # Description:
# Display a fail image
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# robot fail - Display an image of failure
#
# Author:
# <NAME> - <EMAIL>
fail = [
"http://img4.wikia.nocookie.net/__cb20130914074755/powerlisting/images/1/12/FAIL-Word-art-300x187.png",
"http://www... | true | # Description:
# Display a fail image
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# robot fail - Display an image of failure
#
# Author:
# PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
fail = [
"http://img4.wikia.nocookie.net/__cb20130914074755/powerlisting/images/1/12/FAIL-Word-art... |
[
{
"context": "project generator tool\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\nfs = require('fs')\nlovelyrc = require('..",
"end": 80,
"score": 0.999897837638855,
"start": 63,
"tag": "NAME",
"value": "Nikolay Nemshilov"
},
{
"context": "getFullYear(),\n username: ... | cli/commands/new.coffee | lovely-io/lovely.io-stl | 2 | #
# The new project generator tool
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
fs = require('fs')
lovelyrc = require('../lovelyrc')
placeholders = {}
#
# Starts the new project generation
#
# @param {String} projectname
# @param {Array} the rest of the arguments
# @return void
#
generate = (projectname, arg... | 82301 | #
# The new project generator tool
#
# Copyright (C) 2011-2012 <NAME>
#
fs = require('fs')
lovelyrc = require('../lovelyrc')
placeholders = {}
#
# Starts the new project generation
#
# @param {String} projectname
# @param {Array} the rest of the arguments
# @return void
#
generate = (projectname, args) ->
dir... | true | #
# The new project generator tool
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
fs = require('fs')
lovelyrc = require('../lovelyrc')
placeholders = {}
#
# Starts the new project generation
#
# @param {String} projectname
# @param {Array} the rest of the arguments
# @return void
#
generate = (projectname, ... |
[
{
"context": "ing fields\n sendLogin username: $scope.username, password: $scope.password\n .success (",
"end": 526,
"score": 0.8789559006690979,
"start": 518,
"tag": "USERNAME",
"value": "username"
},
{
"context": " sendLogin username: $scope.username, passwor... | public/coffee/controllers/login.coffee | maxaille/PartyFinance | 1 | App.controller 'loginCtrl', [
'$rootScope'
'$scope'
'$http'
'$state'
'$stateParams'
'$timeout'
'API'
($rootScope, $scope, $http, $state, $stateParams, $timeout, API) ->
sendLogin = (user) ->
$http.post API + '/login', user
.success (data) ->
... | 50813 | App.controller 'loginCtrl', [
'$rootScope'
'$scope'
'$http'
'$state'
'$stateParams'
'$timeout'
'API'
($rootScope, $scope, $http, $state, $stateParams, $timeout, API) ->
sendLogin = (user) ->
$http.post API + '/login', user
.success (data) ->
... | true | App.controller 'loginCtrl', [
'$rootScope'
'$scope'
'$http'
'$state'
'$stateParams'
'$timeout'
'API'
($rootScope, $scope, $http, $state, $stateParams, $timeout, API) ->
sendLogin = (user) ->
$http.post API + '/login', user
.success (data) ->
... |
[
{
"context": "}))\n\n$ ->\n\titems = new itemCollection([\n\t\t{name: 'Wordsworth', id: _.uniqueId() },\n\t\t{name: 'Shelley', id: _.u",
"end": 1252,
"score": 0.9996829032897949,
"start": 1242,
"tag": "NAME",
"value": "Wordsworth"
},
{
"context": "name: 'Wordsworth', id: _.uniqueId()... | js/site.coffee | zdavis/t3con-na-13 | 1 | class itemModel extends Backbone.Model
class itemCollection extends Backbone.Collection
model: itemModel
class debugView extends Backbone.View
initialize: ->
@collection.bind('add', @render, @)
@collection.bind('remove', @render, @)
@render()
render: ->
json = @collection.toJSON()
@$el.html(JSON.stri... | 109314 | class itemModel extends Backbone.Model
class itemCollection extends Backbone.Collection
model: itemModel
class debugView extends Backbone.View
initialize: ->
@collection.bind('add', @render, @)
@collection.bind('remove', @render, @)
@render()
render: ->
json = @collection.toJSON()
@$el.html(JSON.stri... | true | class itemModel extends Backbone.Model
class itemCollection extends Backbone.Collection
model: itemModel
class debugView extends Backbone.View
initialize: ->
@collection.bind('add', @render, @)
@collection.bind('remove', @render, @)
@render()
render: ->
json = @collection.toJSON()
@$el.html(JSON.stri... |
[
{
"context": "@user =\n\t\t\t\t\t_id: \"user-id\"\n\t\t\t\t\temail: @email = \"USER@sharelatex.com\"\n\t\t\t\t@unencryptedPassword = \"banana\"\n\t\t\t\t@User.fi",
"end": 828,
"score": 0.9999144077301025,
"start": 809,
"tag": "EMAIL",
"value": "USER@sharelatex.com"
},
{
"context": "\... | test/UnitTests/coffee/Authentication/AuthenticationManagerTests.coffee | bowlofstew/web-sharelatex | 0 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationManager.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
ObjectId = require("mongojs").ObjectId
describe "AuthenticationManager",... | 8233 | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationManager.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
ObjectId = require("mongojs").ObjectId
describe "AuthenticationManager",... | true | sinon = require('sinon')
chai = require('chai')
should = chai.should()
expect = chai.expect
modulePath = "../../../../app/js/Features/Authentication/AuthenticationManager.js"
SandboxedModule = require('sandboxed-module')
events = require "events"
ObjectId = require("mongojs").ObjectId
describe "AuthenticationManager",... |
[
{
"context": "export default\n name: 'Eris'\n type: 'dwarfPlanet'\n radius: 1163\n elements:",
"end": 28,
"score": 0.9997266530990601,
"start": 24,
"tag": "NAME",
"value": "Eris"
}
] | src/data/bodies/eris.coffee | skepticalimagination/solaris-model | 5 | export default
name: 'Eris'
type: 'dwarfPlanet'
radius: 1163
elements:
format: 'jpl-sbdb'
base: {a: 67.64830340711272, e: 0.442178729942388, i: 44.19798212835923, L: 392.0654311366, lp: 187.3023562449, node: 35.88062556130805}
day: {M: 0.001771408442534513}
| 131304 | export default
name: '<NAME>'
type: 'dwarfPlanet'
radius: 1163
elements:
format: 'jpl-sbdb'
base: {a: 67.64830340711272, e: 0.442178729942388, i: 44.19798212835923, L: 392.0654311366, lp: 187.3023562449, node: 35.88062556130805}
day: {M: 0.001771408442534513}
| true | export default
name: 'PI:NAME:<NAME>END_PI'
type: 'dwarfPlanet'
radius: 1163
elements:
format: 'jpl-sbdb'
base: {a: 67.64830340711272, e: 0.442178729942388, i: 44.19798212835923, L: 392.0654311366, lp: 187.3023562449, node: 35.88062556130805}
day: {M: 0.001771408442534513}
|
[
{
"context": "ptional) Defaults to 'us-east-1'\n#\n#\n# Author:\n# Tatsuhiko Miyagawa\n# @chosak\n# @contolini\n\nAWS = require 'aws-sd",
"end": 428,
"score": 0.9998760223388672,
"start": 410,
"tag": "NAME",
"value": "Tatsuhiko Miyagawa"
},
{
"context": "s-east-1'\n#\n#\n# Auth... | src/sqs.coffee | catops/hubot-sqs | 0 | # Description
# Send AWS SQS messages to Hubot
#
# Configuration:
# HUBOT_AWS_SQS_QUEUE_URL - SQS queue to listen to, e.g. https://sqs.us-east-1.amazonaws.com/XXXXXXXXXXXXX/hubot
# HUBOT_AWS_SQS_ACCESS_KEY_ID - AWS access key id with SQS permissions
# HUBOT_AWS_SQS_SECRET_ACCESS_KEY - AWS secret key with SQS pe... | 71031 | # Description
# Send AWS SQS messages to Hubot
#
# Configuration:
# HUBOT_AWS_SQS_QUEUE_URL - SQS queue to listen to, e.g. https://sqs.us-east-1.amazonaws.com/XXXXXXXXXXXXX/hubot
# HUBOT_AWS_SQS_ACCESS_KEY_ID - AWS access key id with SQS permissions
# HUBOT_AWS_SQS_SECRET_ACCESS_KEY - AWS secret key with SQS pe... | true | # Description
# Send AWS SQS messages to Hubot
#
# Configuration:
# HUBOT_AWS_SQS_QUEUE_URL - SQS queue to listen to, e.g. https://sqs.us-east-1.amazonaws.com/XXXXXXXXXXXXX/hubot
# HUBOT_AWS_SQS_ACCESS_KEY_ID - AWS access key id with SQS permissions
# HUBOT_AWS_SQS_SECRET_ACCESS_KEY - AWS secret key with SQS pe... |
[
{
"context": "tails: 'Browsing Collection'\n\t\t\t\t\tlargeImageKey: 'idle'\n\t\t\t\t}\n\t\t\t\tDiscord.updatePresence(presence)\n\n\t\t\t#",
"end": 35389,
"score": 0.8805878758430481,
"start": 35385,
"tag": "KEY",
"value": "idle"
},
{
"context": "PlayerUsername: ProfileManager.getIn... | app/application.coffee | open-duelyst/duelyst | 5 | # User Agent Parsing
UAParser = require 'ua-parser-js'
uaparser = new UAParser()
uaparser.setUA(window.navigator.userAgent)
userAgent = uaparser.getResult()
# userAgent now contains : browser, os, device, engine objects
# ---- Marionette Application ---- #
#
App = new Backbone.Marionette.Application()
# require Fireb... | 217195 | # User Agent Parsing
UAParser = require 'ua-parser-js'
uaparser = new UAParser()
uaparser.setUA(window.navigator.userAgent)
userAgent = uaparser.getResult()
# userAgent now contains : browser, os, device, engine objects
# ---- Marionette Application ---- #
#
App = new Backbone.Marionette.Application()
# require Fireb... | true | # User Agent Parsing
UAParser = require 'ua-parser-js'
uaparser = new UAParser()
uaparser.setUA(window.navigator.userAgent)
userAgent = uaparser.getResult()
# userAgent now contains : browser, os, device, engine objects
# ---- Marionette Application ---- #
#
App = new Backbone.Marionette.Application()
# require Fireb... |
[
{
"context": "leoverview enforce a maximum file length\n# @author Alberto Rodríguez\n###\n'use strict'\n\n#------------------------------",
"end": 78,
"score": 0.9998608827590942,
"start": 61,
"tag": "NAME",
"value": "Alberto Rodríguez"
}
] | src/tests/rules/max-lines.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview enforce a maximum file length
# @author Alberto Rodríguez
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max-lines'
{Ru... | 217937 | ###*
# @fileoverview enforce a maximum file length
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max-lines'
{RuleTester} =... | true | ###*
# @fileoverview enforce a maximum file length
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max-lines'
... |
[
{
"context": "#\n# Author: Corey Auger\n# corey@nxtwv.com\n#\n\nwebrtcApp = window.angular.m",
"end": 23,
"score": 0.9998880624771118,
"start": 12,
"tag": "NAME",
"value": "Corey Auger"
},
{
"context": "#\n# Author: Corey Auger\n# corey@nxtwv.com\n#\n\nwebrtcApp = window.angular.modu... | app/assets/javascripts/app.coffee | coreyauger/play-webrtc | 18 | #
# Author: Corey Auger
# corey@nxtwv.com
#
webrtcApp = window.angular.module('webrtcApp', ['ngRoute','ngSanitize','ui.bootstrap','webrtcControllers']).config( ($sceDelegateProvider) ->
$sceDelegateProvider.resourceUrlWhitelist(
[
'self'
# Allow loading from outer templates domain.
'https://app... | 27358 | #
# Author: <NAME>
# <EMAIL>
#
webrtcApp = window.angular.module('webrtcApp', ['ngRoute','ngSanitize','ui.bootstrap','webrtcControllers']).config( ($sceDelegateProvider) ->
$sceDelegateProvider.resourceUrlWhitelist(
[
'self'
# Allow loading from outer templates domain.
'https://apps.com/**'
... | true | #
# Author: PI:NAME:<NAME>END_PI
# PI:EMAIL:<EMAIL>END_PI
#
webrtcApp = window.angular.module('webrtcApp', ['ngRoute','ngSanitize','ui.bootstrap','webrtcControllers']).config( ($sceDelegateProvider) ->
$sceDelegateProvider.resourceUrlWhitelist(
[
'self'
# Allow loading from outer templates domain.
... |
[
{
"context": "###\n * @author \t\tAbdelhakim RAFIK\n * @version \tv1.0.1\n * @license \tMIT License\n * @",
"end": 33,
"score": 0.9998952150344849,
"start": 17,
"tag": "NAME",
"value": "Abdelhakim RAFIK"
},
{
"context": "nse \tMIT License\n * @copyright \tCopyright (c) 2021 Abdelhaki... | src/app/middlewares/roleMiddleware.coffee | AbdelhakimRafik/Project | 1 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date June 2021
###
module.exports = (roles) ->
return (req, res, next) ->
# check user roles is in allowed roles
if (typeof roles == 'string' and req.user.role != roles) or n... | 101620 | ###
* @author <NAME>
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 <NAME>
* @date June 2021
###
module.exports = (roles) ->
return (req, res, next) ->
# check user roles is in allowed roles
if (typeof roles == 'string' and req.user.role != roles) or not roles.includes re... | true | ###
* @author PI:NAME:<NAME>END_PI
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 PI:NAME:<NAME>END_PI
* @date June 2021
###
module.exports = (roles) ->
return (req, res, next) ->
# check user roles is in allowed roles
if (typeof roles == 'string' and req.user.role != rol... |
[
{
"context": " endpoint += if NODE_ENV is 'development' then '72.89.161.100' else ip\n request\n .get endpoint\n .e",
"end": 315,
"score": 0.9997092485427856,
"start": 302,
"tag": "IP_ADDRESS",
"value": "72.89.161.100"
}
] | src/desktop/apps/geo/routes.coffee | jpoczik/force | 377 | _ = require 'underscore'
geolib = require 'geolib'
request = require 'superagent'
{ Cities } = require 'places'
{ NODE_ENV, GEOIP_ENDPOINT } = require '../../../config'
geoIP = (ip) ->
new Promise (resolve, reject) ->
endpoint = GEOIP_ENDPOINT
endpoint += if NODE_ENV is 'development' then '72.89.161.100' els... | 168826 | _ = require 'underscore'
geolib = require 'geolib'
request = require 'superagent'
{ Cities } = require 'places'
{ NODE_ENV, GEOIP_ENDPOINT } = require '../../../config'
geoIP = (ip) ->
new Promise (resolve, reject) ->
endpoint = GEOIP_ENDPOINT
endpoint += if NODE_ENV is 'development' then '192.168.127.12' el... | true | _ = require 'underscore'
geolib = require 'geolib'
request = require 'superagent'
{ Cities } = require 'places'
{ NODE_ENV, GEOIP_ENDPOINT } = require '../../../config'
geoIP = (ip) ->
new Promise (resolve, reject) ->
endpoint = GEOIP_ENDPOINT
endpoint += if NODE_ENV is 'development' then 'PI:IP_ADDRESS:192.... |
[
{
"context": " 'Default'\n enum: [\n \"3024\"\n \"Apathy\"\n \"Ashes\"\n \"Atelier Cave\"\n \"",
"end": 123,
"score": 0.7871922254562378,
"start": 118,
"tag": "NAME",
"value": "pathy"
},
{
"context": "num: [\n \"3024\"\n \"Apathy\... | lib/base16-settings.coffee | danielrsilver/base16-syntax | 34 | settings =
config:
scheme:
type: 'string'
default: 'Default'
enum: [
"3024"
"Apathy"
"Ashes"
"Atelier Cave"
"Atelier Dune"
"Atelier Estuary"
"Atelier Forest"
"Atelier Heath"
"Atelier Lakeside"
"Atelier Plateau"
... | 145033 | settings =
config:
scheme:
type: 'string'
default: 'Default'
enum: [
"3024"
"A<NAME>"
"As<NAME>"
"<NAME>"
"<NAME>"
"Atelier <NAME>uary"
"Atel<NAME>"
"<NAME>"
"<NAME>"
"<NAME>"
"<NAME>"
"Atelier Seasid... | true | settings =
config:
scheme:
type: 'string'
default: 'Default'
enum: [
"3024"
"API:NAME:<NAME>END_PI"
"AsPI:NAME:<NAME>END_PI"
"PI:NAME:<NAME>END_PI"
"PI:NAME:<NAME>END_PI"
"Atelier PI:NAME:<NAME>END_PIuary"
"AtelPI:NAME:<NAME>END_PI"
... |
[
{
"context": "uestheader(\"Origin\",\"http://kaosat-dev.github.com/CoffeeSCad/\")\n request.send(params)\n \n consol",
"end": 1441,
"score": 0.6974589824676514,
"start": 1431,
"tag": "USERNAME",
"value": "CoffeeSCad"
},
{
"context": "tate == 2\n @tokenUrl = \"ht... | src/app/stores/github/gitHubStore.coffee | kaosat-dev/CoffeeSCad | 110 | define (require)->
github = require 'github'
vent = require 'core/messaging/appVent'
Project = require 'core/projects/project'
class GitHubRedirectDriver
constructor:->
@state=1 #initial
@client_id = "c346489dcec8041bd88f"
@redirect_uri=window.location
@scopes = "gist"
... | 154703 | define (require)->
github = require 'github'
vent = require 'core/messaging/appVent'
Project = require 'core/projects/project'
class GitHubRedirectDriver
constructor:->
@state=1 #initial
@client_id = "c346489dcec8041bd88f"
@redirect_uri=window.location
@scopes = "gist"
... | true | define (require)->
github = require 'github'
vent = require 'core/messaging/appVent'
Project = require 'core/projects/project'
class GitHubRedirectDriver
constructor:->
@state=1 #initial
@client_id = "c346489dcec8041bd88f"
@redirect_uri=window.location
@scopes = "gist"
... |
[
{
"context": "$ ->\nHan = \"Never tell me the odds! Han Solo\"\nYoda = \"Do. Or do not. There is no try. Yoda\"\nQu",
"end": 44,
"score": 0.9954753518104553,
"start": 36,
"tag": "NAME",
"value": "Han Solo"
},
{
"context": "a\"\nQui = \"Your focus determines your reality. Qui-Gon Jinn... | src/render/scripts/script.js.coffee | CCole/Portolio | 0 | $ ->
Han = "Never tell me the odds! Han Solo"
Yoda = "Do. Or do not. There is no try. Yoda"
Qui = "Your focus determines your reality. Qui-Gon Jinn"
quotes = [Han, Yoda, Qui]
indx = Math.floor(Math.random() * 3)
randomQuote = quotes[indx]
$('#RndQuote').html randomQuote
| 150855 | $ ->
Han = "Never tell me the odds! <NAME>"
Yoda = "Do. Or do not. There is no try. Yoda"
Qui = "Your focus determines your reality. Qui-<NAME>"
quotes = [Han, Yoda, Qui]
indx = Math.floor(Math.random() * 3)
randomQuote = quotes[indx]
$('#RndQuote').html randomQuote
| true | $ ->
Han = "Never tell me the odds! PI:NAME:<NAME>END_PI"
Yoda = "Do. Or do not. There is no try. Yoda"
Qui = "Your focus determines your reality. Qui-PI:NAME:<NAME>END_PI"
quotes = [Han, Yoda, Qui]
indx = Math.floor(Math.random() * 3)
randomQuote = quotes[indx]
$('#RndQuote').html randomQuote
|
[
{
"context": "ipe\",\"description\":\"Recipe description\",\"author\":\"Anonymous Brewer\",\"boilSize\":10,\"batchSize\":20,\"servingSize\":0.355",
"end": 180,
"score": 0.9990550875663757,
"start": 164,
"tag": "NAME",
"value": "Anonymous Brewer"
},
{
"context": "dients\n recipe.ad... | test/recipe.coffee | Metgezel/brauhausjs | 94 | Brauhaus = Brauhaus ? require '../lib/brauhaus'
assert = assert ? require('chai').assert
json = '{"name":"New Recipe","description":"Recipe description","author":"Anonymous Brewer","boilSize":10,"batchSize":20,"servingSize":0.355,"steepEfficiency":50,"steepTime":20,"mashEfficiency":75,"style":null,"ibuMethod":"tinseth... | 132680 | Brauhaus = Brauhaus ? require '../lib/brauhaus'
assert = assert ? require('chai').assert
json = '{"name":"New Recipe","description":"Recipe description","author":"<NAME>","boilSize":10,"batchSize":20,"servingSize":0.355,"steepEfficiency":50,"steepTime":20,"mashEfficiency":75,"style":null,"ibuMethod":"tinseth","ferment... | true | Brauhaus = Brauhaus ? require '../lib/brauhaus'
assert = assert ? require('chai').assert
json = '{"name":"New Recipe","description":"Recipe description","author":"PI:NAME:<NAME>END_PI","boilSize":10,"batchSize":20,"servingSize":0.355,"steepEfficiency":50,"steepTime":20,"mashEfficiency":75,"style":null,"ibuMethod":"tin... |
[
{
"context": "le.\n#\n# Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details\n# abo",
"end": 491,
"score": 0.9997069835662842,
"start": 480,
"tag": "USERNAME",
"value": "sstephenson"
},
{
"context": "ted_at\n firstName: Curri.user.fir... | app/assets/javascripts/application.js.coffee | aomra015/curri | 1 | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | 120912 | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... | true | # This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
... |
[
{
"context": "f an HTTP POST request to create a model.\r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass CreateAircraftM",
"end": 154,
"score": 0.999850869178772,
"start": 142,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/specification/request/ajax/CreateAircraftModelAjaxRequest.coffee | qrefdev/qref | 0 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a model.
@author Nathan Klick
@copyright QRef 2012
###
class CreateAircraftModelAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the model.
###
name:
t... | 57256 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a model.
@author <NAME>
@copyright QRef 2012
###
class CreateAircraftModelAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the model.
###
name:
type: S... | true | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a model.
@author PI:NAME:<NAME>END_PI
@copyright QRef 2012
###
class CreateAircraftModelAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the model.
###
na... |
[
{
"context": "\"] = Meteor.userId()\n\t\tauthToken[\"X-Auth-Token\"] = Accounts._storedLoginToken()\n\t\turl = Meteor.absoluteUrl(\"api/setup/sso/\" + p",
"end": 757,
"score": 0.6606532335281372,
"start": 731,
"tag": "KEY",
"value": "Accounts._storedLoginToken"
}
] | creator/packages/steedos-base/client/router.coffee | yicone/steedos-platform | 42 | checkUserSigned = (context, redirect) ->
# if !Meteor.userId()
# Setup.validate();
FlowRouter.triggers.enter (context, redirect, stop)->
if context?.queryParams?.app_id
Session.set('current_app_id', context.queryParams.app_id)
FlowRouter.route '/steedos/sign-in',
triggersEnter: [ (context, redirect)->
Steedo... | 35358 | checkUserSigned = (context, redirect) ->
# if !Meteor.userId()
# Setup.validate();
FlowRouter.triggers.enter (context, redirect, stop)->
if context?.queryParams?.app_id
Session.set('current_app_id', context.queryParams.app_id)
FlowRouter.route '/steedos/sign-in',
triggersEnter: [ (context, redirect)->
Steedo... | true | checkUserSigned = (context, redirect) ->
# if !Meteor.userId()
# Setup.validate();
FlowRouter.triggers.enter (context, redirect, stop)->
if context?.queryParams?.app_id
Session.set('current_app_id', context.queryParams.app_id)
FlowRouter.route '/steedos/sign-in',
triggersEnter: [ (context, redirect)->
Steedo... |
[
{
"context": "lass ContactifyPlugin extends BasePlugin\n\t\tname: 'contactifyr'\n\n\t\tconfig:\n\t\t\tcontact:\n\t\t\t\tpath: '/contact-form'",
"end": 184,
"score": 0.9630791544914246,
"start": 173,
"tag": "USERNAME",
"value": "contactifyr"
},
{
"context": "unt (which will have its o... | source/contactifyr.plugin.coffee | redbox-mint-contrib/docpad-plugin-contactifyr | 0 | nodemailer = require 'nodemailer'
axios = require 'axios'
# docpad = require 'docpad'
module.exports = (BasePlugin) ->
class ContactifyPlugin extends BasePlugin
name: 'contactifyr'
config:
contact:
path: '/contact-form'
# No from necessary if using an existing account (which will have its own 'from')
... | 15106 | nodemailer = require 'nodemailer'
axios = require 'axios'
# docpad = require 'docpad'
module.exports = (BasePlugin) ->
class ContactifyPlugin extends BasePlugin
name: 'contactifyr'
config:
contact:
path: '/contact-form'
# No from necessary if using an existing account (which will have its own 'from')
... | true | nodemailer = require 'nodemailer'
axios = require 'axios'
# docpad = require 'docpad'
module.exports = (BasePlugin) ->
class ContactifyPlugin extends BasePlugin
name: 'contactifyr'
config:
contact:
path: '/contact-form'
# No from necessary if using an existing account (which will have its own 'from')
... |
[
{
"context": "###*\n * 表单验证\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n{View} = req",
"end": 30,
"score": 0.9995235800743103,
"start": 24,
"tag": "USERNAME",
"value": "vfasky"
},
{
"context": "###*\n * 表单验证\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n... | example/src/validator.coffee | vfasky/mcore-weui | 0 | ###*
* 表单验证
* @author vfasky <vfasky@gmail.com>
###
'use strict'
{View} = require 'mcoreapp'
weui = require 'mcore-weui'
class Validator extends View
init: ->
@validator = new weui.Validator @.$el[0]
run: ->
@render require('../tpl/validator.html')
send: (err, data)->
return @... | 94963 | ###*
* 表单验证
* @author vfasky <<EMAIL>>
###
'use strict'
{View} = require 'mcoreapp'
weui = require 'mcore-weui'
class Validator extends View
init: ->
@validator = new weui.Validator @.$el[0]
run: ->
@render require('../tpl/validator.html')
send: (err, data)->
return @validator... | true | ###*
* 表单验证
* @author vfasky <PI:EMAIL:<EMAIL>END_PI>
###
'use strict'
{View} = require 'mcoreapp'
weui = require 'mcore-weui'
class Validator extends View
init: ->
@validator = new weui.Validator @.$el[0]
run: ->
@render require('../tpl/validator.html')
send: (err, data)->
re... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9988743662834167,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "ction, and runMain when\n # that occurs. --isaacs\n debugTimeout = +process.env... | src/node.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... | 122444 | # 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": "e: \"Gmail\"\n auth: {user : email, pass : password}\n\n options.from = email\n\n smtpTrans",
"end": 1444,
"score": 0.9983733892440796,
"start": 1436,
"tag": "PASSWORD",
"value": "password"
}
] | src/api/util.coffee | bladepan/cloudbrowser | 0 | Nodemailer = require("nodemailer")
cloudbrowserError = require("../shared/cloudbrowser_error")
###*
@class Util
@param {object} emailerConfig
###
class Util
_pvts = []
_instance = null
constructor : (emailerConfig) ->
# Singleton
if _pvts.length then return _instance
... | 216270 | Nodemailer = require("nodemailer")
cloudbrowserError = require("../shared/cloudbrowser_error")
###*
@class Util
@param {object} emailerConfig
###
class Util
_pvts = []
_instance = null
constructor : (emailerConfig) ->
# Singleton
if _pvts.length then return _instance
... | true | Nodemailer = require("nodemailer")
cloudbrowserError = require("../shared/cloudbrowser_error")
###*
@class Util
@param {object} emailerConfig
###
class Util
_pvts = []
_instance = null
constructor : (emailerConfig) ->
# Singleton
if _pvts.length then return _instance
... |
[
{
"context": "io.com\n\nCopyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>\n\nLicensed under the Apache License, Version 2.0 ",
"end": 194,
"score": 0.9999200105667114,
"start": 178,
"tag": "EMAIL",
"value": "info@chaibio.com"
}
] | frontend/javascripts/app/controllers/settings_ctrl.coffee | MakerButt/chaipcr | 1 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | 121406 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | true | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <PI:EMAIL:<EMAIL>END_PI>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... |
[
{
"context": "eoverview Tests for no-empty-class rule.\n# @author Ian Christian Myers\n###\n\n'use strict'\n\n#-----------------------------",
"end": 81,
"score": 0.9997540712356567,
"start": 62,
"tag": "NAME",
"value": "Ian Christian Myers"
}
] | src/tests/rules/no-empty-character-class.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for no-empty-class rule.
# @author Ian Christian Myers
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-empty-charac... | 165824 | ###*
# @fileoverview Tests for no-empty-class rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-empty-character-class'
{R... | true | ###*
# @fileoverview Tests for no-empty-class rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-empty-chara... |
[
{
"context": "# Copyright 2015, Christopher Joakim <christopher.joakim@gmail.com>\n\ndescribe 'Age', -",
"end": 36,
"score": 0.9998866319656372,
"start": 18,
"tag": "NAME",
"value": "Christopher Joakim"
},
{
"context": "# Copyright 2015, Christopher Joakim <christopher.joakim@gmail.c... | m26-js/test-src/m26_age_spec.coffee | cjoakim/oss | 0 | # Copyright 2015, Christopher Joakim <christopher.joakim@gmail.com>
describe 'Age', ->
it "should construct with either a String or Number arg", ->
a1 = new Age(44.4)
a2 = new Age('55.5')
expect(a1.val()).isWithin(0.0000000001, 44.4)
expect(a2.val()).isWithin(0.0000000001, 55.5)
it "should calcul... | 155255 | # Copyright 2015, <NAME> <<EMAIL>>
describe 'Age', ->
it "should construct with either a String or Number arg", ->
a1 = new Age(44.4)
a2 = new Age('55.5')
expect(a1.val()).isWithin(0.0000000001, 44.4)
expect(a2.val()).isWithin(0.0000000001, 55.5)
it "should calculate max_pulse", ->
a16 = new ... | true | # Copyright 2015, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
describe 'Age', ->
it "should construct with either a String or Number arg", ->
a1 = new Age(44.4)
a2 = new Age('55.5')
expect(a1.val()).isWithin(0.0000000001, 44.4)
expect(a2.val()).isWithin(0.0000000001, 55.5)
it "should calculate ... |
[
{
"context": "# Backbone.CollectionSubset\n# https://github.com/anthonyshort/backbone.collectionsubset\n#\n# Copyright (c) 2012 ",
"end": 61,
"score": 0.9994368553161621,
"start": 49,
"tag": "USERNAME",
"value": "anthonyshort"
},
{
"context": "t/backbone.collectionsubset\n#\n# Copyri... | src/backbone.collectionsubset.coffee | anthonyshort/backbone.collectionsubset | 10 | # Backbone.CollectionSubset
# https://github.com/anthonyshort/backbone.collectionsubset
#
# Copyright (c) 2012 Anthony Short
# Licensed under the MIT license.
# This allows you to create a subset of a collection based
# on a filter function. This new collection will stay in sync
# with the main collection. When a mode... | 49537 | # Backbone.CollectionSubset
# https://github.com/anthonyshort/backbone.collectionsubset
#
# Copyright (c) 2012 <NAME>
# Licensed under the MIT license.
# This allows you to create a subset of a collection based
# on a filter function. This new collection will stay in sync
# with the main collection. When a model is ad... | true | # Backbone.CollectionSubset
# https://github.com/anthonyshort/backbone.collectionsubset
#
# Copyright (c) 2012 PI:NAME:<NAME>END_PI
# Licensed under the MIT license.
# This allows you to create a subset of a collection based
# on a filter function. This new collection will stay in sync
# with the main collection. When... |
[
{
"context": "# Copyright (c) 2013 Taher Haveliwala\n# All Rights Reserved\n#\n# util.coffee\n#\n# See LIC",
"end": 37,
"score": 0.999867856502533,
"start": 21,
"tag": "NAME",
"value": "Taher Haveliwala"
}
] | src/coffeescript/util.coffee | taherh/Astro | 0 | # Copyright (c) 2013 Taher Haveliwala
# All Rights Reserved
#
# util.coffee
#
# See LICENSE for licensing
#
window.Asteroids = {} if not window.Asteroids
util = Asteroids.util = {}
util.sign = (x) ->
return if x > 0 then 1 else if x < 0 then -1 else 0
util.cap = (val, max) ->
if Math.abs(val) >= max
... | 89432 | # Copyright (c) 2013 <NAME>
# All Rights Reserved
#
# util.coffee
#
# See LICENSE for licensing
#
window.Asteroids = {} if not window.Asteroids
util = Asteroids.util = {}
util.sign = (x) ->
return if x > 0 then 1 else if x < 0 then -1 else 0
util.cap = (val, max) ->
if Math.abs(val) >= max
return ut... | true | # Copyright (c) 2013 PI:NAME:<NAME>END_PI
# All Rights Reserved
#
# util.coffee
#
# See LICENSE for licensing
#
window.Asteroids = {} if not window.Asteroids
util = Asteroids.util = {}
util.sign = (x) ->
return if x > 0 then 1 else if x < 0 then -1 else 0
util.cap = (val, max) ->
if Math.abs(val) >= max
... |
[
{
"context": " 2015\n# The MIT License (MIT)\n# Copyright (c) 2015 Dustin Dowell\n# github.com/dustindowell22/drop-down\n# =========",
"end": 98,
"score": 0.9998379945755005,
"start": 85,
"tag": "NAME",
"value": "Dustin Dowell"
},
{
"context": ")\n# Copyright (c) 2015 Dustin Dowell\n... | jquery.drop-down.coffee | dustin-archive/drop-down | 2 | # Drop Down - 1.0.4
# September 2, 2015
# The MIT License (MIT)
# Copyright (c) 2015 Dustin Dowell
# github.com/dustindowell22/drop-down
# ==============================================
(($) ->
$.fn.dropDown = (toggleClass = 'toggled') ->
# Cache this object
$this = $(this)
#
$ul = $this.find('ul'... | 10419 | # Drop Down - 1.0.4
# September 2, 2015
# The MIT License (MIT)
# Copyright (c) 2015 <NAME>
# github.com/dustindowell22/drop-down
# ==============================================
(($) ->
$.fn.dropDown = (toggleClass = 'toggled') ->
# Cache this object
$this = $(this)
#
$ul = $this.find('ul')
$... | true | # Drop Down - 1.0.4
# September 2, 2015
# The MIT License (MIT)
# Copyright (c) 2015 PI:NAME:<NAME>END_PI
# github.com/dustindowell22/drop-down
# ==============================================
(($) ->
$.fn.dropDown = (toggleClass = 'toggled') ->
# Cache this object
$this = $(this)
#
$ul = $this.fi... |
[
{
"context": ".0-pre'\ndescription: 'A npb seed project.'\nauthor: ':FooTearth <footearth@gmail.com>'\n# main: ''\nlicense: 'MIT'\n",
"end": 108,
"score": 0.9923355579376221,
"start": 97,
"tag": "USERNAME",
"value": "':FooTearth"
},
{
"context": "ption: 'A npb seed project.'\nauthor:... | npb.cson | Mooxe000/npb-seed | 0 | # PUBLIC CONFIG
name: 'npb-seed'
version: '0.0.0-pre'
description: 'A npb seed project.'
author: ':FooTearth <footearth@gmail.com>'
# main: ''
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/npb-seed.git'
bugs:
url: 'https://github.com/Mooxe000/npb-seed/issues'
homepage: 'https://github.c... | 49379 | # PUBLIC CONFIG
name: 'npb-seed'
version: '0.0.0-pre'
description: 'A npb seed project.'
author: ':FooTearth <<EMAIL>>'
# main: ''
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/npb-seed.git'
bugs:
url: 'https://github.com/Mooxe000/npb-seed/issues'
homepage: 'https://github.com/Mooxe000/... | true | # PUBLIC CONFIG
name: 'npb-seed'
version: '0.0.0-pre'
description: 'A npb seed project.'
author: ':FooTearth <PI:EMAIL:<EMAIL>END_PI>'
# main: ''
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/npb-seed.git'
bugs:
url: 'https://github.com/Mooxe000/npb-seed/issues'
homepage: 'https://githu... |
[
{
"context": " row[key] = parseFloat val if key isnt 'NEIGHBORHOOD'\n row\n out[years[index]] = data\n ",
"end": 5553,
"score": 0.540743887424469,
"start": 5543,
"tag": "KEY",
"value": "IGHBORHOOD"
}
] | source/javascripts/all.coffee | gruppopam/portland-census | 0 | #= require mappings
years = [2000, 2010]
width = 900
height = 680
vis = null
places = null
neighborhoods = null
directory = null
format = d3.format ','
colors = [
'#0aafed'
'#3bbff1'
'#6ccff4'
'#9ddff8'
'#ceeffb'
'#fff'
]
intensity = d3.scale.quantile()
projection = d3.geo.albers().rotate [120]
pat... | 98479 | #= require mappings
years = [2000, 2010]
width = 900
height = 680
vis = null
places = null
neighborhoods = null
directory = null
format = d3.format ','
colors = [
'#0aafed'
'#3bbff1'
'#6ccff4'
'#9ddff8'
'#ceeffb'
'#fff'
]
intensity = d3.scale.quantile()
projection = d3.geo.albers().rotate [120]
pat... | true | #= require mappings
years = [2000, 2010]
width = 900
height = 680
vis = null
places = null
neighborhoods = null
directory = null
format = d3.format ','
colors = [
'#0aafed'
'#3bbff1'
'#6ccff4'
'#9ddff8'
'#ceeffb'
'#fff'
]
intensity = d3.scale.quantile()
projection = d3.geo.albers().rotate [120]
pat... |
[
{
"context": "-890'\n\n\t\tit 'email', () ->\n\t\t\torg = 'info@hogehoge.com';\n\t\t\tcnv = nvalidr(org).email().s\n\t\t\tassert cnv =",
"end": 6399,
"score": 0.8046162128448486,
"start": 6396,
"tag": "EMAIL",
"value": "com"
},
{
"context": "\t\t\tcnv = nvalidr(org).email().s\n\t\t\t... | test/main.coffee | yuka2py/nvalidr.js | 2 | nvalidr = require '../lib/nvalidr.js'
assert = require 'power-assert'
describe 'nvalidr/', () ->
describe 'type/', () ->
it 'toInt', () ->
org = '1234.5';
dst = nvalidr(org).toInt();
assert dst == 1234
it 'toFloat', () ->
org = '1234.5';
dst = nvalidr(org).toFloat();
assert dst == 1234.5
i... | 9584 | nvalidr = require '../lib/nvalidr.js'
assert = require 'power-assert'
describe 'nvalidr/', () ->
describe 'type/', () ->
it 'toInt', () ->
org = '1234.5';
dst = nvalidr(org).toInt();
assert dst == 1234
it 'toFloat', () ->
org = '1234.5';
dst = nvalidr(org).toFloat();
assert dst == 1234.5
i... | true | nvalidr = require '../lib/nvalidr.js'
assert = require 'power-assert'
describe 'nvalidr/', () ->
describe 'type/', () ->
it 'toInt', () ->
org = '1234.5';
dst = nvalidr(org).toInt();
assert dst == 1234
it 'toFloat', () ->
org = '1234.5';
dst = nvalidr(org).toFloat();
assert dst == 1234.5
i... |
[
{
"context": " log \"adminmodule.apply\"\n try\n token = appState.token()\n langTag = pwaContent.languageTag\n ",
"end": 7536,
"score": 0.6908311247825623,
"start": 7522,
"tag": "KEY",
"value": "appState.token"
}
] | source/adminmodule/adminmodule.coffee | JhonnyJason/admin-tester-admin-interface-sources | 0 | adminmodule = {name: "adminmodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if adminModules.debugmodule.modulesToDebug["adminmodule"]? then console.log "[adminmodule]: " + arg
return
ostr = (obj) -> JSON.stringify(obj, null, 4)
olog = (obj) -> log "... | 128813 | adminmodule = {name: "adminmodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if adminModules.debugmodule.modulesToDebug["adminmodule"]? then console.log "[adminmodule]: " + arg
return
ostr = (obj) -> JSON.stringify(obj, null, 4)
olog = (obj) -> log "... | true | adminmodule = {name: "adminmodule"}
############################################################
#region printLogFunctions
log = (arg) ->
if adminModules.debugmodule.modulesToDebug["adminmodule"]? then console.log "[adminmodule]: " + arg
return
ostr = (obj) -> JSON.stringify(obj, null, 4)
olog = (obj) -> log "... |
[
{
"context": "rom.reject()\n prom.promise\n\n email = 'wrong@email.here'\n password = 'wrongpassword'\n\n @control",
"end": 2337,
"score": 0.9999063611030579,
"start": 2321,
"tag": "EMAIL",
"value": "wrong@email.here"
},
{
"context": " email = 'wrong@email.h... | src/app/layout/layout.navigation.spec.coffee | pavelkuchin/tracktrains-ui | 0 | describe 'LayoutNavigationCtrl', () ->
beforeEach(module('trackSeatsApp'))
beforeEach(inject((@$rootScope, $controller, $httpBackend,
@$q, @ALERTS_TYPE, @NAVIGATION) =>
$httpBackend.when('GET', '/v1/user/session/').respond({})
$httpBackend.when('GET', 'app/pages/landing/pages.landing.t... | 124024 | describe 'LayoutNavigationCtrl', () ->
beforeEach(module('trackSeatsApp'))
beforeEach(inject((@$rootScope, $controller, $httpBackend,
@$q, @ALERTS_TYPE, @NAVIGATION) =>
$httpBackend.when('GET', '/v1/user/session/').respond({})
$httpBackend.when('GET', 'app/pages/landing/pages.landing.t... | true | describe 'LayoutNavigationCtrl', () ->
beforeEach(module('trackSeatsApp'))
beforeEach(inject((@$rootScope, $controller, $httpBackend,
@$q, @ALERTS_TYPE, @NAVIGATION) =>
$httpBackend.when('GET', '/v1/user/session/').respond({})
$httpBackend.when('GET', 'app/pages/landing/pages.landing.t... |
[
{
"context": "#\n# Just The Date widget for Übersicht\n# Ruurd Pels\n# github.com/ruurd/justthedate\n#\n\n#\n# Adjust the ",
"end": 51,
"score": 0.999901533126831,
"start": 41,
"tag": "NAME",
"value": "Ruurd Pels"
},
{
"context": "te widget for Übersicht\n# Ruurd Pels\n# github.com/r... | index.coffee | ruurd/simpledate | 0 | #
# Just The Date widget for Übersicht
# Ruurd Pels
# github.com/ruurd/justthedate
#
#
# Adjust the styles as you like
#
style =
# Define the maximum width of the widget.
width: "45%"
# Define the position, where to display the date.
# Set properties you don't need to "auto"
position:
top: "1%"
b... | 76902 | #
# Just The Date widget for Übersicht
# <NAME>
# github.com/ruurd/justthedate
#
#
# Adjust the styles as you like
#
style =
# Define the maximum width of the widget.
width: "45%"
# Define the position, where to display the date.
# Set properties you don't need to "auto"
position:
top: "1%"
botto... | true | #
# Just The Date widget for Übersicht
# PI:NAME:<NAME>END_PI
# github.com/ruurd/justthedate
#
#
# Adjust the styles as you like
#
style =
# Define the maximum width of the widget.
width: "45%"
# Define the position, where to display the date.
# Set properties you don't need to "auto"
position:
top: ... |
[
{
"context": "_user =\n\t\t\tname: null\n\t\t\temail: email\n\t\t\tpassword: passwordcypt\n\t\t@get email, \"email\", ( err, user )=>\n\t\t\tif err ",
"end": 1318,
"score": 0.9986447691917419,
"start": 1306,
"tag": "PASSWORD",
"value": "passwordcypt"
},
{
"context": " err )\n\n\t\t\t... | _src/test/dummy_userstore.coffee | mpneuried/tcs_node_auth | 1 | _ = require( "lodash" )._
class DummyDB
constructor: ( @coll )->
return
# Dummy db methods
has: ( query, cb )=>
if _.some( @coll, query )
cb( null, true )
else
cb( null, false )
return
filter: ( query, cb )=>
_result = _.filter( @coll, query )
cb( null, _result )
return
create: ( data, cb )... | 49948 | _ = require( "lodash" )._
class DummyDB
constructor: ( @coll )->
return
# Dummy db methods
has: ( query, cb )=>
if _.some( @coll, query )
cb( null, true )
else
cb( null, false )
return
filter: ( query, cb )=>
_result = _.filter( @coll, query )
cb( null, _result )
return
create: ( data, cb )... | true | _ = require( "lodash" )._
class DummyDB
constructor: ( @coll )->
return
# Dummy db methods
has: ( query, cb )=>
if _.some( @coll, query )
cb( null, true )
else
cb( null, false )
return
filter: ( query, cb )=>
_result = _.filter( @coll, query )
cb( null, _result )
return
create: ( data, cb )... |
[
{
"context": " ip: '1.2.3.4',\n ssh_key: 'overcast.key',\n ssh_port: '22',\n use",
"end": 317,
"score": 0.986060619354248,
"start": 305,
"tag": "KEY",
"value": "overcast.key"
},
{
"context": " ssh_port: '22',\n ... | test/unit/completions.spec.coffee | skmezanul/overcast | 238 | cli = require('../../modules/cli')
utils = require('../../modules/utils')
describe 'completions', ->
beforeEach ->
spyOn(utils, 'getClusters').andReturn({
default: {
instances: {
vm01: {
name: 'vm01',
ip: '1.2.3.4',
ssh_key: 'overcast.key',
... | 9371 | cli = require('../../modules/cli')
utils = require('../../modules/utils')
describe 'completions', ->
beforeEach ->
spyOn(utils, 'getClusters').andReturn({
default: {
instances: {
vm01: {
name: 'vm01',
ip: '1.2.3.4',
ssh_key: '<KEY>',
... | true | cli = require('../../modules/cli')
utils = require('../../modules/utils')
describe 'completions', ->
beforeEach ->
spyOn(utils, 'getClusters').andReturn({
default: {
instances: {
vm01: {
name: 'vm01',
ip: '1.2.3.4',
ssh_key: 'PI:KEY:<KEY>END... |
[
{
"context": "cribe 'Placebo', ->\n\n settings.linode_api_key = 'fakeapikey'\n settings.config_path = 'test/class'\n\n it 'can",
"end": 222,
"score": 0.9869097471237183,
"start": 212,
"tag": "KEY",
"value": "fakeapikey"
}
] | test/placebo.coffee | scraperwiki/lithium | 0 | # Placebo and its Mocha tests.
should = require 'should'
_ = require 'underscore'
Placebo = require '../code/placebo'
settings = require 'settings'
describe 'Placebo', ->
settings.linode_api_key = 'fakeapikey'
settings.config_path = 'test/class'
it 'can create a placebo instance with a config', ->
... | 53989 | # Placebo and its Mocha tests.
should = require 'should'
_ = require 'underscore'
Placebo = require '../code/placebo'
settings = require 'settings'
describe 'Placebo', ->
settings.linode_api_key = '<KEY>'
settings.config_path = 'test/class'
it 'can create a placebo instance with a config', ->
ins... | true | # Placebo and its Mocha tests.
should = require 'should'
_ = require 'underscore'
Placebo = require '../code/placebo'
settings = require 'settings'
describe 'Placebo', ->
settings.linode_api_key = 'PI:KEY:<KEY>END_PI'
settings.config_path = 'test/class'
it 'can create a placebo instance with a config... |
[
{
"context": "est (or response), concatenated by dots.\n key = null\n entry = {}\n\n for i in [0..@path.length]\n ",
"end": 2571,
"score": 0.9840342402458191,
"start": 2567,
"tag": "KEY",
"value": "null"
}
] | src/detect-transaction-examples.coffee | cranieri/dredd-transactions-extended | 0 |
traverse = require('traverse')
detectTransactionExamples = (transition) ->
# Index of requests and responses within given *transition*, sorted by
# their position in the original API Blueprint document.
index = createIndex(transition)
# No transaction examples, handling as a special case.
if not index.len... | 111100 |
traverse = require('traverse')
detectTransactionExamples = (transition) ->
# Index of requests and responses within given *transition*, sorted by
# their position in the original API Blueprint document.
index = createIndex(transition)
# No transaction examples, handling as a special case.
if not index.len... | true |
traverse = require('traverse')
detectTransactionExamples = (transition) ->
# Index of requests and responses within given *transition*, sorted by
# their position in the original API Blueprint document.
index = createIndex(transition)
# No transaction examples, handling as a special case.
if not index.len... |
[
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>\nAll rights reserved.\n\nRedistri",
"end": 42,
"score": 0.9998443126678467,
"start": 24,
"tag": "NAME",
"value": "Alexander Cherniuk"
},
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmai... | library/nucleus/scanner.coffee | ts33kr/granite | 6 | ###
Copyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of co... | 108294 | ###
Copyright (c) 2013, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the foll... | true | ###
Copyright (c) 2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
li... |
[
{
"context": "sername : API_KEY\n password : 'thisdoesntmatter'\n sendImmediately : false\n form ",
"end": 411,
"score": 0.9993555545806885,
"start": 395,
"tag": "PASSWORD",
"value": "thisdoesntmatter"
}
] | servers/lib/server/handlers/wufooproxy.coffee | lionheart1022/koding | 0 | request = require 'request'
{ wufoo } = require 'koding-config-manager'
API_KEY = wufoo
module.exports = (req, res, next) ->
{ identifier } = req.params
formURI = "https://koding.wufoo.com/api/v3/forms/#{identifier}/entries.json"
request
uri : formURI
method : 'POST'
au... | 164025 | request = require 'request'
{ wufoo } = require 'koding-config-manager'
API_KEY = wufoo
module.exports = (req, res, next) ->
{ identifier } = req.params
formURI = "https://koding.wufoo.com/api/v3/forms/#{identifier}/entries.json"
request
uri : formURI
method : 'POST'
au... | true | request = require 'request'
{ wufoo } = require 'koding-config-manager'
API_KEY = wufoo
module.exports = (req, res, next) ->
{ identifier } = req.params
formURI = "https://koding.wufoo.com/api/v3/forms/#{identifier}/entries.json"
request
uri : formURI
method : 'POST'
au... |
[
{
"context": "ng went wrong. Please contact our <a href=\"mailto:support@swarmcorp.com\">support team</a>.'\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\toption.co",
"end": 4448,
"score": 0.9999232888221741,
"start": 4427,
"tag": "EMAIL",
"value": "support@swarmcorp.com"
}
] | js/directives/sidebar/da-sidebar-voting.coffee | SwarmCorp/razzledazzle | 0 | window.app.directive 'daSidebarVoting', ($modal, Wallet, User, Voting, Counterparty) ->
restrict: 'A'
templateUrl: 'partials/app/blocks/sidebar-voting.html'
replace: true
link: (scope) ->
bitcore = require 'bitcore'
scope.secredAccepted = false || window.daDebug?.votingSecretAccepted
scope.voting = null
... | 119899 | window.app.directive 'daSidebarVoting', ($modal, Wallet, User, Voting, Counterparty) ->
restrict: 'A'
templateUrl: 'partials/app/blocks/sidebar-voting.html'
replace: true
link: (scope) ->
bitcore = require 'bitcore'
scope.secredAccepted = false || window.daDebug?.votingSecretAccepted
scope.voting = null
... | true | window.app.directive 'daSidebarVoting', ($modal, Wallet, User, Voting, Counterparty) ->
restrict: 'A'
templateUrl: 'partials/app/blocks/sidebar-voting.html'
replace: true
link: (scope) ->
bitcore = require 'bitcore'
scope.secredAccepted = false || window.daDebug?.votingSecretAccepted
scope.voting = null
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.