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": "ons.consumer_key\n options.consumer_secret\n \"1.0\"\n null\n \"HMAC-SHA1\"\n )\n (path) ->\n url",
"end": 280,
"score": 0.9301348328590393,
"start": 277,
"tag": "KEY",
"value": "1.0"
}
] | src/lib/bitbucket-factory.coffee | vyrak/hubot-inspect | 0 | HubotAppError = require("./inspect-error")
OAuth = require("oauth").OAuth
Promise = require("bluebird")
base_url = "https://bitbucket.org/api/1.0"
module.exports = (options) ->
client = new OAuth(
null
null
options.consumer_key
options.consumer_secret
"1.0"
null
"HMAC-SHA1"
)
(path) ... | 57358 | HubotAppError = require("./inspect-error")
OAuth = require("oauth").OAuth
Promise = require("bluebird")
base_url = "https://bitbucket.org/api/1.0"
module.exports = (options) ->
client = new OAuth(
null
null
options.consumer_key
options.consumer_secret
"<KEY>"
null
"HMAC-SHA1"
)
(path... | true | HubotAppError = require("./inspect-error")
OAuth = require("oauth").OAuth
Promise = require("bluebird")
base_url = "https://bitbucket.org/api/1.0"
module.exports = (options) ->
client = new OAuth(
null
null
options.consumer_key
options.consumer_secret
"PI:KEY:<KEY>END_PI"
null
"HMAC-SHA1... |
[
{
"context": "ros\"\n contact: \"Contacta\"\n twitter_follow: \"Síguenos\"\n\n forms:\n name: \"Nombre\"\n email: \"Correo ",
"end": 569,
"score": 0.9981449246406555,
"start": 561,
"tag": "USERNAME",
"value": "Síguenos"
},
{
"context": "r: \"Color de la ropa del Mago\"\n... | app/locale/es-ES.coffee | cochee/codecombat | 1 | module.exports = nativeDescription: "español (ES)", englishDescription: "Spanish (Spain)", translation:
common:
loading: "Cargando..."
modal:
close: "Cerrar"
okay: "Ok"
not_found:
page_not_found: "Página no encontrada"
nav:
sign_up: "Crear una cuenta"
log_in: "Entrar"
log_out: "Sa... | 210712 | module.exports = nativeDescription: "español (ES)", englishDescription: "Spanish (Spain)", translation:
common:
loading: "Cargando..."
modal:
close: "Cerrar"
okay: "Ok"
not_found:
page_not_found: "Página no encontrada"
nav:
sign_up: "Crear una cuenta"
log_in: "Entrar"
log_out: "Sa... | true | module.exports = nativeDescription: "español (ES)", englishDescription: "Spanish (Spain)", translation:
common:
loading: "Cargando..."
modal:
close: "Cerrar"
okay: "Ok"
not_found:
page_not_found: "Página no encontrada"
nav:
sign_up: "Crear una cuenta"
log_in: "Entrar"
log_out: "Sa... |
[
{
"context": "ram_main', (ret)->\n ret.hash.expected_token = \"stmt_plus\"\n ret.hash.compiled_gram_path = \"_compiled_gra",
"end": 349,
"score": 0.9277706146240234,
"start": 340,
"tag": "KEY",
"value": "stmt_plus"
}
] | src/gram.coffee | hu2prod/lang_gen | 0 | require 'fy/codegen'
{
gram_escape
} = require 'gram3'
# fallback debug
# gram_escape ?= (t)->
# ret = JSON.stringify t
# ret = ret.substr 1, ret.length-2
# ret = ret.replace "'", "\\'"
# "'#{ret}'"
module.exports = (col)->
return if col.chk_file __FILE__
bp = col.autogen 'gram_main', (ret)->
ret.has... | 31075 | require 'fy/codegen'
{
gram_escape
} = require 'gram3'
# fallback debug
# gram_escape ?= (t)->
# ret = JSON.stringify t
# ret = ret.substr 1, ret.length-2
# ret = ret.replace "'", "\\'"
# "'#{ret}'"
module.exports = (col)->
return if col.chk_file __FILE__
bp = col.autogen 'gram_main', (ret)->
ret.has... | true | require 'fy/codegen'
{
gram_escape
} = require 'gram3'
# fallback debug
# gram_escape ?= (t)->
# ret = JSON.stringify t
# ret = ret.substr 1, ret.length-2
# ret = ret.replace "'", "\\'"
# "'#{ret}'"
module.exports = (col)->
return if col.chk_file __FILE__
bp = col.autogen 'gram_main', (ret)->
ret.has... |
[
{
"context": "ng = true\n @$kinvey.User.signup\n username: username\n password: password\n .then ((user)=> @did",
"end": 634,
"score": 0.998100221157074,
"start": 626,
"tag": "USERNAME",
"value": "username"
},
{
"context": "er.signup\n username: username\n p... | src/coffee/signup.coffee | Kinvey/onboarding-app | 0 | ###
Copyright (c) 2008-2014, Kinvey, Inc. All rights reserved.
This software contains valuable confidential and proprietary information of
KINVEY, INC and is subject to applicable licensing agreements.
Unauthorized reproduction, transmission or distribution of this file and its
contents is a violation of applicable la... | 67378 | ###
Copyright (c) 2008-2014, Kinvey, Inc. All rights reserved.
This software contains valuable confidential and proprietary information of
KINVEY, INC and is subject to applicable licensing agreements.
Unauthorized reproduction, transmission or distribution of this file and its
contents is a violation of applicable la... | true | ###
Copyright (c) 2008-2014, Kinvey, Inc. All rights reserved.
This software contains valuable confidential and proprietary information of
KINVEY, INC and is subject to applicable licensing agreements.
Unauthorized reproduction, transmission or distribution of this file and its
contents is a violation of applicable la... |
[
{
"context": "\n#\nchangeHandler = (collection, model) ->\n\n key = \"#{collection.name}$#{model.name}\"\n entity = entities[key]\n # Facade.CHANGED is fi",
"end": 1379,
"score": 0.9906633496284485,
"start": 1345,
"tag": "KEY",
"value": "\"#{collection.name}$#{model.name}\""
},
{
... | client/account/lib/views/accounteditshortcutsfacade.coffee | ezgikaysi/koding | 1 | _ = require 'lodash'
recorder = require 'record-shortcuts'
EventType = require './accounteditshortcutseventtype'
kd = require 'kd'
running = no
entities = {}
getShortcuts = -> kd.singletons.shortcuts
# Handles Item.SELECTED events.
#
selectHandler = (cb) ->
# Start a new recording session.
recor... | 82013 | _ = require 'lodash'
recorder = require 'record-shortcuts'
EventType = require './accounteditshortcutseventtype'
kd = require 'kd'
running = no
entities = {}
getShortcuts = -> kd.singletons.shortcuts
# Handles Item.SELECTED events.
#
selectHandler = (cb) ->
# Start a new recording session.
recor... | true | _ = require 'lodash'
recorder = require 'record-shortcuts'
EventType = require './accounteditshortcutseventtype'
kd = require 'kd'
running = no
entities = {}
getShortcuts = -> kd.singletons.shortcuts
# Handles Item.SELECTED events.
#
selectHandler = (cb) ->
# Start a new recording session.
recor... |
[
{
"context": "'#show_password').change ->\n $password = $('#user_password')\n\n if $('#show_password').is(':checked')\n ",
"end": 163,
"score": 0.6217354536056519,
"start": 150,
"tag": "PASSWORD",
"value": "user_password"
}
] | app/assets/javascripts/dune/devise/registrations/new.js.coffee | FromUte/dune | 0 | Dune.Devise ?= {}
Dune.Devise.Registrations ?= {}
Dune.Devise.Registrations.New =
init: ->
$('#show_password').change ->
$password = $('#user_password')
if $('#show_password').is(':checked')
$password.prop 'type', 'text'
else
$password.prop 'type', 'password'
| 63183 | Dune.Devise ?= {}
Dune.Devise.Registrations ?= {}
Dune.Devise.Registrations.New =
init: ->
$('#show_password').change ->
$password = $('#<PASSWORD>')
if $('#show_password').is(':checked')
$password.prop 'type', 'text'
else
$password.prop 'type', 'password'
| true | Dune.Devise ?= {}
Dune.Devise.Registrations ?= {}
Dune.Devise.Registrations.New =
init: ->
$('#show_password').change ->
$password = $('#PI:PASSWORD:<PASSWORD>END_PI')
if $('#show_password').is(':checked')
$password.prop 'type', 'text'
else
$password.prop 'type', 'password'
|
[
{
"context": "lkner|Twain|Poe for params.str',\n {str: 'Shakespeare'}, enum: true\n\n it 'rejects strings not exactl",
"end": 18373,
"score": 0.590707004070282,
"start": 18364,
"tag": "NAME",
"value": "akespeare"
}
] | test/param_validator.spec.coffee | HIVETAXI/hive.taxi.sdk.js | 0 | helpers = require('./helpers')
HiveTaxi = helpers.HiveTaxi
Buffer = HiveTaxi.util.Buffer
describe 'HiveTaxi.ParamValidator', ->
[members, input] = [{}, {}]
validate = (params, strict) ->
r = input
if r && !r.xml && !r.payload
r = HiveTaxi.Model.Shape.create(input, {api: {}})
new HiveTaxi.ParamVa... | 131431 | helpers = require('./helpers')
HiveTaxi = helpers.HiveTaxi
Buffer = HiveTaxi.util.Buffer
describe 'HiveTaxi.ParamValidator', ->
[members, input] = [{}, {}]
validate = (params, strict) ->
r = input
if r && !r.xml && !r.payload
r = HiveTaxi.Model.Shape.create(input, {api: {}})
new HiveTaxi.ParamVa... | true | helpers = require('./helpers')
HiveTaxi = helpers.HiveTaxi
Buffer = HiveTaxi.util.Buffer
describe 'HiveTaxi.ParamValidator', ->
[members, input] = [{}, {}]
validate = (params, strict) ->
r = input
if r && !r.xml && !r.payload
r = HiveTaxi.Model.Shape.create(input, {api: {}})
new HiveTaxi.ParamVa... |
[
{
"context": "T = 'SUPER SECRET STRING'\nJWT_SECRET = secretKey = uuid.v4()\napp.use '/api', expressJwt({secret: JWT_SECRET}",
"end": 603,
"score": 0.8967594504356384,
"start": 596,
"tag": "KEY",
"value": "uuid.v4"
},
{
"context": " res) ->\n Registration.register req, res\n#http://... | server/coffee/server.coffee | softwarerero/protothril | 0 | express = require('express')
http = require('http')
http.globalAgent.maxSockets = 10
app = express()
cors = require('cors')
uuid = require('node-uuid')
app.use(cors({credentials: true}))
bodyParser = require('body-parser')
app.use bodyParser.json()
app.use bodyParser.urlencoded { extended: true }
#cookieParser = requir... | 212077 | express = require('express')
http = require('http')
http.globalAgent.maxSockets = 10
app = express()
cors = require('cors')
uuid = require('node-uuid')
app.use(cors({credentials: true}))
bodyParser = require('body-parser')
app.use bodyParser.json()
app.use bodyParser.urlencoded { extended: true }
#cookieParser = requir... | true | express = require('express')
http = require('http')
http.globalAgent.maxSockets = 10
app = express()
cors = require('cors')
uuid = require('node-uuid')
app.use(cors({credentials: true}))
bodyParser = require('body-parser')
app.use bodyParser.json()
app.use bodyParser.urlencoded { extended: true }
#cookieParser = requir... |
[
{
"context": "dule.exports =\n 'endpoint': '/auth'\n 'secret': 'secret'\n 'requestProperty': 'auth'\n",
"end": 58,
"score": 0.9073579907417297,
"start": 52,
"tag": "KEY",
"value": "secret"
}
] | lib/config.coffee | joaoafrmartins/a-http-server-plugin-auth | 0 | module.exports =
'endpoint': '/auth'
'secret': 'secret'
'requestProperty': 'auth'
| 27002 | module.exports =
'endpoint': '/auth'
'secret': '<KEY>'
'requestProperty': 'auth'
| true | module.exports =
'endpoint': '/auth'
'secret': 'PI:KEY:<KEY>END_PI'
'requestProperty': 'auth'
|
[
{
"context": "ue used to lap up prey.\n '''\n\n scientificName: 'Smutsia temminckii'\n mainImage: 'assets/fieldguide-content/mammals/",
"end": 624,
"score": 0.9998712539672852,
"start": 606,
"tag": "NAME",
"value": "Smutsia temminckii"
}
] | app/lib/field-guide-content/pangolin.coffee | zooniverse/wildcam-gorongosa-facebook | 7 | module.exports =
description: '''
The pangolin is distinguished from other mammals by its protective layer of brown horny scales that overlap like roof shingles on the upper body, tail, and outer limbs. It has a tubular head and short, powerful legs with strong curved claws well-adapted for uncovering ants and te... | 118635 | module.exports =
description: '''
The pangolin is distinguished from other mammals by its protective layer of brown horny scales that overlap like roof shingles on the upper body, tail, and outer limbs. It has a tubular head and short, powerful legs with strong curved claws well-adapted for uncovering ants and te... | true | module.exports =
description: '''
The pangolin is distinguished from other mammals by its protective layer of brown horny scales that overlap like roof shingles on the upper body, tail, and outer limbs. It has a tubular head and short, powerful legs with strong curved claws well-adapted for uncovering ants and te... |
[
{
"context": " = 16 # rval 0 or -14\n\nAMBA_CREATE_TOKEN = 0x101\nAMBA_RELEASE_TOKEN = 0x102\nAMBA_START_PREVIEW =",
"end": 1412,
"score": 0.7049816846847534,
"start": 1407,
"tag": "KEY",
"value": "0x101"
},
{
"context": "AMBA_CREATE_TOKEN = 0x101\nAMBA_RELEASE_TOKEN = 0x... | src/index.coffee | jnordberg/yichan | 17 | # Xiaomi Yi Camera control
async = require 'async'
crypto = require 'crypto'
events = require 'events'
net = require 'net'
stream = require 'stream'
util = require 'util'
ambsh = require './ambsh'
AMBA_GET_SETTING = 1 # type = setting name
# app_status
AMBA_SET_SE... | 66200 | # Xiaomi Yi Camera control
async = require 'async'
crypto = require 'crypto'
events = require 'events'
net = require 'net'
stream = require 'stream'
util = require 'util'
ambsh = require './ambsh'
AMBA_GET_SETTING = 1 # type = setting name
# app_status
AMBA_SET_SE... | true | # Xiaomi Yi Camera control
async = require 'async'
crypto = require 'crypto'
events = require 'events'
net = require 'net'
stream = require 'stream'
util = require 'util'
ambsh = require './ambsh'
AMBA_GET_SETTING = 1 # type = setting name
# app_status
AMBA_SET_SE... |
[
{
"context": "\t\t\tif filter.type?\n\t\t\t\tfilter_key = \"#{filter.type}\\[\\]\"\n\t\t\t\tmemo[filter_key] = [] unless memo[filter_key]",
"end": 1834,
"score": 0.9900667071342468,
"start": 1834,
"tag": "KEY",
"value": ""
}
] | app/assets/javascripts/pophealth.js.coffee | smc-ssiddiqui/pophealthv2 | 1 | jQuery ->
$('#logTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
jQuery ->
$('#adminPatientTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
class @QualityReport
constructor: (@measure, @sub_id, @filters) ->
@sub_id ... | 101065 | jQuery ->
$('#logTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
jQuery ->
$('#adminPatientTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
class @QualityReport
constructor: (@measure, @sub_id, @filters) ->
@sub_id ... | true | jQuery ->
$('#logTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
jQuery ->
$('#adminPatientTable').dataTable()
sPaginationType: "full_numbers"
bJQueryUI: true
class @QualityReport
constructor: (@measure, @sub_id, @filters) ->
@sub_id ... |
[
{
"context": "stfix comprehension is wrapped in parens\n# @author Julian Rosse\n###\n'use strict'\n\n#------------------------------",
"end": 131,
"score": 0.9998534917831421,
"start": 119,
"tag": "NAME",
"value": "Julian Rosse"
}
] | src/tests/rules/postfix-comprehension-assign-parens.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Enforces that an assignment as the body of a postfix comprehension is wrapped in parens
# @author Julian Rosse
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#--------------------------------------------------------------------------... | 46674 | ###*
# @fileoverview Enforces that an assignment as the body of a postfix comprehension is wrapped in parens
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
... | true | ###*
# @fileoverview Enforces that an assignment as the body of a postfix comprehension is wrapped in parens
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------... |
[
{
"context": "com:4567 (notice the trailing '/')\n#\n# Author:\n# HenryCook <henry@havingatinker.uk>\n\n{spawn, exec} = requir",
"end": 451,
"score": 0.6953738331794739,
"start": 442,
"tag": "NAME",
"value": "HenryCook"
},
{
"context": "tice the trailing '/')\n#\n# Author:\n# He... | scripts/sensu.coffee | HenryCook/hubot-scripts | 0 | # Description:
# Interacts with Sensu API
#
# Commands:
# hubot sensu info - Returns some status information around Sensu.
# hubot sensu clients info <host> - Returns Sensu related client specific information.
# hubot sensu clients remove <host> - Removes the node from Sensu.
#
# Configuration:
# SENSU_ENDPOI... | 81689 | # Description:
# Interacts with Sensu API
#
# Commands:
# hubot sensu info - Returns some status information around Sensu.
# hubot sensu clients info <host> - Returns Sensu related client specific information.
# hubot sensu clients remove <host> - Removes the node from Sensu.
#
# Configuration:
# SENSU_ENDPOI... | true | # Description:
# Interacts with Sensu API
#
# Commands:
# hubot sensu info - Returns some status information around Sensu.
# hubot sensu clients info <host> - Returns Sensu related client specific information.
# hubot sensu clients remove <host> - Removes the node from Sensu.
#
# Configuration:
# SENSU_ENDPOI... |
[
{
"context": "e 'artwork', artist: fabricate 'artist', { name: 'Matthew Abbott', sortable_id: 'abbott-matthew' } }\n fab",
"end": 2688,
"score": 0.9998164176940918,
"start": 2674,
"tag": "NAME",
"value": "Matthew Abbott"
},
{
"context": "e 'artwork', artist: fabricate 'artis... | src/desktop/apps/feature/test/client/index.coffee | kanaabe/force | 1 | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
Artwork = require '../../../../models/artwork.coffee'
SaleArtwork = require '../../../../models/sale_artwork.coffee'
Artworks = require '../../../../collections/artworks.coffee'
Feature = require '../../../../models/fea... | 105194 | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
Artwork = require '../../../../models/artwork.coffee'
SaleArtwork = require '../../../../models/sale_artwork.coffee'
Artworks = require '../../../../collections/artworks.coffee'
Feature = require '../../../../models/fea... | true | _ = require 'underscore'
benv = require 'benv'
Backbone = require 'backbone'
sinon = require 'sinon'
Artwork = require '../../../../models/artwork.coffee'
SaleArtwork = require '../../../../models/sale_artwork.coffee'
Artworks = require '../../../../collections/artworks.coffee'
Feature = require '../../../../models/fea... |
[
{
"context": "stView\n relatedView: true\n collectionName: \"Simples\"\n i18n: attributes: title: \"Text\"\n fieldNam",
"end": 258,
"score": 0.9614050388336182,
"start": 251,
"tag": "NAME",
"value": "Simples"
}
] | components/cms/modules/example/controller/ExampleController.coffee | dni/CCLV | 0 | define [
'cs!lib/view/ListView'
'cs!lib/controller/LayoutController'
'cs!sysmodules/files/view/RelatedFileView'
],
( ListView, LayoutController, RelatedFileView) ->
class SimpleView extends ListView
relatedView: true
collectionName: "Simples"
i18n: attributes: title: "Text"
fieldName: "selectmo... | 225171 | define [
'cs!lib/view/ListView'
'cs!lib/controller/LayoutController'
'cs!sysmodules/files/view/RelatedFileView'
],
( ListView, LayoutController, RelatedFileView) ->
class SimpleView extends ListView
relatedView: true
collectionName: "<NAME>"
i18n: attributes: title: "Text"
fieldName: "selectmod... | true | define [
'cs!lib/view/ListView'
'cs!lib/controller/LayoutController'
'cs!sysmodules/files/view/RelatedFileView'
],
( ListView, LayoutController, RelatedFileView) ->
class SimpleView extends ListView
relatedView: true
collectionName: "PI:NAME:<NAME>END_PI"
i18n: attributes: title: "Text"
fieldNa... |
[
{
"context": "->\n new self.paypal username: 1, password: 1, signature: 1\n\n describe \"Stores data internally",
"end": 784,
"score": 0.9988828301429749,
"start": 783,
"tag": "PASSWORD",
"value": "1"
},
{
"context": " = require \"../\"\n @p = new paypal username: \"u\",... | test/test.coffee | jaybryant/paypal-recurring | 25 | assert = require("chai").assert
sinon = require "sinon"
util = require "util"
describe "constructor", ->
describe "Throws errors when required params are missing", ->
beforeEach ->
@paypal = require "../"
it "Throws error when username is missing", ->
self = @
assert.throws (-> new se... | 95411 | assert = require("chai").assert
sinon = require "sinon"
util = require "util"
describe "constructor", ->
describe "Throws errors when required params are missing", ->
beforeEach ->
@paypal = require "../"
it "Throws error when username is missing", ->
self = @
assert.throws (-> new se... | true | assert = require("chai").assert
sinon = require "sinon"
util = require "util"
describe "constructor", ->
describe "Throws errors when required params are missing", ->
beforeEach ->
@paypal = require "../"
it "Throws error when username is missing", ->
self = @
assert.throws (-> new se... |
[
{
"context": "rences and prevent referencing this.refs\n# @author Tom Hastjarjanto\n###\n'use strict'\n\n# -----------------------------",
"end": 123,
"score": 0.9998891949653625,
"start": 107,
"tag": "NAME",
"value": "Tom Hastjarjanto"
}
] | src/tests/rules/no-string-refs.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Prevent string definitions for references and prevent referencing this.refs
# @author Tom Hastjarjanto
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
... | 106948 | ###*
# @fileoverview Prevent string definitions for references and prevent referencing this.refs
# @author <NAME>
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = req... | true | ###*
# @fileoverview Prevent string definitions for references and prevent referencing this.refs
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ----------------------------------------------------------------------------... |
[
{
"context": "6079703442f62603fc1aac3b1c271531'\n },\n 'name': 'My Workspace',\n 'slug': 'my-workspace',\n 'isDefault': true,\n",
"end": 169,
"score": 0.8525682687759399,
"start": 157,
"tag": "NAME",
"value": "My Workspace"
}
] | client/mocks/mock.jworkspace.coffee | ezgikaysi/koding | 1 | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JWorkspace',
'instanceId': '6079703442f62603fc1aac3b1c271531'
},
'name': 'My Workspace',
'slug': 'my-workspace',
'isDefault': true,
'machineUId': 'ufkk8bca4a8a',
'machineLabel': 'koding-vm-0',
'rootPath': '/home/fatihacet',
'... | 52460 | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JWorkspace',
'instanceId': '6079703442f62603fc1aac3b1c271531'
},
'name': '<NAME>',
'slug': 'my-workspace',
'isDefault': true,
'machineUId': 'ufkk8bca4a8a',
'machineLabel': 'koding-vm-0',
'rootPath': '/home/fatihacet',
'origin... | true | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JWorkspace',
'instanceId': '6079703442f62603fc1aac3b1c271531'
},
'name': 'PI:NAME:<NAME>END_PI',
'slug': 'my-workspace',
'isDefault': true,
'machineUId': 'ufkk8bca4a8a',
'machineLabel': 'koding-vm-0',
'rootPath': '/home/fatihac... |
[
{
"context": "ry'\n meta property:'twitter:site', content: '@thebandettes'\n meta property:'twitter:title', content: ",
"end": 810,
"score": 0.9995906949043274,
"start": 796,
"tag": "USERNAME",
"value": "'@thebandettes"
},
{
"context": " a class:'ban_footer__contac... | src/layouts/default.html.coffee | cattermo/bandettes | 0 |
# HTML
doctype 5
html lang: 'en', ->
head ->
# Standard
meta charset: 'utf-8'
meta 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1'
meta 'http-equiv': 'content-type', content: 'text/html; charset=utf-8'
meta name: 'viewport', content: 'width=device-width, initia... | 140671 |
# HTML
doctype 5
html lang: 'en', ->
head ->
# Standard
meta charset: 'utf-8'
meta 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1'
meta 'http-equiv': 'content-type', content: 'text/html; charset=utf-8'
meta name: 'viewport', content: 'width=device-width, initia... | true |
# HTML
doctype 5
html lang: 'en', ->
head ->
# Standard
meta charset: 'utf-8'
meta 'http-equiv': 'X-UA-Compatible', content: 'IE=edge,chrome=1'
meta 'http-equiv': 'content-type', content: 'text/html; charset=utf-8'
meta name: 'viewport', content: 'width=device-width, initia... |
[
{
"context": "(next) ->\n givenParams = { 'foo-key': 'foo-value', 'bar-key': 'bar-value' }\n up.replace",
"end": 4386,
"score": 0.9990128874778748,
"start": 4377,
"tag": "KEY",
"value": "foo-value"
},
{
"context": "venParams = { 'foo-key': 'foo-value', 'bar-key'... | spec_app/spec/javascripts/up/fragment_spec.js.coffee | jakobscholz/unpoly | 0 | u = up.util
e = up.element
$ = jQuery
describe 'up.fragment', ->
describe 'JavaScript functions', ->
describe 'up.fragment.first', ->
it 'returns the first element with the given selector', ->
match = fixture('.match')
noMatch = fixture('.no-match')
result = up.fragment.first('.m... | 162793 | u = up.util
e = up.element
$ = jQuery
describe 'up.fragment', ->
describe 'JavaScript functions', ->
describe 'up.fragment.first', ->
it 'returns the first element with the given selector', ->
match = fixture('.match')
noMatch = fixture('.no-match')
result = up.fragment.first('.m... | true | u = up.util
e = up.element
$ = jQuery
describe 'up.fragment', ->
describe 'JavaScript functions', ->
describe 'up.fragment.first', ->
it 'returns the first element with the given selector', ->
match = fixture('.match')
noMatch = fixture('.no-match')
result = up.fragment.first('.m... |
[
{
"context": "###\nValerian Time\nAuthor: Armin Rosu (hello@armin.ro), Alan Crissey (alancrissey@gmail",
"end": 36,
"score": 0.9998961091041565,
"start": 26,
"tag": "NAME",
"value": "Armin Rosu"
},
{
"context": "###\nValerian Time\nAuthor: Armin Rosu (hello@armin.ro), Alan Crissey (a... | valerian-time.widget/index.coffee | arminrosu/valerian-time | 0 | ###
Valerian Time
Author: Armin Rosu (hello@armin.ro), Alan Crissey (alancrissey@gmail.com)
A clock widget based on Alan Crissery's codepen (http://codepen.io/TheRealAlan/), comissioned by Valéria Boikova (http://www.valeriaboikova.com/)
###
command: ""
refreshFrequency: 1000
render: (output) -> """
<svg class=... | 26005 | ###
Valerian Time
Author: <NAME> (<EMAIL>), <NAME> (<EMAIL>)
A clock widget based on Alan Crissery's codepen (http://codepen.io/TheRealAlan/), comissioned by <NAME> (http://www.valeriaboikova.com/)
###
command: ""
refreshFrequency: 1000
render: (output) -> """
<svg class="clock" viewBox="0 0 100 100">
<circle... | true | ###
Valerian Time
Author: PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI), PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
A clock widget based on Alan Crissery's codepen (http://codepen.io/TheRealAlan/), comissioned by PI:NAME:<NAME>END_PI (http://www.valeriaboikova.com/)
###
command: ""
refreshFrequency: 1000
render:... |
[
{
"context": "###\n jQuery Simple Slider\n\n Copyright (c) 2012 James Smith (http://loopj.com)\n\n Licensed under the MIT licen",
"end": 58,
"score": 0.9989780783653259,
"start": 47,
"tag": "NAME",
"value": "James Smith"
}
] | public/bower_components/jquery-simple-slider/js/simple-slider.coffee | mmsamiei/WP_F17_HW5 | 2 | ###
jQuery Simple Slider
Copyright (c) 2012 James Smith (http://loopj.com)
Licensed under the MIT license (http://mit-license.org/)
###
(($, window) ->
#
# Main slider class
#
class SimpleSlider
# Build a slider object.
# Exposed via el.numericalSlider(options)
constructor: (@input, options)... | 12628 | ###
jQuery Simple Slider
Copyright (c) 2012 <NAME> (http://loopj.com)
Licensed under the MIT license (http://mit-license.org/)
###
(($, window) ->
#
# Main slider class
#
class SimpleSlider
# Build a slider object.
# Exposed via el.numericalSlider(options)
constructor: (@input, options) ->
... | true | ###
jQuery Simple Slider
Copyright (c) 2012 PI:NAME:<NAME>END_PI (http://loopj.com)
Licensed under the MIT license (http://mit-license.org/)
###
(($, window) ->
#
# Main slider class
#
class SimpleSlider
# Build a slider object.
# Exposed via el.numericalSlider(options)
constructor: (@input,... |
[
{
"context": "eturn @asteroid.login\n\t\t\t\tldap: true\n\t\t\t\tusername: username\n\t\t\t\tldapPass: password\n\t\t\t\tldapOptions: {}\n\t\telse",
"end": 2976,
"score": 0.9992936849594116,
"start": 2968,
"tag": "USERNAME",
"value": "username"
},
{
"context": "\t\t\tldap: true\n\t\t... | src/rocketchat_driver.coffee | JannikZed/hubot-rocketchat | 0 | # Adding some documentation
# Adding something else
Asteroid = require 'asteroid'
Q = require 'q'
LRU = require('lru-cache')
# TODO: need to grab these values from process.env[]
_msgsubtopic = 'stream-room-messages' # 'messages'
_msgsublimit = 10 # this is not actually used right now
_messageCollection = 'stream... | 2687 | # Adding some documentation
# Adding something else
Asteroid = require 'asteroid'
Q = require 'q'
LRU = require('lru-cache')
# TODO: need to grab these values from process.env[]
_msgsubtopic = 'stream-room-messages' # 'messages'
_msgsublimit = 10 # this is not actually used right now
_messageCollection = 'stream... | true | # Adding some documentation
# Adding something else
Asteroid = require 'asteroid'
Q = require 'q'
LRU = require('lru-cache')
# TODO: need to grab these values from process.env[]
_msgsubtopic = 'stream-room-messages' # 'messages'
_msgsublimit = 10 # this is not actually used right now
_messageCollection = 'stream... |
[
{
"context": "lue\n\t\tif value.length > 32\n\t\t\treturn value\n\n\tkey = collection_name + item_id + field\n\tdownload_object = Session.get key\n\n\t_download = ",
"end": 383,
"score": 0.9409506320953369,
"start": 350,
"tag": "KEY",
"value": "collection_name + item_id + field"
}
] | client/_helper/download.coffee | agottschalk10/worklearn | 0 | ########################################
# download
########################################
########################################
Template.registerHelper "download_field_value", (collection_name, item_id, field, observe) ->
value = get_field_value null, field, item_id, collection_name
if value
if value.length... | 150170 | ########################################
# download
########################################
########################################
Template.registerHelper "download_field_value", (collection_name, item_id, field, observe) ->
value = get_field_value null, field, item_id, collection_name
if value
if value.length... | true | ########################################
# download
########################################
########################################
Template.registerHelper "download_field_value", (collection_name, item_id, field, observe) ->
value = get_field_value null, field, item_id, collection_name
if value
if value.length... |
[
{
"context": "to a 24-bit pixel. These formulas were invented by David Dalrymple to obtain maximum contrast without going out of g",
"end": 165,
"score": 0.7723104357719421,
"start": 150,
"tag": "NAME",
"value": "David Dalrymple"
},
{
"context": "ange 0-1.\n A saturation multiplie... | node_modules/chroma-js/src/conversions/lch2lab.coffee | balamurugan01/foundation6 | 49 |
lch2lab = () ->
###
Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel. These formulas were invented by David Dalrymple to obtain maximum contrast without going out of gamut if the parameters are in the range 0-1.
A saturation multiplier was added by Gregor Aisch
##... | 88970 |
lch2lab = () ->
###
Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel. These formulas were invented by <NAME> to obtain maximum contrast without going out of gamut if the parameters are in the range 0-1.
A saturation multiplier was added by <NAME>
###
[l,c,h] =... | true |
lch2lab = () ->
###
Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel. These formulas were invented by PI:NAME:<NAME>END_PI to obtain maximum contrast without going out of gamut if the parameters are in the range 0-1.
A saturation multiplier was added by PI:NAME:<NAME>... |
[
{
"context": " filter: 'active'\n hub: '1'\n user: '42'\n\n $httpBackend.flush()\n\n expect propos",
"end": 5920,
"score": 0.6737868785858154,
"start": 5918,
"tag": "USERNAME",
"value": "42"
},
{
"context": "ned\n\n signInUser =\n auth:\n email:... | test/spec/services/api_resources_spec.coffee | Spokenvote/spokenvote | 21 | describe 'API Resources Tests', ->
beforeEach module 'spokenvote'
$httpBackend = undefined
# Test Hub $resource
describe 'Hub $resource should create, load, update, and delete hubs', ->
Hub = undefined
beforeEach inject (_$httpBackend_, _Hub_) ->
Hub = _Hub_
$httpBackend = _$httpBackend_
... | 69921 | describe 'API Resources Tests', ->
beforeEach module 'spokenvote'
$httpBackend = undefined
# Test Hub $resource
describe 'Hub $resource should create, load, update, and delete hubs', ->
Hub = undefined
beforeEach inject (_$httpBackend_, _Hub_) ->
Hub = _Hub_
$httpBackend = _$httpBackend_
... | true | describe 'API Resources Tests', ->
beforeEach module 'spokenvote'
$httpBackend = undefined
# Test Hub $resource
describe 'Hub $resource should create, load, update, and delete hubs', ->
Hub = undefined
beforeEach inject (_$httpBackend_, _Hub_) ->
Hub = _Hub_
$httpBackend = _$httpBackend_
... |
[
{
"context": "ikkiTikkiAPI.CLIENT_API_NAMESPACE\n rest_key : RikkiTikkiAPI.CLIENT_REST_KEY\n rest_key_param_name : RikkiTikkiAP",
"end": 663,
"score": 0.9080791473388672,
"start": 642,
"tag": "KEY",
"value": "RikkiTikkiAPI.CLIENT_"
},
{
"context": "kiAPI.CLIENT_REST_KEY\n ... | node_modules/rikki-tikki/src/classes/config/ClientOptions.coffee | vancarney/rikki-tikki-oauth2 | 0 | {_} = require 'underscore'
RikkiTikkiAPI = module.parent.exports.RikkiTikkiAPI || module.parent.exports
#### ClientOptions
class ClientOptions extends RikkiTikkiAPI.base_classes.Hash
constructor:(params={})->
# invokes `Hash` with extended API Option Defaults
ClientOptions.__super__.constructor.call @, o = _.... | 53194 | {_} = require 'underscore'
RikkiTikkiAPI = module.parent.exports.RikkiTikkiAPI || module.parent.exports
#### ClientOptions
class ClientOptions extends RikkiTikkiAPI.base_classes.Hash
constructor:(params={})->
# invokes `Hash` with extended API Option Defaults
ClientOptions.__super__.constructor.call @, o = _.... | true | {_} = require 'underscore'
RikkiTikkiAPI = module.parent.exports.RikkiTikkiAPI || module.parent.exports
#### ClientOptions
class ClientOptions extends RikkiTikkiAPI.base_classes.Hash
constructor:(params={})->
# invokes `Hash` with extended API Option Defaults
ClientOptions.__super__.constructor.call @, o = _.... |
[
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright (C) 2014 Jesús Espino ",
"end": 38,
"score": 0.9998873472213745,
"start": 25,
"tag": "NAME",
"value": "Andrey Antukh"
},
{
"context": "###\n# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>\n# Copyright... | public/taiga-front/app/coffee/modules/base/i18n.coffee | mabotech/maboss | 0 | ###
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino Garcia <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán Merino <bameda@dbarragan.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
... | 167248 | ###
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
# Copyright (C) 2014 <NAME> <<EMAIL>>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of... | true | ###
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gen... |
[
{
"context": "sage)\n\nretrieveDeveloperProperty = ->\n return \"Deplemento\" ##TODO implement\n\nretrieveOwnRemoteURLProperty =",
"end": 4171,
"score": 0.9940027594566345,
"start": 4161,
"tag": "NAME",
"value": "Deplemento"
}
] | source/thingymodule/thingymodule.coffee | JhonnyJason/thingycreate-sources | 0 | thingymodule = {name: "thingymodule"}
#region modulesFromEnvironment
#region node_modules
CLI = require 'clui'
Spinner = CLI.Spinner
c = require "chalk"
fs = require "fs-extra"
#endregion
#region localModules
git = null
user = null
cloud = null
recipe = null
globalScope = null
pathHandler = null
constructor = null
re... | 152378 | thingymodule = {name: "thingymodule"}
#region modulesFromEnvironment
#region node_modules
CLI = require 'clui'
Spinner = CLI.Spinner
c = require "chalk"
fs = require "fs-extra"
#endregion
#region localModules
git = null
user = null
cloud = null
recipe = null
globalScope = null
pathHandler = null
constructor = null
re... | true | thingymodule = {name: "thingymodule"}
#region modulesFromEnvironment
#region node_modules
CLI = require 'clui'
Spinner = CLI.Spinner
c = require "chalk"
fs = require "fs-extra"
#endregion
#region localModules
git = null
user = null
cloud = null
recipe = null
globalScope = null
pathHandler = null
constructor = null
re... |
[
{
"context": "value: null,\n display_name: \"Display Name\",\n explicitly_set: false,\n ",
"end": 7186,
"score": 0.907425045967102,
"start": 7174,
"tag": "NAME",
"value": "Display Name"
},
{
"context": " testValue: {\n ... | work-files/install-native/cms/static/coffee/spec/views/metadata_edit_spec.coffee | lpm0073/netec-edx-theme | 0 | define ["js/models/metadata", "js/collections/metadata", "js/views/metadata", "cms/js/main"],
(MetadataModel, MetadataCollection, MetadataView, main) ->
verifyInputType = (input, expectedType) ->
# Some browsers (e.g. FireFox) do not support the "number"
# input type. We can accept a "text" input instead... | 131305 | define ["js/models/metadata", "js/collections/metadata", "js/views/metadata", "cms/js/main"],
(MetadataModel, MetadataCollection, MetadataView, main) ->
verifyInputType = (input, expectedType) ->
# Some browsers (e.g. FireFox) do not support the "number"
# input type. We can accept a "text" input instead... | true | define ["js/models/metadata", "js/collections/metadata", "js/views/metadata", "cms/js/main"],
(MetadataModel, MetadataCollection, MetadataView, main) ->
verifyInputType = (input, expectedType) ->
# Some browsers (e.g. FireFox) do not support the "number"
# input type. We can accept a "text" input instead... |
[
{
"context": " member.teamId = team.id\n member.firstName = 'Test'\n teamsnap.saveMember member, (err, result) ->",
"end": 182,
"score": 0.9990172386169434,
"start": 178,
"tag": "NAME",
"value": "Test"
},
{
"context": "l.memberId = member.id\n email.email = value = 'test@ex... | test/memberEmailAddresses.coffee | teamsnap/teamsnap-javascript-sdk | 9 | describe 'Member Email Addresses', ->
member = null
email = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = 'Test'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
done()
after (done) ->
teamsnap.deleteMember ... | 49330 | describe 'Member Email Addresses', ->
member = null
email = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = '<NAME>'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
done()
after (done) ->
teamsnap.deleteMembe... | true | describe 'Member Email Addresses', ->
member = null
email = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = 'PI:NAME:<NAME>END_PI'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
done()
after (done) ->
teamsn... |
[
{
"context": "\nCSV = require(\"comma-separated-values\")\n\nUSER = \"USER ID\"\nPASS = \"PASSWORD\"\n\nTRAC_URL = \"TRAC URL\"\nCSV_URL",
"end": 90,
"score": 0.5274986028671265,
"start": 83,
"tag": "USERNAME",
"value": "USER ID"
},
{
"context": "omma-separated-values\")\n\nUSER = \"... | trac_watchmen.coffee | lnit/hubot-trac-watchmen | 0 | cronJob = require("cron").CronJob
CSV = require("comma-separated-values")
USER = "USER ID"
PASS = "PASSWORD"
TRAC_URL = "TRAC URL"
CSV_URL = "TRAC CSV QUERY URL"
ROOM = "ROOM NAME"
module.exports = (robot) ->
checkComponent = (robot, old_t, new_t) ->
col = "component"
if old_t && old_t[col] != new_t[col]
... | 28368 | cronJob = require("cron").CronJob
CSV = require("comma-separated-values")
USER = "USER ID"
PASS = "<PASSWORD>"
TRAC_URL = "TRAC URL"
CSV_URL = "TRAC CSV QUERY URL"
ROOM = "ROOM NAME"
module.exports = (robot) ->
checkComponent = (robot, old_t, new_t) ->
col = "component"
if old_t && old_t[col] != new_t[col]... | true | cronJob = require("cron").CronJob
CSV = require("comma-separated-values")
USER = "USER ID"
PASS = "PI:PASSWORD:<PASSWORD>END_PI"
TRAC_URL = "TRAC URL"
CSV_URL = "TRAC CSV QUERY URL"
ROOM = "ROOM NAME"
module.exports = (robot) ->
checkComponent = (robot, old_t, new_t) ->
col = "component"
if old_t && old_t[... |
[
{
"context": "./util'\nsha1 = require 'js-sha1'\n\nsharedSecret = '8cd8ef52e8e101574e400365b55e11a6'\n\nindex = (req, resp) ->\n resp \"Hello World!\"\n\nc",
"end": 141,
"score": 0.9986979365348816,
"start": 109,
"tag": "KEY",
"value": "8cd8ef52e8e101574e400365b55e11a6"
}
] | labs/api/meetings/lib/handlers.coffee | thong-hoczita/bigbluebutton | 0 | hapi = require 'hapi'
Joi = require 'joi'
util = require './util'
sha1 = require 'js-sha1'
sharedSecret = '8cd8ef52e8e101574e400365b55e11a6'
index = (req, resp) ->
resp "Hello World!"
createHandler = (req, resp) ->
console.log("CREATE: " + req.originalUrl )
checksum = req.query.checksum
console.log("checksu... | 17449 | hapi = require 'hapi'
Joi = require 'joi'
util = require './util'
sha1 = require 'js-sha1'
sharedSecret = '<KEY>'
index = (req, resp) ->
resp "Hello World!"
createHandler = (req, resp) ->
console.log("CREATE: " + req.originalUrl )
checksum = req.query.checksum
console.log("checksum = [" + checksum + "]")
... | true | hapi = require 'hapi'
Joi = require 'joi'
util = require './util'
sha1 = require 'js-sha1'
sharedSecret = 'PI:KEY:<KEY>END_PI'
index = (req, resp) ->
resp "Hello World!"
createHandler = (req, resp) ->
console.log("CREATE: " + req.originalUrl )
checksum = req.query.checksum
console.log("checksum = [" + check... |
[
{
"context": "fidence inspiring kanye west quote\n#\n# Author:\n# courtnek \n\nkanyes = [\n [\"Jay is Kweli's favorite rapper, ",
"end": 346,
"score": 0.9997121095657349,
"start": 338,
"tag": "USERNAME",
"value": "courtnek"
},
{
"context": "s, I would just be lying to you and to m... | src/kanye.coffee | courtnek/hubot-kanye | 0 | # Description:
# Recieve random, confidence inspiring kanye west quotes.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot kanye me - reply with a random, confidence inspiring kanye west quote
# hubot give me some kayne-fidence - reply with a random, confidence inspiring kanye west quot... | 197128 | # Description:
# Recieve random, confidence inspiring kanye west quotes.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot kanye me - reply with a random, confidence inspiring kanye west quote
# hubot give me some kayne-fidence - reply with a random, confidence inspiring kanye west quot... | true | # Description:
# Recieve random, confidence inspiring kanye west quotes.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot kanye me - reply with a random, confidence inspiring kanye west quote
# hubot give me some kayne-fidence - reply with a random, confidence inspiring kanye west quot... |
[
{
"context": "g brave Tassadar.\n tassadar = Unit.create name: 'Tassadar', life: 80\n\n # Updating Model with modifiers.\n ",
"end": 649,
"score": 0.9989301562309265,
"start": 641,
"tag": "NAME",
"value": "Tassadar"
}
] | examples/modifiers.coffee | wanbok/mongo-model | 1 | # Usually if You want to update [Model](model.html) You load it, make changes
# and save it back. But if You want to update only some of attributes
# there's more efficient way - modifiers.
#
# In this example we'll create simple Model and update it using modifiers.
Model = require 'mongo-model'
# Enabling optional [sy... | 146592 | # Usually if You want to update [Model](model.html) You load it, make changes
# and save it back. But if You want to update only some of attributes
# there's more efficient way - modifiers.
#
# In this example we'll create simple Model and update it using modifiers.
Model = require 'mongo-model'
# Enabling optional [sy... | true | # Usually if You want to update [Model](model.html) You load it, make changes
# and save it back. But if You want to update only some of attributes
# there's more efficient way - modifiers.
#
# In this example we'll create simple Model and update it using modifiers.
Model = require 'mongo-model'
# Enabling optional [sy... |
[
{
"context": ": null\n\n profile:\n details:\n firstname: 'Matt'\n lastname: 'McCray'\n\n vehicles: [\n (nam",
"end": 100,
"score": 0.9998126029968262,
"start": 96,
"tag": "NAME",
"value": "Matt"
},
{
"context": "details:\n firstname: 'Matt'\n lastname: 'M... | test/src/misc-test.coffee | elucidata/ogre.js | 1 | state=
page:
current: 'home'
params: null
profile:
details:
firstname: 'Matt'
lastname: 'McCray'
vehicles: [
(name:'corvette')
(name:'jeep')
]
app:
data:
codes:
states: null
makes: null
data= ogre state
prof= data.cursor 'profile.details'
page= da... | 73085 | state=
page:
current: 'home'
params: null
profile:
details:
firstname: '<NAME>'
lastname: '<NAME>'
vehicles: [
(name:'corvette')
(name:'<NAME>')
]
app:
data:
codes:
states: null
makes: null
data= ogre state
prof= data.cursor 'profile.details'
page... | true | state=
page:
current: 'home'
params: null
profile:
details:
firstname: 'PI:NAME:<NAME>END_PI'
lastname: 'PI:NAME:<NAME>END_PI'
vehicles: [
(name:'corvette')
(name:'PI:NAME:<NAME>END_PI')
]
app:
data:
codes:
states: null
makes: null
data= ogre stat... |
[
{
"context": "ersion 1.0.0\n@file Core.js\n@author Welington Sampaio (http://welington.zaez.net/)\n@contact http://",
"end": 145,
"score": 0.9998998045921326,
"start": 128,
"tag": "NAME",
"value": "Welington Sampaio"
},
{
"context": "n.zaez.net/site/contato\n\n@co... | vendor/assets/javascripts/lol_framework/Core.coffee | welingtonsampaio/lol-framework | 1 | ###
@summary Lol Framework
@description Framework of RIAs applications
@version 1.0.0
@file Core.js
@author Welington Sampaio (http://welington.zaez.net/)
@contact http://welington.zaez.net/site/contato
@copyright Copyright 2012 Welington Sampaio, all rights reserved.
This source file is free ... | 133813 | ###
@summary Lol Framework
@description Framework of RIAs applications
@version 1.0.0
@file Core.js
@author <NAME> (http://welington.zaez.net/)
@contact http://welington.zaez.net/site/contato
@copyright Copyright 2012 <NAME>, all rights reserved.
This source file is free software, under the li... | true | ###
@summary Lol Framework
@description Framework of RIAs applications
@version 1.0.0
@file Core.js
@author PI:NAME:<NAME>END_PI (http://welington.zaez.net/)
@contact http://welington.zaez.net/site/contato
@copyright Copyright 2012 PI:NAME:<NAME>END_PI, all rights reserved.
This source file is... |
[
{
"context": "-04-09')\n expect(hdr2.get('SOFTAUTH')).toBe('Emmanuel BERTIN <bertin@iap.fr>')\n expect(hdr2.get('SOFTINST",
"end": 12951,
"score": 0.9998760223388672,
"start": 12936,
"tag": "NAME",
"value": "Emmanuel BERTIN"
},
{
"context": "pect(hdr2.get('SOFTAUTH')).toBe(... | test/specs/header.coffee | astrojs/fitsjs | 57 |
window.FITS = astro.FITS
describe "FITS Header", ->
it 'can parse a FITS header describing an image and ASCII table', ->
ready = false
path = 'data/m101.fits'
fits = new astro.FITS(path, (fits) ->
ready = true
)
waitsFor ->
return ready
runs ->
hdr1 = fits.g... | 37879 |
window.FITS = astro.FITS
describe "FITS Header", ->
it 'can parse a FITS header describing an image and ASCII table', ->
ready = false
path = 'data/m101.fits'
fits = new astro.FITS(path, (fits) ->
ready = true
)
waitsFor ->
return ready
runs ->
hdr1 = fits.g... | true |
window.FITS = astro.FITS
describe "FITS Header", ->
it 'can parse a FITS header describing an image and ASCII table', ->
ready = false
path = 'data/m101.fits'
fits = new astro.FITS(path, (fits) ->
ready = true
)
waitsFor ->
return ready
runs ->
hdr1 = fits.g... |
[
{
"context": "t\": \"build.scheduled\"\n \"X-Buildkite-Token\": \"02ddb822d4000975005c76484364f1ee\"\n \"X-Buildkite-Request\": \"65f07186-541f-41db",
"end": 375,
"score": 0.95508873462677,
"start": 343,
"tag": "KEY",
"value": "02ddb822d4000975005c76484364f1ee"
},
{
"contex... | test/services/buildkite.coffee | jianliaoim/talk-services | 40 | should = require 'should'
loader = require '../../src/loader'
{req} = require '../util'
$buildkite = loader.load 'buildkite'
describe 'Buildkite#Webhook', ->
it 'receive webhook', (done) ->
req.body = require './buildkite_assets/payload.json'
req.headers =
"X-Buildkite-Event": "build.scheduled"
... | 84934 | should = require 'should'
loader = require '../../src/loader'
{req} = require '../util'
$buildkite = loader.load 'buildkite'
describe 'Buildkite#Webhook', ->
it 'receive webhook', (done) ->
req.body = require './buildkite_assets/payload.json'
req.headers =
"X-Buildkite-Event": "build.scheduled"
... | true | should = require 'should'
loader = require '../../src/loader'
{req} = require '../util'
$buildkite = loader.load 'buildkite'
describe 'Buildkite#Webhook', ->
it 'receive webhook', (done) ->
req.body = require './buildkite_assets/payload.json'
req.headers =
"X-Buildkite-Event": "build.scheduled"
... |
[
{
"context": " = new Users([\n factories.makeUser({name: 'Abner'})\n factories.makeUser({name: 'Abigail'})\n",
"end": 1592,
"score": 0.9996983408927917,
"start": 1587,
"tag": "NAME",
"value": "Abner"
},
{
"context": "ame: 'Abner'})\n factories.makeUser({name: 'Ab... | test/app/views/teachers/TeacherClassView.spec.ozar.coffee | goranoberg/codecombat | 0 | #TeacherClassView = require 'views/courses/TeacherClassView'
storage = require 'core/storage'
forms = require 'core/forms'
factories = require 'test/app/factories'
Users = require 'collections/Users'
Courses = require 'collections/Courses'
Levels = require 'collections/Levels'
LevelSessions = require 'collections/Level... | 103754 | #TeacherClassView = require 'views/courses/TeacherClassView'
storage = require 'core/storage'
forms = require 'core/forms'
factories = require 'test/app/factories'
Users = require 'collections/Users'
Courses = require 'collections/Courses'
Levels = require 'collections/Levels'
LevelSessions = require 'collections/Level... | true | #TeacherClassView = require 'views/courses/TeacherClassView'
storage = require 'core/storage'
forms = require 'core/forms'
factories = require 'test/app/factories'
Users = require 'collections/Users'
Courses = require 'collections/Courses'
Levels = require 'collections/Levels'
LevelSessions = require 'collections/Level... |
[
{
"context": " expect(creds.secretAccessKey).toEqual(secret || 'secret')\n expect(creds.sessionToken).toEqual(session ||",
"end": 764,
"score": 0.700950562953949,
"start": 758,
"tag": "KEY",
"value": "secret"
},
{
"context": " config = new AWS.Config(\n accessKeyId: 'akid'\... | node_modules/grunt-aws-s3/node_modules/aws-sdk/test/credentials.spec.coffee | uqlibrary/summonhacks | 2 | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | 117582 | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... | true | # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" fil... |
[
{
"context": "her'\n\npusher = new Pusher(\n appId: 13691\n key: \"fd4504f207d8fbf4e203\"\n secret: \"87ba99a799f2ad50cd3c\"\n)\n\nconsole.log ",
"end": 97,
"score": 0.996173083782196,
"start": 77,
"tag": "KEY",
"value": "fd4504f207d8fbf4e203"
},
{
"context": "d: 13691\n key: \"f... | node_modules/pusher/test_auth.coffee | nitish1402/Live-Angular | 1 | Pusher = require './lib/pusher'
pusher = new Pusher(
appId: 13691
key: "fd4504f207d8fbf4e203"
secret: "87ba99a799f2ad50cd3c"
)
console.log pusher.authenticate("38733.12928731", "private-888888")
| 221653 | Pusher = require './lib/pusher'
pusher = new Pusher(
appId: 13691
key: "<KEY>"
secret: "<KEY>"
)
console.log pusher.authenticate("38733.12928731", "private-888888")
| true | Pusher = require './lib/pusher'
pusher = new Pusher(
appId: 13691
key: "PI:KEY:<KEY>END_PI"
secret: "PI:KEY:<KEY>END_PI"
)
console.log pusher.authenticate("38733.12928731", "private-888888")
|
[
{
"context": " .attr('name')\n\n user = new Person(name: \"Jack\", lastname: \"Frost\")\n\n it 'works with ractive by",
"end": 441,
"score": 0.9995790123939514,
"start": 437,
"tag": "NAME",
"value": "Jack"
},
{
"context": "r: user }\n adapt: ['ento']\n\n user.name = ... | test/ractive_test.coffee | rstacruz/ento | 11 | require './setup'
Person = null
user = null
view = null
describe 'ractive', ->
require('./support/ractive')()
it 'ensure ractive works', ->
view = new Ractive
el: 'body'
template: '<div>{{x}}</div>'
view.set x: 'hello'
expect(document.body.innerHTML).eql '<div>hello</div>'
beforeEach ... | 215234 | require './setup'
Person = null
user = null
view = null
describe 'ractive', ->
require('./support/ractive')()
it 'ensure ractive works', ->
view = new Ractive
el: 'body'
template: '<div>{{x}}</div>'
view.set x: 'hello'
expect(document.body.innerHTML).eql '<div>hello</div>'
beforeEach ... | true | require './setup'
Person = null
user = null
view = null
describe 'ractive', ->
require('./support/ractive')()
it 'ensure ractive works', ->
view = new Ractive
el: 'body'
template: '<div>{{x}}</div>'
view.set x: 'hello'
expect(document.body.innerHTML).eql '<div>hello</div>'
beforeEach ... |
[
{
"context": " category: \"reference\"\n author: \"Nigel Rees\"\n title: \"Sayings of the Century\"\n ",
"end": 476,
"score": 0.9998897910118103,
"start": 466,
"tag": "NAME",
"value": "Nigel Rees"
},
{
"context": " category: \"fiction\"\n ... | test/GetObjectPath.coffee | rybesh/noflo | 0 | getpath = require "../src/components/GetObjectPath"
socket = require "../src/lib/InternalSocket"
setupComponent = ->
c = getpath.getComponent()
ins = socket.createSocket()
out = socket.createSocket()
err = socket.createSocket()
c.inPorts.in.attach ins
c.outPorts.out.attach out
c.outPorts.er... | 154413 | getpath = require "../src/components/GetObjectPath"
socket = require "../src/lib/InternalSocket"
setupComponent = ->
c = getpath.getComponent()
ins = socket.createSocket()
out = socket.createSocket()
err = socket.createSocket()
c.inPorts.in.attach ins
c.outPorts.out.attach out
c.outPorts.er... | true | getpath = require "../src/components/GetObjectPath"
socket = require "../src/lib/InternalSocket"
setupComponent = ->
c = getpath.getComponent()
ins = socket.createSocket()
out = socket.createSocket()
err = socket.createSocket()
c.inPorts.in.attach ins
c.outPorts.out.attach out
c.outPorts.er... |
[
{
"context": "C_REMOTE'] %>\r\n@ng_app.constant('SERVER_HOST', \"//115.159.125.112:1122/index.php\" );\r\n<% else %>\r\n@ng_app.constant(",
"end": 114,
"score": 0.9997216463088989,
"start": 99,
"tag": "IP_ADDRESS",
"value": "115.159.125.112"
},
{
"context": ";\r\n<% else %>\r\n@ng_ap... | public/front/content/js/coffee/constants.coffee | yintengzhao/CCCourse | 0 | <% if ENV['NANOC_ENV']=='production' && ENV['NANOC_REMOTE'] %>
@ng_app.constant('SERVER_HOST', "//115.159.125.112:1122/index.php" );
<% else %>
@ng_app.constant('SERVER_HOST', "//127.0.0.1:1122" );
<% end %>
| 141882 | <% if ENV['NANOC_ENV']=='production' && ENV['NANOC_REMOTE'] %>
@ng_app.constant('SERVER_HOST', "//192.168.127.12:1122/index.php" );
<% else %>
@ng_app.constant('SERVER_HOST', "//127.0.0.1:1122" );
<% end %>
| true | <% if ENV['NANOC_ENV']=='production' && ENV['NANOC_REMOTE'] %>
@ng_app.constant('SERVER_HOST', "//PI:IP_ADDRESS:192.168.127.12END_PI:1122/index.php" );
<% else %>
@ng_app.constant('SERVER_HOST', "//127.0.0.1:1122" );
<% end %>
|
[
{
"context": ">\n record =\n subscriberUuid: 'punk rock'\n emitterUuid: 'rap'\n type: 'hi",
"end": 804,
"score": 0.7093029618263245,
"start": 800,
"tag": "USERNAME",
"value": "rock"
},
{
"context": ">\n record =\n subscriberUuid: 'pun... | test/list-subscriptions-spec.coffee | octoblu/meshblu-core-manager-subscriptions | 0 | {beforeEach, describe, it} = global
{expect} = require 'chai'
mongojs = require 'mongojs'
Datastore = require 'meshblu-core-datastore'
SubscriptionManager = require '../src/subscription-manager'
describe 'List Subscriptions', ->
beforeEach (done) ->
database = mongojs 'subscription-manager-test', ['subscription... | 200994 | {beforeEach, describe, it} = global
{expect} = require 'chai'
mongojs = require 'mongojs'
Datastore = require 'meshblu-core-datastore'
SubscriptionManager = require '../src/subscription-manager'
describe 'List Subscriptions', ->
beforeEach (done) ->
database = mongojs 'subscription-manager-test', ['subscription... | true | {beforeEach, describe, it} = global
{expect} = require 'chai'
mongojs = require 'mongojs'
Datastore = require 'meshblu-core-datastore'
SubscriptionManager = require '../src/subscription-manager'
describe 'List Subscriptions', ->
beforeEach (done) ->
database = mongojs 'subscription-manager-test', ['subscription... |
[
{
"context": "traData) ->\n\t\tinvitation =\n\t\t\temail: email\n\t\t\tkey: Random.secret()\n\t\t\tts: new Date()\n\n\t\t_.extend invitation, extraDa",
"end": 718,
"score": 0.8426647186279297,
"start": 703,
"tag": "KEY",
"value": "Random.secret()"
}
] | packages/rocketchat-lib/server/models/Invitations.coffee | mboozell/rocket-chat-example-package | 0 | RocketChat.models.Invitations = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'invitations'
@tryEnsureIndex { 'key': 1 }, { unique: 1 }
@tryEnsureIndex { 'email': 1 }
# FIND ONE
findOneById: (_id, options) ->
query =
_id: _id
return @findOne query, options
findOneByEmail: (... | 157390 | RocketChat.models.Invitations = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'invitations'
@tryEnsureIndex { 'key': 1 }, { unique: 1 }
@tryEnsureIndex { 'email': 1 }
# FIND ONE
findOneById: (_id, options) ->
query =
_id: _id
return @findOne query, options
findOneByEmail: (... | true | RocketChat.models.Invitations = new class extends RocketChat.models._Base
constructor: ->
@_initModel 'invitations'
@tryEnsureIndex { 'key': 1 }, { unique: 1 }
@tryEnsureIndex { 'email': 1 }
# FIND ONE
findOneById: (_id, options) ->
query =
_id: _id
return @findOne query, options
findOneByEmail: (... |
[
{
"context": "alse})\n\nUserRemarkSchema.index({user: 1}, {name: 'User'})\n\nmodule.exports = UserRemark = mongoose.model(",
"end": 294,
"score": 0.5154111981391907,
"start": 290,
"tag": "NAME",
"value": "User"
}
] | server/users/remarks/UserRemark.coffee | JurianLock/codecombat | 1 | mongoose = require 'mongoose'
plugins = require '../../plugins/plugins'
jsonschema = require '../../../app/schemas/models/user_remark'
UserRemarkSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
UserRemarkSchema.index({user: 1}, {name: 'User'})
module.exports = User... | 189127 | mongoose = require 'mongoose'
plugins = require '../../plugins/plugins'
jsonschema = require '../../../app/schemas/models/user_remark'
UserRemarkSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
UserRemarkSchema.index({user: 1}, {name: '<NAME>'})
module.exports = Us... | true | mongoose = require 'mongoose'
plugins = require '../../plugins/plugins'
jsonschema = require '../../../app/schemas/models/user_remark'
UserRemarkSchema = new mongoose.Schema({
created:
type: Date
'default': Date.now
}, {strict: false})
UserRemarkSchema.index({user: 1}, {name: 'PI:NAME:<NAME>END_PI'})
modul... |
[
{
"context": "es = {}\n\n getVariables: (identity) ->\n DBKEY = \"#{identity.deviceId}|#{identity.requestAppId}\"\n @identities[DBKEY] = @identities[DBKEY] ? {}\n",
"end": 524,
"score": 0.9578495025634766,
"start": 477,
"tag": "KEY",
"value": "\"#{identity.deviceId}|#{identity.request... | packages/litexa/src/parser/mockdb.coffee | fboerncke/litexa | 34 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
DBInterface = require('./dbInterface.... | 7186 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
DBInterface = require('./dbInterface.... | true | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
DBInterface = require('./dbInterface.... |
[
{
"context": "###\nmdash\nhttps://github.com/semencov/mdash-node\n\nCopyright (c) 2015 Yuri Sementsov\nLic",
"end": 37,
"score": 0.9996015429496765,
"start": 29,
"tag": "USERNAME",
"value": "semencov"
},
{
"context": "github.com/semencov/mdash-node\n\nCopyright (c) 2015 Yuri Sementso... | src/lib/mdash.coffee | semencov/mdash-node | 2 | ###
mdash
https://github.com/semencov/mdash-node
Copyright (c) 2015 Yuri Sementsov
Licensed under the MIT license.
###
'use strict'
path = require 'path'
fs = require 'fs'
Lib = require './lib'
settingsFile = path.join process.cwd(), ".mdash"
tretsDir = path.join __dirname, './trets'
readFile = (filepath) ->
co... | 64148 | ###
mdash
https://github.com/semencov/mdash-node
Copyright (c) 2015 <NAME>
Licensed under the MIT license.
###
'use strict'
path = require 'path'
fs = require 'fs'
Lib = require './lib'
settingsFile = path.join process.cwd(), ".mdash"
tretsDir = path.join __dirname, './trets'
readFile = (filepath) ->
contents =... | true | ###
mdash
https://github.com/semencov/mdash-node
Copyright (c) 2015 PI:NAME:<NAME>END_PI
Licensed under the MIT license.
###
'use strict'
path = require 'path'
fs = require 'fs'
Lib = require './lib'
settingsFile = path.join process.cwd(), ".mdash"
tretsDir = path.join __dirname, './trets'
readFile = (filepath) -... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n\n# Permission i",
"end": 18,
"score": 0.8993825912475586,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/pummel/test-abort-fatal-error.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, mer... | 19746 | # 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, mer... | 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, cop... |
[
{
"context": "potentially confused use of name exports\n# @author Desmond Brand\n# @copyright 2016 Desmond Brand. All rights reser",
"end": 104,
"score": 0.9998791813850403,
"start": 91,
"tag": "NAME",
"value": "Desmond Brand"
},
{
"context": " exports\n# @author Desmond Brand\n# @co... | src/rules/no-named-as-default-member.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Rule to warn about potentially confused use of name exports
# @author Desmond Brand
# @copyright 2016 Desmond Brand. All rights reserved.
# See LICENSE in root directory for full license.
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{
default: importDeclaration
} = requir... | 187630 | ###*
# @fileoverview Rule to warn about potentially confused use of name exports
# @author <NAME>
# @copyright 2016 <NAME>. All rights reserved.
# See LICENSE in root directory for full license.
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{
default: importDeclaration
} = require 'eslint-plug... | true | ###*
# @fileoverview Rule to warn about potentially confused use of name exports
# @author PI:NAME:<NAME>END_PI
# @copyright 2016 PI:NAME:<NAME>END_PI. All rights reserved.
# See LICENSE in root directory for full license.
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{
default: importDeclarat... |
[
{
"context": "lements the player skill estimation algorithm from Herbrich et al.,\n\"TrueSkill(TM): A Bayesian Skill Rating S",
"end": 66,
"score": 0.9967095255851746,
"start": 58,
"tag": "NAME",
"value": "Herbrich"
}
] | convert/trueskill.coffee | freethenation/node-trueskill | 28 | ###
Implements the player skill estimation algorithm from Herbrich et al.,
"TrueSkill(TM): A Bayesian Skill Rating System".
###
#define a bunch of python methods for JavaScript
sqrt = Math.sqrt
pow = Math.pow
len=(obj)->obj.length
range=(max)->[0...max]
reduce=(list, iterator, memo)->
for i in list
memo = i... | 120590 | ###
Implements the player skill estimation algorithm from <NAME> et al.,
"TrueSkill(TM): A Bayesian Skill Rating System".
###
#define a bunch of python methods for JavaScript
sqrt = Math.sqrt
pow = Math.pow
len=(obj)->obj.length
range=(max)->[0...max]
reduce=(list, iterator, memo)->
for i in list
memo = ite... | true | ###
Implements the player skill estimation algorithm from PI:NAME:<NAME>END_PI et al.,
"TrueSkill(TM): A Bayesian Skill Rating System".
###
#define a bunch of python methods for JavaScript
sqrt = Math.sqrt
pow = Math.pow
len=(obj)->obj.length
range=(max)->[0...max]
reduce=(list, iterator, memo)->
for i in list
... |
[
{
"context": "t) ->\n facts = Facts()\n facts.advance(2, {name:\"Rich Hickey\", role:\"Language Designer\"})\n riches = facts.que",
"end": 221,
"score": 0.9998447299003601,
"start": 210,
"tag": "NAME",
"value": "Rich Hickey"
},
{
"context": "h(\"Rich\")\n test.same riches, [\n ... | Tests/Query Tests.coffee | pinkturtle/facts | 0 | {tape, Facts} = require "./test_setup"
tape "Query Tests", (test) -> test.end()
tape "entities returned by query contain all attributes in the database", (test) ->
facts = Facts()
facts.advance(2, {name:"Rich Hickey", role:"Language Designer"})
riches = facts.query
where:(id, attribute, value, time) ->
... | 155806 | {tape, Facts} = require "./test_setup"
tape "Query Tests", (test) -> test.end()
tape "entities returned by query contain all attributes in the database", (test) ->
facts = Facts()
facts.advance(2, {name:"<NAME>", role:"Language Designer"})
riches = facts.query
where:(id, attribute, value, time) ->
att... | true | {tape, Facts} = require "./test_setup"
tape "Query Tests", (test) -> test.end()
tape "entities returned by query contain all attributes in the database", (test) ->
facts = Facts()
facts.advance(2, {name:"PI:NAME:<NAME>END_PI", role:"Language Designer"})
riches = facts.query
where:(id, attribute, value, time... |
[
{
"context": "y for storing webhooks\n\twebhookKey: (entryId) -> \"gitlab-#{entryId}-webhook-id\"\n\t\n\t# Create a issue from an Asana task\n\tcreateIs",
"end": 1361,
"score": 0.8820621967315674,
"start": 1333,
"tag": "KEY",
"value": "gitlab-#{entryId}-webhook-id"
}
] | functions/services/gitlab.coffee | BKWLD/asana-gitlab-bridge | 2 | # Deps
axios = require 'axios'
_ = require 'lodash'
db = new (require './db')
asana = new (require './asana')
# Define the service
module.exports = class Gitlab
# Build Axios client
constructor: -> @client = axios.create
baseURL: 'https://gitlab.com/api/v4'
headers: 'Private-Token': process.env.GITLAB_ACCESS_T... | 160954 | # Deps
axios = require 'axios'
_ = require 'lodash'
db = new (require './db')
asana = new (require './asana')
# Define the service
module.exports = class Gitlab
# Build Axios client
constructor: -> @client = axios.create
baseURL: 'https://gitlab.com/api/v4'
headers: 'Private-Token': process.env.GITLAB_ACCESS_T... | true | # Deps
axios = require 'axios'
_ = require 'lodash'
db = new (require './db')
asana = new (require './asana')
# Define the service
module.exports = class Gitlab
# Build Axios client
constructor: -> @client = axios.create
baseURL: 'https://gitlab.com/api/v4'
headers: 'Private-Token': process.env.GITLAB_ACCESS_T... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9992477297782898,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-fs-read-stream-resume.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... | 112044 | # 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": "wer, i in @props.task.answers\n answer._key ?= Math.random()\n <label key={answer._key} className",
"end": 2155,
"score": 0.6035168170928955,
"start": 2151,
"tag": "KEY",
"value": "Math"
}
] | app/classifier/tasks/single.cjsx | camallen/Panoptes-Front-End | 0 | React = require 'react'
{Markdown} = require 'markdownz'
GenericTask = require './generic'
GenericTaskEditor = require './generic-editor'
NOOP = Function.prototype
Summary = React.createClass
displayName: 'SingleChoiceSummary'
getDefaultProps: ->
task: null
annotation: null
expanded: false
getInit... | 121857 | React = require 'react'
{Markdown} = require 'markdownz'
GenericTask = require './generic'
GenericTaskEditor = require './generic-editor'
NOOP = Function.prototype
Summary = React.createClass
displayName: 'SingleChoiceSummary'
getDefaultProps: ->
task: null
annotation: null
expanded: false
getInit... | true | React = require 'react'
{Markdown} = require 'markdownz'
GenericTask = require './generic'
GenericTaskEditor = require './generic-editor'
NOOP = Function.prototype
Summary = React.createClass
displayName: 'SingleChoiceSummary'
getDefaultProps: ->
task: null
annotation: null
expanded: false
getInit... |
[
{
"context": "erate `@regexps.books` three times.\n\t\t\tif key is \"include_apocrypha\" or key is \"versification_system\" or key is \"case",
"end": 10287,
"score": 0.8642568588256836,
"start": 10270,
"tag": "KEY",
"value": "include_apocrypha"
},
{
"context": "ally with ending paren... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/core/bcv_parser.coffee | saiba-mais/bible-lessons | 149 | # This class takes a string and identifies Bible passage references in that string. It's designed to handle how people actually type Bible passages and tries fairly hard to make sense of dubious possibilities.
#
# The aggressiveness is tunable, to a certain extent, using the below `options`. It's probably too aggressi... | 121051 | # This class takes a string and identifies Bible passage references in that string. It's designed to handle how people actually type Bible passages and tries fairly hard to make sense of dubious possibilities.
#
# The aggressiveness is tunable, to a certain extent, using the below `options`. It's probably too aggressi... | true | # This class takes a string and identifies Bible passage references in that string. It's designed to handle how people actually type Bible passages and tries fairly hard to make sense of dubious possibilities.
#
# The aggressiveness is tunable, to a certain extent, using the below `options`. It's probably too aggressi... |
[
{
"context": "tatic certs to speed up tests\n certs =\n key: '-----BEGIN RSA PRIVATE KEY-----\\nMIICXAIBAAKBgQDUanwpKPOFRiRC64vq4q3NOmMA1XzvowMsHSsQJJiIwh4dMLc2\\npkq2vZ6NXASCdNoKw84xgSKWnqD3MuLSEb9mPdSx/zYIXfqwJCGhEu7klcuKbxiM\\nroeF//4VGJlrfy6TP47ayk7R60HJWYfkmZWUi7PI20Adlx/6/di3OPLffQIDAQAB\\nAoGBAJ8p5z0... | test/01-transport-tests.coffee | jpillora/pnode | 4 |
{expect} = require "chai"
_ = require "../vendor/lodash"
pnode = require "../"
sinon = require "sinon"
#iteratively define tests
describe "transports > ", ->
#use static certs to speed up tests
certs =
key: '-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQDUanwpKPOFRiRC64vq4q3NOmMA1XzvowMsHSsQJJiIwh4dMLc2\npk... | 156264 |
{expect} = require "chai"
_ = require "../vendor/lodash"
pnode = require "../"
sinon = require "sinon"
#iteratively define tests
describe "transports > ", ->
#use static certs to speed up tests
certs =
key: '-----<KEY>'
cert: '-----<KEY>3VMUIgRwjuMEklGj+KYCtD4tLcGGYsLv0vQHEwVnnEeZDE=\n-----END CERTIFICAT... | true |
{expect} = require "chai"
_ = require "../vendor/lodash"
pnode = require "../"
sinon = require "sinon"
#iteratively define tests
describe "transports > ", ->
#use static certs to speed up tests
certs =
key: '-----PI:KEY:<KEY>END_PI'
cert: '-----PI:KEY:<KEY>END_PI3VMUIgRwjuMEklGj+KYCtD4tLcGGYsLv0vQHEwVnnE... |
[
{
"context": "ribute: '_id'\n apiRoot: config.api.root\n urlKey: '_id'\n urlPath: ->\n ''\n urlParams: ->\n ",
"end": 184,
"score": 0.9988014698028564,
"start": 180,
"tag": "KEY",
"value": "'_id"
}
] | app/models/model.coffee | pkmishra/Kriti | 1 | ChaplinModel = require 'chaplin/models/model'
config = require 'config'
module.exports = class Model extends ChaplinModel
idAttribute: '_id'
apiRoot: config.api.root
urlKey: '_id'
urlPath: ->
''
urlParams: ->
urlRoot: ->
urlPath = @urlPath()
if urlPath
@apiRoot +... | 3804 | ChaplinModel = require 'chaplin/models/model'
config = require 'config'
module.exports = class Model extends ChaplinModel
idAttribute: '_id'
apiRoot: config.api.root
urlKey: <KEY>'
urlPath: ->
''
urlParams: ->
urlRoot: ->
urlPath = @urlPath()
if urlPath
@apiRoot ... | true | ChaplinModel = require 'chaplin/models/model'
config = require 'config'
module.exports = class Model extends ChaplinModel
idAttribute: '_id'
apiRoot: config.api.root
urlKey: PI:KEY:<KEY>END_PI'
urlPath: ->
''
urlParams: ->
urlRoot: ->
urlPath = @urlPath()
if urlPath
... |
[
{
"context": "erminal Here - Atom package\n * https://github.com/blueimp/atom-open-terminal-here\n *\n * Copyright 2015, Seb",
"end": 70,
"score": 0.996363639831543,
"start": 63,
"tag": "USERNAME",
"value": "blueimp"
},
{
"context": "eimp/atom-open-terminal-here\n *\n * Copyright 201... | index.coffee | blueimp/atom-open-terminal-here | 51 | ###
* Open Terminal Here - Atom package
* https://github.com/blueimp/atom-open-terminal-here
*
* Copyright 2015, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
###
getActiveFilePath = () ->
document.querySelector('.tree-view .selected')?.getPa... | 171078 | ###
* Open Terminal Here - Atom package
* https://github.com/blueimp/atom-open-terminal-here
*
* Copyright 2015, <NAME>
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
###
getActiveFilePath = () ->
document.querySelector('.tree-view .selected')?.getPath?() ||
... | true | ###
* Open Terminal Here - Atom package
* https://github.com/blueimp/atom-open-terminal-here
*
* Copyright 2015, PI:NAME:<NAME>END_PI
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
###
getActiveFilePath = () ->
document.querySelector('.tree-view .selected')?.g... |
[
{
"context": " the requested recipe\n#\n# e.g. calling `download(\"git@github.com:linemanjs/fetcher-recipes.git\", \"backbone\", funct",
"end": 280,
"score": 0.9578196406364441,
"start": 266,
"tag": "EMAIL",
"value": "git@github.com"
},
{
"context": "recipe\n#\n# e.g. calling `downlo... | beerclub/node_modules/lineman/node_modules/fetcher/lib/downloads-recipes.coffee | timsvoice/railsapi-lineman-angular | 0 | # Give it a git repo, get back an install recipe for fetcher.
#
# The repo needs to look like this:
# .
# └── recipes
# └── backbone.cson
#
# .download method will invoke callback with an object
# representing the requested recipe
#
# e.g. calling `download("git@github.com:linemanjs/fetcher-recipes.git", "backbo... | 111231 | # Give it a git repo, get back an install recipe for fetcher.
#
# The repo needs to look like this:
# .
# └── recipes
# └── backbone.cson
#
# .download method will invoke callback with an object
# representing the requested recipe
#
# e.g. calling `download("<EMAIL>:linemanjs/fetcher-recipes.git", "backbone", fu... | true | # Give it a git repo, get back an install recipe for fetcher.
#
# The repo needs to look like this:
# .
# └── recipes
# └── backbone.cson
#
# .download method will invoke callback with an object
# representing the requested recipe
#
# e.g. calling `download("PI:EMAIL:<EMAIL>END_PI:linemanjs/fetcher-recipes.git",... |
[
{
"context": "teStore) ->\n\n sessions =\n sid0: { data: key: 'a session' }\n sid1: { data: key: 'another one' }\n\n stor",
"end": 222,
"score": 0.9592055082321167,
"start": 213,
"tag": "KEY",
"value": "a session"
},
{
"context": " data: key: 'a session' }\n sid1: { data: ... | test/store.spec.template.coffee | dgf/e4store | 7 | # connect middleware session store interface specification
{expect} = require 'chai'
# attention: stateful test spec, beware of right order
module.exports = (createStore) ->
sessions =
sid0: { data: key: 'a session' }
sid1: { data: key: 'another one' }
store = createStore sessions
it 'extends connect.... | 186592 | # connect middleware session store interface specification
{expect} = require 'chai'
# attention: stateful test spec, beware of right order
module.exports = (createStore) ->
sessions =
sid0: { data: key: '<KEY>' }
sid1: { data: key: '<KEY>' }
store = createStore sessions
it 'extends connect.session.St... | true | # connect middleware session store interface specification
{expect} = require 'chai'
# attention: stateful test spec, beware of right order
module.exports = (createStore) ->
sessions =
sid0: { data: key: 'PI:KEY:<KEY>END_PI' }
sid1: { data: key: 'PI:KEY:<KEY>END_PI' }
store = createStore sessions
it '... |
[
{
"context": ".subscribe( => @updateEcoButton() )\n #@stAttr.value.subscribe( => @updatePreTemperature() )\n #@s",
"end": 11215,
"score": 0.5974198579788208,
"start": 11210,
"tag": "EMAIL",
"value": "value"
}
] | ui/dummies.coffee | bertreb/pimatic-dummies | 0 | $(document).on 'templateinit', (event) ->
# define the item class
class LedLightItem extends pimatic.DeviceItem
constructor: (templData, @device) ->
super
@id = templData.deviceId
@power = null
@brightness = null
@color = null
afterRender: (elements) ->
super
##... | 60781 | $(document).on 'templateinit', (event) ->
# define the item class
class LedLightItem extends pimatic.DeviceItem
constructor: (templData, @device) ->
super
@id = templData.deviceId
@power = null
@brightness = null
@color = null
afterRender: (elements) ->
super
##... | true | $(document).on 'templateinit', (event) ->
# define the item class
class LedLightItem extends pimatic.DeviceItem
constructor: (templData, @device) ->
super
@id = templData.deviceId
@power = null
@brightness = null
@color = null
afterRender: (elements) ->
super
##... |
[
{
"context": ", (done) ->\n Logger.info 'I want to save: key = alex, data = {key1: \"value1\"}'\n setPromise = @room.",
"end": 440,
"score": 0.4384843707084656,
"start": 436,
"tag": "NAME",
"value": "alex"
},
{
"context": ".info 'I want to save: key = alex, data = {key1: \"valu... | test/hubot-yalo-brain-test.coffee | yalochat/hubot-yalo-brain | 0 | Helper = require 'hubot-test-helper'
Logger = require('bucker').createLogger {name: "hubot-yalo-brain"}
Promise = global.Promise
helper = new Helper('../src/hubot-yalo-brain.coffee')
describe 'Test Yalo Brain', ->
@timeout 5000
before (done) ->
@room = helper.createRoom()
setTimeout ->
Logger.info ... | 166374 | Helper = require 'hubot-test-helper'
Logger = require('bucker').createLogger {name: "hubot-yalo-brain"}
Promise = global.Promise
helper = new Helper('../src/hubot-yalo-brain.coffee')
describe 'Test Yalo Brain', ->
@timeout 5000
before (done) ->
@room = helper.createRoom()
setTimeout ->
Logger.info ... | true | Helper = require 'hubot-test-helper'
Logger = require('bucker').createLogger {name: "hubot-yalo-brain"}
Promise = global.Promise
helper = new Helper('../src/hubot-yalo-brain.coffee')
describe 'Test Yalo Brain', ->
@timeout 5000
before (done) ->
@room = helper.createRoom()
setTimeout ->
Logger.info ... |
[
{
"context": " rich text editing jQuery UI widget\n# (c) 2011 Henri Bergius, IKS Consortium\n# Hallo may be freely distrib",
"end": 79,
"score": 0.9998580813407898,
"start": 66,
"tag": "NAME",
"value": "Henri Bergius"
}
] | src/plugins/link.coffee | Ninir/hallo | 1 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 Henri Bergius, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget "IKS.hallolink",
options:
editable: null
uuid: ""
link: true
image: true
defaultUrl: 'http://'
... | 64718 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 <NAME>, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget "IKS.hallolink",
options:
editable: null
uuid: ""
link: true
image: true
defaultUrl: 'http://'
dialogO... | true | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 PI:NAME:<NAME>END_PI, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget "IKS.hallolink",
options:
editable: null
uuid: ""
link: true
image: true
defaultUrl: 'http://'... |
[
{
"context": "\ndefine ['jquery', 'jsonp'], ($) ->\n {\n KEY: '3c2a67534a193f12c46115f7b112e1e'\n\n getUpcomingMeetups: (count) ->\n $.json",
"end": 89,
"score": 0.999772846698761,
"start": 58,
"tag": "KEY",
"value": "3c2a67534a193f12c46115f7b112e1e"
}
] | scripts/meetup.coffee | calebdre/hackerhours.org | 0 | ---
---
define ['jquery', 'jsonp'], ($) ->
{
KEY: '3c2a67534a193f12c46115f7b112e1e'
getUpcomingMeetups: (count) ->
$.jsonp(
url: 'http://api.meetup.com/2/events'
jsonpSupport: true
cache: true
data:
group_urlname: 'hackerhours'
key: @KEY
pa... | 84718 | ---
---
define ['jquery', 'jsonp'], ($) ->
{
KEY: '<KEY>'
getUpcomingMeetups: (count) ->
$.jsonp(
url: 'http://api.meetup.com/2/events'
jsonpSupport: true
cache: true
data:
group_urlname: 'hackerhours'
key: @KEY
page: count
sign: ... | true | ---
---
define ['jquery', 'jsonp'], ($) ->
{
KEY: 'PI:KEY:<KEY>END_PI'
getUpcomingMeetups: (count) ->
$.jsonp(
url: 'http://api.meetup.com/2/events'
jsonpSupport: true
cache: true
data:
group_urlname: 'hackerhours'
key: @KEY
page: count
... |
[
{
"context": "gexp'\n_ = require 'lodash'\n\n# REX/Javascript 1.0\n# Robert D. Cameron \"REX: XML Shallow Parsing with Regular Expression",
"end": 90,
"score": 0.9998636841773987,
"start": 73,
"tag": "NAME",
"value": "Robert D. Cameron"
},
{
"context": " University, November, 1998.\n... | index.coffee | jhiver/xhtml-tagger | 0 | XRegExp = require 'xregexp'
_ = require 'lodash'
# REX/Javascript 1.0
# Robert D. Cameron "REX: XML Shallow Parsing with Regular Expressions",
# Technical Report TR 1998-17, School of Computing Science, Simon Fraser
# University, November, 1998.
# Copyright (c) 1998, Robert D. Cameron.
# The following code may be free... | 83209 | XRegExp = require 'xregexp'
_ = require 'lodash'
# REX/Javascript 1.0
# <NAME> "REX: XML Shallow Parsing with Regular Expressions",
# Technical Report TR 1998-17, School of Computing Science, Simon Fraser
# University, November, 1998.
# Copyright (c) 1998, <NAME>.
# The following code may be freely used and distribute... | true | XRegExp = require 'xregexp'
_ = require 'lodash'
# REX/Javascript 1.0
# PI:NAME:<NAME>END_PI "REX: XML Shallow Parsing with Regular Expressions",
# Technical Report TR 1998-17, School of Computing Science, Simon Fraser
# University, November, 1998.
# Copyright (c) 1998, PI:NAME:<NAME>END_PI.
# The following code may b... |
[
{
"context": "# not sure about that, want to try it on people -- julien\n dimEditor: ->\n if $(\"#formCode\").css(\"op",
"end": 1006,
"score": 0.8885054588317871,
"start": 1000,
"tag": "NAME",
"value": "julien"
},
{
"context": " # a function to toggle code diming on and off ... | coffee/ui/text-dimming.coffee | xinaesthete/livecodelab | 1 | ###
## Simple helper to handle the code dimming. When to trigger dimming and
## un-dimming and keeping track of status of the dedicated
## "automatic dimming" toggle switch.
###
define () ->
class EditorDimmer
dimIntervalID: undefined
# default behaviour in case the user
# presses the toggle button is ... | 147140 | ###
## Simple helper to handle the code dimming. When to trigger dimming and
## un-dimming and keeping track of status of the dedicated
## "automatic dimming" toggle switch.
###
define () ->
class EditorDimmer
dimIntervalID: undefined
# default behaviour in case the user
# presses the toggle button is ... | true | ###
## Simple helper to handle the code dimming. When to trigger dimming and
## un-dimming and keeping track of status of the dedicated
## "automatic dimming" toggle switch.
###
define () ->
class EditorDimmer
dimIntervalID: undefined
# default behaviour in case the user
# presses the toggle button is ... |
[
{
"context": "# Bootstrap Tags\n# Max Lahey\n# November, 2012\n\njQuery ->\n $.tags = (element, ",
"end": 28,
"score": 0.9998776316642761,
"start": 19,
"tag": "NAME",
"value": "Max Lahey"
}
] | web/assets/bootstrap-tags/src/bootstrap-tags.coffee | o/SymfonyBricks | 1 | # Bootstrap Tags
# Max Lahey
# November, 2012
jQuery ->
$.tags = (element, options) ->
@suggestions = (if options.suggestions? then options.suggestions else [])
@restrictTo = (if options.restrictTo? then options.restrictTo.concat @suggestions else false)
@exclude = (if options.excludeList? then options.... | 2128 | # Bootstrap Tags
# <NAME>
# November, 2012
jQuery ->
$.tags = (element, options) ->
@suggestions = (if options.suggestions? then options.suggestions else [])
@restrictTo = (if options.restrictTo? then options.restrictTo.concat @suggestions else false)
@exclude = (if options.excludeList? then options.exc... | true | # Bootstrap Tags
# PI:NAME:<NAME>END_PI
# November, 2012
jQuery ->
$.tags = (element, options) ->
@suggestions = (if options.suggestions? then options.suggestions else [])
@restrictTo = (if options.restrictTo? then options.restrictTo.concat @suggestions else false)
@exclude = (if options.excludeList? th... |
[
{
"context": "# The MIT License\n#\n# Copyright (c) 2011 Tim Smart\n#\n# Permission is hereby granted, free of charge,",
"end": 50,
"score": 0.9997564554214478,
"start": 41,
"tag": "NAME",
"value": "Tim Smart"
}
] | node_modules/lodash-cli/node_modules/closure-compiler/src/index.coffee | vince0508/id_test | 0 | # The MIT License
#
# Copyright (c) 2011 Tim Smart
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge... | 26166 | # The MIT License
#
# Copyright (c) 2011 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
#... | true | # The MIT License
#
# Copyright (c) 2011 PI:NAME:<NAME>END_PI
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, mo... |
[
{
"context": "#!/usr/bin/env coffee\n# GainText\n#\n# Martin Waitz\n\nfs = require 'fs'\nmona = require 'mona-parser'\n\n",
"end": 49,
"score": 0.9997334480285645,
"start": 37,
"tag": "NAME",
"value": "Martin Waitz"
}
] | src/command.coffee | gaintext/gaintext.js | 0 | #!/usr/bin/env coffee
# GainText
#
# Martin Waitz
fs = require 'fs'
mona = require 'mona-parser'
block = require './block'
parser = require('nomnom')
.option 'output',
abbr: 'o',
help: 'Output file name'
.option 'files',
position: 0,
list: true,
required: true,
... | 139948 | #!/usr/bin/env coffee
# GainText
#
# <NAME>
fs = require 'fs'
mona = require 'mona-parser'
block = require './block'
parser = require('nomnom')
.option 'output',
abbr: 'o',
help: 'Output file name'
.option 'files',
position: 0,
list: true,
required: true,
help... | true | #!/usr/bin/env coffee
# GainText
#
# PI:NAME:<NAME>END_PI
fs = require 'fs'
mona = require 'mona-parser'
block = require './block'
parser = require('nomnom')
.option 'output',
abbr: 'o',
help: 'Output file name'
.option 'files',
position: 0,
list: true,
required: true... |
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998379945755005,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/util/request.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licenc... | 152203 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ 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": ":ssshape = (x,y,w,h) -> \n\tif @kind? then ssshape[@kind].call(@,x,y,w,h) else ssshape[DEFAULT].call(@,x,y",
"end": 1496,
"score": 0.583432674407959,
"start": 1492,
"tag": "USERNAME",
"value": "kind"
},
{
"context": "forma?\n\t\tif ssshape[@forma]? then return ssshape[@... | draw.coffee | agershun/minday | 0 | ################################################
# MINDAY 0.010 Tokyo
# draw.coffee
# Вывод на экран - основная процедура
################################################
# Глобальные переменные
sidea = null # Текущая выбранная идея
fidea = null # Верхняя идея фрейма
ssidea = [] # Массив с выбранными идеями
... | 125046 | ################################################
# MINDAY 0.010 Tokyo
# draw.coffee
# Вывод на экран - основная процедура
################################################
# Глобальные переменные
sidea = null # Текущая выбранная идея
fidea = null # Верхняя идея фрейма
ssidea = [] # Массив с выбранными идеями
... | true | ################################################
# MINDAY 0.010 Tokyo
# draw.coffee
# Вывод на экран - основная процедура
################################################
# Глобальные переменные
sidea = null # Текущая выбранная идея
fidea = null # Верхняя идея фрейма
ssidea = [] # Массив с выбранными идеями
... |
[
{
"context": "oks for the draggable units\n#\n# Copyright (C) 2011 Nikolay Nemshilov\n#\n\n$(document).on\n 'mousemove,touchmove': (event",
"end": 93,
"score": 0.9998898506164551,
"start": 76,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dnd/src/document.coffee | lovely-io/lovely.io-stl | 2 | #
# The document level hooks for the draggable units
#
# Copyright (C) 2011 Nikolay Nemshilov
#
$(document).on
'mousemove,touchmove': (event)->
if Draggable.current isnt null
draggable_move(event, Draggable.current)
droppable_hover(event, Draggable.current)
return # nothing
'mouseup,touchend':... | 138358 | #
# The document level hooks for the draggable units
#
# Copyright (C) 2011 <NAME>
#
$(document).on
'mousemove,touchmove': (event)->
if Draggable.current isnt null
draggable_move(event, Draggable.current)
droppable_hover(event, Draggable.current)
return # nothing
'mouseup,touchend': (event)->
... | true | #
# The document level hooks for the draggable units
#
# Copyright (C) 2011 PI:NAME:<NAME>END_PI
#
$(document).on
'mousemove,touchmove': (event)->
if Draggable.current isnt null
draggable_move(event, Draggable.current)
droppable_hover(event, Draggable.current)
return # nothing
'mouseup,touchen... |
[
{
"context": "io:'\n 'Voorbeelden:'\n 'Gegeven '\n 'Stel '\n 'Als '\n 'Wanneer '\n 'Dan '\n ",
"end": 220,
"score": 0.9963711500167847,
"start": 216,
"tag": "NAME",
"value": "Stel"
},
{
"context": "orbeelden:'\n 'Gegeven '\n 'Stel '\n '... | settings/language-gherkin_nl.cson | mackoj/language-gherkin-i18n | 17 | '.text.gherkin.feature.nl':
'editor':
'completions': [
'Functionaliteit:'
'Achtergrond:'
'Voorbeeld:'
'Scenario:'
'Abstract Scenario:'
'Voorbeelden:'
'Gegeven '
'Stel '
'Als '
'Wanneer '
'Dan '
'Maar '
'En '
]
'increaseIndentPat... | 10979 | '.text.gherkin.feature.nl':
'editor':
'completions': [
'Functionaliteit:'
'Achtergrond:'
'Voorbeeld:'
'Scenario:'
'Abstract Scenario:'
'Voorbeelden:'
'Gegeven '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
'<NAME> '
]
'incr... | true | '.text.gherkin.feature.nl':
'editor':
'completions': [
'Functionaliteit:'
'Achtergrond:'
'Voorbeeld:'
'Scenario:'
'Abstract Scenario:'
'Voorbeelden:'
'Gegeven '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>END_PI '
'PI:NAME:<NAME>... |
[
{
"context": "tate\n displayName: ev.target.value\n key: util.slugify ev.target.value\n valid: true\n\n changeKey: (",
"end": 531,
"score": 0.6047475934028625,
"start": 519,
"tag": "KEY",
"value": "util.slugify"
},
{
"context": ".toString(36).substring(2, 9)\n else... | public/src/modal.cjsx | jez/cmd-queue | 6 | React = require 'react'
util = require './util.coffee'
{Form, TextInput, Checkbox, Button} = require './forms.cjsx'
Modal = React.createClass
getInitialState: ->
displayName: ''
key: ''
isPrivate: false
state: 'active'
valid: true
blur: ->
@setState state: ''
cancelled = true
@pr... | 29963 | React = require 'react'
util = require './util.coffee'
{Form, TextInput, Checkbox, Button} = require './forms.cjsx'
Modal = React.createClass
getInitialState: ->
displayName: ''
key: ''
isPrivate: false
state: 'active'
valid: true
blur: ->
@setState state: ''
cancelled = true
@pr... | true | React = require 'react'
util = require './util.coffee'
{Form, TextInput, Checkbox, Button} = require './forms.cjsx'
Modal = React.createClass
getInitialState: ->
displayName: ''
key: ''
isPrivate: false
state: 'active'
valid: true
blur: ->
@setState state: ''
cancelled = true
@pr... |
[
{
"context": "should match highest', ->\n result = game.play('chrismo', '112345')\n expect(result.name).toBe 'Fiv",
"end": 506,
"score": 0.7211829423904419,
"start": 503,
"tag": "NAME",
"value": "chr"
},
{
"context": "uld match highest', ->\n result = game.play('chrismo', '1... | spec/token-poker/stockpile-spec.coffee | robksawyer/hubot-poker | 1 | Stockpile = require('../../js/token-poker/stockpile')
Fakes = require('./../poker/fake-time')
Rounds = require('../../js/poker/round')
describe 'Stockpile', ->
store = game = null
builder = time = round = null
beforeEach ->
store = {}
builder = new Fakes.TimeBuilder().withHour(1).withMinute(0).withSecon... | 162025 | Stockpile = require('../../js/token-poker/stockpile')
Fakes = require('./../poker/fake-time')
Rounds = require('../../js/poker/round')
describe 'Stockpile', ->
store = game = null
builder = time = round = null
beforeEach ->
store = {}
builder = new Fakes.TimeBuilder().withHour(1).withMinute(0).withSecon... | true | Stockpile = require('../../js/token-poker/stockpile')
Fakes = require('./../poker/fake-time')
Rounds = require('../../js/poker/round')
describe 'Stockpile', ->
store = game = null
builder = time = round = null
beforeEach ->
store = {}
builder = new Fakes.TimeBuilder().withHour(1).withMinute(0).withSecon... |
[
{
"context": "icipant link (to view the session)\n#\n# Author:\n# webandtech\n\nmodule.exports = (robot) ->\n robot.respond /joi",
"end": 297,
"score": 0.9996539950370789,
"start": 287,
"tag": "USERNAME",
"value": "webandtech"
},
{
"context": ".me/API/requestAuthCode.aspx?email=EM... | src/scripts/joinme-generator.coffee | Reelhouse/hubot-scripts | 1,450 | # Description:
# Integrates with join.me
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_JOINME_AUTHCODE
#
# Commands:
# hubot joinme - Generates a new join.me 9-digit code and outputs a presenter link (download) and a participant link (to view the session)
#
# Author:
# webandtech
module.exports = (rob... | 28475 | # Description:
# Integrates with join.me
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_JOINME_AUTHCODE
#
# Commands:
# hubot joinme - Generates a new join.me 9-digit code and outputs a presenter link (download) and a participant link (to view the session)
#
# Author:
# webandtech
module.exports = (rob... | true | # Description:
# Integrates with join.me
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_JOINME_AUTHCODE
#
# Commands:
# hubot joinme - Generates a new join.me 9-digit code and outputs a presenter link (download) and a participant link (to view the session)
#
# Author:
# webandtech
module.exports = (rob... |
[
{
"context": "->\n @info = null\n @key = \"subscriber:#{@id}\"\n\n delete: (cb) ->\n @redis.multi()\n ",
"end": 4394,
"score": 0.6618533134460449,
"start": 4389,
"tag": "KEY",
"value": "#{@id"
}
] | lib/subscriber.coffee | wuhaipeng/pushd | 1 | crypto = require 'crypto'
async = require 'async'
Event = require('./event').Event
class Subscriber
getInstanceFromToken: (redis, proto, token, cb) ->
return until cb
throw new Error("Missing redis connection") if not redis?
throw new Error("Missing mandatory `proto' field") if not proto?
... | 86902 | crypto = require 'crypto'
async = require 'async'
Event = require('./event').Event
class Subscriber
getInstanceFromToken: (redis, proto, token, cb) ->
return until cb
throw new Error("Missing redis connection") if not redis?
throw new Error("Missing mandatory `proto' field") if not proto?
... | true | crypto = require 'crypto'
async = require 'async'
Event = require('./event').Event
class Subscriber
getInstanceFromToken: (redis, proto, token, cb) ->
return until cb
throw new Error("Missing redis connection") if not redis?
throw new Error("Missing mandatory `proto' field") if not proto?
... |
[
{
"context": "rivets.js\n # version : 0.4.5\n # author : Michael Richards\n # license : MIT\n\n # The Rivets namespace.\n",
"end": 88,
"score": 0.9997928142547607,
"start": 72,
"tag": "NAME",
"value": "Michael Richards"
}
] | src/main/resources/assets/app/scripts/vendor/rivets.coffee | domenicosolazzo/chronos | 0 | define () ->
# rivets.js
# version : 0.4.5
# author : Michael Richards
# license : MIT
# The Rivets namespace.
Rivets = {}
# Polyfill For String::trim.
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ''
# A single binding between a model attribute and a DOM element... | 115358 | define () ->
# rivets.js
# version : 0.4.5
# author : <NAME>
# license : MIT
# The Rivets namespace.
Rivets = {}
# Polyfill For String::trim.
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ''
# A single binding between a model attribute and a DOM element.
class ... | true | define () ->
# rivets.js
# version : 0.4.5
# author : PI:NAME:<NAME>END_PI
# license : MIT
# The Rivets namespace.
Rivets = {}
# Polyfill For String::trim.
unless String::trim then String::trim = -> @replace /^\s+|\s+$/g, ''
# A single binding between a model attribute and a DOM ele... |
[
{
"context": "r: ->\n\n @showCardContent()\n\n treeKey = 'in_vivo'\n treeDesc = @CLASSIFICATION_TREES[treeKey]\n",
"end": 556,
"score": 0.9896196722984314,
"start": 549,
"tag": "KEY",
"value": "in_vivo"
}
] | src/glados/static/coffee/views/MainPage/AssayClassificationsSunburstsView.coffee | BNext-IQT/glados-frontend-chembl-main-interface | 33 | glados.useNameSpace 'glados.views.MainPage',
AssayClassificationsSunburstsView: Backbone.View.extend
CLASSIFICATION_TREES:
in_vivo:
label: 'In vivo assays'
classification_type: glados.models.visualisation.AssayClassificationModel.Types.IN_VIVO
selected: true
initialize: ->
... | 38233 | glados.useNameSpace 'glados.views.MainPage',
AssayClassificationsSunburstsView: Backbone.View.extend
CLASSIFICATION_TREES:
in_vivo:
label: 'In vivo assays'
classification_type: glados.models.visualisation.AssayClassificationModel.Types.IN_VIVO
selected: true
initialize: ->
... | true | glados.useNameSpace 'glados.views.MainPage',
AssayClassificationsSunburstsView: Backbone.View.extend
CLASSIFICATION_TREES:
in_vivo:
label: 'In vivo assays'
classification_type: glados.models.visualisation.AssayClassificationModel.Types.IN_VIVO
selected: true
initialize: ->
... |
[
{
"context": "\n # Main Configs #\n ################\n author: 'Reuben Cummings'\n email: 'reubano@gmail.com'\n site: 'reubano.gi",
"end": 343,
"score": 0.9998677372932434,
"start": 328,
"tag": "NAME",
"value": "Reuben Cummings"
},
{
"context": "###########\n author: 'Reuben Cu... | app/config.coffee | nerevu/portfolio-maker | 1 | # TODO: google analytics
# TODO: 'http://fonts.googleapis.com/css
# ?family=Ubuntu:400,400italic,700,700italic'
# TODO: (<meta name=key content=value> for key, value in meta)
# TODO: rss
# TODO: tags and tag cloud
# TODO: move disqus script to bower
config =
################
# Main Configs #
################
a... | 159714 | # TODO: google analytics
# TODO: 'http://fonts.googleapis.com/css
# ?family=Ubuntu:400,400italic,700,700italic'
# TODO: (<meta name=key content=value> for key, value in meta)
# TODO: rss
# TODO: tags and tag cloud
# TODO: move disqus script to bower
config =
################
# Main Configs #
################
a... | true | # TODO: google analytics
# TODO: 'http://fonts.googleapis.com/css
# ?family=Ubuntu:400,400italic,700,700italic'
# TODO: (<meta name=key content=value> for key, value in meta)
# TODO: rss
# TODO: tags and tag cloud
# TODO: move disqus script to bower
config =
################
# Main Configs #
################
a... |
[
{
"context": "ML special characters should be escaped.\n# @author Patrick Hayes\n###\n'use strict'\n\ndocsUrl = require 'eslint-plugi",
"end": 87,
"score": 0.999829888343811,
"start": 74,
"tag": "NAME",
"value": "Patrick Hayes"
}
] | src/rules/no-unescaped-entities.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview HTML special characters should be escaped.
# @author Patrick Hayes
###
'use strict'
docsUrl = require 'eslint-plugin-react/lib/util/docsUrl'
jsxUtil = require '../util/react/jsx'
# ------------------------------------------------------------------------------
# Rule Definition
# -----------------... | 24216 | ###*
# @fileoverview HTML special characters should be escaped.
# @author <NAME>
###
'use strict'
docsUrl = require 'eslint-plugin-react/lib/util/docsUrl'
jsxUtil = require '../util/react/jsx'
# ------------------------------------------------------------------------------
# Rule Definition
# ------------------------... | true | ###*
# @fileoverview HTML special characters should be escaped.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
docsUrl = require 'eslint-plugin-react/lib/util/docsUrl'
jsxUtil = require '../util/react/jsx'
# ------------------------------------------------------------------------------
# Rule Definition
# ----------... |
[
{
"context": "解析:\"+status\n# RongIMLib.RongIMClient.connect \"BIG85AHHpMAXYvnD2DSgnLrkPG6U/xPk3zvPIWf9le1hEGTTL55/U07yY3a+mzGazeB0RzEl9Y46MnCyDLVMAw==\",\n# onSuccess:(userId)->\n# cons",
"end": 825,
"score": 0.9972005486488342,
"start": 735,
"tag": "KEY",
"value": "... | test/spec/appSpec.coffee | nojsja/rongcloud-web-im-sdk-v2 | 98 | #说明:
#所有功能均已测试通过,若重新测试,删除注释重新运行karma即可(讨论组Id可能需要修改)
# describe "RongIMClient",->
# RongIMLib.RongIMClient.init "8luwapkvucoil"
# RongIMLib.RongIMClient.setOnReceiveMessageListener onReceived: (message) ->
# console.log message.content.content
# console.log message
# RongIMLib.RongIMClient.setCon... | 119246 | #说明:
#所有功能均已测试通过,若重新测试,删除注释重新运行karma即可(讨论组Id可能需要修改)
# describe "RongIMClient",->
# RongIMLib.RongIMClient.init "8luwapkvucoil"
# RongIMLib.RongIMClient.setOnReceiveMessageListener onReceived: (message) ->
# console.log message.content.content
# console.log message
# RongIMLib.RongIMClient.setCon... | true | #说明:
#所有功能均已测试通过,若重新测试,删除注释重新运行karma即可(讨论组Id可能需要修改)
# describe "RongIMClient",->
# RongIMLib.RongIMClient.init "8luwapkvucoil"
# RongIMLib.RongIMClient.setOnReceiveMessageListener onReceived: (message) ->
# console.log message.content.content
# console.log message
# RongIMLib.RongIMClient.setCon... |
[
{
"context": " Function): void\n$.on = (key, callback) ->\n key = \"$#{$.formatHotkey key}\"\n `Hotkey, % key, % callback",
"end": 81,
"score": 0.9280914068222046,
"start": 78,
"tag": "KEY",
"value": "\"$#"
}
] | source/include/on.coffee | phonowell/js-shim | 0 | # on(key, string, callback: Function): void
$.on = (key, callback) ->
key = "$#{$.formatHotkey key}"
`Hotkey, % key, % callback, On` | 3532 | # on(key, string, callback: Function): void
$.on = (key, callback) ->
key = <KEY>{$.formatHotkey key}"
`Hotkey, % key, % callback, On` | true | # on(key, string, callback: Function): void
$.on = (key, callback) ->
key = PI:KEY:<KEY>END_PI{$.formatHotkey key}"
`Hotkey, % key, % callback, On` |
[
{
"context": "y = exchange\n if routingKey?\n key = \"#{key}::#{routingKey}\"\n key\n\n constructor: (connection, ",
"end": 141,
"score": 0.638411819934845,
"start": 139,
"tag": "KEY",
"value": "#{"
}
] | vendor/assets/javascripts/myxi/subscription.coffee | spencerwp/myxi | 9 | window.Myxi ||= {}
class Myxi.Subscription
@keyFor: (exchange, routingKey)->
key = exchange
if routingKey?
key = "#{key}::#{routingKey}"
key
constructor: (connection, exchange, routingKey)->
@connection = connection
@exchange = exchange
@routingKey = routingKey
@subscribed = fals... | 170615 | window.Myxi ||= {}
class Myxi.Subscription
@keyFor: (exchange, routingKey)->
key = exchange
if routingKey?
key = "#{key}::<KEY>routingKey}"
key
constructor: (connection, exchange, routingKey)->
@connection = connection
@exchange = exchange
@routingKey = routingKey
@subscribed = f... | true | window.Myxi ||= {}
class Myxi.Subscription
@keyFor: (exchange, routingKey)->
key = exchange
if routingKey?
key = "#{key}::PI:KEY:<KEY>END_PIroutingKey}"
key
constructor: (connection, exchange, routingKey)->
@connection = connection
@exchange = exchange
@routingKey = routingKey
@s... |
[
{
"context": "ult = true unless @default?\n @key = key = \"setting-#{@key}\"\n @version = new Version(@version)\n\n ",
"end": 4545,
"score": 0.9621140360832214,
"start": 4535,
"tag": "KEY",
"value": "setting-#{"
}
] | src/coffee/settings.coffee | MaienM/PocketcastUtils | 1 | include_once('version')
###
Settings related functionality.
###
class SettingsController
# The groups in this screen.
groups: {}
# Whether to show the settings page when there is new stuff.
isShowOnUpdateEnabled: true
# The settings page.
element: undefined
# The settings page content.
... | 35694 | include_once('version')
###
Settings related functionality.
###
class SettingsController
# The groups in this screen.
groups: {}
# Whether to show the settings page when there is new stuff.
isShowOnUpdateEnabled: true
# The settings page.
element: undefined
# The settings page content.
... | true | include_once('version')
###
Settings related functionality.
###
class SettingsController
# The groups in this screen.
groups: {}
# Whether to show the settings page when there is new stuff.
isShowOnUpdateEnabled: true
# The settings page.
element: undefined
# The settings page content.
... |
[
{
"context": "al: (reward) ->\n\n if reward.providedBy?\n { firstName, lastName, nickname } = reward.providedBy.profile",
"end": 380,
"score": 0.9975191354751587,
"start": 371,
"tag": "NAME",
"value": "firstName"
},
{
"context": ") ->\n\n if reward.providedBy?\n { fir... | client/account/lib/views/referral/accountreferralsystemlistitem.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
timeago = require 'timeago'
module.exports = class AccountReferralSystemListItem extends kd.ListItemView
constructor: (options = {}, data) ->
options.cssClass = "referral-item #{options.cssClass or ''}"
super options, data
@setClass 'waiting' unless @getData().confirmed
parti... | 8489 | kd = require 'kd'
timeago = require 'timeago'
module.exports = class AccountReferralSystemListItem extends kd.ListItemView
constructor: (options = {}, data) ->
options.cssClass = "referral-item #{options.cssClass or ''}"
super options, data
@setClass 'waiting' unless @getData().confirmed
parti... | true | kd = require 'kd'
timeago = require 'timeago'
module.exports = class AccountReferralSystemListItem extends kd.ListItemView
constructor: (options = {}, data) ->
options.cssClass = "referral-item #{options.cssClass or ''}"
super options, data
@setClass 'waiting' unless @getData().confirmed
parti... |
[
{
"context": "tore: 'https://play.google.com/store/search?q=pub:Kevin%20Hausmann'\n },\n {\n title: 'Podkicker'\n",
"end": 2874,
"score": 0.7315422892570496,
"start": 2869,
"tag": "NAME",
"value": "Kevin"
},
{
"context": "ttps://play.google.com/store/search?q=pub:Kevin%20H... | src/coffee/clients.coffee | eazyliving/podlove-subscribe-button | 2 | class Clients
constructor: (platform, osDefault=false) ->
if osDefault
return @['os_defaults'][platform]
return @[platform]
printClientList: () ->
for platform in ['Android', 'Cloud', 'iOS', 'Linux', 'OSX', 'WindowsPhone', 'Windows7', 'Windows8', 'Windows81']
console.log("### #{platform}")... | 222169 | class Clients
constructor: (platform, osDefault=false) ->
if osDefault
return @['os_defaults'][platform]
return @[platform]
printClientList: () ->
for platform in ['Android', 'Cloud', 'iOS', 'Linux', 'OSX', 'WindowsPhone', 'Windows7', 'Windows8', 'Windows81']
console.log("### #{platform}")... | true | class Clients
constructor: (platform, osDefault=false) ->
if osDefault
return @['os_defaults'][platform]
return @[platform]
printClientList: () ->
for platform in ['Android', 'Cloud', 'iOS', 'Linux', 'OSX', 'WindowsPhone', 'Windows7', 'Windows8', 'Windows81']
console.log("### #{platform}")... |
[
{
"context": " userId = Accounts.createUser\n username: user.username,\n email: user.email,\n org: {_id",
"end": 2177,
"score": 0.9316570162773132,
"start": 2164,
"tag": "USERNAME",
"value": "user.username"
},
{
"context": "({\n to: email,\n ... | server/entry.coffee | rithnarin/meteor-accounts-entry | 0 | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.enrollAccount = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.verifyEmail = (token) ->
Meteor.absoluteUrl('verify-email/' + token)
Accounts.emailTemplate... | 124729 | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.enrollAccount = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.verifyEmail = (token) ->
Meteor.absoluteUrl('verify-email/' + token)
Accounts.emailTemplate... | true | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.enrollAccount = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
Accounts.urls.verifyEmail = (token) ->
Meteor.absoluteUrl('verify-email/' + token)
Accounts.emailTemplate... |
[
{
"context": "t) =>\n key = \"#{@config.postKey}:#{post.slug}\"\n @keysToDelete.pus",
"end": 3786,
"score": 0.7612895369529724,
"start": 3785,
"tag": "KEY",
"value": "#"
},
{
"context": " key = \"#{@config.postKey}:#{post.slug}\"\n ... | apps/blog/test/lib/build-posts.coffee | rcorral/rafael | 0 | builder = require '../../lib/build-posts'
fs = require 'fs'
redis = require 'redis'
path = require 'path'
parser = require '../../lib/post-parser'
Util = require '../../../../components/Util'
client = redis.createClient()
client.on 'connect', ->
describe 'build-posts', ->
before ->
@template... | 184578 | builder = require '../../lib/build-posts'
fs = require 'fs'
redis = require 'redis'
path = require 'path'
parser = require '../../lib/post-parser'
Util = require '../../../../components/Util'
client = redis.createClient()
client.on 'connect', ->
describe 'build-posts', ->
before ->
@template... | true | builder = require '../../lib/build-posts'
fs = require 'fs'
redis = require 'redis'
path = require 'path'
parser = require '../../lib/post-parser'
Util = require '../../../../components/Util'
client = redis.createClient()
client.on 'connect', ->
describe 'build-posts', ->
before ->
@template... |
[
{
"context": "$(this).show()\n\n\n\n initSidebarTab: ->\n key = \"dashboard_sidebar_filter\"\n\n # store selection in cookie\n $('.dash-si",
"end": 563,
"score": 0.9974616765975952,
"start": 539,
"tag": "KEY",
"value": "dashboard_sidebar_filter"
}
] | app/assets/javascripts/dashboard.js.coffee | m247/gitlabhq | 1 | class @Dashboard
constructor: ->
@initSidebarTab()
$(".dash-filter").keyup ->
terms = $(this).val()
uiBox = $(this).parents('.panel').first()
if terms == "" || terms == undefined
uiBox.find(".dash-list li").show()
else
uiBox.find(".dash-list li").each (index) ->
... | 69116 | class @Dashboard
constructor: ->
@initSidebarTab()
$(".dash-filter").keyup ->
terms = $(this).val()
uiBox = $(this).parents('.panel').first()
if terms == "" || terms == undefined
uiBox.find(".dash-list li").show()
else
uiBox.find(".dash-list li").each (index) ->
... | true | class @Dashboard
constructor: ->
@initSidebarTab()
$(".dash-filter").keyup ->
terms = $(this).val()
uiBox = $(this).parents('.panel').first()
if terms == "" || terms == undefined
uiBox.find(".dash-list li").show()
else
uiBox.find(".dash-list li").each (index) ->
... |
[
{
"context": "sions\", data: [6.194], color: '#ff0000'})\n #@total_percapita_emissions_chart.addSeries({type: 'scatter', name: \"US 2010 emissio",
"end": 10403,
"score": 0.9199965596199036,
"start": 10372,
"tag": "EMAIL",
"value": "total_percapita_emissions_chart"
}
] | src/javascripts/emmissions.js.coffee | icf2017/AP-State-Energy-Calculator | 6 | class Emissions
titles_emissions = ['Hydrocarbon fuel power generation',
'Buildings',
'Industry',
'Transport'
'Agriculture',
'Telecom',
'Fossil fuel production',
'... | 200615 | class Emissions
titles_emissions = ['Hydrocarbon fuel power generation',
'Buildings',
'Industry',
'Transport'
'Agriculture',
'Telecom',
'Fossil fuel production',
'... | true | class Emissions
titles_emissions = ['Hydrocarbon fuel power generation',
'Buildings',
'Industry',
'Transport'
'Agriculture',
'Telecom',
'Fossil fuel production',
'... |
[
{
"context": "###\nReload Plugin\n\n@author\t\t Michael Owens\n@website\t\thttp://www.michaelowens.nl\n@copyright\tM",
"end": 43,
"score": 0.9998980760574341,
"start": 30,
"tag": "NAME",
"value": "Michael Owens"
},
{
"context": "s\n@website\t\thttp://www.michaelowens.nl\n@copyright\... | plugins/reload.coffee | andreineculau/coffee-bot | 0 | ###
Reload Plugin
@author Michael Owens
@website http://www.michaelowens.nl
@copyright Michael Owens 2011
###
Plugin = require '../lib/plugin'
module.exports = class PluginReload extends Plugin
constructor: (@irc, @name) ->
super
@addTrigger 'reload', @loadPlugin
@addTrigger 'unload', @unloadPlugin
... | 156867 | ###
Reload Plugin
@author <NAME>
@website http://www.michaelowens.nl
@copyright <NAME> 2011
###
Plugin = require '../lib/plugin'
module.exports = class PluginReload extends Plugin
constructor: (@irc, @name) ->
super
@addTrigger 'reload', @loadPlugin
@addTrigger 'unload', @unloadPlugin
loadPlugin:... | true | ###
Reload Plugin
@author PI:NAME:<NAME>END_PI
@website http://www.michaelowens.nl
@copyright PI:NAME:<NAME>END_PI 2011
###
Plugin = require '../lib/plugin'
module.exports = class PluginReload extends Plugin
constructor: (@irc, @name) ->
super
@addTrigger 'reload', @loadPlugin
@addTrigger 'unload', ... |
[
{
"context": "name: \"Roff (Device Description)\"\nscopeName: \"source.ditroff.",
"end": 11,
"score": 0.990700364112854,
"start": 7,
"tag": "NAME",
"value": "Roff"
}
] | grammars/desc.cson | Alhadis/language-roff | 15 | name: "Roff (Device Description)"
scopeName: "source.ditroff.desc"
fileTypes: [
"DESC"
"DESC.big"
"DESC.small"
"DESC.in"
"DESC.proto"
"DESC.8400"
"R.proto"
"tab.37"
"tab.450"
"tab.450-12"
"tab.lp"
"tab.think"
"text.enc"
"devps/download"
"devpdf/download"
"devpdf/Foundry"
]
firstLineMatch: "# This file h... | 225176 | name: "<NAME> (Device Description)"
scopeName: "source.ditroff.desc"
fileTypes: [
"DESC"
"DESC.big"
"DESC.small"
"DESC.in"
"DESC.proto"
"DESC.8400"
"R.proto"
"tab.37"
"tab.450"
"tab.450-12"
"tab.lp"
"tab.think"
"text.enc"
"devps/download"
"devpdf/download"
"devpdf/Foundry"
]
firstLineMatch: "# This file... | true | name: "PI:NAME:<NAME>END_PI (Device Description)"
scopeName: "source.ditroff.desc"
fileTypes: [
"DESC"
"DESC.big"
"DESC.small"
"DESC.in"
"DESC.proto"
"DESC.8400"
"R.proto"
"tab.37"
"tab.450"
"tab.450-12"
"tab.lp"
"tab.think"
"text.enc"
"devps/download"
"devpdf/download"
"devpdf/Foundry"
]
firstLineMatch... |
[
{
"context": "uctively modifies original Vector\n\n hero = {id: 'He-Man', pos: {x: 5, y: 10, z: 20}, original: true, ",
"end": 868,
"score": 0.6879904866218567,
"start": 866,
"tag": "NAME",
"value": "He"
},
{
"context": "tively modifies original Vector\n\n hero = {id: 'He-Man', pos... | test/protect_api_spec.coffee | basicer/aether | 0 | _ = window?._ ? self?._ ? global?._ ? require 'lodash' # rely on lodash existing, since it busts CodeCombat to browserify it--TODO
Aether = require '../aether'
{protectionVersion} = require '../protectAPI'
describe "API Protection Test Suite", ->
class Vector
@className: "Vector"
@add: (a, b) -> a.copy().a... | 168690 | _ = window?._ ? self?._ ? global?._ ? require 'lodash' # rely on lodash existing, since it busts CodeCombat to browserify it--TODO
Aether = require '../aether'
{protectionVersion} = require '../protectAPI'
describe "API Protection Test Suite", ->
class Vector
@className: "Vector"
@add: (a, b) -> a.copy().a... | true | _ = window?._ ? self?._ ? global?._ ? require 'lodash' # rely on lodash existing, since it busts CodeCombat to browserify it--TODO
Aether = require '../aether'
{protectionVersion} = require '../protectAPI'
describe "API Protection Test Suite", ->
class Vector
@className: "Vector"
@add: (a, b) -> a.copy().a... |
[
{
"context": " sing!\n(This is what fetches the bacon home.)\n\t\t-- Dorothy Parker\n\n@>\nReally?\n\n@!\nSure. It's a classic.\n\n@>\nMooooo",
"end": 398,
"score": 0.9998762011528015,
"start": 384,
"tag": "NAME",
"value": "Dorothy Parker"
},
{
"context": "oooooooooooooooooooooo.\n\... | src/cowtest.coffee | suetanvil/moo_party | 1 |
cowtest = () ->
cs = new CowSay
txt = cs.render("""
@*!
Everything's great in this good old world;
(This is the stuff they can always use.)
God's in his heaven, the hill's dew-pearled;
(This will provide for baby's shoes.)
Hunger and War do not mean a thing;
Everything's rosy where'er we roam;
Hark, how the littl... | 199196 |
cowtest = () ->
cs = new CowSay
txt = cs.render("""
@*!
Everything's great in this good old world;
(This is the stuff they can always use.)
God's in his heaven, the hill's dew-pearled;
(This will provide for baby's shoes.)
Hunger and War do not mean a thing;
Everything's rosy where'er we roam;
Hark, how the littl... | true |
cowtest = () ->
cs = new CowSay
txt = cs.render("""
@*!
Everything's great in this good old world;
(This is the stuff they can always use.)
God's in his heaven, the hill's dew-pearled;
(This will provide for baby's shoes.)
Hunger and War do not mean a thing;
Everything's rosy where'er we roam;
Hark, how the littl... |
[
{
"context": " type: String\n label: 'Password'\n\n first_name:\n ",
"end": 442,
"score": 0.989732563495636,
"start": 434,
"tag": "PASSWORD",
"value": "Password"
}
] | imports/ui/models/users/login/login.coffee | Phaze1D/SA-Units | 0 | require './login.jade'
class Login extends BlazeComponent
@register 'login'
constructor: (args) ->
onCreated: ->
@state = new ReactiveDict
@schema = new SimpleSchema(
email:
type: String
label: "Email"
regEx: SimpleS... | 80909 | require './login.jade'
class Login extends BlazeComponent
@register 'login'
constructor: (args) ->
onCreated: ->
@state = new ReactiveDict
@schema = new SimpleSchema(
email:
type: String
label: "Email"
regEx: SimpleS... | true | require './login.jade'
class Login extends BlazeComponent
@register 'login'
constructor: (args) ->
onCreated: ->
@state = new ReactiveDict
@schema = new SimpleSchema(
email:
type: String
label: "Email"
regEx: SimpleS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.