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": "orces spaces inside computed properties.\n# @author Jamund Ferguson\n###\n'use strict'\n\n#------------------------------",
"end": 103,
"score": 0.9998582601547241,
"start": 88,
"tag": "NAME",
"value": "Jamund Ferguson"
}
] | src/tests/rules/computed-property-spacing.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Disallows or enforces spaces inside computed properties.
# @author Jamund Ferguson
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint... | 51935 | ###*
# @fileoverview Disallows or enforces spaces inside computed properties.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rule... | true | ###*
# @fileoverview Disallows or enforces spaces inside computed properties.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'e... |
[
{
"context": ".keys(env.skills).forEach (skill) =>\n key = \"skill#{skill.toUpperCase()}\"\n val = @skillIsSet(skill)\n @set(key, va",
"end": 151,
"score": 0.9966235160827637,
"start": 123,
"tag": "KEY",
"value": "skill#{skill.toUpperCase()}\""
},
{
"context": ".keys(e... | app/assets/javascripts/mixins/skill_settings.js.coffee | fwoeck/voice-rails | 1 | Voice.SkillSettings = Ember.Mixin.create({
splitSkills: ( ->
Ember.keys(env.skills).forEach (skill) =>
key = "skill#{skill.toUpperCase()}"
val = @skillIsSet(skill)
@set(key, val) if @get(key) != val
).observes('skills.[]')
skillIsSet: (skill) ->
@get('skills').indexOf(skill) > -1
... | 206093 | Voice.SkillSettings = Ember.Mixin.create({
splitSkills: ( ->
Ember.keys(env.skills).forEach (skill) =>
key = "<KEY>
val = @skillIsSet(skill)
@set(key, val) if @get(key) != val
).observes('skills.[]')
skillIsSet: (skill) ->
@get('skills').indexOf(skill) > -1
joinSkills: ->
newS... | true | Voice.SkillSettings = Ember.Mixin.create({
splitSkills: ( ->
Ember.keys(env.skills).forEach (skill) =>
key = "PI:KEY:<KEY>END_PI
val = @skillIsSet(skill)
@set(key, val) if @get(key) != val
).observes('skills.[]')
skillIsSet: (skill) ->
@get('skills').indexOf(skill) > -1
joinSkills... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9989604949951172,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-http-status-code.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... | 163882 | # 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": "scura.PNG)\n - Studying the mechanism of vision: Hubel & Wiesel, 1959, Finding out that visual processin",
"end": 790,
"score": 0.9735404253005981,
"start": 785,
"tag": "NAME",
"value": "Hubel"
},
{
"context": "G)\n - Studying the mechanism of vision: Hubel & Wies... | _posts/notes/903a3585-b87c-419a-bf7d-5454ee6dd38d.cson | rpblic/rpblic.github.io | 0 | createdAt: "2018-09-22T05:43:10.328Z"
updatedAt: "2018-09-27T08:11:56.373Z"
type: "MARKDOWN_NOTE"
folder: "418af029155901b7f280"
title: ""
content: '''
---
layout: post
title: Lecture 1 Introduction to Convolutional Neural Networks for Visual Recognition
category: Dl.cs231n.lecture
tags: ['DeepLearning', 'CS2... | 70786 | createdAt: "2018-09-22T05:43:10.328Z"
updatedAt: "2018-09-27T08:11:56.373Z"
type: "MARKDOWN_NOTE"
folder: "418af029155901b7f280"
title: ""
content: '''
---
layout: post
title: Lecture 1 Introduction to Convolutional Neural Networks for Visual Recognition
category: Dl.cs231n.lecture
tags: ['DeepLearning', 'CS2... | true | createdAt: "2018-09-22T05:43:10.328Z"
updatedAt: "2018-09-27T08:11:56.373Z"
type: "MARKDOWN_NOTE"
folder: "418af029155901b7f280"
title: ""
content: '''
---
layout: post
title: Lecture 1 Introduction to Convolutional Neural Networks for Visual Recognition
category: Dl.cs231n.lecture
tags: ['DeepLearning', 'CS2... |
[
{
"context": "over to the actual wrappers\n#\n# Copyright (C) 2013 Nikolay Nemshilov\n#\next Wrapper,\n Cache: Wrapper_Cache # the dom-w",
"end": 175,
"score": 0.9998860359191895,
"start": 158,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dom/src/casting.coffee | lovely-io/lovely.io-stl | 2 | #
# The `Wrapper` auto-casting extensions
# we keep them in a separated file so that
# they weren't copied over to the actual wrappers
#
# Copyright (C) 2013 Nikolay Nemshilov
#
ext Wrapper,
Cache: Wrapper_Cache # the dom-wrappers registry
Tags: {} # tags specific wrappers
#
# Sets a default dom wrapper for t... | 132634 | #
# The `Wrapper` auto-casting extensions
# we keep them in a separated file so that
# they weren't copied over to the actual wrappers
#
# Copyright (C) 2013 <NAME>
#
ext Wrapper,
Cache: Wrapper_Cache # the dom-wrappers registry
Tags: {} # tags specific wrappers
#
# Sets a default dom wrapper for the tag
#
... | true | #
# The `Wrapper` auto-casting extensions
# we keep them in a separated file so that
# they weren't copied over to the actual wrappers
#
# Copyright (C) 2013 PI:NAME:<NAME>END_PI
#
ext Wrapper,
Cache: Wrapper_Cache # the dom-wrappers registry
Tags: {} # tags specific wrappers
#
# Sets a default dom wrapper fo... |
[
{
"context": "\n## Env\n{ NODE_ENV, PORT } = process.env\n\nNAME = 'StahkPhotos'\nENV_KEY = \"#{NAME}-Env\"\n\n## New Relic\nrequire('n",
"end": 113,
"score": 0.9982923269271851,
"start": 102,
"tag": "USERNAME",
"value": "StahkPhotos"
},
{
"context": "RT } = process.env\n\nNAME = 'St... | src/backend/server.coffee | geekjuice/StahkPhotos | 8 |
###
Backend
###
Enviro = require('./lib/enviro')
## Env
{ NODE_ENV, PORT } = process.env
NAME = 'StahkPhotos'
ENV_KEY = "#{NAME}-Env"
## New Relic
require('newrelic') if Enviro.isDeployed()
## Requires
express = require('express')
bodyParser = require('body-parser')
logger = require('morgan')
debug ... | 85579 |
###
Backend
###
Enviro = require('./lib/enviro')
## Env
{ NODE_ENV, PORT } = process.env
NAME = 'StahkPhotos'
ENV_KEY = <KEY>"
## New Relic
require('newrelic') if Enviro.isDeployed()
## Requires
express = require('express')
bodyParser = require('body-parser')
logger = require('morgan')
debug = re... | true |
###
Backend
###
Enviro = require('./lib/enviro')
## Env
{ NODE_ENV, PORT } = process.env
NAME = 'StahkPhotos'
ENV_KEY = PI:KEY:<KEY>END_PI"
## New Relic
require('newrelic') if Enviro.isDeployed()
## Requires
express = require('express')
bodyParser = require('body-parser')
logger = require('morgan')
deb... |
[
{
"context": " \"Should Map\", ->\n # See: https://github.com/codecombat/aether/issues/97\n code = \"return (num for nu",
"end": 2164,
"score": 0.9995452761650085,
"start": 2154,
"tag": "USERNAME",
"value": "codecombat"
},
{
"context": "r is not supported in CSR yet: https:... | spec/aether/cs_spec.coffee | cihatislamdede/codecombat | 4,858 | Aether = require '../aether'
describe "CS test Suite!", ->
describe "CS compilation", ->
aether = new Aether language: "coffeescript"
it "Should compile functions", ->
code = """
return 1000
"""
aether.transpile(code)
expect(aether.run()).toEqual 1000
expect(aether.probl... | 145025 | Aether = require '../aether'
describe "CS test Suite!", ->
describe "CS compilation", ->
aether = new Aether language: "coffeescript"
it "Should compile functions", ->
code = """
return 1000
"""
aether.transpile(code)
expect(aether.run()).toEqual 1000
expect(aether.probl... | true | Aether = require '../aether'
describe "CS test Suite!", ->
describe "CS compilation", ->
aether = new Aether language: "coffeescript"
it "Should compile functions", ->
code = """
return 1000
"""
aether.transpile(code)
expect(aether.run()).toEqual 1000
expect(aether.probl... |
[
{
"context": ".query -> mysql select where, order, limit\n@author Alex Suslov <suslov@me.com>\n@copyright MIT\n###\nQuery =\n quer",
"end": 90,
"score": 0.999589741230011,
"start": 79,
"tag": "NAME",
"value": "Alex Suslov"
},
{
"context": "l select where, order, limit\n@author Alex ... | coffee/index.coffee | alexsuslov/wc-sql-query | 0 | 'use strict'
###
Express req.query -> mysql select where, order, limit
@author Alex Suslov <suslov@me.com>
@copyright MIT
###
Query =
query:false
###
main
@param query[String] string from EXPRESS req
@return Object
where: String
order: String
limit: String
###
main:(@query, @types)->
@whe... | 204689 | 'use strict'
###
Express req.query -> mysql select where, order, limit
@author <NAME> <<EMAIL>>
@copyright MIT
###
Query =
query:false
###
main
@param query[String] string from EXPRESS req
@return Object
where: String
order: String
limit: String
###
main:(@query, @types)->
@where = ''
... | true | 'use strict'
###
Express req.query -> mysql select where, order, limit
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
@copyright MIT
###
Query =
query:false
###
main
@param query[String] string from EXPRESS req
@return Object
where: String
order: String
limit: String
###
main:(@query, ... |
[
{
"context": "oap\"\n\ncompJID = \"comp.exmaple.tld\"\nclientJID = \"client@exmaple.tld\"\n\nmockComp =\n channels: {}\n send: (data) ->\n ",
"end": 347,
"score": 0.9998481273651123,
"start": 329,
"tag": "EMAIL",
"value": "client@exmaple.tld"
},
{
"context": " new ltx.Element \... | spec/Application.spec.coffee | flosse/node-xmpp-joap | 0 | chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use sinonChai
should = chai.should()
ltx = require 'ltx'
Application = require '../src/Application'
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
compJID = "comp.exmaple.tld"
clie... | 215362 | chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use sinonChai
should = chai.should()
ltx = require 'ltx'
Application = require '../src/Application'
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
compJID = "comp.exmaple.tld"
clie... | true | chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
chai.use sinonChai
should = chai.should()
ltx = require 'ltx'
Application = require '../src/Application'
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
compJID = "comp.exmaple.tld"
clie... |
[
{
"context": "r c in [0 ... num]\n i += 1\n name = 'キャラクター ' + i\n characters.push\n name: ",
"end": 3178,
"score": 0.9953145384788513,
"start": 3172,
"tag": "NAME",
"value": "キャラクター"
}
] | src/main/coffeescript/nz/SceneTitleMenu.coffee | fukuyama/nineteen | 2 | ###*
* @file SceneTitleMenu.coffee
* タイトルシーン
###
phina.define 'nz.SceneTitleMenu',
superClass: nz.SceneBase
###* 初期化
* @classdesc タイトルシーンクラス
* @constructor nz.SceneTitleMenu
###
init: (options) ->
@superInit(options)
@one 'enter', ->
@_main_menu()
return
#@on 'resume', ->
# ... | 91742 | ###*
* @file SceneTitleMenu.coffee
* タイトルシーン
###
phina.define 'nz.SceneTitleMenu',
superClass: nz.SceneBase
###* 初期化
* @classdesc タイトルシーンクラス
* @constructor nz.SceneTitleMenu
###
init: (options) ->
@superInit(options)
@one 'enter', ->
@_main_menu()
return
#@on 'resume', ->
# ... | true | ###*
* @file SceneTitleMenu.coffee
* タイトルシーン
###
phina.define 'nz.SceneTitleMenu',
superClass: nz.SceneBase
###* 初期化
* @classdesc タイトルシーンクラス
* @constructor nz.SceneTitleMenu
###
init: (options) ->
@superInit(options)
@one 'enter', ->
@_main_menu()
return
#@on 'resume', ->
# ... |
[
{
"context": ".addprinc\n admin: krb5\n principal: \"nikita@#{krb5.realm}\"\n .should.be.rejectedWith\n ",
"end": 844,
"score": 0.9476397037506104,
"start": 838,
"tag": "EMAIL",
"value": "nikita"
},
{
"context": " await @krb5.delprinc\n principal... | packages/krb5/test/addprinc.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 0 |
nikita = require '@nikitajs/core/lib'
{tags, config, krb5} = require './test'
they = require('mocha-they')(config)
return unless tags.krb5_addprinc
describe 'krb5.addprinc', ->
describe 'schema', ->
it 'admin and principal must be provided', ->
nikita
.krb5.addprinc
randkey: true
... | 215391 |
nikita = require '@nikitajs/core/lib'
{tags, config, krb5} = require './test'
they = require('mocha-they')(config)
return unless tags.krb5_addprinc
describe 'krb5.addprinc', ->
describe 'schema', ->
it 'admin and principal must be provided', ->
nikita
.krb5.addprinc
randkey: true
... | true |
nikita = require '@nikitajs/core/lib'
{tags, config, krb5} = require './test'
they = require('mocha-they')(config)
return unless tags.krb5_addprinc
describe 'krb5.addprinc', ->
describe 'schema', ->
it 'admin and principal must be provided', ->
nikita
.krb5.addprinc
randkey: true
... |
[
{
"context": "e label tags have an associated control.\n# @author Jesse Beach\n###\n\n# ------------------------------------------",
"end": 113,
"score": 0.9998565912246704,
"start": 102,
"tag": "NAME",
"value": "Jesse Beach"
}
] | src/tests/rules/label-has-associated-control.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview Enforce label tags have an associated control.
# @author Jesse Beach
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{Ru... | 180167 | ### eslint-env jest ###
###*
# @fileoverview Enforce label tags have an associated control.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{RuleTes... | true | ### eslint-env jest ###
###*
# @fileoverview Enforce label tags have an associated control.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require '... |
[
{
"context": "rts = [\n {\n \"id\": 0,\n \"password\": \"$2a$10$I168m1WzybPQvNsQdzodZeF/YdjKOccdicgK5GYqDYe8idsRTwB/y\",\n \"name\": \"Cortez Waters\",\n \"email",
"end": 123,
"score": 0.9920067191123962,
"start": 62,
"tag": "PASSWORD",
"value": "\"$2a$10$I168m... | _src/test/dummydata.coffee | mpneuried/tcs_node_auth | 1 | module.exports = [
{
"id": 0,
"password": "$2a$10$I168m1WzybPQvNsQdzodZeF/YdjKOccdicgK5GYqDYe8idsRTwB/y",
"name": "Cortez Waters",
"email": "cortezwaters@example.com"
},
{
"id": 1,
"password": "$2a$10$I168m1WzybPQvNsQdzodZeF/YdjKOccdicgK5GYqDYe8idsRTwB/y",
... | 75401 | module.exports = [
{
"id": 0,
"password": <PASSWORD>",
"name": "<NAME>",
"email": "<EMAIL>"
},
{
"id": 1,
"password": <PASSWORD>",
"name": "<NAME>",
"email": "<EMAIL>"
},
{
"id": 2,
"password": <PASSWORD>",
"name... | true | module.exports = [
{
"id": 0,
"password": PI:PASSWORD:<PASSWORD>END_PI",
"name": "PI:NAME:<NAME>END_PI",
"email": "PI:EMAIL:<EMAIL>END_PI"
},
{
"id": 1,
"password": PI:PASSWORD:<PASSWORD>END_PI",
"name": "PI:NAME:<NAME>END_PI",
"email": "PI:EMA... |
[
{
"context": "ar-plot.coffee)\n#\n# Air Sciences Inc. - 2016\n# Jacob Fielding\n#\n\nwindow.Plotter ||= {}\n\nwindow.Plotter.BarPlot ",
"end": 144,
"score": 0.9997162818908691,
"start": 130,
"tag": "NAME",
"value": "Jacob Fielding"
},
{
"context": "y, row of data\n result[ke... | coffee/bar-plot.coffee | airsciences/metplotter | 0 | #
# Northwest Avalanche Center (NWAC)
# Plotter Tools - D3 V.4 Line Plot (bar-plot.coffee)
#
# Air Sciences Inc. - 2016
# Jacob Fielding
#
window.Plotter ||= {}
window.Plotter.BarPlot = class BarPlot
constructor: (plotter, data, options) ->
@preError = "BarPlot."
@plotter = plotter
@initialized ... | 34488 | #
# Northwest Avalanche Center (NWAC)
# Plotter Tools - D3 V.4 Line Plot (bar-plot.coffee)
#
# Air Sciences Inc. - 2016
# <NAME>
#
window.Plotter ||= {}
window.Plotter.BarPlot = class BarPlot
constructor: (plotter, data, options) ->
@preError = "BarPlot."
@plotter = plotter
@initialized = false
... | true | #
# Northwest Avalanche Center (NWAC)
# Plotter Tools - D3 V.4 Line Plot (bar-plot.coffee)
#
# Air Sciences Inc. - 2016
# PI:NAME:<NAME>END_PI
#
window.Plotter ||= {}
window.Plotter.BarPlot = class BarPlot
constructor: (plotter, data, options) ->
@preError = "BarPlot."
@plotter = plotter
@initia... |
[
{
"context": " key: 'app-key-1', id: 42 }\n @app2 = { key: 'app-key-2', id: 5 }\n @errorObject = {error: ''}\n ",
"end": 3983,
"score": 0.8069885969161987,
"start": 3975,
"tag": "KEY",
"value": "app-key-"
},
{
"context": "app).to.equal @app1\n expect(key).to.equa... | test/app_cache_test.coffee | jjzhang166/w3gram-server | 0 | async = require 'async'
AppList = W3gramServer.AppList
AppCache = W3gramServer.AppCache
describe 'AppCache', ->
beforeEach ->
@mockList = {}
@cache = new AppCache @mockList
describe '#getMak', ->
beforeEach ->
@mockList.getMakCallCount = 0
@mockList.getMak = (callback) ->
@getMakC... | 191154 | async = require 'async'
AppList = W3gramServer.AppList
AppCache = W3gramServer.AppCache
describe 'AppCache', ->
beforeEach ->
@mockList = {}
@cache = new AppCache @mockList
describe '#getMak', ->
beforeEach ->
@mockList.getMakCallCount = 0
@mockList.getMak = (callback) ->
@getMakC... | true | async = require 'async'
AppList = W3gramServer.AppList
AppCache = W3gramServer.AppCache
describe 'AppCache', ->
beforeEach ->
@mockList = {}
@cache = new AppCache @mockList
describe '#getMak', ->
beforeEach ->
@mockList.getMakCallCount = 0
@mockList.getMak = (callback) ->
@getMakC... |
[
{
"context": " for the language (\"js\", \"php\", \"c\", etc.)\nname: 'Cordy' # The title that will show up in grammar selecti",
"end": 123,
"score": 0.9851115345954895,
"start": 118,
"tag": "NAME",
"value": "Cordy"
}
] | grammars/cordy.cson | The-White-Dragon/language-cordy | 0 | scopeName: 'source.co' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: 'Cordy' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'co'
]
firstLineMatch: '' # A regular expression that is matched against t... | 90365 | scopeName: 'source.co' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: '<NAME>' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'co'
]
firstLineMatch: '' # A regular expression that is matched against ... | true | scopeName: 'source.co' # <scope> should be a short, unique indicator for the language ("js", "php", "c", etc.)
name: 'PI:NAME:<NAME>END_PI' # The title that will show up in grammar selection and on your status bar.
fileTypes: [ # An array of file extensions.
'co'
]
firstLineMatch: '' # A regular expression that is ma... |
[
{
"context": "showing', ->\n SettingsHelper.setCredentials 'foo@bar.baz', '0123456789abcdef0123456789abcdef'\n\n # Tes",
"end": 969,
"score": 0.9990857839584351,
"start": 958,
"tag": "EMAIL",
"value": "foo@bar.baz"
},
{
"context": " SettingsHelper.setCredentials 'foo@bar... | spec/views/select-core-view-spec.coffee | lukehoban/spark-dev | 1 | {WorkspaceView} = require 'atom'
$ = require('atom').$
SettingsHelper = require '../../lib/utils/settings-helper'
SparkStub = require('spark-dev-spec-stubs').spark
spark = require 'spark'
describe 'Select Core View', ->
activationPromise = null
selectCoreView = null
originalProfile = null
sparkIde = null
be... | 205138 | {WorkspaceView} = require 'atom'
$ = require('atom').$
SettingsHelper = require '../../lib/utils/settings-helper'
SparkStub = require('spark-dev-spec-stubs').spark
spark = require 'spark'
describe 'Select Core View', ->
activationPromise = null
selectCoreView = null
originalProfile = null
sparkIde = null
be... | true | {WorkspaceView} = require 'atom'
$ = require('atom').$
SettingsHelper = require '../../lib/utils/settings-helper'
SparkStub = require('spark-dev-spec-stubs').spark
spark = require 'spark'
describe 'Select Core View', ->
activationPromise = null
selectCoreView = null
originalProfile = null
sparkIde = null
be... |
[
{
"context": "tocol module', ->\n protocolName = 'sp'\n text = 'valar morghulis'\n\n afterEach (done) ->\n protocol.unregisterPr",
"end": 224,
"score": 0.9997420907020569,
"start": 209,
"tag": "NAME",
"value": "valar morghulis"
},
{
"context": "t)\n server.close()\n ... | spec/api-protocol-spec.coffee | Evpok/electron | 1 | assert = require 'assert'
http = require 'http'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
protocolName = 'sp'
text = 'valar morghulis'
afterEach (done) ->
protocol.unregisterProtocol protocolName, ->
protocol.uninter... | 195396 | assert = require 'assert'
http = require 'http'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
protocolName = 'sp'
text = '<NAME>'
afterEach (done) ->
protocol.unregisterProtocol protocolName, ->
protocol.uninterceptProto... | true | assert = require 'assert'
http = require 'http'
path = require 'path'
remote = require 'remote'
protocol = remote.require 'protocol'
describe 'protocol module', ->
protocolName = 'sp'
text = 'PI:NAME:<NAME>END_PI'
afterEach (done) ->
protocol.unregisterProtocol protocolName, ->
protocol.un... |
[
{
"context": "thub.com/thrustlabs/contact-parser\n\nCopyright 2014 Jason Doucette, Thrust Labs\n\nPermission is hereby granted, free ",
"end": 132,
"score": 0.9998777508735657,
"start": 118,
"tag": "NAME",
"value": "Jason Doucette"
}
] | src/contact-parser.coffee | thrustlabs/contact-parser | 10 | ###
ContactParser: an address parser class
Version 1.0
https://github.com/thrustlabs/contact-parser
Copyright 2014 Jason Doucette, Thrust Labs
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 wi... | 83298 | ###
ContactParser: an address parser class
Version 1.0
https://github.com/thrustlabs/contact-parser
Copyright 2014 <NAME>, Thrust Labs
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 re... | true | ###
ContactParser: an address parser class
Version 1.0
https://github.com/thrustlabs/contact-parser
Copyright 2014 PI:NAME:<NAME>END_PI, Thrust Labs
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 Softw... |
[
{
"context": "require('./pg_connection')\r\n\r\nmq_server = 'amqp://54.76.183.35:5672'\r\ncontext = require('rabbit.js').createConte",
"end": 135,
"score": 0.9995997548103333,
"start": 123,
"tag": "IP_ADDRESS",
"value": "54.76.183.35"
},
{
"context": ".js').createContext(mq_server);\... | python/environment_movement/world_movement.coffee | douglassquirrel/microservices-hackathon-july-2014 | 1 | Array.prototype.last = ()->
return this[-1..][0]
data_provider = require('./pg_connection')
mq_server = 'amqp://54.76.183.35:5672'
context = require('rabbit.js').createContext(mq_server);
exchange_name = 'alex2'
connected_rooms = []
users = {}
publish_movement_success = (user_id,room)->
console... | 112832 | Array.prototype.last = ()->
return this[-1..][0]
data_provider = require('./pg_connection')
mq_server = 'amqp://192.168.3.11:5672'
context = require('rabbit.js').createContext(mq_server);
exchange_name = 'alex2'
connected_rooms = []
users = {}
publish_movement_success = (user_id,room)->
console... | true | Array.prototype.last = ()->
return this[-1..][0]
data_provider = require('./pg_connection')
mq_server = 'amqp://PI:IP_ADDRESS:192.168.3.11END_PI:5672'
context = require('rabbit.js').createContext(mq_server);
exchange_name = 'alex2'
connected_rooms = []
users = {}
publish_movement_success = (user_id,... |
[
{
"context": "###*\n@license Sticky-kit v1.1.3 | MIT | Leaf Corcoran 2015 | http://leafo.net\n###\n\n$ = window.jQuery\n\nw",
"end": 53,
"score": 0.9993537664413452,
"start": 40,
"tag": "NAME",
"value": "Leaf Corcoran"
}
] | dist/assets/bower_components/sticky-kit/sticky-kit.coffee | pourabkarchaudhuri/supervised-data-tagger-dashboard | 0 | ###*
@license Sticky-kit v1.1.3 | MIT | Leaf Corcoran 2015 | http://leafo.net
###
$ = window.jQuery
win = $ window
$.fn.stick_in_parent = (opts={}) ->
{
sticky_class
inner_scrolling
recalc_every
parent: parent_selector
offset_top
spacer: manual_spacer
bottoming: enable_bottoming
} = op... | 143287 | ###*
@license Sticky-kit v1.1.3 | MIT | <NAME> 2015 | http://leafo.net
###
$ = window.jQuery
win = $ window
$.fn.stick_in_parent = (opts={}) ->
{
sticky_class
inner_scrolling
recalc_every
parent: parent_selector
offset_top
spacer: manual_spacer
bottoming: enable_bottoming
} = opts
o... | true | ###*
@license Sticky-kit v1.1.3 | MIT | PI:NAME:<NAME>END_PI 2015 | http://leafo.net
###
$ = window.jQuery
win = $ window
$.fn.stick_in_parent = (opts={}) ->
{
sticky_class
inner_scrolling
recalc_every
parent: parent_selector
offset_top
spacer: manual_spacer
bottoming: enable_bottoming
... |
[
{
"context": "fierStackingShadowsBonusDamage\"\n\n\t@modifierName: \"Shadow Creep Bonus Damage\"\n\n\tactiveInHand: false\n\tactive",
"end": 267,
"score": 0.5755980610847473,
"start": 261,
"tag": "NAME",
"value": "Shadow"
},
{
"context": "adowsBonusDamage\"\n\n\t@modifierName: \"Shad... | app/sdk/modifiers/modifierStackingShadowsBonusDamage.coffee | willroberts/duelyst | 5 | Modifier = require './modifier'
ModifierStackingShadows = require './modifierStackingShadows'
class ModifierStackingShadowsBonusDamage extends Modifier
type: "ModifierStackingShadowsBonusDamage"
@type: "ModifierStackingShadowsBonusDamage"
@modifierName: "Shadow Creep Bonus Damage"
activeInHand: false
activeInD... | 159779 | Modifier = require './modifier'
ModifierStackingShadows = require './modifierStackingShadows'
class ModifierStackingShadowsBonusDamage extends Modifier
type: "ModifierStackingShadowsBonusDamage"
@type: "ModifierStackingShadowsBonusDamage"
@modifierName: "<NAME> Creep B<NAME> Damage"
activeInHand: false
activeI... | true | Modifier = require './modifier'
ModifierStackingShadows = require './modifierStackingShadows'
class ModifierStackingShadowsBonusDamage extends Modifier
type: "ModifierStackingShadowsBonusDamage"
@type: "ModifierStackingShadowsBonusDamage"
@modifierName: "PI:NAME:<NAME>END_PI Creep BPI:NAME:<NAME>END_PI Damage"
... |
[
{
"context": "if logged_in\r\n Accounts.createUser email: \"you@example.com\", password: \"bob\", ->\r\n if as_admin\r\n ",
"end": 375,
"score": 0.999915599822998,
"start": 360,
"tag": "EMAIL",
"value": "you@example.com"
},
{
"context": "s.createUser email: \"you@ex... | packages/houston/test/test_app/tests/jasmine/client/integration/Login.coffee | reillyisawesome/Nectar | 3 | eventually = (condition, cb) ->
poll = setInterval(->
if condition()
clearInterval poll
cb()
, 200)
setup = ({logged_in, as_admin, other_admin}, cb) ->
run_actual_test = cb
Meteor.call "test/clear_users", (err) ->
expect(err).toBeUndefined()
_setup_user = ->
if logged_... | 76337 | eventually = (condition, cb) ->
poll = setInterval(->
if condition()
clearInterval poll
cb()
, 200)
setup = ({logged_in, as_admin, other_admin}, cb) ->
run_actual_test = cb
Meteor.call "test/clear_users", (err) ->
expect(err).toBeUndefined()
_setup_user = ->
if logged_... | true | eventually = (condition, cb) ->
poll = setInterval(->
if condition()
clearInterval poll
cb()
, 200)
setup = ({logged_in, as_admin, other_admin}, cb) ->
run_actual_test = cb
Meteor.call "test/clear_users", (err) ->
expect(err).toBeUndefined()
_setup_user = ->
if logged_... |
[
{
"context": " collection = new Collection([\n person('john')\n person('fred')\n ])\n\n it \"",
"end": 12298,
"score": 0.9984258413314819,
"start": 12294,
"tag": "NAME",
"value": "john"
},
{
"context": "tion([\n person('john')\n person... | public/js/plugins/onionjs-master/test/collection_spec.coffee | kemiedon/android_project | 6 | Collection = requirejs('onion/collection')
eventEmitter = requirejs('onion/event_emitter')
extend = requirejs('onion/utils/extend')
describe "Collection", ->
describe "array-like properties", ->
collection = null
beforeEach ->
collection = new Collection([
{number: 4}
{number: 27}
... | 35708 | Collection = requirejs('onion/collection')
eventEmitter = requirejs('onion/event_emitter')
extend = requirejs('onion/utils/extend')
describe "Collection", ->
describe "array-like properties", ->
collection = null
beforeEach ->
collection = new Collection([
{number: 4}
{number: 27}
... | true | Collection = requirejs('onion/collection')
eventEmitter = requirejs('onion/event_emitter')
extend = requirejs('onion/utils/extend')
describe "Collection", ->
describe "array-like properties", ->
collection = null
beforeEach ->
collection = new Collection([
{number: 4}
{number: 27}
... |
[
{
"context": "\n duration = duration_in_seconds*1000\n key = \"#{workspace_id}|#{user_id}\"\n ignore_until = Date.now()+duration\n @ignor",
"end": 2048,
"score": 0.9992135167121887,
"start": 2020,
"tag": "KEY",
"value": "\"#{workspace_id}|#{user_id}\""
},
{
"context": " s... | team-one/bmf/lib/base-bot.coffee | BroadSoft-Xtended/sample-apps | 2 | #-------------------------------------------------------------------------------
# Base Imports
#-------------------------------------------------------------------------------
LogUtil = require('inote-util').LogUtil
Util = require('inote-util').Util
WebSocket = require 'ws... | 36306 | #-------------------------------------------------------------------------------
# Base Imports
#-------------------------------------------------------------------------------
LogUtil = require('inote-util').LogUtil
Util = require('inote-util').Util
WebSocket = require 'ws... | true | #-------------------------------------------------------------------------------
# Base Imports
#-------------------------------------------------------------------------------
LogUtil = require('inote-util').LogUtil
Util = require('inote-util').Util
WebSocket = require 'ws... |
[
{
"context": ": appendRules\n expect(praiseSinger.givePraise 'John' ).toBe(FILL_ME_IN)\n\n praiseSinger.givePraise ",
"end": 1868,
"score": 0.9987109899520874,
"start": 1864,
"tag": "NAME",
"value": "John"
},
{
"context": "ndDoubleRules\n expect(praiseSinger.givePraise 'Mary... | koans/AboutFunctions.coffee | gaslight/coffeescript-koans | 1 | describe 'About Functions', ->
it 'should declare functions', ->
# In Coffeescript, the value of the last expression is the return value of the function
add = (a, b) -> a + b
expect(add(1, 2)).toBe(FILL_ME_IN)
it 'should know internal variables override outer variables', ->
message = 'Outer'
g... | 60544 | describe 'About Functions', ->
it 'should declare functions', ->
# In Coffeescript, the value of the last expression is the return value of the function
add = (a, b) -> a + b
expect(add(1, 2)).toBe(FILL_ME_IN)
it 'should know internal variables override outer variables', ->
message = 'Outer'
g... | true | describe 'About Functions', ->
it 'should declare functions', ->
# In Coffeescript, the value of the last expression is the return value of the function
add = (a, b) -> a + b
expect(add(1, 2)).toBe(FILL_ME_IN)
it 'should know internal variables override outer variables', ->
message = 'Outer'
g... |
[
{
"context": "STS = true\n\n# Helpers\n\ngetNock = (host = 'http://127.0.0.1:4001') ->\n nock host\n\n# Tests for utility functi",
"end": 202,
"score": 0.5802416801452637,
"start": 194,
"tag": "IP_ADDRESS",
"value": "27.0.0.1"
},
{
"context": "low 307 redirects', (done) ->\n (n... | node_modules/node-etcd/test/index.coffee | bugsysBugs/cote-workshop-secured | 0 | should = require 'should'
nock = require 'nock'
Etcd = require '../src/index.coffee'
# Set env var to skip timeouts
process.env.RUNNING_UNIT_TESTS = true
# Helpers
getNock = (host = 'http://127.0.0.1:4001') ->
nock host
# Tests for utility functions
describe 'Utility', ->
etcd = new Etcd
describe '#_stripS... | 193695 | should = require 'should'
nock = require 'nock'
Etcd = require '../src/index.coffee'
# Set env var to skip timeouts
process.env.RUNNING_UNIT_TESTS = true
# Helpers
getNock = (host = 'http://1192.168.127.12:4001') ->
nock host
# Tests for utility functions
describe 'Utility', ->
etcd = new Etcd
describe '#_... | true | should = require 'should'
nock = require 'nock'
Etcd = require '../src/index.coffee'
# Set env var to skip timeouts
process.env.RUNNING_UNIT_TESTS = true
# Helpers
getNock = (host = 'http://1PI:IP_ADDRESS:192.168.127.12END_PI:4001') ->
nock host
# Tests for utility functions
describe 'Utility', ->
etcd = new ... |
[
{
"context": "dminConfig =\n name: Config.name\n adminEmails: ['ghlndsl@126.com', 'sivagao@126.com']\n collections:\n Posts:\n ",
"end": 67,
"score": 0.9999264478683472,
"start": 52,
"tag": "EMAIL",
"value": "ghlndsl@126.com"
},
{
"context": ": Config.name\n adminEmails: ['gh... | lib/_config/admin_config.coffee | gaohailang/plaza-quiz | 0 | @AdminConfig =
name: Config.name
adminEmails: ['ghlndsl@126.com', 'sivagao@126.com']
collections:
Posts:
color: 'red'
icon: 'pencil'
extraFields: ['owner']
tableColumns: [
{ label: 'Title', name: 'title' }
{ label: 'User', name: 'author()', template: 'adminUserCell' }
... | 176187 | @AdminConfig =
name: Config.name
adminEmails: ['<EMAIL>', '<EMAIL>']
collections:
Posts:
color: 'red'
icon: 'pencil'
extraFields: ['owner']
tableColumns: [
{ label: 'Title', name: 'title' }
{ label: 'User', name: 'author()', template: 'adminUserCell' }
]
Comme... | true | @AdminConfig =
name: Config.name
adminEmails: ['PI:EMAIL:<EMAIL>END_PI', 'PI:EMAIL:<EMAIL>END_PI']
collections:
Posts:
color: 'red'
icon: 'pencil'
extraFields: ['owner']
tableColumns: [
{ label: 'Title', name: 'title' }
{ label: 'User', name: 'author()', template: 'admi... |
[
{
"context": "scription: Display 5 latest google tasks\n# Author: Ryuei Sasaki\n# Github: https://github.com/louixs/\n\n# Dependenc",
"end": 247,
"score": 0.9998798370361328,
"start": 235,
"tag": "NAME",
"value": "Ryuei Sasaki"
},
{
"context": "Author: Ryuei Sasaki\n# Github: https:/... | tasks.widget/tasks.coffee | louixs/ubersicht_tasks | 2 | # Todo
# toggle between different mode
# latest x tasks based on updated date - done
# tasks from certain list based on list names
# Name: Google Tasks for Übersicht using oauth2
# Description: Display 5 latest google tasks
# Author: Ryuei Sasaki
# Github: https://github.com/louixs/
# Dependencies. Best to leave them... | 2199 | # Todo
# toggle between different mode
# latest x tasks based on updated date - done
# tasks from certain list based on list names
# Name: Google Tasks for Übersicht using oauth2
# Description: Display 5 latest google tasks
# Author: <NAME>
# Github: https://github.com/louixs/
# Dependencies. Best to leave them alone... | true | # Todo
# toggle between different mode
# latest x tasks based on updated date - done
# tasks from certain list based on list names
# Name: Google Tasks for Übersicht using oauth2
# Description: Display 5 latest google tasks
# Author: PI:NAME:<NAME>END_PI
# Github: https://github.com/louixs/
# Dependencies. Best to le... |
[
{
"context": " target = 'published'\n key = 'viewInstance'\n\n if widget.isPreview\n target = ",
"end": 754,
"score": 0.9888869524002075,
"start": 742,
"tag": "KEY",
"value": "viewInstance"
},
{
"context": "\n target = 'preview'\n ... | client/app/lib/widgetcontroller.coffee | ezgikaysi/koding | 1 | htmlencode = require 'htmlencode'
kookies = require 'kookies'
remote = require('./remote').getInstance()
kd = require 'kd'
KDController = kd.Controller
module.exports = class WidgetController extends KDController
constructor: (options = {}, data) ->
super options, data
@placeholders = {}
@widgets ... | 207481 | htmlencode = require 'htmlencode'
kookies = require 'kookies'
remote = require('./remote').getInstance()
kd = require 'kd'
KDController = kd.Controller
module.exports = class WidgetController extends KDController
constructor: (options = {}, data) ->
super options, data
@placeholders = {}
@widgets ... | true | htmlencode = require 'htmlencode'
kookies = require 'kookies'
remote = require('./remote').getInstance()
kd = require 'kd'
KDController = kd.Controller
module.exports = class WidgetController extends KDController
constructor: (options = {}, data) ->
super options, data
@placeholders = {}
@widgets ... |
[
{
"context": "operty('url').\n to.equal \"#{api_url}?key=blahblah\"\n\n describe '#call', ->\n linkshrink = new Lin",
"end": 1109,
"score": 0.7796754240989685,
"start": 1105,
"tag": "KEY",
"value": "blah"
}
] | test/linkshrink_test.coffee | jonahoffline/node-linkshrink | 0 | {LinkShrink} = require '../index'
expect = require('chai').expect
describe 'LinkShrink', ->
it '#new', ->
linkshrink = new LinkShrink('something')
expect(linkshrink).to.have.property('api_key').to.equal 'something'
it '#defaults', ->
linkshrink = new LinkShrink
expect(linkshrink).to.have.property(... | 142354 | {LinkShrink} = require '../index'
expect = require('chai').expect
describe 'LinkShrink', ->
it '#new', ->
linkshrink = new LinkShrink('something')
expect(linkshrink).to.have.property('api_key').to.equal 'something'
it '#defaults', ->
linkshrink = new LinkShrink
expect(linkshrink).to.have.property(... | true | {LinkShrink} = require '../index'
expect = require('chai').expect
describe 'LinkShrink', ->
it '#new', ->
linkshrink = new LinkShrink('something')
expect(linkshrink).to.have.property('api_key').to.equal 'something'
it '#defaults', ->
linkshrink = new LinkShrink
expect(linkshrink).to.have.property(... |
[
{
"context": "--------------------\\n\\n'\n res.write \"The name is Bond...hey, no, it is #{req.post['name'] or 'unknown'}",
"end": 1459,
"score": 0.9191706776618958,
"start": 1455,
"tag": "NAME",
"value": "Bond"
},
{
"context": "1], 'base64').toString().split ':'\n if usr is 'sa... | images/Postman.app/Contents/Resources/app/node_modules/node-simple-router/test/common/test_router.coffee | longjo/longjo.github.io | 7 | #!/usr/bin/env coffee
Router = require '../../lib/router'
http = require 'http'
router = Router(list_dir: true)
###
Example routes
###
#router.get "/", (req, res) ->
# res.end "Home"
router.get "/hello", (req, res) ->
res.end "Hello, World!, Hola, Mundo!"
router.get "/users", (req, res) ->
res.writeHead(... | 46174 | #!/usr/bin/env coffee
Router = require '../../lib/router'
http = require 'http'
router = Router(list_dir: true)
###
Example routes
###
#router.get "/", (req, res) ->
# res.end "Home"
router.get "/hello", (req, res) ->
res.end "Hello, World!, Hola, Mundo!"
router.get "/users", (req, res) ->
res.writeHead(... | true | #!/usr/bin/env coffee
Router = require '../../lib/router'
http = require 'http'
router = Router(list_dir: true)
###
Example routes
###
#router.get "/", (req, res) ->
# res.end "Home"
router.get "/hello", (req, res) ->
res.end "Hello, World!, Hola, Mundo!"
router.get "/users", (req, res) ->
res.writeHead(... |
[
{
"context": "tyEmail.options = \n\t\ttwitter: 'http://twitter.com/Royal_Arse'\n\t\twebsite: 'http://cacheflow.ca'\n\n\t\tsiteName: 'J",
"end": 84,
"score": 0.9995740652084351,
"start": 74,
"tag": "USERNAME",
"value": "Royal_Arse"
},
{
"context": "e'\n\t\twebsite: 'http://cacheflow.c... | both/_config/emails.coffee | DeBraid/jetfile | 0 | if Meteor.isServer
PrettyEmail.options =
twitter: 'http://twitter.com/Royal_Arse'
website: 'http://cacheflow.ca'
siteName: 'Jetfile'
companyAddress: 'Toronto, ON'
companyName: 'Jetfile'
companyUrl: 'http://jetfile.meteor.com' | 26685 | if Meteor.isServer
PrettyEmail.options =
twitter: 'http://twitter.com/Royal_Arse'
website: 'http://cacheflow.ca'
siteName: '<NAME>file'
companyAddress: 'Toronto, ON'
companyName: '<NAME>'
companyUrl: 'http://jetfile.meteor.com' | true | if Meteor.isServer
PrettyEmail.options =
twitter: 'http://twitter.com/Royal_Arse'
website: 'http://cacheflow.ca'
siteName: 'PI:NAME:<NAME>END_PIfile'
companyAddress: 'Toronto, ON'
companyName: 'PI:NAME:<NAME>END_PI'
companyUrl: 'http://jetfile.meteor.com' |
[
{
"context": "escapes html-like text\", ->\n renderer.message 'joe', '<a \"evil.jpg\"/>'\n expect(renderer._addMessa",
"end": 818,
"score": 0.9695072174072266,
"start": 815,
"tag": "NAME",
"value": "joe"
}
] | test/window_message_renderer_test.coffee | nornagon/ircv | 20 | describe "A window message renderer", ->
surface = renderer = undefined
message = (num) ->
msg = $ $('.message', surface)[num]
{ source: $(msg.children()[0]), content: $(msg.children()[1]) }
beforeEach ->
mocks.dom.setUp()
surface = $ '<div>'
win = {
$messages: surface
isScrolled... | 168128 | describe "A window message renderer", ->
surface = renderer = undefined
message = (num) ->
msg = $ $('.message', surface)[num]
{ source: $(msg.children()[0]), content: $(msg.children()[1]) }
beforeEach ->
mocks.dom.setUp()
surface = $ '<div>'
win = {
$messages: surface
isScrolled... | true | describe "A window message renderer", ->
surface = renderer = undefined
message = (num) ->
msg = $ $('.message', surface)[num]
{ source: $(msg.children()[0]), content: $(msg.children()[1]) }
beforeEach ->
mocks.dom.setUp()
surface = $ '<div>'
win = {
$messages: surface
isScrolled... |
[
{
"context": "#\n# grunt-amdify\n# https://github.com/ePages-de/grunt-amdify\n#\n# Copyright (c) 2014 Erik Müller\n#",
"end": 47,
"score": 0.9992435574531555,
"start": 38,
"tag": "USERNAME",
"value": "ePages-de"
},
{
"context": ".com/ePages-de/grunt-amdify\n#\n# Copyright (c) 2014 Er... | tasks/amdify.coffee | ePages-de/grunt-amdify | 2 | #
# grunt-amdify
# https://github.com/ePages-de/grunt-amdify
#
# Copyright (c) 2014 Erik Müller
# Licensed under the MIT license.
#
module.exports = (grunt) ->
# Please see the Grunt documentation for more information regarding task
# creation: http://gruntjs.com/creating-tasks
amdify = require('audit').w... | 120194 | #
# grunt-amdify
# https://github.com/ePages-de/grunt-amdify
#
# Copyright (c) 2014 <NAME>
# Licensed under the MIT license.
#
module.exports = (grunt) ->
# Please see the Grunt documentation for more information regarding task
# creation: http://gruntjs.com/creating-tasks
amdify = require('audit').wrap
... | true | #
# grunt-amdify
# https://github.com/ePages-de/grunt-amdify
#
# Copyright (c) 2014 PI:NAME:<NAME>END_PI
# Licensed under the MIT license.
#
module.exports = (grunt) ->
# Please see the Grunt documentation for more information regarding task
# creation: http://gruntjs.com/creating-tasks
amdify = require('... |
[
{
"context": "rent]\n\n console.log '\\n\\n\\nGIFSTORM.biz\\nby CHARLTON ROBERTS\\nhttp://charlton.io\\n@charltoons\\n\\n\\n'\n\n ",
"end": 536,
"score": 0.9998392462730408,
"start": 520,
"tag": "NAME",
"value": "CHARLTON ROBERTS"
}
] | src/coffee/gifstorm.coffee | charltoons/gifstorm | 1 | gifs = require('../../gifs.json')
class GIFSTORM
constructor: (@gifs)->
@body = document.body
@gif_path = './gifs/'
@exhibit = document.getElementById 'exhibit'
@title = document.getElementById 'title'
@artist = document.getElementById 'artist'
@source = document.ge... | 144046 | gifs = require('../../gifs.json')
class GIFSTORM
constructor: (@gifs)->
@body = document.body
@gif_path = './gifs/'
@exhibit = document.getElementById 'exhibit'
@title = document.getElementById 'title'
@artist = document.getElementById 'artist'
@source = document.ge... | true | gifs = require('../../gifs.json')
class GIFSTORM
constructor: (@gifs)->
@body = document.body
@gif_path = './gifs/'
@exhibit = document.getElementById 'exhibit'
@title = document.getElementById 'title'
@artist = document.getElementById 'artist'
@source = document.ge... |
[
{
"context": "Email: (browser) ->\n\n user =\n email : 'kodingtester@gmail.com'\n username : 'kodingqa'\n password : 'pa",
"end": 321,
"score": 0.9999158978462219,
"start": 299,
"tag": "EMAIL",
"value": "kodingtester@gmail.com"
},
{
"context": "l : 'kodingtest... | client/test/lib/register/register.coffee | ezgikaysi/koding | 1 | utils = require '../utils/utils.js'
helpers = require '../helpers/helpers.js'
expectValidationError = (browser) ->
browser
.waitForElementVisible '.validation-error', 20000 # Assertion
.end()
module.exports =
registerWithGravatarEmail: (browser) ->
user =
email : 'kodingtester@gmail.co... | 50890 | utils = require '../utils/utils.js'
helpers = require '../helpers/helpers.js'
expectValidationError = (browser) ->
browser
.waitForElementVisible '.validation-error', 20000 # Assertion
.end()
module.exports =
registerWithGravatarEmail: (browser) ->
user =
email : '<EMAIL>'
userna... | true | utils = require '../utils/utils.js'
helpers = require '../helpers/helpers.js'
expectValidationError = (browser) ->
browser
.waitForElementVisible '.validation-error', 20000 # Assertion
.end()
module.exports =
registerWithGravatarEmail: (browser) ->
user =
email : 'PI:EMAIL:<EMAIL>END_P... |
[
{
"context": "ice_obj : -> { name : @service_name(), username : @user.remote }\n is_remote_proof : () -> true\n\n @single_occup",
"end": 1624,
"score": 0.9835731387138367,
"start": 1612,
"tag": "USERNAME",
"value": "@user.remote"
},
{
"context": ".remote}\"\n\n to_key_value_pair ... | src/web_service.iced | tarsbase/proofs | 0 | {cieq,Base} = require './base'
{constants} = require './constants'
urlmod = require 'url'
#==========================================================================
class WebServiceBinding extends Base
#------
_v_customize_json : (ret) ->
ret.body.service = o if (o = @service_obj())?
#---------------
... | 79139 | {cieq,Base} = require './base'
{constants} = require './constants'
urlmod = require 'url'
#==========================================================================
class WebServiceBinding extends Base
#------
_v_customize_json : (ret) ->
ret.body.service = o if (o = @service_obj())?
#---------------
... | true | {cieq,Base} = require './base'
{constants} = require './constants'
urlmod = require 'url'
#==========================================================================
class WebServiceBinding extends Base
#------
_v_customize_json : (ret) ->
ret.body.service = o if (o = @service_obj())?
#---------------
... |
[
{
"context": " actually works on node.js\r\n * https://github.com/Meettya/whet.extend\r\n *\r\n * Copyright 2012, Dmitrii Karpi",
"end": 125,
"score": 0.9996122121810913,
"start": 118,
"tag": "USERNAME",
"value": "Meettya"
},
{
"context": "ub.com/Meettya/whet.extend\r\n *\r\n * Copyr... | node_modules/whet.extend/src/whet.extend.coffee | firojkabir/lsg | 0 | ###
* whet.extend v0.9.7
* Standalone port of jQuery.extend that actually works on node.js
* https://github.com/Meettya/whet.extend
*
* Copyright 2012, Dmitrii Karpich
* Released under the MIT License
###
module.exports = extend = (deep, target, args...) ->
unless _isClass deep, 'Boolean'
args... | 69131 | ###
* whet.extend v0.9.7
* Standalone port of jQuery.extend that actually works on node.js
* https://github.com/Meettya/whet.extend
*
* Copyright 2012, <NAME>
* Released under the MIT License
###
module.exports = extend = (deep, target, args...) ->
unless _isClass deep, 'Boolean'
args.unshift ... | true | ###
* whet.extend v0.9.7
* Standalone port of jQuery.extend that actually works on node.js
* https://github.com/Meettya/whet.extend
*
* Copyright 2012, PI:NAME:<NAME>END_PI
* Released under the MIT License
###
module.exports = extend = (deep, target, args...) ->
unless _isClass deep, 'Boolean'
... |
[
{
"context": "an input field does not satisfy a rule\n # @author Daniel Bartholomae\n class NotValidatorRule extends ValidatorRule\n ",
"end": 381,
"score": 0.9998905658721924,
"start": 363,
"tag": "NAME",
"value": "Daniel Bartholomae"
}
] | src/rules/Not.coffee | dbartholomae/node-validation-codes | 0 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that an input... | 197466 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that an input... | true | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that an input... |
[
{
"context": "\"\n\t\t\n\t\t# define details\n\t\tdetails = {\n\t\t\tAuthor: 'Chris Tate <chris@autocode.run>'\n\t\t\tLicense: 'Apache-2.0'\n\t\t",
"end": 956,
"score": 0.9998643398284912,
"start": 946,
"tag": "NAME",
"value": "Chris Tate"
},
{
"context": "ine details\n\t\tdetails = ... | cli/src/help.coffee | crystal/autocode-js | 92 | module.exports = (commands) ->
# load packages
pad = require 'pad'
getCommands = () ->
# define output
output = "Commands:\n\n"
# get longest command
command_max = 0
for command_name of commands
command = commands[command_name]
command_length = (command_name + (if command.opts then ' ' + comma... | 94861 | module.exports = (commands) ->
# load packages
pad = require 'pad'
getCommands = () ->
# define output
output = "Commands:\n\n"
# get longest command
command_max = 0
for command_name of commands
command = commands[command_name]
command_length = (command_name + (if command.opts then ' ' + comma... | true | module.exports = (commands) ->
# load packages
pad = require 'pad'
getCommands = () ->
# define output
output = "Commands:\n\n"
# get longest command
command_max = 0
for command_name of commands
command = commands[command_name]
command_length = (command_name + (if command.opts then ' ' + comma... |
[
{
"context": "eoverview Tests for no-else-return rule.\n# @author Ian Christian Myers\n###\n\n'use strict'\n\n#-----------------------------",
"end": 81,
"score": 0.9996768832206726,
"start": 62,
"tag": "NAME",
"value": "Ian Christian Myers"
}
] | src/tests/rules/no-else-return.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for no-else-return rule.
# @author Ian Christian Myers
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-else-return'... | 123472 | ###*
# @fileoverview Tests for no-else-return rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-else-return'
{RuleTester}... | true | ###*
# @fileoverview Tests for no-else-return rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/no-else-return... |
[
{
"context": "\nnikita = require '@nikitajs/core/lib'\n{tags, config} = require '../../test'\nt",
"end": 28,
"score": 0.8413353562355042,
"start": 23,
"tag": "USERNAME",
"value": "itajs"
},
{
"context": "ed.conf\"\n content:\n FallbackDNS: \"1.1.1.1\"\n reload:... | packages/file/test/types/systemd/resolved.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 31 |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.systemd.resolved', ->
they 'servers as a string', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file.typ... | 24086 |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.systemd.resolved', ->
they 'servers as a string', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file.typ... | true |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.systemd.resolved', ->
they 'servers as a string', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file.typ... |
[
{
"context": "given artwork', ->\n @user.set 'id': 'current-user'\n @user.savedArtwork('bitty', success: (save",
"end": 3385,
"score": 0.5433845520019531,
"start": 3381,
"tag": "USERNAME",
"value": "user"
},
{
"context": "'follows an artist', ->\n @user.followArtist 'a... | src/test/lib/current_user.coffee | kierangillen/force | 1 | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../lib/current_user'
describe 'CurrentUser', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@user = new CurrentUser fabricate 'user'
afterE... | 121940 | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../lib/current_user'
describe 'CurrentUser', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@user = new CurrentUser fabricate 'user'
afterE... | true | Q = require 'bluebird-q'
_ = require 'underscore'
Backbone = require 'backbone'
sinon = require 'sinon'
{ fabricate } = require 'antigravity'
CurrentUser = require '../../lib/current_user'
describe 'CurrentUser', ->
beforeEach ->
sinon.stub Backbone, 'sync'
@user = new CurrentUser fabricate 'user'
afterE... |
[
{
"context": "iew Tests for max-nested-callbacks rule.\n# @author Ian Christian Myers\n###\n\n'use strict'\n\n#-----------------------------",
"end": 87,
"score": 0.9996574521064758,
"start": 68,
"tag": "NAME",
"value": "Ian Christian Myers"
}
] | src/tests/rules/max-nested-callbacks.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for max-nested-callbacks rule.
# @author Ian Christian Myers
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max-... | 225185 | ###*
# @fileoverview Tests for max-nested-callbacks rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max-nested-callba... | true | ###*
# @fileoverview Tests for max-nested-callbacks rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/max... |
[
{
"context": "extends TypeTool\n @shouldParse: (key) -> key is 'tySh'\n\n constructor: (layer, length) ->\n super(lay",
"end": 153,
"score": 0.9845390319824219,
"start": 149,
"tag": "KEY",
"value": "tySh"
}
] | lib/psd/layer_info/legacy_typetool.coffee | LoginovIlya/psd.js | 2,218 | _ = require 'lodash'
TypeTool = require './typetool.coffee'
module.exports = class LegacyTypeTool extends TypeTool
@shouldParse: (key) -> key is 'tySh'
constructor: (layer, length) ->
super(layer, length)
@transform = {}
@faces = []
@styles = []
@lines = []
@type = 0
@scalingFactor = ... | 148884 | _ = require 'lodash'
TypeTool = require './typetool.coffee'
module.exports = class LegacyTypeTool extends TypeTool
@shouldParse: (key) -> key is '<KEY>'
constructor: (layer, length) ->
super(layer, length)
@transform = {}
@faces = []
@styles = []
@lines = []
@type = 0
@scalingFactor =... | true | _ = require 'lodash'
TypeTool = require './typetool.coffee'
module.exports = class LegacyTypeTool extends TypeTool
@shouldParse: (key) -> key is 'PI:KEY:<KEY>END_PI'
constructor: (layer, length) ->
super(layer, length)
@transform = {}
@faces = []
@styles = []
@lines = []
@type = 0
@sc... |
[
{
"context": "ne or two tight twists.\n '''\n\n scientificName: 'Taurotragus oryx'\n mainImage: 'assets/fieldguide-content/mammals/",
"end": 507,
"score": 0.9920796751976013,
"start": 491,
"tag": "NAME",
"value": "Taurotragus oryx"
}
] | app/lib/field-guide-content/eland.coffee | zooniverse/wildcam-gorongosa-facebook | 7 | module.exports =
label: 'Common Eland'
description: '''
The common eland is the world’s largest antelope. It has a cowlike body with a massive neck and large shoulders. Common elands have a smooth coat that is yellowish-brown or tan in color and may h ave white vertical stripes running along the body. They have... | 161903 | module.exports =
label: 'Common Eland'
description: '''
The common eland is the world’s largest antelope. It has a cowlike body with a massive neck and large shoulders. Common elands have a smooth coat that is yellowish-brown or tan in color and may h ave white vertical stripes running along the body. They have... | true | module.exports =
label: 'Common Eland'
description: '''
The common eland is the world’s largest antelope. It has a cowlike body with a massive neck and large shoulders. Common elands have a smooth coat that is yellowish-brown or tan in color and may h ave white vertical stripes running along the body. They have... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.999916672706604,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/store-cart.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
# Cart-specific script should go here.
class @StoreCart
@setEnabled: (flag) ->
$('.js-store-add-to-cart').prop 'disabled', !flag
$('#pr... | 79629 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
# Cart-specific script should go here.
class @StoreCart
@setEnabled: (flag) ->
$('.js-store-add-to-cart').prop 'disabled', !flag
$('#product-f... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
# Cart-specific script should go here.
class @StoreCart
@setEnabled: (flag) ->
$('.js-store-add-to-cart').prop 'disabled', !flag
... |
[
{
"context": "# Copyright (c) 2014 sobataro <sobatarooo@gmail.com>\n# Released under the MIT l",
"end": 29,
"score": 0.6938810348510742,
"start": 21,
"tag": "USERNAME",
"value": "sobataro"
},
{
"context": "# Copyright (c) 2014 sobataro <sobatarooo@gmail.com>\n# Released under the MIT... | src/pull_request_checker.coffee | sobataro/robotaro | 2 | # Copyright (c) 2014 sobataro <sobatarooo@gmail.com>
# Released under the MIT license
# http://opensource.org/licenses/mit-license.php
Q = require("q")
config = require("config")
PullRequestTuple = require("./pull_request_tuple")
githubot = require("githubot")(
logger: # dummy robot only has error logger
error:... | 204243 | # Copyright (c) 2014 sobataro <<EMAIL>>
# Released under the MIT license
# http://opensource.org/licenses/mit-license.php
Q = require("q")
config = require("config")
PullRequestTuple = require("./pull_request_tuple")
githubot = require("githubot")(
logger: # dummy robot only has error logger
error: (e) ->
... | true | # Copyright (c) 2014 sobataro <PI:EMAIL:<EMAIL>END_PI>
# Released under the MIT license
# http://opensource.org/licenses/mit-license.php
Q = require("q")
config = require("config")
PullRequestTuple = require("./pull_request_tuple")
githubot = require("githubot")(
logger: # dummy robot only has error logger
erro... |
[
{
"context": "uire('moves/gaff.coffee')])\n )\n\n # LEVEL 2 - Huminski\n game.addScreen(new Battle(game, requir",
"end": 1502,
"score": 0.5603129267692566,
"start": 1501,
"tag": "NAME",
"value": "H"
},
{
"context": "ee'),\n 'Hello! T-bone Huminsk... | src/js/main.coffee | Huntrr/Battle-Resolution | 0 | # coffeelint: disable=max_line_length
$ = require './lib/jquery.js'
$ ->
Game = require './game.coffee'
game = new Game()
testConf = require './testmode-conf.coffee'
if testConf.enabled
Test = require './testmode.coffee'
test = new Test(game)
test.run()
else
# set up starter moves
game.... | 110271 | # coffeelint: disable=max_line_length
$ = require './lib/jquery.js'
$ ->
Game = require './game.coffee'
game = new Game()
testConf = require './testmode-conf.coffee'
if testConf.enabled
Test = require './testmode.coffee'
test = new Test(game)
test.run()
else
# set up starter moves
game.... | true | # coffeelint: disable=max_line_length
$ = require './lib/jquery.js'
$ ->
Game = require './game.coffee'
game = new Game()
testConf = require './testmode-conf.coffee'
if testConf.enabled
Test = require './testmode.coffee'
test = new Test(game)
test.run()
else
# set up starter moves
game.... |
[
{
"context": "critic = require '../'\n\n###\ncritic.create \"affleck\", (err, gen) ->\n return console.log err if err?\n",
"end": 50,
"score": 0.504750669002533,
"start": 48,
"tag": "NAME",
"value": "ck"
},
{
"context": "mments.length} loaded\"\n console.log gen.respond \"ben affle... | examples/test.coffee | wearefractal/critic | 1 | critic = require '../'
###
critic.create "affleck", (err, gen) ->
return console.log err if err?
console.log "#{gen.comments.length} loaded"
console.log gen.respond "ben affleck"
###
critic.create "walking dead", (err, gen) ->
return console.log err if err?
console.log "#{gen.comments.length} loaded"
con... | 192903 | critic = require '../'
###
critic.create "affle<NAME>", (err, gen) ->
return console.log err if err?
console.log "#{gen.comments.length} loaded"
console.log gen.respond "<NAME>"
###
critic.create "walking dead", (err, gen) ->
return console.log err if err?
console.log "#{gen.comments.length} loaded"
cons... | true | critic = require '../'
###
critic.create "afflePI:NAME:<NAME>END_PI", (err, gen) ->
return console.log err if err?
console.log "#{gen.comments.length} loaded"
console.log gen.respond "PI:NAME:<NAME>END_PI"
###
critic.create "walking dead", (err, gen) ->
return console.log err if err?
console.log "#{gen.com... |
[
{
"context": "'Car 6']\n [current.lat+.002, current.lng-.01, 'Perry Donham']\n ]\n carLocation = new (google.maps.LatLng)(ca",
"end": 2987,
"score": 0.9997996091842651,
"start": 2975,
"tag": "NAME",
"value": "Perry Donham"
}
] | app/assets/javascripts/map.coffee | RyanTKing/CarePax | 0 | window.initMap = ->
mapStyle = new (google.maps.StyledMapType)([
{
'featureType': 'administrative'
'elementType': 'labels.text.fill'
'stylers': [ { 'color': '#444444' } ]
}
{
'featureType': 'landscape'
'elementType': 'all'
'stylers': [ { 'color': '#f2f2f2' } ]
}
... | 70509 | window.initMap = ->
mapStyle = new (google.maps.StyledMapType)([
{
'featureType': 'administrative'
'elementType': 'labels.text.fill'
'stylers': [ { 'color': '#444444' } ]
}
{
'featureType': 'landscape'
'elementType': 'all'
'stylers': [ { 'color': '#f2f2f2' } ]
}
... | true | window.initMap = ->
mapStyle = new (google.maps.StyledMapType)([
{
'featureType': 'administrative'
'elementType': 'labels.text.fill'
'stylers': [ { 'color': '#444444' } ]
}
{
'featureType': 'landscape'
'elementType': 'all'
'stylers': [ { 'color': '#f2f2f2' } ]
}
... |
[
{
"context": "', 'link')\n selected: new Batman.Object(name: 'crono')\n helpers.render '<select data-bind=\"selected.n",
"end": 4897,
"score": 0.9374864101409912,
"start": 4892,
"tag": "NAME",
"value": "crono"
},
{
"context": " ->\n context = new Batman.Object\n something: 'c... | tests/batman/view/simple_rendering_test.coffee | nickjs/batman | 1 | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
QUnit.module 'Batman.View simple rendering'
hte = (actual, expected) ->
equal actual.innerHTML.toLowerCase().replace(/\n|\r/g, ""),
expected.toLowerCase().replace(/\n|\r/g, "")
test 'it should render simple nodes', ... | 129760 | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
QUnit.module 'Batman.View simple rendering'
hte = (actual, expected) ->
equal actual.innerHTML.toLowerCase().replace(/\n|\r/g, ""),
expected.toLowerCase().replace(/\n|\r/g, "")
test 'it should render simple nodes', ... | true | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
QUnit.module 'Batman.View simple rendering'
hte = (actual, expected) ->
equal actual.innerHTML.toLowerCase().replace(/\n|\r/g, ""),
expected.toLowerCase().replace(/\n|\r/g, "")
test 'it should render simple nodes', ... |
[
{
"context": "\n# ngrok.connect\n# authtoken : 'CMY-UsZMWdx586A3tA0U'\n# subdomain : subdomain\n# po",
"end": 2018,
"score": 0.9986413717269897,
"start": 1998,
"tag": "PASSWORD",
"value": "CMY-UsZMWdx586A3tA0U"
}
] | app/templates/server/server.coffee | koding/generator-kd | 0 | cookieParser = require 'cookie-parser'
fs = require 'fs'
log = console.log
PeerServer = require('./peerjs-server').PeerServer
coffee = require 'coffee-script'
ngrok = require 'ngrok'
restify = require('./peerjs-server/node_modules/restify')
# fs.writeFileSync "./static/main.js",... | 117122 | cookieParser = require 'cookie-parser'
fs = require 'fs'
log = console.log
PeerServer = require('./peerjs-server').PeerServer
coffee = require 'coffee-script'
ngrok = require 'ngrok'
restify = require('./peerjs-server/node_modules/restify')
# fs.writeFileSync "./static/main.js",... | true | cookieParser = require 'cookie-parser'
fs = require 'fs'
log = console.log
PeerServer = require('./peerjs-server').PeerServer
coffee = require 'coffee-script'
ngrok = require 'ngrok'
restify = require('./peerjs-server/node_modules/restify')
# fs.writeFileSync "./static/main.js",... |
[
{
"context": " \"localhost\"\n\t\t\tuser: config.username\n\t\t\tpassword: config.password\n\t\t\tdatabase: config.database\n\t\t\tcharset: config.c",
"end": 354,
"score": 0.9992130398750305,
"start": 339,
"tag": "PASSWORD",
"value": "config.password"
}
] | lib/fancyshelf/index.coffee | rallias/pdfy2 | 0 | bookshelf = require("bookshelf")
knex = require("knex")
util = require "util"
module.exports = (config) ->
conn = config.knex ? knex({
client: switch config.engine
when "pg", "postgres", "postgresql" then "pg"
else (config.engine ? "mysql2")
connection:
host: config.host ? "localhost"
user: config.use... | 106455 | bookshelf = require("bookshelf")
knex = require("knex")
util = require "util"
module.exports = (config) ->
conn = config.knex ? knex({
client: switch config.engine
when "pg", "postgres", "postgresql" then "pg"
else (config.engine ? "mysql2")
connection:
host: config.host ? "localhost"
user: config.use... | true | bookshelf = require("bookshelf")
knex = require("knex")
util = require "util"
module.exports = (config) ->
conn = config.knex ? knex({
client: switch config.engine
when "pg", "postgres", "postgresql" then "pg"
else (config.engine ? "mysql2")
connection:
host: config.host ? "localhost"
user: config.use... |
[
{
"context": "al = (a, b, opts) ->\n # This code is adapted from Anders Kaseorg's post at\n # http://stackoverflow.com/a/32794387/6",
"end": 507,
"score": 0.9904873967170715,
"start": 491,
"tag": "NAME",
"value": "Anders Kaseorg's"
},
{
"context": " should not be used unless\n # h... | src/Util/DeepEquality.coffee | cdglabs/apparatus | 1,060 | _ = require "underscore"
module.exports = DeepEquality = {}
# cyclicDeepEqual compares two Javascript values. It is comfortable with values
# which have cyclic references between their parts. In this case, it will ensure
# that the two values have isomorphic reference graphs.
# Opts:
# checkPrototypes (defaul... | 77177 | _ = require "underscore"
module.exports = DeepEquality = {}
# cyclicDeepEqual compares two Javascript values. It is comfortable with values
# which have cyclic references between their parts. In this case, it will ensure
# that the two values have isomorphic reference graphs.
# Opts:
# checkPrototypes (defaul... | true | _ = require "underscore"
module.exports = DeepEquality = {}
# cyclicDeepEqual compares two Javascript values. It is comfortable with values
# which have cyclic references between their parts. In this case, it will ensure
# that the two values have isomorphic reference graphs.
# Opts:
# checkPrototypes (defaul... |
[
{
"context": "nt from specified DSN correctly', ->\n key = '1234567890abcdef'\n secret = 'fedcba0987654321'\n project_",
"end": 636,
"score": 0.9996853470802307,
"start": 620,
"tag": "KEY",
"value": "1234567890abcdef"
},
{
"context": "->\n key = '1234567890abcdef'... | test/sentry.coffee | DanielsNoJack/sentry-node | 4 | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
sinon = require 'sinon'
Promise = require 'bluebird'
Sentry = require("#{__dirname}/../lib/sentry")
{_handle_http_load_errors} = require("#{__dirname}/../lib/sentry")._private
sentry_settings = require("#{__dirname}/credentials"... | 203056 | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
sinon = require 'sinon'
Promise = require 'bluebird'
Sentry = require("#{__dirname}/../lib/sentry")
{_handle_http_load_errors} = require("#{__dirname}/../lib/sentry")._private
sentry_settings = require("#{__dirname}/credentials"... | true | _ = require 'underscore'
assert = require 'assert'
os = require 'os'
nock = require 'nock'
sinon = require 'sinon'
Promise = require 'bluebird'
Sentry = require("#{__dirname}/../lib/sentry")
{_handle_http_load_errors} = require("#{__dirname}/../lib/sentry")._private
sentry_settings = require("#{__dirname}/credentials"... |
[
{
"context": "s turtles.\"\n }\n {\n id: 3\n title: \"Sharks\"\n description: \"An advanced pet. Needs milli",
"end": 632,
"score": 0.653390645980835,
"start": 626,
"tag": "NAME",
"value": "Sharks"
}
] | app/js/features/pets/pet_service.coffee | Light2288/Prova_IonicCordovaCoffeeJade | 0 | ###
A simple example service that returns some data.
###
angular.module("ionicstarter")
.factory "PetService", ->
# Might use a resource here that returns a JSON array
# Some fake testing data
pets = [
{
id: 0
title: "Cats"
description: "Furry little creatures. Obsessed with plotting ... | 19424 | ###
A simple example service that returns some data.
###
angular.module("ionicstarter")
.factory "PetService", ->
# Might use a resource here that returns a JSON array
# Some fake testing data
pets = [
{
id: 0
title: "Cats"
description: "Furry little creatures. Obsessed with plotting ... | true | ###
A simple example service that returns some data.
###
angular.module("ionicstarter")
.factory "PetService", ->
# Might use a resource here that returns a JSON array
# Some fake testing data
pets = [
{
id: 0
title: "Cats"
description: "Furry little creatures. Obsessed with plotting ... |
[
{
"context": "/\"'\\*=~\\-\\u2013\\u2014])|$)///gi\r\n\t,\r\n\t\tosis: [\"Jonah\"]\r\n\t\tregexp: ///(^|#{bcv_parser::regexps.pre_book",
"end": 14911,
"score": 0.8500025868415833,
"start": 14909,
"tag": "NAME",
"value": "ah"
},
{
"context": "[\\]/\"'\\*=~\\-\\u2013\\u2014])|$)///gi\r... | src/es/regexps.coffee | phillipb/Bible-Passage-Reference-Parser | 149 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... | 115921 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... | true | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt... |
[
{
"context": "m',\n version: '49.0.2609.0',\n path: '/Users/bmann/Downloads/chrome-mac/Chromium.app/Contents/MacOS/",
"end": 2148,
"score": 0.9988757371902466,
"start": 2143,
"tag": "USERNAME",
"value": "bmann"
},
{
"context": ", ->\n Promise.all([\n user.set({name:... | packages/server/test/integration/cypress_spec.coffee | Manduro/cypress | 0 | require("../spec_helper")
_ = require("lodash")
os = require("os")
cp = require("child_process")
path = require("path")
EE = require("events")
http = require("http")
Promise = require("bluebird")
electron = require("electron")
commitInfo = require("@cypress/commit-info... | 28389 | require("../spec_helper")
_ = require("lodash")
os = require("os")
cp = require("child_process")
path = require("path")
EE = require("events")
http = require("http")
Promise = require("bluebird")
electron = require("electron")
commitInfo = require("@cypress/commit-info... | true | require("../spec_helper")
_ = require("lodash")
os = require("os")
cp = require("child_process")
path = require("path")
EE = require("events")
http = require("http")
Promise = require("bluebird")
electron = require("electron")
commitInfo = require("@cypress/commit-info... |
[
{
"context": "_user=process.env.HUBOT_JENKINS_USER\njenkins_pass=process.env.HUBOT_JENKINS_PASSWORD\njenkins_api=process.env.HUB",
"end": 1583,
"score": 0.9293644428253174,
"start": 1572,
"tag": "PASSWORD",
"value": "process.env"
},
{
"context": "s.env.HUBOT_JENKINS_USER\njenkins_pas... | scripts/jenkins/scripts-msteams/installPlugin.coffee | CognizantOneDevOps/OnBot | 4 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... | 54184 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... | true | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... |
[
{
"context": " current: 0\n songs: [\n { artist: 'Taylor Swift', title: 'Shake It Off' }\n { artist: 'Ta",
"end": 2510,
"score": 0.9990631937980652,
"start": 2498,
"tag": "NAME",
"value": "Taylor Swift"
},
{
"context": "ft', title: 'Shake It Off' }\n ... | test/spec/controllers/main.coffee | jviotti/musync-frontend | 2 | 'use strict'
describe 'Controller: MainCtrl', ->
beforeEach module 'MuSyncApp'
MainCtrl = {}
scope = {}
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
MainCtrl = $controller 'MainCtrl', {
$scope: scope
}
describe '... | 144695 | 'use strict'
describe 'Controller: MainCtrl', ->
beforeEach module 'MuSyncApp'
MainCtrl = {}
scope = {}
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
MainCtrl = $controller 'MainCtrl', {
$scope: scope
}
describe '... | true | 'use strict'
describe 'Controller: MainCtrl', ->
beforeEach module 'MuSyncApp'
MainCtrl = {}
scope = {}
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
MainCtrl = $controller 'MainCtrl', {
$scope: scope
}
describe '... |
[
{
"context": ") ->\n action.config.new_key = 'new value'\n handler.call action.context,",
"end": 619,
"score": 0.7437775135040283,
"start": 610,
"tag": "KEY",
"value": "new value"
},
{
"context": "ainEql\n key: 'value'\n new_key... | packages/core/test/session/plugins/session.action.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 31 |
{tags} = require '../../test'
nikita = require '../../../src'
session = require '../../../src/session'
# Test the construction of the session namespace stored in state
describe 'session.plugins.session.action', ->
return unless tags.api
describe 'runtime', ->
it 'alter action - async', ->
nikita ... | 169841 |
{tags} = require '../../test'
nikita = require '../../../src'
session = require '../../../src/session'
# Test the construction of the session namespace stored in state
describe 'session.plugins.session.action', ->
return unless tags.api
describe 'runtime', ->
it 'alter action - async', ->
nikita ... | true |
{tags} = require '../../test'
nikita = require '../../../src'
session = require '../../../src/session'
# Test the construction of the session namespace stored in state
describe 'session.plugins.session.action', ->
return unless tags.api
describe 'runtime', ->
it 'alter action - async', ->
nikita ... |
[
{
"context": "### ^\nBSD 3-Clause License\n\nCopyright (c) 2017, Stephan Jorek\nAll rights reserved.\n\nRedistribution and use in s",
"end": 61,
"score": 0.9998319745063782,
"start": 48,
"tag": "NAME",
"value": "Stephan Jorek"
}
] | src/grammar/jison.coffee | sjorek/goatee-rules.js | 0 | ### ^
BSD 3-Clause License
Copyright (c) 2017, Stephan Jorek
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of cond... | 136844 | ### ^
BSD 3-Clause License
Copyright (c) 2017, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions ... | true | ### ^
BSD 3-Clause License
Copyright (c) 2017, PI:NAME:<NAME>END_PI
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list ... |
[
{
"context": "ow, 0], bufferPosition])\n # https://github.com/atom/autocomplete-plus/blob/9506a5c5fafca29003c59566cf",
"end": 346,
"score": 0.9452731013298035,
"start": 342,
"tag": "USERNAME",
"value": "atom"
},
{
"context": " the first letter\", ->\n editor.setText('\\\\cite{H... | spec/cite-provider-spec.coffee | smparker/atom-autocomplete-latex-cite | 4 | path = require 'path'
describe "Latex Cite Autocompletions", ->
[editor, provider] = []
bibFile = path.join(__dirname,'lib.bib')
getCompletions = ->
cursor = editor.getLastCursor()
bufferPosition = cursor.getBufferPosition()
line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
... | 62405 | path = require 'path'
describe "Latex Cite Autocompletions", ->
[editor, provider] = []
bibFile = path.join(__dirname,'lib.bib')
getCompletions = ->
cursor = editor.getLastCursor()
bufferPosition = cursor.getBufferPosition()
line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
... | true | path = require 'path'
describe "Latex Cite Autocompletions", ->
[editor, provider] = []
bibFile = path.join(__dirname,'lib.bib')
getCompletions = ->
cursor = editor.getLastCursor()
bufferPosition = cursor.getBufferPosition()
line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
... |
[
{
"context": "NFIG).toXml())\n eventEl\n\n##\n# <message to='hamlet@denmark.lit' from='pubsub.shakespeare.lit' id='approve1'>\n# ",
"end": 2274,
"score": 0.9996390342712402,
"start": 2256,
"tag": "EMAIL",
"value": "hamlet@denmark.lit"
},
{
"context": " to='hamlet@denmark.lit'... | src/xmpp/pubsub_notifications.coffee | surevine/buddycloud-server | 0 | xmpp = require('node-xmpp')
NS = require('./ns')
forms = require('./forms')
##
# All notifications are per-node, so listeners can be fetched once
#
# TODO: enforce MAX_STANZA_LIMIT
class Notification
constructor: (@opts) ->
toStanza: (fromJid, toJid) ->
message = new xmpp.Element('message',
... | 69685 | xmpp = require('node-xmpp')
NS = require('./ns')
forms = require('./forms')
##
# All notifications are per-node, so listeners can be fetched once
#
# TODO: enforce MAX_STANZA_LIMIT
class Notification
constructor: (@opts) ->
toStanza: (fromJid, toJid) ->
message = new xmpp.Element('message',
... | true | xmpp = require('node-xmpp')
NS = require('./ns')
forms = require('./forms')
##
# All notifications are per-node, so listeners can be fetched once
#
# TODO: enforce MAX_STANZA_LIMIT
class Notification
constructor: (@opts) ->
toStanza: (fromJid, toJid) ->
message = new xmpp.Element('message',
... |
[
{
"context": "usAilment\n inflict: (pokemon, log) ->\n key = @constructor.name\n pokemon.conditions[key] = this\n this.whenI",
"end": 76,
"score": 0.6221681237220764,
"start": 60,
"tag": "KEY",
"value": "constructor.name"
},
{
"context": " isInflicted: (pokemon) ->\n key... | src/conditions/condition.coffee | egilmore533/pokemon-battle-mod | 44 | class StatusAilment
inflict: (pokemon, log) ->
key = @constructor.name
pokemon.conditions[key] = this
this.whenInflicted pokemon, log
isInflicted: (pokemon) ->
key = @constructor.name
return pokemon.conditions[key]?
heal: (pokemon) ->
key = @constructor.name
delete pokemon.conditions... | 39233 | class StatusAilment
inflict: (pokemon, log) ->
key = @<KEY>
pokemon.conditions[key] = this
this.whenInflicted pokemon, log
isInflicted: (pokemon) ->
key = @constructor.<KEY>
return pokemon.conditions[key]?
heal: (pokemon) ->
key = @constructor.<KEY>
delete pokemon.conditions[key]
... | true | class StatusAilment
inflict: (pokemon, log) ->
key = @PI:KEY:<KEY>END_PI
pokemon.conditions[key] = this
this.whenInflicted pokemon, log
isInflicted: (pokemon) ->
key = @constructor.PI:KEY:<KEY>END_PI
return pokemon.conditions[key]?
heal: (pokemon) ->
key = @constructor.PI:KEY:<KEY>END_PI... |
[
{
"context": "id}'>${name}</button>\n\"\"\"\n\n\n\n#userNameMap = {\n# 'kranian' : '허여송'\n# 'callin' : '임창진'\n# 'BOK' : '복정규'\n# ",
"end": 1604,
"score": 0.999393880367279,
"start": 1597,
"tag": "USERNAME",
"value": "kranian"
},
{
"context": "</button>\n\"\"\"\n\n\n\n#userNameMap... | render.coffee | kranian/gitlabviewer | 0 | #// This file is required by the index.html file and will
#// be executed in the renderer process for that window.
#// All of the Node.js APIs are available in this process.
$ = require('jquery');
_ = require('lodash');
d3 = require('d3');
showdown = require('showdown')
api = require('./gitlabApi');
shell = require('... | 174305 | #// This file is required by the index.html file and will
#// be executed in the renderer process for that window.
#// All of the Node.js APIs are available in this process.
$ = require('jquery');
_ = require('lodash');
d3 = require('d3');
showdown = require('showdown')
api = require('./gitlabApi');
shell = require('... | true | #// This file is required by the index.html file and will
#// be executed in the renderer process for that window.
#// All of the Node.js APIs are available in this process.
$ = require('jquery');
_ = require('lodash');
d3 = require('d3');
showdown = require('showdown')
api = require('./gitlabApi');
shell = require('... |
[
{
"context": "rue\n\n try\n @_sock6.addMembership 'ff02::1', ip.address\n catch e\n\n onConnect()",
"end": 7800,
"score": 0.9996267557144165,
"start": 7793,
"tag": "IP_ADDRESS",
"value": "ff02::1"
}
] | src/dhcp/server.coffee | FrancYescO/tch-exploit | 58 | dgram = require 'dgram'
os = require 'os'
{ EventEmitter } = require 'events'
Lease = require './lease'
SeqBuffer = require './seqbuffer'
Options = require './options'
Protocol = require './protocol'
Tools = require './tools'
Ips = require '../ips'
{
DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPDECLINE
DHCPACK, DHC... | 166848 | dgram = require 'dgram'
os = require 'os'
{ EventEmitter } = require 'events'
Lease = require './lease'
SeqBuffer = require './seqbuffer'
Options = require './options'
Protocol = require './protocol'
Tools = require './tools'
Ips = require '../ips'
{
DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPDECLINE
DHCPACK, DHC... | true | dgram = require 'dgram'
os = require 'os'
{ EventEmitter } = require 'events'
Lease = require './lease'
SeqBuffer = require './seqbuffer'
Options = require './options'
Protocol = require './protocol'
Tools = require './tools'
Ips = require '../ips'
{
DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPDECLINE
DHCPACK, DHC... |
[
{
"context": "# GainText\n#\n# Martin Waitz <tali@admingilde.org>\n\nsut = require '../src/docu",
"end": 27,
"score": 0.9998314380645752,
"start": 15,
"tag": "NAME",
"value": "Martin Waitz"
},
{
"context": "# GainText\n#\n# Martin Waitz <tali@admingilde.org>\n\nsut = require '../src/... | test/document.coffee | gaintext/gaintext.js | 0 | # GainText
#
# Martin Waitz <tali@admingilde.org>
sut = require '../src/document'
mona = require 'mona-parser'
{expect} = require 'chai'
describe 'document', ->
it 'parses a single element', ->
text = "div:\n"
expect(mona.parse sut.document, text).to.eql [
name: 'div', title: '', co... | 220462 | # GainText
#
# <NAME> <<EMAIL>>
sut = require '../src/document'
mona = require 'mona-parser'
{expect} = require 'chai'
describe 'document', ->
it 'parses a single element', ->
text = "div:\n"
expect(mona.parse sut.document, text).to.eql [
name: 'div', title: '', content: []
... | true | # GainText
#
# PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
sut = require '../src/document'
mona = require 'mona-parser'
{expect} = require 'chai'
describe 'document', ->
it 'parses a single element', ->
text = "div:\n"
expect(mona.parse sut.document, text).to.eql [
name: 'div', ti... |
[
{
"context": " it 'clears data', ->\n p = {data:{id:{name:'sam'}}}\n assert.equal null, ot.applyPresence p, ",
"end": 9763,
"score": 0.9299773573875427,
"start": 9760,
"tag": "NAME",
"value": "sam"
}
] | test/ot.coffee | kantele/k-livedb | 1 | # Unit tests for lib/ot.js
#
# This tests to make sure it does some of the right things WRT OT.
#
# Note that there's also OT code in other livedb files. This file does not
# contain any integration tests.
assert = require 'assert'
text = require('ot-text').type
ot = require '../lib/ot'
describe 'ot', ->
before -... | 170689 | # Unit tests for lib/ot.js
#
# This tests to make sure it does some of the right things WRT OT.
#
# Note that there's also OT code in other livedb files. This file does not
# contain any integration tests.
assert = require 'assert'
text = require('ot-text').type
ot = require '../lib/ot'
describe 'ot', ->
before -... | true | # Unit tests for lib/ot.js
#
# This tests to make sure it does some of the right things WRT OT.
#
# Note that there's also OT code in other livedb files. This file does not
# contain any integration tests.
assert = require 'assert'
text = require('ot-text').type
ot = require '../lib/ot'
describe 'ot', ->
before -... |
[
{
"context": "ame = require('os').hostname()\n\nbuildKey = (key)-> \"#{name}.#{hostname}.#{key}\"\nbuildGlobalKey = (key)-> \"#{name}.global.#{key}",
"end": 368,
"score": 0.9591077566146851,
"start": 342,
"tag": "KEY",
"value": "\"#{name}.#{hostname}.#{key"
},
{
"context": "name}.#{h... | metrics.coffee | das7pad/metrics-sharelatex | 0 | if process.env["USE_PROM_METRICS"] != "true"
return module.exports = require("./statsd/metrics")
else
console.log("using prometheus")
prom = require('prom-client')
Register = require('prom-client').register
collectDefaultMetrics = prom.collectDefaultMetrics
appname = "unknown"
hostname = require('os').hostname(... | 184923 | if process.env["USE_PROM_METRICS"] != "true"
return module.exports = require("./statsd/metrics")
else
console.log("using prometheus")
prom = require('prom-client')
Register = require('prom-client').register
collectDefaultMetrics = prom.collectDefaultMetrics
appname = "unknown"
hostname = require('os').hostname(... | true | if process.env["USE_PROM_METRICS"] != "true"
return module.exports = require("./statsd/metrics")
else
console.log("using prometheus")
prom = require('prom-client')
Register = require('prom-client').register
collectDefaultMetrics = prom.collectDefaultMetrics
appname = "unknown"
hostname = require('os').hostname(... |
[
{
"context": "greyhound by asking \"@roobot add?\"\n#\n# Author:\n# Zach Whaley (zachwhaley) <zachbwhaley@gmail>\n\npath = require ",
"end": 227,
"score": 0.999875545501709,
"start": 216,
"tag": "NAME",
"value": "Zach Whaley"
},
{
"context": "sking \"@roobot add?\"\n#\n# Author:\n#... | scripts/arrivals.coffee | galtx-centex/roobot | 3 | # Description:
# Add a greyhound to the Available Hounds page
#
# Commands:
# hubot add - Show help text to add a greyhound
# arrivals - Find out how to add a greyhound by asking "@roobot add?"
#
# Author:
# Zach Whaley (zachwhaley) <zachbwhaley@gmail>
path = require 'path'
image = require 'imagemagick'
git =... | 190985 | # Description:
# Add a greyhound to the Available Hounds page
#
# Commands:
# hubot add - Show help text to add a greyhound
# arrivals - Find out how to add a greyhound by asking "@roobot add?"
#
# Author:
# <NAME> (zachwhaley) <<EMAIL>>
path = require 'path'
image = require 'imagemagick'
git = require '../li... | true | # Description:
# Add a greyhound to the Available Hounds page
#
# Commands:
# hubot add - Show help text to add a greyhound
# arrivals - Find out how to add a greyhound by asking "@roobot add?"
#
# Author:
# PI:NAME:<NAME>END_PI (zachwhaley) <PI:EMAIL:<EMAIL>END_PI>
path = require 'path'
image = require 'image... |
[
{
"context": "ema-ext'\n treemaExt.setup()\n filepicker.setKey('AvlkNoldcTOU4PvKi2Xm7z')\n\n # Set up Backbone.Mediator schemas\n setUpDe",
"end": 857,
"score": 0.9993826746940613,
"start": 835,
"tag": "KEY",
"value": "AvlkNoldcTOU4PvKi2Xm7z"
}
] | app/initialize.coffee | madawei2699/codecombat | 0 | app = require 'application'
channelSchemas =
'app': require './schemas/subscriptions/app'
'bus': require './schemas/subscriptions/bus'
'editor': require './schemas/subscriptions/editor'
'errors': require './schemas/subscriptions/errors'
'misc': require './schemas/subscriptions/misc'
'play': require './sche... | 16188 | app = require 'application'
channelSchemas =
'app': require './schemas/subscriptions/app'
'bus': require './schemas/subscriptions/bus'
'editor': require './schemas/subscriptions/editor'
'errors': require './schemas/subscriptions/errors'
'misc': require './schemas/subscriptions/misc'
'play': require './sche... | true | app = require 'application'
channelSchemas =
'app': require './schemas/subscriptions/app'
'bus': require './schemas/subscriptions/bus'
'editor': require './schemas/subscriptions/editor'
'errors': require './schemas/subscriptions/errors'
'misc': require './schemas/subscriptions/misc'
'play': require './sche... |
[
{
"context": " ['one', 'two', 'three']\n person:\n name: 'Alexander Schilling'\n job: 'Developer'\n ref: 'test'\n secti",
"end": 539,
"score": 0.9998302459716797,
"start": 520,
"tag": "NAME",
"value": "Alexander Schilling"
},
{
"context": "eloper'\n ref: 'test'\... | test/mocha/properties.coffee | alinex/node-formatter | 0 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "Properties", ->
file = __dirname + '/../data/format.properties'
format = 'properties'
example = fs.readFileSync fil... | 14687 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "Properties", ->
file = __dirname + '/../data/format.properties'
format = 'properties'
example = fs.readFileSync fil... | true | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "Properties", ->
file = __dirname + '/../data/format.properties'
format = 'properties'
example = fs.readFileSync fil... |
[
{
"context": " # some names to play with\n first_names = [\"Alice\",\"Bob\",\"Charlie\",\"Chuck\",\"Dave\",\"Erin\",\"Eve\",\"Fai",
"end": 163,
"score": 0.9998202919960022,
"start": 158,
"tag": "NAME",
"value": "Alice"
},
{
"context": "me names to play with\n first_names = [... | src/dashboard.controller.coffee | vault12/zax-dash | 5 | class DashboardController
mailboxPrefix: "_mailbox"
constructor: (RelayService, $scope, $q, $timeout)->
# some names to play with
first_names = ["Alice","Bob","Charlie","Chuck","Dave","Erin","Eve","Faith",
"Frank","Mallory","Oscar","Peggy","Pat","Sam","Sally","Sybil",
"Trent","Trud... | 198111 | class DashboardController
mailboxPrefix: "_mailbox"
constructor: (RelayService, $scope, $q, $timeout)->
# some names to play with
first_names = ["<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>",
"<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>","<NAME>",
... | true | class DashboardController
mailboxPrefix: "_mailbox"
constructor: (RelayService, $scope, $q, $timeout)->
# some names to play with
first_names = ["PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","PI:NAME:<NAME>END_PI","P... |
[
{
"context": " Dictionary and returns definition\n#\n# Author:\n# Travis Jeffery (@travisjeffery)\n# Jamie Wilkinson (@jamiew)\n\nm",
"end": 231,
"score": 0.9998422861099243,
"start": 217,
"tag": "NAME",
"value": "Travis Jeffery"
},
{
"context": " returns definition\n#\n# Author:... | scripts/urban.coffee | jamiew/spacecat | 1 | # Description:
# Define terms via Urban Dictionary
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot define <term> - Searches Urban Dictionary and returns definition
#
# Author:
# Travis Jeffery (@travisjeffery)
# Jamie Wilkinson (@jamiew)
module.exports = (robot) ->
robot.resp... | 147927 | # Description:
# Define terms via Urban Dictionary
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot define <term> - Searches Urban Dictionary and returns definition
#
# Author:
# <NAME> (@travisjeffery)
# <NAME> (@jamiew)
module.exports = (robot) ->
robot.respond /(define|urba... | true | # Description:
# Define terms via Urban Dictionary
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot define <term> - Searches Urban Dictionary and returns definition
#
# Author:
# PI:NAME:<NAME>END_PI (@travisjeffery)
# PI:NAME:<NAME>END_PI (@jamiew)
module.exports = (robot) ->
... |
[
{
"context": "##############################################\n#\n# Markus 1/23/2017\n#\n#####################################",
"end": 75,
"score": 0.9987979531288147,
"start": 69,
"tag": "NAME",
"value": "Markus"
}
] | server/methods/edu_cert.coffee | MooqitaSFH/worklearn | 0 | ################################################################
#
# Markus 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_cert_template: () ->
user = Meteor.user()
if not user
throw new Meteor.Error('Not permitte... | 112180 | ################################################################
#
# <NAME> 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_cert_template: () ->
user = Meteor.user()
if not user
throw new Meteor.Error('Not permitte... | true | ################################################################
#
# PI:NAME:<NAME>END_PI 1/23/2017
#
################################################################
###############################################
Meteor.methods
add_cert_template: () ->
user = Meteor.user()
if not user
throw new Meteor.Error... |
[
{
"context": " Use postfix or prefix spread dots `...`\n# @author Julian Rosse\n###\n\n'use strict'\n\n# ----------------------------",
"end": 83,
"score": 0.9998425245285034,
"start": 71,
"tag": "NAME",
"value": "Julian Rosse"
}
] | src/tests/rules/spread-direction.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Use postfix or prefix spread dots `...`
# @author Julian Rosse
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/spread-dire... | 36760 | ###*
# @fileoverview Use postfix or prefix spread dots `...`
# @author <NAME>
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/spread-direction'... | true | ###*
# @fileoverview Use postfix or prefix spread dots `...`
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/spr... |
[
{
"context": "###\n# node-make-sync\n# Copyright(c) 2012 Seb Vincent\n# MIT Licensed\n###\n\nFiber = require('fibers'); ",
"end": 52,
"score": 0.9998381733894348,
"start": 41,
"tag": "NAME",
"value": "Seb Vincent"
}
] | lib/make-sync.coffee | dnice-asana/node-make-sync | 0 | ###
# node-make-sync
# Copyright(c) 2012 Seb Vincent
# MIT Licensed
###
Fiber = require('fibers');
Future = require 'fibers/future'
wait = Future.wait
{Options} = require './options'
# use a Future to make the sync call and wait.
callSync = (f, resultBuilderFunc, args...) ->
# making sure the returns fol... | 113866 | ###
# node-make-sync
# Copyright(c) 2012 <NAME>
# MIT Licensed
###
Fiber = require('fibers');
Future = require 'fibers/future'
wait = Future.wait
{Options} = require './options'
# use a Future to make the sync call and wait.
callSync = (f, resultBuilderFunc, args...) ->
# making sure the returns follow t... | true | ###
# node-make-sync
# Copyright(c) 2012 PI:NAME:<NAME>END_PI
# MIT Licensed
###
Fiber = require('fibers');
Future = require 'fibers/future'
wait = Future.wait
{Options} = require './options'
# use a Future to make the sync call and wait.
callSync = (f, resultBuilderFunc, args...) ->
# making sure the re... |
[
{
"context": "\nclass Duck\n constructor: (name='Anonimous') ->\n @name = name\n quack: ->\n @",
"end": 45,
"score": 0.9993992447853088,
"start": 36,
"tag": "NAME",
"value": "Anonimous"
},
{
"context": " quack: ->\n @name + ' Duck: Quack-quack!'\n\ndonald =... | spec/fixtures/space_operators/invalid.coffee | dopustim/coffeelint-config | 0 |
class Duck
constructor: (name='Anonimous') ->
@name = name
quack: ->
@name + ' Duck: Quack-quack!'
donald = new duck 'Donald'
console.log donald.quack()
| 143408 |
class Duck
constructor: (name='<NAME>') ->
@name = name
quack: ->
@name + ' Duck: Quack-quack!'
<NAME> = new duck '<NAME>'
console.log donald.quack()
| true |
class Duck
constructor: (name='PI:NAME:<NAME>END_PI') ->
@name = name
quack: ->
@name + ' Duck: Quack-quack!'
PI:NAME:<NAME>END_PI = new duck 'PI:NAME:<NAME>END_PI'
console.log donald.quack()
|
[
{
"context": "5-AF4 Headhunter\"\"\"\n exportObj.renameShip \"\"\"M12-L Kimogila Fighter\"\"\", \"\"\"M12-L Kimogila Fighter\"",
"end": 9517,
"score": 0.6772056221961975,
"start": 9516,
"tag": "NAME",
"value": "2"
},
{
"context": "AF4 Headhunter\"\"\"\n exportObj.renameShip \"\... | coffeescripts/cards-hu.coffee | Dakkon426/xwing | 0 | exportObj = exports ? this
exportObj.codeToLanguage ?= {}
exportObj.codeToLanguage.hu = 'Magyar'
exportObj.translations ?= {}
# This is here mostly as a template for other languages.
exportObj.translations.Magyar =
slot:
"Astromech": "Astromech"
"Force": "Erő"
"Bomb": "Bomba"
"Cann... | 178828 | exportObj = exports ? this
exportObj.codeToLanguage ?= {}
exportObj.codeToLanguage.hu = 'Magyar'
exportObj.translations ?= {}
# This is here mostly as a template for other languages.
exportObj.translations.Magyar =
slot:
"Astromech": "Astromech"
"Force": "Erő"
"Bomb": "Bomba"
"Cann... | true | exportObj = exports ? this
exportObj.codeToLanguage ?= {}
exportObj.codeToLanguage.hu = 'Magyar'
exportObj.translations ?= {}
# This is here mostly as a template for other languages.
exportObj.translations.Magyar =
slot:
"Astromech": "Astromech"
"Force": "Erő"
"Bomb": "Bomba"
"Cann... |
[
{
"context": "###\n# test/mocha/factory.coffee\n#\n# © 2014 Dan Nichols\n# See LICENSE for more details\n#\n# Tests for our ",
"end": 54,
"score": 0.9995285272598267,
"start": 43,
"tag": "NAME",
"value": "Dan Nichols"
},
{
"context": "efore ->\n Factory.define 'dummy',\n name... | test/mocha/factory.coffee | dlnichols/h_media | 0 | ###
# test/mocha/factory.coffee
#
# © 2014 Dan Nichols
# See LICENSE for more details
#
# Tests for our Factory factory
###
'use strict'
# External libs
should = require('chai').should()
expect = require('chai').expect
# Internal libs
Factory = require '../lib/factory.coffee'
describe 'Helper - Factory', ->
Model ... | 156909 | ###
# test/mocha/factory.coffee
#
# © 2014 <NAME>
# See LICENSE for more details
#
# Tests for our Factory factory
###
'use strict'
# External libs
should = require('chai').should()
expect = require('chai').expect
# Internal libs
Factory = require '../lib/factory.coffee'
describe 'Helper - Factory', ->
Model = ->
... | true | ###
# test/mocha/factory.coffee
#
# © 2014 PI:NAME:<NAME>END_PI
# See LICENSE for more details
#
# Tests for our Factory factory
###
'use strict'
# External libs
should = require('chai').should()
expect = require('chai').expect
# Internal libs
Factory = require '../lib/factory.coffee'
describe 'Helper - Factory', ->... |
[
{
"context": "r morghulis\r\n# valar dohaeris\r\n#\r\n# Author:\r\n# FaytLeingod\r\n\r\n\r\nmodule.exports = (robot) ->\r\n robot.hear /v",
"end": 189,
"score": 0.9809980988502502,
"start": 178,
"tag": "NAME",
"value": "FaytLeingod"
}
] | Hubot/valyrian.coffee | FaytLeingod007/JabbR | 3 | # Description:
# Legitimate Valyrian
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# valar morghulis
# valar dohaeris
#
# Author:
# FaytLeingod
module.exports = (robot) ->
robot.hear /valar dohaeris/i, (msg) ->
robot.brain.set 'Valyrian', 0
msg.send 'All m... | 177949 | # Description:
# Legitimate Valyrian
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# valar morghulis
# valar dohaeris
#
# Author:
# <NAME>
module.exports = (robot) ->
robot.hear /valar dohaeris/i, (msg) ->
robot.brain.set 'Valyrian', 0
msg.send 'All men mu... | true | # Description:
# Legitimate Valyrian
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# valar morghulis
# valar dohaeris
#
# Author:
# PI:NAME:<NAME>END_PI
module.exports = (robot) ->
robot.hear /valar dohaeris/i, (msg) ->
robot.brain.set 'Valyrian', 0
msg.se... |
[
{
"context": "-\n# are not associated with the class\nHERO = 'Batman'\nSUPERSAY = -> console.log \"#{HERO} rulz!\"\n\nclass",
"end": 219,
"score": 0.9997732639312744,
"start": 213,
"tag": "NAME",
"value": "Batman"
},
{
"context": "-\n # defined without '@'\n constructor: (name ... | lib/User.coffee | Kikobeats/coffee_playground | 0 | # More information:
# http://coffeescriptcookbook.com/chapters/classes_and_objects/class-methods-and-instance-methods
# -- Helpers Method -------------------------
# are not associated with the class
HERO = 'Batman'
SUPERSAY = -> console.log "#{HERO} rulz!"
class User
# -- Static Class Method -----------------... | 172839 | # More information:
# http://coffeescriptcookbook.com/chapters/classes_and_objects/class-methods-and-instance-methods
# -- Helpers Method -------------------------
# are not associated with the class
HERO = '<NAME>'
SUPERSAY = -> console.log "#{HERO} rulz!"
class User
# -- Static Class Method -----------------... | true | # More information:
# http://coffeescriptcookbook.com/chapters/classes_and_objects/class-methods-and-instance-methods
# -- Helpers Method -------------------------
# are not associated with the class
HERO = 'PI:NAME:<NAME>END_PI'
SUPERSAY = -> console.log "#{HERO} rulz!"
class User
# -- Static Class Method ---... |
[
{
"context": "Item: ->\n\n return {title: 'Delete Post', key: 'showdeletepostprompt', onClick: @bound 'showDeletePostPromptModal'}\n\n\n",
"end": 4844,
"score": 0.6306018829345703,
"start": 4824,
"tag": "KEY",
"value": "showdeletepostprompt"
}
] | client/activity/lib/components/messageitemmenu/index.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
React = require 'kd-react'
ButtonWithMenu = require 'app/components/buttonwithmenu'
getMessageOwner = require 'app/util/getMessageOwner'
ActivityFlux = require 'activity/flux'
AppFlux = require 'app/flux'
immutable = re... | 223531 | kd = require 'kd'
React = require 'kd-react'
ButtonWithMenu = require 'app/components/buttonwithmenu'
getMessageOwner = require 'app/util/getMessageOwner'
ActivityFlux = require 'activity/flux'
AppFlux = require 'app/flux'
immutable = re... | true | kd = require 'kd'
React = require 'kd-react'
ButtonWithMenu = require 'app/components/buttonwithmenu'
getMessageOwner = require 'app/util/getMessageOwner'
ActivityFlux = require 'activity/flux'
AppFlux = require 'app/flux'
immutable = re... |
[
{
"context": "nect\n @socket.incoming.emit 'disconnect', 'Eula Tucker'\n\n it 'should proxy the event', ->\n e",
"end": 1254,
"score": 0.9986823201179504,
"start": 1243,
"tag": "NAME",
"value": "Eula Tucker"
},
{
"context": " expect(@onDisconnect).to.have.been.ca... | test/src/proxy-socket-spec.coffee | octoblu/npm | 3 | {beforeEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
ProxySocket = require '../../src/proxy-socket'
AsymetricSocket = require '../asymmetric-socket'
describe 'ProxySocket', ->
@timeout 100
describe 'with a connected BufferedSocket', ->
beforeEach ->
@socket = new As... | 220258 | {beforeEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
ProxySocket = require '../../src/proxy-socket'
AsymetricSocket = require '../asymmetric-socket'
describe 'ProxySocket', ->
@timeout 100
describe 'with a connected BufferedSocket', ->
beforeEach ->
@socket = new As... | true | {beforeEach, describe, it} = global
{expect} = require 'chai'
sinon = require 'sinon'
ProxySocket = require '../../src/proxy-socket'
AsymetricSocket = require '../asymmetric-socket'
describe 'ProxySocket', ->
@timeout 100
describe 'with a connected BufferedSocket', ->
beforeEach ->
@socket = new As... |
[
{
"context": " gateblu.devices.push {uuid: device.uuid, token: device.token, connector: 'flow-runner'}\n @saveGat",
"end": 2467,
"score": 0.5681480765342712,
"start": 2461,
"tag": "PASSWORD",
"value": "device"
}
] | index.coffee | octoblu/gateblu-atomizer | 1 | _ = require 'lodash'
meshblu = require 'meshblu'
request = require 'request'
url = require 'url'
debug = require('debug')('gateblu-atomizer')
{EventEmitter} = require 'events'
class GatebluAtomizer extends EventEmitter
constructor: (config={}) ->
@meshbluOptions = _.pick config, 'uuid', 'token', 'ser... | 207533 | _ = require 'lodash'
meshblu = require 'meshblu'
request = require 'request'
url = require 'url'
debug = require('debug')('gateblu-atomizer')
{EventEmitter} = require 'events'
class GatebluAtomizer extends EventEmitter
constructor: (config={}) ->
@meshbluOptions = _.pick config, 'uuid', 'token', 'ser... | true | _ = require 'lodash'
meshblu = require 'meshblu'
request = require 'request'
url = require 'url'
debug = require('debug')('gateblu-atomizer')
{EventEmitter} = require 'events'
class GatebluAtomizer extends EventEmitter
constructor: (config={}) ->
@meshbluOptions = _.pick config, 'uuid', 'token', 'ser... |
[
{
"context": "###\nCopyright 2014 Michael Krolikowski\n\nLicensed under the Apache License, Version 2.0 (",
"end": 38,
"score": 0.998443603515625,
"start": 19,
"tag": "NAME",
"value": "Michael Krolikowski"
}
] | src/main/javascript/shurl.coffee | mkroli/shurl | 1 | ###
Copyright 2014 Michael Krolikowski
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, sof... | 104792 | ###
Copyright 2014 <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
distrib... | true | ###
Copyright 2014 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 writing, so... |
[
{
"context": "###*\n@ngdoc ygHideOn\n@name ygHideOn\n@author\n Yusuke Goto <my.important.apes@gmail.com>\n@description\n hide",
"end": 57,
"score": 0.9998527765274048,
"start": 46,
"tag": "NAME",
"value": "Yusuke Goto"
},
{
"context": "oc ygHideOn\n@name ygHideOn\n@author\n Yusuke... | src/directives/hideOn.coffee | ygoto3/yg-events-on | 0 | ###*
@ngdoc ygHideOn
@name ygHideOn
@author
Yusuke Goto <my.important.apes@gmail.com>
@description
hides when it catches a given event
###
_dirName = 'ygHideOn'
_exports = {}
_exports[_dirName] = [
->
restrict: "A"
link: (iScope, iElem, iAttrs) ->
_val = iAttrs[_dirName]
iScope.$on _val, ->... | 164318 | ###*
@ngdoc ygHideOn
@name ygHideOn
@author
<NAME> <<EMAIL>>
@description
hides when it catches a given event
###
_dirName = 'ygHideOn'
_exports = {}
_exports[_dirName] = [
->
restrict: "A"
link: (iScope, iElem, iAttrs) ->
_val = iAttrs[_dirName]
iScope.$on _val, ->
iElem.addClass '... | true | ###*
@ngdoc ygHideOn
@name ygHideOn
@author
PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
@description
hides when it catches a given event
###
_dirName = 'ygHideOn'
_exports = {}
_exports[_dirName] = [
->
restrict: "A"
link: (iScope, iElem, iAttrs) ->
_val = iAttrs[_dirName]
iScope.$on _val... |
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998520612716675,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/geometry/shape.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licenc... | 132672 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
<NAME> - <EMAIL>
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.tx... | true | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
http://pxljs.com
This software is released under th... |
[
{
"context": "= localStorage.key(i)\n\t\tif key?.startsWith(\"Meteor.loginToken\") || key?.startsWith(\"Meteor.userId\") ",
"end": 3614,
"score": 0.5605220794677734,
"start": 3614,
"tag": "KEY",
"value": ""
},
{
"context": "()\n\t\treturn\n\tuserId = Meteor.userId()\n\tauthToken = A... | packages/steedos-base/client/bootstrap.coffee | steedos/creator | 42 | require('url-search-params-polyfill');
clone = require('clone')
getCookie = (name)->
pattern = RegExp(name + "=.[^;]*")
matched = document.cookie.match(pattern)
if(matched)
cookie = matched[0].split('=')
return cookie[1]
return false
@Setup = {}
Blaze._allowJavascriptUrls()
FlowRouter.wait();
Steedos.goRese... | 180673 | require('url-search-params-polyfill');
clone = require('clone')
getCookie = (name)->
pattern = RegExp(name + "=.[^;]*")
matched = document.cookie.match(pattern)
if(matched)
cookie = matched[0].split('=')
return cookie[1]
return false
@Setup = {}
Blaze._allowJavascriptUrls()
FlowRouter.wait();
Steedos.goRese... | true | require('url-search-params-polyfill');
clone = require('clone')
getCookie = (name)->
pattern = RegExp(name + "=.[^;]*")
matched = document.cookie.match(pattern)
if(matched)
cookie = matched[0].split('=')
return cookie[1]
return false
@Setup = {}
Blaze._allowJavascriptUrls()
FlowRouter.wait();
Steedos.goRese... |
[
{
"context": "tationsManager.allowedNumberOfCollaboratorsForUser(@user_id, @callback)\n\n\t\t\tit \"should return the default num",
"end": 2438,
"score": 0.8601672649383545,
"start": 2430,
"tag": "USERNAME",
"value": "@user_id"
},
{
"context": "tationsManager.allowedNumberOfCollabora... | test/unit/coffee/Subscription/LimitationsManagerTests.coffee | dtu-compute/web-sharelatex | 0 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Subscription/LimitationsManager'
Settings = require("settings-sharelatex")
describe "LimitationsManager", ->
beforeEach ->
@project = { _id: @proj... | 12567 | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Subscription/LimitationsManager'
Settings = require("settings-sharelatex")
describe "LimitationsManager", ->
beforeEach ->
@project = { _id: @proj... | true | SandboxedModule = require('sandboxed-module')
sinon = require('sinon')
require('chai').should()
modulePath = require('path').join __dirname, '../../../../app/js/Features/Subscription/LimitationsManager'
Settings = require("settings-sharelatex")
describe "LimitationsManager", ->
beforeEach ->
@project = { _id: @proj... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999120831489563,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/post-preview.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @PostPreview
constructor: ->
@debouncedLoadPreview = _.debounce @loadPreview, 500
$(document).on 'input', '.js-post-preview--aut... | 85696 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @PostPreview
constructor: ->
@debouncedLoadPreview = _.debounce @loadPreview, 500
$(document).on 'input', '.js-post-preview--auto', (e)... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @PostPreview
constructor: ->
@debouncedLoadPreview = _.debounce @loadPreview, 500
$(document).on 'input', '.js-post-prev... |
[
{
"context": "defined\n timestamp = new Date().getTime()\n key = \"#{timestamp}\"\n expected = 'test'\n\n before ->\n client = red",
"end": 235,
"score": 0.8550440669059753,
"start": 221,
"tag": "KEY",
"value": "\"#{timestamp}\""
}
] | test/integration/redis-test.coffee | apiaryio/redis-utils | 0 | require 'mocha'
{assert} = require 'chai'
redis = require 'redis'
redutils = require '../../src/redis-helpers'
describe 'Test Redis utils', ->
client = undefined
timestamp = new Date().getTime()
key = "#{timestamp}"
expected = 'test'
before ->
client = redutils.getClient()
client.set k... | 145172 | require 'mocha'
{assert} = require 'chai'
redis = require 'redis'
redutils = require '../../src/redis-helpers'
describe 'Test Redis utils', ->
client = undefined
timestamp = new Date().getTime()
key = <KEY>
expected = 'test'
before ->
client = redutils.getClient()
client.set key, expec... | true | require 'mocha'
{assert} = require 'chai'
redis = require 'redis'
redutils = require '../../src/redis-helpers'
describe 'Test Redis utils', ->
client = undefined
timestamp = new Date().getTime()
key = PI:KEY:<KEY>END_PI
expected = 'test'
before ->
client = redutils.getClient()
client.s... |
[
{
"context": ";\n @canceled();\n\n connect: ->\n password = @clientConfig.password;\n passphrase = @clientConfig.passphrase;\n\n ",
"end": 751,
"score": 0.7793843746185303,
"start": 729,
"tag": "PASSWORD",
"value": "@clientConfig.password"
},
{
"context": "sword = @cli... | lib/fs/ftp/sftp-session.coffee | morassman/atom-commander | 43 | fs = require 'fs'
SSH2 = require 'ssh2'
Utils = require '../../utils'
module.exports =
class SFTPSession
constructor: (@fileSystem) ->
@config = @fileSystem.config;
@clientConfig = @fileSystem.clientConfig;
@client = null;
@ssh2 = null;
@open = null;
getClient: ->
return @client;
# Ca... | 167512 | fs = require 'fs'
SSH2 = require 'ssh2'
Utils = require '../../utils'
module.exports =
class SFTPSession
constructor: (@fileSystem) ->
@config = @fileSystem.config;
@clientConfig = @fileSystem.clientConfig;
@client = null;
@ssh2 = null;
@open = null;
getClient: ->
return @client;
# Ca... | true | fs = require 'fs'
SSH2 = require 'ssh2'
Utils = require '../../utils'
module.exports =
class SFTPSession
constructor: (@fileSystem) ->
@config = @fileSystem.config;
@clientConfig = @fileSystem.clientConfig;
@client = null;
@ssh2 = null;
@open = null;
getClient: ->
return @client;
# Ca... |
[
{
"context": "###*\n* Collect actors\n*\n* @author David Jegat <david.jegat@gmail.com>\n###\nclass ActorCollection",
"end": 45,
"score": 0.999893844127655,
"start": 34,
"tag": "NAME",
"value": "David Jegat"
},
{
"context": "###*\n* Collect actors\n*\n* @author David Jegat <david.jega... | src/Collection/ActorCollection.coffee | Djeg/MicroRacing | 1 | ###*
* Collect actors
*
* @author David Jegat <david.jegat@gmail.com>
###
class ActorCollection extends Collection
###*
* Redefined the add method to handle BaseActor object
*
* @param {BaseActor} actor
* @throws String
* @return {ActorCollection}
###
add: (actor) ->
if not actor instanceof BaseActo... | 41781 | ###*
* Collect actors
*
* @author <NAME> <<EMAIL>>
###
class ActorCollection extends Collection
###*
* Redefined the add method to handle BaseActor object
*
* @param {BaseActor} actor
* @throws String
* @return {ActorCollection}
###
add: (actor) ->
if not actor instanceof BaseActor
throw "Inva... | true | ###*
* Collect actors
*
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
class ActorCollection extends Collection
###*
* Redefined the add method to handle BaseActor object
*
* @param {BaseActor} actor
* @throws String
* @return {ActorCollection}
###
add: (actor) ->
if not actor instanceo... |
[
{
"context": "ate that a value is not on a blacklist\n # @author Daniel Bartholomae\n class BlacklistValidatorRule extends ValidatorR",
"end": 372,
"score": 0.9998927712440491,
"start": 354,
"tag": "NAME",
"value": "Daniel Bartholomae"
}
] | src/rules/Blacklist.coffee | dbartholomae/node-validation-codes | 0 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... | 203930 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... | true | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... |
[
{
"context": "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely dist",
"end": 41,
"score": 0.9998638033866882,
"start": 26,
"tag": "NAME",
"value": "Michael Dvorkin"
}
] | app/assets/javascripts/crm_chosen.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
#------------------------------------------------------------------------------
# Initialize chosen for multis... | 50318 | # 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
#------------------------------------------------------------------------------
# Initialize chosen for multiselect tag... | 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
#------------------------------------------------------------------------------
# Initialize chosen for m... |
[
{
"context": "ique id. Ported from TartJS.\n https://github.com/tart/tartJS/blob/master/tart/tart.js#L26 -- amcalar <3",
"end": 212,
"score": 0.999519407749176,
"start": 208,
"tag": "USERNAME",
"value": "tart"
},
{
"context": "ub.com/tart/tartJS/blob/master/tart/tart.js#L26 -- amcal... | src/lib/utils/utils.coffee | dashersw/spark | 1 | goog.provide 'spark.utils'
goog.require 'spark.validation'
goog.require 'goog.string'
counter = Math.floor Math.random() * 2147483648
###*
Returns a unique id. Ported from TartJS.
https://github.com/tart/tartJS/blob/master/tart/tart.js#L26 -- amcalar <3
@export
@return {string} Unique id.
###
spark.utils.... | 93414 | goog.provide 'spark.utils'
goog.require 'spark.validation'
goog.require 'goog.string'
counter = Math.floor Math.random() * 2147483648
###*
Returns a unique id. Ported from TartJS.
https://github.com/tart/tartJS/blob/master/tart/tart.js#L26 -- amcalar <3
@export
@return {string} Unique id.
###
spark.utils.... | true | goog.provide 'spark.utils'
goog.require 'spark.validation'
goog.require 'goog.string'
counter = Math.floor Math.random() * 2147483648
###*
Returns a unique id. Ported from TartJS.
https://github.com/tart/tartJS/blob/master/tart/tart.js#L26 -- amcalar <3
@export
@return {string} Unique id.
###
spark.utils.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.