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": "ssing id', (next) ->\n Users.update [{email: 'missing@email.com'}], (err, users) ->\n # Todo, could be \"Rec",
"end": 603,
"score": 0.9998986124992371,
"start": 586,
"tag": "EMAIL",
"value": "missing@email.com"
},
{
"context": "message.should.eql 'Invalid re... | test/update.coffee | wdavidw/node-ron | 14 |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get 'users'
Users.identifier 'user_id'
Users.unique 'username'
Users.index 'email'
next()
beforeEach (next) ->
Users.clear next
aft... | 45699 |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get 'users'
Users.identifier 'user_id'
Users.unique 'username'
Users.index 'email'
next()
beforeEach (next) ->
Users.clear next
aft... | true |
should = require 'should'
try config = require '../conf/test' catch e
ron = require '../lib'
client = Users = null
before (next) ->
client = ron config
Users = client.get 'users'
Users.identifier 'user_id'
Users.unique 'username'
Users.index 'email'
next()
beforeEach (next) ->
Users.clear next
aft... |
[
{
"context": "# (c) 2013-2018 Flowhub UG\n# (c) 2011-2012 Henri Bergius, Nemein\n# NoFlo may be freely distributed und",
"end": 116,
"score": 0.9998568296432495,
"start": 103,
"tag": "NAME",
"value": "Henri Bergius"
},
{
"context": "2018 Flowhub UG\n# (c) 2011-2012 He... | src/lib/BaseNetwork.coffee | rrothenb/noflo | 0 | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2018 Flowhub UG
# (c) 2011-2012 Henri Bergius, Nemein
# NoFlo may be freely distributed under the MIT license
internalSocket = require "./InternalSocket"
graph = require "fbp-graph"
{EventEmitter} = require 'events'
platform = require './Platfor... | 142534 | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2018 Flowhub UG
# (c) 2011-2012 <NAME>, <NAME>
# NoFlo may be freely distributed under the MIT license
internalSocket = require "./InternalSocket"
graph = require "fbp-graph"
{EventEmitter} = require 'events'
platform = require './Platform'
comp... | true | # NoFlo - Flow-Based Programming for JavaScript
# (c) 2013-2018 Flowhub UG
# (c) 2011-2012 PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
# NoFlo may be freely distributed under the MIT license
internalSocket = require "./InternalSocket"
graph = require "fbp-graph"
{EventEmitter} = require 'events'
platform... |
[
{
"context": "mplate engine\n#\n# Nodize CMS\n# https://github.com/nodize/nodizecms\n#\n# Copyright 2012, Hypee\n# http://hype",
"end": 110,
"score": 0.9994112253189087,
"start": 104,
"tag": "USERNAME",
"value": "nodize"
},
{
"context": "://github.com/nodize/nodizecms\n#\n# Copyright... | modules/ionize/helpers/helper_include.coffee | nodize/nodizecms | 32 | # Include helper, used to include partials with ECO template engine
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, Hypee
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#*****
#* Include a .eco file
#*
#**
@helpers['... | 5402 | # Include helper, used to include partials with ECO template engine
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, <NAME>
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#*****
#* Include a .eco file
#*
#**
@helpers[... | true | # Include helper, used to include partials with ECO template engine
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Copyright 2012, PI:NAME:<NAME>END_PI
# http://hypee.com
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT
#
@include = ->
#*****
#* Include a .eco file
#*
#... |
[
{
"context": "Finds the vendor of a mac address.\n#\n# Author:\n# Patrick Connolly (@patcon)\n\nmodule.exports = (robot) ->\n robot.re",
"end": 206,
"score": 0.9998618364334106,
"start": 190,
"tag": "NAME",
"value": "Patrick Connolly"
},
{
"context": "of a mac address.\n#\n# Autho... | src/scripts/mac-find.coffee | snipe/hubot-vtr-scripts | 1 | # Description:
# Lookup mac address vendor.
#
# Dependencies:
# cheerio
#
# Configuration:
# None
#
# Commands:
# hubot mac-find - Finds the vendor of a mac address.
#
# Author:
# Patrick Connolly (@patcon)
module.exports = (robot) ->
robot.respond /mac-find (([0-9A-F]{2}[:-]){5}[0-9A-F]{2})$/i, (msg) ->
... | 19436 | # Description:
# Lookup mac address vendor.
#
# Dependencies:
# cheerio
#
# Configuration:
# None
#
# Commands:
# hubot mac-find - Finds the vendor of a mac address.
#
# Author:
# <NAME> (@patcon)
module.exports = (robot) ->
robot.respond /mac-find (([0-9A-F]{2}[:-]){5}[0-9A-F]{2})$/i, (msg) ->
mac_add... | true | # Description:
# Lookup mac address vendor.
#
# Dependencies:
# cheerio
#
# Configuration:
# None
#
# Commands:
# hubot mac-find - Finds the vendor of a mac address.
#
# Author:
# PI:NAME:<NAME>END_PI (@patcon)
module.exports = (robot) ->
robot.respond /mac-find (([0-9A-F]{2}[:-]){5}[0-9A-F]{2})$/i, (msg) ... |
[
{
"context": " avatar_url: resp.picture\n# token: gapi.auth.getToken()\n# signInRails()\n#\n# $scope.signIn",
"end": 4017,
"score": 0.7956282496452332,
"start": 3999,
"tag": "KEY",
"value": "gapi.auth.getToken"
}
] | app/assets/javascripts/angular/controllers/root_controller.coffee | Spokenvote/spokenvote | 21 | RootCtrl = ['$scope', '$rootScope', '$route', '$timeout', 'AlertService', '$location', '$modal', 'Auth', 'SessionService', 'SessionSettings', 'CurrentUserLoader', 'VotingService', ($scope, $rootScope, $route, $timeout, AlertService, $location, $modal, Auth, SessionService, SessionSettings, CurrentUserLoader, VotingServ... | 141620 | RootCtrl = ['$scope', '$rootScope', '$route', '$timeout', 'AlertService', '$location', '$modal', 'Auth', 'SessionService', 'SessionSettings', 'CurrentUserLoader', 'VotingService', ($scope, $rootScope, $route, $timeout, AlertService, $location, $modal, Auth, SessionService, SessionSettings, CurrentUserLoader, VotingServ... | true | RootCtrl = ['$scope', '$rootScope', '$route', '$timeout', 'AlertService', '$location', '$modal', 'Auth', 'SessionService', 'SessionSettings', 'CurrentUserLoader', 'VotingService', ($scope, $rootScope, $route, $timeout, AlertService, $location, $modal, Auth, SessionService, SessionSettings, CurrentUserLoader, VotingServ... |
[
{
"context": "tup_email_mailgun_domain', '#admin_user_password', '#admin_user_password_confirmation', '#admin_user_em",
"end": 527,
"score": 0.6345048546791077,
"start": 527,
"tag": "PASSWORD",
"value": ""
}
] | gulp/app/scripts/views/first_setups.coffee | reo7sp/thylogale | 1 | $ = require 'jquery'
importChoicesIds = ['#first_setup_import_choice_new', '#first_setup_import_choice_upload']
saveChoicesIds = ['#first_setup_save_choice_local', '#first_setup_save_choice_s3']
emailChoicesIds = ['#first_setup_email_choice_local', '#first_setup_email_choice_mailgun']
controlsIds = ['#first_setup_imp... | 189947 | $ = require 'jquery'
importChoicesIds = ['#first_setup_import_choice_new', '#first_setup_import_choice_upload']
saveChoicesIds = ['#first_setup_save_choice_local', '#first_setup_save_choice_s3']
emailChoicesIds = ['#first_setup_email_choice_local', '#first_setup_email_choice_mailgun']
controlsIds = ['#first_setup_imp... | true | $ = require 'jquery'
importChoicesIds = ['#first_setup_import_choice_new', '#first_setup_import_choice_upload']
saveChoicesIds = ['#first_setup_save_choice_local', '#first_setup_save_choice_s3']
emailChoicesIds = ['#first_setup_email_choice_local', '#first_setup_email_choice_mailgun']
controlsIds = ['#first_setup_imp... |
[
{
"context": "# Copyright (c) 2015 naymspace software (Dennis Nissen)\n#\n# Licensed under the Apache License, Version 2",
"end": 54,
"score": 0.9998612403869629,
"start": 41,
"tag": "NAME",
"value": "Dennis Nissen"
}
] | src/app/components/sessions/ModelTranslationService.coffee | ogumi/client | 0 | # Copyright (c) 2015 naymspace software (Dennis Nissen)
#
# 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 l... | 110331 | # Copyright (c) 2015 naymspace software (<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 a... | true | # Copyright (c) 2015 naymspace software (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 required by appli... |
[
{
"context": "\n for lib in script_libraries\n key = getCacheKey(lib)\n if key\n url = key\n ",
"end": 802,
"score": 0.7471975684165955,
"start": 794,
"tag": "KEY",
"value": "CacheKey"
},
{
"context": " = ''\n for lib in style_libraries\n k... | src/renderer.coffee | marquee/proto | 7 | CoffeeScript = require 'coffee-script'
cjsxTransform = require 'coffee-react-transform'
pug = require 'pug'
sass = require 'node-sass'
VERSION = require('../package.json').version
{ getCacheKey } = require './cache'
compileScriptFile = (script_source) ->
return CoffeeScript.... | 113745 | CoffeeScript = require 'coffee-script'
cjsxTransform = require 'coffee-react-transform'
pug = require 'pug'
sass = require 'node-sass'
VERSION = require('../package.json').version
{ getCacheKey } = require './cache'
compileScriptFile = (script_source) ->
return CoffeeScript.... | true | CoffeeScript = require 'coffee-script'
cjsxTransform = require 'coffee-react-transform'
pug = require 'pug'
sass = require 'node-sass'
VERSION = require('../package.json').version
{ getCacheKey } = require './cache'
compileScriptFile = (script_source) ->
return CoffeeScript.... |
[
{
"context": " db: '_mm',\n password: 'very secret password'\n }).should.throw('`password` provided",
"end": 5318,
"score": 0.9991136193275452,
"start": 5298,
"tag": "PASSWORD",
"value": "very secret password"
}
] | test/utils.coffee | clark-zhao-hs/mongodb-migrations | 0 | path = require 'path'
{ _buildOptions, normalizeConfig, loadSpecificMigrationsFromDir } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
... | 32591 | path = require 'path'
{ _buildOptions, normalizeConfig, loadSpecificMigrationsFromDir } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
... | true | path = require 'path'
{ _buildOptions, normalizeConfig, loadSpecificMigrationsFromDir } = require '../src/utils'
describe 'Utils', ->
describe '_buildOptions', ->
it 'should allow custom options and set the default `poolSize` of 5', (done) ->
config =
options:
... |
[
{
"context": "ableflip phrase - Flips the phrase\n#\n# Author:\n# joe ennever\n\nmodule.exports = (robot) ->\n robot.respond /tab",
"end": 174,
"score": 0.9986205101013184,
"start": 163,
"tag": "NAME",
"value": "joe ennever"
}
] | src/tableflip.coffee | JoeEnnever/hubot-tableflip | 1 | # Description:
# Flip a table
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot tableflip phrase - Flips the phrase
#
# Author:
# joe ennever
module.exports = (robot) ->
robot.respond /tableflip(.*)?/, (msg) ->
console.log("got here #{msg}")
flipped = null
if msg.match[1]... | 162424 | # Description:
# Flip a table
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot tableflip phrase - Flips the phrase
#
# Author:
# <NAME>
module.exports = (robot) ->
robot.respond /tableflip(.*)?/, (msg) ->
console.log("got here #{msg}")
flipped = null
if msg.match[1]
... | true | # Description:
# Flip a table
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot tableflip phrase - Flips the phrase
#
# Author:
# PI:NAME:<NAME>END_PI
module.exports = (robot) ->
robot.respond /tableflip(.*)?/, (msg) ->
console.log("got here #{msg}")
flipped = null
if msg... |
[
{
"context": "le')\n\n# 统计用户活跃度。每隔一个小时发一次数据\nSTORAGE_ACTIVE_KEY = 'jianliaoAlive'\nlastSendTime =\n Store.get(STORAGE_ACTIVE_KEY) o",
"end": 383,
"score": 0.9964669942855835,
"start": 370,
"tag": "KEY",
"value": "jianliaoAlive"
}
] | talk-web/client/util/overload.coffee | ikingye/talk-os | 3,084 | Store = require 'store2'
analytics = require '../util/analytics'
_open = window.open
window.open = (url) ->
if window.MacGap?.Window
window.MacGap.Window.open url: url
else
_open.apply window, arguments
if __DEV__
installDevTools = require('immutable-devtools')
installDevTools.default require('immutab... | 101732 | Store = require 'store2'
analytics = require '../util/analytics'
_open = window.open
window.open = (url) ->
if window.MacGap?.Window
window.MacGap.Window.open url: url
else
_open.apply window, arguments
if __DEV__
installDevTools = require('immutable-devtools')
installDevTools.default require('immutab... | true | Store = require 'store2'
analytics = require '../util/analytics'
_open = window.open
window.open = (url) ->
if window.MacGap?.Window
window.MacGap.Window.open url: url
else
_open.apply window, arguments
if __DEV__
installDevTools = require('immutable-devtools')
installDevTools.default require('immutab... |
[
{
"context": "ate.set { parentEmail }, { silent: true }\n if /team@codecombat.com/i.test(parentEmail)\n @state.set { dontUseOur",
"end": 856,
"score": 0.9997865557670593,
"start": 837,
"tag": "EMAIL",
"value": "team@codecombat.com"
}
] | app/views/core/CreateAccountModal/CoppaDenyView.coffee | cihatislamdede/codecombat | 4,858 | require('app/styles/modal/create-account-modal/coppa-deny-view.sass')
CocoView = require 'views/core/CocoView'
State = require 'models/State'
template = require 'templates/core/create-account-modal/coppa-deny-view'
forms = require 'core/forms'
contact = require 'core/contact'
module.exports = class CoppaDenyView exten... | 152425 | require('app/styles/modal/create-account-modal/coppa-deny-view.sass')
CocoView = require 'views/core/CocoView'
State = require 'models/State'
template = require 'templates/core/create-account-modal/coppa-deny-view'
forms = require 'core/forms'
contact = require 'core/contact'
module.exports = class CoppaDenyView exten... | true | require('app/styles/modal/create-account-modal/coppa-deny-view.sass')
CocoView = require 'views/core/CocoView'
State = require 'models/State'
template = require 'templates/core/create-account-modal/coppa-deny-view'
forms = require 'core/forms'
contact = require 'core/contact'
module.exports = class CoppaDenyView exten... |
[
{
"context": "of my facebook friends\", false],\n [\"made fun of Justin Beiber\", false],\n [\"had surgery\", false],\n [\"sleep",
"end": 1912,
"score": 0.9998607039451599,
"start": 1899,
"tag": "NAME",
"value": "Justin Beiber"
},
{
"context": "as talking about me\", false],... | util.common.coffee | StephenSwat/Happening-Never-Have-I-Never | 3 | Plugin = require 'plugin'
{tr} = require 'i18n'
exports.questions = questions = -> [
["stolen alcohol from my parents", true],
["cheated in a competition", false],
["eaten cake", false],
["finished an entire jawbreaker", false],
["shaved my balls", false],
["smoked weed", false],
["killed a... | 207314 | Plugin = require 'plugin'
{tr} = require 'i18n'
exports.questions = questions = -> [
["stolen alcohol from my parents", true],
["cheated in a competition", false],
["eaten cake", false],
["finished an entire jawbreaker", false],
["shaved my balls", false],
["smoked weed", false],
["killed a... | true | Plugin = require 'plugin'
{tr} = require 'i18n'
exports.questions = questions = -> [
["stolen alcohol from my parents", true],
["cheated in a competition", false],
["eaten cake", false],
["finished an entire jawbreaker", false],
["shaved my balls", false],
["smoked weed", false],
["killed a... |
[
{
"context": "senter-button .input-button-toggle\")\n #JOHNSON is a seeded session\n .setValue(\".prese",
"end": 1261,
"score": 0.9962536692619324,
"start": 1254,
"tag": "NAME",
"value": "JOHNSON"
},
{
"context": "cipate-button .input-button-toggle\")\n ... | Votiee/VotieeFrontend/tests/src/tests/MenuPageTests.coffee | Rotvig/Votiee | 0 | module.exports =
tags: ['MenuPage']
'Create survey (anonymous)': (client) ->
client
.setup()
.click(".editor-button")
.click(".create-button")
.waitForStateReady()
.assert.elementPresent(".survey-page")
'Load survey (anonymous)'... | 180034 | module.exports =
tags: ['MenuPage']
'Create survey (anonymous)': (client) ->
client
.setup()
.click(".editor-button")
.click(".create-button")
.waitForStateReady()
.assert.elementPresent(".survey-page")
'Load survey (anonymous)'... | true | module.exports =
tags: ['MenuPage']
'Create survey (anonymous)': (client) ->
client
.setup()
.click(".editor-button")
.click(".create-button")
.waitForStateReady()
.assert.elementPresent(".survey-page")
'Load survey (anonymous)'... |
[
{
"context": "able on <a onClick={=> @_open(\"https://github.com/nylas/n1\")}>GitHub</a></p>\n {@_renderNavBubble(1)}",
"end": 2640,
"score": 0.9996247887611389,
"start": 2635,
"tag": "USERNAME",
"value": "nylas"
},
{
"context": "style={fontSize: 17, opacity: 0.7, marginTop: 18}... | app/internal_packages/onboarding/lib/welcome-page.cjsx | immershy/nodemail | 0 | React = require 'react'
{shell} = require 'electron'
classnames = require 'classnames'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
PageRouterStore = require './page-router-store'
OnboardingActions = require './onboarding-actions'
class WelcomePage extends React.Component
@displayN... | 212677 | React = require 'react'
{shell} = require 'electron'
classnames = require 'classnames'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
PageRouterStore = require './page-router-store'
OnboardingActions = require './onboarding-actions'
class WelcomePage extends React.Component
@displayN... | true | React = require 'react'
{shell} = require 'electron'
classnames = require 'classnames'
{Actions} = require 'nylas-exports'
{RetinaImg} = require 'nylas-component-kit'
PageRouterStore = require './page-router-store'
OnboardingActions = require './onboarding-actions'
class WelcomePage extends React.Component
@displayN... |
[
{
"context": "\n baseUrl: 'registry.star-made.org'\n clientId: 'f23be50e1683f7b490d10e230a0bbaef01eee8ac9d43e7eb0ed240e5f669df52'\n redirectUri: 'starmade://auth/callback'\n scop",
"end": 186,
"score": 0.9354278445243835,
"start": 122,
"tag": "KEY",
"value": "f23be50e1683f7b490d10e230a0b... | src/services/api.coffee | Schine/StarMade-Launcher | 7 | 'use strict'
app = angular.module 'launcher'
app.constant 'apiConfig',
baseUrl: 'registry.star-made.org'
clientId: 'f23be50e1683f7b490d10e230a0bbaef01eee8ac9d43e7eb0ed240e5f669df52'
redirectUri: 'starmade://auth/callback'
scopes: 'public+read_citizen_info+write'
app.service 'api', ($http, apiConfig) ->
@ge... | 192687 | 'use strict'
app = angular.module 'launcher'
app.constant 'apiConfig',
baseUrl: 'registry.star-made.org'
clientId: '<KEY>'
redirectUri: 'starmade://auth/callback'
scopes: 'public+read_citizen_info+write'
app.service 'api', ($http, apiConfig) ->
@getBaseUrl = ->
apiConfig.baseUrl
@getAuthorizeUrl = -... | true | 'use strict'
app = angular.module 'launcher'
app.constant 'apiConfig',
baseUrl: 'registry.star-made.org'
clientId: 'PI:KEY:<KEY>END_PI'
redirectUri: 'starmade://auth/callback'
scopes: 'public+read_citizen_info+write'
app.service 'api', ($http, apiConfig) ->
@getBaseUrl = ->
apiConfig.baseUrl
@getAut... |
[
{
"context": "overview Tests for no-new-wrappers rule.\n# @author Ilya Volodin\n###\n\n'use strict'\n\n#-----------------------------",
"end": 75,
"score": 0.9997997283935547,
"start": 63,
"tag": "NAME",
"value": "Ilya Volodin"
}
] | src/tests/rules/no-new-wrappers.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for no-new-wrappers rule.
# @author Ilya Volodin
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-new-wrappers'... | 93460 | ###*
# @fileoverview Tests for no-new-wrappers rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-new-wrappers'
{Rule... | true | ###*
# @fileoverview Tests for no-new-wrappers rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-new-w... |
[
{
"context": "# Alter `test` with `a_key`\n test.a_key = 'a value'\n test = {}\n plugins.call_sync\n ",
"end": 1522,
"score": 0.9682637453079224,
"start": 1515,
"tag": "KEY",
"value": "a value"
},
{
"context": " handler: (->)\n test.a_key.should.eql ... | test/call_sync.coffee | adaltas/node-plug-and-play | 32 |
plugandplay = require '../src'
describe 'plugandplay.hook', ->
describe 'api', ->
it 'expect 1 argument', ->
(->
plugandplay()
.call_sync {}, {}
).should.throw code: 'PLUGINS_INVALID_ARGUMENTS_NUMBER'
it 'argument must a an object', ->
(->
plugandplay()
... | 194754 |
plugandplay = require '../src'
describe 'plugandplay.hook', ->
describe 'api', ->
it 'expect 1 argument', ->
(->
plugandplay()
.call_sync {}, {}
).should.throw code: 'PLUGINS_INVALID_ARGUMENTS_NUMBER'
it 'argument must a an object', ->
(->
plugandplay()
... | true |
plugandplay = require '../src'
describe 'plugandplay.hook', ->
describe 'api', ->
it 'expect 1 argument', ->
(->
plugandplay()
.call_sync {}, {}
).should.throw code: 'PLUGINS_INVALID_ARGUMENTS_NUMBER'
it 'argument must a an object', ->
(->
plugandplay()
... |
[
{
"context": "s}\n\ntrans_service_token = [\n { 'service_token': '12sdtsdr23454sdfsdf', 'app_id': 'foo', 'usage': { '",
"end": 272,
"score": 0.6207054853439331,
"start": 271,
"tag": "KEY",
"value": "1"
},
{
"context": "}\n\ntrans_service_token = [\n { 'service_token': '12sdtsdr2345... | test/client_test.coffee | 3scale/3scale_ws_api_for_nodejs | 8 | assert = require 'assert'
nock = require 'nock'
trans = [
{ 'app_id': 'foo', 'usage': { 'hits': 1 } },
{ 'app_id': 'foo', 'usage': { 'hits': 1000 } }
]
report_test = {service_id: '1234567890987', transactions: trans}
trans_service_token = [
{ 'service_token': '12sdtsdr23454sdfsdf', 'app_id': 'foo', 'usage': {... | 5983 | assert = require 'assert'
nock = require 'nock'
trans = [
{ 'app_id': 'foo', 'usage': { 'hits': 1 } },
{ 'app_id': 'foo', 'usage': { 'hits': 1000 } }
]
report_test = {service_id: '1234567890987', transactions: trans}
trans_service_token = [
{ 'service_token': '<KEY> <PASSWORD>', 'app_id': 'foo', 'usage': { 'h... | true | assert = require 'assert'
nock = require 'nock'
trans = [
{ 'app_id': 'foo', 'usage': { 'hits': 1 } },
{ 'app_id': 'foo', 'usage': { 'hits': 1000 } }
]
report_test = {service_id: '1234567890987', transactions: trans}
trans_service_token = [
{ 'service_token': 'PI:KEY:<KEY>END_PI PI:PASSWORD:<PASSWORD>END_PI',... |
[
{
"context": "de: (d) ->\n node = {}\n n = {}\n n.name = 'Test'\n n.svg = d.data.svg\n if d.data.type == 'im",
"end": 440,
"score": 0.8005910515785217,
"start": 436,
"tag": "NAME",
"value": "Test"
},
{
"context": "data 'node', node\n $('#newNetworkCIDR').val('10.0... | app/assets/javascripts/visualisation/D3/graphNodes.js.coffee | CiscoSystems/curvature | 16 | # The nodes objects
#
class D3.GraphNodes
constructor: (@graph) ->
@nodes = []
@currentlySelectedNode = null
# Setup new node to be dragged onto graph
# Will create a new instance of the node type and add it to
# openstack data object
#
# @param d [Object] The data object for the node to be setup
... | 2964 | # The nodes objects
#
class D3.GraphNodes
constructor: (@graph) ->
@nodes = []
@currentlySelectedNode = null
# Setup new node to be dragged onto graph
# Will create a new instance of the node type and add it to
# openstack data object
#
# @param d [Object] The data object for the node to be setup
... | true | # The nodes objects
#
class D3.GraphNodes
constructor: (@graph) ->
@nodes = []
@currentlySelectedNode = null
# Setup new node to be dragged onto graph
# Will create a new instance of the node type and add it to
# openstack data object
#
# @param d [Object] The data object for the node to be setup
... |
[
{
"context": "d\\' => \\'required\\'}${5:, \\'placeholder\\' => \\'eg: foo@bar.com\\'}]) !!}\n <small class=\"text-danger\">{",
"end": 4399,
"score": 0.9126560091972351,
"start": 4388,
"tag": "EMAIL",
"value": "foo@bar.com"
},
{
"context": "d\\' => \\'required\\'}${7:, \\'... | snippets/laravel_collective_forms.cson | kikoseijo/atom-bootstrap-snippets | 0 | '.text.html.php.blade':
'Form':
prefix: 'form:form'
leftLabelHTML: '<span style="color:#1B81B6">Ⓢ</span>'
rightLabelHTML: '<span style="color:#f4645f">Boostrap + Form::</span><span style="color:#07a">open</span> + buttons + close'
body: """
{!! Form::open([\'method\' => \'${1:POST}\', \'${2:ro... | 27385 | '.text.html.php.blade':
'Form':
prefix: 'form:form'
leftLabelHTML: '<span style="color:#1B81B6">Ⓢ</span>'
rightLabelHTML: '<span style="color:#f4645f">Boostrap + Form::</span><span style="color:#07a">open</span> + buttons + close'
body: """
{!! Form::open([\'method\' => \'${1:POST}\', \'${2:ro... | true | '.text.html.php.blade':
'Form':
prefix: 'form:form'
leftLabelHTML: '<span style="color:#1B81B6">Ⓢ</span>'
rightLabelHTML: '<span style="color:#f4645f">Boostrap + Form::</span><span style="color:#07a">open</span> + buttons + close'
body: """
{!! Form::open([\'method\' => \'${1:POST}\', \'${2:ro... |
[
{
"context": " hubot group emoticon me <query>\n#\n# Author:\n# Chris Streeter (streeter)\n#\n\nauth_token = process.env.HUBOT_HIPC",
"end": 538,
"score": 0.9998744130134583,
"start": 524,
"tag": "NAME",
"value": "Chris Streeter"
},
{
"context": "oticon me <query>\n#\n# Author:\n... | src/emoticons.coffee | streeter/hubot-hipchat-emoticons | 1 | # Description:
# Return all the emoticons accessible on your Hipchat account.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_AUTH_TOKEN
#
# Get your Hipchat token at https://hipchat.com/account/api
#
# Commands:
# hubot emoticons?
# hubot raw emoticons?
# hubot group emoticons?
# hubot what... | 222408 | # Description:
# Return all the emoticons accessible on your Hipchat account.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_AUTH_TOKEN
#
# Get your Hipchat token at https://hipchat.com/account/api
#
# Commands:
# hubot emoticons?
# hubot raw emoticons?
# hubot group emoticons?
# hubot what... | true | # Description:
# Return all the emoticons accessible on your Hipchat account.
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_HIPCHAT_AUTH_TOKEN
#
# Get your Hipchat token at https://hipchat.com/account/api
#
# Commands:
# hubot emoticons?
# hubot raw emoticons?
# hubot group emoticons?
# hubot what... |
[
{
"context": "/myrepo` repository at:\n# https://github.com/myuser/myrepo/settings/hooks/new\n# Set the webhook ",
"end": 314,
"score": 0.999437689781189,
"start": 308,
"tag": "USERNAME",
"value": "myuser"
},
{
"context": " like: `Forwarding https://7a008da9.ngrok.com -> 1... | src/hubot-github-webhook-listener.coffee | ynab/hubot-github-webhook-listener | 15 | # Description:
# Listens for github webhooks and emits an event for other Hubot scripts to respond to.
# Inspired _heavily_ (with some verbatim copying) by hubot-github-repo-event-notifier
#
# Configuration:
#
# 1. Create a new webhook for your `myuser/myrepo` repository at:
# https://github.com/myuser/myrep... | 35202 | # Description:
# Listens for github webhooks and emits an event for other Hubot scripts to respond to.
# Inspired _heavily_ (with some verbatim copying) by hubot-github-repo-event-notifier
#
# Configuration:
#
# 1. Create a new webhook for your `myuser/myrepo` repository at:
# https://github.com/myuser/myrep... | true | # Description:
# Listens for github webhooks and emits an event for other Hubot scripts to respond to.
# Inspired _heavily_ (with some verbatim copying) by hubot-github-repo-event-notifier
#
# Configuration:
#
# 1. Create a new webhook for your `myuser/myrepo` repository at:
# https://github.com/myuser/myrep... |
[
{
"context": " backbone-orm.js 0.7.14\n Copyright (c) 2013-2016 Vidigami\n License: MIT (http://www.opensource.org/license",
"end": 63,
"score": 0.9998777508735657,
"start": 55,
"tag": "NAME",
"value": "Vidigami"
},
{
"context": "ses/mit-license.php)\n Source: https://github.com/... | src/index.coffee | dk-dev/backbone-orm | 54 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 Vidigami
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Backbone = require 'backbone'
module.exports = BackboneORM ... | 87542 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 <NAME>
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Backbone = require 'backbone'
module.exports = BackboneORM = ... | true | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 PI:NAME:<NAME>END_PI
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Backbone = require 'backbone'
module.exports = ... |
[
{
"context": "cs/#info.info\n\nFramer.Info =\n\ttitle: \"\"\n\tauthor: \"Tony\"\n\ttwitter: \"\"\n\tdescription: \"\"\n\n\n# Vars\nnumPages ",
"end": 146,
"score": 0.999147891998291,
"start": 142,
"tag": "NAME",
"value": "Tony"
}
] | 68pages.framer/app.coffee | gremjua-forks/100daysofframer | 26 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "Tony"
twitter: ""
description: ""
# Vars
numPages = 3
numStyle = 1
oldTitleX = 0
dir = "nil"
small = 0.7
medium = 0.73
Framer.Defaults.Animation =
curve: "spring(220,20,0)... | 216874 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "<NAME>"
twitter: ""
description: ""
# Vars
numPages = 3
numStyle = 1
oldTitleX = 0
dir = "nil"
small = 0.7
medium = 0.73
Framer.Defaults.Animation =
curve: "spring(220,20,... | true | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "PI:NAME:<NAME>END_PI"
twitter: ""
description: ""
# Vars
numPages = 3
numStyle = 1
oldTitleX = 0
dir = "nil"
small = 0.7
medium = 0.73
Framer.Defaults.Animation =
curve: "... |
[
{
"context": "tems in the collection', ->\n item1 = {name: 'CJ', age: 30}\n item2 = {name: 'Anders', age: 37",
"end": 3413,
"score": 0.9997891783714294,
"start": 3411,
"tag": "NAME",
"value": "CJ"
},
{
"context": "em1 = {name: 'CJ', age: 30}\n item2 = {name: 'Anders', ... | test/collection.spec.coffee | jnicklas/serenade.js | 1 | require './spec_helper'
Serenade = require('../lib/serenade')
{Collection} = Serenade
describe 'Serenade.Collection', ->
beforeEach ->
@collection = new Serenade.Collection(['a', 'b', 'c'])
it "is compatible with CoffeeScript's array comprehensions", ->
letters = (letter.toUpperCase() for letter in @colle... | 213797 | require './spec_helper'
Serenade = require('../lib/serenade')
{Collection} = Serenade
describe 'Serenade.Collection', ->
beforeEach ->
@collection = new Serenade.Collection(['a', 'b', 'c'])
it "is compatible with CoffeeScript's array comprehensions", ->
letters = (letter.toUpperCase() for letter in @colle... | true | require './spec_helper'
Serenade = require('../lib/serenade')
{Collection} = Serenade
describe 'Serenade.Collection', ->
beforeEach ->
@collection = new Serenade.Collection(['a', 'b', 'c'])
it "is compatible with CoffeeScript's array comprehensions", ->
letters = (letter.toUpperCase() for letter in @colle... |
[
{
"context": "\n load: \"on_load\"\n @krc_keys: [\n 0x40\n 0x47\n 0x61\n 0x77\n 0x",
"end": 162,
"score": 0.9779318571090698,
"start": 158,
"tag": "KEY",
"value": "0x40"
},
{
"context": ": \"on_load\"\n @krc_keys: [\n 0x40\n ... | coffee/plugins/TSMusic.LyricPlugin.coffee | lixiaoyan/TSMusic | 0 | class TSMusic.LyricPlugin extends TSMusic.Plugin
@type: "lyric"
@events:
update: "on_update"
load: "on_load"
@krc_keys: [
0x40
0x47
0x61
0x77
0x5e
0x32
0x74
0x47
0x51
0x36
0x31
0x2d
0xce
... | 35937 | class TSMusic.LyricPlugin extends TSMusic.Plugin
@type: "lyric"
@events:
update: "on_update"
load: "on_load"
@krc_keys: [
<KEY>
<KEY>
<KEY>
0x<KEY>
0x<KEY>
0<KEY>
0x<KEY>
0x<KEY>
0x51
0x36
0x31
0x... | true | class TSMusic.LyricPlugin extends TSMusic.Plugin
@type: "lyric"
@events:
update: "on_update"
load: "on_load"
@krc_keys: [
PI:KEY:<KEY>END_PI
PI:KEY:<KEY>END_PI
PI:KEY:<KEY>END_PI
0xPI:KEY:<KEY>END_PI
0xPI:KEY:<KEY>END_PI
0PI:KEY:<KEY>END_PI
... |
[
{
"context": "n about unnecessary usage of fat arrows.\n# @author Julian Rosse\n###\n'use strict'\n\n#------------------------------",
"end": 104,
"score": 0.9998432397842407,
"start": 92,
"tag": "NAME",
"value": "Julian Rosse"
}
] | src/rules/no-unnecessary-fat-arrow.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview This rule should warn about unnecessary usage of fat arrows.
# @author Julian Rosse
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
{isFatArrowFunction} ... | 222981 | ###*
# @fileoverview This rule should warn about unnecessary usage of fat arrows.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
{isFatArrowFunction} = requ... | true | ###*
# @fileoverview This rule should warn about unnecessary usage of fat arrows.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
{isFatArrowFu... |
[
{
"context": "lt = {\n code: 123,\n token: \"token\",\n from: \"github\"\n }\n\n m",
"end": 4125,
"score": 0.503941535949707,
"start": 4120,
"tag": "KEY",
"value": "token"
},
{
"context": "cation.search).have.been.calledWith({token: \"to... | app/modules/projects/create/import/import-project.controller.spec.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 202500 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": "rmat method unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\n{Test, assert} = require('lovely')\n\ndescribe \"D",
"end": 79,
"score": 0.9998852014541626,
"start": 62,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/date/test/format_test.coffee | lovely-io/lovely.io-stl | 2 | #
# Date#format method unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
{Test, assert} = require('lovely')
describe "Date formatting", ->
Date = date = null
before Test.load (build)->
Date = build
date = new Date()
date.setFullYear(2011)
date.setMonth(7)
date.setDate(17)
date.set... | 189636 | #
# Date#format method unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
{Test, assert} = require('lovely')
describe "Date formatting", ->
Date = date = null
before Test.load (build)->
Date = build
date = new Date()
date.setFullYear(2011)
date.setMonth(7)
date.setDate(17)
date.setHours(18)
... | true | #
# Date#format method unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
{Test, assert} = require('lovely')
describe "Date formatting", ->
Date = date = null
before Test.load (build)->
Date = build
date = new Date()
date.setFullYear(2011)
date.setMonth(7)
date.setDate(17)
date.... |
[
{
"context": "ced under the MIT Licence<br/>\n @2012-2013 by Mark 'kaosat-dev' Moissette\n \"\"\", [\n lab",
"end": 6664,
"score": 0.9984686970710754,
"start": 6660,
"tag": "NAME",
"value": "Mark"
},
{
"context": "er the MIT Licence<br/>\n @2012-2013 by Mark '... | src/app/core/menuView.coffee | tstone/CoffeeSCad | 1 | define (require)->
$ = require 'jquery'
_ = require 'underscore'
marionette = require 'marionette'
modelBinder = require 'modelbinder'
require 'bootstrap'
require 'bootbox'
require 'notify'
vent = require 'core/messaging/appVent'
mainMenuMasterTemplate = require "text!core/mainMenu.tmpl"
ma... | 132473 | define (require)->
$ = require 'jquery'
_ = require 'underscore'
marionette = require 'marionette'
modelBinder = require 'modelbinder'
require 'bootstrap'
require 'bootbox'
require 'notify'
vent = require 'core/messaging/appVent'
mainMenuMasterTemplate = require "text!core/mainMenu.tmpl"
ma... | true | define (require)->
$ = require 'jquery'
_ = require 'underscore'
marionette = require 'marionette'
modelBinder = require 'modelbinder'
require 'bootstrap'
require 'bootbox'
require 'notify'
vent = require 'core/messaging/appVent'
mainMenuMasterTemplate = require "text!core/mainMenu.tmpl"
ma... |
[
{
"context": "byone = new Luca.Collection([{id:1},{id:2}],name:\"baby\")\n\n manager.add(\"baby\", babyone)\n\n expect( mana",
"end": 1277,
"score": 0.9928197860717773,
"start": 1273,
"tag": "NAME",
"value": "baby"
},
{
"context": "bytwo = new Luca.Collection([{id:3},{id:4}],name:\... | spec/javascripts/managers/collection_manager_spec.coffee | datapimp/luca | 4 | describe "The Collection Manager", ->
App = collections: {}
App.collections.SampleCollection = Luca.Collection.extend
url: "/models"
beforeEach ()->
Luca.CollectionManager.destroyAll()
@manager = new Luca.CollectionManager(name:"manager",collectionNamespace: App.collections)
it "should make the l... | 110367 | describe "The Collection Manager", ->
App = collections: {}
App.collections.SampleCollection = Luca.Collection.extend
url: "/models"
beforeEach ()->
Luca.CollectionManager.destroyAll()
@manager = new Luca.CollectionManager(name:"manager",collectionNamespace: App.collections)
it "should make the l... | true | describe "The Collection Manager", ->
App = collections: {}
App.collections.SampleCollection = Luca.Collection.extend
url: "/models"
beforeEach ()->
Luca.CollectionManager.destroyAll()
@manager = new Luca.CollectionManager(name:"manager",collectionNamespace: App.collections)
it "should make the l... |
[
{
"context": " for source in @event_sources\n token = Math.random()\n @pending_event_sources.push toke",
"end": 11993,
"score": 0.6546676158905029,
"start": 11989,
"tag": "KEY",
"value": "Math"
},
{
"context": " for source in @event_sources\n token = Math.ra... | src/mns_calendar.coffee | MNSLab/mns-calendar | 2 | ##
# EventSource parsing events from remote JSON file
# options:
# calendar: overide calendar_id of all events
# paremeterless: if data source support quering for date range and calendar_id
# url: url of remote data source
# mapping: function applied to every event before return them to calendar
class JSONEvent... | 20191 | ##
# EventSource parsing events from remote JSON file
# options:
# calendar: overide calendar_id of all events
# paremeterless: if data source support quering for date range and calendar_id
# url: url of remote data source
# mapping: function applied to every event before return them to calendar
class JSONEvent... | true | ##
# EventSource parsing events from remote JSON file
# options:
# calendar: overide calendar_id of all events
# paremeterless: if data source support quering for date range and calendar_id
# url: url of remote data source
# mapping: function applied to every event before return them to calendar
class JSONEvent... |
[
{
"context": "eleased under MIT licence.\n#\t\n#\tCopyright (c) 2012 Ivan Kuckir\n#\n#\tPermission is hereby granted, free of charge,",
"end": 113,
"score": 0.9998825192451477,
"start": 102,
"tag": "NAME",
"value": "Ivan Kuckir"
},
{
"context": "azing lib! \n#\t\n#\tslightly modified... | src/Coffixi/utils/PolyK.coffee | namuol/Coffixi | 1 | #
# PolyK library
# url: http://polyk.ivank.net
# Released under MIT licence.
#
# Copyright (c) 2012 Ivan Kuckir
#
# 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, incl... | 161390 | #
# PolyK library
# url: http://polyk.ivank.net
# Released under MIT licence.
#
# Copyright (c) 2012 <NAME>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including... | true | #
# PolyK library
# url: http://polyk.ivank.net
# Released under MIT licence.
#
# Copyright (c) 2012 PI:NAME:<NAME>END_PI
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restrict... |
[
{
"context": "ons.add'\n qs: {\n 'token': process.env.HUBOT_SLACK_TOKEN\n 'name': name\n 'chann",
"end": 484,
"score": 0.6371790766716003,
"start": 481,
"tag": "KEY",
"value": "HUB"
},
{
"context": "en': process.env.HUBOT_SLACK_TOKEN\n 'name': name\n ... | scripts/vote.coffee | ytmt365/gochiusa-bot | 0 | # Description:
# 0-10までの選択肢,曜日の絵文字をadd-reaction表示してくれるよ
#
# Commands:
# (vote / 投票) num1-num2 - num1からnum2までadd reaction
# (vote / 投票) (平日 / weekdays) - 平日曜日をadd reaction
# (vote / 投票) (週間 / a week) - 週間曜日をadd reaction
#
# Issue:
# 今後, Emojiの出力がランダムになる案件を解決したい
request = require('request')
modul... | 219032 | # Description:
# 0-10までの選択肢,曜日の絵文字をadd-reaction表示してくれるよ
#
# Commands:
# (vote / 投票) num1-num2 - num1からnum2までadd reaction
# (vote / 投票) (平日 / weekdays) - 平日曜日をadd reaction
# (vote / 投票) (週間 / a week) - 週間曜日をadd reaction
#
# Issue:
# 今後, Emojiの出力がランダムになる案件を解決したい
request = require('request')
modul... | true | # Description:
# 0-10までの選択肢,曜日の絵文字をadd-reaction表示してくれるよ
#
# Commands:
# (vote / 投票) num1-num2 - num1からnum2までadd reaction
# (vote / 投票) (平日 / weekdays) - 平日曜日をadd reaction
# (vote / 投票) (週間 / a week) - 週間曜日をadd reaction
#
# Issue:
# 今後, Emojiの出力がランダムになる案件を解決したい
request = require('request')
modul... |
[
{
"context": "{Promise}\n\t#\n\t# @example\n\t# storage.set('token', '1234')\n\t###\n\tset = (name, value) ->\n\t\tPromise.try ->\n\t",
"end": 1339,
"score": 0.938094973564148,
"start": 1335,
"tag": "PASSWORD",
"value": "1234"
}
] | packages/resin-settings-storage/lib/storage.coffee | resin-io-playground/resin-sdk-lerna | 0 | ###
Copyright 2016 Resin.io
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | 152302 | ###
Copyright 2016 Resin.io
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... | true | ###
Copyright 2016 Resin.io
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9972475171089172,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-http-default-port.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... | 195147 | # 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": " =\n provider: 'totallyfake'\n username: 'bigcloud'\n apiKey: 'secretovaltine'\n\n mockClient =",
"end": 1365,
"score": 0.9994332790374756,
"start": 1357,
"tag": "USERNAME",
"value": "bigcloud"
},
{
"context": "lyfake'\n username: 'bigcloud'\n ... | spec/storage-client-spec.coffee | mtdev2/atom-cloud-sync | 0 | StorageClient = require('../lib/storage-client')
{Directory, File} = require 'pathwatcher'
path = require 'path'
pkgcloud = require('pkgcloud')
Stream = require 'stream'
# A totally hokey storage client for pkgcloud.
#
class FakeCloudClient
constructor: (creds) ->
@creds = creds
@bufferedData = []
@f... | 110783 | StorageClient = require('../lib/storage-client')
{Directory, File} = require 'pathwatcher'
path = require 'path'
pkgcloud = require('pkgcloud')
Stream = require 'stream'
# A totally hokey storage client for pkgcloud.
#
class FakeCloudClient
constructor: (creds) ->
@creds = creds
@bufferedData = []
@f... | true | StorageClient = require('../lib/storage-client')
{Directory, File} = require 'pathwatcher'
path = require 'path'
pkgcloud = require('pkgcloud')
Stream = require 'stream'
# A totally hokey storage client for pkgcloud.
#
class FakeCloudClient
constructor: (creds) ->
@creds = creds
@bufferedData = []
@f... |
[
{
"context": "jpg'\n 'pictures/chandra.jpg'\n]\n\ntexts = [\n 'Avacyn'\n 'Karn'\n 'Jace'\n 'Jace, the living guil",
"end": 323,
"score": 0.9997612833976746,
"start": 317,
"tag": "NAME",
"value": "Avacyn"
},
{
"context": "tures/chandra.jpg'\n]\n\ntexts = [\n 'Avacyn'... | react_test/index.coffee | FeodorM/splitmoney | 0 | createView = (spec) ->
React.createFactory(React.createClass(spec))
render = ReactDOM.render
{div, img, h1, h2, h3, span, button, form, input} = React.DOM
pictures = [
'pictures/avacyn.jpg'
'pictures/karn.jpg'
'pictures/jace.jpg'
'pictures/jace1.jpg'
'pictures/chandra.jpg'
]
texts = [
'Ava... | 220167 | createView = (spec) ->
React.createFactory(React.createClass(spec))
render = ReactDOM.render
{div, img, h1, h2, h3, span, button, form, input} = React.DOM
pictures = [
'pictures/avacyn.jpg'
'pictures/karn.jpg'
'pictures/jace.jpg'
'pictures/jace1.jpg'
'pictures/chandra.jpg'
]
texts = [
'<NA... | true | createView = (spec) ->
React.createFactory(React.createClass(spec))
render = ReactDOM.render
{div, img, h1, h2, h3, span, button, form, input} = React.DOM
pictures = [
'pictures/avacyn.jpg'
'pictures/karn.jpg'
'pictures/jace.jpg'
'pictures/jace1.jpg'
'pictures/chandra.jpg'
]
texts = [
'PI:... |
[
{
"context": "e, data.oldState)\n # @_request.setKeyCardSeed('02294b743102b45323f5588cf8d02703150009100407010c160506141711130a020e0b0312080d0f') if @params.mode is 'setup' # Todo: This is only",
"end": 1034,
"score": 0.9997687935829163,
"start": 954,
"tag": "KEY",
"value": "02294b743102b4... | app/src/controllers/onboarding/device/onboarding_device_switch_firmware_view_controller.coffee | romanornr/ledger-wallet-crw | 173 | States = ledger.fup.FirmwareUpdateRequest.States
class @OnboardingDeviceSwitchfirmwareViewController extends @OnboardingViewController
view:
progressLabel: "#progress"
progressBarContainer: "#bar_container"
constructor: ->
super
if @params.mode is 'setup'
@_request = ledger.app.dongle.getFi... | 38582 | States = ledger.fup.FirmwareUpdateRequest.States
class @OnboardingDeviceSwitchfirmwareViewController extends @OnboardingViewController
view:
progressLabel: "#progress"
progressBarContainer: "#bar_container"
constructor: ->
super
if @params.mode is 'setup'
@_request = ledger.app.dongle.getFi... | true | States = ledger.fup.FirmwareUpdateRequest.States
class @OnboardingDeviceSwitchfirmwareViewController extends @OnboardingViewController
view:
progressLabel: "#progress"
progressBarContainer: "#bar_container"
constructor: ->
super
if @params.mode is 'setup'
@_request = ledger.app.dongle.getFi... |
[
{
"context": "own key, prop of object when prop?\n key = \"#{prefix}[#{key}]\" if prefix?\n s.push @default_serializer(p",
"end": 766,
"score": 0.9062954187393188,
"start": 747,
"tag": "KEY",
"value": "\"#{prefix}[#{key}]\""
}
] | lib/routes.js.coffee | andrewhavens/js-routes | 0 | ###
File generated by js-routes GEM_VERSION
Based on Rails routes of APP_CLASS
###
# root is this
root = (exports ? this)
ParameterMissing = (@message) -> #
ParameterMissing:: = new Error()
defaults =
prefix: "PREFIX"
default_url_options: DEFAULT_URL_OPTIONS
NodeTypes = NODE_TYPES
Utils =
default_serializer: ... | 127832 | ###
File generated by js-routes GEM_VERSION
Based on Rails routes of APP_CLASS
###
# root is this
root = (exports ? this)
ParameterMissing = (@message) -> #
ParameterMissing:: = new Error()
defaults =
prefix: "PREFIX"
default_url_options: DEFAULT_URL_OPTIONS
NodeTypes = NODE_TYPES
Utils =
default_serializer: ... | true | ###
File generated by js-routes GEM_VERSION
Based on Rails routes of APP_CLASS
###
# root is this
root = (exports ? this)
ParameterMissing = (@message) -> #
ParameterMissing:: = new Error()
defaults =
prefix: "PREFIX"
default_url_options: DEFAULT_URL_OPTIONS
NodeTypes = NODE_TYPES
Utils =
default_serializer: ... |
[
{
"context": "\nnikita = require '@nikitajs/core'\n{tags, ssh, scratch, ipa} = require '../tes",
"end": 28,
"score": 0.5767415761947632,
"start": 26,
"tag": "USERNAME",
"value": "js"
},
{
"context": " .ipa.user\n relax: true\n uid: 'username'\n attributes: {... | packages/ipa/test/user/index.coffee | DanielJohnHarty/node-nikita | 1 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ipa} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
relax: true
uid: [1,2,3]
, (... | 154639 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ipa} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
relax: true
uid: [1,2,3]
, (... | true |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ipa} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
relax: true
uid: [1,2,3]
, (... |
[
{
"context": " ParamUtils.getCurrentValue params, name\n key = command + JSON.stringify(bindings)\n\n cache.get(key) or cache.",
"end": 4278,
"score": 0.9896835684776306,
"start": 4264,
"tag": "KEY",
"value": "command + JSON"
},
{
"context": "urrentValue params, name\n key =... | public/coffee/services.coffee | Arabidopsis-Information-Portal/iodocs | 1 | Services = angular.module('iodocs.services', [])
###
# Turn strings like 'foo=bar,foo=baz,qooz=quux,quibblable' into functions.
#
# The above example should compile to:
#
# (v) -> (v.foo == 'bar' or v.foo == 'baz') and (f.qooz == 'quux') and (foo.quibblable)
#
###
optionFilter = (filterString) ->
testFns = {}
te... | 53544 | Services = angular.module('iodocs.services', [])
###
# Turn strings like 'foo=bar,foo=baz,qooz=quux,quibblable' into functions.
#
# The above example should compile to:
#
# (v) -> (v.foo == 'bar' or v.foo == 'baz') and (f.qooz == 'quux') and (foo.quibblable)
#
###
optionFilter = (filterString) ->
testFns = {}
te... | true | Services = angular.module('iodocs.services', [])
###
# Turn strings like 'foo=bar,foo=baz,qooz=quux,quibblable' into functions.
#
# The above example should compile to:
#
# (v) -> (v.foo == 'bar' or v.foo == 'baz') and (f.qooz == 'quux') and (foo.quibblable)
#
###
optionFilter = (filterString) ->
testFns = {}
te... |
[
{
"context": "ping-utils/csv'\n\nBASE64 = 'base64'\nCHANNEL_KEY = 'OrderXmlFileExport'\nCHANNEL_ROLE = 'OrderExport'\nCONTAINER_PAYMENT =",
"end": 354,
"score": 0.9292081594467163,
"start": 336,
"tag": "KEY",
"value": "OrderXmlFileExport"
}
] | src/coffee/orderexport.coffee | celeste-horgan/sphere-order-export | 1 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
{SphereClient} = require 'sphere-node-sdk'
{ElasticIo} = require 'sphere-node-utils'
XmlMapping = require './mapping-utils/xml'
CsvMapping = require './mapping-utils/csv'
BASE64 = 'base64'... | 29001 | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
{SphereClient} = require 'sphere-node-sdk'
{ElasticIo} = require 'sphere-node-utils'
XmlMapping = require './mapping-utils/xml'
CsvMapping = require './mapping-utils/csv'
BASE64 = 'base64'... | true | _ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
{SphereClient} = require 'sphere-node-sdk'
{ElasticIo} = require 'sphere-node-utils'
XmlMapping = require './mapping-utils/xml'
CsvMapping = require './mapping-utils/csv'
BASE64 = 'base64'... |
[
{
"context": "\nReads PHPUnit config to derrive the name\n\n@author Roelof Roos (https://github.com/roelofr)\n###\n\npath = require ",
"end": 65,
"score": 0.9998742938041687,
"start": 54,
"tag": "NAME",
"value": "Roelof Roos"
},
{
"context": "the name\n\n@author Roelof Roos (https://... | lib/parsers/parser-phpunit.coffee | roelofr/php-report | 0 | ###
Reads PHPUnit config to derrive the name
@author Roelof Roos (https://github.com/roelofr)
###
path = require 'path'
fs = require 'fs'
ParserBase = require './parser-base'
module.exports =
class ParserPhpunit extends ParserBase
configFile: null
configContent: null
configData: null
constructor: -... | 79191 | ###
Reads PHPUnit config to derrive the name
@author <NAME> (https://github.com/roelofr)
###
path = require 'path'
fs = require 'fs'
ParserBase = require './parser-base'
module.exports =
class ParserPhpunit extends ParserBase
configFile: null
configContent: null
configData: null
constructor: ->
... | true | ###
Reads PHPUnit config to derrive the name
@author PI:NAME:<NAME>END_PI (https://github.com/roelofr)
###
path = require 'path'
fs = require 'fs'
ParserBase = require './parser-base'
module.exports =
class ParserPhpunit extends ParserBase
configFile: null
configContent: null
configData: null
const... |
[
{
"context": "#\n# Get unique instance of Dat.GUI\n# @author : David Ronai / @Makio64 / makiopolis.com\n#\n\ngui = require('dat",
"end": 58,
"score": 0.9998721480369568,
"start": 47,
"tag": "NAME",
"value": "David Ronai"
},
{
"context": "ique instance of Dat.GUI\n# @author : David Ro... | src/coffee/makio/core/GUI.coffee | Makio64/pizzaparty_vj | 1 | #
# Get unique instance of Dat.GUI
# @author : David Ronai / @Makio64 / makiopolis.com
#
gui = require('dat')
GUI = new gui.GUI()
GUI.domElement.parentNode.style.zIndex = 100
toogle = ()->
# toogle also stats
stats = document.querySelector('.statsjs')
if GUI.domElement.parentNode.style.display == 'none'
if stat... | 118056 | #
# Get unique instance of Dat.GUI
# @author : <NAME> / @Makio64 / makiopolis.com
#
gui = require('dat')
GUI = new gui.GUI()
GUI.domElement.parentNode.style.zIndex = 100
toogle = ()->
# toogle also stats
stats = document.querySelector('.statsjs')
if GUI.domElement.parentNode.style.display == 'none'
if stats the... | true | #
# Get unique instance of Dat.GUI
# @author : PI:NAME:<NAME>END_PI / @Makio64 / makiopolis.com
#
gui = require('dat')
GUI = new gui.GUI()
GUI.domElement.parentNode.style.zIndex = 100
toogle = ()->
# toogle also stats
stats = document.querySelector('.statsjs')
if GUI.domElement.parentNode.style.display == 'none'
... |
[
{
"context": "*****************\n# JSSize - area class\n# Coded by Hajime Oh-yake 2013.03.26\n#*************************************",
"end": 90,
"score": 0.9998988509178162,
"start": 76,
"tag": "NAME",
"value": "Hajime Oh-yake"
}
] | JSKit/01_JSSize.coffee | digitarhythm/codeJS | 0 | #*****************************************
# JSSize - area class
# Coded by Hajime Oh-yake 2013.03.26
#*****************************************
class JSSize extends JSObject
constructor:->
super()
@width = 0
@height = 0
| 102977 | #*****************************************
# JSSize - area class
# Coded by <NAME> 2013.03.26
#*****************************************
class JSSize extends JSObject
constructor:->
super()
@width = 0
@height = 0
| true | #*****************************************
# JSSize - area class
# Coded by PI:NAME:<NAME>END_PI 2013.03.26
#*****************************************
class JSSize extends JSObject
constructor:->
super()
@width = 0
@height = 0
|
[
{
"context": "on and deployment details, see https://github.com/RocketChat/hubot-rocketchat/blob/master/README.md\n#\n# The Ro",
"end": 109,
"score": 0.9984514713287354,
"start": 99,
"tag": "USERNAME",
"value": "RocketChat"
},
{
"context": "\nRocketChatUser = process.env.ROCKETCHAT_U... | src/rocketchat.coffee | JannikZed/hubot-rocketchat | 0 | # Hubot adapter for Rocket.Chat
# For configuration and deployment details, see https://github.com/RocketChat/hubot-rocketchat/blob/master/README.md
#
# The RocketChatBotAdapter class implements 'standard' hubot Adapter interface methods.
#
# Most of the Rocket.Chat specific code, tied to Rocket.Chat's real-time messag... | 54277 | # Hubot adapter for Rocket.Chat
# For configuration and deployment details, see https://github.com/RocketChat/hubot-rocketchat/blob/master/README.md
#
# The RocketChatBotAdapter class implements 'standard' hubot Adapter interface methods.
#
# Most of the Rocket.Chat specific code, tied to Rocket.Chat's real-time messag... | true | # Hubot adapter for Rocket.Chat
# For configuration and deployment details, see https://github.com/RocketChat/hubot-rocketchat/blob/master/README.md
#
# The RocketChatBotAdapter class implements 'standard' hubot Adapter interface methods.
#
# Most of the Rocket.Chat specific code, tied to Rocket.Chat's real-time messag... |
[
{
"context": "l,选择部门:group,文本:input,多选:multiSelect,数值:number,密码:password,单选:radio,分组:section,下拉框:select,表格:table,网址:url,选择",
"end": 1877,
"score": 0.9976900815963745,
"start": 1869,
"tag": "PASSWORD",
"value": "password"
}
] | creator/packages/steedos-app-workflow/models/forms.coffee | yicone/steedos-platform | 42 | # db.forms = new Meteor.Collection('forms')
# Creator.Objects.forms =
# name: "forms"
# icon: "timesheet"
# label: "表单"
# fields:
# name:
# type: "text"
# label:"表单"
# required: true
# searchable: true
# readonly: true
# state:
# type: "select"
# label:"表单状态"
# options: [{label: "启用",va... | 172902 | # db.forms = new Meteor.Collection('forms')
# Creator.Objects.forms =
# name: "forms"
# icon: "timesheet"
# label: "表单"
# fields:
# name:
# type: "text"
# label:"表单"
# required: true
# searchable: true
# readonly: true
# state:
# type: "select"
# label:"表单状态"
# options: [{label: "启用",va... | true | # db.forms = new Meteor.Collection('forms')
# Creator.Objects.forms =
# name: "forms"
# icon: "timesheet"
# label: "表单"
# fields:
# name:
# type: "text"
# label:"表单"
# required: true
# searchable: true
# readonly: true
# state:
# type: "select"
# label:"表单状态"
# options: [{label: "启用",va... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.998304545879364,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-tls-over-http-tunnel.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... | 33861 | # 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 2012 Joshua Carver \n# \n# Licensed under the Apache License, Versio",
"end": 30,
"score": 0.9998756647109985,
"start": 17,
"tag": "NAME",
"value": "Joshua Carver"
}
] | src/coffeescript/charts/dot.coffee | jcarver989/raphy-charts | 5 | # Copyright 2012 Joshua Carver
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 85116 | # Copyright 2012 <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 agreed to in writin... | true | # Copyright 2012 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 required by applicable law or agree... |
[
{
"context": "ected =\n first:\n second:\n stars: [\"Audrey Hepburn\",\"Peter O'Toole\"]\n reviews: [\"good\",\"bad\",",
"end": 4269,
"score": 0.9997356534004211,
"start": 4255,
"tag": "NAME",
"value": "Audrey Hepburn"
},
{
"context": ":\n second:\n ... | nodejs/marketplace/submodules/flarebyte.jpath/test/flarebyte.jpath.test.coffee | flarebyte/wonderful-bazar | 0 | ___ = require("underscore")
___.mixin require("underscore.string")
jpath = require("flarebyte.jpath")
json =
first:
second:
about: "http://localhost:3000/flarebyte-marketplace/id/offering/offering0"
isPartOf: "http://localhost:3000/flarebyte-marketplace/id/dataset/offering"
label: "offering 0 o... | 74376 | ___ = require("underscore")
___.mixin require("underscore.string")
jpath = require("flarebyte.jpath")
json =
first:
second:
about: "http://localhost:3000/flarebyte-marketplace/id/offering/offering0"
isPartOf: "http://localhost:3000/flarebyte-marketplace/id/dataset/offering"
label: "offering 0 o... | true | ___ = require("underscore")
___.mixin require("underscore.string")
jpath = require("flarebyte.jpath")
json =
first:
second:
about: "http://localhost:3000/flarebyte-marketplace/id/offering/offering0"
isPartOf: "http://localhost:3000/flarebyte-marketplace/id/dataset/offering"
label: "offering 0 o... |
[
{
"context": "# Droplet model.\n#\n# Copyright (c) 2014 Anthony Bau (dab1998@gmail.com)\n# MIT License\nhelper = requir",
"end": 51,
"score": 0.9998587369918823,
"start": 40,
"tag": "NAME",
"value": "Anthony Bau"
},
{
"context": "roplet model.\n#\n# Copyright (c) 2014 Anthony Bau (da... | src/model.coffee | takeratta/droplet | 145 | # Droplet model.
#
# Copyright (c) 2014 Anthony Bau (dab1998@gmail.com)
# MIT License
helper = require './helper.coffee'
YES = -> yes
NO = -> no
NORMAL = default: helper.NORMAL
FORBID = default: helper.FORBID
DEFAULT_STRINGIFY_OPTS = {preserveEmpty: true}
_id = 0
# Getter/setter utility function
Function::trigger ... | 81658 | # Droplet model.
#
# Copyright (c) 2014 <NAME> (<EMAIL>)
# MIT License
helper = require './helper.coffee'
YES = -> yes
NO = -> no
NORMAL = default: helper.NORMAL
FORBID = default: helper.FORBID
DEFAULT_STRINGIFY_OPTS = {preserveEmpty: true}
_id = 0
# Getter/setter utility function
Function::trigger = (prop, get, s... | true | # Droplet model.
#
# Copyright (c) 2014 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# MIT License
helper = require './helper.coffee'
YES = -> yes
NO = -> no
NORMAL = default: helper.NORMAL
FORBID = default: helper.FORBID
DEFAULT_STRINGIFY_OPTS = {preserveEmpty: true}
_id = 0
# Getter/setter utility function
Func... |
[
{
"context": " expiry: '••/••'\n name: 'Full Name'\n classes:\n valid: 'card-valid'\n inv",
"end": 2056,
"score": 0.9983476400375366,
"start": 2047,
"tag": "NAME",
"value": "Full Name"
}
] | public/assets/js/card-master/src/coffee/card.coffee | webswift/Santiy | 1 | require 'jquery.payment'
$ = jQuery
$.card = {}
$.card.fn = {}
$.fn.card = (opts) ->
$.card.fn.construct.apply(this, opts)
class Card
cardTemplate: """
<div class="card-container">
<div class="card">
<div class="front">
<div class="card-logo visa">visa</div>
... | 98929 | require 'jquery.payment'
$ = jQuery
$.card = {}
$.card.fn = {}
$.fn.card = (opts) ->
$.card.fn.construct.apply(this, opts)
class Card
cardTemplate: """
<div class="card-container">
<div class="card">
<div class="front">
<div class="card-logo visa">visa</div>
... | true | require 'jquery.payment'
$ = jQuery
$.card = {}
$.card.fn = {}
$.fn.card = (opts) ->
$.card.fn.construct.apply(this, opts)
class Card
cardTemplate: """
<div class="card-container">
<div class="card">
<div class="front">
<div class="card-logo visa">visa</div>
... |
[
{
"context": "\n runs ->\n SettingsHelper.setCredentials 'foo@bar.baz', '0123456789abcdef0123456789abcdef'\n\n # Ref",
"end": 1307,
"score": 0.9995671510696411,
"start": 1296,
"tag": "EMAIL",
"value": "foo@bar.baz"
},
{
"context": " expect(ideMenu.submenu[idx].label).to... | spec/utils/menu-manager-spec.coffee | lukehoban/spark-dev | 1 | {WorkspaceView} = require 'atom'
MenuManager = require '../../lib/utils/menu-manager'
SettingsHelper = require '../../lib/utils/settings-helper'
describe 'MenuManager tests', ->
activationPromise = null
originalProfile = null
beforeEach ->
originalProfile = SettingsHelper.getProfile()
# For tests not to... | 125071 | {WorkspaceView} = require 'atom'
MenuManager = require '../../lib/utils/menu-manager'
SettingsHelper = require '../../lib/utils/settings-helper'
describe 'MenuManager tests', ->
activationPromise = null
originalProfile = null
beforeEach ->
originalProfile = SettingsHelper.getProfile()
# For tests not to... | true | {WorkspaceView} = require 'atom'
MenuManager = require '../../lib/utils/menu-manager'
SettingsHelper = require '../../lib/utils/settings-helper'
describe 'MenuManager tests', ->
activationPromise = null
originalProfile = null
beforeEach ->
originalProfile = SettingsHelper.getProfile()
# For tests not to... |
[
{
"context": "AUTO-mode projects.\n#\n# :copyright: (c) 2013 by Zaur Nasibov.\n# :license: MIT, see LICENSE for more details",
"end": 219,
"score": 0.9998770356178284,
"start": 207,
"tag": "NAME",
"value": "Zaur Nasibov"
}
] | kaylee/client/klworker.coffee | BasicWolf/archived-kaylee | 2 | ###
# klworker.coffee
# ~~~~~~~~~~~~~~~
#
# This is the base file of Kaylee client-side Web Worker module.
# This module is used to execute the AUTO-mode projects.
#
# :copyright: (c) 2013 by Zaur Nasibov.
# :license: MIT, see LICENSE for more details.
###
# Note that this is a WORKER script. It has ... | 104034 | ###
# klworker.coffee
# ~~~~~~~~~~~~~~~
#
# This is the base file of Kaylee client-side Web Worker module.
# This module is used to execute the AUTO-mode projects.
#
# :copyright: (c) 2013 by <NAME>.
# :license: MIT, see LICENSE for more details.
###
# Note that this is a WORKER script. It has no acc... | true | ###
# klworker.coffee
# ~~~~~~~~~~~~~~~
#
# This is the base file of Kaylee client-side Web Worker module.
# This module is used to execute the AUTO-mode projects.
#
# :copyright: (c) 2013 by PI:NAME:<NAME>END_PI.
# :license: MIT, see LICENSE for more details.
###
# Note that this is a WORKER script.... |
[
{
"context": "name: 'Micromanager'\nscopeName: 'micromanager'\ntype: 'tree-sitter'\npa",
"end": 19,
"score": 0.9943822026252747,
"start": 7,
"tag": "NAME",
"value": "Micromanager"
}
] | grammars/micromanager.cson | orelgenya/atom-micromanager | 0 | name: 'Micromanager'
scopeName: 'micromanager'
type: 'tree-sitter'
parser: 'tree-sitter-micromanager'
fileTypes: [
'mman'
]
scopes:
'item_tags': 'item_tags'
'item_tag': 'item_tag'
'item_start': 'item_start'
'item_text': 'item_text'
| 127531 | name: '<NAME>'
scopeName: 'micromanager'
type: 'tree-sitter'
parser: 'tree-sitter-micromanager'
fileTypes: [
'mman'
]
scopes:
'item_tags': 'item_tags'
'item_tag': 'item_tag'
'item_start': 'item_start'
'item_text': 'item_text'
| true | name: 'PI:NAME:<NAME>END_PI'
scopeName: 'micromanager'
type: 'tree-sitter'
parser: 'tree-sitter-micromanager'
fileTypes: [
'mman'
]
scopes:
'item_tags': 'item_tags'
'item_tag': 'item_tag'
'item_start': 'item_start'
'item_text': 'item_text'
|
[
{
"context": " backbone-orm.js 0.7.14\n Copyright (c) 2013-2016 Vidigami\n License: MIT (http://www.opensource.org/license",
"end": 63,
"score": 0.9998751282691956,
"start": 55,
"tag": "NAME",
"value": "Vidigami"
},
{
"context": "ses/mit-license.php)\n Source: https://github.com/... | src/lib/date_utils.coffee | dk-dev/backbone-orm | 54 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 Vidigami
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
UNITS_TO_MS =
milliseconds: {milliseconds: 1}
seconds: ... | 223754 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 <NAME>
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
UNITS_TO_MS =
milliseconds: {milliseconds: 1}
seconds: {m... | true | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 PI:NAME:<NAME>END_PI
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
UNITS_TO_MS =
milliseconds: {milliseconds: 1}... |
[
{
"context": "dle: Layout (controllers)\nProject: Waaave\nAuthors: Julien Le Coupanec, Valerian Saliou\nCopyright: 2014, Waaave\n###\n\n__ ",
"end": 76,
"score": 0.9998611211776733,
"start": 58,
"tag": "NAME",
"value": "Julien Le Coupanec"
},
{
"context": "lers)\nProject: Waaave\nAut... | static/src/controllers/layout/javascripts/layout.coffee | valeriansaliou/waaave-web | 1 | ###
Bundle: Layout (controllers)
Project: Waaave
Authors: Julien Le Coupanec, Valerian Saliou
Copyright: 2014, Waaave
###
__ = window
class LayoutButtons
init: ->
try
@_waaave_btn_all_sel = $ 'button.waaave-social'
@_follow_btn_all_sel = $ 'button.follow'
@_join_btn_a... | 214207 | ###
Bundle: Layout (controllers)
Project: Waaave
Authors: <NAME>, <NAME>
Copyright: 2014, Waaave
###
__ = window
class LayoutButtons
init: ->
try
@_waaave_btn_all_sel = $ 'button.waaave-social'
@_follow_btn_all_sel = $ 'button.follow'
@_join_btn_all_sel = $ 'button.jo... | true | ###
Bundle: Layout (controllers)
Project: Waaave
Authors: PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI
Copyright: 2014, Waaave
###
__ = window
class LayoutButtons
init: ->
try
@_waaave_btn_all_sel = $ 'button.waaave-social'
@_follow_btn_all_sel = $ 'button.follow'
@_joi... |
[
{
"context": "rationId)\n\t\tuser = RocketChat.models.Users.findOne(@userId)\n\n\t\tchannel = @bodyParams.channel or integration.",
"end": 541,
"score": 0.9951832294464111,
"start": 534,
"tag": "USERNAME",
"value": "@userId"
},
{
"context": "rationId)\n\t\tuser = RocketChat.models.Us... | packages/rocketchat-integrations/server/api/api.coffee | mboozell/rocket-chat-example-package | 0 | Api = new Restivus
enableCors: true
apiPath: 'hooks/'
auth:
user: ->
user = RocketChat.models.Users.findOne
_id: @request.params.userId
'services.resume.loginTokens.hashedToken': decodeURIComponent @request.params.token
return user: user
Api.addRoute ':integrationId/:userId/:token', authRequired: ... | 144764 | Api = new Restivus
enableCors: true
apiPath: 'hooks/'
auth:
user: ->
user = RocketChat.models.Users.findOne
_id: @request.params.userId
'services.resume.loginTokens.hashedToken': decodeURIComponent @request.params.token
return user: user
Api.addRoute ':integrationId/:userId/:token', authRequired: ... | true | Api = new Restivus
enableCors: true
apiPath: 'hooks/'
auth:
user: ->
user = RocketChat.models.Users.findOne
_id: @request.params.userId
'services.resume.loginTokens.hashedToken': decodeURIComponent @request.params.token
return user: user
Api.addRoute ':integrationId/:userId/:token', authRequired: ... |
[
{
"context": ".to.equal \"https://imgflo.herokuapp.com/graph/key/49467a1d8a94cf6c8350841299ecfb56/gradientmap.jpg?color1=%230A2A2F&color2=%23FDE7A0",
"end": 2411,
"score": 0.9995732307434082,
"start": 2379,
"tag": "KEY",
"value": "49467a1d8a94cf6c8350841299ecfb56"
}
] | spec/cli.coffee | imgflo/imgflo-url | 0 |
execFile = require('child_process').execFile
path = require 'path'
chai = require 'chai'
clone = (obj) ->
JSON.parse(JSON.stringify(obj))
imgfloUrlCli = (config, graphname, params, callback) ->
custom =
'IMGFLO_API_KEY': config.key
'IMGFLO_API_SECRET': config.secret
custom.IMGFLO_API_SERVER = config.se... | 207851 |
execFile = require('child_process').execFile
path = require 'path'
chai = require 'chai'
clone = (obj) ->
JSON.parse(JSON.stringify(obj))
imgfloUrlCli = (config, graphname, params, callback) ->
custom =
'IMGFLO_API_KEY': config.key
'IMGFLO_API_SECRET': config.secret
custom.IMGFLO_API_SERVER = config.se... | true |
execFile = require('child_process').execFile
path = require 'path'
chai = require 'chai'
clone = (obj) ->
JSON.parse(JSON.stringify(obj))
imgfloUrlCli = (config, graphname, params, callback) ->
custom =
'IMGFLO_API_KEY': config.key
'IMGFLO_API_SECRET': config.secret
custom.IMGFLO_API_SERVER = config.se... |
[
{
"context": "//zekro.de/src/catswebhookimage.jpg'\nHOOK_NAME = 'CATarina'\nSPAM_TIMEOUT = 10 * 1000 # 10 seconds\n\n\nspa",
"end": 315,
"score": 0.8727362155914307,
"start": 312,
"tag": "USERNAME",
"value": "CAT"
},
{
"context": "ekro.de/src/catswebhookimage.jpg'\nHOOK_NAME = 'CATar... | src/commands/cat.coffee | zekroTJA/zekroBot2 | 12 | Main = require '../main'
client = Main.client
Mysql = Main.mysql
DL = require '../util/dl'
Embeds = require '../util/embeds'
Discord = require 'discord.js'
Statics = require '../util/statics'
BETA_ENDPOINT = 'https://zekro.de/api/cats/get/'
IMAGE_URL = 'https://zekro.de/src/catswebhookimage.jpg'
HOOK_NAME = 'CATarina... | 148754 | Main = require '../main'
client = Main.client
Mysql = Main.mysql
DL = require '../util/dl'
Embeds = require '../util/embeds'
Discord = require 'discord.js'
Statics = require '../util/statics'
BETA_ENDPOINT = 'https://zekro.de/api/cats/get/'
IMAGE_URL = 'https://zekro.de/src/catswebhookimage.jpg'
HOOK_NAME = 'CAT<PASS... | true | Main = require '../main'
client = Main.client
Mysql = Main.mysql
DL = require '../util/dl'
Embeds = require '../util/embeds'
Discord = require 'discord.js'
Statics = require '../util/statics'
BETA_ENDPOINT = 'https://zekro.de/api/cats/get/'
IMAGE_URL = 'https://zekro.de/src/catswebhookimage.jpg'
HOOK_NAME = 'CATPI:PA... |
[
{
"context": "'use strict'\n\n\n# Key\n#\n# @copyright Andrew Lawson 2012\n# @see http://github.com/adlawson/key\n# @see",
"end": 49,
"score": 0.9998671412467957,
"start": 36,
"tag": "NAME",
"value": "Andrew Lawson"
},
{
"context": "right Andrew Lawson 2012\n# @see http://github.com/... | src/code/punctuation.coffee | adlawson/coffee-key | 1 | 'use strict'
# Key
#
# @copyright Andrew Lawson 2012
# @see http://github.com/adlawson/key
# @see http://npmjs.org/package/key
# @see http://opensource.org/licenses/mit-license.php MIT License
# Dependencies
{ref} = require '../ref'
# Definitions
punctuation = {
colon: ref 'Colon/Semicolon', [59, 186]... | 139968 | 'use strict'
# Key
#
# @copyright <NAME> 2012
# @see http://github.com/adlawson/key
# @see http://npmjs.org/package/key
# @see http://opensource.org/licenses/mit-license.php MIT License
# Dependencies
{ref} = require '../ref'
# Definitions
punctuation = {
colon: ref 'Colon/Semicolon', [59, 186]
equa... | true | 'use strict'
# Key
#
# @copyright PI:NAME:<NAME>END_PI 2012
# @see http://github.com/adlawson/key
# @see http://npmjs.org/package/key
# @see http://opensource.org/licenses/mit-license.php MIT License
# Dependencies
{ref} = require '../ref'
# Definitions
punctuation = {
colon: ref 'Colon/Semicolon', [5... |
[
{
"context": "#################\n# Copyright (C) 2014-2017 by Vaughn Iverson\n# fileCollection is free software released un",
"end": 124,
"score": 0.9997909665107727,
"start": 110,
"tag": "NAME",
"value": "Vaughn Iverson"
}
] | test/file_collection_tests.coffee | CarlosCuetoM/meteor-file-collection | 0 | ############################################################################
# Copyright (C) 2014-2017 by Vaughn Iverson
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
############################################################################... | 51035 | ############################################################################
# Copyright (C) 2014-2017 by <NAME>
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
############################################################################
if Met... | true | ############################################################################
# Copyright (C) 2014-2017 by PI:NAME:<NAME>END_PI
# fileCollection is free software released under the MIT/X11 license.
# See included LICENSE file for details.
######################################################################... |
[
{
"context": " # ...\n#\n# heavyMethod: (arg) ->\n# key = \"heavyMethod-#{arg}\"\n# return @memoFor key if @memoized key\n#\n# ",
"end": 482,
"score": 0.9623321890830994,
"start": 463,
"tag": "KEY",
"value": "heavyMethod-#{arg}\""
},
{
"context": " @memoize key, res... | src/mixins/memoizable.coffee | abe33/agt | 1 | # Public: A `Memoizable` object can store data resulting of heavy methods
# in order to speed up further call to that method.
#
# The invalidation of the memoized data is defined using a `memoizationKey`.
# That key should be generated based on the data that may induce changes
# in the functions's results.
#
# ```coffe... | 28266 | # Public: A `Memoizable` object can store data resulting of heavy methods
# in order to speed up further call to that method.
#
# The invalidation of the memoized data is defined using a `memoizationKey`.
# That key should be generated based on the data that may induce changes
# in the functions's results.
#
# ```coffe... | true | # Public: A `Memoizable` object can store data resulting of heavy methods
# in order to speed up further call to that method.
#
# The invalidation of the memoized data is defined using a `memoizationKey`.
# That key should be generated based on the data that may induce changes
# in the functions's results.
#
# ```coffe... |
[
{
"context": "/API/sigv4-post-example.html\n\t\t\t\t\t\t_testsecret = \"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\"\n\t\t\t\t\t\t_region = \"us-east-1\"\n\t\t\t\t\t\t_policy = \"eyA",
"end": 1104,
"score": 0.9997569918632507,
"start": 1064,
"tag": "KEY",
"value": "wJalrXUtnFEMI/K7MDENG/bPxRfi... | _src/test/travis.coffee | blend/aws-s3-form | 26 | url = require( "url" )
should = require('should')
request = require( "request" )
mime = require('mime-nofs')
xmlParse = require('xml2js').parseString
Module = require( "../." )
utils = require( "../lib/utils" )
_moduleInst = null
describe "----- aws-s3-form Travis TESTS -----", ->
console.log "Because this module ... | 183210 | url = require( "url" )
should = require('should')
request = require( "request" )
mime = require('mime-nofs')
xmlParse = require('xml2js').parseString
Module = require( "../." )
utils = require( "../lib/utils" )
_moduleInst = null
describe "----- aws-s3-form Travis TESTS -----", ->
console.log "Because this module ... | true | url = require( "url" )
should = require('should')
request = require( "request" )
mime = require('mime-nofs')
xmlParse = require('xml2js').parseString
Module = require( "../." )
utils = require( "../lib/utils" )
_moduleInst = null
describe "----- aws-s3-form Travis TESTS -----", ->
console.log "Because this module ... |
[
{
"context": "tests'\n\n isValid: ->\n @attributes.name.match /John|Jane/\n\n\nTinytest.add 'minimongoid - instance meth",
"end": 136,
"score": 0.9998127818107605,
"start": 132,
"tag": "NAME",
"value": "John"
},
{
"context": "'\n\n isValid: ->\n @attributes.name.match /John|J... | minimongoid_tests.coffee | haihappen/minimongoid | 7 | class User extends Minimongoid
@_collection: new Meteor.Collection 'minimongoid_tests'
isValid: ->
@attributes.name.match /John|Jane/
Tinytest.add 'minimongoid - instance methods', (test) ->
user = new User
name: 'John'
test.equal user.attributes, name: 'John'
test.isFalse user.isPersisted()
te... | 137431 | class User extends Minimongoid
@_collection: new Meteor.Collection 'minimongoid_tests'
isValid: ->
@attributes.name.match /<NAME>|<NAME>/
Tinytest.add 'minimongoid - instance methods', (test) ->
user = new User
name: '<NAME>'
test.equal user.attributes, name: '<NAME>'
test.isFalse user.isPersiste... | true | class User extends Minimongoid
@_collection: new Meteor.Collection 'minimongoid_tests'
isValid: ->
@attributes.name.match /PI:NAME:<NAME>END_PI|PI:NAME:<NAME>END_PI/
Tinytest.add 'minimongoid - instance methods', (test) ->
user = new User
name: 'PI:NAME:<NAME>END_PI'
test.equal user.attributes, nam... |
[
{
"context": "# Copyright 2016 Clement Bramy\n#\n# Licensed under the Apache License, Version 2.",
"end": 30,
"score": 0.9998602867126465,
"start": 17,
"tag": "NAME",
"value": "Clement Bramy"
}
] | menus/snippy.cson | cbramy/snippy | 0 | # Copyright 2016 Clement Bramy
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | 225047 | # Copyright 2016 <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 agreed to in writing, software
... | true | # Copyright 2016 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 required by applicable law or agreed to in writ... |
[
{
"context": "ent: key\") if key is undefined #dev\n key = key.toUpperCase().charCodeAt(0) if typeof key is \"string\"\n @ke",
"end": 2339,
"score": 0.6320818662643433,
"start": 2328,
"tag": "KEY",
"value": "toUpperCase"
},
{
"context": "key is undefined #dev\n key = key.toU... | src/coffee/input/keyboard.coffee | jeppester/jsEngine | 0 | module.exports = -> module.exports::constructor.apply @, arguments
###
Constructor for the Keyboard class
@name Input.Keyboard
@class A class that eases checking of the current state of all keys.
###
c = class Keyboard
constructor: ->
key = undefined
document.addEventListener "keydown", (event) =>
@on... | 138593 | module.exports = -> module.exports::constructor.apply @, arguments
###
Constructor for the Keyboard class
@name Input.Keyboard
@class A class that eases checking of the current state of all keys.
###
c = class Keyboard
constructor: ->
key = undefined
document.addEventListener "keydown", (event) =>
@on... | true | module.exports = -> module.exports::constructor.apply @, arguments
###
Constructor for the Keyboard class
@name Input.Keyboard
@class A class that eases checking of the current state of all keys.
###
c = class Keyboard
constructor: ->
key = undefined
document.addEventListener "keydown", (event) =>
@on... |
[
{
"context": "ize.height / 2 - 30\n\t\t\tkeyCoords =\n\t\t\t\tleft: [89, 207, 123, 168, 125, 244]\n\t\t\t\tright: [202, 246, 238,",
"end": 1390,
"score": 0.5100586414337158,
"start": 1389,
"tag": "IP_ADDRESS",
"value": "2"
},
{
"context": "lastKey = key\n\t\t\tlongKey: (key) ->\n\t\t... | app/scripts/controllers/CanvasCtrl.coffee | kabbi/oled-node-webkit-emulator | 0 | "use strict"
_ = require "lodash"
moment = require "moment"
angular.module("app.controllers.CanvasCtrl", []).controller "CanvasCtrl", [
"$scope"
"$location"
"$document"
($scope, $location, $document) ->
# A very dirty input handling
timePressed = {}
keysPressed = {}
keyCodes =
65: "a"
66: "b"
3... | 91105 | "use strict"
_ = require "lodash"
moment = require "moment"
angular.module("app.controllers.CanvasCtrl", []).controller "CanvasCtrl", [
"$scope"
"$location"
"$document"
($scope, $location, $document) ->
# A very dirty input handling
timePressed = {}
keysPressed = {}
keyCodes =
65: "a"
66: "b"
3... | true | "use strict"
_ = require "lodash"
moment = require "moment"
angular.module("app.controllers.CanvasCtrl", []).controller "CanvasCtrl", [
"$scope"
"$location"
"$document"
($scope, $location, $document) ->
# A very dirty input handling
timePressed = {}
keysPressed = {}
keyCodes =
65: "a"
66: "b"
3... |
[
{
"context": "ss : 'Formline--half'\n placeholder : 'you@yourdomain.com'\n name : 'email'\n testPath ",
"end": 2614,
"score": 0.9999125003814697,
"start": 2596,
"tag": "EMAIL",
"value": "you@yourdomain.com"
},
{
"context": "'Formline--half username'\... | client/home/lib/account/homeaccounteditprofile.coffee | lionheart1022/koding | 0 | kd = require 'kd'
KDCustomHTMLView = kd.CustomHTMLView
Encoder = require 'htmlencode'
async = require 'async'
remote = require 'app/remote'
JView = require 'app/jview'
s3upload = require 'app/util/s3upload'
whoami =... | 19622 | kd = require 'kd'
KDCustomHTMLView = kd.CustomHTMLView
Encoder = require 'htmlencode'
async = require 'async'
remote = require 'app/remote'
JView = require 'app/jview'
s3upload = require 'app/util/s3upload'
whoami =... | true | kd = require 'kd'
KDCustomHTMLView = kd.CustomHTMLView
Encoder = require 'htmlencode'
async = require 'async'
remote = require 'app/remote'
JView = require 'app/jview'
s3upload = require 'app/util/s3upload'
whoami =... |
[
{
"context": "dUri(query)).to.equal('people')\n it '\"name == Scott\" returns \"people?filter[name]=Scott\"', -> expect(",
"end": 1433,
"score": 0.9747581481933594,
"start": 1428,
"tag": "NAME",
"value": "Scott"
},
{
"context": " it '\"name == Scott\" returns \"people?filter[nam... | test/uribuilder-tests.coffee | TheHandsomeCoder/breeze-json-api | 0 | require './helpers/helper.coffee'
l = console.log
j = JSON.stringify
p = (item) -> l(j(item, null, 4))
Q = require('q')
breeze = require('breeze-client')
require('../node_modules/breeze-client-labs/breeze.labs.dataservice.abstractrest')
require('../src/breeze-json-api-uribuilder.js')
require('../src/breeze-json-api-... | 9331 | require './helpers/helper.coffee'
l = console.log
j = JSON.stringify
p = (item) -> l(j(item, null, 4))
Q = require('q')
breeze = require('breeze-client')
require('../node_modules/breeze-client-labs/breeze.labs.dataservice.abstractrest')
require('../src/breeze-json-api-uribuilder.js')
require('../src/breeze-json-api-... | true | require './helpers/helper.coffee'
l = console.log
j = JSON.stringify
p = (item) -> l(j(item, null, 4))
Q = require('q')
breeze = require('breeze-client')
require('../node_modules/breeze-client-labs/breeze.labs.dataservice.abstractrest')
require('../src/breeze-json-api-uribuilder.js')
require('../src/breeze-json-api-... |
[
{
"context": "rsion 1.0.0\n@file Joker.js\n@author Welington Sampaio (http://welington.zaez.net/)\n@contact http://",
"end": 138,
"score": 0.9998934864997864,
"start": 121,
"tag": "NAME",
"value": "Welington Sampaio"
}
] | vendor/assets/javascripts/joker/Core.coffee | zaeznet/joker-rails | 0 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Joker.js
@author Welington Sampaio (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free soft... | 62990 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Joker.js
@author <NAME> (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, under... | true | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Joker.js
@author PI:NAME:<NAME>END_PI (http://welington.zaez.net/)
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free s... |
[
{
"context": "undColor\n backgroundImage: \"url(\\\"#{@props.metadata.images[@state.index]}\\\")\"\n backgroundRepeat: 'no-repeat'",
"end": 20254,
"score": 0.932205855846405,
"start": 20220,
"tag": "EMAIL",
"value": "props.metadata.images[@state.index"
},
{
... | src/ui/ComicRenderer.coffee | joedrago/node-crackers | 3 | # React
React = require 'react'
DOM = require 'react-dom'
Loader = require 'react-loader'
ReactCSSTransitionGroup = require 'react-addons-css-transition-group'
{Motion} = require 'react-motion'
{spring} = require 'react-motion'
PubSub = require 'pubsub-js'
# Material UI components
IconButton = require 'material-ui/lib... | 15511 | # React
React = require 'react'
DOM = require 'react-dom'
Loader = require 'react-loader'
ReactCSSTransitionGroup = require 'react-addons-css-transition-group'
{Motion} = require 'react-motion'
{spring} = require 'react-motion'
PubSub = require 'pubsub-js'
# Material UI components
IconButton = require 'material-ui/lib... | true | # React
React = require 'react'
DOM = require 'react-dom'
Loader = require 'react-loader'
ReactCSSTransitionGroup = require 'react-addons-css-transition-group'
{Motion} = require 'react-motion'
{spring} = require 'react-motion'
PubSub = require 'pubsub-js'
# Material UI components
IconButton = require 'material-ui/lib... |
[
{
"context": "ull,\n beard_or_mustaches: null,\n name: 'Margarita'\n },\n 1: {sex: face_values['male'], glasses",
"end": 632,
"score": 0.9993491768836975,
"start": 623,
"tag": "NAME",
"value": "Margarita"
},
{
"context": "values['teeth'], beard_or_mustaches: null, nam... | app/assets/javascripts/game_faces.js.coffee | BlackKOT/guess_who | 0 | window.game_faces = ->
face_values = {
male: 'male'
female: 'female'
glasses: ' '
hair: ' '
hair_color: {
black: 'black',
blonde: 'blonde',
brown: 'brown',
pink: 'pink',
yellow: 'yellow',
blue: 'blue',
green: 'green',
orange: 'orange'
}
teeth... | 122366 | window.game_faces = ->
face_values = {
male: 'male'
female: 'female'
glasses: ' '
hair: ' '
hair_color: {
black: 'black',
blonde: 'blonde',
brown: 'brown',
pink: 'pink',
yellow: 'yellow',
blue: 'blue',
green: 'green',
orange: 'orange'
}
teeth... | true | window.game_faces = ->
face_values = {
male: 'male'
female: 'female'
glasses: ' '
hair: ' '
hair_color: {
black: 'black',
blonde: 'blonde',
brown: 'brown',
pink: 'pink',
yellow: 'yellow',
blue: 'blue',
green: 'green',
orange: 'orange'
}
teeth... |
[
{
"context": "ient/popup-client\n popup support\n\n copyright mark hahn 2013\n MIT license\n https://github.com/mark-",
"end": 77,
"score": 0.9997661113739014,
"start": 68,
"tag": "NAME",
"value": "mark hahn"
},
{
"context": " hahn 2013\n MIT license\n https://githu... | src/client/popup-client.coffee | mark-hahn/bace | 1 | ###
file: src/client/popup-client
popup support
copyright mark hahn 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
popup = (bace.popup ?= {})
helpers = (bace.helpers ?= {})
{render,div,img,table,tr,td,text,raw,form,label,button,input} = teacup
curPopup = cu... | 105649 | ###
file: src/client/popup-client
popup support
copyright <NAME> 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
popup = (bace.popup ?= {})
helpers = (bace.helpers ?= {})
{render,div,img,table,tr,td,text,raw,form,label,button,input} = teacup
curPopup = curPo... | true | ###
file: src/client/popup-client
popup support
copyright PI:NAME:<NAME>END_PI 2013
MIT license
https://github.com/mark-hahn/bace/
###
bace = (window.bace ?= {})
popup = (bace.popup ?= {})
helpers = (bace.helpers ?= {})
{render,div,img,table,tr,td,text,raw,form,label,button,input} = teacup
cu... |
[
{
"context": "text onto HTML canvas elements\n\nWritten in 2013 by Karl Naylor <kpn103@yahoo.com>\n\nTo the extent possible under ",
"end": 106,
"score": 0.9998919367790222,
"start": 95,
"tag": "NAME",
"value": "Karl Naylor"
},
{
"context": " canvas elements\n\nWritten in 2013 by Kar... | src/content/coffee/handywriteOnCanvas/all_graphemes.coffee | karlorg/phonetify | 1 | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by Karl Naylor <kpn103@yahoo.com>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed wit... | 219873 | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warra... | true | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is ... |
[
{
"context": " slug: 'healthcheck'\n email: 'rob+healthcheck@codecombat.com'\n emailLower: 'rob+healthcheck@codecom",
"end": 3422,
"score": 0.9999327659606934,
"start": 3392,
"tag": "EMAIL",
"value": "rob+healthcheck@codecombat.com"
},
{
"context": "lth... | server/routes/index.coffee | differentmatt/codecombat | 0 | mw = require '../middleware'
module.exports.setup = (app) ->
app.post('/auth/login-facebook', mw.auth.loginByFacebook)
app.post('/auth/login-gplus', mw.auth.loginByGPlus)
app.post('/auth/spy', mw.auth.spy)
app.post('/auth/stop-spying', mw.auth.stopSpying)
Article = require '../models/Article'
app.get('... | 96900 | mw = require '../middleware'
module.exports.setup = (app) ->
app.post('/auth/login-facebook', mw.auth.loginByFacebook)
app.post('/auth/login-gplus', mw.auth.loginByGPlus)
app.post('/auth/spy', mw.auth.spy)
app.post('/auth/stop-spying', mw.auth.stopSpying)
Article = require '../models/Article'
app.get('... | true | mw = require '../middleware'
module.exports.setup = (app) ->
app.post('/auth/login-facebook', mw.auth.loginByFacebook)
app.post('/auth/login-gplus', mw.auth.loginByGPlus)
app.post('/auth/spy', mw.auth.spy)
app.post('/auth/stop-spying', mw.auth.stopSpying)
Article = require '../models/Article'
app.get('... |
[
{
"context": "header'\n up.protocol.config.csrfToken = 'csrf-token'\n\n it 'sets a CSRF token in the header', a",
"end": 9921,
"score": 0.7369245886802673,
"start": 9911,
"tag": "PASSWORD",
"value": "csrf-token"
},
{
"context": "c (next) ->\n givenParams = { ... | spec_app/spec/javascripts/up/proxy_spec.js.coffee | Dr4K4n/unpoly | 3 | u = up.util
$ = jQuery
describe 'up.proxy', ->
describe 'JavaScript functions', ->
describe 'up.request', ->
it 'makes a request with the given URL and params', ->
up.request('/foo', params: { key: 'value' }, method: 'post')
request = @lastRequest()
expect(request.url).toMatchUrl... | 137807 | u = up.util
$ = jQuery
describe 'up.proxy', ->
describe 'JavaScript functions', ->
describe 'up.request', ->
it 'makes a request with the given URL and params', ->
up.request('/foo', params: { key: 'value' }, method: 'post')
request = @lastRequest()
expect(request.url).toMatchUrl... | true | u = up.util
$ = jQuery
describe 'up.proxy', ->
describe 'JavaScript functions', ->
describe 'up.request', ->
it 'makes a request with the given URL and params', ->
up.request('/foo', params: { key: 'value' }, method: 'post')
request = @lastRequest()
expect(request.url).toMatchUrl... |
[
{
"context": "age if token is invalid', (done) ->\n\n token = 'invalidToken'\n url = generateUrl\n route : \"Verify/#{",
"end": 1604,
"score": 0.826266348361969,
"start": 1592,
"tag": "KEY",
"value": "invalidToken"
},
{
"context": "il = generateRandomEmail()\n t... | servers/lib/server/handlers/verifytoken.test.coffee | ezgikaysi/koding | 1 | Bongo = require 'bongo'
koding = require './../bongo'
{ async
expect
request
generateUrl
generateRandomEmail
generateRandomString
generateRandomUsername } = require '../../../testhelper'
{ generateRegisterRequestParams } ... | 52902 | Bongo = require 'bongo'
koding = require './../bongo'
{ async
expect
request
generateUrl
generateRandomEmail
generateRandomString
generateRandomUsername } = require '../../../testhelper'
{ generateRegisterRequestParams } ... | true | Bongo = require 'bongo'
koding = require './../bongo'
{ async
expect
request
generateUrl
generateRandomEmail
generateRandomString
generateRandomUsername } = require '../../../testhelper'
{ generateRegisterRequestParams } ... |
[
{
"context": "\"firefox\"\n # config = iceServers: [url: \"stun:23.21.150.121\"] \n\n config = {iceServers: [{url: 'stun:88.19",
"end": 488,
"score": 0.9944819808006287,
"start": 475,
"tag": "IP_ADDRESS",
"value": "23.21.150.121"
},
{
"context": "0.121\"] \n\n config = {i... | client/code/app/utils/peer_connection.coffee | marufsiddiqui/vmux | 1 | adapter = require('./adapter')
class PC
constructor: (@peer, @passive, @user) ->
_.extend @, Backbone.Events
@log "Creating PeerConnection."
#config = {iceServers: [{url: "stun:stun.l.google.com:19302"}]}
constraints = {optional: [{'DtlsSrtpKeyAgreement': true}, {'RtpDataChannels': true}]}
... | 90404 | adapter = require('./adapter')
class PC
constructor: (@peer, @passive, @user) ->
_.extend @, Backbone.Events
@log "Creating PeerConnection."
#config = {iceServers: [{url: "stun:stun.l.google.com:19302"}]}
constraints = {optional: [{'DtlsSrtpKeyAgreement': true}, {'RtpDataChannels': true}]}
... | true | adapter = require('./adapter')
class PC
constructor: (@peer, @passive, @user) ->
_.extend @, Backbone.Events
@log "Creating PeerConnection."
#config = {iceServers: [{url: "stun:stun.l.google.com:19302"}]}
constraints = {optional: [{'DtlsSrtpKeyAgreement': true}, {'RtpDataChannels': true}]}
... |
[
{
"context": "AWS:\n accessKeyId: \"aws_id_goes_here\"\n secretAccessKey: \"aws_key_goes_here\"\n ",
"end": 30,
"score": 0.7620811462402344,
"start": 21,
"tag": "KEY",
"value": "aws_id_go"
},
{
"context": "AWS:\n accessKeyId: \"aws_id_goes_here\"\n secretAccessKey: \"aws_key_goe... | config/kick.cson | pandastrike/panda-cluster-kick | 2 | AWS:
accessKeyId: "aws_id_goes_here"
secretAccessKey: "aws_key_goes_here"
region: "aws_region_goes_here"
sslEnabled: true
public_dns_id: "/hostedzone/public_zone_id_goes_here"
public_hosted_zone: "public_zone_name_goes_here"
private_dns_id: "/hostedzone/private_zone_id_goes_here"
private_hosted_zone: "private_... | 58267 | AWS:
accessKeyId: "<KEY>es_<KEY>"
secretAccessKey: "<KEY>_goes_here"
region: "aws_region_goes_here"
sslEnabled: true
public_dns_id: "/hostedzone/public_zone_id_goes_here"
public_hosted_zone: "public_zone_name_goes_here"
private_dns_id: "/hostedzone/private_zone_id_goes_here"
private_hosted_zone: "private_zone_... | true | AWS:
accessKeyId: "PI:KEY:<KEY>END_PIes_PI:KEY:<KEY>END_PI"
secretAccessKey: "PI:KEY:<KEY>END_PI_goes_here"
region: "aws_region_goes_here"
sslEnabled: true
public_dns_id: "/hostedzone/public_zone_id_goes_here"
public_hosted_zone: "public_zone_name_goes_here"
private_dns_id: "/hostedzone/private_zone_id_goes_he... |
[
{
"context": " filePath: mp3\n host: \"127.0.0.1\"\n port: sa_info.source_port\n ",
"end": 1199,
"score": 0.9997490644454956,
"start": 1190,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": " sa_info.source_port\n ... | test/standalone.coffee | firebrandv2/FirebrandNetwork.ga | 342 | StandaloneHelper = require "./helpers/standalone"
StreamHelper = require "./helpers/stream"
StreamListener = $src "util/stream_listener"
IcecastSource = $src "util/icecast_source"
mp3 = $file "mp3/mp3-44100-128-s.mp3"
debug = require("debug")("sm:tests:standalone")
request = require "request"
weak = re... | 107968 | StandaloneHelper = require "./helpers/standalone"
StreamHelper = require "./helpers/stream"
StreamListener = $src "util/stream_listener"
IcecastSource = $src "util/icecast_source"
mp3 = $file "mp3/mp3-44100-128-s.mp3"
debug = require("debug")("sm:tests:standalone")
request = require "request"
weak = re... | true | StandaloneHelper = require "./helpers/standalone"
StreamHelper = require "./helpers/stream"
StreamListener = $src "util/stream_listener"
IcecastSource = $src "util/icecast_source"
mp3 = $file "mp3/mp3-44100-128-s.mp3"
debug = require("debug")("sm:tests:standalone")
request = require "request"
weak = re... |
[
{
"context": "]\n capacity = MinCapacity\n length = 0\n keys = {length: 0}\n\n do newCapacity = =>\n capacity = getCapacit",
"end": 6395,
"score": 0.9870569109916687,
"start": 6386,
"tag": "KEY",
"value": "length: 0"
}
] | src/common.coffee | lotress/common-node | 1 | identity = (x) => x
None = => undefined
isType = (type) => (x) => typeof x is type
isObject = isType 'object'
isFunction = isType 'function'
concatArr = (arr, cur) => arr.concat if Array.isArray cur then cur else [cur]
flatArray = (arr = []) => arr.reduce concatArr, []
flatObject = (o) =>
res = {}
for key of o ... | 100180 | identity = (x) => x
None = => undefined
isType = (type) => (x) => typeof x is type
isObject = isType 'object'
isFunction = isType 'function'
concatArr = (arr, cur) => arr.concat if Array.isArray cur then cur else [cur]
flatArray = (arr = []) => arr.reduce concatArr, []
flatObject = (o) =>
res = {}
for key of o ... | true | identity = (x) => x
None = => undefined
isType = (type) => (x) => typeof x is type
isObject = isType 'object'
isFunction = isType 'function'
concatArr = (arr, cur) => arr.concat if Array.isArray cur then cur else [cur]
flatArray = (arr = []) => arr.reduce concatArr, []
flatObject = (o) =>
res = {}
for key of o ... |
[
{
"context": " , c : 32, N : 4, p : 4, r : 16 },\n { key : 160, salt : 8 , dkLen : 128 , c : 32, N : 4, p : 4, ",
"end": 2275,
"score": 0.7832781672477722,
"start": 2274,
"tag": "KEY",
"value": "6"
}
] | ref/gen_scrypt_xor_spec.iced | CyberFlameGO/triplesec | 274 |
enc = require '../src/enc'
{WordArray} = require '../src/wordarray'
{rng} = require 'crypto'
colors = require 'colors'
{pbkdf2} = require '../src/pbkdf2'
{XOR} = require '../src/combine'
{scrypt} = require '../src/scrypt'
class GenerateSpec
constructor : ->
@version = 1
@vectors = []
gen_vector : (p, cb... | 516 |
enc = require '../src/enc'
{WordArray} = require '../src/wordarray'
{rng} = require 'crypto'
colors = require 'colors'
{pbkdf2} = require '../src/pbkdf2'
{XOR} = require '../src/combine'
{scrypt} = require '../src/scrypt'
class GenerateSpec
constructor : ->
@version = 1
@vectors = []
gen_vector : (p, cb... | true |
enc = require '../src/enc'
{WordArray} = require '../src/wordarray'
{rng} = require 'crypto'
colors = require 'colors'
{pbkdf2} = require '../src/pbkdf2'
{XOR} = require '../src/combine'
{scrypt} = require '../src/scrypt'
class GenerateSpec
constructor : ->
@version = 1
@vectors = []
gen_vector : (p, cb... |
[
{
"context": "# Copyright© 2017 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co., Inc., ",
"end": 29,
"score": 0.9998719096183777,
"start": 18,
"tag": "NAME",
"value": "Merck Sharp"
},
{
"context": "name: $('.x-jdbc-user').val()\n password: $('.x-jdbc-password').val()\n ... | app/assets/javascripts/my_datasets.js.coffee | Merck/Linea | 0 | # Copyright© 2017 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co., Inc., Kenilworth, NJ, USA. 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... | 137132 | # Copyright© 2017 <NAME> & Dohme Corp. a subsidiary of Merck & Co., Inc., Kenilworth, NJ, USA. 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 ... | true | # Copyright© 2017 PI:NAME:<NAME>END_PI & Dohme Corp. a subsidiary of Merck & Co., Inc., Kenilworth, NJ, USA. 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/license... |
[
{
"context": " method,\n headers: {\n 'private-token': '-LXDctXSa1HAXVm54g73',\n }\n }\n\n if method == 'get'\n url",
"end": 434,
"score": 0.6940038204193115,
"start": 413,
"tag": "KEY",
"value": "'-LXDctXSa1HAXVm54g73"
}
] | lib/gitlab.coffee | W2P-Digital/gitlab-github-migrate | 1 | require('dotenv').load()
fetch = require 'node-fetch'
request = require 'request-promise'
coffee = require 'coffee-script'
requestJSON = request.defaults(json: true)
GitLab = module.exports =
apiCall: (method, path, params = {}) ->
{ GITLAB_URL, GITLAB_TOKEN } = process.env
url = new URL("#{GITLAB_URL}/api/v... | 41153 | require('dotenv').load()
fetch = require 'node-fetch'
request = require 'request-promise'
coffee = require 'coffee-script'
requestJSON = request.defaults(json: true)
GitLab = module.exports =
apiCall: (method, path, params = {}) ->
{ GITLAB_URL, GITLAB_TOKEN } = process.env
url = new URL("#{GITLAB_URL}/api/v... | true | require('dotenv').load()
fetch = require 'node-fetch'
request = require 'request-promise'
coffee = require 'coffee-script'
requestJSON = request.defaults(json: true)
GitLab = module.exports =
apiCall: (method, path, params = {}) ->
{ GITLAB_URL, GITLAB_TOKEN } = process.env
url = new URL("#{GITLAB_URL}/api/v... |
[
{
"context": "map(\n user: secret.gmail.username\n password: secret.gmail.password\n host: 'imap.gmail.com'\n port: 993\n tls:",
"end": 664,
"score": 0.9992269277572632,
"start": 643,
"tag": "PASSWORD",
"value": "secret.gmail.password"
},
{
"context": "mail_object) ->\... | data/google/gmail/index.coffee | yangsu/ballin-octo-robot | 0 | secret = require '../secret'
openInbox = (cb) ->
imap.openBox 'INBOX', true, cb
processEmail = (seqno, header, email) ->
boundary = email.match(/boundary=\'([^']+)\'/)[1]
parts = email.split(boundary)
body = parts[2]
_.each parts, (part, i) ->
console.log body.slice(0, 50)
fs.writeF... | 48723 | secret = require '../secret'
openInbox = (cb) ->
imap.openBox 'INBOX', true, cb
processEmail = (seqno, header, email) ->
boundary = email.match(/boundary=\'([^']+)\'/)[1]
parts = email.split(boundary)
body = parts[2]
_.each parts, (part, i) ->
console.log body.slice(0, 50)
fs.writeF... | true | secret = require '../secret'
openInbox = (cb) ->
imap.openBox 'INBOX', true, cb
processEmail = (seqno, header, email) ->
boundary = email.match(/boundary=\'([^']+)\'/)[1]
parts = email.split(boundary)
body = parts[2]
_.each parts, (part, i) ->
console.log body.slice(0, 50)
fs.writeF... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9993789792060852,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-stream2-readable-wrap.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... | 42296 | # 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": "tation generated by [CoffeeDoc](http://github.com/omarkhan/coffeedoc)\n###\n\n_ = require 'underscore'\n{ EventE",
"end": 202,
"score": 0.9995124936103821,
"start": 194,
"tag": "USERNAME",
"value": "omarkhan"
},
{
"context": "not password? or password is ''\n passw... | backend/core/crud-api.coffee | chiehwen/ResShoPos | 1 | ###
# CoffeeDoc example documentation #
This is a module-level docstring, and will be displayed at the top of the module documentation.
Documentation generated by [CoffeeDoc](http://github.com/omarkhan/coffeedoc)
###
_ = require 'underscore'
{ EventEmitter } = require 'events'
{ Utils } = require './utils'
{ hash } =... | 25289 | ###
# CoffeeDoc example documentation #
This is a module-level docstring, and will be displayed at the top of the module documentation.
Documentation generated by [CoffeeDoc](http://github.com/omarkhan/coffeedoc)
###
_ = require 'underscore'
{ EventEmitter } = require 'events'
{ Utils } = require './utils'
{ hash } =... | true | ###
# CoffeeDoc example documentation #
This is a module-level docstring, and will be displayed at the top of the module documentation.
Documentation generated by [CoffeeDoc](http://github.com/omarkhan/coffeedoc)
###
_ = require 'underscore'
{ EventEmitter } = require 'events'
{ Utils } = require './utils'
{ hash } =... |
[
{
"context": "| null\n anonymous: !pl.realid\n name: pl.name\n dead: false\n icon: pl.icon ||",
"end": 35052,
"score": 0.6902609467506409,
"start": 35050,
"tag": "NAME",
"value": "pl"
}
] | client/code/pages/game/game.coffee | Sunev/jinrou | 18 | this_room_id=null
socket_ids=[]
this_rule=null # ルールオブジェクトがある
enter_result=null #enter
# when set, function to reload the game.
reload_room = null
# GameStartControlのインスタンス
game_start_control = null
# GameViewのインスタンス
game_view = null
exports.start=(roomid)->
this_rule=null
my_player_id=null
this_room_... | 18331 | this_room_id=null
socket_ids=[]
this_rule=null # ルールオブジェクトがある
enter_result=null #enter
# when set, function to reload the game.
reload_room = null
# GameStartControlのインスタンス
game_start_control = null
# GameViewのインスタンス
game_view = null
exports.start=(roomid)->
this_rule=null
my_player_id=null
this_room_... | true | this_room_id=null
socket_ids=[]
this_rule=null # ルールオブジェクトがある
enter_result=null #enter
# when set, function to reload the game.
reload_room = null
# GameStartControlのインスタンス
game_start_control = null
# GameViewのインスタンス
game_view = null
exports.start=(roomid)->
this_rule=null
my_player_id=null
this_room_... |
[
{
"context": " '111'\n# customerId: '222'\n# authorName: 'John Doe'\n# title: 'My review'\nclass ReviewService ext",
"end": 395,
"score": 0.9997051954269409,
"start": 387,
"tag": "NAME",
"value": "John Doe"
}
] | src/coffee/services/reviews.coffee | commercetools/sphere-node-sdk | 13 | BaseService = require './base'
# Public: Define a `ReviewService` to interact with the HTTP [`reviews`](http://dev.sphere.io/http-api-projects-reviews.html) endpoint.
#
# _Review of a product by a customer. A customer can create only one review per product._
#
# Examples
#
# service = client.reviews
# service.save... | 192856 | BaseService = require './base'
# Public: Define a `ReviewService` to interact with the HTTP [`reviews`](http://dev.sphere.io/http-api-projects-reviews.html) endpoint.
#
# _Review of a product by a customer. A customer can create only one review per product._
#
# Examples
#
# service = client.reviews
# service.save... | true | BaseService = require './base'
# Public: Define a `ReviewService` to interact with the HTTP [`reviews`](http://dev.sphere.io/http-api-projects-reviews.html) endpoint.
#
# _Review of a product by a customer. A customer can create only one review per product._
#
# Examples
#
# service = client.reviews
# service.save... |
[
{
"context": " else\n par = path.split \"/\"\n key = par.pop()\n ind = sibs.indexOf key\n win = if ind",
"end": 2321,
"score": 0.9768099784851074,
"start": 2318,
"tag": "KEY",
"value": "pop"
},
{
"context": "ll\n else\n par = path.split \"/\"\n key ... | urb/zod/pub/tree/src/js/stores/TreeStore.coffee | frodwith/urbit | 5 | EventEmitter = require('events').EventEmitter
MessageDispatcher = require '../dispatcher/Dispatcher.coffee'
clog = console.log.bind(console)
_tree = {}
_data = {}
_curr = ""
QUERIES = {body:'r', head:'r', snip:'r', sect:'j', meta:'j'}
TreeStore = _.extend EventEmitter.prototype, {
addChangeListener: (cb) -> @on '... | 52335 | EventEmitter = require('events').EventEmitter
MessageDispatcher = require '../dispatcher/Dispatcher.coffee'
clog = console.log.bind(console)
_tree = {}
_data = {}
_curr = ""
QUERIES = {body:'r', head:'r', snip:'r', sect:'j', meta:'j'}
TreeStore = _.extend EventEmitter.prototype, {
addChangeListener: (cb) -> @on '... | true | EventEmitter = require('events').EventEmitter
MessageDispatcher = require '../dispatcher/Dispatcher.coffee'
clog = console.log.bind(console)
_tree = {}
_data = {}
_curr = ""
QUERIES = {body:'r', head:'r', snip:'r', sect:'j', meta:'j'}
TreeStore = _.extend EventEmitter.prototype, {
addChangeListener: (cb) -> @on '... |
[
{
"context": "ot what do you think about brexit?\n#\n# Author:\n# sagasu\n\nvotingAnswers = [\n \"Darlin' you got to let me k",
"end": 285,
"score": 0.9748318791389465,
"start": 279,
"tag": "USERNAME",
"value": "sagasu"
},
{
"context": "xit?\n#\n# Author:\n# sagasu\n\nvotingAnsw... | src/brexit.coffee | sagasu/hubot-brexit | 0 | # Description:
# hubot who are you voting for
# Ask hubot about brexit
#
# Commands:
# hubot who will win referendum?
# hubot are you voting?
# hubot who is winning referendum?
# hubot who are you voting for?
# hubot what do you think about brexit?
#
# Author:
# sagasu
votingAnswers = [
"Darlin' you ... | 100820 | # Description:
# hubot who are you voting for
# Ask hubot about brexit
#
# Commands:
# hubot who will win referendum?
# hubot are you voting?
# hubot who is winning referendum?
# hubot who are you voting for?
# hubot what do you think about brexit?
#
# Author:
# sagasu
votingAnswers = [
"<NAME>' you ... | true | # Description:
# hubot who are you voting for
# Ask hubot about brexit
#
# Commands:
# hubot who will win referendum?
# hubot are you voting?
# hubot who is winning referendum?
# hubot who are you voting for?
# hubot what do you think about brexit?
#
# Author:
# sagasu
votingAnswers = [
"PI:NAME:<NAM... |
[
{
"context": "suite 'William Shakespeare', ->\r\n\r\n test 'Hamlet', ->\r\n CoffeeScript.par",
"end": 26,
"score": 0.9998876452445984,
"start": 7,
"tag": "NAME",
"value": "William Shakespeare"
}
] | node_modules/karma-coverage/node_modules/ibrik/node_modules/coffee-script-redux/test/shakespeare.coffee | teresolteam1/meanjsmysql | 0 | suite 'William Shakespeare', ->
test 'Hamlet', ->
CoffeeScript.parse '''
To be or not to be, that is the question
Whether tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune,
Or to take Arms against a Sea of troubles,
And By opposing end them, to die... | 87187 | suite '<NAME>', ->
test 'Hamlet', ->
CoffeeScript.parse '''
To be or not to be, that is the question
Whether tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune,
Or to take Arms against a Sea of troubles,
And By opposing end them, to die, to sleep
... | true | suite 'PI:NAME:<NAME>END_PI', ->
test 'Hamlet', ->
CoffeeScript.parse '''
To be or not to be, that is the question
Whether tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune,
Or to take Arms against a Sea of troubles,
And By opposing end them, to di... |
[
{
"context": "es\n for key, outlet of @outlets\n key = hash(outlet)\n if match[key]\n match[key",
"end": 1249,
"score": 0.7991392016410828,
"start": 1245,
"tag": "KEY",
"value": "hash"
}
] | src/graph/node.coffee | QBobWatson/shadergraph | 591 | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@all = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# R... | 114838 | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@all = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# R... | true | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@all = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# R... |
[
{
"context": "t fresh data\n userData = {\n id: 1\n email: 'tyrion@example.org'\n login: 'tyrion'\n token: 'abcdef'\n crea",
"end": 334,
"score": 0.999923050403595,
"start": 316,
"tag": "EMAIL",
"value": "tyrion@example.org"
},
{
"context": "id: 1\n email: 'tyrion@... | assets/scripts/spec/unit/user_spec.coffee | rwjblue/travis-web | 0 | record = null
module "Travis.User",
setup: ->
teardown: ->
Travis.User.resetData()
test '', ->
# TODO: we should not need to mock entire user response
# just for user creation. It happens, because whenever
# a user is created we try to get fresh data
userData = {
id: 1
email: 'tyri... | 46724 | record = null
module "Travis.User",
setup: ->
teardown: ->
Travis.User.resetData()
test '', ->
# TODO: we should not need to mock entire user response
# just for user creation. It happens, because whenever
# a user is created we try to get fresh data
userData = {
id: 1
email: '<EMA... | true | record = null
module "Travis.User",
setup: ->
teardown: ->
Travis.User.resetData()
test '', ->
# TODO: we should not need to mock entire user response
# just for user creation. It happens, because whenever
# a user is created we try to get fresh data
userData = {
id: 1
email: 'PI:E... |
[
{
"context": "=============================\n# Copyright (c) 2012 Mario L Gutierrez, <mario@mgutz.com>\n# http://mgutz.github.com\n#\n# ",
"end": 118,
"score": 0.9998553395271301,
"start": 101,
"tag": "NAME",
"value": "Mario L Gutierrez"
},
{
"context": "========\n# Copyright (c) 201... | src/lib/funcd.coffee | mgutz/funcd | 1 | #==============================================================================
# Copyright (c) 2012 Mario L Gutierrez, <mario@mgutz.com>
# http://mgutz.github.com
#
# MIT Licensed
#==============================================================================
if global?
_ = require('underscore')
else
_ = window._... | 132146 | #==============================================================================
# Copyright (c) 2012 <NAME>, <<EMAIL>>
# http://mgutz.github.com
#
# MIT Licensed
#==============================================================================
if global?
_ = require('underscore')
else
_ = window._
doctypes =
'def... | true | #==============================================================================
# Copyright (c) 2012 PI:NAME:<NAME>END_PI, <PI:EMAIL:<EMAIL>END_PI>
# http://mgutz.github.com
#
# MIT Licensed
#==============================================================================
if global?
_ = require('underscore')
else
_ ... |
[
{
"context": "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely dist",
"end": 41,
"score": 0.999862015247345,
"start": 26,
"tag": "NAME",
"value": "Michael Dvorkin"
}
] | app/assets/javascripts/groups.js.coffee | ramses-lopez/re-crm | 1 | # Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# Place all the behaviors and ... | 93338 | # Copyright (c) 2008-2013 <NAME> and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# Place all the behaviors and hooks rel... | true | # Copyright (c) 2008-2013 PI:NAME:<NAME>END_PI and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# Place all the behaviors... |
[
{
"context": ":')\n\t\t\t\t\tusername = credentials[0]\n\t\t\t\t\tpassword = credentials[1]\n\t\t\t\t\t@user.find username, password, (data)->\n\t",
"end": 520,
"score": 0.7291112542152405,
"start": 509,
"tag": "PASSWORD",
"value": "credentials"
}
] | applications/lighter/modules/request.coffee | nodebenchmark/benchmarks | 13 | module.exports = (settings)->
class Request
constructor:(settings)->
@settings = settings
@user = require(__dirname + '/user')(settings)
validate:(req, callback)->
authValue = req.headers['authorization']
if typeof(authValue) != 'undefined' and authValue.indexOf('Basic') >= 0
buff = new Buffer(... | 133607 | module.exports = (settings)->
class Request
constructor:(settings)->
@settings = settings
@user = require(__dirname + '/user')(settings)
validate:(req, callback)->
authValue = req.headers['authorization']
if typeof(authValue) != 'undefined' and authValue.indexOf('Basic') >= 0
buff = new Buffer(... | true | module.exports = (settings)->
class Request
constructor:(settings)->
@settings = settings
@user = require(__dirname + '/user')(settings)
validate:(req, callback)->
authValue = req.headers['authorization']
if typeof(authValue) != 'undefined' and authValue.indexOf('Basic') >= 0
buff = new Buffer(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.