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": "string with CRLF newlines\n crlfDict = { aKey: 'Test\\r\\nNew\\r\\nLines' };\n\n # When: the dictionary is compiled to st",
"end": 5867,
"score": 0.9577533602714539,
"start": 5847,
"tag": "KEY",
"value": "Test\\r\\nNew\\r\\nLines"
},
{
"context": "t crated for LF-... | test/test.coffee | pgmarchenko/i18n-strings-files | 0 | fs = require('fs')
should = require('should')
i18nStringsFiles = require('../index')
fileTemp = __dirname + '/temp.strings'
fileTest = __dirname + '/test.strings'
fileEncoding = 'UTF-16'
checkValues = (data) ->
data['test-normal'].should.equal("Test normal")
data['test-chars'].should.equal("Olvidé mi contraseña... | 159404 | fs = require('fs')
should = require('should')
i18nStringsFiles = require('../index')
fileTemp = __dirname + '/temp.strings'
fileTest = __dirname + '/test.strings'
fileEncoding = 'UTF-16'
checkValues = (data) ->
data['test-normal'].should.equal("Test normal")
data['test-chars'].should.equal("Olvidé mi contraseña... | true | fs = require('fs')
should = require('should')
i18nStringsFiles = require('../index')
fileTemp = __dirname + '/temp.strings'
fileTest = __dirname + '/test.strings'
fileEncoding = 'UTF-16'
checkValues = (data) ->
data['test-normal'].should.equal("Test normal")
data['test-chars'].should.equal("Olvidé mi contraseña... |
[
{
"context": " # or ['Form', 'enterer', 'last_name', '!=', 'Chomsky']\n getFilterExpressionString = (query) ->\n ",
"end": 1279,
"score": 0.9998014569282532,
"start": 1272,
"tag": "NAME",
"value": "Chomsky"
}
] | app/scripts/views/query-representation.coffee | OpenSourceFieldlinguistics/dative | 7 | define [
'./representation'
'./../utils/utils'
], (RepresentationView, utils) ->
# Query Representation View
# -------------------------
#
# A view for the representation of a field whose value is a query over some
# collection of resources. A "query" here is modelled on an OLD SQL-style
# query, i.e.,... | 85916 | define [
'./representation'
'./../utils/utils'
], (RepresentationView, utils) ->
# Query Representation View
# -------------------------
#
# A view for the representation of a field whose value is a query over some
# collection of resources. A "query" here is modelled on an OLD SQL-style
# query, i.e.,... | true | define [
'./representation'
'./../utils/utils'
], (RepresentationView, utils) ->
# Query Representation View
# -------------------------
#
# A view for the representation of a field whose value is a query over some
# collection of resources. A "query" here is modelled on an OLD SQL-style
# query, i.e.,... |
[
{
"context": "ws/password-view'\n\n# based on: https://github.com/spark/spark-dev/blob/master/lib/views/login-view.coffee",
"end": 185,
"score": 0.8620395660400391,
"start": 180,
"tag": "USERNAME",
"value": "spark"
},
{
"context": "ame = @usernameModel.getText()\n @password = @p... | lib/medable-login-view.coffee | Medable/medable-dev-tools | 0 | {View} = require 'space-pen'
api = require './api'
MiniTextView = require './views/mini-text-view'
PasswordView = require './views/password-view'
# based on: https://github.com/spark/spark-dev/blob/master/lib/views/login-view.coffee
module.exports =
class MedableLoginView extends View
@content: ->
@div ... | 136604 | {View} = require 'space-pen'
api = require './api'
MiniTextView = require './views/mini-text-view'
PasswordView = require './views/password-view'
# based on: https://github.com/spark/spark-dev/blob/master/lib/views/login-view.coffee
module.exports =
class MedableLoginView extends View
@content: ->
@div ... | true | {View} = require 'space-pen'
api = require './api'
MiniTextView = require './views/mini-text-view'
PasswordView = require './views/password-view'
# based on: https://github.com/spark/spark-dev/blob/master/lib/views/login-view.coffee
module.exports =
class MedableLoginView extends View
@content: ->
@div ... |
[
{
"context": "s\",\"Prov\",\"Eccl\",\"Song\",\"Isa\",\"Jer\",\"Lam\",\"Ezek\",\"Dan\",\"Hos\",\"Joel\",\"Amos\",\"Obad\",\"Jonah\",\"Mic\",\"Nah\",\"",
"end": 505,
"score": 0.7928235530853271,
"start": 502,
"tag": "NAME",
"value": "Dan"
},
{
"context": "ov\",\"Eccl\",\"Song\",\"Isa\"... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/or/spec.coffee | saiba-mais/bible-lessons | 149 | bcv_parser = require("../../js/or_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | 45243 | bcv_parser = require("../../js/or_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | true | bcv_parser = require("../../js/or_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... |
[
{
"context": " table.addColumn('age')\n\n table.addRow(['John Doe', 30])\n table.addRow(['Jane Doe', 30])\n\n ",
"end": 662,
"score": 0.9998606443405151,
"start": 654,
"tag": "NAME",
"value": "John Doe"
},
{
"context": "ble.addRow(['John Doe', 30])\n table.addRo... | spec/table-spec.coffee | alorlov/SmartCSV | 0 | require './helpers/spec-helper'
{Point} = require 'atom'
Table = require '../lib/table'
describe 'Table', ->
[table, row, column, spy] = []
beforeEach ->
table = new Table
it 'has 0 columns', ->
expect(table.getColumnCount()).toEqual(0)
it 'has 0 rows', ->
expect(table.getRowCount()).toEqual(0)
... | 181473 | require './helpers/spec-helper'
{Point} = require 'atom'
Table = require '../lib/table'
describe 'Table', ->
[table, row, column, spy] = []
beforeEach ->
table = new Table
it 'has 0 columns', ->
expect(table.getColumnCount()).toEqual(0)
it 'has 0 rows', ->
expect(table.getRowCount()).toEqual(0)
... | true | require './helpers/spec-helper'
{Point} = require 'atom'
Table = require '../lib/table'
describe 'Table', ->
[table, row, column, spy] = []
beforeEach ->
table = new Table
it 'has 0 columns', ->
expect(table.getColumnCount()).toEqual(0)
it 'has 0 rows', ->
expect(table.getRowCount()).toEqual(0)
... |
[
{
"context": " backbone-orm.js 0.7.14\n Copyright (c) 2013-2016 Vidigami\n License: MIT (http://www.opensource.org/license",
"end": 63,
"score": 0.9998612403869629,
"start": 55,
"tag": "NAME",
"value": "Vidigami"
},
{
"context": "ses/mit-license.php)\n Source: https://github.com/... | src/lib/cursor.coffee | dk-dev/backbone-orm | 54 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 Vidigami
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Utils = require './utils'
JSONUtils = require './json_utils... | 8592 | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 <NAME>
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Utils = require './utils'
JSONUtils = require './json_utils'
... | true | ###
backbone-orm.js 0.7.14
Copyright (c) 2013-2016 PI:NAME:<NAME>END_PI
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-orm
Dependencies: Backbone.js and Underscore.js.
###
_ = require 'underscore'
Utils = require './utils'
JSONUtils = require '... |
[
{
"context": "ire \"./src/api.coffee\"\n\nFirstRally.set\n api_key: \"66fef8f84648b0a9190265296bb210c9\"\n api_key_secret: \"a11dc2b47c9f059d31a1d1d3b63723",
"end": 187,
"score": 0.9996445775032043,
"start": 155,
"tag": "KEY",
"value": "66fef8f84648b0a9190265296bb210c9"
},
{
"context... | example.coffee | firstrally/api | 1 | #!/usr/bin/env coffee
fs = require "fs"
#FirstRally = require "./dist/firstrally-api"
FirstRally = require "./src/api.coffee"
FirstRally.set
api_key: "66fef8f84648b0a9190265296bb210c9"
api_key_secret: "a11dc2b47c9f059d31a1d1d3b63723c90802bcdaaa0cb890b85c89971b591bf1"
# FirstRally.DataStream.list (error, body) ->
... | 150934 | #!/usr/bin/env coffee
fs = require "fs"
#FirstRally = require "./dist/firstrally-api"
FirstRally = require "./src/api.coffee"
FirstRally.set
api_key: "<KEY>"
api_key_secret: "<KEY>"
# FirstRally.DataStream.list (error, body) ->
# console.log body
# If no error, body is a list of streams. See documentation.
#... | true | #!/usr/bin/env coffee
fs = require "fs"
#FirstRally = require "./dist/firstrally-api"
FirstRally = require "./src/api.coffee"
FirstRally.set
api_key: "PI:KEY:<KEY>END_PI"
api_key_secret: "PI:KEY:<KEY>END_PI"
# FirstRally.DataStream.list (error, body) ->
# console.log body
# If no error, body is a list of stre... |
[
{
"context": " ds, [\n { '$key': '^pre1' }\n { '$key': '<pre2' }\n 'wat',\n { '$key': '>pre2' }\n { '$key",
"end": 5743,
"score": 0.6432263851165771,
"start": 5742,
"tag": "KEY",
"value": "2"
},
{
"context": " { text: '42', '$key': '^text' }\n { '$key': '>two' }\n ... | dev/cupofjoe/src/main.tests.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr.bind CND
badge = 'CUPOFJOE/TESTS'
log = CND.get_logger 'plain', badg... | 130147 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr.bind CND
badge = 'CUPOFJOE/TESTS'
log = CND.get_logger 'plain', badg... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr.bind CND
badge = 'CUPOFJOE/TESTS'
log = CND.get_logger 'plain', badg... |
[
{
"context": "u-test-pepper'\nextensionUrl = 'http://47.98.33.233/meshbluapi/meshblu.php/meshblu/meshbluapi/extensi",
"end": 521,
"score": 0.9824008941650391,
"start": 509,
"tag": "IP_ADDRESS",
"value": "47.98.33.233"
},
{
"context": "->\n @redisClient = Redis.createCl... | app/controllers/device-controller.coffee | DesertEagleX/meshblu-sms-plugin-3.0 | 0 | debug = require('debug')('meshblu-authenticator-email-password:device-controller')
_ = require 'lodash'
validator = require 'validator'
url = require 'url'
Crypto = require 'crypto'
stringify = require 'json-s... | 169503 | debug = require('debug')('meshblu-authenticator-email-password:device-controller')
_ = require 'lodash'
validator = require 'validator'
url = require 'url'
Crypto = require 'crypto'
stringify = require 'json-s... | true | debug = require('debug')('meshblu-authenticator-email-password:device-controller')
_ = require 'lodash'
validator = require 'validator'
url = require 'url'
Crypto = require 'crypto'
stringify = require 'json-s... |
[
{
"context": "otected\n @type String\n ###\n @modelName: 'diary'\n\n client: new MemoryResource()\n\nmodule.export",
"end": 361,
"score": 0.9710896611213684,
"start": 356,
"tag": "NAME",
"value": "diary"
}
] | spec/domain/diary-repository.coffee | CureApp/base-domain | 37 |
{ BaseAsyncRepository } = require('../base-domain')
{ MemoryResource } = require '../others'
###*
repository of diary
@class DiaryRepository
@extends BaseAsyncRepository
###
class DiaryRepository extends BaseAsyncRepository
###*
model name to create
@property modelName
@static
@protected
@t... | 164515 |
{ BaseAsyncRepository } = require('../base-domain')
{ MemoryResource } = require '../others'
###*
repository of diary
@class DiaryRepository
@extends BaseAsyncRepository
###
class DiaryRepository extends BaseAsyncRepository
###*
model name to create
@property modelName
@static
@protected
@t... | true |
{ BaseAsyncRepository } = require('../base-domain')
{ MemoryResource } = require '../others'
###*
repository of diary
@class DiaryRepository
@extends BaseAsyncRepository
###
class DiaryRepository extends BaseAsyncRepository
###*
model name to create
@property modelName
@static
@protected
@t... |
[
{
"context": "gAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNikAQAACIAHF/uBd8AAAAASUVORK5CYII=\"')\n writeMessageBody: ->\n ",
"end": 5781,
"score": 0.5070763826370239,
"start": 5780,
"tag": "KEY",
"value": "u"
},
{
"context": "AAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNikAQAACIAHF/uBd8AAAAASUVORK... | src/components/ConversationView/main.cjsx | marcus433/dropmail | 0 | require './_main.scss'
Promise = require 'bluebird'
React = require 'react'
ReactDOM = require 'react-dom'
backend = require '../../api/bridge'
Compose = require '../Compose/Main'
TimeNotation = require '../../utils/time-notation'
Lazy = require 'lazy.js'
RubberBand = require '../Rubberband/Main'
onClickOutside = requi... | 114012 | require './_main.scss'
Promise = require 'bluebird'
React = require 'react'
ReactDOM = require 'react-dom'
backend = require '../../api/bridge'
Compose = require '../Compose/Main'
TimeNotation = require '../../utils/time-notation'
Lazy = require 'lazy.js'
RubberBand = require '../Rubberband/Main'
onClickOutside = requi... | true | require './_main.scss'
Promise = require 'bluebird'
React = require 'react'
ReactDOM = require 'react-dom'
backend = require '../../api/bridge'
Compose = require '../Compose/Main'
TimeNotation = require '../../utils/time-notation'
Lazy = require 'lazy.js'
RubberBand = require '../Rubberband/Main'
onClickOutside = requi... |
[
{
"context": "search form with hidden swd input field\n * @author Robert Kolatzek\n * @copyright Robert Kolatzek\n * @version 1.0 \n##",
"end": 130,
"score": 0.9998878240585327,
"start": 115,
"tag": "NAME",
"value": "Robert Kolatzek"
},
{
"context": "put field\n * @author Robert Kola... | src/header.coffee | SULB/GNDcoffeine | 0 | ###
* Convert swd input text field with sorrounding div into a search form with hidden swd input field
* @author Robert Kolatzek
* @copyright Robert Kolatzek
* @version 1.0
###
| 191643 | ###
* Convert swd input text field with sorrounding div into a search form with hidden swd input field
* @author <NAME>
* @copyright <NAME>
* @version 1.0
###
| true | ###
* Convert swd input text field with sorrounding div into a search form with hidden swd input field
* @author PI:NAME:<NAME>END_PI
* @copyright PI:NAME:<NAME>END_PI
* @version 1.0
###
|
[
{
"context": "api_key = \"fCXo05bxAfCoY31I5vtcmPr8AEY3uQTr\"\n\nfetch_sm = (url, callback) ->\n $.ajax\n url:",
"end": 43,
"score": 0.9996048808097839,
"start": 11,
"tag": "KEY",
"value": "fCXo05bxAfCoY31I5vtcmPr8AEY3uQTr"
},
{
"context": "bumImage\"])\n\n # Show assets\n ... | _coffee/scripts/utility.coffee | johnathan99j/history-project | 17 | api_key = "fCXo05bxAfCoY31I5vtcmPr8AEY3uQTr"
fetch_sm = (url, callback) ->
$.ajax
url: "https://www.smugmug.com/api/v2/#{ url }?APIKey=#{ api_key }&count=5000"
method: "GET"
contentType: "application/json; charset=utf-8",
dataType: "json",
success: callback
error: (err) ->
alert "Error:... | 10257 | api_key = "<KEY>"
fetch_sm = (url, callback) ->
$.ajax
url: "https://www.smugmug.com/api/v2/#{ url }?APIKey=#{ api_key }&count=5000"
method: "GET"
contentType: "application/json; charset=utf-8",
dataType: "json",
success: callback
error: (err) ->
alert "Error: #{err}"
fill_album_list =... | true | api_key = "PI:KEY:<KEY>END_PI"
fetch_sm = (url, callback) ->
$.ajax
url: "https://www.smugmug.com/api/v2/#{ url }?APIKey=#{ api_key }&count=5000"
method: "GET"
contentType: "application/json; charset=utf-8",
dataType: "json",
success: callback
error: (err) ->
alert "Error: #{err}"
fill... |
[
{
"context": "otypal ones.\nclass Cat\n constructor: -> @name = 'Whiskers'\n breed: 'tabby'\n hair: 'cream'\n\nwhiskers = ne",
"end": 4109,
"score": 0.9993265271186829,
"start": 4101,
"tag": "NAME",
"value": "Whiskers"
}
] | test/comprehensions.coffee | jeremyBanks-archive/coffeescript | 1 | # Comprehensions
# --------------
# * Array Comprehensions
# * Range Comprehensions
# * Object Comprehensions
# * Implicit Destructuring Assignment
# * Comprehensions with Nonstandard Step
# TODO: refactor comprehension tests
# Basic array comprehensions.
nums = (n * n for n in [1, 2, 3] when n & 1)
results = (n ... | 206238 | # Comprehensions
# --------------
# * Array Comprehensions
# * Range Comprehensions
# * Object Comprehensions
# * Implicit Destructuring Assignment
# * Comprehensions with Nonstandard Step
# TODO: refactor comprehension tests
# Basic array comprehensions.
nums = (n * n for n in [1, 2, 3] when n & 1)
results = (n ... | true | # Comprehensions
# --------------
# * Array Comprehensions
# * Range Comprehensions
# * Object Comprehensions
# * Implicit Destructuring Assignment
# * Comprehensions with Nonstandard Step
# TODO: refactor comprehension tests
# Basic array comprehensions.
nums = (n * n for n in [1, 2, 3] when n & 1)
results = (n ... |
[
{
"context": "###\n turing-main.coffee\n Fionan Haralddottir\n Spring 2015\n This program is published under t",
"end": 46,
"score": 0.9998844265937805,
"start": 27,
"tag": "NAME",
"value": "Fionan Haralddottir"
}
] | src/turing-main.coffee | Lokidottir/coffeescript-turing-machine | 0 | ###
turing-main.coffee
Fionan Haralddottir
Spring 2015
This program is published under the MIT licence
###
{TuringUI} = require("./turing-ui")
main = () ->
a = new TuringUI("editor-target-div")
console.log "Making stuff :)"
main()
| 80325 | ###
turing-main.coffee
<NAME>
Spring 2015
This program is published under the MIT licence
###
{TuringUI} = require("./turing-ui")
main = () ->
a = new TuringUI("editor-target-div")
console.log "Making stuff :)"
main()
| true | ###
turing-main.coffee
PI:NAME:<NAME>END_PI
Spring 2015
This program is published under the MIT licence
###
{TuringUI} = require("./turing-ui")
main = () ->
a = new TuringUI("editor-target-div")
console.log "Making stuff :)"
main()
|
[
{
"context": "riterion('crypt(?, gen_salt(?, ?))', 'password', 'bf', 4)}\n\n test.equal c.sql(), 'x = crypt",
"end": 3423,
"score": 0.9970340132713318,
"start": 3421,
"tag": "PASSWORD",
"value": "bf"
},
{
"context": " c = criterion {\n username: \"user... | test/criterion.coffee | clariture/criterion | 0 | criterion = require '../src/factory'
module.exports =
'create from string and parameters': (test) ->
c = criterion 'x = ? AND y = ?', 6, 'bar'
test.equal c.sql(), 'x = ? AND y = ?'
test.deepEqual c.params(), [6, 'bar']
test.done()
'create from object': (test) ->
c = ... | 97871 | criterion = require '../src/factory'
module.exports =
'create from string and parameters': (test) ->
c = criterion 'x = ? AND y = ?', 6, 'bar'
test.equal c.sql(), 'x = ? AND y = ?'
test.deepEqual c.params(), [6, 'bar']
test.done()
'create from object': (test) ->
c = ... | true | criterion = require '../src/factory'
module.exports =
'create from string and parameters': (test) ->
c = criterion 'x = ? AND y = ?', 6, 'bar'
test.equal c.sql(), 'x = ? AND y = ?'
test.deepEqual c.params(), [6, 'bar']
test.done()
'create from object': (test) ->
c = ... |
[
{
"context": "d.Player) ->\n @name = data.name\n @password = data.password\n @set_pos()\n super(@scene,@x,@y,@group)\n ",
"end": 546,
"score": 0.996289074420929,
"start": 533,
"tag": "PASSWORD",
"value": "data.password"
}
] | server/Player.coffee | mizchi/Wanderer | 3 | {ObjectId} = require('./ObjectId')
{Character} = require './Character'
{Status} = require './Status'
{Equipment} = require './Equipment'
{ItemBox} = require './ItemBox'
Skills = require './skills'
{SkillBox} = require './skills'
racial_data = require('./shared/data/Race').RacialData
class_data = require('./shared/dat... | 130379 | {ObjectId} = require('./ObjectId')
{Character} = require './Character'
{Status} = require './Status'
{Equipment} = require './Equipment'
{ItemBox} = require './ItemBox'
Skills = require './skills'
{SkillBox} = require './skills'
racial_data = require('./shared/data/Race').RacialData
class_data = require('./shared/dat... | true | {ObjectId} = require('./ObjectId')
{Character} = require './Character'
{Status} = require './Status'
{Equipment} = require './Equipment'
{ItemBox} = require './ItemBox'
Skills = require './skills'
{SkillBox} = require './skills'
racial_data = require('./shared/data/Race').RacialData
class_data = require('./shared/dat... |
[
{
"context": " 'text'\n value: @state.name, placeholder: '用户名'\n onChange: @onNameChange\n $.input\n ",
"end": 571,
"score": 0.8388612866401672,
"start": 568,
"tag": "NAME",
"value": "用户名"
}
] | source/app/signup.coffee | Cumulo/sync-chat | 1 |
React = require 'react'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'app-signup'
getInitialState: ->
name: ''
password: ''
onNameChange: (event) ->
@setState name: event.target.value
onPasswordChange: (event) ->
@setState ... | 144528 |
React = require 'react'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'app-signup'
getInitialState: ->
name: ''
password: ''
onNameChange: (event) ->
@setState name: event.target.value
onPasswordChange: (event) ->
@setState ... | true |
React = require 'react'
report = require '../report'
$ = React.DOM
module.exports = React.createFactory React.createClass
displayName: 'app-signup'
getInitialState: ->
name: ''
password: ''
onNameChange: (event) ->
@setState name: event.target.value
onPasswordChange: (event) ->
@setState ... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9992403984069824,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-string-decoder-end.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... | 154330 | # 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": "pes a double quote', ->\n expect(HAML.escape('Michael \"netzpirat\" Kessler')).toEqual 'Michael "net",
"end": 439,
"score": 0.9985222220420837,
"start": 432,
"tag": "NAME",
"value": "Michael"
},
{
"context": "ble quote', ->\n expect(HAML.escape('Michael \... | spec/javascripts/hamlcoffee_spec.coffee | tenforwardconsulting/haml_coffee_assets | 24 | describe 'HAML', ->
describe '.escape', ->
it 'escapes an ampersand', ->
expect(HAML.escape('house & garden')).toEqual 'house & garden'
it 'escapes the less than sign', ->
expect(HAML.escape('money < fun')).toEqual 'money < fun'
it 'escapes the greater than sign', ->
expect(HAML... | 81342 | describe 'HAML', ->
describe '.escape', ->
it 'escapes an ampersand', ->
expect(HAML.escape('house & garden')).toEqual 'house & garden'
it 'escapes the less than sign', ->
expect(HAML.escape('money < fun')).toEqual 'money < fun'
it 'escapes the greater than sign', ->
expect(HAML... | true | describe 'HAML', ->
describe '.escape', ->
it 'escapes an ampersand', ->
expect(HAML.escape('house & garden')).toEqual 'house & garden'
it 'escapes the less than sign', ->
expect(HAML.escape('money < fun')).toEqual 'money < fun'
it 'escapes the greater than sign', ->
expect(HAML... |
[
{
"context": "t Buffer type', (done) ->\n User.create {name: 'John', icon: new Buffer('1a2')}, (err, u) ->\n Us",
"end": 8676,
"score": 0.9985608458518982,
"start": 8672,
"tag": "NAME",
"value": "John"
},
{
"context": "(done) ->\n User.create [\n {age: 3, name: 'user... | test/crud/document.test.coffee | mrbatista/loopback-connector-arangodb | 15 | # This test written in mocha+should.js
should = require('./../init');
describe 'document', () ->
db = null
User = null
Post = null
Product = null
PostWithNumberId = null
PostWithStringId = null
PostWithStringKey = null
PostWithNumberUnderscoreId = null
Name = null
before (done) ->
db = getData... | 372 | # This test written in mocha+should.js
should = require('./../init');
describe 'document', () ->
db = null
User = null
Post = null
Product = null
PostWithNumberId = null
PostWithStringId = null
PostWithStringKey = null
PostWithNumberUnderscoreId = null
Name = null
before (done) ->
db = getData... | true | # This test written in mocha+should.js
should = require('./../init');
describe 'document', () ->
db = null
User = null
Post = null
Product = null
PostWithNumberId = null
PostWithStringId = null
PostWithStringKey = null
PostWithNumberUnderscoreId = null
Name = null
before (done) ->
db = getData... |
[
{
"context": " true\n\n getCookie = (name) ->\n key = namr + '='\n ca = document.cookie.split(';') ;\n\n",
"end": 813,
"score": 0.9388506412506104,
"start": 809,
"tag": "KEY",
"value": "namr"
}
] | app/coffeescript/common.coffee | joeybloggs/koa-testbed | 1 | define "common", [], () ->
initialize = () ->
true
hasClass = (el, className) ->
return new RegExp('(\\s|^)' + className + '(\\s|$)').test(el.className) ;
addClass = (elem, className) ->
elem.className = (elem.className + ' ' + className).trim() if not hasClass elem, className
... | 197445 | define "common", [], () ->
initialize = () ->
true
hasClass = (el, className) ->
return new RegExp('(\\s|^)' + className + '(\\s|$)').test(el.className) ;
addClass = (elem, className) ->
elem.className = (elem.className + ' ' + className).trim() if not hasClass elem, className
... | true | define "common", [], () ->
initialize = () ->
true
hasClass = (el, className) ->
return new RegExp('(\\s|^)' + className + '(\\s|$)').test(el.className) ;
addClass = (elem, className) ->
elem.className = (elem.className + ' ' + className).trim() if not hasClass elem, className
... |
[
{
"context": "onal final delimiter*\n #\n # E.g., `smart_join([\"Tom\",\"Dick\",\"Harry\"],\", \",\" and \")` yields `Tom, Dick",
"end": 9696,
"score": 0.9998480677604675,
"start": 9693,
"tag": "NAME",
"value": "Tom"
},
{
"context": "inal delimiter*\n #\n # E.g., `smart_join([\"T... | lib/util.coffee | intellinote/inote-util | 1 | fs = require 'fs'
path = require 'path'
HOMEDIR = path.join(__dirname,'..')
LIB_COV = path.join(HOMEDIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else path.join(HOMEDIR,'lib')
ObjectUtil = require(path.join(LIB_DIR,'object-util')).ObjectUtil
StringUtil = require(path.join(LIB_DI... | 115390 | fs = require 'fs'
path = require 'path'
HOMEDIR = path.join(__dirname,'..')
LIB_COV = path.join(HOMEDIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else path.join(HOMEDIR,'lib')
ObjectUtil = require(path.join(LIB_DIR,'object-util')).ObjectUtil
StringUtil = require(path.join(LIB_DI... | true | fs = require 'fs'
path = require 'path'
HOMEDIR = path.join(__dirname,'..')
LIB_COV = path.join(HOMEDIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB_COV) then LIB_COV else path.join(HOMEDIR,'lib')
ObjectUtil = require(path.join(LIB_DIR,'object-util')).ObjectUtil
StringUtil = require(path.join(LIB_DI... |
[
{
"context": " # MarionetteApp.Models.MyModel.create({name: 'foo'})\n # MarionetteApp.Models.MyModel.find(21)\n ",
"end": 130,
"score": 0.7627394199371338,
"start": 127,
"tag": "NAME",
"value": "foo"
}
] | app/assets/javascripts/portland/traits/cachable_model.js.coffee | ralfthewise/portland | 0 | Portland.Traits.CachableModel =
# this trait allows you to do things like:
# MarionetteApp.Models.MyModel.create({name: 'foo'})
# MarionetteApp.Models.MyModel.find(21)
# Mixin like this:
# mixin(@, MarionetteApp.Traits.CachableModel)
cachable: true
included: (traitable) ->
traitable.cachedMode... | 98667 | Portland.Traits.CachableModel =
# this trait allows you to do things like:
# MarionetteApp.Models.MyModel.create({name: '<NAME>'})
# MarionetteApp.Models.MyModel.find(21)
# Mixin like this:
# mixin(@, MarionetteApp.Traits.CachableModel)
cachable: true
included: (traitable) ->
traitable.cachedM... | true | Portland.Traits.CachableModel =
# this trait allows you to do things like:
# MarionetteApp.Models.MyModel.create({name: 'PI:NAME:<NAME>END_PI'})
# MarionetteApp.Models.MyModel.find(21)
# Mixin like this:
# mixin(@, MarionetteApp.Traits.CachableModel)
cachable: true
included: (traitable) ->
tra... |
[
{
"context": "ebars._escape is used to prevent formatting like <a@b.com>\n # from being injected as live html.\n ",
"end": 1027,
"score": 0.9937286376953125,
"start": 1020,
"tag": "EMAIL",
"value": "a@b.com"
}
] | client/controllers/text.coffee | ecohealthalliance/grits-diagnostic-dashboard-release | 0 | color = (feature) =>
@grits.services.color Template.dash.getIdKeyFromFeature(feature)
Template.text.highlight = (content) ->
features = Session.get('features')
if features and content and (features instanceof Array)
if features?.length > 0 and features[0].textOffsets
# sort occurrences in descending o... | 210759 | color = (feature) =>
@grits.services.color Template.dash.getIdKeyFromFeature(feature)
Template.text.highlight = (content) ->
features = Session.get('features')
if features and content and (features instanceof Array)
if features?.length > 0 and features[0].textOffsets
# sort occurrences in descending o... | true | color = (feature) =>
@grits.services.color Template.dash.getIdKeyFromFeature(feature)
Template.text.highlight = (content) ->
features = Session.get('features')
if features and content and (features instanceof Array)
if features?.length > 0 and features[0].textOffsets
# sort occurrences in descending o... |
[
{
"context": ", ->\n pt1 =\n id: 'pt1'\n name: 'myType'\n pt2 =\n id: 'pt2'\n name: 'myT",
"end": 345,
"score": 0.961233913898468,
"start": 339,
"tag": "NAME",
"value": "myType"
},
{
"context": "ype'\n pt2 =\n id: 'pt2'\n name:... | src/spec/types.spec.coffee | easybi-vv/sphere-node-product-csv-sync-1 | 7 | _ = require 'underscore'
Types = require '../lib/types'
describe 'Types', ->
beforeEach ->
@types = new Types()
describe '#constructor', ->
it 'should construct', ->
expect(@types).toBeDefined()
describe '#buildMaps', ->
it 'should create maps for product types', ->
pt1 =
id: 'p... | 95532 | _ = require 'underscore'
Types = require '../lib/types'
describe 'Types', ->
beforeEach ->
@types = new Types()
describe '#constructor', ->
it 'should construct', ->
expect(@types).toBeDefined()
describe '#buildMaps', ->
it 'should create maps for product types', ->
pt1 =
id: 'p... | true | _ = require 'underscore'
Types = require '../lib/types'
describe 'Types', ->
beforeEach ->
@types = new Types()
describe '#constructor', ->
it 'should construct', ->
expect(@types).toBeDefined()
describe '#buildMaps', ->
it 'should create maps for product types', ->
pt1 =
id: 'p... |
[
{
"context": "###\n * onemap-crawl\n * https://github.com//onemap-crawl\n *\n * Copyright (c) 2015 \n * Licensed under the M",
"end": 55,
"score": 0.9994813799858093,
"start": 43,
"tag": "USERNAME",
"value": "onemap-crawl"
},
{
"context": "quire('nodestalker')\nclient = nodestalker.C... | crawl.coffee | weicong96/smcrawl | 0 | ###
* onemap-crawl
* https://github.com//onemap-crawl
*
* Copyright (c) 2015
* Licensed under the MIT license.
###
config = require("./config")
request = require("request")
express = require("express")
mongodb = require("mongodb")
moment = require "moment"
permutation = require "./permutation"
GoogleScheduler = ... | 99685 | ###
* onemap-crawl
* https://github.com//onemap-crawl
*
* Copyright (c) 2015
* Licensed under the MIT license.
###
config = require("./config")
request = require("request")
express = require("express")
mongodb = require("mongodb")
moment = require "moment"
permutation = require "./permutation"
GoogleScheduler = ... | true | ###
* onemap-crawl
* https://github.com//onemap-crawl
*
* Copyright (c) 2015
* Licensed under the MIT license.
###
config = require("./config")
request = require("request")
express = require("express")
mongodb = require("mongodb")
moment = require "moment"
permutation = require "./permutation"
GoogleScheduler = ... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9990740418434143,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/pummel/test-fs-watch-file-slow.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... | 174433 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": ", ->\n code = \"\"\"\n var name = 'Josh';\n console.log(name);\n \"\"\"\n ",
"end": 7072,
"score": 0.9995945692062378,
"start": 7068,
"tag": "NAME",
"value": "Josh"
},
{
"context": " }\n var peter = new Pers... | tests/jasmine/client/unit/JSLessons/spec/JSLessonsSpec.coffee | Elfoslav/codermania | 56 | describe "JSLesson.checkAssignment", ->
#arithmetic operators
Meteor.startup ->
Meteor.setTimeout(
describe 'Statements', ->
lesson = JSLessonsList._collection.findOne({id: '1y'})
it "should return true for correct code", ->
code = """
console.log('statement 1');
... | 99243 | describe "JSLesson.checkAssignment", ->
#arithmetic operators
Meteor.startup ->
Meteor.setTimeout(
describe 'Statements', ->
lesson = JSLessonsList._collection.findOne({id: '1y'})
it "should return true for correct code", ->
code = """
console.log('statement 1');
... | true | describe "JSLesson.checkAssignment", ->
#arithmetic operators
Meteor.startup ->
Meteor.setTimeout(
describe 'Statements', ->
lesson = JSLessonsList._collection.findOne({id: '1y'})
it "should return true for correct code", ->
code = """
console.log('statement 1');
... |
[
{
"context": "module.exports =\n stories: [\n headline: \"Clinton Lawyer: Hillary Erased All Emails from Private Server\"\n ",
"end": 61,
"score": 0.998155951499939,
"start": 47,
"tag": "NAME",
"value": "Clinton Lawyer"
},
{
"context": " =\n stories: [\n headline: \"Clint... | src/scripts/data.coffee | adampash/react-front-module | 0 | module.exports =
stories: [
headline: "Clinton Lawyer: Hillary Erased All Emails from Private Server"
url: 'http://gawker.com/clinton-lawyer-hillary-erased-all-emails-from-private-1694247035'
deck: '"At the end, I chose not to keep my private, personal emails."'
tag: 'HRC'
id: 123801
... | 149074 | module.exports =
stories: [
headline: "<NAME>: H<NAME> Erased All Emails from Private Server"
url: 'http://gawker.com/clinton-lawyer-hillary-erased-all-emails-from-private-1694247035'
deck: '"At the end, I chose not to keep my private, personal emails."'
tag: 'HRC'
id: 123801
img: ... | true | module.exports =
stories: [
headline: "PI:NAME:<NAME>END_PI: HPI:NAME:<NAME>END_PI Erased All Emails from Private Server"
url: 'http://gawker.com/clinton-lawyer-hillary-erased-all-emails-from-private-1694247035'
deck: '"At the end, I chose not to keep my private, personal emails."'
tag: 'HRC'
... |
[
{
"context": "nal notes required for the script>\n#\n# Author:\n# Yuya Ochiai <yuya0321@gmail.com>\n\npath = require 'path'\npacka",
"end": 688,
"score": 0.9998704195022583,
"start": 677,
"tag": "NAME",
"value": "Yuya Ochiai"
},
{
"context": "ired for the script>\n#\n# Author:\n# ... | src/chinachu.coffee | yuya-oc/hubot-chinachu | 0 | # Description
# A Hubot script for Chinachu
#
# Configuration:
# HUBOT_CHINACHU_URL
# HUBOT_CHINACHU_USER
# HUBOT_CHINACHU_PASSWORD
# HUBOT_CHINACHU_USERAGENT = "hubot-chinachu/#{package_version}"
#
# Commands:
# hubot chinachu now - Reply current broadcasting and recording programs
# hubot chinachu reser... | 105300 | # Description
# A Hubot script for Chinachu
#
# Configuration:
# HUBOT_CHINACHU_URL
# HUBOT_CHINACHU_USER
# HUBOT_CHINACHU_PASSWORD
# HUBOT_CHINACHU_USERAGENT = "hubot-chinachu/#{package_version}"
#
# Commands:
# hubot chinachu now - Reply current broadcasting and recording programs
# hubot chinachu reser... | true | # Description
# A Hubot script for Chinachu
#
# Configuration:
# HUBOT_CHINACHU_URL
# HUBOT_CHINACHU_USER
# HUBOT_CHINACHU_PASSWORD
# HUBOT_CHINACHU_USERAGENT = "hubot-chinachu/#{package_version}"
#
# Commands:
# hubot chinachu now - Reply current broadcasting and recording programs
# hubot chinachu reser... |
[
{
"context": "nom d'utilisateur ici\"\n \"add_bank_password\" : \"Mot de passe\"\n \"add_bank_password_placeholder\" : \"Entrez vo",
"end": 497,
"score": 0.9937903881072998,
"start": 485,
"tag": "PASSWORD",
"value": "Mot de passe"
}
] | client/app/locales/fr.coffee | einSelbst/cozy-pfm | 0 | module.exports =
#
# Menu - topbar
#
"menu_accounts" : "Comptes"
"menu_balance" : "Soldes"
"menu_search" : "Recherche"
"menu_add_bank": "Ajouter des comptes"
"overall_balance": "Solde total : "
#
# Add a new bank dialog
#
"add_bank_bank" : "Banque"
"add_bank_credent... | 144315 | module.exports =
#
# Menu - topbar
#
"menu_accounts" : "Comptes"
"menu_balance" : "Soldes"
"menu_search" : "Recherche"
"menu_add_bank": "Ajouter des comptes"
"overall_balance": "Solde total : "
#
# Add a new bank dialog
#
"add_bank_bank" : "Banque"
"add_bank_credent... | true | module.exports =
#
# Menu - topbar
#
"menu_accounts" : "Comptes"
"menu_balance" : "Soldes"
"menu_search" : "Recherche"
"menu_add_bank": "Ajouter des comptes"
"overall_balance": "Solde total : "
#
# Add a new bank dialog
#
"add_bank_bank" : "Banque"
"add_bank_credent... |
[
{
"context": "JSON\n 'my.host.org': \n username: 'richard'\n password: 'p@s$w0rd'\n 'my.secon",
"end": 406,
"score": 0.9994513392448425,
"start": 399,
"tag": "USERNAME",
"value": "richard"
},
{
"context": " username: 'richard'\n passwo... | test/crudHostSpec.coffee | h2non/node-authrc | 1 | { expect } = require 'chai'
fs = require 'fs'
Authrc = require '../lib/authrc'
describe 'create/read/update/remove config', ->
authRcPath = "#{__dirname}/fixtures/tmp/.authrc"
auth = null
writeJSON = (data) ->
fs.writeFileSync authRcPath, JSON.stringify(data, null, 4)
describe 'playing with hosts data', ... | 112373 | { expect } = require 'chai'
fs = require 'fs'
Authrc = require '../lib/authrc'
describe 'create/read/update/remove config', ->
authRcPath = "#{__dirname}/fixtures/tmp/.authrc"
auth = null
writeJSON = (data) ->
fs.writeFileSync authRcPath, JSON.stringify(data, null, 4)
describe 'playing with hosts data', ... | true | { expect } = require 'chai'
fs = require 'fs'
Authrc = require '../lib/authrc'
describe 'create/read/update/remove config', ->
authRcPath = "#{__dirname}/fixtures/tmp/.authrc"
auth = null
writeJSON = (data) ->
fs.writeFileSync authRcPath, JSON.stringify(data, null, 4)
describe 'playing with hosts data', ... |
[
{
"context": "butesFor('tags')\n\n store = new @Store(name: \"Goodburger\")\n yummy = store.get('tags').build(name: \"Yummy\"",
"end": 5947,
"score": 0.506186306476593,
"start": 5941,
"tag": "NAME",
"value": "burger"
}
] | tests/batman/storage_adapter/rails_storage_test.coffee | nickjs/batman.js | 3 | helpers = window.restStorageHelpers
QUnit.module "Batman.RailsStorage",
setup: ->
@oldRequest = Batman.Request
@oldExpectedForUrl = helpers.MockRequest.getExpectedForUrl
helpers.MockRequest.getExpectedForUrl = (url) ->
@expects[url.slice(0,-5)] || [] # cut off the .json so the fixtures from the te... | 7305 | helpers = window.restStorageHelpers
QUnit.module "Batman.RailsStorage",
setup: ->
@oldRequest = Batman.Request
@oldExpectedForUrl = helpers.MockRequest.getExpectedForUrl
helpers.MockRequest.getExpectedForUrl = (url) ->
@expects[url.slice(0,-5)] || [] # cut off the .json so the fixtures from the te... | true | helpers = window.restStorageHelpers
QUnit.module "Batman.RailsStorage",
setup: ->
@oldRequest = Batman.Request
@oldExpectedForUrl = helpers.MockRequest.getExpectedForUrl
helpers.MockRequest.getExpectedForUrl = (url) ->
@expects[url.slice(0,-5)] || [] # cut off the .json so the fixtures from the te... |
[
{
"context": "('password')\n .set( (password)->\n @_password = password\n @salt = @makeSalt()\n @hashed_password = @e",
"end": 502,
"score": 0.9964790344238281,
"start": 494,
"tag": "PASSWORD",
"value": "password"
}
] | src/models/user.coffee | yi/coffee-nodejs-passport-boilerplate | 1 |
# Module dependencies.
mongoose = require('mongoose')
Schema = mongoose.Schema
crypto = require('crypto')
_ = require('underscore')
authTypes = ['github', 'twitter', 'facebook', 'google']
# User Schema
UserSchema = new Schema({
name: String,
email: String,
username: String,
provider: String,
hashed_passwo... | 209805 |
# Module dependencies.
mongoose = require('mongoose')
Schema = mongoose.Schema
crypto = require('crypto')
_ = require('underscore')
authTypes = ['github', 'twitter', 'facebook', 'google']
# User Schema
UserSchema = new Schema({
name: String,
email: String,
username: String,
provider: String,
hashed_passwo... | true |
# Module dependencies.
mongoose = require('mongoose')
Schema = mongoose.Schema
crypto = require('crypto')
_ = require('underscore')
authTypes = ['github', 'twitter', 'facebook', 'google']
# User Schema
UserSchema = new Schema({
name: String,
email: String,
username: String,
provider: String,
hashed_passwo... |
[
{
"context": "t Password')\n\t\t\t\n\t\t\ts3.auth key, secret\n\t\t\tcreds = username + ':' + key + ':' + secret\n\t\t\t\n\t\t\tsessionStorage.",
"end": 556,
"score": 0.8904454708099365,
"start": 548,
"tag": "USERNAME",
"value": "username"
},
{
"context": "t = s3.bucket(bucketName)\n... | src/app/auth.coffee | roobin/StaticSite | 1 |
define ['lib/crypto', 'lib/promises', 'lib/s3'], (crypto, promises, s3) ->
{sha1, aes} = crypto
path = 'auth/'
bucketName = location.pathname.split('/')[1]
login: (username, password, remember) ->
deferred = new promises.Deferred()
usernameSha = sha1(username)
passwordSha = sha1(password)
$.... | 144608 |
define ['lib/crypto', 'lib/promises', 'lib/s3'], (crypto, promises, s3) ->
{sha1, aes} = crypto
path = 'auth/'
bucketName = location.pathname.split('/')[1]
login: (username, password, remember) ->
deferred = new promises.Deferred()
usernameSha = sha1(username)
passwordSha = sha1(password)
$.... | true |
define ['lib/crypto', 'lib/promises', 'lib/s3'], (crypto, promises, s3) ->
{sha1, aes} = crypto
path = 'auth/'
bucketName = location.pathname.split('/')[1]
login: (username, password, remember) ->
deferred = new promises.Deferred()
usernameSha = sha1(username)
passwordSha = sha1(password)
$.... |
[
{
"context": "mberName\", ->\n\n beforeEach ->\n @last_name = \"Smith\"\n @input_name = \"Ben #{@last_name}\"\n @obj ",
"end": 96,
"score": 0.9997866153717041,
"start": 91,
"tag": "NAME",
"value": "Smith"
},
{
"context": "h ->\n @last_name = \"Smith\"\n @input_name... | spec/javascripts/mobile1/member_spec.js.coffee | andyl/BAMRU-Private | 1 | #= require tablesorter_util
describe "MemberName", ->
beforeEach ->
@last_name = "Smith"
@input_name = "Ben #{@last_name}"
@obj = new MemberName(@input_name)
describe "basic object generation", ->
it "generates an object", ->
expect(@obj).toBeDefined()
it "returns the input na... | 44175 | #= require tablesorter_util
describe "MemberName", ->
beforeEach ->
@last_name = "<NAME>"
@input_name = "<NAME> <NAME>}"
@obj = new MemberName(@input_name)
describe "basic object generation", ->
it "generates an object", ->
expect(@obj).toBeDefined()
it "returns the input name... | true | #= require tablesorter_util
describe "MemberName", ->
beforeEach ->
@last_name = "PI:NAME:<NAME>END_PI"
@input_name = "PI:NAME:<NAME>END_PI PI:NAME:<NAME>END_PI}"
@obj = new MemberName(@input_name)
describe "basic object generation", ->
it "generates an object", ->
expect(@obj).toB... |
[
{
"context": "eate url with key', ->\n\t\t\tGoogleMapsLoader.KEY = 'abcdefghijkl'\n\t\t\texpect(GoogleMapsLoader.createUrl()).to.be.eq",
"end": 1845,
"score": 0.996525764465332,
"start": 1833,
"tag": "KEY",
"value": "abcdefghijkl"
},
{
"context": "teUrl()).to.be.equal(baseUrl + '?sen... | node_modules/google-maps/test/src/GoogleMaps.coffee | vladimir050486/eventi | 0 | baseUrl = GoogleMapsLoader.URL
cb = GoogleMapsLoader.WINDOW_CALLBACK_NAME
describe 'GoogleMaps', ->
afterEach( (done) ->
GoogleMapsLoader.release( ->
done()
)
)
describe '#load()', ->
it 'should throw an error if promise style is used', ->
expect( -> GoogleMapsLoader.load().then()).to.throw(Error, 'U... | 83715 | baseUrl = GoogleMapsLoader.URL
cb = GoogleMapsLoader.WINDOW_CALLBACK_NAME
describe 'GoogleMaps', ->
afterEach( (done) ->
GoogleMapsLoader.release( ->
done()
)
)
describe '#load()', ->
it 'should throw an error if promise style is used', ->
expect( -> GoogleMapsLoader.load().then()).to.throw(Error, 'U... | true | baseUrl = GoogleMapsLoader.URL
cb = GoogleMapsLoader.WINDOW_CALLBACK_NAME
describe 'GoogleMaps', ->
afterEach( (done) ->
GoogleMapsLoader.release( ->
done()
)
)
describe '#load()', ->
it 'should throw an error if promise style is used', ->
expect( -> GoogleMapsLoader.load().then()).to.throw(Error, 'U... |
[
{
"context": "dent.locations.forEach (location) ->\n key = \"#{location.latitude},#{location.longitude}\"\n incidentsByLatLng[key] = (incidentsByLatL",
"end": 6549,
"score": 0.9931038618087769,
"start": 6505,
"tag": "KEY",
"value": "\"#{location.latitude},#{location.longitude}\... | client/controllers/events/eventAffectedAreas.coffee | ecohealthalliance/eidr-connect | 1 | import EventIncidents from '/imports/collections/eventIncidents'
import { formatLocation } from '/imports/utils'
import MapHelpers from '/imports/ui/mapMarkers.coffee'
import Constants from '/imports/constants'
{
LocationTree,
convertAllIncidentsToDifferentials
differentialIncidentsToSubIntervals,
extendSubInte... | 100527 | import EventIncidents from '/imports/collections/eventIncidents'
import { formatLocation } from '/imports/utils'
import MapHelpers from '/imports/ui/mapMarkers.coffee'
import Constants from '/imports/constants'
{
LocationTree,
convertAllIncidentsToDifferentials
differentialIncidentsToSubIntervals,
extendSubInte... | true | import EventIncidents from '/imports/collections/eventIncidents'
import { formatLocation } from '/imports/utils'
import MapHelpers from '/imports/ui/mapMarkers.coffee'
import Constants from '/imports/constants'
{
LocationTree,
convertAllIncidentsToDifferentials
differentialIncidentsToSubIntervals,
extendSubInte... |
[
{
"context": "ent timeline for HR Candidates\\Employee \r\n@author: Youri Noel Nelson (Yourinium)\r\n###\r\n\r\n# This data can be substitute",
"end": 148,
"score": 0.9998072385787964,
"start": 131,
"tag": "NAME",
"value": "Youri Noel Nelson"
}
] | Dryad_Timeline_V2_0_0.coffee | yourinoelnelson/BubbleTime | 0 | ###
Name: Dryad Timeline - Version 2.0.0
Date: 03/11/2016
Purpose: Display event timeline for HR Candidates\Employee
@author: Youri Noel Nelson (Yourinium)
###
# This data can be substituted in Skuid with dates = MyModel.data
dates =
date:
Event_Date__c:'2014-11-17'
Event_Type__c:'Confirmed Start'
... | 104716 | ###
Name: Dryad Timeline - Version 2.0.0
Date: 03/11/2016
Purpose: Display event timeline for HR Candidates\Employee
@author: <NAME> (Yourinium)
###
# This data can be substituted in Skuid with dates = MyModel.data
dates =
date:
Event_Date__c:'2014-11-17'
Event_Type__c:'Confirmed Start'
In_Approv... | true | ###
Name: Dryad Timeline - Version 2.0.0
Date: 03/11/2016
Purpose: Display event timeline for HR Candidates\Employee
@author: PI:NAME:<NAME>END_PI (Yourinium)
###
# This data can be substituted in Skuid with dates = MyModel.data
dates =
date:
Event_Date__c:'2014-11-17'
Event_Type__c:'Confirmed Start... |
[
{
"context": "ormat \"DD-MM-YYYY H:mm\"\n user1 =\n email: 'dorian@ethylocle.com'\n password: '1234'\n user2 =\n email: ",
"end": 628,
"score": 0.999929666519165,
"start": 608,
"tag": "EMAIL",
"value": "dorian@ethylocle.com"
},
{
"context": " email: 'dorian@eth... | lib/model/levelDB/test/rideSearch.coffee | dorianb/Web-application---Ethylocl- | 0 | rimraf = require 'rimraf'
should = require 'should'
db = require '../down'
rideSearch = require '../rideSearch'
geolib = require 'geolib'
moment = require 'moment'
describe 'Ride search', ->
###beforeEach (next) ->
rimraf "#{__dirname}/../../../db/tmp/ridesearch", ->
rimraf "#{__dirname}/../../../db/tmp... | 147613 | rimraf = require 'rimraf'
should = require 'should'
db = require '../down'
rideSearch = require '../rideSearch'
geolib = require 'geolib'
moment = require 'moment'
describe 'Ride search', ->
###beforeEach (next) ->
rimraf "#{__dirname}/../../../db/tmp/ridesearch", ->
rimraf "#{__dirname}/../../../db/tmp... | true | rimraf = require 'rimraf'
should = require 'should'
db = require '../down'
rideSearch = require '../rideSearch'
geolib = require 'geolib'
moment = require 'moment'
describe 'Ride search', ->
###beforeEach (next) ->
rimraf "#{__dirname}/../../../db/tmp/ridesearch", ->
rimraf "#{__dirname}/../../../db/tmp... |
[
{
"context": " 'metafields7':\n id: 7\n key: 'Product metafield 2.1'\n subject_type: 'product'\n subject:\n ",
"end": 967,
"score": 0.7902933955192566,
"start": 954,
"tag": "KEY",
"value": "metafield 2.1"
}
] | tests/batman/model/associations/polymorphic_association_helper.coffee | davidcornu/batman | 0 | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter, generateSorterOnProperty} = window
ex = window.PolymorphicAssociationHelpers = {}
ex.baseSetup = ->
namespace = @namespace = {}
namespace.Metafield = class @Metafield extends Batman.Model
@belongsTo 'subject', {polymorphic: true, namespace}
... | 187944 | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter, generateSorterOnProperty} = window
ex = window.PolymorphicAssociationHelpers = {}
ex.baseSetup = ->
namespace = @namespace = {}
namespace.Metafield = class @Metafield extends Batman.Model
@belongsTo 'subject', {polymorphic: true, namespace}
... | true | {createStorageAdapter, TestStorageAdapter, AsyncTestStorageAdapter, generateSorterOnProperty} = window
ex = window.PolymorphicAssociationHelpers = {}
ex.baseSetup = ->
namespace = @namespace = {}
namespace.Metafield = class @Metafield extends Batman.Model
@belongsTo 'subject', {polymorphic: true, namespace}
... |
[
{
"context": "ou are less likely to use teleports.\n *\n * @name Teleshy\n * @prerequisite Teleport 50 times\n * @effect -",
"end": 143,
"score": 0.9792166352272034,
"start": 136,
"tag": "NAME",
"value": "Teleshy"
}
] | src/character/personalities/Teleshy.coffee | sadbear-/IdleLands | 3 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are less likely to use teleports.
*
* @name Teleshy
* @prerequisite Teleport 50 times
* @effect -99% chance to use a teleport
* @category Personalities
* @package Player
*/`
class Teleshy extends Personality
construct... | 112479 |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are less likely to use teleports.
*
* @name <NAME>
* @prerequisite Teleport 50 times
* @effect -99% chance to use a teleport
* @category Personalities
* @package Player
*/`
class Teleshy extends Personality
constructo... | true |
Personality = require "../base/Personality"
`/**
* This personality makes it so you are less likely to use teleports.
*
* @name PI:NAME:<NAME>END_PI
* @prerequisite Teleport 50 times
* @effect -99% chance to use a teleport
* @category Personalities
* @package Player
*/`
class Teleshy extends Personality... |
[
{
"context": "ttle Mocha Reference ========\r\nhttps://github.com/visionmedia/should.js\r\nhttps://github.com/visionmedia/mocha\r\n",
"end": 297,
"score": 0.9994474649429321,
"start": 286,
"tag": "USERNAME",
"value": "visionmedia"
},
{
"context": "hub.com/visionmedia/should.js\r\nhtt... | src/test/gas-manager_test.coffee | unau/gas-minus-minus | 1 | 'use strict'
gas_manager = require('../lib/gas-manager.js')
readline = require 'readline'
open = require 'open'
fs = require 'fs'
FILE_ID = "1jdu8QQcKZ5glzOaJnofi2At2Q-2PnLLKxptN0CTRVfgfz9ZIopD5sYXz"
###
======== A Handy Little Mocha Reference ========
https://github.com/visionmedia/should.js
https://git... | 76599 | 'use strict'
gas_manager = require('../lib/gas-manager.js')
readline = require 'readline'
open = require 'open'
fs = require 'fs'
FILE_ID = "1jdu8QQcKZ5glzOaJnofi2At2Q-2PnLLKxptN0CTRVfgfz9ZIopD5sYXz"
###
======== A Handy Little Mocha Reference ========
https://github.com/visionmedia/should.js
https://git... | true | 'use strict'
gas_manager = require('../lib/gas-manager.js')
readline = require 'readline'
open = require 'open'
fs = require 'fs'
FILE_ID = "1jdu8QQcKZ5glzOaJnofi2At2Q-2PnLLKxptN0CTRVfgfz9ZIopD5sYXz"
###
======== A Handy Little Mocha Reference ========
https://github.com/visionmedia/should.js
https://git... |
[
{
"context": "================\n#\n# Generic Utilities\n#\n# @author Matthew Wagerfield @mwagerfield\n#\n#=================================",
"end": 118,
"score": 0.9998781085014343,
"start": 100,
"tag": "NAME",
"value": "Matthew Wagerfield"
},
{
"context": "# Generic Utilities\n#\n#... | assets/scripts/coffee/core/Utils.coffee | wagerfield/danbo | 1 | ###
#============================================================
#
# Generic Utilities
#
# @author Matthew Wagerfield @mwagerfield
#
#============================================================
###
class Utils
###
# Generates a GUID.
# @param {number} length The length of the guid.
# @param {string} prefix ... | 104141 | ###
#============================================================
#
# Generic Utilities
#
# @author <NAME> @mwagerfield
#
#============================================================
###
class Utils
###
# Generates a GUID.
# @param {number} length The length of the guid.
# @param {string} prefix String to pr... | true | ###
#============================================================
#
# Generic Utilities
#
# @author PI:NAME:<NAME>END_PI @mwagerfield
#
#============================================================
###
class Utils
###
# Generates a GUID.
# @param {number} length The length of the guid.
# @param {string} prefi... |
[
{
"context": "ader: (key, val = undefined) ->\n key = key.toLowerCase()\n if @req.headers[key] then @req.headers[",
"end": 2174,
"score": 0.8231669664382935,
"start": 2163,
"tag": "KEY",
"value": "toLowerCase"
}
] | src/request.coffee | SegmentFault/node-tiny-http | 16 | Form = require 'formidable'
Url = require 'url'
Cookie = require 'cookie'
QueryString = require 'querystring'
class Request
mergeParams = (source, target) ->
for k, v of target
source[k] = v
constructor: (@req, @options, cb) ->
parts = Url.parse @req.url, yes
@method = ... | 79533 | Form = require 'formidable'
Url = require 'url'
Cookie = require 'cookie'
QueryString = require 'querystring'
class Request
mergeParams = (source, target) ->
for k, v of target
source[k] = v
constructor: (@req, @options, cb) ->
parts = Url.parse @req.url, yes
@method = ... | true | Form = require 'formidable'
Url = require 'url'
Cookie = require 'cookie'
QueryString = require 'querystring'
class Request
mergeParams = (source, target) ->
for k, v of target
source[k] = v
constructor: (@req, @options, cb) ->
parts = Url.parse @req.url, yes
@method = ... |
[
{
"context": "ocument.getElementById('login-username').value = 'admin';\n document.getElementById('login-password').val",
"end": 78,
"score": 0.9990029335021973,
"start": 73,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "ocument.getElementById('login-password').value = '12345... | app/assets/javascripts/admin-input.coffee | john-huang-121/rapidfire_survey | 1 | @loginAdmin = () ->
document.getElementById('login-username').value = 'admin';
document.getElementById('login-password').value = '123456'; | 100380 | @loginAdmin = () ->
document.getElementById('login-username').value = 'admin';
document.getElementById('login-password').value = '<PASSWORD>'; | true | @loginAdmin = () ->
document.getElementById('login-username').value = 'admin';
document.getElementById('login-password').value = 'PI:PASSWORD:<PASSWORD>END_PI'; |
[
{
"context": " yang bagus.\"\n# century_skills_quote4_author: \"Joey, 10th Grade\"\n century_skills_subtitle4: \"Komuni",
"end": 3488,
"score": 0.8735718727111816,
"start": 3484,
"tag": "NAME",
"value": "Joey"
},
{
"context": "bagus.\"\n# century_skills_quote4_author: \"Joey... | app/locale/id.coffee | Snake210993/codecombat | 0 | module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Indonesian", translation:
new_home:
title: "CodeCombat - Coding game untuk belajar Python dan JavaScript"
meta_keywords: "CodeCombat, python, javascript, Coding Games"
meta_description: "Pelajari kode yang diketik melalui permai... | 170863 | module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Indonesian", translation:
new_home:
title: "CodeCombat - Coding game untuk belajar Python dan JavaScript"
meta_keywords: "CodeCombat, python, javascript, Coding Games"
meta_description: "Pelajari kode yang diketik melalui permai... | true | module.exports = nativeDescription: "Bahasa Indonesia", englishDescription: "Indonesian", translation:
new_home:
title: "CodeCombat - Coding game untuk belajar Python dan JavaScript"
meta_keywords: "CodeCombat, python, javascript, Coding Games"
meta_description: "Pelajari kode yang diketik melalui permai... |
[
{
"context": "sert.deepEqual user, id: 123, email: 'baz', key: 'bix'\n done()\n\n describe 'getUser()', ->\n ",
"end": 450,
"score": 0.9670791625976562,
"start": 447,
"tag": "KEY",
"value": "bix"
},
{
"context": "sert.deepEqual user, id: 123, email: 'baz', key: 'bix'\n ... | test/unit/user-spec.coffee | Starefossen/slackly | 1 | assert = require 'assert'
redis = require '../../src/db/redis'
user = require '../../src/lib/user'
beforeEach (done) ->
redis.flushall done
describe 'User', ->
describe 'setUser()', ->
it 'should set new user', (done) ->
user.set 'foo', 123, 'baz', 'bix', (e) ->
assert.ifError e
r... | 121069 | assert = require 'assert'
redis = require '../../src/db/redis'
user = require '../../src/lib/user'
beforeEach (done) ->
redis.flushall done
describe 'User', ->
describe 'setUser()', ->
it 'should set new user', (done) ->
user.set 'foo', 123, 'baz', 'bix', (e) ->
assert.ifError e
r... | true | assert = require 'assert'
redis = require '../../src/db/redis'
user = require '../../src/lib/user'
beforeEach (done) ->
redis.flushall done
describe 'User', ->
describe 'setUser()', ->
it 'should set new user', (done) ->
user.set 'foo', 123, 'baz', 'bix', (e) ->
assert.ifError e
r... |
[
{
"context": "rrals/r1a2n3d4m5s6t7\",\n \"display_name\": \"John P. User\",\n \"uid\": 12345678,\n \"country\":",
"end": 256,
"score": 0.9997934699058533,
"start": 244,
"tag": "NAME",
"value": "John P. User"
},
{
"context": "l\": 680031877871\n },\... | test/src/fast/account_info_test.coffee | expo/dropbox-js | 64 | describe 'Dropbox.AccountInfo', ->
describe '.parse', ->
describe 'on the API example', ->
beforeEach ->
userData = {
"referral_link": "https://www.dropbox.com/referrals/r1a2n3d4m5s6t7",
"display_name": "John P. User",
"uid": 12345678,
"country": "US",
... | 203642 | describe 'Dropbox.AccountInfo', ->
describe '.parse', ->
describe 'on the API example', ->
beforeEach ->
userData = {
"referral_link": "https://www.dropbox.com/referrals/r1a2n3d4m5s6t7",
"display_name": "<NAME>",
"uid": 12345678,
"country": "US",
"qu... | true | describe 'Dropbox.AccountInfo', ->
describe '.parse', ->
describe 'on the API example', ->
beforeEach ->
userData = {
"referral_link": "https://www.dropbox.com/referrals/r1a2n3d4m5s6t7",
"display_name": "PI:NAME:<NAME>END_PI",
"uid": 12345678,
"country": "US",... |
[
{
"context": "options: admin_username: 'root', admin_password: 'secret', ssl: enabled: false\n nodes: 'node1': ip:",
"end": 1507,
"score": 0.9994995594024658,
"start": 1501,
"tag": "PASSWORD",
"value": "secret"
},
{
"context": "ssl: enabled: false\n nodes: 'node1': ip: ... | packages/mariadb/test/server/functional_tests.coffee | ryba-io/ryba | 24 | path = require 'path'
nikita = require 'nikita'
build_env_script = path.join(__dirname, './../../env/build_env.coffee')
generate_script_path = path.join(__dirname, './../server/cert/generate')
each = require 'each'
store = require 'masson/lib/config/store'
multimatch = require 'masson/lib/utils/multimatch'
{merge} = re... | 193049 | path = require 'path'
nikita = require 'nikita'
build_env_script = path.join(__dirname, './../../env/build_env.coffee')
generate_script_path = path.join(__dirname, './../server/cert/generate')
each = require 'each'
store = require 'masson/lib/config/store'
multimatch = require 'masson/lib/utils/multimatch'
{merge} = re... | true | path = require 'path'
nikita = require 'nikita'
build_env_script = path.join(__dirname, './../../env/build_env.coffee')
generate_script_path = path.join(__dirname, './../server/cert/generate')
each = require 'each'
store = require 'masson/lib/config/store'
multimatch = require 'masson/lib/utils/multimatch'
{merge} = re... |
[
{
"context": "###\n * 对文件进行重命名\n * @author jackie Lin <dashi_lin@163.com>\n###\n'use strict'\n\nthrough2 = ",
"end": 37,
"score": 0.9995888471603394,
"start": 27,
"tag": "NAME",
"value": "jackie Lin"
},
{
"context": "###\n * 对文件进行重命名\n * @author jackie Lin <dashi_lin@163.com>\n###\n'... | rename.coffee | JackieLin/gis | 0 | ###
* 对文件进行重命名
* @author jackie Lin <dashi_lin@163.com>
###
'use strict'
through2 = require 'through2'
path = require 'path'
_ = require 'lodash'
module.exports = (fn)->
through2.obj (file, enc, callback) ->
file = if _.isFunction(fn) then fn(file) else fn
callback null, file
| 216078 | ###
* 对文件进行重命名
* @author <NAME> <<EMAIL>>
###
'use strict'
through2 = require 'through2'
path = require 'path'
_ = require 'lodash'
module.exports = (fn)->
through2.obj (file, enc, callback) ->
file = if _.isFunction(fn) then fn(file) else fn
callback null, file
| true | ###
* 对文件进行重命名
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
'use strict'
through2 = require 'through2'
path = require 'path'
_ = require 'lodash'
module.exports = (fn)->
through2.obj (file, enc, callback) ->
file = if _.isFunction(fn) then fn(file) else fn
callback null, file
|
[
{
"context": ", log.headingStyle\n log.npm \"loves you\", \"Happy Xmas, Noders!\"\n cb()\n return\n\ndg = false\nObject.defi",
"end": 1409,
"score": 0.6764194965362549,
"start": 1406,
"tag": "NAME",
"value": "mas"
},
{
"context": "headingStyle\n log.npm \"loves you\", \"Happy Xma... | deps/npm/lib/xmas.coffee | lxe/io.coffee | 0 | # happy xmas
log = require("npmlog")
module.exports = (args, cb) ->
w = (s) ->
process.stderr.write s
return
s = (if process.platform is "win32" then " *" else " ★")
f = "/"
b = "\"
x = (if process.platform is "win32" then " " else "")
o = [
"i"
" "
" "
" "
" "
" "
" "
... | 92522 | # happy xmas
log = require("npmlog")
module.exports = (args, cb) ->
w = (s) ->
process.stderr.write s
return
s = (if process.platform is "win32" then " *" else " ★")
f = "/"
b = "\"
x = (if process.platform is "win32" then " " else "")
o = [
"i"
" "
" "
" "
" "
" "
" "
... | true | # happy xmas
log = require("npmlog")
module.exports = (args, cb) ->
w = (s) ->
process.stderr.write s
return
s = (if process.platform is "win32" then " *" else " ★")
f = "/"
b = "\"
x = (if process.platform is "win32" then " " else "")
o = [
"i"
" "
" "
" "
" "
" "
" "
... |
[
{
"context": "', y: 'Number'},\n {x: 'Number', name: 'String'}\n ])\n\n suite 'Generics', ->\n te",
"end": 2236,
"score": 0.885814905166626,
"start": 2230,
"tag": "NAME",
"value": "String"
}
] | test/types.coffee | pasberth/TypedCoffeeScript | 5 | {
checkAcceptableObject,
ArrayType
} = require '../src/types'
suite 'Types', ->
suite '.checkAcceptableObject', ->
test 'string <> string', ->
checkAcceptableObject 'Number', 'Number'
test 'Any <> string', ->
checkAcceptableObject 'Any', 'String'
test 'String <> Possibities[String...]'... | 40411 | {
checkAcceptableObject,
ArrayType
} = require '../src/types'
suite 'Types', ->
suite '.checkAcceptableObject', ->
test 'string <> string', ->
checkAcceptableObject 'Number', 'Number'
test 'Any <> string', ->
checkAcceptableObject 'Any', 'String'
test 'String <> Possibities[String...]'... | true | {
checkAcceptableObject,
ArrayType
} = require '../src/types'
suite 'Types', ->
suite '.checkAcceptableObject', ->
test 'string <> string', ->
checkAcceptableObject 'Number', 'Number'
test 'Any <> string', ->
checkAcceptableObject 'Any', 'String'
test 'String <> Possibities[String...]'... |
[
{
"context": "# @author Gianluigi Mango\n# Query User Collection\nUser = require './../../m",
"end": 25,
"score": 0.9998784065246582,
"start": 10,
"tag": "NAME",
"value": "Gianluigi Mango"
},
{
"context": "ser = new User\n\t\t\tuserid: data[0][1],\n\t\t\tpassword: data[1][1],\n\t\t\t... | dev/server/api/model/userModel.coffee | knickatheart/mean-api | 0 | # @author Gianluigi Mango
# Query User Collection
User = require './../../models/userModel'
Image = require './../../models/imageModel'
Post = require './../../models/postModel'
module.exports = class UserModel
# Find one user in collection
# @params user[String], cb[Function]
# @return callback
findUser: (user, ... | 215940 | # @author <NAME>
# Query User Collection
User = require './../../models/userModel'
Image = require './../../models/imageModel'
Post = require './../../models/postModel'
module.exports = class UserModel
# Find one user in collection
# @params user[String], cb[Function]
# @return callback
findUser: (user, cb) ->
... | true | # @author PI:NAME:<NAME>END_PI
# Query User Collection
User = require './../../models/userModel'
Image = require './../../models/imageModel'
Post = require './../../models/postModel'
module.exports = class UserModel
# Find one user in collection
# @params user[String], cb[Function]
# @return callback
findUser: (u... |
[
{
"context": "backup under 'encrypted_key' \n encrypted_key = \"37fd6a251d262ec4c25343016a024a3aec543b7a43a208bf66bc80640dff\" + \"8ac8d52ae4ad7500d067c90f26189f9ee6050a13c087d430d2",
"end": 284,
"score": 0.9877341985702515,
"start": 219,
"tag": "KEY",
"value": "37fd6a251d262ec4c25343016a0... | programs/web_wallet/test/crypto/test/CryptoFunctions.coffee | larkx/LarkX | 0 | CryptoJS = require("crypto-js")
assert = require("assert")
###*
@see https://code.google.com/p/crypto-js/#The_Cipher_Input
###
describe "Crypto", ->
# wallet.json backup under 'encrypted_key'
encrypted_key = "37fd6a251d262ec4c25343016a024a3aec543b7a43a208bf66bc80640dff" + "8ac8d52ae4ad7500d067c90f26189f9ee605... | 4056 | CryptoJS = require("crypto-js")
assert = require("assert")
###*
@see https://code.google.com/p/crypto-js/#The_Cipher_Input
###
describe "Crypto", ->
# wallet.json backup under 'encrypted_key'
encrypted_key = "<KEY> <KEY> + "<KEY>"
# echo -n Password01|sha512|xxd -p
#password
#initalization vector
p... | true | CryptoJS = require("crypto-js")
assert = require("assert")
###*
@see https://code.google.com/p/crypto-js/#The_Cipher_Input
###
describe "Crypto", ->
# wallet.json backup under 'encrypted_key'
encrypted_key = "PI:KEY:<KEY>END_PI PI:KEY:<KEY>END_PI + "PI:KEY:<KEY>END_PI"
# echo -n Password01|sha512|xxd -p
... |
[
{
"context": " = class Student extends Person\n constructor: (firstName, lastName, age, grade) ->\n super\n\n ",
"end": 67,
"score": 0.9993539452552795,
"start": 58,
"tag": "NAME",
"value": "firstName"
},
{
"context": "tudent extends Person\n constructor: (firstNa... | WebDesign/5.JavaScriptApplications/2.AdvancedOOP/1.SchoolRepository/scripts/Student.coffee | trinityimma/TelerikAcademy | 0 | @Student = class Student extends Person
constructor: (firstName, lastName, age, grade) ->
super
@grade = grade
| 170362 | @Student = class Student extends Person
constructor: (<NAME>, <NAME>, age, grade) ->
super
@grade = grade
| true | @Student = class Student extends Person
constructor: (PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, age, grade) ->
super
@grade = grade
|
[
{
"context": " = new Klass\n id: idA\n name: nameA\n attr: _attr\n\n expect(k.id).",
"end": 2656,
"score": 0.7838494181632996,
"start": 2652,
"tag": "NAME",
"value": "name"
}
] | test/registry/RegistryItem.coffee | marc-ed-raffalli/EventService | 2 | # global require
'use strict'
RegistryItem = require '../../src/registry/RegistryItem.js'
idA = 1
channelA = 'channelA'
nameA = 'nameA'
nameB = 'nameB'
registryItemTestRunner = ->
# ------------------------------------------------------
describe 'RegistryItem', ->
# ----------------------------------------
... | 61619 | # global require
'use strict'
RegistryItem = require '../../src/registry/RegistryItem.js'
idA = 1
channelA = 'channelA'
nameA = 'nameA'
nameB = 'nameB'
registryItemTestRunner = ->
# ------------------------------------------------------
describe 'RegistryItem', ->
# ----------------------------------------
... | true | # global require
'use strict'
RegistryItem = require '../../src/registry/RegistryItem.js'
idA = 1
channelA = 'channelA'
nameA = 'nameA'
nameB = 'nameB'
registryItemTestRunner = ->
# ------------------------------------------------------
describe 'RegistryItem', ->
# ----------------------------------------
... |
[
{
"context": "onship?\"}\n\t\t11: {active: 1, play: 1, text:\"What is Batman's guilty pleasure?\"}\n\t\t12: {active: 1, play: 1, t",
"end": 1033,
"score": 0.9778544306755066,
"start": 1027,
"tag": "NAME",
"value": "Batman"
},
{
"context": "iend?\"}\n\t\t13: {active: 1, play: 1, text:... | black.common.coffee | dolor/happeningAgainstHumanity | 2 | exports.numcards = !->
return Object.keys(exports.cards()).length
exports.getCard = (id) !->
return exports.cards()[id]
# New cards should be added/uncommented *after* the last uncommented card. That way, the
# plugin will automatically add the new cards to existing games.
exports.cards = !->
return {
1: {active... | 1748 | exports.numcards = !->
return Object.keys(exports.cards()).length
exports.getCard = (id) !->
return exports.cards()[id]
# New cards should be added/uncommented *after* the last uncommented card. That way, the
# plugin will automatically add the new cards to existing games.
exports.cards = !->
return {
1: {active... | true | exports.numcards = !->
return Object.keys(exports.cards()).length
exports.getCard = (id) !->
return exports.cards()[id]
# New cards should be added/uncommented *after* the last uncommented card. That way, the
# plugin will automatically add the new cards to existing games.
exports.cards = !->
return {
1: {active... |
[
{
"context": "xec()\n\n user = new User(\n email : \"user@user.com\"\n firstName: \"Full Name\"\n lastName ",
"end": 461,
"score": 0.9999165534973145,
"start": 448,
"tag": "EMAIL",
"value": "user@user.com"
},
{
"context": " email : \"user@user.com\"\... | test/deal/model.coffee | gertu/gertu | 1 | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
Deal = mongoose.model "Deal"
User = mongoose.model "User"
Shop = mongoose.model "Shop"
deal = undefined
user = undefined
shop = undefined
describe "<Unit test>", ->
describe "Model Deal:", ->
before (done) ... | 41367 | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
Deal = mongoose.model "Deal"
User = mongoose.model "User"
Shop = mongoose.model "Shop"
deal = undefined
user = undefined
shop = undefined
describe "<Unit test>", ->
describe "Model Deal:", ->
before (done) ... | true | should = require "should"
app = require "../../server"
mongoose = require "mongoose"
Deal = mongoose.model "Deal"
User = mongoose.model "User"
Shop = mongoose.model "Shop"
deal = undefined
user = undefined
shop = undefined
describe "<Unit test>", ->
describe "Model Deal:", ->
before (done) ... |
[
{
"context": "nfig = defaults global.config, conf, \n key: 'config'\n exchange: 'poloniex'\n simulation: tru",
"end": 19406,
"score": 0.6964372992515564,
"start": 19400,
"tag": "KEY",
"value": "config"
}
] | lab.coffee | invisible-college/meth | 7 | fs = require 'fs'
progress_bar = require('progress')
mathjs = require 'mathjs'
require './shared'
history = require './trade_history'
exchange = require './exchange'
global.pusher = require './pusher'
crunch = require './crunch'
global.position_status = {}
#########################
# Main event loop
simulate = ... | 173461 | fs = require 'fs'
progress_bar = require('progress')
mathjs = require 'mathjs'
require './shared'
history = require './trade_history'
exchange = require './exchange'
global.pusher = require './pusher'
crunch = require './crunch'
global.position_status = {}
#########################
# Main event loop
simulate = ... | true | fs = require 'fs'
progress_bar = require('progress')
mathjs = require 'mathjs'
require './shared'
history = require './trade_history'
exchange = require './exchange'
global.pusher = require './pusher'
crunch = require './crunch'
global.position_status = {}
#########################
# Main event loop
simulate = ... |
[
{
"context": "profile_name)\n gcc_index = id if key is 'gcc_clang'\n @profile[0].selectedIndex = gcc_index\n\n ",
"end": 1781,
"score": 0.9783603549003601,
"start": 1772,
"tag": "KEY",
"value": "gcc_clang"
}
] | lib/stream-modifiers/profile.coffee | fstiewitz/build-tools-cpp | 3 | {$, $$, TextEditorView, View} = require 'atom-space-pen-views'
Profiles = require '../profiles/profiles'
module.exports =
name: 'Highlighting Profile'
info:
class ProfileInfoPane
constructor: (command, config) ->
@element = document.createElement 'div'
@element.classList.add 'module'
... | 96223 | {$, $$, TextEditorView, View} = require 'atom-space-pen-views'
Profiles = require '../profiles/profiles'
module.exports =
name: 'Highlighting Profile'
info:
class ProfileInfoPane
constructor: (command, config) ->
@element = document.createElement 'div'
@element.classList.add 'module'
... | true | {$, $$, TextEditorView, View} = require 'atom-space-pen-views'
Profiles = require '../profiles/profiles'
module.exports =
name: 'Highlighting Profile'
info:
class ProfileInfoPane
constructor: (command, config) ->
@element = document.createElement 'div'
@element.classList.add 'module'
... |
[
{
"context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http://o",
"end": 67,
"score": 0.9448230266571045,
"start": 62,
"tag": "NAME",
"value": "Hatio"
}
] | src/Module.coffee | heartyoh/infopik | 0 | # ==========================================
# Copyright 2014 Hatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
# Ref. http://arcturo.github.io/library/coffeescript/03_classes.html
define [
], (
) ->
moduleKeywords = ['extended', 'inclu... | 5932 | # ==========================================
# Copyright 2014 <NAME>, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
# Ref. http://arcturo.github.io/library/coffeescript/03_classes.html
define [
], (
) ->
moduleKeywords = ['extended', 'incl... | true | # ==========================================
# Copyright 2014 PI:NAME:<NAME>END_PI, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
# Ref. http://arcturo.github.io/library/coffeescript/03_classes.html
define [
], (
) ->
moduleKeywords = ['ex... |
[
{
"context": "ceholderText: 'Put where statement here (Name = \\'Blah\\')')\n @div class: 'row sfdc-row-marg-5', =",
"end": 1095,
"score": 0.9996695518493652,
"start": 1091,
"tag": "NAME",
"value": "Blah"
}
] | lib/interactive-query-view.coffee | haggy/Proton-IDE | 3 | {View, EditorView} = require 'atom'
InteractiveQueryController = require './sfdc_core/interactive-query-controller'
module.exports =
class InteractiveQueryView extends View
@content: ->
@div id: 'sfdc-interactive-query', class: 'overlay sfdc-overlay', =>
@div class: 'sfdc-error-message'
@div class: ... | 7831 | {View, EditorView} = require 'atom'
InteractiveQueryController = require './sfdc_core/interactive-query-controller'
module.exports =
class InteractiveQueryView extends View
@content: ->
@div id: 'sfdc-interactive-query', class: 'overlay sfdc-overlay', =>
@div class: 'sfdc-error-message'
@div class: ... | true | {View, EditorView} = require 'atom'
InteractiveQueryController = require './sfdc_core/interactive-query-controller'
module.exports =
class InteractiveQueryView extends View
@content: ->
@div id: 'sfdc-interactive-query', class: 'overlay sfdc-overlay', =>
@div class: 'sfdc-error-message'
@div class: ... |
[
{
"context": "\n {\n id: 1\n name: \"brian\"\n },{\n id: 2\n name",
"end": 1386,
"score": 0.9994816184043884,
"start": 1381,
"tag": "NAME",
"value": "brian"
},
{
"context": " },{\n id: 2\n nam... | packages/server/test/unit/files_spec.coffee | nothingismagick/cypress | 2 | require("../spec_helper")
config = require("#{root}lib/config")
files = require("#{root}lib/files")
FixturesHelper = require("#{root}/test/support/helpers/fixtures")
filesController = require("#{root}lib/controllers/files")
describe "lib/files", ->
beforeEach ->
FixturesHelper.scaffold()
@... | 110747 | require("../spec_helper")
config = require("#{root}lib/config")
files = require("#{root}lib/files")
FixturesHelper = require("#{root}/test/support/helpers/fixtures")
filesController = require("#{root}lib/controllers/files")
describe "lib/files", ->
beforeEach ->
FixturesHelper.scaffold()
@... | true | require("../spec_helper")
config = require("#{root}lib/config")
files = require("#{root}lib/files")
FixturesHelper = require("#{root}/test/support/helpers/fixtures")
filesController = require("#{root}lib/controllers/files")
describe "lib/files", ->
beforeEach ->
FixturesHelper.scaffold()
@... |
[
{
"context": "###################################\n#\n# Created by Markus\n#\n###############################################",
"end": 77,
"score": 0.9986821413040161,
"start": 71,
"tag": "NAME",
"value": "Markus"
}
] | server/logic/admissions.coffee | MooqitaSFH/worklearn | 0 | #######################################################
#
# Created by Markus
#
#######################################################
#######################################################
@gen_admissions = (collection_name, item_id, admissions) ->
if not collection_name
throw new Meteor.Error "collection_name n... | 58162 | #######################################################
#
# Created by <NAME>
#
#######################################################
#######################################################
@gen_admissions = (collection_name, item_id, admissions) ->
if not collection_name
throw new Meteor.Error "collection_name n... | true | #######################################################
#
# Created by PI:NAME:<NAME>END_PI
#
#######################################################
#######################################################
@gen_admissions = (collection_name, item_id, admissions) ->
if not collection_name
throw new Meteor.Error "col... |
[
{
"context": "google.com'), -1\n\t\t\tdone()\n\n\tit 'should work with 50.116.8.109', (done) ->\n\t\twhois.lookup '50.116.8.109', (err, ",
"end": 336,
"score": 0.9997665882110596,
"start": 324,
"tag": "IP_ADDRESS",
"value": "50.116.8.109"
},
{
"context": "ork with 50.116.8.109', (don... | test.coffee | davidbodnar/node-whois | 0 | _ = require 'underscore'
assert = require 'assert'
whois = require './index'
describe '#lookup()', ->
it 'should work with google.com', (done) ->
whois.lookup 'google.com', (err, data) ->
assert.ifError err
assert.notEqual data.toLowerCase().indexOf('domain name: google.com'), -1
done()
it 'should work w... | 1209 | _ = require 'underscore'
assert = require 'assert'
whois = require './index'
describe '#lookup()', ->
it 'should work with google.com', (done) ->
whois.lookup 'google.com', (err, data) ->
assert.ifError err
assert.notEqual data.toLowerCase().indexOf('domain name: google.com'), -1
done()
it 'should work w... | true | _ = require 'underscore'
assert = require 'assert'
whois = require './index'
describe '#lookup()', ->
it 'should work with google.com', (done) ->
whois.lookup 'google.com', (err, data) ->
assert.ifError err
assert.notEqual data.toLowerCase().indexOf('domain name: google.com'), -1
done()
it 'should work w... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999096989631653,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/profile-page/medals.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { AchievementBadge } from './achievement-badge'
import { ExtraHeader } from './extra-header'
import * as React from 'react'
import { div, ... | 153784 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { AchievementBadge } from './achievement-badge'
import { ExtraHeader } from './extra-header'
import * as React from 'react'
import { div, h2, h3 ... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { AchievementBadge } from './achievement-badge'
import { ExtraHeader } from './extra-header'
import * as React from 'react'
import... |
[
{
"context": "\n date = new Date\n FakeModel.create({name: 'hello', email: 'hello@xx.xx', date: date, isGood: true}",
"end": 1322,
"score": 0.763842761516571,
"start": 1317,
"tag": "NAME",
"value": "hello"
},
{
"context": "Date\n FakeModel.create({name: 'hello', email: 'hell... | spec/model-base-spec.coffee | xmail-client/node-sqlite-orm | 0 | ModelBaseMixin = require '../lib/model-base'
Mapper = require '../lib/mapper'
Migration = require '../lib/migration'
path = require 'path'
Q = require 'q'
sinon = require 'sinon'
class MapperRunner
start: (done) ->
@mapper = new Mapper path.resolve(__dirname, 'temp/test.db')
@mapper.sync().then -> done()
... | 84574 | ModelBaseMixin = require '../lib/model-base'
Mapper = require '../lib/mapper'
Migration = require '../lib/migration'
path = require 'path'
Q = require 'q'
sinon = require 'sinon'
class MapperRunner
start: (done) ->
@mapper = new Mapper path.resolve(__dirname, 'temp/test.db')
@mapper.sync().then -> done()
... | true | ModelBaseMixin = require '../lib/model-base'
Mapper = require '../lib/mapper'
Migration = require '../lib/migration'
path = require 'path'
Q = require 'q'
sinon = require 'sinon'
class MapperRunner
start: (done) ->
@mapper = new Mapper path.resolve(__dirname, 'temp/test.db')
@mapper.sync().then -> done()
... |
[
{
"context": "###\n * RegistryFormatter\n * http://github.com/ingorichter/BracketsExtensionTweetBot\n *\n * Copyright (c) 201",
"end": 57,
"score": 0.9996060729026794,
"start": 46,
"tag": "USERNAME",
"value": "ingorichter"
},
{
"context": "BracketsExtensionTweetBot\n *\n * Copyright ... | src/RegistryFormatter.coffee | ingorichter/BracketsExtensionTweetBot | 0 | ###
* RegistryFormatter
* http://github.com/ingorichter/BracketsExtensionTweetBot
*
* Copyright (c) 2014 Ingo Richter
* Licensed under the MIT license.
###
# jslint vars: true, plusplus: true, devel: true, node: true, nomen: true, indent: 4, maxerr: 50
'use strict'
Formatter = require './Formatter'
registryUtils... | 14510 | ###
* RegistryFormatter
* http://github.com/ingorichter/BracketsExtensionTweetBot
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
###
# jslint vars: true, plusplus: true, devel: true, node: true, nomen: true, indent: 4, maxerr: 50
'use strict'
Formatter = require './Formatter'
registryUtils = sou... | true | ###
* RegistryFormatter
* http://github.com/ingorichter/BracketsExtensionTweetBot
*
* Copyright (c) 2014 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
# jslint vars: true, plusplus: true, devel: true, node: true, nomen: true, indent: 4, maxerr: 50
'use strict'
Formatter = require './Formatter'
regis... |
[
{
"context": "09Z\"\n list: [1, 2, 3]\n person:\n name: \"Alexander Schilling\"\n job: \"Developer\"\n complex: [\n {nam",
"end": 492,
"score": 0.9998141527175903,
"start": 473,
"tag": "NAME",
"value": "Alexander Schilling"
},
{
"context": " job: \"Develope... | test/mocha/js.coffee | alinex/node-formatter | 0 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "JavaScript", ->
file = __dirname + '/../data/format.js'
format = 'js'
example = fs.readFileSync file, 'UTF8'
data... | 218374 | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "JavaScript", ->
file = __dirname + '/../data/format.js'
format = 'js'
example = fs.readFileSync file, 'UTF8'
data... | true | chai = require 'chai'
expect = chai.expect
### eslint-env node, mocha ###
fs = require 'fs'
debug = require('debug') 'test'
chalk = require 'chalk'
formatter = require '../../src/index'
describe "JavaScript", ->
file = __dirname + '/../data/format.js'
format = 'js'
example = fs.readFileSync file, 'UTF8'
data... |
[
{
"context": "###\njQuery Lighter\nCopyright 2015 Kevin Sylvestre\n1.3.4\n###\n\n\"use strict\"\n\n$ = jQuery\n\nclass Animat",
"end": 49,
"score": 0.9998558163642883,
"start": 34,
"tag": "NAME",
"value": "Kevin Sylvestre"
}
] | public/assets/lightbox/javascripts/jquery.lighter.coffee | roiiroyd/Museum_database | 33 | ###
jQuery Lighter
Copyright 2015 Kevin Sylvestre
1.3.4
###
"use strict"
$ = jQuery
class Animation
@transitions:
"webkitTransition": "webkitTransitionEnd"
"mozTransition": "mozTransitionEnd"
"oTransition": "oTransitionEnd"
"transition": "transitionend"
@transition: ($el) ->
for el in $el
... | 140235 | ###
jQuery Lighter
Copyright 2015 <NAME>
1.3.4
###
"use strict"
$ = jQuery
class Animation
@transitions:
"webkitTransition": "webkitTransitionEnd"
"mozTransition": "mozTransitionEnd"
"oTransition": "oTransitionEnd"
"transition": "transitionend"
@transition: ($el) ->
for el in $el
retu... | true | ###
jQuery Lighter
Copyright 2015 PI:NAME:<NAME>END_PI
1.3.4
###
"use strict"
$ = jQuery
class Animation
@transitions:
"webkitTransition": "webkitTransitionEnd"
"mozTransition": "mozTransitionEnd"
"oTransition": "oTransitionEnd"
"transition": "transitionend"
@transition: ($el) ->
for el in ... |
[
{
"context": "nable()\n\n toggleViolationMetadata: ->\n key = 'showViolationMetadata'\n currentValue = Config.get(key)\n Config.se",
"end": 1483,
"score": 0.9541182518005371,
"start": 1462,
"tag": "KEY",
"value": "showViolationMetadata"
}
] | lib/atom-lint.coffee | lee-dohm/atom-lint | 36 | # Minimize additional startup time of Atom caused by atom-lint.
LintView = null
LintStatusView = null
Config = null
_ = null
module.exports =
configDefaults:
ignoredNames: []
showViolationMetadata: true
activate: ->
atom.workspaceView.command 'lint:toggle', => @toggle()
atom.workspaceView.command ... | 95832 | # Minimize additional startup time of Atom caused by atom-lint.
LintView = null
LintStatusView = null
Config = null
_ = null
module.exports =
configDefaults:
ignoredNames: []
showViolationMetadata: true
activate: ->
atom.workspaceView.command 'lint:toggle', => @toggle()
atom.workspaceView.command ... | true | # Minimize additional startup time of Atom caused by atom-lint.
LintView = null
LintStatusView = null
Config = null
_ = null
module.exports =
configDefaults:
ignoredNames: []
showViolationMetadata: true
activate: ->
atom.workspaceView.command 'lint:toggle', => @toggle()
atom.workspaceView.command ... |
[
{
"context": "work: 'wifi'\n\t\twifiSsid: 'mywifissid'\n\t\twifiKey: 'mywifikey'\n\n\tinit.configure(images.raspberrypi, UUIDS.raspb",
"end": 2855,
"score": 0.9946384429931641,
"start": 2846,
"tag": "KEY",
"value": "mywifikey"
},
{
"context": "work: 'wifi'\n\t\twifiSsid: 'mywifissid'... | tests/e2e.coffee | everyside/resin-device-init | 0 | m = require('mochainon')
_ = require('lodash')
os = require('os')
path = require('path')
Promise = require('bluebird')
fs = Promise.promisifyAll(require('fs'))
wary = require('wary')
resin = require('resin-sdk')
imagefs = require('resin-image-fs')
init = require('../lib/init')
RASPBERRYPI = path.join(__dirname, 'image... | 97543 | m = require('mochainon')
_ = require('lodash')
os = require('os')
path = require('path')
Promise = require('bluebird')
fs = Promise.promisifyAll(require('fs'))
wary = require('wary')
resin = require('resin-sdk')
imagefs = require('resin-image-fs')
init = require('../lib/init')
RASPBERRYPI = path.join(__dirname, 'image... | true | m = require('mochainon')
_ = require('lodash')
os = require('os')
path = require('path')
Promise = require('bluebird')
fs = Promise.promisifyAll(require('fs'))
wary = require('wary')
resin = require('resin-sdk')
imagefs = require('resin-image-fs')
init = require('../lib/init')
RASPBERRYPI = path.join(__dirname, 'image... |
[
{
"context": "##\n * Federated Wiki : Node Server\n *\n * Copyright Ward Cunningham and other contributors\n * Licensed under the MIT ",
"end": 67,
"score": 0.9998734593391418,
"start": 52,
"tag": "NAME",
"value": "Ward Cunningham"
},
{
"context": "d under the MIT license.\n * https:... | node_modules/wiki-server/lib/security.coffee | jpietrok-pnnl/wiki | 0 | ###
* Federated Wiki : Node Server
*
* Copyright Ward Cunningham and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki-node-server/blob/master/LICENSE.txt
###
# **security.coffee**
# Module for default site security.
#
# This module is not intented for use, but is here to catch... | 73246 | ###
* Federated Wiki : Node Server
*
* Copyright <NAME> and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki-node-server/blob/master/LICENSE.txt
###
# **security.coffee**
# Module for default site security.
#
# This module is not intented for use, but is here to catch a proble... | true | ###
* Federated Wiki : Node Server
*
* Copyright PI:NAME:<NAME>END_PI and other contributors
* Licensed under the MIT license.
* https://github.com/fedwiki/wiki-node-server/blob/master/LICENSE.txt
###
# **security.coffee**
# Module for default site security.
#
# This module is not intented for use, but is here to ... |
[
{
"context": "ionMixin]\n\n bindings:\n '#curr-password-in' : 'password_params.current_password'\n '#new-password-in' : 'password_params.new_pa",
"end": 281,
"score": 0.9451252222061157,
"start": 249,
"tag": "PASSWORD",
"value": "password_params.current_password"
},
{
"context... | app/assets/javascripts/core/apps/profile/password-view.coffee | houzelio/houzel | 2 | import ValidationMixin from 'mixins/validation'
import template from './templates/password.pug'
export default class extends Marionette.View
template: template
tagName: "div"
mixins: [ValidationMixin]
bindings:
'#curr-password-in' : 'password_params.current_password'
'#new-password-in' : 'password_pa... | 198377 | import ValidationMixin from 'mixins/validation'
import template from './templates/password.pug'
export default class extends Marionette.View
template: template
tagName: "div"
mixins: [ValidationMixin]
bindings:
'#curr-password-in' : '<PASSWORD>'
'#new-password-in' : '<PASSWORD>'
"#password-confr-... | true | import ValidationMixin from 'mixins/validation'
import template from './templates/password.pug'
export default class extends Marionette.View
template: template
tagName: "div"
mixins: [ValidationMixin]
bindings:
'#curr-password-in' : 'PI:PASSWORD:<PASSWORD>END_PI'
'#new-password-in' : 'PI:PASSWORD:<PA... |
[
{
"context": " [\n {\n id: 1\n name: 'Some Account'\n balance: 10.00\n updated_at: '",
"end": 180,
"score": 0.9873279333114624,
"start": 168,
"tag": "NAME",
"value": "Some Account"
},
{
"context": " }\n {\n id: 2\n ... | spec/javascripts/dot_ledger/views/accounts/list_spec.js.coffee | timobleeker/dotledger | 0 | describe "DotLedger.Views.Accounts.List", ->
createView = ->
collection = new DotLedger.Collections.Accounts(
[
{
id: 1
name: 'Some Account'
balance: 10.00
updated_at: '2013-01-01T01:00:00Z'
unsorted_transaction_count: 0
}
{
... | 8189 | describe "DotLedger.Views.Accounts.List", ->
createView = ->
collection = new DotLedger.Collections.Accounts(
[
{
id: 1
name: '<NAME>'
balance: 10.00
updated_at: '2013-01-01T01:00:00Z'
unsorted_transaction_count: 0
}
{
id: ... | true | describe "DotLedger.Views.Accounts.List", ->
createView = ->
collection = new DotLedger.Collections.Accounts(
[
{
id: 1
name: 'PI:NAME:<NAME>END_PI'
balance: 10.00
updated_at: '2013-01-01T01:00:00Z'
unsorted_transaction_count: 0
}
{
... |
[
{
"context": ":\r\n selector: \"H1\"\r\n expectedText: \"Herman Melville - Moby-Dick\"\r\n @search =\r\n url: \"http://w",
"end": 163,
"score": 0.999843180179596,
"start": 148,
"tag": "NAME",
"value": "Herman Melville"
},
{
"context": "or: \"H1\"\r\n expe... | test/system.coffee | ToJans/story | 1 | class System
constructor: ->
@html =
url: "http://httpbin.org/html"
heading:
selector: "H1"
expectedText: "Herman Melville - Moby-Dick"
@search =
url: "http://www.google.com"
data:
q: "core bvba"
@searchResults =
titles:
selector... | 120481 | class System
constructor: ->
@html =
url: "http://httpbin.org/html"
heading:
selector: "H1"
expectedText: "<NAME> - <NAME>"
@search =
url: "http://www.google.com"
data:
q: "core bvba"
@searchResults =
titles:
selector: "h3"
... | true | class System
constructor: ->
@html =
url: "http://httpbin.org/html"
heading:
selector: "H1"
expectedText: "PI:NAME:<NAME>END_PI - PI:NAME:<NAME>END_PI"
@search =
url: "http://www.google.com"
data:
q: "core bvba"
@searchResults =
titles:
... |
[
{
"context": " Authorization: 'OAuth realm=\"\",' + (\"#{key}=\\\"#{utils.special_encode(val)}\\\"\" for key, val of head",
"end": 5979,
"score": 0.7422197461128235,
"start": 5977,
"tag": "KEY",
"value": "#{"
},
{
"context": " 'OAuth realm=\"\",' + (\"#{key}=\\\"#{utils.spec... | src/extensions/outcomes.coffee | Brightspace/ims-lti | 1 | crypto = require 'crypto'
http = require 'http'
https = require 'https'
url = require 'url'
uuid = require 'node-uuid'
xml2js = require 'xml2js'
xml_builder = require 'xmlbuilder'
errors = require '../errors'
HMAC_SHA1 = require '../hmac-sha1'
utils = requ... | 125489 | crypto = require 'crypto'
http = require 'http'
https = require 'https'
url = require 'url'
uuid = require 'node-uuid'
xml2js = require 'xml2js'
xml_builder = require 'xmlbuilder'
errors = require '../errors'
HMAC_SHA1 = require '../hmac-sha1'
utils = requ... | true | crypto = require 'crypto'
http = require 'http'
https = require 'https'
url = require 'url'
uuid = require 'node-uuid'
xml2js = require 'xml2js'
xml_builder = require 'xmlbuilder'
errors = require '../errors'
HMAC_SHA1 = require '../hmac-sha1'
utils = requ... |
[
{
"context": "ame = 'test1'\n @credsUrl = 'http://admin:athena@127.0.0.1:5984' # Admin host to couchdb\n @couc",
"end": 419,
"score": 0.7599099278450012,
"start": 413,
"tag": "USERNAME",
"value": "athena"
},
{
"context": " = 'test1'\n @credsUrl = 'http://admin:athena... | src/data/store/Manager.coffee | axiom6/aug | 0 |
import Memory from '../../../lib/pub/data/Memory.js'
import Local from '../../../lib/pub/data/Local.js'
import Index from '../../../lib/pub/data/Index.js'
import Fire from '../../../lib/pub/data/Fire.js'
#mport Couch from '../../../lib/pub/data/Couch.js'
#mport Mongo from '../../../lib/pub/data/Mongo.js'
class ... | 216930 |
import Memory from '../../../lib/pub/data/Memory.js'
import Local from '../../../lib/pub/data/Local.js'
import Index from '../../../lib/pub/data/Index.js'
import Fire from '../../../lib/pub/data/Fire.js'
#mport Couch from '../../../lib/pub/data/Couch.js'
#mport Mongo from '../../../lib/pub/data/Mongo.js'
class ... | true |
import Memory from '../../../lib/pub/data/Memory.js'
import Local from '../../../lib/pub/data/Local.js'
import Index from '../../../lib/pub/data/Index.js'
import Fire from '../../../lib/pub/data/Fire.js'
#mport Couch from '../../../lib/pub/data/Couch.js'
#mport Mongo from '../../../lib/pub/data/Mongo.js'
class ... |
[
{
"context": "obal-ignore-lastIndex\", stringSample2, re, [\n \"Argle\"\n \"bargle\"\n \"glop\"\n \"glyf\"\n], [], 18, 22\n\n# Ca",
"end": 4266,
"score": 0.5690932869911194,
"start": 4263,
"tag": "NAME",
"value": "gle"
}
] | deps/v8/test/mjsunit/string-match.coffee | lxe/io.coffee | 0 | # Copyright 2009 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 113787 | # Copyright 2009 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | true | # Copyright 2009 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... |
[
{
"context": "# Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>\n#\n# Permission is here",
"end": 37,
"score": 0.9998602867126465,
"start": 24,
"tag": "NAME",
"value": "Florian Mayer"
},
{
"context": "# Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>\n#\... | utils/utils.coffee | segfaulthunter/life | 2 | # Copyright (C) 2011 by Florian Mayer <florian.mayer@bitsrc.org>
#
# 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,... | 152354 | # Copyright (C) 2011 by <NAME> <<EMAIL>>
#
# 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, publish,... | true | # Copyright (C) 2011 by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>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, ... |
[
{
"context": " <input type=\"text\" name=\"user[name]\" value=\"John Doe\" />\n <input type=\"text\" name=\"user[email]\"",
"end": 254,
"score": 0.999815821647644,
"start": 246,
"tag": "NAME",
"value": "John Doe"
},
{
"context": " <input type=\"text\" name=\"user[emai... | specs/test/serializer_spec.coffee | avarest/jquery.form.serializer | 1 |
describe '$._jQueryFormSerializer.Serializer', ->
beforeEach ->
@sandbox = sinon.sandbox.create()
@$form = $ """
<form>
<input type="hidden" name="token" value="ABC" />
<input type="text" name="user[name]" value="John Doe" />
<input type="text" name="user[email]" value="john@ema... | 92474 |
describe '$._jQueryFormSerializer.Serializer', ->
beforeEach ->
@sandbox = sinon.sandbox.create()
@$form = $ """
<form>
<input type="hidden" name="token" value="ABC" />
<input type="text" name="user[name]" value="<NAME>" />
<input type="text" name="user[email]" value="<EMAIL>" /... | true |
describe '$._jQueryFormSerializer.Serializer', ->
beforeEach ->
@sandbox = sinon.sandbox.create()
@$form = $ """
<form>
<input type="hidden" name="token" value="ABC" />
<input type="text" name="user[name]" value="PI:NAME:<NAME>END_PI" />
<input type="text" name="user[email]" val... |
[
{
"context": "an Garden', address: 'Västgötagatan 18',\n\t\tdesc: 'Rezaul Karim, founder and owner of Indian Garden. Born in Bang",
"end": 121,
"score": 0.9970265626907349,
"start": 109,
"tag": "NAME",
"value": "Rezaul Karim"
},
{
"context": "e his mother in the kitchen.'\n\t,\n\t\t\... | examples/restaurant-reviewer/src/base/mockState.coffee | Cottin/oublie | 0 | module.exports =
restaurantsSorted: [
id: 5, name: 'Indian Garden', address: 'Västgötagatan 18',
desc: 'Rezaul Karim, founder and owner of Indian Garden. Born in Bangladesh in 1975 and came to Sweden 19 years old. Even as a child in Bangladesh, he showed a great interest in cooking and spent much time alongside hi... | 193342 | module.exports =
restaurantsSorted: [
id: 5, name: 'Indian Garden', address: 'Västgötagatan 18',
desc: '<NAME>, founder and owner of Indian Garden. Born in Bangladesh in 1975 and came to Sweden 19 years old. Even as a child in Bangladesh, he showed a great interest in cooking and spent much time alongside his moth... | true | module.exports =
restaurantsSorted: [
id: 5, name: 'Indian Garden', address: 'Västgötagatan 18',
desc: 'PI:NAME:<NAME>END_PI, founder and owner of Indian Garden. Born in Bangladesh in 1975 and came to Sweden 19 years old. Even as a child in Bangladesh, he showed a great interest in cooking and spent much time alon... |
[
{
"context": "e': 'registered',\n 'profile': {\n 'nickname': 'fatihacet',\n 'hash': '8afa54efe3a35ba0e9d7142843727154',",
"end": 386,
"score": 0.999421238899231,
"start": 377,
"tag": "USERNAME",
"value": "fatihacet"
},
{
"context": "a54efe3a35ba0e9d7142843727154',\n 'firstN... | client/mocks/mock.jaccount.coffee | ezgikaysi/koding | 1 | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JAccount',
'instanceId': '63eaf04482cd89149ef98ed76e033aaf'
},
'socialApiId': '5',
'systemInfo': {
'defaultToLastUsedEnvironment': true
},
'counts': {
'followers': 0,
'following': 0,
'topics': 0,
'likes': 0
},... | 58216 | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JAccount',
'instanceId': '63eaf04482cd89149ef98ed76e033aaf'
},
'socialApiId': '5',
'systemInfo': {
'defaultToLastUsedEnvironment': true
},
'counts': {
'followers': 0,
'following': 0,
'topics': 0,
'likes': 0
},... | true | module.exports = {
'watchers': {},
'bongo_': {
'constructorName': 'JAccount',
'instanceId': '63eaf04482cd89149ef98ed76e033aaf'
},
'socialApiId': '5',
'systemInfo': {
'defaultToLastUsedEnvironment': true
},
'counts': {
'followers': 0,
'following': 0,
'topics': 0,
'likes': 0
},... |
[
{
"context": "# Copyright Vladimir Andreev\n\n# Required modules\n\nHTTP = require('http')\nHTTPS",
"end": 28,
"score": 0.9998764395713806,
"start": 12,
"tag": "NAME",
"value": "Vladimir Andreev"
},
{
"context": "l)\n\n\t\tfullInput.answer = 'json'\n\t\tfullInput.user = @_userName\n\... | src/client.coffee | tucan/smsaero | 0 | # Copyright Vladimir Andreev
# Required modules
HTTP = require('http')
HTTPS = require('https')
Crypto = require('crypto')
Iconv = require('iconv-lite')
QS = require('qs')
# SMSAero client
class Client
# Connection default parameters
SERVER_PROTO = 'http'
SERVER_NAME = 'gate.smsaero.ru'
SERVER_PLAIN_PORT = ... | 27598 | # Copyright <NAME>
# Required modules
HTTP = require('http')
HTTPS = require('https')
Crypto = require('crypto')
Iconv = require('iconv-lite')
QS = require('qs')
# SMSAero client
class Client
# Connection default parameters
SERVER_PROTO = 'http'
SERVER_NAME = 'gate.smsaero.ru'
SERVER_PLAIN_PORT = 80
SERVER... | true | # Copyright PI:NAME:<NAME>END_PI
# Required modules
HTTP = require('http')
HTTPS = require('https')
Crypto = require('crypto')
Iconv = require('iconv-lite')
QS = require('qs')
# SMSAero client
class Client
# Connection default parameters
SERVER_PROTO = 'http'
SERVER_NAME = 'gate.smsaero.ru'
SERVER_PLAIN_POR... |
[
{
"context": "html.md](http://neocotic.com/html.md) \n# (c) 2013 Alasdair Mercer \n# Freely distributable under the MIT license. ",
"end": 69,
"score": 0.999872624874115,
"start": 54,
"tag": "NAME",
"value": "Alasdair Mercer"
},
{
"context": " \n# Based on [Make.text](http://home... | src/md.coffee | Stormtv/html.md | 1 | # [html.md](http://neocotic.com/html.md)
# (c) 2013 Alasdair Mercer
# Freely distributable under the MIT license.
# Based on [Make.text](http://homepage.mac.com/tjim/) 1.5
# (c) 2007 Trevor Jim
# For all details and documentation:
# <http://neocotic.com/html.md>
# Private constants
# -----------------
# D... | 135771 | # [html.md](http://neocotic.com/html.md)
# (c) 2013 <NAME>
# Freely distributable under the MIT license.
# Based on [Make.text](http://homepage.mac.com/tjim/) 1.5
# (c) 2007 <NAME>
# For all details and documentation:
# <http://neocotic.com/html.md>
# Private constants
# -----------------
# Default option... | true | # [html.md](http://neocotic.com/html.md)
# (c) 2013 PI:NAME:<NAME>END_PI
# Freely distributable under the MIT license.
# Based on [Make.text](http://homepage.mac.com/tjim/) 1.5
# (c) 2007 PI:NAME:<NAME>END_PI
# For all details and documentation:
# <http://neocotic.com/html.md>
# Private constants
# -------... |
[
{
"context": " extensions unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\nLovely = require('lovely')\n{Test, assert} = Lov",
"end": 82,
"score": 0.9998891353607178,
"start": 65,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/lang/test/string_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "String extensions", ->
describe "#empty()", ->
it "should return 'true' for an empty string", ->
assert.isTrue "".empty()
it "should ret... | 44812 | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "String extensions", ->
describe "#empty()", ->
it "should return 'true' for an empty string", ->
assert.isTrue "".empty()
it "should return 'false'... | true | #
# The string extensions unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
Lovely = require('lovely')
{Test, assert} = Lovely
eval(Test.build)
describe "String extensions", ->
describe "#empty()", ->
it "should return 'true' for an empty string", ->
assert.isTrue "".empty()
it "should ... |
[
{
"context": "#### Copyrights\n# (c) 2013 Eikichi Yamaguchi\n# kazitori.js may be freely distributed under the",
"end": 44,
"score": 0.9998761415481567,
"start": 27,
"tag": "NAME",
"value": "Eikichi Yamaguchi"
},
{
"context": ".hageee.net\n\n# inspired from::\n# (c) 2010-2012 Jer... | src/coffee/kazitori.coffee | glassesfactory/kazitori.js | 17 | #### Copyrights
# (c) 2013 Eikichi Yamaguchi
# kazitori.js may be freely distributed under the MIT license.
# http://dev.hageee.net
# inspired from::
# (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
# Backbone may be freely distributed under the MIT license.
# For all details and documentation:
# ht... | 162286 | #### Copyrights
# (c) 2013 <NAME>
# kazitori.js may be freely distributed under the MIT license.
# http://dev.hageee.net
# inspired from::
# (c) 2010-2012 <NAME>, DocumentCloud Inc.
# Backbone may be freely distributed under the MIT license.
# For all details and documentation:
# http://backbonejs.org
... | true | #### Copyrights
# (c) 2013 PI:NAME:<NAME>END_PI
# kazitori.js may be freely distributed under the MIT license.
# http://dev.hageee.net
# inspired from::
# (c) 2010-2012 PI:NAME:<NAME>END_PI, DocumentCloud Inc.
# Backbone may be freely distributed under the MIT license.
# For all details and documentation:
... |
[
{
"context": " long format', ->\n assert.equal geo.ip2long('87.229.134.24'), 1474659864\n assert.equal geo.ip2long('217",
"end": 292,
"score": 0.9997460246086121,
"start": 279,
"tag": "IP_ADDRESS",
"value": "87.229.134.24"
},
{
"context": ".24'), 1474659864\n assert.eq... | 01-geo-lookup/test/index.coffee | jatin-d/node-puzzle | 4 | assert = require 'assert'
geo = require '../lib'
octet = -> ~~(Math.random() * 254)
genip = -> "#{octet()}.#{octet()}.#{octet()}.#{octet()}"
describe 'geo', ->
describe 'ip2long()', ->
it 'IP should be converted to the long format', ->
assert.equal geo.ip2long('87.229.134.24'), 1474659864
assert.... | 90135 | assert = require 'assert'
geo = require '../lib'
octet = -> ~~(Math.random() * 254)
genip = -> "#{octet()}.#{octet()}.#{octet()}.#{octet()}"
describe 'geo', ->
describe 'ip2long()', ->
it 'IP should be converted to the long format', ->
assert.equal geo.ip2long('172.16.17.32'), 1474659864
assert.e... | true | assert = require 'assert'
geo = require '../lib'
octet = -> ~~(Math.random() * 254)
genip = -> "#{octet()}.#{octet()}.#{octet()}.#{octet()}"
describe 'geo', ->
describe 'ip2long()', ->
it 'IP should be converted to the long format', ->
assert.equal geo.ip2long('PI:IP_ADDRESS:172.16.17.32END_PI'), 14746... |
[
{
"context": "config_equal_keys: (addon) ->\n ignore_keys = ['id', 'guid', 'component', 'active']\n util.hash_keys(addon).filter (key) => not i",
"end": 2550,
"score": 0.9929439425468445,
"start": 2517,
"tag": "KEY",
"value": "id', 'guid', 'component', 'active"
}
] | src/thinkspace/client/thinkspace-common/addon/mixins/addons/config.coffee | sixthedge/cellar | 6 | import ember from 'ember'
import util from 'totem/util'
export default ember.Mixin.create
# Addon config options:
# id: hard-set guid for component
# component: hard-set to component
# class: hard-set by this service; addon should add to its highest lev... | 46975 | import ember from 'ember'
import util from 'totem/util'
export default ember.Mixin.create
# Addon config options:
# id: hard-set guid for component
# component: hard-set to component
# class: hard-set by this service; addon should add to its highest lev... | true | import ember from 'ember'
import util from 'totem/util'
export default ember.Mixin.create
# Addon config options:
# id: hard-set guid for component
# component: hard-set to component
# class: hard-set by this service; addon should add to its highest lev... |
[
{
"context": "elated的情况,因为相关项列表不需要支持tree\n\t\t\t\tdxOptions.keyExpr = \"_id\"\n\t\t\t\tdxOptions.parentIdExpr = \"parent\"\n\t\t\t\tdxOp",
"end": 20016,
"score": 0.803566038608551,
"start": 20014,
"tag": "KEY",
"value": "\"_"
},
{
"context": "ageSize: 1000\n\t\t\t\t# dxOptions.expand... | packages/steedos-creator/client/views/grid.coffee | steedos/creator | 42 | _itemClick = (e, curObjectName, list_view_id)->
self = this
record = e.data
if !record
return
if _.isObject(record._id)
record._id = record._id._value
record_permissions = Creator.getRecordPermissions curObjectName, record, Meteor.userId()
actions = _actionItems(curObjectName, record, record_permissions)
... | 216302 | _itemClick = (e, curObjectName, list_view_id)->
self = this
record = e.data
if !record
return
if _.isObject(record._id)
record._id = record._id._value
record_permissions = Creator.getRecordPermissions curObjectName, record, Meteor.userId()
actions = _actionItems(curObjectName, record, record_permissions)
... | true | _itemClick = (e, curObjectName, list_view_id)->
self = this
record = e.data
if !record
return
if _.isObject(record._id)
record._id = record._id._value
record_permissions = Creator.getRecordPermissions curObjectName, record, Meteor.userId()
actions = _actionItems(curObjectName, record, record_permissions)
... |
[
{
"context": "a'\n\n it 'get,set', (done)->\n key = 'session_key'.add_5_Random_Letters()\n session_data = { value: key, expire: new Date",
"end": 698,
"score": 0.9897887110710144,
"start": 663,
"tag": "KEY",
"value": "session_key'.add_5_Random_Letters()"
},
{
"contex... | test/services/Session-Service.test.coffee | TeamMentor/TM_Site | 0 | Session_Service = require('../../src/services/Session-Service')
session = require('express-session')
express = require 'express'
supertest = require 'supertest'
describe '| services | Session.test', ()->
testDb = './_session_TestDb'
session_Service = null
beforeEach ()->
sess... | 225078 | Session_Service = require('../../src/services/Session-Service')
session = require('express-session')
express = require 'express'
supertest = require 'supertest'
describe '| services | Session.test', ()->
testDb = './_session_TestDb'
session_Service = null
beforeEach ()->
sess... | true | Session_Service = require('../../src/services/Session-Service')
session = require('express-session')
express = require 'express'
supertest = require 'supertest'
describe '| services | Session.test', ()->
testDb = './_session_TestDb'
session_Service = null
beforeEach ()->
sess... |
[
{
"context": " process.env.HUBOT_HOME_ASSISTANT_API_PASSWORD='foobar'\n process.env.HUBOT_HOME_ASSISTANT_MONITOR_EVE",
"end": 549,
"score": 0.998827338218689,
"start": 543,
"tag": "PASSWORD",
"value": "foobar"
}
] | test/home-assistant_stream_test.coffee | pjmorr/hubot-home-assistant | 0 | Helper = require 'hubot-test-helper'
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper [
'../src/home-assistant-streaming.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Fri Jun 22 2018 17:14:09 GMT-0500 (C... | 119251 | Helper = require 'hubot-test-helper'
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper [
'../src/home-assistant-streaming.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Fri Jun 22 2018 17:14:09 GMT-0500 (C... | true | Helper = require 'hubot-test-helper'
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper [
'../src/home-assistant-streaming.coffee'
]
# Alter time as test runs
originalDateNow = Date.now
mockDateNow = () ->
return Date.parse('Fri Jun 22 2018 17:14:09 GMT-0500 (C... |
[
{
"context": "wn()\n\n beforeEach ->\n @partner = {\n id: \"soze-gallery\",\n name: \"Soze Gallery\",\n initials: \"SG",
"end": 670,
"score": 0.9512985944747925,
"start": 658,
"tag": "USERNAME",
"value": "soze-gallery"
},
{
"context": "artner = {\n id: \"soze-... | src/desktop/apps/galleries_institutions/components/partner_cell/test/view.test.coffee | jo-rs/force | 0 | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require '@artsy/antigravity'
Partner = require '../../../../../models/partner'
PartnerCellView = benv.requireWithJadeify require.resolve('../view'), ['template']
PartnerCellView.__set__ 'Cities', [{"slug": "new-york-ny-usa", "n... | 169728 | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require '@artsy/antigravity'
Partner = require '../../../../../models/partner'
PartnerCellView = benv.requireWithJadeify require.resolve('../view'), ['template']
PartnerCellView.__set__ 'Cities', [{"slug": "new-york-ny-usa", "n... | true | benv = require 'benv'
sinon = require 'sinon'
Backbone = require 'backbone'
{ fabricate } = require '@artsy/antigravity'
Partner = require '../../../../../models/partner'
PartnerCellView = benv.requireWithJadeify require.resolve('../view'), ['template']
PartnerCellView.__set__ 'Cities', [{"slug": "new-york-ny-usa", "n... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991774559020996,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/pummel/test-net-connect-econnrefused.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... | 124159 | # 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": "ttp://ralphcrisostomo.net\n *\n * Copyright (c) 2014 Ralph Crisostomo\n * Licensed under the MIT license.\n###\n\n'use stri",
"end": 101,
"score": 0.9998900294303894,
"start": 85,
"tag": "NAME",
"value": "Ralph Crisostomo"
},
{
"context": "\n \"coffee-script\": \"^... | root/template.coffee | ralphcrisostomo/grunt-init-grunt-init | 0 | ###
* grunt-init-{%= name %}
* http://ralphcrisostomo.net
*
* Copyright (c) 2014 Ralph Crisostomo
* Licensed under the MIT license.
###
'use strict'
# Basic template description.
exports.description = 'Create a Node.js module including Nodeunit unit tests.'
# Template-specific notes to be displayed before quest... | 125439 | ###
* grunt-init-{%= name %}
* http://ralphcrisostomo.net
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
###
'use strict'
# Basic template description.
exports.description = 'Create a Node.js module including Nodeunit unit tests.'
# Template-specific notes to be displayed before question prompt... | true | ###
* grunt-init-{%= name %}
* http://ralphcrisostomo.net
*
* Copyright (c) 2014 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
'use strict'
# Basic template description.
exports.description = 'Create a Node.js module including Nodeunit unit tests.'
# Template-specific notes to be displayed before q... |
[
{
"context": "ername\n return false unless user?.password is password\n\n ## response a access token\n token = @",
"end": 2069,
"score": 0.994118332862854,
"start": 2061,
"tag": "PASSWORD",
"value": "password"
}
] | example/mongo/mongo-provider.coffee | tungv/oauth2-provider | 2 | Provider = require 't-oauth2-provider'
mongoose = require 'mongoose'
fibrous = require 'fibrous'
require './model/grant.coffee'
require './model/access-token.coffee'
class MongoOAuthProvider extends Provider
constructor: (config) ->
@db =
user: mongoose.model 'user'
client: mongoose.model 'client'
... | 106348 | Provider = require 't-oauth2-provider'
mongoose = require 'mongoose'
fibrous = require 'fibrous'
require './model/grant.coffee'
require './model/access-token.coffee'
class MongoOAuthProvider extends Provider
constructor: (config) ->
@db =
user: mongoose.model 'user'
client: mongoose.model 'client'
... | true | Provider = require 't-oauth2-provider'
mongoose = require 'mongoose'
fibrous = require 'fibrous'
require './model/grant.coffee'
require './model/access-token.coffee'
class MongoOAuthProvider extends Provider
constructor: (config) ->
@db =
user: mongoose.model 'user'
client: mongoose.model 'client'
... |
[
{
"context": "Welcome:\n tabTitle: \"Selamat Datang\"\n subtitle:\n text1: \"Penyunting teks yang bol",
"end": 36,
"score": 0.9234474897384644,
"start": 22,
"tag": "NAME",
"value": "Selamat Datang"
},
{
"context": "eh digodam untuk\"\n superscript: \"\"\n text2: \" Abad Ke... | def/ms/welcome.cson | juggernautjp/atom-i18n-beta | 2 | Welcome:
tabTitle: "Selamat Datang"
subtitle:
text1: "Penyunting teks yang boleh digodam untuk"
superscript: ""
text2: " Abad Ke-21"
help:
forHelpVisit: "Untuk bantuan, layari"
atomDocs:
text1: ""
link: "Dokumen-dokumen Atom"
text2: " untuk Panduan Pengguna serta rujukan API.... | 206183 | Welcome:
tabTitle: "<NAME>"
subtitle:
text1: "Penyunting teks yang boleh digodam untuk"
superscript: ""
text2: " <NAME>"
help:
forHelpVisit: "Untuk bantuan, layari"
atomDocs:
text1: ""
link: "Dokumen-dokumen Atom"
text2: " untuk Panduan Pengguna serta rujukan API."
_tem... | true | Welcome:
tabTitle: "PI:NAME:<NAME>END_PI"
subtitle:
text1: "Penyunting teks yang boleh digodam untuk"
superscript: ""
text2: " PI:NAME:<NAME>END_PI"
help:
forHelpVisit: "Untuk bantuan, layari"
atomDocs:
text1: ""
link: "Dokumen-dokumen Atom"
text2: " untuk Panduan Pengguna se... |
[
{
"context": " or 3000\nio = require('socket.io') server\n\nKEY = 'tZWNpjTrjnM5rMh8xLpeM8X95'\nREQUEST_TIME = 30000\nmap_key = 'AIzaSyCEEF6lOjdG",
"end": 240,
"score": 0.9997001886367798,
"start": 215,
"tag": "KEY",
"value": "tZWNpjTrjnM5rMh8xLpeM8X95"
},
{
"context": "nM5rMh8xLpeM8X... | app.coffee | Jetmate/CTAMap | 0 | helmet = require 'helmet'
compression = require 'compression'
express = require 'express'
http = require 'http'
app = express()
server = app.listen process.env.PORT or 3000
io = require('socket.io') server
KEY = 'tZWNpjTrjnM5rMh8xLpeM8X95'
REQUEST_TIME = 30000
map_key = 'AIzaSyCEEF6lOjdGNiqMZYrQczJi0JpK7R0iZhs'
route... | 198996 | helmet = require 'helmet'
compression = require 'compression'
express = require 'express'
http = require 'http'
app = express()
server = app.listen process.env.PORT or 3000
io = require('socket.io') server
KEY = '<KEY>'
REQUEST_TIME = 30000
map_key = '<KEY>'
route = undefined
interval = undefined
app.use helmet()
ap... | true | helmet = require 'helmet'
compression = require 'compression'
express = require 'express'
http = require 'http'
app = express()
server = app.listen process.env.PORT or 3000
io = require('socket.io') server
KEY = 'PI:KEY:<KEY>END_PI'
REQUEST_TIME = 30000
map_key = 'PI:KEY:<KEY>END_PI'
route = undefined
interval = unde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.