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": "# Copyright 2015, Christopher Joakim <christopher.joakim@gmail.com>\n\nroot = exports ? ",
"end": 36,
"score": 0.999884307384491,
"start": 18,
"tag": "NAME",
"value": "Christopher Joakim"
},
{
"context": "# Copyright 2015, Christopher Joakim <christopher.joakim@gmail.co... | m26-js/src/m26_run_walk_calculator.coffee | cjoakim/oss | 0 | # Copyright 2015, Christopher Joakim <christopher.joakim@gmail.com>
root = exports ? this
class RunWalkCalculator
# these are "class methods", not "instance methods".
@calculate: (run_hhmmss, run_ppm, walk_hhmmss, walk_ppm, miles) ->
result = {}
if run_hhmmss and run_ppm and walk_hhmmss and walk_ppm
... | 133713 | # Copyright 2015, <NAME> <<EMAIL>>
root = exports ? this
class RunWalkCalculator
# these are "class methods", not "instance methods".
@calculate: (run_hhmmss, run_ppm, walk_hhmmss, walk_ppm, miles) ->
result = {}
if run_hhmmss and run_ppm and walk_hhmmss and walk_ppm
run_duration_elapsed_time = ... | true | # Copyright 2015, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
root = exports ? this
class RunWalkCalculator
# these are "class methods", not "instance methods".
@calculate: (run_hhmmss, run_ppm, walk_hhmmss, walk_ppm, miles) ->
result = {}
if run_hhmmss and run_ppm and walk_hhmmss and walk_ppm
... |
[
{
"context": "ect containing properties to be set e.g. { name: 'my name' }\n set: (properties) =>\n _.each properties, ",
"end": 8566,
"score": 0.8635609745979309,
"start": 8559,
"tag": "NAME",
"value": "my name"
}
] | src/model/baseModel.coffee | BlackBalloon/hapi-simple-orm | 2 | 'use strict'
Joi = require 'joi'
_ = require 'underscore'
fs = require 'fs'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
Promise = require 'bluebird'
ForeignKey = require '../fields/foreignKey'
BaseField = require '..... | 86029 | 'use strict'
Joi = require 'joi'
_ = require 'underscore'
fs = require 'fs'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
Promise = require 'bluebird'
ForeignKey = require '../fields/foreignKey'
BaseField = require '..... | true | 'use strict'
Joi = require 'joi'
_ = require 'underscore'
fs = require 'fs'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
Promise = require 'bluebird'
ForeignKey = require '../fields/foreignKey'
BaseField = require '..... |
[
{
"context": "me\" placeholder=\"Name (Required)\" ng-model=\"model.name\" focus-me=\"step=='model'\" required>\n ",
"end": 3862,
"score": 0.8192542791366577,
"start": 3858,
"tag": "NAME",
"value": "name"
},
{
"context": "text\" class=\"form-control\" id=\"name\" placehol... | ModelCatalogueCorePlugin/grails-app/assets/javascripts/modelcatalogue/core/ui/bs/modelWizard.coffee | tumtumtree/tumtumtree | 0 | angular.module('mc.core.ui.bs.modelWizard', ['mc.util.messages', 'mc.util.ui.focusMe']).config ['messagesProvider', (messagesProvider)->
factory = [ '$modal', '$q', 'messages', '$rootScope', ($modal, $q, messages,$rootScope) ->
(title, body, args) ->
# TODO: add add classifications step
$rootScope.c... | 20365 | angular.module('mc.core.ui.bs.modelWizard', ['mc.util.messages', 'mc.util.ui.focusMe']).config ['messagesProvider', (messagesProvider)->
factory = [ '$modal', '$q', 'messages', '$rootScope', ($modal, $q, messages,$rootScope) ->
(title, body, args) ->
# TODO: add add classifications step
$rootScope.c... | true | angular.module('mc.core.ui.bs.modelWizard', ['mc.util.messages', 'mc.util.ui.focusMe']).config ['messagesProvider', (messagesProvider)->
factory = [ '$modal', '$q', 'messages', '$rootScope', ($modal, $q, messages,$rootScope) ->
(title, body, args) ->
# TODO: add add classifications step
$rootScope.c... |
[
{
"context": "r\"\n and: \"i\"\n back: \"enrere\"\n changePassword: \"Canviar contrassenya\"\n choosePassword: \"Escollir contrassenya\"\n clic",
"end": 128,
"score": 0.9985389709472656,
"start": 108,
"tag": "PASSWORD",
"value": "Canviar contrassenya"
},
{
"context": "ssword: \"... | t9n/ca.coffee | tnedich/meteor-accounts-t9n | 0 | #Language: Catalan
#Translators: ixdi
ca =
add: "afegir"
and: "i"
back: "enrere"
changePassword: "Canviar contrassenya"
choosePassword: "Escollir contrassenya"
clickAgree: "Al fer clic a Subscriure aproves la"
configure: "Disposició"
createAccount: "Crear compte"
currentPassword: "Contrassenya actua... | 109827 | #Language: Catalan
#Translators: ixdi
ca =
add: "afegir"
and: "i"
back: "enrere"
changePassword: "<PASSWORD>"
choosePassword: "<PASSWORD>"
clickAgree: "Al fer clic a Subscriure aproves la"
configure: "Disposició"
createAccount: "Crear compte"
currentPassword: "<PASSWORD>"
dontHaveAnAccount: "No te... | true | #Language: Catalan
#Translators: ixdi
ca =
add: "afegir"
and: "i"
back: "enrere"
changePassword: "PI:PASSWORD:<PASSWORD>END_PI"
choosePassword: "PI:PASSWORD:<PASSWORD>END_PI"
clickAgree: "Al fer clic a Subscriure aproves la"
configure: "Disposició"
createAccount: "Crear compte"
currentPassword: "PI:... |
[
{
"context": "ld.equal 'bar'\n '''\n\nmySpec = new Spec \n name: 'assignment test'\n specDSL: code\n isCoffee: true\n\n#>> Then\n\nmySp",
"end": 302,
"score": 0.7650010585784912,
"start": 287,
"tag": "NAME",
"value": "assignment test"
}
] | domain/specifications/services/specs/runSpec.spec.coffee | wearefractal/spex | 0 | #>> Setup
require 'should'
Spec = require '../../models/Spec'
runSpec = require '../runSpec'
#>> Given a Spec
code =
'''
#>> Given foo
foo = 'foo'
#>> When I change the value of foo
foo = 'bar'
#>> Then
foo.should.equal 'bar'
'''
mySpec = new Spec
name: 'assignment test'
specDSL: code
... | 202556 | #>> Setup
require 'should'
Spec = require '../../models/Spec'
runSpec = require '../runSpec'
#>> Given a Spec
code =
'''
#>> Given foo
foo = 'foo'
#>> When I change the value of foo
foo = 'bar'
#>> Then
foo.should.equal 'bar'
'''
mySpec = new Spec
name: '<NAME>'
specDSL: code
isCoffe... | true | #>> Setup
require 'should'
Spec = require '../../models/Spec'
runSpec = require '../runSpec'
#>> Given a Spec
code =
'''
#>> Given foo
foo = 'foo'
#>> When I change the value of foo
foo = 'bar'
#>> Then
foo.should.equal 'bar'
'''
mySpec = new Spec
name: 'PI:NAME:<NAME>END_PI'
specDSL: ... |
[
{
"context": " service = @repository.replace('/', '-')\n key = \"/vulcand/backends/#{service}/servers\"\n etcdManager = new EtcdManager ETCDCTL_PEERS:",
"end": 3877,
"score": 0.98345947265625,
"start": 3840,
"tag": "KEY",
"value": "\"/vulcand/backends/#{service}/servers"
}
] | src/status-model.coffee | octoblu/deployinate-service | 1 | _ = require 'lodash'
url = require 'url'
async = require 'async'
request = require 'request'
EtcdManager = require './etcd-manager'
EtcdParserModel = require './etcd-parser-model'
debug = require('debug')('deployinate-service:status-model')
class StatusModel
con... | 161143 | _ = require 'lodash'
url = require 'url'
async = require 'async'
request = require 'request'
EtcdManager = require './etcd-manager'
EtcdParserModel = require './etcd-parser-model'
debug = require('debug')('deployinate-service:status-model')
class StatusModel
con... | true | _ = require 'lodash'
url = require 'url'
async = require 'async'
request = require 'request'
EtcdManager = require './etcd-manager'
EtcdParserModel = require './etcd-parser-model'
debug = require('debug')('deployinate-service:status-model')
class StatusModel
con... |
[
{
"context": "aaa'\n expect(result).to.be.empty\n\n it 'returns Carlton, VIC when search for postcode 3053', ->\n r",
"end": 462,
"score": 0.6706900000572205,
"start": 459,
"tag": "NAME",
"value": "Car"
},
{
"context": "e.lengthOf 1\n expect(result[0].name).to.equal 'Carlto... | test/api.coffee | nqngo/weather-au-api | 2 | # Run `yarn run cake build` to build api.js
# `yarn run cake test` to run this test
chai = require 'chai'
chai.use require 'chai-datetime'
expect = chai.expect
Api = require '../api.js'
api = new Api
now = Date.now()
describe 'Api', ->
it 'returns nothing when search for invalid string', ->
result = await api... | 5568 | # Run `yarn run cake build` to build api.js
# `yarn run cake test` to run this test
chai = require 'chai'
chai.use require 'chai-datetime'
expect = chai.expect
Api = require '../api.js'
api = new Api
now = Date.now()
describe 'Api', ->
it 'returns nothing when search for invalid string', ->
result = await api... | true | # Run `yarn run cake build` to build api.js
# `yarn run cake test` to run this test
chai = require 'chai'
chai.use require 'chai-datetime'
expect = chai.expect
Api = require '../api.js'
api = new Api
now = Date.now()
describe 'Api', ->
it 'returns nothing when search for invalid string', ->
result = await api... |
[
{
"context": "fix classes with js-\n\n defaults:\n csrfToken: \"csrf_token\",\n target: \"#post_url\"\n\n constructor: (el, op",
"end": 143,
"score": 0.8815522789955139,
"start": 133,
"tag": "PASSWORD",
"value": "csrf_token"
}
] | spirit/static/spirit/scripts/move_comments.coffee | rterehov/Spirit | 1 | ###
Move comments to other topic
###
$ = jQuery
class MoveComment
#TODO: prefix classes with js-
defaults:
csrfToken: "csrf_token",
target: "#post_url"
constructor: (el, options) ->
@el = $(el)
@options = $.extend {}, @defaults, options
do @setUp
setUp: ->
@el.on 'click', @showMo... | 22349 | ###
Move comments to other topic
###
$ = jQuery
class MoveComment
#TODO: prefix classes with js-
defaults:
csrfToken: "<PASSWORD>",
target: "#post_url"
constructor: (el, options) ->
@el = $(el)
@options = $.extend {}, @defaults, options
do @setUp
setUp: ->
@el.on 'click', @showMo... | true | ###
Move comments to other topic
###
$ = jQuery
class MoveComment
#TODO: prefix classes with js-
defaults:
csrfToken: "PI:PASSWORD:<PASSWORD>END_PI",
target: "#post_url"
constructor: (el, options) ->
@el = $(el)
@options = $.extend {}, @defaults, options
do @setUp
setUp: ->
@el.o... |
[
{
"context": "he: (alpha_s, idx, vdata) ->\n cache_key = [ alpha_s, idx, JSON.stringify(vdata) ].join('#')\n if @v_cache.",
"end": 9776,
"score": 0.9073193669319153,
"start": 9758,
"tag": "KEY",
"value": "alpha_s, idx, JSON"
},
{
"context": "data) ->\n cache_key ... | coffee/bloodyroots.coffee | squarooticus/bloodyroots | 1 | re_quote = require('regexp-quote')
inspect_orig = require('util').inspect
inspect = (x) -> inspect_orig(x, false, null)
require('sprintf.js')
typeIsArray = Array.isArray || ( value ) -> return {}.toString.call( value ) is '[object Array]'
class Parser
@define_production: (alpha_s, beta) ->
@prototype[alpha... | 65782 | re_quote = require('regexp-quote')
inspect_orig = require('util').inspect
inspect = (x) -> inspect_orig(x, false, null)
require('sprintf.js')
typeIsArray = Array.isArray || ( value ) -> return {}.toString.call( value ) is '[object Array]'
class Parser
@define_production: (alpha_s, beta) ->
@prototype[alpha... | true | re_quote = require('regexp-quote')
inspect_orig = require('util').inspect
inspect = (x) -> inspect_orig(x, false, null)
require('sprintf.js')
typeIsArray = Array.isArray || ( value ) -> return {}.toString.call( value ) is '[object Array]'
class Parser
@define_production: (alpha_s, beta) ->
@prototype[alpha... |
[
{
"context": "t.header \"\"\"/*\n\t\t\t@license md-date-time\n\t\t\t@author SimeonC\n\t\t\t@license 2015 MIT\n\t\t\t@version #{pkg.version}\n\t",
"end": 1678,
"score": 0.9119669795036316,
"start": 1671,
"tag": "USERNAME",
"value": "SimeonC"
},
{
"context": "t.header \"\"\"/*\n\t\t\t@... | gulpfile.coffee | Teleopti/md-date-time | 3 | # dependencies
fs = require 'fs'
path = require 'path'
gulp = require 'gulp'
git = require 'gulp-git'
bump = require 'gulp-bump'
filter = require 'gulp-filter'
tag_version = require 'gulp-tag-version'
del = require 'del'
concat = require 'gulp-concat-util'
order = require 'gulp-order'
rename = require 'gulp-rename'
run... | 11805 | # dependencies
fs = require 'fs'
path = require 'path'
gulp = require 'gulp'
git = require 'gulp-git'
bump = require 'gulp-bump'
filter = require 'gulp-filter'
tag_version = require 'gulp-tag-version'
del = require 'del'
concat = require 'gulp-concat-util'
order = require 'gulp-order'
rename = require 'gulp-rename'
run... | true | # dependencies
fs = require 'fs'
path = require 'path'
gulp = require 'gulp'
git = require 'gulp-git'
bump = require 'gulp-bump'
filter = require 'gulp-filter'
tag_version = require 'gulp-tag-version'
del = require 'del'
concat = require 'gulp-concat-util'
order = require 'gulp-order'
rename = require 'gulp-rename'
run... |
[
{
"context": "utf8'\nconsole.log pk\npk[0].decryptSecretMPIs 'asdfqwer'\nconsole.log pk[0]\nfor i in pk[0].privateKeyPacke",
"end": 210,
"score": 0.8465661406517029,
"start": 206,
"tag": "KEY",
"value": "qwer"
}
] | dev/oc5.iced | samkenxstream/kbpgp | 464 |
{openpgp} = require('openpgp')
openpgp.init()
fs = require 'fs'
await fs.readFile '../xa', defer err, buffer
pk = openpgp.read_privateKey buffer.toString 'utf8'
console.log pk
pk[0].decryptSecretMPIs 'asdfqwer'
console.log pk[0]
for i in pk[0].privateKeyPacket.secMPIs
console.log i.toString()
#packet = new KeyMater... | 109599 |
{openpgp} = require('openpgp')
openpgp.init()
fs = require 'fs'
await fs.readFile '../xa', defer err, buffer
pk = openpgp.read_privateKey buffer.toString 'utf8'
console.log pk
pk[0].decryptSecretMPIs 'asdf<KEY>'
console.log pk[0]
for i in pk[0].privateKeyPacket.secMPIs
console.log i.toString()
#packet = new KeyMate... | true |
{openpgp} = require('openpgp')
openpgp.init()
fs = require 'fs'
await fs.readFile '../xa', defer err, buffer
pk = openpgp.read_privateKey buffer.toString 'utf8'
console.log pk
pk[0].decryptSecretMPIs 'asdfPI:KEY:<KEY>END_PI'
console.log pk[0]
for i in pk[0].privateKeyPacket.secMPIs
console.log i.toString()
#packet ... |
[
{
"context": "append('gallery[title]', $scope.gallery.title || 'Галерея')\n fd.append('gallery[poster]', $scope.gallery",
"end": 719,
"score": 0.9838983416557312,
"start": 712,
"tag": "NAME",
"value": "Галерея"
}
] | app/assets/javascripts/kms_gallery/application/controllers/galleries_controller.coffee | macrocoders/kms_gallery | 0 | angular.module('KMS').requires.push('ngFileUpload')
GalleriesController = ($scope, $state, $cookieStore, $timeout, Upload, Restangular, $stateParams, $http) ->
$scope.store = Restangular.all('galleries')
$scope.$state = $state
$scope.store.getList().then (galleries)->
$scope.galleries = galleries
if ... | 469 | angular.module('KMS').requires.push('ngFileUpload')
GalleriesController = ($scope, $state, $cookieStore, $timeout, Upload, Restangular, $stateParams, $http) ->
$scope.store = Restangular.all('galleries')
$scope.$state = $state
$scope.store.getList().then (galleries)->
$scope.galleries = galleries
if ... | true | angular.module('KMS').requires.push('ngFileUpload')
GalleriesController = ($scope, $state, $cookieStore, $timeout, Upload, Restangular, $stateParams, $http) ->
$scope.store = Restangular.all('galleries')
$scope.$state = $state
$scope.store.getList().then (galleries)->
$scope.galleries = galleries
if ... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9986495971679688,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | lib/crypto.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... | 27557 | # 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": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9990475177764893,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-sigint-infinite-loop.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... | 177500 | # 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": "on data bare', ->\n houses =\n lannister: ['Tywin', 'Cersei', 'Tyrion', 'Jaimie']\n baratheon: ",
"end": 204,
"score": 0.9997936487197876,
"start": 199,
"tag": "NAME",
"value": "Tywin"
},
{
"context": "are', ->\n houses =\n lannister: ['Tywin', 'Cer... | test/hypermedia-formats/bare.coffee | OpenCubes/Nap | 1 | bare = require '../../lib/hypermedia-formats/bare'
should = require('chai').should()
describe 'bare hypermedia formatter', ->
it 'should return json data bare', ->
houses =
lannister: ['Tywin', 'Cersei', 'Tyrion', 'Jaimie']
baratheon: ['Robert', 'Renly', 'Stannis']
stark: ['Ned', 'Catelyn', 'Sa... | 142282 | bare = require '../../lib/hypermedia-formats/bare'
should = require('chai').should()
describe 'bare hypermedia formatter', ->
it 'should return json data bare', ->
houses =
lannister: ['<NAME>', '<NAME>', '<NAME>', '<NAME>']
baratheon: ['<NAME>', '<NAME>', '<NAME>']
stark: ['<NAME>', '<NAME>', ... | true | bare = require '../../lib/hypermedia-formats/bare'
should = require('chai').should()
describe 'bare hypermedia formatter', ->
it 'should return json data bare', ->
houses =
lannister: ['PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI']
baratheon: ['PI:NAME... |
[
{
"context": "'\n 'filename'\n ]\n\n @AUTH_COMPONENTS = [\n 'username'\n 'password'\n ]\n\n @ALIAS_COMPONENTS =\n ha",
"end": 650,
"score": 0.9502048492431641,
"start": 642,
"tag": "USERNAME",
"value": "username"
},
{
"context": "onents = {}) ->\n components = {\n ... | src/lib/object/url.coffee | krokis/layla | 9 | ParseURL = require 'url'
Net = require 'net'
Path = require 'path'
URI = require './uri'
Null = require './null'
Boolean = require './boolean'
String = require './string'
QuotedString = require './string/quoted'
Number = require './number'
Error = require '... | 174104 | ParseURL = require 'url'
Net = require 'net'
Path = require 'path'
URI = require './uri'
Null = require './null'
Boolean = require './boolean'
String = require './string'
QuotedString = require './string/quoted'
Number = require './number'
Error = require '... | true | ParseURL = require 'url'
Net = require 'net'
Path = require 'path'
URI = require './uri'
Null = require './null'
Boolean = require './boolean'
String = require './string'
QuotedString = require './string/quoted'
Number = require './number'
Error = require '... |
[
{
"context": "an HTTP POST request to create a product.\r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass CreateAircraftP",
"end": 156,
"score": 0.9998397827148438,
"start": 144,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/specification/request/ajax/CreateAircraftProductAjaxRequest.coffee | qrefdev/qref | 0 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a product.
@author Nathan Klick
@copyright QRef 2012
###
class CreateAircraftProductAjaxRequest extends AjaxRequest
###
@property [String] (Required) A unique internal name for the product... | 192062 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a product.
@author <NAME>
@copyright QRef 2012
###
class CreateAircraftProductAjaxRequest extends AjaxRequest
###
@property [String] (Required) A unique internal name for the product. Migh... | true | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a product.
@author PI:NAME:<NAME>END_PI
@copyright QRef 2012
###
class CreateAircraftProductAjaxRequest extends AjaxRequest
###
@property [String] (Required) A unique internal name for the... |
[
{
"context": "p for bot commands'\n version: '0.2'\n authors: ['Álvaro Cuesta']\n",
"end": 1766,
"score": 0.9998679161071777,
"start": 1753,
"tag": "NAME",
"value": "Álvaro Cuesta"
}
] | plugins/help.coffee | alvaro-cuesta/nerdobot | 2 | module.exports = ({hidden, banner}) ->
@addCommand 'help',
args: '<command, optional>'
description: 'List commands or print help for <command>'
({nick}, command, to) =>
to ?= nick
if command?
command = command[1..] if command[0] == @config.prefix
for _, meta of @plugins
... | 69647 | module.exports = ({hidden, banner}) ->
@addCommand 'help',
args: '<command, optional>'
description: 'List commands or print help for <command>'
({nick}, command, to) =>
to ?= nick
if command?
command = command[1..] if command[0] == @config.prefix
for _, meta of @plugins
... | true | module.exports = ({hidden, banner}) ->
@addCommand 'help',
args: '<command, optional>'
description: 'List commands or print help for <command>'
({nick}, command, to) =>
to ?= nick
if command?
command = command[1..] if command[0] == @config.prefix
for _, meta of @plugins
... |
[
{
"context": "1UserId = 42\n\t\t@user =\n\t\t\t_id: @userId\n\t\t\temail: 'user@example.com'\n\t\t\toverleaf:\n\t\t\t\tid: @v1UserId\n\n\tdescribe 'getPl",
"end": 888,
"score": 0.9998677372932434,
"start": 872,
"tag": "EMAIL",
"value": "user@example.com"
}
] | test/unit/coffee/Subscription/V1SusbcriptionManagerTests.coffee | shyoshyo/web-sharelatex | 1 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
modulePath = path.join __dirname, '../../../../app/js/Features/Subscription/V1SubscriptionManager'
sinon = require("sinon")
expect = require("chai").expect
describe 'V1SubscriptionManager'... | 183284 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
modulePath = path.join __dirname, '../../../../app/js/Features/Subscription/V1SubscriptionManager'
sinon = require("sinon")
expect = require("chai").expect
describe 'V1SubscriptionManager'... | true | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
modulePath = path.join __dirname, '../../../../app/js/Features/Subscription/V1SubscriptionManager'
sinon = require("sinon")
expect = require("chai").expect
describe 'V1SubscriptionManager'... |
[
{
"context": "aseObject\", ->\n beforeEach ->\n @name = \"nick\"\n @state = \"fl\"\n @defaultSubject = ",
"end": 781,
"score": 0.997123122215271,
"start": 777,
"tag": "NAME",
"value": "nick"
}
] | www/lib/js/angular-google-maps/spec/coffee/oo/base-object.spec.coffee | neilff/liqbo-cordova | 1 | describe "oo.BaseObject", ->
it "exists ~ you loaded the script!", ->
expect(oo.BaseObject?).toEqual(true)
@ngGmapModule "oo.test", ->
@PersonModule =
changePersonName: (person, name)->
person.name = name
person
killPersonsName: (person)->
delete perso... | 2794 | describe "oo.BaseObject", ->
it "exists ~ you loaded the script!", ->
expect(oo.BaseObject?).toEqual(true)
@ngGmapModule "oo.test", ->
@PersonModule =
changePersonName: (person, name)->
person.name = name
person
killPersonsName: (person)->
delete perso... | true | describe "oo.BaseObject", ->
it "exists ~ you loaded the script!", ->
expect(oo.BaseObject?).toEqual(true)
@ngGmapModule "oo.test", ->
@PersonModule =
changePersonName: (person, name)->
person.name = name
person
killPersonsName: (person)->
delete perso... |
[
{
"context": "# inputData:\n # [ {\n # label: \"Customer 1\",\n # value: 1550.12\n # ] }\n @pieChar",
"end": 9899,
"score": 0.8317974209785461,
"start": 9898,
"tag": "NAME",
"value": "1"
}
] | src/services/chart-formatter/chart-formatter.svc.coffee | agranado2k/impac-angular | 7 | angular
.module('impac.services.chart-formatter', [])
.service('ChartFormatterSvc', (ImpacTheming, $filter, $window, $document, ImpacDashboardsSvc) ->
_self = @
COLORS = ImpacTheming.get().chartColors
# on browser window blur event, remove any lingering chartjs-tooltips from the DOM.
$window.onbl... | 5054 | angular
.module('impac.services.chart-formatter', [])
.service('ChartFormatterSvc', (ImpacTheming, $filter, $window, $document, ImpacDashboardsSvc) ->
_self = @
COLORS = ImpacTheming.get().chartColors
# on browser window blur event, remove any lingering chartjs-tooltips from the DOM.
$window.onbl... | true | angular
.module('impac.services.chart-formatter', [])
.service('ChartFormatterSvc', (ImpacTheming, $filter, $window, $document, ImpacDashboardsSvc) ->
_self = @
COLORS = ImpacTheming.get().chartColors
# on browser window blur event, remove any lingering chartjs-tooltips from the DOM.
$window.onbl... |
[
{
"context": "main par l'utilisateur \n# - Zoom de type Control + Molette\n# - Rotation de l'appareil (passage de smartphone",
"end": 1505,
"score": 0.9546427726745605,
"start": 1498,
"tag": "NAME",
"value": "Molette"
}
] | app/assets/scripts/insearch.coffee | kylekatarnls/insearch | 0 | //- require 'jquery-1.11.0.min'
//- require 'bootstrap.min'
//- require 'typeahead'
# Menus déroulant au clic
# Exemple : lorsqu'on clique sur le bouton tout en haut à droite,
# La liste des choix possibles pour le nombre de résultats par page se déroule
$('.dropdown-toggle').click ->
$('[aria-labelledby="' + $(@).at... | 6251 | //- require 'jquery-1.11.0.min'
//- require 'bootstrap.min'
//- require 'typeahead'
# Menus déroulant au clic
# Exemple : lorsqu'on clique sur le bouton tout en haut à droite,
# La liste des choix possibles pour le nombre de résultats par page se déroule
$('.dropdown-toggle').click ->
$('[aria-labelledby="' + $(@).at... | true | //- require 'jquery-1.11.0.min'
//- require 'bootstrap.min'
//- require 'typeahead'
# Menus déroulant au clic
# Exemple : lorsqu'on clique sur le bouton tout en haut à droite,
# La liste des choix possibles pour le nombre de résultats par page se déroule
$('.dropdown-toggle').click ->
$('[aria-labelledby="' + $(@).at... |
[
{
"context": "efault()\n Meteor.loginWithPassword {username: 'sprohaska'}, password, ->\n console.log 'logged in spro",
"end": 200,
"score": 0.9996061325073242,
"start": 191,
"tag": "USERNAME",
"value": "sprohaska"
},
{
"context": "ska'}, password, ->\n console.log 'logg... | apps/nog-app/meteor/client/templates/testConfig.coffee | nogproject/nog | 0 | password = Meteor.settings.public?.tests?.passwords?.user
Template.testConfig.events
'click .js-login-sprohaska': (ev) ->
ev.preventDefault()
Meteor.loginWithPassword {username: 'sprohaska'}, password, ->
console.log 'logged in sprohaska'
'click .js-login-alovelace': (ev) ->
ev.preventDefault()... | 68982 | password = Meteor.settings.public?.tests?.passwords?.user
Template.testConfig.events
'click .js-login-sprohaska': (ev) ->
ev.preventDefault()
Meteor.loginWithPassword {username: 'sprohaska'}, password, ->
console.log 'logged in s<PASSWORD>'
'click .js-login-alovelace': (ev) ->
ev.preventDefault... | true | password = Meteor.settings.public?.tests?.passwords?.user
Template.testConfig.events
'click .js-login-sprohaska': (ev) ->
ev.preventDefault()
Meteor.loginWithPassword {username: 'sprohaska'}, password, ->
console.log 'logged in sPI:PASSWORD:<PASSWORD>END_PI'
'click .js-login-alovelace': (ev) ->
... |
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998373985290527,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/material/basic.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licenc... | 171991 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ 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": "# Copyright 2010-2019 Dan Elliott, Russell Valentine\n#\n# Licensed under the Apach",
"end": 35,
"score": 0.999821662902832,
"start": 24,
"tag": "NAME",
"value": "Dan Elliott"
},
{
"context": "# Copyright 2010-2019 Dan Elliott, Russell Valentine\n#\n# Licensed u... | clients/www/src/coffee/handler/isadore_current_data_handler.coffee | bluthen/isadore_server | 0 | # Copyright 2010-2019 Dan Elliott, Russell Valentine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 36961 | # Copyright 2010-2019 <NAME>, <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | true | # Copyright 2010-2019 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... |
[
{
"context": " 1\n timeout : 10000\n user: 'user'\n password: 'password'\n dom",
"end": 394,
"score": 0.8547061085700989,
"start": 390,
"tag": "USERNAME",
"value": "user"
},
{
"context": "0\n user: 'user'\n password: '... | test/MySQL.coffee | rodolforios/MySQLConnector | 0 | 'use strict'
expect = require 'expect.js'
describe 'the MySQLConnector,', ->
MySQLConnector = null
params = null
connector = null
beforeEach ->
delete require.cache[require.resolve('../src/MySQL')]
MySQLConnector = require '../src/MySQL'
params =
host : 'host'
... | 103521 | 'use strict'
expect = require 'expect.js'
describe 'the MySQLConnector,', ->
MySQLConnector = null
params = null
connector = null
beforeEach ->
delete require.cache[require.resolve('../src/MySQL')]
MySQLConnector = require '../src/MySQL'
params =
host : 'host'
... | true | 'use strict'
expect = require 'expect.js'
describe 'the MySQLConnector,', ->
MySQLConnector = null
params = null
connector = null
beforeEach ->
delete require.cache[require.resolve('../src/MySQL')]
MySQLConnector = require '../src/MySQL'
params =
host : 'host'
... |
[
{
"context": "tial bootstraping task\n#\n# Copyright (C) 2011-2012 Nikolay Nemshilov\n#\n\n#\n# The actual bootstrapping\n#\n# @param {Strin",
"end": 79,
"score": 0.9998916387557983,
"start": 62,
"tag": "NAME",
"value": "Nikolay Nemshilov"
},
{
"context": "'\n lovelyrc.port = '300... | cli/commands/bootstrap.coffee | lovely-io/lovely.io-stl | 2 | #
# The initial bootstraping task
#
# Copyright (C) 2011-2012 Nikolay Nemshilov
#
#
# The actual bootstrapping
#
# @param {String} optional base_dir
# @return void
#
bootstrap = (base_dir) ->
fs = require('fs')
lovelyrc = require('../lovelyrc')
home_dir = process.env.HOME
base_dir or= "#{home_dir}/.love... | 42324 | #
# The initial bootstraping task
#
# Copyright (C) 2011-2012 <NAME>
#
#
# The actual bootstrapping
#
# @param {String} optional base_dir
# @return void
#
bootstrap = (base_dir) ->
fs = require('fs')
lovelyrc = require('../lovelyrc')
home_dir = process.env.HOME
base_dir or= "#{home_dir}/.lovely/"
pri... | true | #
# The initial bootstraping task
#
# Copyright (C) 2011-2012 PI:NAME:<NAME>END_PI
#
#
# The actual bootstrapping
#
# @param {String} optional base_dir
# @return void
#
bootstrap = (base_dir) ->
fs = require('fs')
lovelyrc = require('../lovelyrc')
home_dir = process.env.HOME
base_dir or= "#{home_dir}/.l... |
[
{
"context": "0\n\n Collapsible paper cards.\n\n Made with love by bbo - ©2015 Alexander Rühle\n MIT License http://open",
"end": 81,
"score": 0.952896773815155,
"start": 78,
"tag": "USERNAME",
"value": "bbo"
},
{
"context": "ible paper cards.\n\n Made with love by bbo - ©2015 Al... | js/paper-collapse.coffee | mobeale/TS-candidates | 2 | ###!
Paper Collapse v0.4.0
Collapsible paper cards.
Made with love by bbo - ©2015 Alexander Rühle
MIT License http://opensource.org/licenses/MIT
###
(($) ->
'use strict'
$.fn.paperCollapse = (options) ->
settings = $.extend({}, $.fn.paperCollapse.defaults, options)
$(this).find('.collapse-card__he... | 55039 | ###!
Paper Collapse v0.4.0
Collapsible paper cards.
Made with love by bbo - ©2015 <NAME>
MIT License http://opensource.org/licenses/MIT
###
(($) ->
'use strict'
$.fn.paperCollapse = (options) ->
settings = $.extend({}, $.fn.paperCollapse.defaults, options)
$(this).find('.collapse-card__heading').a... | true | ###!
Paper Collapse v0.4.0
Collapsible paper cards.
Made with love by bbo - ©2015 PI:NAME:<NAME>END_PI
MIT License http://opensource.org/licenses/MIT
###
(($) ->
'use strict'
$.fn.paperCollapse = (options) ->
settings = $.extend({}, $.fn.paperCollapse.defaults, options)
$(this).find('.collapse-car... |
[
{
"context": "e = Ember.Route.extend({\n model: ->\n [{name: \"abc\", age: 5}, {name: \"pqr\", age: 10}, {name: \"xyz\", ",
"end": 86,
"score": 0.9921630620956421,
"start": 83,
"tag": "NAME",
"value": "abc"
},
{
"context": "{\n model: ->\n [{name: \"abc\", age: 5}, {name: \"p... | tests/dummy/app/routes/home.coffee | vikas-gup/ember-cli-d3-charts | 0 | `import Ember from "ember"`
route = Ember.Route.extend({
model: ->
[{name: "abc", age: 5}, {name: "pqr", age: 10}, {name: "xyz", age: 15}]
setupController: (controller, model) ->
controller.set('model', model)
controller.set('color', ["red", "green"])
})
`export default route`
| 193038 | `import Ember from "ember"`
route = Ember.Route.extend({
model: ->
[{name: "<NAME>", age: 5}, {name: "<NAME>", age: 10}, {name: "<NAME>", age: 15}]
setupController: (controller, model) ->
controller.set('model', model)
controller.set('color', ["red", "green"])
})
`export default route`
| true | `import Ember from "ember"`
route = Ember.Route.extend({
model: ->
[{name: "PI:NAME:<NAME>END_PI", age: 5}, {name: "PI:NAME:<NAME>END_PI", age: 10}, {name: "PI:NAME:<NAME>END_PI", age: 15}]
setupController: (controller, model) ->
controller.set('model', model)
controller.set('color', ["red", "green"])... |
[
{
"context": " opponent1.teamId = team.id\n opponent1.name = \"Valiant Opponent\"\n teamsnap.saveOpponent opponent1, (err, resul",
"end": 201,
"score": 0.8914077877998352,
"start": 185,
"tag": "NAME",
"value": "Valiant Opponent"
},
{
"context": " opponent2.teamId = team.id\n ... | test/opponentResults.coffee | teamsnap/teamsnap-javascript-sdk | 9 | describe 'Opponent Results', ->
opponent1 = null
opponent2 = null
before (done) ->
opponent1 = teamsnap.createOpponent()
opponent1.teamId = team.id
opponent1.name = "Valiant Opponent"
teamsnap.saveOpponent opponent1, (err, result) ->
expect(err).to.be.null
done()
before (done) ->
... | 190529 | describe 'Opponent Results', ->
opponent1 = null
opponent2 = null
before (done) ->
opponent1 = teamsnap.createOpponent()
opponent1.teamId = team.id
opponent1.name = "<NAME>"
teamsnap.saveOpponent opponent1, (err, result) ->
expect(err).to.be.null
done()
before (done) ->
opponen... | true | describe 'Opponent Results', ->
opponent1 = null
opponent2 = null
before (done) ->
opponent1 = teamsnap.createOpponent()
opponent1.teamId = team.id
opponent1.name = "PI:NAME:<NAME>END_PI"
teamsnap.saveOpponent opponent1, (err, result) ->
expect(err).to.be.null
done()
before (done) ... |
[
{
"context": "g.port', 123)\n container.register('mockName', 'charles')\n\n port = container.get('config.port')\n ex",
"end": 281,
"score": 0.9247575402259827,
"start": 274,
"tag": "NAME",
"value": "charles"
},
{
"context": "ner.get('mockName')\n expect(port).to.be.equal ... | test/unit/dependencyResolverTest.coffee | deepdancer/deepdancer | 0 | {expect} = require 'chai'
Container = require 'deepdancer/Container'
container = new Container()
describe 'deepdancer/dependencyResolver', ->
it 'should lookup for value dependencies', ->
container.register('config.port', 123)
container.register('mockName', 'charles')
port = container.get('config.po... | 166985 | {expect} = require 'chai'
Container = require 'deepdancer/Container'
container = new Container()
describe 'deepdancer/dependencyResolver', ->
it 'should lookup for value dependencies', ->
container.register('config.port', 123)
container.register('mockName', '<NAME>')
port = container.get('config.por... | true | {expect} = require 'chai'
Container = require 'deepdancer/Container'
container = new Container()
describe 'deepdancer/dependencyResolver', ->
it 'should lookup for value dependencies', ->
container.register('config.port', 123)
container.register('mockName', 'PI:NAME:<NAME>END_PI')
port = container.g... |
[
{
"context": "itter client for the led ticker deamon\n# Author: \tManuel Stofer\n#\n\nnet \t= require 'net'\nutil = require 'uti",
"end": 69,
"score": 0.9998806715011597,
"start": 56,
"tag": "NAME",
"value": "Manuel Stofer"
}
] | clients/twitter/twitter.coffee | manuelstofer/led-ticker | 4 | #
# Twitter client for the led ticker deamon
# Author: Manuel Stofer
#
net = require 'net'
util = require 'util'
twitter = require 'twitter'
fs = require 'fs'
configFile = process.env.HOME + '/.ledticker/twitter.json'
try
settings = JSON.parse fs.readFileSync(configFile)
catch err
console.log 'could no... | 61227 | #
# Twitter client for the led ticker deamon
# Author: <NAME>
#
net = require 'net'
util = require 'util'
twitter = require 'twitter'
fs = require 'fs'
configFile = process.env.HOME + '/.ledticker/twitter.json'
try
settings = JSON.parse fs.readFileSync(configFile)
catch err
console.log 'could not load ... | true | #
# Twitter client for the led ticker deamon
# Author: PI:NAME:<NAME>END_PI
#
net = require 'net'
util = require 'util'
twitter = require 'twitter'
fs = require 'fs'
configFile = process.env.HOME + '/.ledticker/twitter.json'
try
settings = JSON.parse fs.readFileSync(configFile)
catch err
console.log 'c... |
[
{
"context": "pKeys, (pgpKey) ->\n PGPKey\n key: \"pgp-key-#{pgpKey.name}\"\n pgpKey: pgpKey\n DOM",
"end": 1170,
"score": 0.9473026990890503,
"start": 1162,
"tag": "KEY",
"value": "pgp-key-"
}
] | src/components/manage.coffee | brianshaler/kerplunk-pgp | 0 | _ = require 'lodash'
React = require 'react'
{DOM} = React
PGPKey = React.createFactory React.createClass
getInitialState: ->
showKey: false
toggleKey: (e) ->
e.preventDefault()
@setState
showKey: !@state.showKey
render: ->
DOM.form
method: 'post'
action: "/admin/pgp/#{@props... | 70539 | _ = require 'lodash'
React = require 'react'
{DOM} = React
PGPKey = React.createFactory React.createClass
getInitialState: ->
showKey: false
toggleKey: (e) ->
e.preventDefault()
@setState
showKey: !@state.showKey
render: ->
DOM.form
method: 'post'
action: "/admin/pgp/#{@props... | true | _ = require 'lodash'
React = require 'react'
{DOM} = React
PGPKey = React.createFactory React.createClass
getInitialState: ->
showKey: false
toggleKey: (e) ->
e.preventDefault()
@setState
showKey: !@state.showKey
render: ->
DOM.form
method: 'post'
action: "/admin/pgp/#{@props... |
[
{
"context": "'follows an artist', ->\n @user.followArtist 'andy-foobar', {}\n _.last(Backbone.sync.args)[1].url().sh",
"end": 1391,
"score": 0.9852132797241211,
"start": 1380,
"tag": "USERNAME",
"value": "andy-foobar"
},
{
"context": "e access token', ->\n @user.set a... | test/models/current_user.coffee | l2succes/force | 1 | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../models/current_user'
describe 'CurrentUser', ->
beforeEach ->
@sd = require('sharify').data
@sd.SESSION_ID = 'cool-session-id'
@user =... | 158730 | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../models/current_user'
describe 'CurrentUser', ->
beforeEach ->
@sd = require('sharify').data
@sd.SESSION_ID = 'cool-session-id'
@user =... | true | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../models/current_user'
describe 'CurrentUser', ->
beforeEach ->
@sd = require('sharify').data
@sd.SESSION_ID = 'cool-session-id'
@user =... |
[
{
"context": ": 'h0'\n 'body': '= $1 =\\n${2:Author Name} <${3:mail@address.com}>\\nv1.0, `date`\\n\\n$0'\n 'Heading 1 (one-liner)':",
"end": 559,
"score": 0.9998546838760376,
"start": 543,
"tag": "EMAIL",
"value": "mail@address.com"
}
] | .atom/.atom/packages/language-asciidoc/snippets/language-asciidoc.cson | thepieuvre/dotfiles | 0 | '.source.asciidoc':
'Comment Block':
'prefix': 'bl//'
'body': '////////////////////////////////////////////////////////////////////////////\n$1\n////////////////////////////////////////////////////////////////////////////\n$0'
'Example Block':
'prefix': 'bl=='
'body': '==============================... | 7711 | '.source.asciidoc':
'Comment Block':
'prefix': 'bl//'
'body': '////////////////////////////////////////////////////////////////////////////\n$1\n////////////////////////////////////////////////////////////////////////////\n$0'
'Example Block':
'prefix': 'bl=='
'body': '==============================... | true | '.source.asciidoc':
'Comment Block':
'prefix': 'bl//'
'body': '////////////////////////////////////////////////////////////////////////////\n$1\n////////////////////////////////////////////////////////////////////////////\n$0'
'Example Block':
'prefix': 'bl=='
'body': '==============================... |
[
{
"context": " tags: []\n socialMailsReceived:\n name: \"Mails Received\"\n description: \"The number of mails",
"end": 28431,
"score": 0.6348803043365479,
"start": 28426,
"tag": "NAME",
"value": "Mails"
},
{
"context": "\n tags: []\n socialMailsSent:\n na... | src/javascript/character_stats.coffee | seriallos/eve-year-in-review | 18 | _ = require 'lodash'
class CharacterStats
constructor: (stats) ->
for key, val of stats
@[key] = val
@secSuffixes = [
'HighSec'
'LowSec'
'NullSec'
'Wormhole'
]
@calcDerived()
# not tested, may not be useful since names are all over the place
#getByPrefix: (prefix)... | 173545 | _ = require 'lodash'
class CharacterStats
constructor: (stats) ->
for key, val of stats
@[key] = val
@secSuffixes = [
'HighSec'
'LowSec'
'NullSec'
'Wormhole'
]
@calcDerived()
# not tested, may not be useful since names are all over the place
#getByPrefix: (prefix)... | true | _ = require 'lodash'
class CharacterStats
constructor: (stats) ->
for key, val of stats
@[key] = val
@secSuffixes = [
'HighSec'
'LowSec'
'NullSec'
'Wormhole'
]
@calcDerived()
# not tested, may not be useful since names are all over the place
#getByPrefix: (prefix)... |
[
{
"context": "t.svg'\n url: 'https://github.com/hanzoai/hanzo.js'\n }\n {\n ",
"end": 2049,
"score": 0.9996381402015686,
"start": 2042,
"tag": "USERNAME",
"value": "hanzoai"
},
{
"context": "t.svg'\n url: 'https://gith... | data.coffee | hanzo-io/hanzo.ai | 1 | module.exports =
data: {
'@context': 'hanzo.ai/schema'
'@type': 'Website'
header: {
'@type': 'WebsiteHeader'
type: 'complex'
logos: [
{
'@type': 'WebsiteLogo'
image: '/img/logo.svg'
alt: 'Hanzo'
name: ''
url: '/'
}
]... | 4328 | module.exports =
data: {
'@context': 'hanzo.ai/schema'
'@type': 'Website'
header: {
'@type': 'WebsiteHeader'
type: 'complex'
logos: [
{
'@type': 'WebsiteLogo'
image: '/img/logo.svg'
alt: 'Hanzo'
name: ''
url: '/'
}
]... | true | module.exports =
data: {
'@context': 'hanzo.ai/schema'
'@type': 'Website'
header: {
'@type': 'WebsiteHeader'
type: 'complex'
logos: [
{
'@type': 'WebsiteLogo'
image: '/img/logo.svg'
alt: 'Hanzo'
name: ''
url: '/'
}
]... |
[
{
"context": "est(\"$121.04\")\n\tsetModel(\"customer\", display_me: \"Cool Customer\")\n\texecuteTest(\"Cool Customer\")\n\tsetMode",
"end": 1024,
"score": 0.650256872177124,
"start": 1020,
"tag": "NAME",
"value": "Cool"
},
{
"context": "edit)\")\n\tsetModel(\"bank-account\",\n\t\tl... | tests/unit/views/detail-views/resource-summary-base-test.coffee | dk-dev/balanced-dashboard | 169 | `import { test, moduleFor } from "ember-qunit";`
moduleFor("view:detail-views/resource-summaries/resource-summary-base", "View - ResourceSummaryBase", {},
(container) ->
typeNames = ["dispute", "reversal", "refund", "credit", "debit", "hold", "order", "customer", "card", "bank-account"]
for typeName in typeNames
... | 64843 | `import { test, moduleFor } from "ember-qunit";`
moduleFor("view:detail-views/resource-summaries/resource-summary-base", "View - ResourceSummaryBase", {},
(container) ->
typeNames = ["dispute", "reversal", "refund", "credit", "debit", "hold", "order", "customer", "card", "bank-account"]
for typeName in typeNames
... | true | `import { test, moduleFor } from "ember-qunit";`
moduleFor("view:detail-views/resource-summaries/resource-summary-base", "View - ResourceSummaryBase", {},
(container) ->
typeNames = ["dispute", "reversal", "refund", "credit", "debit", "hold", "order", "customer", "card", "bank-account"]
for typeName in typeNames
... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.999908447265625,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/_components/changelog-header-streams.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, div, p } from 'react-dom-factories'
el = React.createElement
export class ChangelogHeaderStreams exte... | 135200 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, div, p } from 'react-dom-factories'
el = React.createElement
export class ChangelogHeaderStreams extends Rea... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import * as React from 'react'
import { a, div, p } from 'react-dom-factories'
el = React.createElement
export class ChangelogHeaderStre... |
[
{
"context": "t>\n <book asdf=\"asdf\">\n <author name=\"john\"></author>\n <author><name>will</name></aut",
"end": 385,
"score": 0.9990237951278687,
"start": 381,
"tag": "NAME",
"value": "john"
},
{
"context": "uthor name=\"john\"></author>\n <author><name>... | node_modules/bucket-list/node_modules/xml-object-stream/test.coffee | zeke/s3-bucket-lister | 2 | assert = require 'assert'
{Stream} = require 'stream'
{parse} = require './index'
streamData = (xml) ->
stream = new Stream()
process.nextTick ->
stream.emit 'data', xml
stream.emit 'end'
return stream
describe "xml streamer thing", ->
it "should parse", (done) ->
foundBook = false
xml = "... | 79353 | assert = require 'assert'
{Stream} = require 'stream'
{parse} = require './index'
streamData = (xml) ->
stream = new Stream()
process.nextTick ->
stream.emit 'data', xml
stream.emit 'end'
return stream
describe "xml streamer thing", ->
it "should parse", (done) ->
foundBook = false
xml = "... | true | assert = require 'assert'
{Stream} = require 'stream'
{parse} = require './index'
streamData = (xml) ->
stream = new Stream()
process.nextTick ->
stream.emit 'data', xml
stream.emit 'end'
return stream
describe "xml streamer thing", ->
it "should parse", (done) ->
foundBook = false
xml = "... |
[
{
"context": "e to another object in the PDF object heirarchy\nBy Devon Govett\n###\n\nclass PDFReference\n constructor: (@id, @d",
"end": 103,
"score": 0.9997254610061646,
"start": 91,
"tag": "NAME",
"value": "Devon Govett"
}
] | lib/reference.coffee | stanfeldman/pdf.js | 1 | ###
PDFReference - represents a reference to another object in the PDF object heirarchy
By Devon Govett
###
class PDFReference
constructor: (@id, @data = {}) ->
@gen = 0
@stream = null
@finalizedStream = null
object: ->
@finalize() if not @finalizedStream
out = ... | 119977 | ###
PDFReference - represents a reference to another object in the PDF object heirarchy
By <NAME>
###
class PDFReference
constructor: (@id, @data = {}) ->
@gen = 0
@stream = null
@finalizedStream = null
object: ->
@finalize() if not @finalizedStream
out = ["#{@i... | true | ###
PDFReference - represents a reference to another object in the PDF object heirarchy
By PI:NAME:<NAME>END_PI
###
class PDFReference
constructor: (@id, @data = {}) ->
@gen = 0
@stream = null
@finalizedStream = null
object: ->
@finalize() if not @finalizedStream
... |
[
{
"context": ": 1\n Fail: 1\n \"Hello Kitty\": 1\n }\n ])\n\n @ajax.whenQuerying(",
"end": 16124,
"score": 0.6910604238510132,
"start": 16119,
"tag": "NAME",
"value": "Kitty"
},
{
"context": ": 1\n Fail: 1\n ... | test/spec/iterationsummary/IterationSummaryAppSpec.coffee | CustomAgile/app-catalog | 31 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.apps.iterationsummary.IterationSummaryApp'
]
describe 'Rally.apps.iterationsummary.IterationSummaryApp', ->
helpers
getContext: (initialValues) ->
globalContext = Rally.environment.getContext()
Ext.create 'Rally.app.Context',
initialVal... | 25127 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.apps.iterationsummary.IterationSummaryApp'
]
describe 'Rally.apps.iterationsummary.IterationSummaryApp', ->
helpers
getContext: (initialValues) ->
globalContext = Rally.environment.getContext()
Ext.create 'Rally.app.Context',
initialVal... | true | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.apps.iterationsummary.IterationSummaryApp'
]
describe 'Rally.apps.iterationsummary.IterationSummaryApp', ->
helpers
getContext: (initialValues) ->
globalContext = Rally.environment.getContext()
Ext.create 'Rally.app.Context',
initialVal... |
[
{
"context": "ules.bookmark(comments, {\n csrfToken: \"foobar\",\n target: \"/foo/\"\n })\n ",
"end": 736,
"score": 0.7269014716148376,
"start": 730,
"tag": "PASSWORD",
"value": "foobar"
}
] | game/static/spirit/scripts/test/suites/bookmark-spec.coffee | Yoann-Vie/esgi-hearthstone | 3 | describe "bookmark plugin tests", ->
comments = null
bookmarks = null
mark = null
Bookmark = null
Mark = null
post = null
beforeEach ->
fixtures = jasmine.getFixtures()
fixtures.fixturesPath = 'base/test/fixtures/'
loadFixtures('bookmark.html')
# Promise is ... | 199622 | describe "bookmark plugin tests", ->
comments = null
bookmarks = null
mark = null
Bookmark = null
Mark = null
post = null
beforeEach ->
fixtures = jasmine.getFixtures()
fixtures.fixturesPath = 'base/test/fixtures/'
loadFixtures('bookmark.html')
# Promise is ... | true | describe "bookmark plugin tests", ->
comments = null
bookmarks = null
mark = null
Bookmark = null
Mark = null
post = null
beforeEach ->
fixtures = jasmine.getFixtures()
fixtures.fixturesPath = 'base/test/fixtures/'
loadFixtures('bookmark.html')
# Promise is ... |
[
{
"context": "rg/TR/websockets).\n#\n# * Copyright (C) 2010-2012 [Jeff Mesnil](http://jmesnil.net/)\n# * Copyright (C) 2012 [Fus",
"end": 166,
"score": 0.9998621344566345,
"start": 155,
"tag": "NAME",
"value": "Jeff Mesnil"
},
{
"context": ".](http://fusesource.com)\n# * Copyright (C... | src/stomp.coffee | pawanaraballi/stomp-websocket | 0 |
# **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [Jeff Mesnil](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
# * Copyright (C) 2017 [Deepak Kumar](https://www.kreatio.com)
#
#... | 20958 |
# **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [<NAME>](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
# * Copyright (C) 2017 [<NAME>](https://www.kreatio.com)
#
# This libra... | true |
# **STOMP Over Web Socket** is a JavaScript STOMP Client using
# [HTML5 Web Sockets API](http://www.w3.org/TR/websockets).
#
# * Copyright (C) 2010-2012 [PI:NAME:<NAME>END_PI](http://jmesnil.net/)
# * Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
# * Copyright (C) 2017 [PI:NAME:<NAME>END_PI](https://www... |
[
{
"context": "esult = null\n\n model =\n name: Observable \"Foobert\"\n click: ->\n result = @name()\n\n bu",
"end": 203,
"score": 0.9998226165771484,
"start": 196,
"tag": "NAME",
"value": "Foobert"
},
{
"context": "null\n button.click()\n assert.equal re... | test/events.coffee | STRd6/jadelet | 18 | describe "Events", ->
it "should bind click to the object context", ->
template = makeTemplate """
button(click=@click)
"""
result = null
model =
name: Observable "Foobert"
click: ->
result = @name()
button = template(model)
assert.equal result, null
button.cli... | 39493 | describe "Events", ->
it "should bind click to the object context", ->
template = makeTemplate """
button(click=@click)
"""
result = null
model =
name: Observable "<NAME>"
click: ->
result = @name()
button = template(model)
assert.equal result, null
button.clic... | true | describe "Events", ->
it "should bind click to the object context", ->
template = makeTemplate """
button(click=@click)
"""
result = null
model =
name: Observable "PI:NAME:<NAME>END_PI"
click: ->
result = @name()
button = template(model)
assert.equal result, null
... |
[
{
"context": "S: \"Tags\"\nPAGES: \"Pages\"\nPOSTS: \"Posts\"\nAUTHORS: \"Autoren\"\nSEARCH: \"Suche\"\nSOCIAL_NETWORKS: \"Soziale Netzwe",
"end": 401,
"score": 0.9968264698982239,
"start": 394,
"tag": "NAME",
"value": "Autoren"
},
{
"context": "}}\"\n\"sharing\":\n \"shared\": \"... | src/i18n/de.cson | Intraktio/hybrid | 2 | PULL_TO_REFRESH: "Ziehen zum Aktualisieren!"
RETRY: "Wiederholen"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Zurück"
ERROR: "Etwas ging schief. Bitte erneut versuchen."
ATTEMPT_TO_CONNECT: "Verbinden: Versuch(e) {{attempt}} von {{attemptMax}}."
OK: "Ok"
YES: "Ja"
NO: "Nein"
EMPTY_LIST: "Keine Inhalte bisher!"
MENU: "Menü... | 177370 | PULL_TO_REFRESH: "Ziehen zum Aktualisieren!"
RETRY: "Wiederholen"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Zurück"
ERROR: "Etwas ging schief. Bitte erneut versuchen."
ATTEMPT_TO_CONNECT: "Verbinden: Versuch(e) {{attempt}} von {{attemptMax}}."
OK: "Ok"
YES: "Ja"
NO: "Nein"
EMPTY_LIST: "Keine Inhalte bisher!"
MENU: "Menü... | true | PULL_TO_REFRESH: "Ziehen zum Aktualisieren!"
RETRY: "Wiederholen"
CANCEL: "Cancel"
SUBMIT: "Submit"
BACK: "Zurück"
ERROR: "Etwas ging schief. Bitte erneut versuchen."
ATTEMPT_TO_CONNECT: "Verbinden: Versuch(e) {{attempt}} von {{attemptMax}}."
OK: "Ok"
YES: "Ja"
NO: "Nein"
EMPTY_LIST: "Keine Inhalte bisher!"
MENU: "Menü... |
[
{
"context": "# Brian Kintz\n# 23.12.2014\n\ncommand: \"osascript 'nowplaying.wid",
"end": 13,
"score": 0.9998639225959778,
"start": 2,
"tag": "NAME",
"value": "Brian Kintz"
}
] | nowplaying.widget/index.coffee | elmugrat/uebersicht_nowplaying | 3 | # Brian Kintz
# 23.12.2014
command: "osascript 'nowplaying.widget/track_info.scpt'"
refreshFrequency: 2000
style: """
bottom: 20px
left: 270px
width: 400px
font-family: "Helvetica Neue"
font-size: 9pt
.nowplaying
height: 50px
padding: 9px 10px 10px 10px
background: rg... | 175690 | # <NAME>
# 23.12.2014
command: "osascript 'nowplaying.widget/track_info.scpt'"
refreshFrequency: 2000
style: """
bottom: 20px
left: 270px
width: 400px
font-family: "Helvetica Neue"
font-size: 9pt
.nowplaying
height: 50px
padding: 9px 10px 10px 10px
background: rgba(#0... | true | # PI:NAME:<NAME>END_PI
# 23.12.2014
command: "osascript 'nowplaying.widget/track_info.scpt'"
refreshFrequency: 2000
style: """
bottom: 20px
left: 270px
width: 400px
font-family: "Helvetica Neue"
font-size: 9pt
.nowplaying
height: 50px
padding: 9px 10px 10px 10px
backg... |
[
{
"context": " {vs.map (version) =>\n key = Object.keys(version.changeset)[0]\n changes = 'from '",
"end": 4235,
"score": 0.6493327617645264,
"start": 4231,
"tag": "KEY",
"value": "keys"
},
{
"context": ") =>\n key = Object.keys(version.changeset)[0]\n... | app/pages/admin/project-status.cjsx | alexbfree/Panoptes-Front-End | 0 | React = require 'react'
PromiseRenderer = require '../../components/promise-renderer'
apiClient = require 'panoptes-client/lib/api-client'
SetToggle = require '../../lib/set-toggle'
moment = require 'moment'
ChangeListener = require '../../components/change-listener'
ProjectIcon = require '../../components/project-icon... | 53885 | React = require 'react'
PromiseRenderer = require '../../components/promise-renderer'
apiClient = require 'panoptes-client/lib/api-client'
SetToggle = require '../../lib/set-toggle'
moment = require 'moment'
ChangeListener = require '../../components/change-listener'
ProjectIcon = require '../../components/project-icon... | true | React = require 'react'
PromiseRenderer = require '../../components/promise-renderer'
apiClient = require 'panoptes-client/lib/api-client'
SetToggle = require '../../lib/set-toggle'
moment = require 'moment'
ChangeListener = require '../../components/change-listener'
ProjectIcon = require '../../components/project-icon... |
[
{
"context": "###\n@author Nicholas Sardo <gcc.programmer@gmail.com>\n©2018\n###\n\nimport { Me",
"end": 26,
"score": 0.999890923500061,
"start": 12,
"tag": "NAME",
"value": "Nicholas Sardo"
},
{
"context": "###\n@author Nicholas Sardo <gcc.programmer@gmail.com>\n©2018\n###\n\nimport... | server/main.coffee | nsardo/meteor-1.8-coffeescript-example | 0 | ###
@author Nicholas Sardo <gcc.programmer@gmail.com>
©2018
###
import { Meteor } from 'meteor/meteor'
Meteor.startup ->
###
@Foo.insert
title: "momo"
designation: "mofo"
### | 222506 | ###
@author <NAME> <<EMAIL>>
©2018
###
import { Meteor } from 'meteor/meteor'
Meteor.startup ->
###
@Foo.insert
title: "momo"
designation: "mofo"
### | true | ###
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
©2018
###
import { Meteor } from 'meteor/meteor'
Meteor.startup ->
###
@Foo.insert
title: "momo"
designation: "mofo"
### |
[
{
"context": " 'participants': [\n {\n 'name': 'Ben Bitdiddle',\n 'email': 'ben.bitdiddle@gmail.com'\n ",
"end": 492,
"score": 0.9998672008514404,
"start": 479,
"tag": "NAME",
"value": "Ben Bitdiddle"
},
{
"context": " 'name': 'Ben Bitdiddle',\n ... | test/controller/thread-spec.coffee | PriviPK/privipk-webapp | 47 | define ['angular', 'angularMocks', 'baobab.controller.thread'], (angular) ->
describe 'ThreadCtrl', ->
$scope = null
$namespaces = null
controller = null
promises = null
msg = null
downloadPromise = null
mockThread1 =
'id': 'fake_thread_id1',
'object': 'thread',
'namespac... | 140331 | define ['angular', 'angularMocks', 'baobab.controller.thread'], (angular) ->
describe 'ThreadCtrl', ->
$scope = null
$namespaces = null
controller = null
promises = null
msg = null
downloadPromise = null
mockThread1 =
'id': 'fake_thread_id1',
'object': 'thread',
'namespac... | true | define ['angular', 'angularMocks', 'baobab.controller.thread'], (angular) ->
describe 'ThreadCtrl', ->
$scope = null
$namespaces = null
controller = null
promises = null
msg = null
downloadPromise = null
mockThread1 =
'id': 'fake_thread_id1',
'object': 'thread',
'namespac... |
[
{
"context": "r, see: SICP, 4.1\r\n#\r\n# Port to CoffeeScript\r\n# by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>\r\n# (C) MIT Style Lic",
"end": 89,
"score": 0.9998796582221985,
"start": 73,
"tag": "NAME",
"value": "Dmitry Soshnikov"
},
{
"context": "#\r\n# Port to CoffeeScript\r... | eval.coffee | DmitrySoshnikov/scheme-on-coffee | 7 | # Lisp/Scheme evaluator, see: SICP, 4.1
#
# Port to CoffeeScript
# by Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
# (C) MIT Style License
#
# Features:
# - just a toy and very inefficient; just the version 0.1 ;)
#
# Scheme metacircular evaluator authors: book SICP
# see http://mitpress.mit.edu/sicp/full-... | 64146 | # Lisp/Scheme evaluator, see: SICP, 4.1
#
# Port to CoffeeScript
# by <NAME> <<EMAIL>>
# (C) MIT Style License
#
# Features:
# - just a toy and very inefficient; just the version 0.1 ;)
#
# Scheme metacircular evaluator authors: book SICP
# see http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-26.html#%_... | true | # Lisp/Scheme evaluator, see: SICP, 4.1
#
# Port to CoffeeScript
# by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# (C) MIT Style License
#
# Features:
# - just a toy and very inefficient; just the version 0.1 ;)
#
# Scheme metacircular evaluator authors: book SICP
# see http://mitpress.mit.edu/sicp/full-... |
[
{
"context": "odeURIComponent(longUrl)}&appid=801399639&openkey=898eab772e8dbd603f03c4db1963de93\"\n xmlhttp.open('GET', url, false)\n xmlhttp.onre",
"end": 2534,
"score": 0.9997406601905823,
"start": 2502,
"tag": "KEY",
"value": "898eab772e8dbd603f03c4db1963de93"
},
{
"context": "... | src/extension/background/tools.coffee | roceys/cm | 248 | ###
# QR码、短网址、快递工具
###
queryKd = (num, tab, back, incognito)->
### 根据快递单号查找快递信息 ###
xmlhttp = new XMLHttpRequest()
xmlhttp.open('GET',
"http://www.kuaidi100.com/autonumber/auto?num=#{num}", true)
xmlhttp.setRequestHeader('Content-Type', 'application/json')
xmlhttp.onreadystatechange = ->
if xmlhttp.re... | 56767 | ###
# QR码、短网址、快递工具
###
queryKd = (num, tab, back, incognito)->
### 根据快递单号查找快递信息 ###
xmlhttp = new XMLHttpRequest()
xmlhttp.open('GET',
"http://www.kuaidi100.com/autonumber/auto?num=#{num}", true)
xmlhttp.setRequestHeader('Content-Type', 'application/json')
xmlhttp.onreadystatechange = ->
if xmlhttp.re... | true | ###
# QR码、短网址、快递工具
###
queryKd = (num, tab, back, incognito)->
### 根据快递单号查找快递信息 ###
xmlhttp = new XMLHttpRequest()
xmlhttp.open('GET',
"http://www.kuaidi100.com/autonumber/auto?num=#{num}", true)
xmlhttp.setRequestHeader('Content-Type', 'application/json')
xmlhttp.onreadystatechange = ->
if xmlhttp.re... |
[
{
"context": "e in unpatched `loupe.js`, see https://github.com/chaijs/loupe/issues/40 ###\n [ [ 1, 'XXXX', ], fals",
"end": 2189,
"score": 0.9993081092834473,
"start": 2183,
"tag": "USERNAME",
"value": "chaijs"
},
{
"context": "llobject', ]\n [ ( { constructor:... | dev/intertype/src/es6classes.test.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
# njs_util = require 'util'
njs_path = require 'path'
# njs_fs = require 'fs'
#.................................................................. | 46966 |
'use strict'
############################################################################################################
# njs_util = require 'util'
njs_path = require 'path'
# njs_fs = require 'fs'
#.................................................................. | true |
'use strict'
############################################################################################################
# njs_util = require 'util'
njs_path = require 'path'
# njs_fs = require 'fs'
#.................................................................. |
[
{
"context": " query =\n id: 'foo'\n jalapId: 'serano'\n\n @cacheKey = @sut._generateCacheKey {que",
"end": 475,
"score": 0.7327059507369995,
"start": 469,
"tag": "NAME",
"value": "serano"
},
{
"context": "per key', ->\n expect(@cacheKey).to.equal '71... | test/datastore-cache-attributes-spec.coffee | octoblu/meshblu-core-datastore | 0 | {describe,beforeEach,it,expect} = global
mongojs = require 'mongojs'
Datastore = require '../src/datastore'
describe 'Datastore cache stuff', ->
beforeEach ->
@sut = new Datastore
database: mongojs('datastore-test')
collection: 'jalapenos'
cacheAttributes: ['id', 'jalapId']
des... | 62597 | {describe,beforeEach,it,expect} = global
mongojs = require 'mongojs'
Datastore = require '../src/datastore'
describe 'Datastore cache stuff', ->
beforeEach ->
@sut = new Datastore
database: mongojs('datastore-test')
collection: 'jalapenos'
cacheAttributes: ['id', 'jalapId']
des... | true | {describe,beforeEach,it,expect} = global
mongojs = require 'mongojs'
Datastore = require '../src/datastore'
describe 'Datastore cache stuff', ->
beforeEach ->
@sut = new Datastore
database: mongojs('datastore-test')
collection: 'jalapenos'
cacheAttributes: ['id', 'jalapId']
des... |
[
{
"context": "pt.org/\n\nloadMap = ->\n L.mapbox.accessToken = \"pk.eyJ1Ijoic3BhY2Vib3k2OSIsImEiOiJjaWtydTV5Y3MwNG5ldHptMWQyMG5zM293In0.aRElpBXtyEqNlqft55sRzw\";\n map = L.mapbox.map(\"map-one\", \"mapbox.stree",
"end": 346,
"score": 0.9997254014015198,
"start": 253,
"tag": "KEY",
"val... | app/assets/javascripts/searches.js.coffee | everysum1/realestater | 1 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
loadMap = ->
L.mapbox.accessToken = "pk.eyJ1Ijoic3BhY2Vib3k2OSIsImEiOiJjaWtydTV5Y3MwNG5ldHptMWQyMG5zM293... | 145045 | # 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/
loadMap = ->
L.mapbox.accessToken = "<KEY>";
map = L.mapbox.map("map-one", "mapbox.streets", {
... | 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/
loadMap = ->
L.mapbox.accessToken = "PI:KEY:<KEY>END_PI";
map = L.mapbox.map("map-one", "mapbox.stre... |
[
{
"context": "###\nCopyright (c) 2014, Groupon\nAll rights reserved.\n\nRedistribution and use in s",
"end": 31,
"score": 0.9952127933502197,
"start": 24,
"tag": "NAME",
"value": "Groupon"
}
] | src/client/controllers/alert-form.coffee | Mefiso/greenscreen | 729 | ###
Copyright (c) 2014, Groupon
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 following discla... | 151076 | ###
Copyright (c) 2014, <NAME>
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 following disclai... | true | ###
Copyright (c) 2014, PI:NAME:<NAME>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 list of conditions and the fol... |
[
{
"context": " template\n) ->\n\n ###*\n # @author Raymond de Wit\n # @module App\n # @submodule ",
"end": 427,
"score": 0.9998887777328491,
"start": 413,
"tag": "NAME",
"value": "Raymond de Wit"
}
] | generators/demo/templates/src/views/navigation.coffee | marviq/generator-bat | 3 | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
require( './navigation.hbs' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
'./navigation.hbs'
... | 958 | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
require( './navigation.hbs' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
'./navigation.hbs'
... | true | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
require( './navigation.hbs' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
'./navigation.hbs'
... |
[
{
"context": "key: 'quotes'\npatterns: [\n {\n match: '^(?: {0,3})(>){1}(?:",
"end": 12,
"score": 0.8969787359237671,
"start": 6,
"tag": "KEY",
"value": "quotes"
}
] | grammars/repositories/blocks/quotes.cson | doc22940/language-markdown | 138 | key: 'quotes'
patterns: [
{
match: '^(?: {0,3})(>){1}(?: ){0,1}(.*)$'
name: 'quote.markup.md'
captures:
1: { name: 'punctuation.md' }
2:
patterns: [
{ include: '#blocks' }
{ include: '#inlines-in-blocks' }
]
}
]
| 86790 | key: '<KEY>'
patterns: [
{
match: '^(?: {0,3})(>){1}(?: ){0,1}(.*)$'
name: 'quote.markup.md'
captures:
1: { name: 'punctuation.md' }
2:
patterns: [
{ include: '#blocks' }
{ include: '#inlines-in-blocks' }
]
}
]
| true | key: 'PI:KEY:<KEY>END_PI'
patterns: [
{
match: '^(?: {0,3})(>){1}(?: ){0,1}(.*)$'
name: 'quote.markup.md'
captures:
1: { name: 'punctuation.md' }
2:
patterns: [
{ include: '#blocks' }
{ include: '#inlines-in-blocks' }
]
}
]
|
[
{
"context": "# angular-image-dimensions\n# (c) 2016 Scott Lanning\n# Licensed MIT\n\n'use strict'\n\n# Directive for dis",
"end": 51,
"score": 0.9998656511306763,
"start": 38,
"tag": "NAME",
"value": "Scott Lanning"
}
] | src/angular-image-dimensions.coffee | slanningGH/angular-image-size | 3 | # angular-image-dimensions
# (c) 2016 Scott Lanning
# Licensed MIT
'use strict'
# Directive for displaying image dimensions
((root, factory) ->
# Node / CommonJS
if typeof module is 'object' and module.exports
module.exports = factory require 'angular'
# AMD. Register as an anonymous module.
... | 125454 | # angular-image-dimensions
# (c) 2016 <NAME>
# Licensed MIT
'use strict'
# Directive for displaying image dimensions
((root, factory) ->
# Node / CommonJS
if typeof module is 'object' and module.exports
module.exports = factory require 'angular'
# AMD. Register as an anonymous module.
else ... | true | # angular-image-dimensions
# (c) 2016 PI:NAME:<NAME>END_PI
# Licensed MIT
'use strict'
# Directive for displaying image dimensions
((root, factory) ->
# Node / CommonJS
if typeof module is 'object' and module.exports
module.exports = factory require 'angular'
# AMD. Register as an anonymous mod... |
[
{
"context": "../src/models/swarmbot'\n\nMOCK_FIREBASE_ADDRESS = '127.0.1' # strange host name needed by testing framework\n",
"end": 644,
"score": 0.9996833801269531,
"start": 637,
"tag": "IP_ADDRESS",
"value": "127.0.1"
},
{
"context": "irebaseio.test\"\n }\n {\n port: 5000\n ... | test/helpers/test-helper.coffee | citizencode/swarmbot | 21 | global.Promise = require 'bluebird'
{ defaults, any } = require 'lodash'
{json, log, p, pjson} = require 'lightsaber'
chai = require 'chai'
chaiAsPromised = require("chai-as-promised")
chai.should()
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use(sinonChai)
chai.use(chaiAsPromised)
FirebaseServer = ... | 68084 | global.Promise = require 'bluebird'
{ defaults, any } = require 'lodash'
{json, log, p, pjson} = require 'lightsaber'
chai = require 'chai'
chaiAsPromised = require("chai-as-promised")
chai.should()
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use(sinonChai)
chai.use(chaiAsPromised)
FirebaseServer = ... | true | global.Promise = require 'bluebird'
{ defaults, any } = require 'lodash'
{json, log, p, pjson} = require 'lightsaber'
chai = require 'chai'
chaiAsPromised = require("chai-as-promised")
chai.should()
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use(sinonChai)
chai.use(chaiAsPromised)
FirebaseServer = ... |
[
{
"context": " is part of the taiga-contrib-fan package.\n#\n# (c) Simon Leblanc <contact@leblanc-simon.eu>\n#\n# For the full copyr",
"end": 79,
"score": 0.9998677372932434,
"start": 66,
"tag": "NAME",
"value": "Simon Leblanc"
},
{
"context": "taiga-contrib-fan package.\n#\n# (c) Si... | front/taiga-contrib-fan/coffee/fan.coffee | leblanc-simon/taiga-contrib-fan | 0 | ###
# This file is part of the taiga-contrib-fan package.
#
# (c) Simon Leblanc <contact@leblanc-simon.eu>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# File: fan.coffee
###
template = """
<section class="fan-container" ng-if="project... | 223033 | ###
# This file is part of the taiga-contrib-fan package.
#
# (c) <NAME> <<EMAIL>>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# File: fan.coffee
###
template = """
<section class="fan-container" ng-if="projects.length">
<header><... | true | ###
# This file is part of the taiga-contrib-fan package.
#
# (c) PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# File: fan.coffee
###
template = """
<section class="fan-container" ng-if="pr... |
[
{
"context": "egKey = new Winreg\n hive: Winreg.HKCU\n key: '\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run'\n\n\nmodule.exports =\n\n ### Public ###\n\n # op",
"end": 181,
"score": 0.9996128082275391,
"start": 129,
"tag": "KEY",
"value": "'\\\\Software\\\\Microso... | src/AutoLaunchWindows.coffee | jurkog/node-auto-launch | 1 | fs = require 'fs'
path = require 'path'
Winreg = require 'winreg'
regKey = new Winreg
hive: Winreg.HKCU
key: '\\Software\\Microsoft\\Windows\\CurrentVersion\\Run'
module.exports =
### Public ###
# options - {Object}
# :appName - {String}
# :appPath - {String}
# :appArgs... | 72229 | fs = require 'fs'
path = require 'path'
Winreg = require 'winreg'
regKey = new Winreg
hive: Winreg.HKCU
key: <KEY>'
module.exports =
### Public ###
# options - {Object}
# :appName - {String}
# :appPath - {String}
# :appArgs - {String}
# :isHiddenOnLaunch - {Boolea... | true | fs = require 'fs'
path = require 'path'
Winreg = require 'winreg'
regKey = new Winreg
hive: Winreg.HKCU
key: PI:KEY:<KEY>END_PI'
module.exports =
### Public ###
# options - {Object}
# :appName - {String}
# :appPath - {String}
# :appArgs - {String}
# :isHiddenOnLau... |
[
{
"context": "herself, itself, yourself', ->\n msg.token('hisself').should.eql 'itself'\n msg.subject.gen",
"end": 3669,
"score": 0.5444697141647339,
"start": 3666,
"tag": "USERNAME",
"value": "his"
},
{
"context": "elf', ->\n msg.token('hisself').should.eql 'its... | plugins/coffeekeep.messaging/test/format.coffee | leonexis/coffeekeep | 0 | should = require 'should'
path = require 'path'
async = require 'async'
should = require 'should'
coffeekeep = require 'coffeekeep'
config = [
'./coffeekeep.log'
'./coffeekeep.model'
'./coffeekeep.storage.memory'
'./coffeekeep.interpreter'
'./coffeekeep.core'
'./coffeekeep.messaging'
]
describe 'coffeeke... | 55846 | should = require 'should'
path = require 'path'
async = require 'async'
should = require 'should'
coffeekeep = require 'coffeekeep'
config = [
'./coffeekeep.log'
'./coffeekeep.model'
'./coffeekeep.storage.memory'
'./coffeekeep.interpreter'
'./coffeekeep.core'
'./coffeekeep.messaging'
]
describe 'coffeeke... | true | should = require 'should'
path = require 'path'
async = require 'async'
should = require 'should'
coffeekeep = require 'coffeekeep'
config = [
'./coffeekeep.log'
'./coffeekeep.model'
'./coffeekeep.storage.memory'
'./coffeekeep.interpreter'
'./coffeekeep.core'
'./coffeekeep.messaging'
]
describe 'coffeeke... |
[
{
"context": "me: ['is invalid']}\n\n unit = new Unit(name: 'Zeratul')\n unit.valid().should.be.true\n unit.er",
"end": 2646,
"score": 0.9995409846305847,
"start": 2639,
"tag": "NAME",
"value": "Zeratul"
},
{
"context": "me: ['is invalid']}\n\n unit = new Unit(nam... | spec/model/validation-spec.coffee | wanbok/mongo-model | 1 | require '../helper'
describe "Model Validation", ->
withMongo()
describe 'CRUD', ->
[Unit, Item, unit, item] = [null, null, null, null]
beforeEach ->
class Tmp.Unit extends Model
@collection 'units'
@embedded 'items'
Unit = Tmp.Unit
class Tmp.Item extends Model
Ite... | 166220 | require '../helper'
describe "Model Validation", ->
withMongo()
describe 'CRUD', ->
[Unit, Item, unit, item] = [null, null, null, null]
beforeEach ->
class Tmp.Unit extends Model
@collection 'units'
@embedded 'items'
Unit = Tmp.Unit
class Tmp.Item extends Model
Ite... | true | require '../helper'
describe "Model Validation", ->
withMongo()
describe 'CRUD', ->
[Unit, Item, unit, item] = [null, null, null, null]
beforeEach ->
class Tmp.Unit extends Model
@collection 'units'
@embedded 'items'
Unit = Tmp.Unit
class Tmp.Item extends Model
Ite... |
[
{
"context": "# Copyright © 2013 All rights reserved\n# Author: nhim175@gmail.com\n\nModule = require './module.coffee'\nLogger = requ",
"end": 66,
"score": 0.9999129176139832,
"start": 49,
"tag": "EMAIL",
"value": "nhim175@gmail.com"
}
] | src/lib/bean.coffee | nhim175/scorpionsmasher | 0 | # Copyright © 2013 All rights reserved
# Author: nhim175@gmail.com
Module = require './module.coffee'
Logger = require '../mixins/logger.coffee'
WIDTH = 64
HEIGHT = 108
LEFT_DIRECTION = 0
RIGHT_DIRECTION = 1
class Bean extends Module
@include Logger
logPrefix: 'Bean'
constructor: (game) ->
@game = game
... | 120639 | # Copyright © 2013 All rights reserved
# Author: <EMAIL>
Module = require './module.coffee'
Logger = require '../mixins/logger.coffee'
WIDTH = 64
HEIGHT = 108
LEFT_DIRECTION = 0
RIGHT_DIRECTION = 1
class Bean extends Module
@include Logger
logPrefix: 'Bean'
constructor: (game) ->
@game = game
@me = @... | true | # Copyright © 2013 All rights reserved
# Author: PI:EMAIL:<EMAIL>END_PI
Module = require './module.coffee'
Logger = require '../mixins/logger.coffee'
WIDTH = 64
HEIGHT = 108
LEFT_DIRECTION = 0
RIGHT_DIRECTION = 1
class Bean extends Module
@include Logger
logPrefix: 'Bean'
constructor: (game) ->
@game = g... |
[
{
"context": ")\n\n it 'greets you back', ->\n @room.user.say('alice', '@hubot hello').then =>\n expect(@room.mess",
"end": 410,
"score": 0.5041806101799011,
"start": 405,
"tag": "NAME",
"value": "alice"
},
{
"context": ">\n expect(@room.messages).to.eql [\n ['al... | test/onboarding-test.coffee | contolini/hubot-onboarding | 9 | Helper = require 'hubot-test-helper'
sinon = require 'sinon'
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/index.coffee')
describe 'onboarding', ->
beforeEach ->
@room = helper.createRoom()
@room.user.isAdmin = true
@room.robot.auth = isAdmin: =>
return @room.user.isAdmin... | 36952 | Helper = require 'hubot-test-helper'
sinon = require 'sinon'
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/index.coffee')
describe 'onboarding', ->
beforeEach ->
@room = helper.createRoom()
@room.user.isAdmin = true
@room.robot.auth = isAdmin: =>
return @room.user.isAdmin... | true | Helper = require 'hubot-test-helper'
sinon = require 'sinon'
chai = require 'chai'
expect = chai.expect
helper = new Helper('../src/index.coffee')
describe 'onboarding', ->
beforeEach ->
@room = helper.createRoom()
@room.user.isAdmin = true
@room.robot.auth = isAdmin: =>
return @room.user.isAdmin... |
[
{
"context": "eate()\n @pane = new KDTabPaneView\n name: 'Koding'\n @instance = new KDTabView\n\n afterEach ->\n ",
"end": 340,
"score": 0.7329018712043762,
"start": 334,
"tag": "NAME",
"value": "Koding"
}
] | test/components/tabs/tabview.coffee | awsapps/kd | 62 | should = require 'should'
sinon = require 'sinon'
shouldSinon = require 'should-sinon'
KDTabView = require '../../../lib/components/tabs/tabview'
KDTabPaneView = require '../../../lib/components/tabs/tabpaneview'
describe 'KDTabView', ->
beforeEach ->
@sinon = sinon.sandbox.create()
@pane = new KDTabPaneView... | 113369 | should = require 'should'
sinon = require 'sinon'
shouldSinon = require 'should-sinon'
KDTabView = require '../../../lib/components/tabs/tabview'
KDTabPaneView = require '../../../lib/components/tabs/tabpaneview'
describe 'KDTabView', ->
beforeEach ->
@sinon = sinon.sandbox.create()
@pane = new KDTabPaneView... | true | should = require 'should'
sinon = require 'sinon'
shouldSinon = require 'should-sinon'
KDTabView = require '../../../lib/components/tabs/tabview'
KDTabPaneView = require '../../../lib/components/tabs/tabpaneview'
describe 'KDTabView', ->
beforeEach ->
@sinon = sinon.sandbox.create()
@pane = new KDTabPaneView... |
[
{
"context": "ser = process.env.HUBOT_JIRA_USER\njira_password = process.env.HUBOT_JIRA_PASSWORD\npod_ip = process.env.MY_POD_IP",
"end": 1532,
"score": 0.9840198755264282,
"start": 1521,
"tag": "PASSWORD",
"value": "process.env"
},
{
"context": ".env.HUBOT_JIRA_USER\njira_password ... | scripts/jira/scripts-hipchat/jira-create.coffee | akash1233/OnBot_Demo | 4 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... | 146829 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... | true | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... |
[
{
"context": "collection.add(collection.parse({id: 'b4', name: 'John', number: '555-555-5558', date: new Date(1940, 10",
"end": 1540,
"score": 0.9998425245285034,
"start": 1536,
"tag": "NAME",
"value": "John"
},
{
"context": ")\n\n # get\n assert.equal(view_model.name(), 'John'... | test/spec/ecosystem/backbone-modelref.tests.coffee | metacommunications/knockback | 160 | root = if window? then window else global
assert = assert or require?('chai').assert
describe 'Knockback.js with Backbone.ModelRef.js @backbone-modelref', ->
# import Underscore (or Lo-Dash with precedence), Backbone, Knockout, and Knockback
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= requ... | 144747 | root = if window? then window else global
assert = assert or require?('chai').assert
describe 'Knockback.js with Backbone.ModelRef.js @backbone-modelref', ->
# import Underscore (or Lo-Dash with precedence), Backbone, Knockout, and Knockback
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= requ... | true | root = if window? then window else global
assert = assert or require?('chai').assert
describe 'Knockback.js with Backbone.ModelRef.js @backbone-modelref', ->
# import Underscore (or Lo-Dash with precedence), Backbone, Knockout, and Knockback
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= requ... |
[
{
"context": "###\n * @author \t\tAbdelhakim RAFIK\n * @version \tv1.0.1\n * @license \tMIT License\n * @",
"end": 33,
"score": 0.9998968243598938,
"start": 17,
"tag": "NAME",
"value": "Abdelhakim RAFIK"
},
{
"context": "nse \tMIT License\n * @copyright \tCopyright (c) 2021 Abdelhaki... | src/app/models/user.coffee | AbdelhakimRafik/Project | 1 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date June 2021
###
bcrypt = require 'bcrypt'
config = require '../../config'
###
User model
###
module.exports = (sequelize, DataTypes) ->
# define the model
User = sequelize.... | 142640 | ###
* @author <NAME>
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 <NAME>
* @date June 2021
###
bcrypt = require 'bcrypt'
config = require '../../config'
###
User model
###
module.exports = (sequelize, DataTypes) ->
# define the model
User = sequelize.define 'User',
fi... | 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
###
bcrypt = require 'bcrypt'
config = require '../../config'
###
User model
###
module.exports = (sequelize, DataTypes) ->
# define the model
User = se... |
[
{
"context": "eParser()\n app.use express.session(\n secret: \"2433804vsdfnoeignlsd\"\n key: \"ignorethis\"\n cookie:\n path: \"/",
"end": 413,
"score": 0.9961597323417664,
"start": 393,
"tag": "KEY",
"value": "2433804vsdfnoeignlsd"
},
{
"context": "ion(\n secret: \... | nodejs/cookbooks/challenge/aux/webapp/app.coffee | mitre-cyber-academy/2012-web-d | 0 | express = require("express")
routes = require("./routes")
http = require("http")
app = express()
app.configure ->
app.set "port", process.env.PORT or 3000
app.set "views", __dirname + "/views"
app.set "view engine", "jade"
app.use express.favicon()
app.use express.logger("dev")
app.use express.bodyParser()
... | 178707 | express = require("express")
routes = require("./routes")
http = require("http")
app = express()
app.configure ->
app.set "port", process.env.PORT or 3000
app.set "views", __dirname + "/views"
app.set "view engine", "jade"
app.use express.favicon()
app.use express.logger("dev")
app.use express.bodyParser()
... | true | express = require("express")
routes = require("./routes")
http = require("http")
app = express()
app.configure ->
app.set "port", process.env.PORT or 3000
app.set "views", __dirname + "/views"
app.set "view engine", "jade"
app.use express.favicon()
app.use express.logger("dev")
app.use express.bodyParser()
... |
[
{
"context": " \r\n for user in Users\r\n if user.name is player\r\n person = user\r\n break\r\n\r\n whil",
"end": 1389,
"score": 0.825956404209137,
"start": 1383,
"tag": "USERNAME",
"value": "player"
},
{
"context": " msgObj\r\n )\r\n\r\n han... | CoffeeScript/src/KBot-CAH.coffee | Maw-Fox/KBot | 0 | do ->
KBot.Cah.users = []
KBot.Cah.hands = []
KBot.Cah.Round =
number: NaN
phase: "select"
hands: []
card: null
judge: 0
channel: null
KBot.Cah.used = []
KBot.Cah.inPlay = false
KBot.Cah.print = (msg, msgObj, qHandle) ->
if KBot.waitFor and not qHandle
return ... | 88990 | do ->
KBot.Cah.users = []
KBot.Cah.hands = []
KBot.Cah.Round =
number: NaN
phase: "select"
hands: []
card: null
judge: 0
channel: null
KBot.Cah.used = []
KBot.Cah.inPlay = false
KBot.Cah.print = (msg, msgObj, qHandle) ->
if KBot.waitFor and not qHandle
return ... | true | do ->
KBot.Cah.users = []
KBot.Cah.hands = []
KBot.Cah.Round =
number: NaN
phase: "select"
hands: []
card: null
judge: 0
channel: null
KBot.Cah.used = []
KBot.Cah.inPlay = false
KBot.Cah.print = (msg, msgObj, qHandle) ->
if KBot.waitFor and not qHandle
return ... |
[
{
"context": "###\nThe MIT License (MIT)\n\nCopyright (c) 2013 Tim Düsterhus\n\nPermission is hereby granted, free of charge, to",
"end": 59,
"score": 0.9998579025268555,
"start": 46,
"tag": "NAME",
"value": "Tim Düsterhus"
},
{
"context": "ile: false\n\t\t\n\t\t(validator [ 'company... | test/index.coffee | taylor987jack/qmail-aliasfilter-js | 1 | ###
The MIT License (MIT)
Copyright (c) 2013 Tim Düsterhus
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge... | 115704 | ###
The MIT License (MIT)
Copyright (c) 2013 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publi... | true | ###
The MIT License (MIT)
Copyright (c) 2013 PI:NAME:<NAME>END_PI
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify... |
[
{
"context": " transportMethod: 'SMTP'\n auth:\n user: user\n pass: pass\n ndx.gmail =\n send: (ctx, ",
"end": 746,
"score": 0.9749056696891785,
"start": 742,
"tag": "USERNAME",
"value": "user"
},
{
"context": "SMTP'\n auth:\n user: user\n pa... | src/index.coffee | ndxbxrme/ndx-gmail | 0 | 'use strict'
mailer = require 'express-mailer'
module.exports = (ndx) ->
user = process.env.GMAIL_USER or ndx.settings.GMAIL_USER
pass = process.env.GMAIL_PASS or ndx.settings.GMAIL_PASS
fillTemplate = (template, data) ->
template.replace /\{\{(.+?)\}\}/g, (all, match) ->
evalInContext = (str, context)... | 92549 | 'use strict'
mailer = require 'express-mailer'
module.exports = (ndx) ->
user = process.env.GMAIL_USER or ndx.settings.GMAIL_USER
pass = process.env.GMAIL_PASS or ndx.settings.GMAIL_PASS
fillTemplate = (template, data) ->
template.replace /\{\{(.+?)\}\}/g, (all, match) ->
evalInContext = (str, context)... | true | 'use strict'
mailer = require 'express-mailer'
module.exports = (ndx) ->
user = process.env.GMAIL_USER or ndx.settings.GMAIL_USER
pass = process.env.GMAIL_PASS or ndx.settings.GMAIL_PASS
fillTemplate = (template, data) ->
template.replace /\{\{(.+?)\}\}/g, (all, match) ->
evalInContext = (str, context)... |
[
{
"context": " `up.util.isBlank()`:\n\n ```\n foo = new Account('foo@foo.com')\n bar = new Account('')\n\n console.log(up.util.",
"end": 11184,
"score": 0.9998363256454468,
"start": 11173,
"tag": "EMAIL",
"value": "foo@foo.com"
},
{
"context": "sBlank.key\n @experimental\n ###\... | lib/assets/javascripts/unpoly/util.coffee | pfw/unpoly | 0 | ###**
Utility functions
=================
The `up.util` module contains functions to facilitate the work with basic JavaScript
values like lists, strings or functions.
You will recognize many functions form other utility libraries like [Lodash](https://lodash.com/).
While feature parity with Lodash is not a goal of `... | 38591 | ###**
Utility functions
=================
The `up.util` module contains functions to facilitate the work with basic JavaScript
values like lists, strings or functions.
You will recognize many functions form other utility libraries like [Lodash](https://lodash.com/).
While feature parity with Lodash is not a goal of `... | true | ###**
Utility functions
=================
The `up.util` module contains functions to facilitate the work with basic JavaScript
values like lists, strings or functions.
You will recognize many functions form other utility libraries like [Lodash](https://lodash.com/).
While feature parity with Lodash is not a goal of `... |
[
{
"context": "sc6oIFXdfHHJEAuefFcjg8E40\", \"rev\": 3, \"dsid\": \".UI3UDtl4k2f2uQlST-5Sf5gnuqtB_rjUPvY7DZzRiGg\"}, {\"handle",
"end": 959,
"score": 0.5417376160621643,
"start": 956,
"tag": "KEY",
"value": "3UD"
},
{
"context": "FXdfHHJEAuefFcjg8E40\", \"rev\": 3, \"dsid\": \".UI3UDt... | test/src/fast/datastore/datastore_manager_test.coffee | noamraph/datastore-js | 0 | {ListDatastoresResponse, EventSourceWithInitialData} = Dropbox.Datastore.impl
class MockClient
constructor: ->
@nextResponse = null
_getNextResponse: ->
x = @nextResponse
assert x
@nextResponse = null
return x
isAuthenticated: -> true
_datastoreAwait: ->
# nothing for now
_getOrCr... | 185623 | {ListDatastoresResponse, EventSourceWithInitialData} = Dropbox.Datastore.impl
class MockClient
constructor: ->
@nextResponse = null
_getNextResponse: ->
x = @nextResponse
assert x
@nextResponse = null
return x
isAuthenticated: -> true
_datastoreAwait: ->
# nothing for now
_getOrCr... | true | {ListDatastoresResponse, EventSourceWithInitialData} = Dropbox.Datastore.impl
class MockClient
constructor: ->
@nextResponse = null
_getNextResponse: ->
x = @nextResponse
assert x
@nextResponse = null
return x
isAuthenticated: -> true
_datastoreAwait: ->
# nothing for now
_getOrCr... |
[
{
"context": "f not password.match /^[0-9a-f]{32}$/\n\t\tpassword = utils.md5 utils.md5 password\n\treturn password\n\ncurrent_timestamp = ->\n\tnew Dat",
"end": 281,
"score": 0.9073479175567627,
"start": 253,
"tag": "PASSWORD",
"value": "utils.md5 utils.md5 password"
},
{
"context":... | firefox/lib/lixian.coffee | yineric/xunlei-lixian-web | 0 |
join_url = (base, url) ->
if url.match /^http:/i
return url
if url.match /^\//
return base.replace(/\/$/, '') + url
throw new Error("Not Implemented: #{url}")
encypt_password = (password) ->
if not password.match /^[0-9a-f]{32}$/
password = utils.md5 utils.md5 password
return password
current_timestamp = ... | 50795 |
join_url = (base, url) ->
if url.match /^http:/i
return url
if url.match /^\//
return base.replace(/\/$/, '') + url
throw new Error("Not Implemented: #{url}")
encypt_password = (password) ->
if not password.match /^[0-9a-f]{32}$/
password = <PASSWORD>
return password
current_timestamp = ->
new Date().get... | true |
join_url = (base, url) ->
if url.match /^http:/i
return url
if url.match /^\//
return base.replace(/\/$/, '') + url
throw new Error("Not Implemented: #{url}")
encypt_password = (password) ->
if not password.match /^[0-9a-f]{32}$/
password = PI:PASSWORD:<PASSWORD>END_PI
return password
current_timestamp = ... |
[
{
"context": "# Droplet editor view.\n#\n# Copyright (c) 2015 Anthony Bau (dab1998@gmail.com)\n# MIT License\n\nhelper = requi",
"end": 57,
"score": 0.9998606443405151,
"start": 46,
"tag": "NAME",
"value": "Anthony Bau"
},
{
"context": " editor view.\n#\n# Copyright (c) 2015 Anthony ... | src/view.coffee | sanyaade-teachings/spresensedroplet | 0 | # Droplet editor view.
#
# Copyright (c) 2015 Anthony Bau (dab1998@gmail.com)
# MIT License
helper = require './helper.coffee'
draw = require './draw.coffee'
model = require './model.coffee'
NO_MULTILINE = 0
MULTILINE_START = 1
MULTILINE_MIDDLE = 2
MULTILINE_END = 3
MULTILINE_END_START = 4
ANY_DROP = helper.ANY_DROP... | 209288 | # Droplet editor view.
#
# Copyright (c) 2015 <NAME> (<EMAIL>)
# MIT License
helper = require './helper.coffee'
draw = require './draw.coffee'
model = require './model.coffee'
NO_MULTILINE = 0
MULTILINE_START = 1
MULTILINE_MIDDLE = 2
MULTILINE_END = 3
MULTILINE_END_START = 4
ANY_DROP = helper.ANY_DROP
BLOCK_ONLY = h... | true | # Droplet editor view.
#
# Copyright (c) 2015 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# MIT License
helper = require './helper.coffee'
draw = require './draw.coffee'
model = require './model.coffee'
NO_MULTILINE = 0
MULTILINE_START = 1
MULTILINE_MIDDLE = 2
MULTILINE_END = 3
MULTILINE_END_START = 4
ANY_DROP = h... |
[
{
"context": "ins[1].urn, peerId:config.logins[0].urn, peerIP: \"127.0.0.1\", peerPID: 1212, peerStatus:\"ready\", peerInbox:[{",
"end": 4015,
"score": 0.9996331334114075,
"start": 4006,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "ins[3].urn, peerId:config.logins[0].ur... | test/hTracker.coffee | fredpottier/hubiquitus | 2 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... | 69455 | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... | true | #
# * Copyright (c) Novedia Group 2012.
# *
# * This file is part of Hubiquitus
# *
# * Permission is hereby granted, free of charge, to any person obtaining a copy
# * of this software and associated documentation files (the "Software"), to deal
# * in the Software without restriction, including without li... |
[
{
"context": "jector](http://neocotic.com/injector)\n#\n# (c) 2014 Alasdair Mercer\n#\n# Freely distributable under the MIT license\n\n#",
"end": 71,
"score": 0.9998677372932434,
"start": 56,
"tag": "NAME",
"value": "Alasdair Mercer"
}
] | src/coffee/injector.coffee | SlinkySalmon633/injector-chrome | 33 | # [Injector](http://neocotic.com/injector)
#
# (c) 2014 Alasdair Mercer
#
# Freely distributable under the MIT license
# Injector
# --------
# Primary global namespace.
Injector = window.Injector = {}
# Retrieve the value of the given `property` from the "parent" of the context class.
#
# If that value is a function... | 154782 | # [Injector](http://neocotic.com/injector)
#
# (c) 2014 <NAME>
#
# Freely distributable under the MIT license
# Injector
# --------
# Primary global namespace.
Injector = window.Injector = {}
# Retrieve the value of the given `property` from the "parent" of the context class.
#
# If that value is a function, then in... | true | # [Injector](http://neocotic.com/injector)
#
# (c) 2014 PI:NAME:<NAME>END_PI
#
# Freely distributable under the MIT license
# Injector
# --------
# Primary global namespace.
Injector = window.Injector = {}
# Retrieve the value of the given `property` from the "parent" of the context class.
#
# If that value is a fun... |
[
{
"context": " doc = new CRDT.Document\n doc.at('key').set \"kitty\"\n deepEqual doc.at('key').get(), \"kitty\"\n doc.a",
"end": 806,
"score": 0.6162673830986023,
"start": 804,
"tag": "KEY",
"value": "ty"
}
] | test/crdt/document.js.coffee | collin/crdt | 1 | module "CRDT.Document"
test "opens a subdoc", ->
doc = new CRDT.Document
sub = doc.at "path"
deepEqual sub.path, ["path"]
test "set text value", ->
doc = new CRDT.Document
doc.at('key').set "KEY"
deepEqual doc.at('key').get(), "KEY"
test "set numeric value", ->
doc = new CRDT.Document
doc.at('key').se... | 183972 | module "CRDT.Document"
test "opens a subdoc", ->
doc = new CRDT.Document
sub = doc.at "path"
deepEqual sub.path, ["path"]
test "set text value", ->
doc = new CRDT.Document
doc.at('key').set "KEY"
deepEqual doc.at('key').get(), "KEY"
test "set numeric value", ->
doc = new CRDT.Document
doc.at('key').se... | true | module "CRDT.Document"
test "opens a subdoc", ->
doc = new CRDT.Document
sub = doc.at "path"
deepEqual sub.path, ["path"]
test "set text value", ->
doc = new CRDT.Document
doc.at('key').set "KEY"
deepEqual doc.at('key').get(), "KEY"
test "set numeric value", ->
doc = new CRDT.Document
doc.at('key').se... |
[
{
"context": "n if ignoreRouterSettingChange\r\n\r\n\tif arg.key is \"routerContextPath\" or arg.key is \"defaultRouterPath\"\r\n\t\tpath = cola",
"end": 431,
"score": 0.7664515972137451,
"start": 414,
"tag": "KEY",
"value": "routerContextPath"
},
{
"context": "\tif arg.key is \"rout... | src/core/router.coffee | homeant/cola-ui | 90 | routerRegistry = null
currentRoutePath = null
currentRouter = null
trimPath = (path)->
if path
if path.charCodeAt(0) isnt 47 # `/`
path = "/" + path
if path.charCodeAt(path.length - 1) == 47 # `/`
path = path.substring(0, path.length - 1)
return path || ""
ignoreRouterSettingChange = false
co... | 163857 | routerRegistry = null
currentRoutePath = null
currentRouter = null
trimPath = (path)->
if path
if path.charCodeAt(0) isnt 47 # `/`
path = "/" + path
if path.charCodeAt(path.length - 1) == 47 # `/`
path = path.substring(0, path.length - 1)
return path || ""
ignoreRouterSettingChange = false
co... | true | routerRegistry = null
currentRoutePath = null
currentRouter = null
trimPath = (path)->
if path
if path.charCodeAt(0) isnt 47 # `/`
path = "/" + path
if path.charCodeAt(path.length - 1) == 47 # `/`
path = path.substring(0, path.length - 1)
return path || ""
ignoreRouterSettingChange = false
co... |
[
{
"context": "fore (done) ->\n auth.login(server, {username: \"admin@test.com\", password:\"password\"}, 200, \n (res)->\n ",
"end": 491,
"score": 0.9999154806137085,
"start": 477,
"tag": "EMAIL",
"value": "admin@test.com"
},
{
"context": "in(server, {username: \"admin@te... | test/services_tests/test_build_services.coffee | J-JRC/ureport-standalone | 0 | #load application models
server = require('../../app')
_ = require('underscore');
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
moment = require('moment')
should = chai.should()
... | 74994 | #load application models
server = require('../../app')
_ = require('underscore');
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
moment = require('moment')
should = chai.should()
... | true | #load application models
server = require('../../app')
_ = require('underscore');
build = require('../api_objects/build_api_object')
auth = require('../api_objects/auth_api_object')
mongoose = require('mongoose')
chai = require('chai')
chaiHttp = require('chai-http')
moment = require('moment')
should = chai.should()
... |
[
{
"context": " '.auth-email': 'email'\n '.auth-password': 'password'\n '.login': 'loginBtn'\n '.register': 'regis",
"end": 314,
"score": 0.9992194175720215,
"start": 306,
"tag": "PASSWORD",
"value": "password"
}
] | app/controllers/auth.coffee | gzferrar/Nitro | 1 | Spine = require 'spine'
Setting = require '../models/setting.coffee'
Cookies = require '../utils/cookies.js'
CONFIG = require '../utils/conf.coffee'
$ = Spine.$
class Auth extends Spine.Controller
elements:
'.form': 'form'
'.auth-name': 'name'
'.auth-email': 'email'
'.auth-password': 'password'
... | 99439 | Spine = require 'spine'
Setting = require '../models/setting.coffee'
Cookies = require '../utils/cookies.js'
CONFIG = require '../utils/conf.coffee'
$ = Spine.$
class Auth extends Spine.Controller
elements:
'.form': 'form'
'.auth-name': 'name'
'.auth-email': 'email'
'.auth-password': '<PASSWORD>'
... | true | Spine = require 'spine'
Setting = require '../models/setting.coffee'
Cookies = require '../utils/cookies.js'
CONFIG = require '../utils/conf.coffee'
$ = Spine.$
class Auth extends Spine.Controller
elements:
'.form': 'form'
'.auth-name': 'name'
'.auth-email': 'email'
'.auth-password': 'PI:PASSWORD:<P... |
[
{
"context": "ccessKeyId: 'public'\n awsSecretAccessKey: 'secret'\n\n assert.equal upload.opts.aws.region, 'my-",
"end": 2782,
"score": 0.7077449560165405,
"start": 2776,
"tag": "KEY",
"value": "secret"
}
] | test/suite.coffee | DavidBennettUK/node-s3-uploader | 0 | assert = require 'assert'
Upload = require '../src/index.coffee'
fs = require('fs')
gm = require('gm').subClass imageMagick: true
hash = require('crypto').createHash
rand = require('crypto').pseudoRandomBytes
upload = listObjects = putObject = null
cleanup = []
SIZE = if process.env.DRONE or process.env.CI then 'KB... | 13064 | assert = require 'assert'
Upload = require '../src/index.coffee'
fs = require('fs')
gm = require('gm').subClass imageMagick: true
hash = require('crypto').createHash
rand = require('crypto').pseudoRandomBytes
upload = listObjects = putObject = null
cleanup = []
SIZE = if process.env.DRONE or process.env.CI then 'KB... | true | assert = require 'assert'
Upload = require '../src/index.coffee'
fs = require('fs')
gm = require('gm').subClass imageMagick: true
hash = require('crypto').createHash
rand = require('crypto').pseudoRandomBytes
upload = listObjects = putObject = null
cleanup = []
SIZE = if process.env.DRONE or process.env.CI then 'KB... |
[
{
"context": " rich text editing jQuery UI widget\n# (c) 2011 Henri Bergius, IKS Consortium\n# Hallo may be freely distrib",
"end": 79,
"score": 0.9998539090156555,
"start": 66,
"tag": "NAME",
"value": "Henri Bergius"
}
] | src/plugins/block.coffee | codemix/hallo | 1 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 Henri Bergius, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.halloblock',
options:
editable: null
toolbar: null
uuid: ''
elements: [
'h1'
'h2'
... | 58929 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 <NAME>, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.halloblock',
options:
editable: null
toolbar: null
uuid: ''
elements: [
'h1'
'h2'
'h3... | true | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 PI:NAME:<NAME>END_PI, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.halloblock',
options:
editable: null
toolbar: null
uuid: ''
elements: [
'h1'
'h... |
[
{
"context": "leEmitter.on 'tapend', () => @bus.post(\"Circle\", \"Francis Ford Coppola\")\n @triangleEmitter.on 'tapend', () => @bus.po",
"end": 992,
"score": 0.9997887015342712,
"start": 972,
"tag": "NAME",
"value": "Francis Ford Coppola"
},
{
"context": ".on 'tapend', () => @bu... | Santa Maria/ui/coffee/slideshow/event_data_presenter.coffee | coshx/santa-maria | 1 | class EventDataPresenter extends BasePresenter
onCreate: () ->
@bus = Caravel.get("EventData")
@crossReceiver = $('.js-cross-receiver')
@circleReceiver = $('.js-circle-receiver')
@triangleReceiver = $('.js-triangle-receiver')
@squareReceiver = $('.js-square-receiver')
@crossEmitter = $('.js-... | 180475 | class EventDataPresenter extends BasePresenter
onCreate: () ->
@bus = Caravel.get("EventData")
@crossReceiver = $('.js-cross-receiver')
@circleReceiver = $('.js-circle-receiver')
@triangleReceiver = $('.js-triangle-receiver')
@squareReceiver = $('.js-square-receiver')
@crossEmitter = $('.js-... | true | class EventDataPresenter extends BasePresenter
onCreate: () ->
@bus = Caravel.get("EventData")
@crossReceiver = $('.js-cross-receiver')
@circleReceiver = $('.js-circle-receiver')
@triangleReceiver = $('.js-triangle-receiver')
@squareReceiver = $('.js-square-receiver')
@crossEmitter = $('.js-... |
[
{
"context": "###\n# @author Argi Karunia <https:#github.com/hkyo89>\n# @link https:#gith",
"end": 27,
"score": 0.9998752474784851,
"start": 15,
"tag": "NAME",
"value": "Argi Karunia"
},
{
"context": "###\n# @author Argi Karunia <https:#github.com/hkyo89>\n# @link https:#gith... | src/app.coffee | tokopedia/nodame | 2 | ###
# @author Argi Karunia <https:#github.com/hkyo89>
# @link https:#github.com/tokopedia/nodame
# @license http:#opensource.org/licenses/MIT
#
# @version 1.0.0
###
# third-party modules
CookieParser = require('cookie-parser')
BodyParser = require('body-parser')
XMLBodyParser = require('express-xml-bodyp... | 214022 | ###
# @author <NAME> <https:#github.com/hkyo89>
# @link https:#github.com/tokopedia/nodame
# @license http:#opensource.org/licenses/MIT
#
# @version 1.0.0
###
# third-party modules
CookieParser = require('cookie-parser')
BodyParser = require('body-parser')
XMLBodyParser = require('express-xml-bodyparser'... | true | ###
# @author PI:NAME:<NAME>END_PI <https:#github.com/hkyo89>
# @link https:#github.com/tokopedia/nodame
# @license http:#opensource.org/licenses/MIT
#
# @version 1.0.0
###
# third-party modules
CookieParser = require('cookie-parser')
BodyParser = require('body-parser')
XMLBodyParser = require('express-x... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9911876916885376,
"start": 16,
"tag": "NAME",
"value": "Konode"
},
{
"context": "Smooth-scroll utility, customized from https://pawelgrzybek.com/page-scroll-in-vanilla-java... | src/utils.coffee | LogicalOutcomes/KoNote | 1 | # Copyright (c) Konode. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Set of frequently-used utilities used all around the app
Moment = require 'moment'
{TimestampFormat} = require './p... | 46150 | # Copyright (c) <NAME>. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Set of frequently-used utilities used all around the app
Moment = require 'moment'
{TimestampFormat} = require './p... | true | # Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Set of frequently-used utilities used all around the app
Moment = require 'moment'
{TimestampFormat} ... |
[
{
"context": "ire '../lib/model'\n\nparameters =\n\tusernameField: 'username'\n\tpasswordField: 'password'\n\npassport.serializeUs",
"end": 410,
"score": 0.9989186525344849,
"start": 402,
"tag": "USERNAME",
"value": "username"
},
{
"context": "ers =\n\tusernameField: 'username'\n\tpa... | init/auth.coffee | winnlab/Polpharma | 0 | async = require 'async'
Logger = require '../lib/logger'
socialConfig = require '../meta/socialConfig'
passport = require 'passport'
localStrategy = require('passport-local').Strategy
facebookStrategy = require('passport-facebook').Strategy
odnoklassnikiStrategy = require('passport-odnoklassniki').Strategy
mongoose =... | 69099 | async = require 'async'
Logger = require '../lib/logger'
socialConfig = require '../meta/socialConfig'
passport = require 'passport'
localStrategy = require('passport-local').Strategy
facebookStrategy = require('passport-facebook').Strategy
odnoklassnikiStrategy = require('passport-odnoklassniki').Strategy
mongoose =... | true | async = require 'async'
Logger = require '../lib/logger'
socialConfig = require '../meta/socialConfig'
passport = require 'passport'
localStrategy = require('passport-local').Strategy
facebookStrategy = require('passport-facebook').Strategy
odnoklassnikiStrategy = require('passport-odnoklassniki').Strategy
mongoose =... |
[
{
"context": " # feature.properties.name =\"慶良間諸島\"\n\n #地種属性を付与\n ",
"end": 3636,
"score": 0.505670428276062,
"start": 3635,
"tag": "NAME",
"value": "慶"
}
] | np/gulpfile.coffee | KamataRyo/my_frontend_apps | 0 | gulp = require 'gulp'
connect = require 'gulp-connect'
path = require 'path'
compass = require 'gulp-compass'
coffee = require 'gulp-coffee'
plumber = require 'gulp-plumber'
notify = require 'gulp-notify'
base = './'
srcs =
watching : [
base + '*.html'
base + 'sass/*.scss'
b... | 129109 | gulp = require 'gulp'
connect = require 'gulp-connect'
path = require 'path'
compass = require 'gulp-compass'
coffee = require 'gulp-coffee'
plumber = require 'gulp-plumber'
notify = require 'gulp-notify'
base = './'
srcs =
watching : [
base + '*.html'
base + 'sass/*.scss'
b... | true | gulp = require 'gulp'
connect = require 'gulp-connect'
path = require 'path'
compass = require 'gulp-compass'
coffee = require 'gulp-coffee'
plumber = require 'gulp-plumber'
notify = require 'gulp-notify'
base = './'
srcs =
watching : [
base + '*.html'
base + 'sass/*.scss'
b... |
[
{
"context": "scription', 'keywords', 'datasheet']\n keys = ['D', 'K', 'F']\n empty = true\n for field in fields\n ",
"end": 2132,
"score": 0.997906506061554,
"start": 2121,
"tag": "KEY",
"value": "D', 'K', 'F"
}
] | src/kicad-generator.coffee | cuvoodoo/qeda | 78 | fs = require 'fs'
mkdirp = require 'mkdirp'
sprintf = require('sprintf-js').sprintf
log = require './qeda-log'
#
# Generator of library in KiCad format
#
class KicadGenerator
#
# Constructor
#
constructor: (@library) ->
@f = "%.#{@library.pattern.decimals}f"
#
# Generate symbol library and footprint ... | 121203 | fs = require 'fs'
mkdirp = require 'mkdirp'
sprintf = require('sprintf-js').sprintf
log = require './qeda-log'
#
# Generator of library in KiCad format
#
class KicadGenerator
#
# Constructor
#
constructor: (@library) ->
@f = "%.#{@library.pattern.decimals}f"
#
# Generate symbol library and footprint ... | true | fs = require 'fs'
mkdirp = require 'mkdirp'
sprintf = require('sprintf-js').sprintf
log = require './qeda-log'
#
# Generator of library in KiCad format
#
class KicadGenerator
#
# Constructor
#
constructor: (@library) ->
@f = "%.#{@library.pattern.decimals}f"
#
# Generate symbol library and footprint ... |
[
{
"context": "xports.greeting = greeting\n\nconsole.log greeting \"Marcus Hammarberg\"",
"end": 115,
"score": 0.9998927712440491,
"start": 98,
"tag": "NAME",
"value": "Marcus Hammarberg"
}
] | src/index.coffee | marcusoftnet/FirstCoffeeDemo | 1 | greeting = (name) ->
"Hello #{name}!"
module.exports.greeting = greeting
console.log greeting "Marcus Hammarberg" | 71636 | greeting = (name) ->
"Hello #{name}!"
module.exports.greeting = greeting
console.log greeting "<NAME>" | true | greeting = (name) ->
"Hello #{name}!"
module.exports.greeting = greeting
console.log greeting "PI:NAME:<NAME>END_PI" |
[
{
"context": "leric\n * @package Spells\n */`\n {name: \"titan strength\", spellPower: 8, cost: 900, class: \"Cleric\", leve",
"end": 1867,
"score": 0.8705074787139893,
"start": 1853,
"tag": "NAME",
"value": "titan strength"
}
] | src/character/spells/buffs/single/BoarStrength.coffee | sadbear-/IdleLands | 3 |
Spell = require "../../../base/Spell"
class BoarStrength extends Spell
name: "boar strength"
@element = BoarStrength::element = Spell::Element.buff
@tiers = BoarStrength::tiers = [
`/**
* This spell buffs the strength of an ally.
*
* @name boar strength
* @requirement {class} Cleric
... | 74690 |
Spell = require "../../../base/Spell"
class BoarStrength extends Spell
name: "boar strength"
@element = BoarStrength::element = Spell::Element.buff
@tiers = BoarStrength::tiers = [
`/**
* This spell buffs the strength of an ally.
*
* @name boar strength
* @requirement {class} Cleric
... | true |
Spell = require "../../../base/Spell"
class BoarStrength extends Spell
name: "boar strength"
@element = BoarStrength::element = Spell::Element.buff
@tiers = BoarStrength::tiers = [
`/**
* This spell buffs the strength of an ally.
*
* @name boar strength
* @requirement {class} Cleric
... |
[
{
"context": "est.deepEqual sieved.params(),\n [true, 'gmail.com', 'fake', 100, 200, 1000, 10, 20]\n\n test.do",
"end": 1559,
"score": 0.6136332154273987,
"start": 1559,
"tag": "EMAIL",
"value": ""
}
] | test/siv.coffee | snd/siv | 0 | mesa = require 'mesa'
moment = require 'moment'
qs = require 'qs'
siv = require '../src/siv'
userTable = mesa.table('user')
error = new siv.Error {error: 'i am an error'}
module.exports =
'readme example': (test) ->
querystring = [
'limit=10',
'offset=20',
'order=name',
'asc=true',
... | 120591 | mesa = require 'mesa'
moment = require 'moment'
qs = require 'qs'
siv = require '../src/siv'
userTable = mesa.table('user')
error = new siv.Error {error: 'i am an error'}
module.exports =
'readme example': (test) ->
querystring = [
'limit=10',
'offset=20',
'order=name',
'asc=true',
... | true | mesa = require 'mesa'
moment = require 'moment'
qs = require 'qs'
siv = require '../src/siv'
userTable = mesa.table('user')
error = new siv.Error {error: 'i am an error'}
module.exports =
'readme example': (test) ->
querystring = [
'limit=10',
'offset=20',
'order=name',
'asc=true',
... |
[
{
"context": " returns the latest Nashville news\n#\n# Author:\n# Stephen Yeargin <stephen.yeargin@gmail.com>\n\ncheerio = require 'c",
"end": 178,
"score": 0.9998997449874878,
"start": 163,
"tag": "NAME",
"value": "Stephen Yeargin"
},
{
"context": "t Nashville news\n#\n# Author:\n... | src/nashville-news.coffee | stephenyeargin/hubot-nashville-news | 1 | # Description
# Retrieves top local news from Nashville media outlet RSS feeds.
#
# Commands:
# hubot news - returns the latest Nashville news
#
# Author:
# Stephen Yeargin <stephen.yeargin@gmail.com>
cheerio = require 'cheerio'
_ = require 'underscore'
fs = require 'fs'
# Configure the RSS feeds
rssFeeds = req... | 19048 | # Description
# Retrieves top local news from Nashville media outlet RSS feeds.
#
# Commands:
# hubot news - returns the latest Nashville news
#
# Author:
# <NAME> <<EMAIL>>
cheerio = require 'cheerio'
_ = require 'underscore'
fs = require 'fs'
# Configure the RSS feeds
rssFeeds = require './feeds.json'
storyCo... | true | # Description
# Retrieves top local news from Nashville media outlet RSS feeds.
#
# Commands:
# hubot news - returns the latest Nashville news
#
# Author:
# PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
cheerio = require 'cheerio'
_ = require 'underscore'
fs = require 'fs'
# Configure the RSS feeds
rssFeeds = r... |
[
{
"context": "er.getErrorMessage(err))\n\t\telse\n\t\t\tuser.password = undefined\n\t\t\tuser.salt = undefined\n\t\t\treq.login user, (err)",
"end": 596,
"score": 0.9985404014587402,
"start": 587,
"tag": "PASSWORD",
"value": "undefined"
},
{
"context": "es.status(400).send info\n\t\t... | app/controllers/users/users.authentication.server.controller.coffee | amIwho/words | 0 | 'use strict'
_ = require('lodash')
errorHandler = require('../errors.server.controller')
mongoose = require('mongoose')
passport = require('passport')
User = mongoose.model('User')
jwt = require 'jsonwebtoken'
secret = require('../../../config/secret').localtokensecret
exports.signup = (req, res) ->
delete req.body.... | 14676 | 'use strict'
_ = require('lodash')
errorHandler = require('../errors.server.controller')
mongoose = require('mongoose')
passport = require('passport')
User = mongoose.model('User')
jwt = require 'jsonwebtoken'
secret = require('../../../config/secret').localtokensecret
exports.signup = (req, res) ->
delete req.body.... | true | 'use strict'
_ = require('lodash')
errorHandler = require('../errors.server.controller')
mongoose = require('mongoose')
passport = require('passport')
User = mongoose.model('User')
jwt = require 'jsonwebtoken'
secret = require('../../../config/secret').localtokensecret
exports.signup = (req, res) ->
delete req.body.... |
[
{
"context": " if !@isAnonymousSelected()\n @username = @usernameEditor.getModel().getText().trim();\n @refreshError(",
"end": 3710,
"score": 0.9824296236038208,
"start": 3696,
"tag": "USERNAME",
"value": "usernameEditor"
},
{
"context": "rver.\n populateFields: (config... | lib/dialogs/ftp-dialog.coffee | morassman/atom-commander | 43 | Client = require 'ftp'
FTPFileSystem = require '../fs/ftp/ftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class FTPDialog extends View
constructor: ->
super();
@username = "";
@client = null;
setParentDialog: (@parentDialog) ->
@content: ->
@div class: ... | 61832 | Client = require 'ftp'
FTPFileSystem = require '../fs/ftp/ftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class FTPDialog extends View
constructor: ->
super();
@username = "";
@client = null;
setParentDialog: (@parentDialog) ->
@content: ->
@div class: ... | true | Client = require 'ftp'
FTPFileSystem = require '../fs/ftp/ftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class FTPDialog extends View
constructor: ->
super();
@username = "";
@client = null;
setParentDialog: (@parentDialog) ->
@content: ->
@div class: ... |
[
{
"context": "###\n* @author Andrew D.Laptev <a.d.laptev@gmail.com>\n###\n\n###global describe, b",
"end": 29,
"score": 0.9998868107795715,
"start": 14,
"tag": "NAME",
"value": "Andrew D.Laptev"
},
{
"context": "###\n* @author Andrew D.Laptev <a.d.laptev@gmail.com>\n###\n\n###global ... | test/test.xecute.coffee | agsh/boobst | 16 | ###
* @author Andrew D.Laptev <a.d.laptev@gmail.com>
###
###global describe, beforeEach, afterEach, it###
assert = require 'assert'
boobst = require '../boobst'
BoobstSocket = boobst.BoobstSocket
describe 'xecute', () ->
this.timeout 15000
bs = new BoobstSocket(require './test.config')
#bs.on('debug', console... | 14371 | ###
* @author <NAME> <<EMAIL>>
###
###global describe, beforeEach, afterEach, it###
assert = require 'assert'
boobst = require '../boobst'
BoobstSocket = boobst.BoobstSocket
describe 'xecute', () ->
this.timeout 15000
bs = new BoobstSocket(require './test.config')
#bs.on('debug', console.log); # uncomment for... | true | ###
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
###global describe, beforeEach, afterEach, it###
assert = require 'assert'
boobst = require '../boobst'
BoobstSocket = boobst.BoobstSocket
describe 'xecute', () ->
this.timeout 15000
bs = new BoobstSocket(require './test.config')
#bs.on('debug', ... |
[
{
"context": "###\n\tCopyright 2013 David Pearson.\n\tBSD License.\n###\n\ngelim=require(\"./gelim\").geli",
"end": 33,
"score": 0.9998504519462585,
"start": 20,
"tag": "NAME",
"value": "David Pearson"
}
] | src/solve.coffee | dpearson/linalgebra | 1 | ###
Copyright 2013 David Pearson.
BSD License.
###
gelim=require("./gelim").gelim
# Performs back substitution on an augmented matrix to solve a system
# of linear equations
#
# a - The augmented matrix
#
# Example:
# backsub [[1, 0, 0, 2], [0, 1, 0, 3.0000000000000004],
# [0, 0, 1, -0.9999999999999999]]
# ... | 177758 | ###
Copyright 2013 <NAME>.
BSD License.
###
gelim=require("./gelim").gelim
# Performs back substitution on an augmented matrix to solve a system
# of linear equations
#
# a - The augmented matrix
#
# Example:
# backsub [[1, 0, 0, 2], [0, 1, 0, 3.0000000000000004],
# [0, 0, 1, -0.9999999999999999]]
# => [2, ... | true | ###
Copyright 2013 PI:NAME:<NAME>END_PI.
BSD License.
###
gelim=require("./gelim").gelim
# Performs back substitution on an augmented matrix to solve a system
# of linear equations
#
# a - The augmented matrix
#
# Example:
# backsub [[1, 0, 0, 2], [0, 1, 0, 3.0000000000000004],
# [0, 0, 1, -0.9999999999999999... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.