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": ": ObjectId(\"ffffffffffffb00000000001\")\n name: \"Best Child\",\n hidden: 'Nice Surprise'\n },\n {\n ",
"end": 131,
"score": 0.7226483821868896,
"start": 127,
"tag": "NAME",
"value": "Best"
},
{
"context": " ObjectId(\"ffffffffffffb00000000002\"),\n name:... | test/integration/fixtures/basic/childresources.coffee | gigwell/nerm | 0 | ObjectId = require('mongoose').Types.ObjectId
module.exports = [
{
_id: ObjectId("ffffffffffffb00000000001")
name: "Best Child",
hidden: 'Nice Surprise'
},
{
_id: ObjectId("ffffffffffffb00000000002"),
name: "Worst Child",
hidden: 'Awful Secret'
}
]
| 71082 | ObjectId = require('mongoose').Types.ObjectId
module.exports = [
{
_id: ObjectId("ffffffffffffb00000000001")
name: "<NAME> Child",
hidden: 'Nice Surprise'
},
{
_id: ObjectId("ffffffffffffb00000000002"),
name: "<NAME> Child",
hidden: 'Awful Secret'
}
]
| true | ObjectId = require('mongoose').Types.ObjectId
module.exports = [
{
_id: ObjectId("ffffffffffffb00000000001")
name: "PI:NAME:<NAME>END_PI Child",
hidden: 'Nice Surprise'
},
{
_id: ObjectId("ffffffffffffb00000000002"),
name: "PI:NAME:<NAME>END_PI Child",
hidden: 'Awful Secret'
}
]
|
[
{
"context": "r\n credentials = { scheme: \"basic\", user: \"username\", password: \"wrong\" }\n browser.visit \"http",
"end": 874,
"score": 0.9592278599739075,
"start": 866,
"tag": "USERNAME",
"value": "username"
},
{
"context": "= { scheme: \"basic\", user: \"username... | libs/tester/node_modules/zombie/spec/authentication_spec.coffee | wudi/chico | 1 | { Vows, assert, brains, Browser } = require("./helpers")
Vows.describe("Authentication").addBatch
"basic":
topic: ->
brains.get "/auth/basic", (req, res) ->
if auth = req.headers.authorization
if auth == "Basic dXNlcm5hbWU6cGFzczEyMw=="
res.send "<html><body>#{req.headers["au... | 31805 | { Vows, assert, brains, Browser } = require("./helpers")
Vows.describe("Authentication").addBatch
"basic":
topic: ->
brains.get "/auth/basic", (req, res) ->
if auth = req.headers.authorization
if auth == "Basic dXNlcm5hbWU6cGFzczEyMw=="
res.send "<html><body>#{req.headers["au... | true | { Vows, assert, brains, Browser } = require("./helpers")
Vows.describe("Authentication").addBatch
"basic":
topic: ->
brains.get "/auth/basic", (req, res) ->
if auth = req.headers.authorization
if auth == "Basic dXNlcm5hbWU6cGFzczEyMw=="
res.send "<html><body>#{req.headers["au... |
[
{
"context": " set_metric_timer: (hmetric) =>\n metric_key = [hmetric.hostname, hmetric.name].join('|')\n @metric_timers[metric_key] ||= setInterval ()",
"end": 3872,
"score": 0.964415431022644,
"start": 3831,
"tag": "KEY",
"value": "hmetric.hostname, hmetric.name].join('|')"
}
] | src/gmond.coffee | seryl/node-gmond | 1 | net = require 'net'
dgram = require 'dgram'
Gmetric = require 'gmetric'
builder = require 'xmlbuilder'
async = require 'async'
config = require 'nconf'
logger = require './logger'
CLI = require './cli'
WebServer = require './webserver'
###*
* The ganglia gmond class.
###
class Gmond
constructor: ->
@gmetric = ... | 10747 | net = require 'net'
dgram = require 'dgram'
Gmetric = require 'gmetric'
builder = require 'xmlbuilder'
async = require 'async'
config = require 'nconf'
logger = require './logger'
CLI = require './cli'
WebServer = require './webserver'
###*
* The ganglia gmond class.
###
class Gmond
constructor: ->
@gmetric = ... | true | net = require 'net'
dgram = require 'dgram'
Gmetric = require 'gmetric'
builder = require 'xmlbuilder'
async = require 'async'
config = require 'nconf'
logger = require './logger'
CLI = require './cli'
WebServer = require './webserver'
###*
* The ganglia gmond class.
###
class Gmond
constructor: ->
@gmetric = ... |
[
{
"context": "'''\nwatchOS : Apps\n\n@auther Jungho song (threeword.com)\n@since 2016.11.23\n'''\nclass expor",
"end": 39,
"score": 0.9998630285263062,
"start": 28,
"tag": "NAME",
"value": "Jungho song"
}
] | modules/watchos-kit-apps.coffee | framer-modules/watchos | 2 | '''
watchOS : Apps
@auther Jungho song (threeword.com)
@since 2016.11.23
'''
class exports.Apps extends Layer
clockSize = 84
clockScale = 1
appSize = clockSize - 10
appScale = 1
# Constructor
constructor: (options = {}) ->
options.name ?= "Apps"
options.image ?= "images/apps.jpg"
super options
clockSc... | 122384 | '''
watchOS : Apps
@auther <NAME> (threeword.com)
@since 2016.11.23
'''
class exports.Apps extends Layer
clockSize = 84
clockScale = 1
appSize = clockSize - 10
appScale = 1
# Constructor
constructor: (options = {}) ->
options.name ?= "Apps"
options.image ?= "images/apps.jpg"
super options
clockScale =... | true | '''
watchOS : Apps
@auther PI:NAME:<NAME>END_PI (threeword.com)
@since 2016.11.23
'''
class exports.Apps extends Layer
clockSize = 84
clockScale = 1
appSize = clockSize - 10
appScale = 1
# Constructor
constructor: (options = {}) ->
options.name ?= "Apps"
options.image ?= "images/apps.jpg"
super options
... |
[
{
"context": " host: 'http://help.s2way.com:3000'\n key: '8931687dc430de3ddd2776e95588f979ae474673'\n es:\n host: process.env.ES_HOST or 'lo",
"end": 127,
"score": 0.9997732043266296,
"start": 87,
"tag": "KEY",
"value": "8931687dc430de3ddd2776e95588f979ae474673"
}
] | src/config.coffee | s2way/redmine_kms | 0 | module.exports =
redmine:
host: 'http://help.s2way.com:3000'
key: '8931687dc430de3ddd2776e95588f979ae474673'
es:
host: process.env.ES_HOST or 'localhost'
port: process.env.ES_PORT or 9200
keepAlive: true # default is true
timeout: process.env.ES_TIMEOUT or 30000 #... | 181470 | module.exports =
redmine:
host: 'http://help.s2way.com:3000'
key: '<KEY>'
es:
host: process.env.ES_HOST or 'localhost'
port: process.env.ES_PORT or 9200
keepAlive: true # default is true
timeout: process.env.ES_TIMEOUT or 30000 # default is 30000
| true | module.exports =
redmine:
host: 'http://help.s2way.com:3000'
key: 'PI:KEY:<KEY>END_PI'
es:
host: process.env.ES_HOST or 'localhost'
port: process.env.ES_PORT or 9200
keepAlive: true # default is true
timeout: process.env.ES_TIMEOUT or 30000 # default is 30000
|
[
{
"context": "tempest',\n title : \"The Tempest\",\n name : \"William\"\n surname : \"Shakespeare\"\n length : 123\n\nok te",
"end": 484,
"score": 0.9998073577880859,
"start": 477,
"tag": "NAME",
"value": "William"
},
{
"context": "\"The Tempest\",\n name : \"William\"\... | test/model.coffee | mikesten/backbone | 12,684 | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class Document extends... | 186211 | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class Document extends... | true | # Quick Backbone/CoffeeScript tests to make sure that inheritance
# works correctly.
{ok, equal, deepEqual} = require 'assert'
{Model, Collection, Events} = require '../backbone'
# Patch `ok` to store a count of passed tests...
count = 0
oldOk = ok
ok = ->
oldOk arguments...
count++
class Document extends... |
[
{
"context": "pyOn(@storage, 'update')\n @dream.save(name: 'New dream')\n expect(@storage.update).toHaveBeenC",
"end": 1414,
"score": 0.5147351026535034,
"start": 1411,
"tag": "NAME",
"value": "New"
}
] | spec/lib/offline_spec.coffee | alekseykulikov/backbone-offline | 33 | describe 'Offline', ->
beforeEach ->
localStorage.setItem('dreams', '')
@dreams = new Dreams()
afterEach ->
window.localStorage.clear()
describe 'onLine', ->
it 'should returns true when onLine is undefined', ->
window.navigator = {}
expect(Offline.onLine()).toBeTruthy()
it 'sho... | 14141 | describe 'Offline', ->
beforeEach ->
localStorage.setItem('dreams', '')
@dreams = new Dreams()
afterEach ->
window.localStorage.clear()
describe 'onLine', ->
it 'should returns true when onLine is undefined', ->
window.navigator = {}
expect(Offline.onLine()).toBeTruthy()
it 'sho... | true | describe 'Offline', ->
beforeEach ->
localStorage.setItem('dreams', '')
@dreams = new Dreams()
afterEach ->
window.localStorage.clear()
describe 'onLine', ->
it 'should returns true when onLine is undefined', ->
window.navigator = {}
expect(Offline.onLine()).toBeTruthy()
it 'sho... |
[
{
"context": "class Person\n \n named: (@name) ->\n @\n\n withSpouse: (@spouse) ->\n @\n\n",
"end": 24,
"score": 0.5957663059234619,
"start": 24,
"tag": "NAME",
"value": ""
},
{
"context": "class Person\n \n named: (@name) ->\n @\n\n withSpouse: (@spouse) ->\n @\n\n... | index.coffee | adamnengland/coffee-fluent-interface | 1 | class Person
named: (@name) ->
@
withSpouse: (@spouse) ->
@
bornOn: (@dob) ->
@
build : ->
return {
name: @name
spouse: @spouse
dob: @dob
}
console.log new Person().named('Adam').withSpouse('Rachel').build() | 147492 | class Person
named:<NAME> (@name) ->
@
withSpouse: (@spouse) ->
@
bornOn: (@dob) ->
@
build : ->
return {
name:<NAME> @name
spouse: @spouse
dob: @dob
}
console.log new Person().named('<NAME>').withSpouse('<NAME>').build() | true | class Person
named:PI:NAME:<NAME>END_PI (@name) ->
@
withSpouse: (@spouse) ->
@
bornOn: (@dob) ->
@
build : ->
return {
name:PI:NAME:<NAME>END_PI @name
spouse: @spouse
dob: @dob
}
console.log new Person().named('PI:NAME:<NAME>END_PI').withSpouse('PI:NAME:<NAME>END_PI... |
[
{
"context": "ent without an explicit \"type\" attribute\n# @author Filipp Riabchun\n###\n'use strict'\n\n# -----------------------------",
"end": 107,
"score": 0.9998507499694824,
"start": 92,
"tag": "NAME",
"value": "Filipp Riabchun"
}
] | src/tests/rules/button-has-type.coffee | helixbass/eslint-plugin-coffee | 21 | ###*
# @fileoverview Forbid "button" element without an explicit "type" attribute
# @author Filipp Riabchun
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '... | 190832 | ###*
# @fileoverview Forbid "button" element without an explicit "type" attribute
# @author <NAME>
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require 'eslint-pl... | true | ###*
# @fileoverview Forbid "button" element without an explicit "type" attribute
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = requ... |
[
{
"context": " 2 spaces'\n\n line1Expected = /var name = ['\"]Josh['\"];/\n line2Expected = /if \\( {0,1}name ={2,",
"end": 29063,
"score": 0.998833417892456,
"start": 29059,
"tag": "NAME",
"value": "Josh"
},
{
"context": " line2Expected = /if \\( {0,1}name ={2,3} ['\"... | lib/lessons/JSExercise.coffee | Elfoslav/codermania | 56 | class @JSExercise
###
# @param opts Object
# lesson
# exercise
# code
# @returns true on success, string message on failure
###
@checkExercise: (opts) ->
opts.code = $.trim(opts.code)
exercise = opts.exercise
lesson = opts.lesson
success = false
resultMsg = ''
#######... | 57840 | class @JSExercise
###
# @param opts Object
# lesson
# exercise
# code
# @returns true on success, string message on failure
###
@checkExercise: (opts) ->
opts.code = $.trim(opts.code)
exercise = opts.exercise
lesson = opts.lesson
success = false
resultMsg = ''
#######... | true | class @JSExercise
###
# @param opts Object
# lesson
# exercise
# code
# @returns true on success, string message on failure
###
@checkExercise: (opts) ->
opts.code = $.trim(opts.code)
exercise = opts.exercise
lesson = opts.lesson
success = false
resultMsg = ''
#######... |
[
{
"context": "Select Box Enhancer for jQuery and Prototype\n// by Patrick Filler for Harvest, http://getharvest.com\n//\n// Version ",
"end": 291,
"score": 0.999852180480957,
"start": 277,
"tag": "NAME",
"value": "Patrick Filler"
},
{
"context": "g.version %>\n// Full source at https... | Gruntfile.coffee | michaelBenin/chosen | 1 | module.exports = (grunt) ->
version = ->
grunt.file.readJSON("package.json").version
version_tag = ->
"v#{version()}"
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
comments: """
// Chosen, a Select Box Enhancer for jQuery and Prototype
// by Patrick Filler for Harvest, http://getharve... | 136714 | module.exports = (grunt) ->
version = ->
grunt.file.readJSON("package.json").version
version_tag = ->
"v#{version()}"
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
comments: """
// Chosen, a Select Box Enhancer for jQuery and Prototype
// by <NAME> for Harvest, http://getharvest.com
/... | true | module.exports = (grunt) ->
version = ->
grunt.file.readJSON("package.json").version
version_tag = ->
"v#{version()}"
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
comments: """
// Chosen, a Select Box Enhancer for jQuery and Prototype
// by PI:NAME:<NAME>END_PI for Harvest, http://ge... |
[
{
"context": "tps://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyD2ZjTQxVfi34-TMKjB5WYK3U8K6y-IQH0\", initTextOptions)\n\n\t\t\tif R.offline then return\n\t",
"end": 278,
"score": 0.9997163414955139,
"start": 239,
"tag": "KEY",
"value": "AIzaSyD2ZjTQxVfi34-TMKjB5WYK3U8K6y-IQH0"
},
{... | coffee/Utils/FontManager.coffee | arthursw/comme-un-dessein-client | 0 | define ['paper', 'R', 'Utils/Utils'], (P, R, Utils) ->
class FontManager
constructor: ()->
@availableFonts = []
@usedFonts = []
jQuery.support.cors = true
# $.getJSON("https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyD2ZjTQxVfi34-TMKjB5WYK3U8K6y-IQH0", initTextOptions)
if R.offline then ... | 162979 | define ['paper', 'R', 'Utils/Utils'], (P, R, Utils) ->
class FontManager
constructor: ()->
@availableFonts = []
@usedFonts = []
jQuery.support.cors = true
# $.getJSON("https://www.googleapis.com/webfonts/v1/webfonts?key=<KEY>", initTextOptions)
if R.offline then return
jqxhr = $.getJSON("https... | true | define ['paper', 'R', 'Utils/Utils'], (P, R, Utils) ->
class FontManager
constructor: ()->
@availableFonts = []
@usedFonts = []
jQuery.support.cors = true
# $.getJSON("https://www.googleapis.com/webfonts/v1/webfonts?key=PI:KEY:<KEY>END_PI", initTextOptions)
if R.offline then return
jqxhr = $.g... |
[
{
"context": "ib'\n\n\n# connect to db\nmongoose.connect 'mongodb://127.0.0.1:27017/hmrexample'\n\n\n# instantiate server\nserver =",
"end": 191,
"score": 0.9997273683547974,
"start": 182,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": ", \"size\": \"M\" } }\n\n -- custom... | examples/app.coffee | vforgione/hapi-mongoose-resource | 2 | ###
entry point of application
###
# module imports
Hapi = require 'hapi'
mongoose = require 'mongoose'
Resource = require '../lib'
# connect to db
mongoose.connect 'mongodb://127.0.0.1:27017/hmrexample'
# instantiate server
server = new Hapi.createServer 'localhost', 3000, {}
# model imports
Product = requir... | 2490 | ###
entry point of application
###
# module imports
Hapi = require 'hapi'
mongoose = require 'mongoose'
Resource = require '../lib'
# connect to db
mongoose.connect 'mongodb://127.0.0.1:27017/hmrexample'
# instantiate server
server = new Hapi.createServer 'localhost', 3000, {}
# model imports
Product = requir... | true | ###
entry point of application
###
# module imports
Hapi = require 'hapi'
mongoose = require 'mongoose'
Resource = require '../lib'
# connect to db
mongoose.connect 'mongodb://127.0.0.1:27017/hmrexample'
# instantiate server
server = new Hapi.createServer 'localhost', 3000, {}
# model imports
Product = requir... |
[
{
"context": "ration: 0\n botPos: [1, 2]\n botMessage: 'testers'\n domHighlight: '#code-area'\n surfaceHi",
"end": 1917,
"score": 0.8965386152267456,
"start": 1910,
"tag": "PASSWORD",
"value": "testers"
}
] | test/app/lib/ScriptManager.spec.coffee | Melondonut/codecombat | 1 | describe('ScriptManager', ->
ScriptManager = require 'lib/scripts/ScriptManager'
xit('broadcasts note with event upon hearing from channel', ->
note = {channel: 'cnn', event: {1: 1}}
noteGroup = {duration: 0, notes: [note]}
script = {channel: 'pbs', noteChain: [noteGroup]}
sm = new ScriptManager({s... | 82673 | describe('ScriptManager', ->
ScriptManager = require 'lib/scripts/ScriptManager'
xit('broadcasts note with event upon hearing from channel', ->
note = {channel: 'cnn', event: {1: 1}}
noteGroup = {duration: 0, notes: [note]}
script = {channel: 'pbs', noteChain: [noteGroup]}
sm = new ScriptManager({s... | true | describe('ScriptManager', ->
ScriptManager = require 'lib/scripts/ScriptManager'
xit('broadcasts note with event upon hearing from channel', ->
note = {channel: 'cnn', event: {1: 1}}
noteGroup = {duration: 0, notes: [note]}
script = {channel: 'pbs', noteChain: [noteGroup]}
sm = new ScriptManager({s... |
[
{
"context": "estAddObj = (list) ->\n\n testObj =\n name: 'test'\n\n list.addObjectToCache(testObj, 1)\n expec",
"end": 479,
"score": 0.9979172348976135,
"start": 475,
"tag": "NAME",
"value": "test"
},
{
"context": "trieveObj = (list) ->\n\n testObj =\n name: 't... | src/glados/static/coffee/tests/PaginatedCollections/PaginatedCollectionsCacheTest.coffee | BNext-IQT/glados-frontend-chembl-main-interface | 33 | describe "Paginated Collections Cache", ->
#-------------------------------------------------------------------------------------------------------------------
# Generic test functions
#-------------------------------------------------------------------------------------------------------------------
ES_COL_TY... | 69075 | describe "Paginated Collections Cache", ->
#-------------------------------------------------------------------------------------------------------------------
# Generic test functions
#-------------------------------------------------------------------------------------------------------------------
ES_COL_TY... | true | describe "Paginated Collections Cache", ->
#-------------------------------------------------------------------------------------------------------------------
# Generic test functions
#-------------------------------------------------------------------------------------------------------------------
ES_COL_TY... |
[
{
"context": ">\n <tr>\n <td rowspan=\"2\">1</td>\n <td>Mark</td>\n <td>Otto</td>\n <td>@mdo</td>\n ",
"end": 704,
"score": 0.9991576671600342,
"start": 700,
"tag": "NAME",
"value": "Mark"
},
{
"context": " rowspan=\"2\">1</td>\n <td>Mark</td>\n <t... | snippets/html-table.cson | liuin/liuin-snp | 0 | '.text.html, .source.js, .source.css':
'html-table//表格':
'prefix' : "html-table"
'body':"""
<style type="text/css">
.table-bordered {border: 1px solid #ddd;border-collapse: collapse;border-left: 0;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;border-top:0;border-spacing: 0;}
.tab... | 4525 | '.text.html, .source.js, .source.css':
'html-table//表格':
'prefix' : "html-table"
'body':"""
<style type="text/css">
.table-bordered {border: 1px solid #ddd;border-collapse: collapse;border-left: 0;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;border-top:0;border-spacing: 0;}
.tab... | true | '.text.html, .source.js, .source.css':
'html-table//表格':
'prefix' : "html-table"
'body':"""
<style type="text/css">
.table-bordered {border: 1px solid #ddd;border-collapse: collapse;border-left: 0;-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;border-top:0;border-spacing: 0;}
.tab... |
[
{
"context": "st 'pathWithFingerprint', ->\n fingerprint = '67574c7b406bb0064c686db97d00943e'\n expected = \"some/file-#{fingerpr",
"end": 643,
"score": 0.5152548551559448,
"start": 625,
"tag": "PASSWORD",
"value": "574c7b406bb0064c68"
},
{
"context": "rint', ->\n fingerprin... | test/cases/support/server/fileTest.coffee | jivagoalves/tower | 1 | describe 'Tower.File', ->
path = null
beforeEach ->
path = 'test/example/server.js'
test 'stat', (done) ->
assert.ok !!Tower.statSync(path)
Tower.stat path, (error, stat) =>
assert.ok !!stat
done()
test 'fingerprint', ->
expected = '67574c7b406bb0064c686db97d00943e'
... | 92622 | describe 'Tower.File', ->
path = null
beforeEach ->
path = 'test/example/server.js'
test 'stat', (done) ->
assert.ok !!Tower.statSync(path)
Tower.stat path, (error, stat) =>
assert.ok !!stat
done()
test 'fingerprint', ->
expected = '67574c7b406bb0064c686db97d00943e'
... | true | describe 'Tower.File', ->
path = null
beforeEach ->
path = 'test/example/server.js'
test 'stat', (done) ->
assert.ok !!Tower.statSync(path)
Tower.stat path, (error, stat) =>
assert.ok !!stat
done()
test 'fingerprint', ->
expected = '67574c7b406bb0064c686db97d00943e'
... |
[
{
"context": "9f4a03-086f-4108-a32f-99ed775655c7\",\"spotify_id\":\"6WK9dVrRABMkUXFLNlgWFh\",\n \"nr\":6,\"mast",
"end": 4142,
"score": 0.6543031334877014,
"start": 4141,
"tag": "KEY",
"value": "6"
}
] | spec/javascripts/jquery-music_metadata/track_spec.js.coffee | volontariat/jquery-discography | 1 | describe 'MusicMetadata.Track', ->
beforeEach ->
jasmine.Ajax.install()
window.alert = jasmine.createSpy()
affix '#music_track_page[data-track-id="74"]'
jasmine.Ajax.requests.reset()
describe '#showMetadata and #showVideos', ->
describe 'successful response', ->
describe 'successful ... | 222806 | describe 'MusicMetadata.Track', ->
beforeEach ->
jasmine.Ajax.install()
window.alert = jasmine.createSpy()
affix '#music_track_page[data-track-id="74"]'
jasmine.Ajax.requests.reset()
describe '#showMetadata and #showVideos', ->
describe 'successful response', ->
describe 'successful ... | true | describe 'MusicMetadata.Track', ->
beforeEach ->
jasmine.Ajax.install()
window.alert = jasmine.createSpy()
affix '#music_track_page[data-track-id="74"]'
jasmine.Ajax.requests.reset()
describe '#showMetadata and #showVideos', ->
describe 'successful response', ->
describe 'successful ... |
[
{
"context": "bject.assign {}, users_fixture.austin, username: 'jeffrey'\n @fetches.first.respond_with\n bo",
"end": 719,
"score": 0.9996705055236816,
"start": 712,
"tag": "USERNAME",
"value": "jeffrey"
},
{
"context": "username]'\n @fill_in(input_username).wit... | ui/src/components/settings/user_form.test.coffee | jozsefsallai/makes.audio | 4 | import user_form from './user_form'
import { mount } from 'avoriaz'
import Vue, { nextTick } from 'vue'
import Vuex from 'vuex'
import sinon from 'sinon'
import users_fixture from 'fixtures/users'
import email_preferences_fixture from 'fixtures/email_preferences'
import Toaster from 'lib/toaster'
Vue.use Vuex
describ... | 47091 | import user_form from './user_form'
import { mount } from 'avoriaz'
import Vue, { nextTick } from 'vue'
import Vuex from 'vuex'
import sinon from 'sinon'
import users_fixture from 'fixtures/users'
import email_preferences_fixture from 'fixtures/email_preferences'
import Toaster from 'lib/toaster'
Vue.use Vuex
describ... | true | import user_form from './user_form'
import { mount } from 'avoriaz'
import Vue, { nextTick } from 'vue'
import Vuex from 'vuex'
import sinon from 'sinon'
import users_fixture from 'fixtures/users'
import email_preferences_fixture from 'fixtures/email_preferences'
import Toaster from 'lib/toaster'
Vue.use Vuex
describ... |
[
{
"context": "\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\tcancelAnimationFrame(@auto_scroll_animation_frame)\n\t\t\t\t\t\t@auto_scroll_animation_frame = requestAnim",
"end": 7933,
"score": 0.7958123087882996,
"start": 7905,
"tag": "USERNAME",
"value": "@auto_scroll_animation_frame"
},
{
... | src/components/TracksArea.coffee | 1j01/wavey | 69 |
{E, Component} = require "../helpers.coffee"
ReactDOM = require "react-dom"
InfoBar = require "./InfoBar.coffee"
TrackControls = require "./TrackControls.coffee"
BeatTrack = require "./BeatTrack.coffee"
AudioTrack = require "./AudioTrack.coffee"
MIDITrack = require "./MIDITrack.coffee"
UnknownTrack = require "./Unknow... | 199944 |
{E, Component} = require "../helpers.coffee"
ReactDOM = require "react-dom"
InfoBar = require "./InfoBar.coffee"
TrackControls = require "./TrackControls.coffee"
BeatTrack = require "./BeatTrack.coffee"
AudioTrack = require "./AudioTrack.coffee"
MIDITrack = require "./MIDITrack.coffee"
UnknownTrack = require "./Unknow... | true |
{E, Component} = require "../helpers.coffee"
ReactDOM = require "react-dom"
InfoBar = require "./InfoBar.coffee"
TrackControls = require "./TrackControls.coffee"
BeatTrack = require "./BeatTrack.coffee"
AudioTrack = require "./AudioTrack.coffee"
MIDITrack = require "./MIDITrack.coffee"
UnknownTrack = require "./Unknow... |
[
{
"context": "*\n# @fileoverview Tests for jsx-no-undef\n# @author Yannick Croissant\n###\n\n'use strict'\n\n# ----------------------------",
"end": 71,
"score": 0.9998453259468079,
"start": 54,
"tag": "NAME",
"value": "Yannick Croissant"
}
] | src/tests/rules/jsx-no-undef.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for jsx-no-undef
# @author Yannick Croissant
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
eslint = require 'eslint'
rule = require 'eslint-plug... | 154324 | ###*
# @fileoverview Tests for jsx-no-undef
# @author <NAME>
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
eslint = require 'eslint'
rule = require 'eslint-plugin-react/li... | true | ###*
# @fileoverview Tests for jsx-no-undef
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
eslint = require 'eslint'
rule = require 'eslint-p... |
[
{
"context": "# Data sourced by Cobus Coetzee. Available on thedatahub at:\n# http://thedatahu",
"end": 31,
"score": 0.9998988509178162,
"start": 18,
"tag": "NAME",
"value": "Cobus Coetzee"
}
] | data/coffeescript/55375b864f6fe22900eca16fc0e70dcd_data.coffee | maxim5/code-inspector | 5 | # Data sourced by Cobus Coetzee. Available on thedatahub at:
# http://thedatahub.org/dataset/south-african-national-gov-budget-2012-13
exports.income_tax =
2012:
bands: [
{width: 160000, rate: 0.18}
{width: 90000, rate: 0.25}
{width: 96000, rate: 0.30}
{width: 138000, rate: 0.35}
... | 8369 | # Data sourced by <NAME>. Available on thedatahub at:
# http://thedatahub.org/dataset/south-african-national-gov-budget-2012-13
exports.income_tax =
2012:
bands: [
{width: 160000, rate: 0.18}
{width: 90000, rate: 0.25}
{width: 96000, rate: 0.30}
{width: 138000, rate: 0.35}
{widt... | true | # Data sourced by PI:NAME:<NAME>END_PI. Available on thedatahub at:
# http://thedatahub.org/dataset/south-african-national-gov-budget-2012-13
exports.income_tax =
2012:
bands: [
{width: 160000, rate: 0.18}
{width: 90000, rate: 0.25}
{width: 96000, rate: 0.30}
{width: 138000, rate: 0.3... |
[
{
"context": "root: root\n gh: gh\n config: config\n user: repo_user\n repo: repo_name\n branch: config.branch or ",
"end": 705,
"score": 0.9792672991752625,
"start": 696,
"tag": "USERNAME",
"value": "repo_user"
},
{
"context": "asic'\n username: @config.username\n ... | lib/deployers/gh-pages/index.coffee | carrot/ship | 151 | path = require 'path'
fs = require 'fs'
W = require 'when'
nodefn = require 'when/node'
guard = require 'when/guard'
keys = require 'when/keys'
_ = require 'lodash'
readdirp = require 'readdirp'
GithubApi = require 'github'
minimatch = require 'minimatch'
file_map = require 'fi... | 37724 | path = require 'path'
fs = require 'fs'
W = require 'when'
nodefn = require 'when/node'
guard = require 'when/guard'
keys = require 'when/keys'
_ = require 'lodash'
readdirp = require 'readdirp'
GithubApi = require 'github'
minimatch = require 'minimatch'
file_map = require 'fi... | true | path = require 'path'
fs = require 'fs'
W = require 'when'
nodefn = require 'when/node'
guard = require 'when/guard'
keys = require 'when/keys'
_ = require 'lodash'
readdirp = require 'readdirp'
GithubApi = require 'github'
minimatch = require 'minimatch'
file_map = require 'fi... |
[
{
"context": " good object', (assert) ->\n model = \n email: \"foxnewsnetwork@gmail.com\"\n username: \"foxnewsnetwork\"\n\n presence(\"emai",
"end": 393,
"score": 0.9999223947525024,
"start": 369,
"tag": "EMAIL",
"value": "foxnewsnetwork@gmail.com"
},
{
"context": " email: \... | tests/unit/validators/presence-test.coffee | foxnewsnetwork/ember-functional-validation | 4 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import presence from 'ember-functional-validation/validators/presence'`
module 'Validators: Presence'
test 'it should exist', (assert) ->
assert.ok presence
assert.equal typeof presence, 'function'
test 'it should resolve to a good promise on a ... | 146493 | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import presence from 'ember-functional-validation/validators/presence'`
module 'Validators: Presence'
test 'it should exist', (assert) ->
assert.ok presence
assert.equal typeof presence, 'function'
test 'it should resolve to a good promise on a ... | true | `import Ember from 'ember'`
`import { module, test } from 'qunit'`
`import presence from 'ember-functional-validation/validators/presence'`
module 'Validators: Presence'
test 'it should exist', (assert) ->
assert.ok presence
assert.equal typeof presence, 'function'
test 'it should resolve to a good promise on a ... |
[
{
"context": "nstance to add\n ###\n key = _browserInstances.length\n _browserInstances[key] = browserInstance\n ",
"end": 3824,
"score": 0.7006527185440063,
"start": 3818,
"tag": "KEY",
"value": "length"
}
] | src/stof.coffee | megaplan/stof | 2 | webdriver = require './webdriver'
PathResolver = require './utils/PathResolver'
fs = require 'fs.extra'
path = require 'path'
_ = require 'lodash'
Browser = require './Browser'
# Classes for inheriting in concrete test's implementation
PageObject ... | 93312 | webdriver = require './webdriver'
PathResolver = require './utils/PathResolver'
fs = require 'fs.extra'
path = require 'path'
_ = require 'lodash'
Browser = require './Browser'
# Classes for inheriting in concrete test's implementation
PageObject ... | true | webdriver = require './webdriver'
PathResolver = require './utils/PathResolver'
fs = require 'fs.extra'
path = require 'path'
_ = require 'lodash'
Browser = require './Browser'
# Classes for inheriting in concrete test's implementation
PageObject ... |
[
{
"context": "gree vertically.\n#\n# @license Apache 2.0\n# @author MixFlow\n# @date 2017-08\n###\n\nwindow.threePanorama = (sett",
"end": 187,
"score": 0.9960964918136597,
"start": 180,
"tag": "USERNAME",
"value": "MixFlow"
},
{
"context": "YyIgZD0iTTEyNSAxODAuODVsLTEwNSAxMDVWMjAzLj... | js/3panorama.coffee | mixflow/3panorama | 1 | ###
# A panorama viewer base on three.js.
# Panarama is a type of image which can be watched in 360 degree horizonally and 180 degree vertically.
#
# @license Apache 2.0
# @author MixFlow
# @date 2017-08
###
window.threePanorama = (settings) ->
defaultSettings =
container: document.body
image: und... | 166182 | ###
# A panorama viewer base on three.js.
# Panarama is a type of image which can be watched in 360 degree horizonally and 180 degree vertically.
#
# @license Apache 2.0
# @author MixFlow
# @date 2017-08
###
window.threePanorama = (settings) ->
defaultSettings =
container: document.body
image: und... | true | ###
# A panorama viewer base on three.js.
# Panarama is a type of image which can be watched in 360 degree horizonally and 180 degree vertically.
#
# @license Apache 2.0
# @author MixFlow
# @date 2017-08
###
window.threePanorama = (settings) ->
defaultSettings =
container: document.body
image: und... |
[
{
"context": "te'\n 'change #order': 'compileQuery'\n\n # XXX (Mispy): This is a bit messy and redundant\n # with th",
"end": 1229,
"score": 0.5211732387542725,
"start": 1226,
"tag": "USERNAME",
"value": "Mis"
},
{
"context": "\n 'change #order': 'compileQuery'\n\n # XXX (Mi... | app/assets/javascripts/search.js.coffee | marwahaha/scirate | 0 | class View.Search extends Backbone.View
initialize: ->
# Compute preset date ranges
@ranges = {}
now = moment()
@ranges.week = @compileDateRange(now.clone().subtract('weeks', 1), now)
@ranges.month = @compileDateRange(now.clone().subtract('months', 1), now)
@ranges.year = @compileDateRange(now... | 42021 | class View.Search extends Backbone.View
initialize: ->
# Compute preset date ranges
@ranges = {}
now = moment()
@ranges.week = @compileDateRange(now.clone().subtract('weeks', 1), now)
@ranges.month = @compileDateRange(now.clone().subtract('months', 1), now)
@ranges.year = @compileDateRange(now... | true | class View.Search extends Backbone.View
initialize: ->
# Compute preset date ranges
@ranges = {}
now = moment()
@ranges.week = @compileDateRange(now.clone().subtract('weeks', 1), now)
@ranges.month = @compileDateRange(now.clone().subtract('months', 1), now)
@ranges.year = @compileDateRange(now... |
[
{
"context": "xtends LayerInfo\n @shouldParse: (key) -> key is 'PtFl'\n\n constructor: (layer, length) ->\n super(lay",
"end": 178,
"score": 0.9921600818634033,
"start": 174,
"tag": "KEY",
"value": "PtFl"
}
] | lib/psd/layer_info/pattern_fill.coffee | Keyang/psd.js | 0 | LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'
module.exports = class PatternFill extends LayerInfo
@shouldParse: (key) -> key is 'PtFl'
constructor: (layer, length) ->
super(layer, length)
parse: ->
@file.seek 4, true
@data = new Descriptor(@file).pars... | 60301 | LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'
module.exports = class PatternFill extends LayerInfo
@shouldParse: (key) -> key is '<KEY>'
constructor: (layer, length) ->
super(layer, length)
parse: ->
@file.seek 4, true
@data = new Descriptor(@file).par... | true | LayerInfo = require '../layer_info.coffee'
Descriptor = require '../descriptor.coffee'
module.exports = class PatternFill extends LayerInfo
@shouldParse: (key) -> key is 'PI:KEY:<KEY>END_PI'
constructor: (layer, length) ->
super(layer, length)
parse: ->
@file.seek 4, true
@data = new Descript... |
[
{
"context": "ation:\n# process.env.HUBOT_ASGARD_URL or http://127.0.0.1/\n# process.env.HUBOT_ASGARD_REGION or us-east-1",
"end": 221,
"score": 0.9025506973266602,
"start": 212,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "ardUrl = process.env.HUBOT_ASGARD_URL or '... | scripts/asgard.coffee | danriti/hubot-asgard | 0 | # Description:
# Asgard provides hubot commands for interfacing with a NetflixOSS
# Asgard instance via API.
#
# Dependencies:
# eco (>= 1.1.0)
#
# Configuration:
# process.env.HUBOT_ASGARD_URL or http://127.0.0.1/
# process.env.HUBOT_ASGARD_REGION or us-east-1
#
# Commands:
# asgard ami - List AMIs per reg... | 100147 | # Description:
# Asgard provides hubot commands for interfacing with a NetflixOSS
# Asgard instance via API.
#
# Dependencies:
# eco (>= 1.1.0)
#
# Configuration:
# process.env.HUBOT_ASGARD_URL or http://127.0.0.1/
# process.env.HUBOT_ASGARD_REGION or us-east-1
#
# Commands:
# asgard ami - List AMIs per reg... | true | # Description:
# Asgard provides hubot commands for interfacing with a NetflixOSS
# Asgard instance via API.
#
# Dependencies:
# eco (>= 1.1.0)
#
# Configuration:
# process.env.HUBOT_ASGARD_URL or http://127.0.0.1/
# process.env.HUBOT_ASGARD_REGION or us-east-1
#
# Commands:
# asgard ami - List AMIs per reg... |
[
{
"context": "\n return unless data.playId?\n\n data.key = impamp.pads.escapeKey(data.key)\n\n # Find the pad\n $page",
"end": 693,
"score": 0.5358166694641113,
"start": 693,
"tag": "KEY",
"value": ""
},
{
"context": "turn unless data.playId?\n\n data.key = impamp.pads.escapeKey... | source/javascripts/collaboration.coffee | EdinburghUniversityTheatreCompany/ImpAmp | 1 | impamp = window.impamp
impamp.collaboration = {}
impamp.collaboration.colour = localStorage["collaboration.colour"] if localStorage?
$ ->
$colourInput = $('#colourBtn input')
$colourInput.val(impamp.collaboration.colour)
$colourInput.on "change", ->
impamp.collaboration.colour = $colourInput.val()
local... | 72903 | impamp = window.impamp
impamp.collaboration = {}
impamp.collaboration.colour = localStorage["collaboration.colour"] if localStorage?
$ ->
$colourInput = $('#colourBtn input')
$colourInput.val(impamp.collaboration.colour)
$colourInput.on "change", ->
impamp.collaboration.colour = $colourInput.val()
local... | true | impamp = window.impamp
impamp.collaboration = {}
impamp.collaboration.colour = localStorage["collaboration.colour"] if localStorage?
$ ->
$colourInput = $('#colourBtn input')
$colourInput.val(impamp.collaboration.colour)
$colourInput.on "change", ->
impamp.collaboration.colour = $colourInput.val()
local... |
[
{
"context": "ll send location header\n ## https://github.com/letsencrypt/boulder/issues/1135\n err = \"did not receive lo",
"end": 1619,
"score": 0.9990965723991394,
"start": 1608,
"tag": "USERNAME",
"value": "letsencrypt"
},
{
"context": "ional = [\n {name: \"challengePa... | src/models/letsencrypt.coffee | nextorigin/ten-ply-crest | 21 | Acme = require "rawacme"
Keygen = require "rsa-keygen"
Forge = require "node-forge"
Flannel = require "flannel"
errify = require "errify"
class LetsEncrypt
logPrefix: "(LetsEncrypt)"
@intermediateCert: (callback) ->
ideally = errify callback
https = require "https"
url = require "url"
... | 25369 | Acme = require "rawacme"
Keygen = require "rsa-keygen"
Forge = require "node-forge"
Flannel = require "flannel"
errify = require "errify"
class LetsEncrypt
logPrefix: "(LetsEncrypt)"
@intermediateCert: (callback) ->
ideally = errify callback
https = require "https"
url = require "url"
... | true | Acme = require "rawacme"
Keygen = require "rsa-keygen"
Forge = require "node-forge"
Flannel = require "flannel"
errify = require "errify"
class LetsEncrypt
logPrefix: "(LetsEncrypt)"
@intermediateCert: (callback) ->
ideally = errify callback
https = require "https"
url = require "url"
... |
[
{
"context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http://o",
"end": 67,
"score": 0.8885626196861267,
"start": 62,
"tag": "NAME",
"value": "Hatio"
}
] | src/advice.coffee | heartyoh/dou | 1 | # ==========================================
# Copyright 2014 Hatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'./compose'
], (compose) ->
"use strict"
advice =
around: (base, wrapped) ->
->
... | 48541 | # ==========================================
# Copyright 2014 <NAME>, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'./compose'
], (compose) ->
"use strict"
advice =
around: (base, wrapped) ->
->
... | true | # ==========================================
# Copyright 2014 PI:NAME:<NAME>END_PI, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'./compose'
], (compose) ->
"use strict"
advice =
around: (base, wrapped) ->
... |
[
{
"context": "_KEY>'\n\ncio.identify '50b896ddc814556766000001', 'fab@bizzby.com', {created_at:new Date()}, (err, res) ->\n\n if er",
"end": 158,
"score": 0.9999216198921204,
"start": 144,
"tag": "EMAIL",
"value": "fab@bizzby.com"
}
] | example/identify.coffee | Bizzby/customer.io | 1 | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.identify '50b896ddc814556766000001', 'fab@bizzby.com', {created_at:new Date()}, (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status code', res.... | 8547 | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.identify '50b896ddc814556766000001', '<EMAIL>', {created_at:new Date()}, (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status code', res.statusC... | true | Customerio = require '../src/Customerio'
cio = new Customerio '<YOUR_SITE_ID>', '<YOUR_SECRET_KEY>'
cio.identify '50b896ddc814556766000001', 'PI:EMAIL:<EMAIL>END_PI', {created_at:new Date()}, (err, res) ->
if err?
console.log 'ERROR', err
console.log 'response headers', res.headers
console.log 'status cod... |
[
{
"context": "config.signerChain\r\n\t\t\t\trootCert = @CM.blankCert \"root@clearpathnet.com\",\"email:copy\",\"StormTracker Root Signer\", signerC",
"end": 803,
"score": 0.9999033212661743,
"start": 782,
"tag": "EMAIL",
"value": "root@clearpathnet.com"
}
] | src/http/certs.coffee | chandrashekharh/stormtracker | 1 | certainly = require("security/certainly")
uuid = require("node-uuid")
CertificateRegistry = require("security/certificate").CertificateRegistry
auth = require("http/auth").authenticate
util = require "util"
class CertificateFactory
constructor:(db)->
@db = db
@CM = new CertificateManager __dirname+"/..... | 84572 | certainly = require("security/certainly")
uuid = require("node-uuid")
CertificateRegistry = require("security/certificate").CertificateRegistry
auth = require("http/auth").authenticate
util = require "util"
class CertificateFactory
constructor:(db)->
@db = db
@CM = new CertificateManager __dirname+"/..... | true | certainly = require("security/certainly")
uuid = require("node-uuid")
CertificateRegistry = require("security/certificate").CertificateRegistry
auth = require("http/auth").authenticate
util = require "util"
class CertificateFactory
constructor:(db)->
@db = db
@CM = new CertificateManager __dirname+"/..... |
[
{
"context": "sName in [\"header\", \"content\", \"actions\"]\n\t\t\tkey = \"_#{className}\"\n\t\t\tif @[key]?.length\n\t\t\t\t@_makeInternalDom(classN",
"end": 592,
"score": 0.9944722652435303,
"start": 577,
"tag": "KEY",
"value": "\"_#{className}\""
}
] | test/src/widget/layout/modal.coffee | AlexTong/grunt-dorado-build | 0 | class dorado.Modal extends dorado.Widget
@CLASS_NAME: "modal"
@ATTRIBUTES:
context: null
header:
setter: (value)->
@_serInternal(value, "header")
return @
content:
setter: (value)->
@_serInternal(value, "content")
return @
actions:
setter: (value)->
@_serInternal(value, "actions... | 66338 | class dorado.Modal extends dorado.Widget
@CLASS_NAME: "modal"
@ATTRIBUTES:
context: null
header:
setter: (value)->
@_serInternal(value, "header")
return @
content:
setter: (value)->
@_serInternal(value, "content")
return @
actions:
setter: (value)->
@_serInternal(value, "actions... | true | class dorado.Modal extends dorado.Widget
@CLASS_NAME: "modal"
@ATTRIBUTES:
context: null
header:
setter: (value)->
@_serInternal(value, "header")
return @
content:
setter: (value)->
@_serInternal(value, "content")
return @
actions:
setter: (value)->
@_serInternal(value, "actions... |
[
{
"context": " 2e3\n result.body.should.equal \"King's Landing\"\n result._id.toString().should.equal someM",
"end": 5827,
"score": 0.564323365688324,
"start": 5824,
"tag": "NAME",
"value": "ing"
}
] | test/submodel.coffee | OpenCubes/Nap | 1 | chai = require('chai')
should = chai.should()
chai.use(require('chai-things'))
index = require('../index')
mongoose = require("mongoose-q")()
SubModel = require "../src/submodel"
Model = require "../src/model"
Q = require "q"
_ = require "lodash"
mongoose.model "Ticket", {
title: String
body: String
likes: Numbe... | 44552 | chai = require('chai')
should = chai.should()
chai.use(require('chai-things'))
index = require('../index')
mongoose = require("mongoose-q")()
SubModel = require "../src/submodel"
Model = require "../src/model"
Q = require "q"
_ = require "lodash"
mongoose.model "Ticket", {
title: String
body: String
likes: Numbe... | true | chai = require('chai')
should = chai.should()
chai.use(require('chai-things'))
index = require('../index')
mongoose = require("mongoose-q")()
SubModel = require "../src/submodel"
Model = require "../src/model"
Q = require "q"
_ = require "lodash"
mongoose.model "Ticket", {
title: String
body: String
likes: Numbe... |
[
{
"context": "eason\n return failureCause if failureCause\n\n# 'sbacanu@hubspot.com' => 'sbacanu'\n# 'seb' => 'seb'\nHa",
"end": 5466,
"score": 0.9999241828918457,
"start": 5447,
"tag": "EMAIL",
"value": "sbacanu@hubspot.com"
},
{
"context": "ause if failureCause\n... | Chapter4/Singularity/SingularityUI/app/handlebarsHelpers.coffee | HussainK72/Mastering-Mesos | 11 | Handlebars = require 'handlebars'
moment = require 'moment'
Utils = require './utils'
Handlebars.registerHelper 'appRoot', ->
config.appRoot
Handlebars.registerHelper 'apiDocs', ->
config.apiDocs
Handlebars.registerHelper 'ifEqual', (v1, v2, options) ->
if v1 is v2 then options.fn @ else options.inverse ... | 90931 | Handlebars = require 'handlebars'
moment = require 'moment'
Utils = require './utils'
Handlebars.registerHelper 'appRoot', ->
config.appRoot
Handlebars.registerHelper 'apiDocs', ->
config.apiDocs
Handlebars.registerHelper 'ifEqual', (v1, v2, options) ->
if v1 is v2 then options.fn @ else options.inverse ... | true | Handlebars = require 'handlebars'
moment = require 'moment'
Utils = require './utils'
Handlebars.registerHelper 'appRoot', ->
config.appRoot
Handlebars.registerHelper 'apiDocs', ->
config.apiDocs
Handlebars.registerHelper 'ifEqual', (v1, v2, options) ->
if v1 is v2 then options.fn @ else options.inverse ... |
[
{
"context": "npmlog'\n\ndynClient = Dyn({traffic:{customer_name:'yourcustomer',user_name:'youruser',password:'yourpassword'}})\n",
"end": 136,
"score": 0.9993206262588501,
"start": 124,
"tag": "USERNAME",
"value": "yourcustomer"
},
{
"context": "{traffic:{customer_name:'yourcustomer... | examples/traffic_example.coffee | dyninc/dyn-js | 6 | Dyn = require '../lib/dyn-js.js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({traffic:{customer_name:'yourcustomer',user_name:'youruser',password:'yourpassword'}})
dynClient.log.level = 'sil'
dyn = dynClient.traffic.withZone('example.com')
fail = (bad) -> console.log 'FAIL', arguments
async.ser... | 214381 | Dyn = require '../lib/dyn-js.js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({traffic:{customer_name:'yourcustomer',user_name:'youruser',password:'<PASSWORD>'}})
dynClient.log.level = 'sil'
dyn = dynClient.traffic.withZone('example.com')
fail = (bad) -> console.log 'FAIL', arguments
async.serie... | true | Dyn = require '../lib/dyn-js.js'
async = require 'async-q'
log = require 'npmlog'
dynClient = Dyn({traffic:{customer_name:'yourcustomer',user_name:'youruser',password:'PI:PASSWORD:<PASSWORD>END_PI'}})
dynClient.log.level = 'sil'
dyn = dynClient.traffic.withZone('example.com')
fail = (bad) -> console.log 'FAIL', argu... |
[
{
"context": "ipient:\n address: @get('email')\n name: @broadName()\n email_data:\n name: @broadName()\n ",
"end": 10268,
"score": 0.9635912179946899,
"start": 10259,
"tag": "USERNAME",
"value": "broadName"
},
{
"context": " name: @broadName()\n email_data:... | server/models/User.coffee | mohancm/codecombat | 1 | mongoose = require 'mongoose'
jsonschema = require '../../app/schemas/models/user'
crypto = require 'crypto'
{salt, isProduction} = require '../../server_config'
mail = require '../commons/mail'
log = require 'winston'
plugins = require '../plugins/plugins'
AnalyticsUsersActive = require './AnalyticsUsersActive'
Classr... | 32878 | mongoose = require 'mongoose'
jsonschema = require '../../app/schemas/models/user'
crypto = require 'crypto'
{salt, isProduction} = require '../../server_config'
mail = require '../commons/mail'
log = require 'winston'
plugins = require '../plugins/plugins'
AnalyticsUsersActive = require './AnalyticsUsersActive'
Classr... | true | mongoose = require 'mongoose'
jsonschema = require '../../app/schemas/models/user'
crypto = require 'crypto'
{salt, isProduction} = require '../../server_config'
mail = require '../commons/mail'
log = require 'winston'
plugins = require '../plugins/plugins'
AnalyticsUsersActive = require './AnalyticsUsersActive'
Classr... |
[
{
"context": "godb Plugin', ->\n before ->\n @turtleNames = ['Donatello', 'Leonardo', 'Michelangelo', 'Raphael']\n\n befor",
"end": 210,
"score": 0.9998538494110107,
"start": 201,
"tag": "NAME",
"value": "Donatello"
},
{
"context": " ->\n before ->\n @turtleNames = ['Donatel... | test/test_plugin_mongodb.coffee | kr1sp1n/hotcoffee-mongodb | 0 | # file: test/test_plugin_mongodb.coffee
should = require 'should'
sinon = require 'sinon'
EventEmitter = require('events').EventEmitter
describe 'mongodb Plugin', ->
before ->
@turtleNames = ['Donatello', 'Leonardo', 'Michelangelo', 'Raphael']
beforeEach ->
@turtles = for name, i in @turtleNames
{ ... | 46742 | # file: test/test_plugin_mongodb.coffee
should = require 'should'
sinon = require 'sinon'
EventEmitter = require('events').EventEmitter
describe 'mongodb Plugin', ->
before ->
@turtleNames = ['<NAME>', '<NAME>', '<NAME>', '<NAME>']
beforeEach ->
@turtles = for name, i in @turtleNames
{ _id: i+1, pr... | true | # file: test/test_plugin_mongodb.coffee
should = require 'should'
sinon = require 'sinon'
EventEmitter = require('events').EventEmitter
describe 'mongodb Plugin', ->
before ->
@turtleNames = ['PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI', 'PI:NAME:<NAME>END_PI']
beforeEach ->
@tu... |
[
{
"context": "(\"service:session\"))\n i.userParams =\n email: \"test@test.test\"\n password: \"password123\"\n Cookies.remove \"_a",
"end": 213,
"score": 0.9999059438705444,
"start": 199,
"tag": "EMAIL",
"value": "test@test.test"
},
{
"context": "rams =\n email: \"test@te... | tests/helpers/apiv4-fixtures.coffee | simwms/apiv4 | 2 | store = (i) -> i.application.__container__.lookup("service:store")
loginAccount = (i) ->
i.session = (session = i.application.__container__.lookup("service:session"))
i.userParams =
email: "test@test.test"
password: "password123"
Cookies.remove "_apiv4_key"
Cookies.remove "remember-token"
i.session.... | 77165 | store = (i) -> i.application.__container__.lookup("service:store")
loginAccount = (i) ->
i.session = (session = i.application.__container__.lookup("service:session"))
i.userParams =
email: "<EMAIL>"
password: "<PASSWORD>"
Cookies.remove "_apiv4_key"
Cookies.remove "remember-token"
i.session.login(i.... | true | store = (i) -> i.application.__container__.lookup("service:store")
loginAccount = (i) ->
i.session = (session = i.application.__container__.lookup("service:session"))
i.userParams =
email: "PI:EMAIL:<EMAIL>END_PI"
password: "PI:PASSWORD:<PASSWORD>END_PI"
Cookies.remove "_apiv4_key"
Cookies.remove "reme... |
[
{
"context": "ude default font: ###\n continue if psname is 'Iosevka-Slab'\n ### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
"end": 17567,
"score": 0.6795914769172668,
"start": 17556,
"tag": "NAME",
"value": "osevka-Slab"
}
] | dev/kitty-font-config-writer-kfcw/src/main.coffee | loveencounterflow/hengist | 0 |
# portals!
'use strict'
############################################################################################################
CND = require 'cnd'
badge = 'kittyfonts'
rpr = CND.rpr
log = CND.get_logger 'plain', badge
inf... | 210152 |
# portals!
'use strict'
############################################################################################################
CND = require 'cnd'
badge = 'kittyfonts'
rpr = CND.rpr
log = CND.get_logger 'plain', badge
inf... | true |
# portals!
'use strict'
############################################################################################################
CND = require 'cnd'
badge = 'kittyfonts'
rpr = CND.rpr
log = CND.get_logger 'plain', badge
inf... |
[
{
"context": "###\n * cena_auth\n * https://github.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan Gaus\n * Li",
"end": 46,
"score": 0.9955927729606628,
"start": 39,
"tag": "USERNAME",
"value": "1egoman"
},
{
"context": "thub.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan ... | src/frontend/controllers/nav.coffee | 1egoman/cena_app | 0 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
'use strict';
# nav controller
@app.controller 'NavController', ($scope) ->
# get the user whose lists we are viewing currently
$scope.owner = _.last(location.pathname.split('/')).repl... | 86908 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
'use strict';
# nav controller
@app.controller 'NavController', ($scope) ->
# get the user whose lists we are viewing currently
$scope.owner = _.last(location.pathname.split('/')).replace... | true | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
'use strict';
# nav controller
@app.controller 'NavController', ($scope) ->
# get the user whose lists we are viewing currently
$scope.owner = _.last(location.pathname.split... |
[
{
"context": "ibute.do?style=2&id=2318991&type=2&source=2&token=3a3322513c2750ad80c5149adb3795d6')\n#music.doTask()\n#console.log argv\nurl = argv._[",
"end": 4878,
"score": 0.7915747165679932,
"start": 4846,
"tag": "PASSWORD",
"value": "3a3322513c2750ad80c5149adb3795d6"
}
] | app.coffee | youqingkui/down-meizu-music | 1 | request = require("request")
async = require("async")
cheerio = require("cheerio")
fs = require("fs")
argv = require('optimist').argv
class Music
constructor: (@url) ->
@songs = []
@album = 'youqing'
@albumImgUrl = ''
@artist = 'youqing'
@headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; I... | 128515 | request = require("request")
async = require("async")
cheerio = require("cheerio")
fs = require("fs")
argv = require('optimist').argv
class Music
constructor: (@url) ->
@songs = []
@album = 'youqing'
@albumImgUrl = ''
@artist = 'youqing'
@headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; I... | true | request = require("request")
async = require("async")
cheerio = require("cheerio")
fs = require("fs")
argv = require('optimist').argv
class Music
constructor: (@url) ->
@songs = []
@album = 'youqing'
@albumImgUrl = ''
@artist = 'youqing'
@headers = {
'User-Agent':'Mozilla/5.0 (Macintosh; I... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9993306994438171,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "#url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n authInHost = (if result.hos... | lib/url.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... | 138717 | # 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": "mal resolution\n if fullHero.get('name') in ['Knight', 'Robot Walker'] # These are too big, so shrink",
"end": 5777,
"score": 0.9997127652168274,
"start": 5771,
"tag": "NAME",
"value": "Knight"
},
{
"context": "tion\n if fullHero.get('name') in ['Knight', 'Ro... | app/views/game-menu/ChooseHeroView.coffee | rodeofly/rodeofly.github.io | 0 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/choose-hero-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
SpriteBuilder = require 'lib/sprites/SpriteBuilder'
AudioPlayer = require 'lib/AudioPlayer'
module.e... | 94852 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/choose-hero-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
SpriteBuilder = require 'lib/sprites/SpriteBuilder'
AudioPlayer = require 'lib/AudioPlayer'
module.e... | true | CocoView = require 'views/kinds/CocoView'
template = require 'templates/game-menu/choose-hero-view'
{me} = require 'lib/auth'
ThangType = require 'models/ThangType'
CocoCollection = require 'collections/CocoCollection'
SpriteBuilder = require 'lib/sprites/SpriteBuilder'
AudioPlayer = require 'lib/AudioPlayer'
module.e... |
[
{
"context": "kenario:'\n 'Conto:'\n 'Contone:'\n 'Nalika '\n 'Nalikaning '\n 'Manawa '\n 'Mena",
"end": 179,
"score": 0.6487376689910889,
"start": 174,
"tag": "NAME",
"value": "alika"
},
{
"context": "'Conto:'\n 'Contone:'\n 'Nalika '\n '... | settings/language-gherkin_jv.cson | mackoj/language-gherkin-i18n | 17 | '.text.gherkin.feature.jv':
'editor':
'completions': [
'Fitur:'
'Dasar:'
'Skenario:'
'Konsep skenario:'
'Conto:'
'Contone:'
'Nalika '
'Nalikaning '
'Manawa '
'Menawa '
'Njuk '
'Banjur '
'Tapi '
'Nanging '
'Ananging '
'... | 214458 | '.text.gherkin.feature.jv':
'editor':
'completions': [
'Fitur:'
'Dasar:'
'Skenario:'
'Konsep skenario:'
'Conto:'
'Contone:'
'N<NAME> '
'N<NAME>ing '
'Manawa '
'Menawa '
'Njuk '
'Banjur '
'Tapi '
'Nanging '
'Ananging '
... | true | '.text.gherkin.feature.jv':
'editor':
'completions': [
'Fitur:'
'Dasar:'
'Skenario:'
'Konsep skenario:'
'Conto:'
'Contone:'
'NPI:NAME:<NAME>END_PI '
'NPI:NAME:<NAME>END_PIing '
'Manawa '
'Menawa '
'Njuk '
'Banjur '
'Tapi '
'Nangin... |
[
{
"context": "Ob =\n username : ''\n phone: ''\n password: ''\n repassword : ''\n checkPolicy : false\n e",
"end": 734,
"score": 0.6273216009140015,
"start": 734,
"tag": "PASSWORD",
"value": ""
},
{
"context": "THENTICATED\"\n params =\n password : $... | app/core/controllers/register.coffee | xitrumuit1991/ls-yuptv | 0 | "use strict"
route = ($stateProvider, GlobalConfig)->
$stateProvider
.state "base.register",
url : "register"
views :
"main@" :
templateUrl : "/templates/register/view.html"
controller : "registerCtrl"
route.$inject = ['$stateProvider', 'GlobalConfig']
ctrl = ($rootScope,
$scope, $ti... | 153891 | "use strict"
route = ($stateProvider, GlobalConfig)->
$stateProvider
.state "base.register",
url : "register"
views :
"main@" :
templateUrl : "/templates/register/view.html"
controller : "registerCtrl"
route.$inject = ['$stateProvider', 'GlobalConfig']
ctrl = ($rootScope,
$scope, $ti... | true | "use strict"
route = ($stateProvider, GlobalConfig)->
$stateProvider
.state "base.register",
url : "register"
views :
"main@" :
templateUrl : "/templates/register/view.html"
controller : "registerCtrl"
route.$inject = ['$stateProvider', 'GlobalConfig']
ctrl = ($rootScope,
$scope, $ti... |
[
{
"context": " s = [ 'The Matrix – The Wachowskis',\n '© Martin Dedek, Graficky design 2, FUD UJEP',\n \"n#{n}/m",
"end": 4333,
"score": 0.9998865127563477,
"start": 4321,
"tag": "NAME",
"value": "Martin Dedek"
}
] | src/poster.coffee | dedekm/terry-poster | 0 | window.init = () ->
canvas = document.createElement('canvas')
canvas.width = WIDTH
canvas.height = HEIGHT
document.body.appendChild(canvas)
ctx = canvas.getContext("2d")
strings = $('#input input').map((iput) ->
this.value
).get()
ctx.font = "25px Arial"
ctx.fillStyle = "#000000"
ctx.textAli... | 224634 | window.init = () ->
canvas = document.createElement('canvas')
canvas.width = WIDTH
canvas.height = HEIGHT
document.body.appendChild(canvas)
ctx = canvas.getContext("2d")
strings = $('#input input').map((iput) ->
this.value
).get()
ctx.font = "25px Arial"
ctx.fillStyle = "#000000"
ctx.textAli... | true | window.init = () ->
canvas = document.createElement('canvas')
canvas.width = WIDTH
canvas.height = HEIGHT
document.body.appendChild(canvas)
ctx = canvas.getContext("2d")
strings = $('#input input').map((iput) ->
this.value
).get()
ctx.font = "25px Arial"
ctx.fillStyle = "#000000"
ctx.textAli... |
[
{
"context": "spre\"\n contact: \"Contact\"\n twitter_follow: \"Urmărește\"\n employers: \"Angajați\"\n\n versions:\n save_",
"end": 754,
"score": 0.998232364654541,
"start": 745,
"tag": "USERNAME",
"value": "Urmărește"
},
{
"context": "unt_title: \"Recuperează Cont\"\n ... | app/locale/ro.coffee | JeremyGeros/codecombat | 0 | module.exports = nativeDescription: "limba română", englishDescription: "Romanian", translation:
common:
loading: "Se incarcă..."
saving: "Se salvează..."
sending: "Se trimite..."
cancel: "Anulează"
save: "Salvează"
delay_1_sec: "1 secundă"
delay_3_sec: "3 secunde"
delay_5_sec: "5 secu... | 63202 | module.exports = nativeDescription: "limba română", englishDescription: "Romanian", translation:
common:
loading: "Se incarcă..."
saving: "Se salvează..."
sending: "Se trimite..."
cancel: "Anulează"
save: "Salvează"
delay_1_sec: "1 secundă"
delay_3_sec: "3 secunde"
delay_5_sec: "5 secu... | true | module.exports = nativeDescription: "limba română", englishDescription: "Romanian", translation:
common:
loading: "Se incarcă..."
saving: "Se salvează..."
sending: "Se trimite..."
cancel: "Anulează"
save: "Salvează"
delay_1_sec: "1 secundă"
delay_3_sec: "3 secunde"
delay_5_sec: "5 secu... |
[
{
"context": "ored data when required\n#\n# adapted from a post by Dustin Sallings (@dustin on GitHub)\n# http://dustin.sallings.org/",
"end": 431,
"score": 0.9998815655708313,
"start": 416,
"tag": "NAME",
"value": "Dustin Sallings"
},
{
"context": "equired\n#\n# adapted from a post ... | src/mc-array.coffee | mgduk/mc-array | 0 | Promise = require 'bluebird'
# This module allows arrays of values to be stored in memcached
#
# Features include
# - values can be added and removed from the array with a single append call
# - doesn't require full set of values to be fetched to add or remove values
# - no locks are required to add/remove
# - aut... | 172291 | Promise = require 'bluebird'
# This module allows arrays of values to be stored in memcached
#
# Features include
# - values can be added and removed from the array with a single append call
# - doesn't require full set of values to be fetched to add or remove values
# - no locks are required to add/remove
# - aut... | true | Promise = require 'bluebird'
# This module allows arrays of values to be stored in memcached
#
# Features include
# - values can be added and removed from the array with a single append call
# - doesn't require full set of values to be fetched to add or remove values
# - no locks are required to add/remove
# - aut... |
[
{
"context": " DOM.input\n name: 'userName'\n initialValue: @props.userName\n",
"end": 648,
"score": 0.994084358215332,
"start": 640,
"tag": "USERNAME",
"value": "userName"
},
{
"context": " DOM.input\n ty... | src/components/login.coffee | brianshaler/kerplunk-admin | 0 | React = require 'react'
{DOM} = React
module.exports = React.createFactory React.createClass
render: ->
DOM.section
className: 'content login-form'
,
DOM.h1 null, 'Login!'
DOM.p null,
DOM.form
method: 'post'
action: '/admin/login'
,
DOM.input
... | 167514 | React = require 'react'
{DOM} = React
module.exports = React.createFactory React.createClass
render: ->
DOM.section
className: 'content login-form'
,
DOM.h1 null, 'Login!'
DOM.p null,
DOM.form
method: 'post'
action: '/admin/login'
,
DOM.input
... | true | React = require 'react'
{DOM} = React
module.exports = React.createFactory React.createClass
render: ->
DOM.section
className: 'content login-form'
,
DOM.h1 null, 'Login!'
DOM.p null,
DOM.form
method: 'post'
action: '/admin/login'
,
DOM.input
... |
[
{
"context": " = @slackbot.robot\n @slackbot.options.token = \"ABC123\"\n @slackbot.run() -\n logger.logs[\"error\"",
"end": 783,
"score": 0.7577043175697327,
"start": 780,
"tag": "KEY",
"value": "ABC"
},
{
"context": "@slackbot.robot\n @slackbot.options.token = \"ABC123\... | test/bot.coffee | EdtechFoundry/hubot-slack | 0 | should = require 'should'
{Adapter, TextMessage, EnterMessage, LeaveMessage, TopicMessage, Message, CatchAllMessage} = require.main.require 'hubot'
describe 'Adapter', ->
it 'Should initialize with a robot', ->
@slackbot.robot.should.eql @stubs.robot
describe 'Login', ->
it 'Should set the robot name', ->
... | 219421 | should = require 'should'
{Adapter, TextMessage, EnterMessage, LeaveMessage, TopicMessage, Message, CatchAllMessage} = require.main.require 'hubot'
describe 'Adapter', ->
it 'Should initialize with a robot', ->
@slackbot.robot.should.eql @stubs.robot
describe 'Login', ->
it 'Should set the robot name', ->
... | true | should = require 'should'
{Adapter, TextMessage, EnterMessage, LeaveMessage, TopicMessage, Message, CatchAllMessage} = require.main.require 'hubot'
describe 'Adapter', ->
it 'Should initialize with a robot', ->
@slackbot.robot.should.eql @stubs.robot
describe 'Login', ->
it 'Should set the robot name', ->
... |
[
{
"context": " blog_path: 'blog/'\n blog_name: \"My Blog\"\n default_author: \"Admin\"\n ",
"end": 195,
"score": 0.6276156306266785,
"start": 193,
"tag": "NAME",
"value": "My"
},
{
"context": " blog_name: \"My Blog\"\n default_author: \"Adm... | Gruntfile.coffee | ocupop/grunt-ocublog | 0 | module.exports = (grunt)->
grunt.initConfig {
pkg: grunt.file.readJSON 'package.json'
ocublog: {
dist: {
options: {
blog_path: 'blog/'
blog_name: "My Blog"
default_author: "Admin"
site_url: "http://www.example.com/"
rss: true
}
... | 205738 | module.exports = (grunt)->
grunt.initConfig {
pkg: grunt.file.readJSON 'package.json'
ocublog: {
dist: {
options: {
blog_path: 'blog/'
blog_name: "<NAME> Blog"
default_author: "<NAME>"
site_url: "http://www.example.com/"
rss: true
}
... | true | module.exports = (grunt)->
grunt.initConfig {
pkg: grunt.file.readJSON 'package.json'
ocublog: {
dist: {
options: {
blog_path: 'blog/'
blog_name: "PI:NAME:<NAME>END_PI Blog"
default_author: "PI:NAME:<NAME>END_PI"
site_url: "http://www.example.com/"
... |
[
{
"context": "config.port\n path: config.path\n token: @token.get()\n\n @termView = new TerminalView(@term, nu",
"end": 1780,
"score": 0.4346208870410919,
"start": 1775,
"tag": "KEY",
"value": "token"
},
{
"context": ".port\n path: config.path\n token: @token.g... | lib/learn-ide.coffee | learn-co/mastermind | 1 | localStorage = require './local-storage'
{CompositeDisposable} = require 'atom'
Terminal = require './terminal'
TerminalView = require './views/terminal'
StatusView = require './views/status'
{BrowserWindow} = require 'remote'
{EventEmitter} = require 'events'
Notifier = require './notifier'
atomHelper = require './ato... | 189812 | localStorage = require './local-storage'
{CompositeDisposable} = require 'atom'
Terminal = require './terminal'
TerminalView = require './views/terminal'
StatusView = require './views/status'
{BrowserWindow} = require 'remote'
{EventEmitter} = require 'events'
Notifier = require './notifier'
atomHelper = require './ato... | true | localStorage = require './local-storage'
{CompositeDisposable} = require 'atom'
Terminal = require './terminal'
TerminalView = require './views/terminal'
StatusView = require './views/status'
{BrowserWindow} = require 'remote'
{EventEmitter} = require 'events'
Notifier = require './notifier'
atomHelper = require './ato... |
[
{
"context": "game -> REFUSING JOIN: A player #{@.decoded_token.d.id.blue} is attempting to join a game as #{playerId.",
"end": 5757,
"score": 0.5616366267204285,
"start": 5753,
"tag": "EMAIL",
"value": "d.id"
},
{
"context": "\t\tplayerId: playerId,\n\t\t\t\tusername: spectateToken.... | server/game.coffee | willroberts/duelyst | 0 | ###
Game Server Pieces
###
fs = require 'fs'
os = require 'os'
util = require 'util'
_ = require 'underscore'
colors = require 'colors' # used for console message coloring
jwt = require 'jsonwebtoken'
io = require 'socket.io'
ioJwt = require 'socketio-jwt'
Promise = require 'bluebird'
kue = require 'kue'
moment = requi... | 183371 | ###
Game Server Pieces
###
fs = require 'fs'
os = require 'os'
util = require 'util'
_ = require 'underscore'
colors = require 'colors' # used for console message coloring
jwt = require 'jsonwebtoken'
io = require 'socket.io'
ioJwt = require 'socketio-jwt'
Promise = require 'bluebird'
kue = require 'kue'
moment = requi... | true | ###
Game Server Pieces
###
fs = require 'fs'
os = require 'os'
util = require 'util'
_ = require 'underscore'
colors = require 'colors' # used for console message coloring
jwt = require 'jsonwebtoken'
io = require 'socket.io'
ioJwt = require 'socketio-jwt'
Promise = require 'bluebird'
kue = require 'kue'
moment = requi... |
[
{
"context": "e: 'Place'\n\n Author = createModel\n name: 'Author'\n connection: createClient()\n\n Book = cre",
"end": 304,
"score": 0.814221978187561,
"start": 298,
"tag": "NAME",
"value": "Author"
},
{
"context": " minItems: 0\n\n fitzgerald = Author.create ... | ExampleZukaiRestApi/node_modules/zukai/test/default-plugins.coffee | radjivC/interaction-node-riak | 0 | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel, plugins} = require '../src'
Place = Author = Book = Cover = null
connection = null
describe 'Default Plugins', ->
beforeEach (done)->
Place = createModel
name: 'Place'
Author = createModel
name: 'Author'
connecti... | 75788 | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel, plugins} = require '../src'
Place = Author = Book = Cover = null
connection = null
describe 'Default Plugins', ->
beforeEach (done)->
Place = createModel
name: 'Place'
Author = createModel
name: '<NAME>'
connecti... | true | assert = require 'assert'
{createClient} = require 'riakpbc'
{createModel, plugins} = require '../src'
Place = Author = Book = Cover = null
connection = null
describe 'Default Plugins', ->
beforeEach (done)->
Place = createModel
name: 'Place'
Author = createModel
name: 'PI:NAME:<NAME>END_PI'
... |
[
{
"context": "ms\n body :\n password : generateRandomString()\n recoveryToken : ''\n\n request.post re",
"end": 1529,
"score": 0.8977211117744446,
"start": 1509,
"tag": "PASSWORD",
"value": "generateRandomString"
},
{
"context": " password... | servers/lib/server/handlers/reset.test.coffee | ezgikaysi/koding | 1 | { async
expect
request
generateRandomEmail
generateRandomString
generateRandomUsername
checkBongoConnectivity } = require '../../../testhelper'
{ testCsrfToken } = require '../../../testhelper/handler'
{ defaultExpiryPeriod
generateResetRequestParams } = require '../../../testhel... | 26081 | { async
expect
request
generateRandomEmail
generateRandomString
generateRandomUsername
checkBongoConnectivity } = require '../../../testhelper'
{ testCsrfToken } = require '../../../testhelper/handler'
{ defaultExpiryPeriod
generateResetRequestParams } = require '../../../testhel... | true | { async
expect
request
generateRandomEmail
generateRandomString
generateRandomUsername
checkBongoConnectivity } = require '../../../testhelper'
{ testCsrfToken } = require '../../../testhelper/handler'
{ defaultExpiryPeriod
generateResetRequestParams } = require '../../../testhel... |
[
{
"context": "lution timer polyfill with Date fallback\n @author Daniel Lamb <dlamb.open.source@gmail.com>\n###\nperfnow = (glob",
"end": 127,
"score": 0.9998614192008972,
"start": 116,
"tag": "NAME",
"value": "Daniel Lamb"
},
{
"context": "olyfill with Date fallback\n @author Dani... | perfnow.coffee | daniellmb/perfnow.js | 41 | ###*
@file perfnow is a 0.1 kb global.performance.now high resolution timer polyfill with Date fallback
@author Daniel Lamb <dlamb.open.source@gmail.com>
###
perfnow = (global) ->
# make sure we have an object to work with
global.performance = {} unless "performance" of global
perf = global.performance
# h... | 45688 | ###*
@file perfnow is a 0.1 kb global.performance.now high resolution timer polyfill with Date fallback
@author <NAME> <<EMAIL>>
###
perfnow = (global) ->
# make sure we have an object to work with
global.performance = {} unless "performance" of global
perf = global.performance
# handle vendor prefixing
... | true | ###*
@file perfnow is a 0.1 kb global.performance.now high resolution timer polyfill with Date fallback
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
perfnow = (global) ->
# make sure we have an object to work with
global.performance = {} unless "performance" of global
perf = global.performance
... |
[
{
"context": "d Slow':\n author: 'Daniel Kahneman'\n publisher: 'Farr",
"end": 338,
"score": 0.9998920559883118,
"start": 323,
"tag": "NAME",
"value": "Daniel Kahneman"
},
{
"context": "eality':\n ... | general/locco/workflow.spec.coffee | DrJekyllandMrHyde/chocolate | 41 | unless window?
Workflow = require '../../general/locco/workflow'
librarySpace =
Categories:
Science:
Collections:
Mathematics:
Books:
'Thinking, Fast and Slow':
author... | 2779 | unless window?
Workflow = require '../../general/locco/workflow'
librarySpace =
Categories:
Science:
Collections:
Mathematics:
Books:
'Thinking, Fast and Slow':
author... | true | unless window?
Workflow = require '../../general/locco/workflow'
librarySpace =
Categories:
Science:
Collections:
Mathematics:
Books:
'Thinking, Fast and Slow':
author... |
[
{
"context": ".test(fieldName)\n key = rowName.replace('▲','') \n {指标名称, 单位} = rowObject\n ",
"end": 531,
"score": 0.575004518032074,
"start": 530,
"tag": "KEY",
"value": "▲"
}
] | analyze/indicator.coffee | Tostig0916/hqcoffee | 2 | {JSONUtils} = require './jsonUtils'
# 仅用于建水县人民医院国考填报数据表测试,通用的class 见 dimension.coffee
class SimpleIndicator
# 一个指标object仅含一年的一个数值,符合一物一用原则
@fromJSONData: (funcOpts={}) ->
jsonizedData = JSONUtils.getJSON(funcOpts)
histdata = new HistoricData()
# sheetName 是单位名,例如"医院",或"普外科"
# rowName 是指标名称... | 147851 | {JSONUtils} = require './jsonUtils'
# 仅用于建水县人民医院国考填报数据表测试,通用的class 见 dimension.coffee
class SimpleIndicator
# 一个指标object仅含一年的一个数值,符合一物一用原则
@fromJSONData: (funcOpts={}) ->
jsonizedData = JSONUtils.getJSON(funcOpts)
histdata = new HistoricData()
# sheetName 是单位名,例如"医院",或"普外科"
# rowName 是指标名称... | true | {JSONUtils} = require './jsonUtils'
# 仅用于建水县人民医院国考填报数据表测试,通用的class 见 dimension.coffee
class SimpleIndicator
# 一个指标object仅含一年的一个数值,符合一物一用原则
@fromJSONData: (funcOpts={}) ->
jsonizedData = JSONUtils.getJSON(funcOpts)
histdata = new HistoricData()
# sheetName 是单位名,例如"医院",或"普外科"
# rowName 是指标名称... |
[
{
"context": "ll\n finished = false\n options.server ?= \"http://127.0.0.1:#{PORT}\"\n options.level ?= 'info'\n new Dredd(op",
"end": 755,
"score": 0.9996839165687561,
"start": 746,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": " ->\n res.json [type: 'bulldo... | test/integration/dredd-test.coffee | KissPeter/dredd | 1 | {assert} = require 'chai'
sinon = require 'sinon'
express = require 'express'
clone = require 'clone'
fs = require 'fs'
bodyParser = require 'body-parser'
proxyquire = require('proxyquire').noCallThru()
loggerStub = require '../../src/logger'
PORT = 9876
exitStatus = null
stderr = ''
stdout = ''
addHooksStub = pr... | 85845 | {assert} = require 'chai'
sinon = require 'sinon'
express = require 'express'
clone = require 'clone'
fs = require 'fs'
bodyParser = require 'body-parser'
proxyquire = require('proxyquire').noCallThru()
loggerStub = require '../../src/logger'
PORT = 9876
exitStatus = null
stderr = ''
stdout = ''
addHooksStub = pr... | true | {assert} = require 'chai'
sinon = require 'sinon'
express = require 'express'
clone = require 'clone'
fs = require 'fs'
bodyParser = require 'body-parser'
proxyquire = require('proxyquire').noCallThru()
loggerStub = require '../../src/logger'
PORT = 9876
exitStatus = null
stderr = ''
stdout = ''
addHooksStub = pr... |
[
{
"context": "ne-Forms chosen editor 1.0.3\n\n Copyright (c) 2017 Tomasz Jakub Rup\n\n https://github.com/tomi77/backbone-forms-chose",
"end": 79,
"score": 0.9998682737350464,
"start": 63,
"tag": "NAME",
"value": "Tomasz Jakub Rup"
},
{
"context": "t (c) 2017 Tomasz Jakub Rup\n\n ... | src/bbf-chosen.coffee | tomi77/backbone-forms-chosen | 0 | ###
Backbone-Forms chosen editor 1.0.3
Copyright (c) 2017 Tomasz Jakub Rup
https://github.com/tomi77/backbone-forms-chosen
Released under the MIT license
###
((root, factory) ->
### istanbul ignore next ###
switch
when typeof define is 'function' and define.amd
define ['backbone-forms', 'chose... | 132623 | ###
Backbone-Forms chosen editor 1.0.3
Copyright (c) 2017 <NAME>
https://github.com/tomi77/backbone-forms-chosen
Released under the MIT license
###
((root, factory) ->
### istanbul ignore next ###
switch
when typeof define is 'function' and define.amd
define ['backbone-forms', 'chosen'], facto... | true | ###
Backbone-Forms chosen editor 1.0.3
Copyright (c) 2017 PI:NAME:<NAME>END_PI
https://github.com/tomi77/backbone-forms-chosen
Released under the MIT license
###
((root, factory) ->
### istanbul ignore next ###
switch
when typeof define is 'function' and define.amd
define ['backbone-forms', 'c... |
[
{
"context": "----------------\n\tDesenvolvido em CoffeeScript por Fabiane Lima\n\n\tLicença: https://opensource.org/licenses/MIT\n##",
"end": 112,
"score": 0.9999039173126221,
"start": 100,
"tag": "NAME",
"value": "Fabiane Lima"
}
] | assets/js/script.coffee | fabianelima/Manzana | 0 | ###
MANZANA v0.4
----------------------------------------------
Desenvolvido em CoffeeScript por Fabiane Lima
Licença: https://opensource.org/licenses/MIT
###
# ----- Pré-carregamento das imagens ----- #
imgs = [
'assets/img/help.svg'
'assets/img/audio.svg'
'assets/img/audio-off.svg'
]
preload = (imgs) ->
co... | 161522 | ###
MANZANA v0.4
----------------------------------------------
Desenvolvido em CoffeeScript por <NAME>
Licença: https://opensource.org/licenses/MIT
###
# ----- Pré-carregamento das imagens ----- #
imgs = [
'assets/img/help.svg'
'assets/img/audio.svg'
'assets/img/audio-off.svg'
]
preload = (imgs) ->
counter ... | true | ###
MANZANA v0.4
----------------------------------------------
Desenvolvido em CoffeeScript por PI:NAME:<NAME>END_PI
Licença: https://opensource.org/licenses/MIT
###
# ----- Pré-carregamento das imagens ----- #
imgs = [
'assets/img/help.svg'
'assets/img/audio.svg'
'assets/img/audio-off.svg'
]
preload = (imgs... |
[
{
"context": "u need + special system for clear alpha.\n# @author David Ronai / Makiopolis.com / @Makio64\n#\n\nStage = require('m",
"end": 115,
"score": 0.9998410940170288,
"start": 104,
"tag": "NAME",
"value": "David Ronai"
},
{
"context": "al system for clear alpha.\n# @author Dav... | src/coffee/makio/core/Stage3d.coffee | Makio64/pizzaparty_vj | 1 | #
# Stage3d for threejs & wagner with every basics you need + special system for clear alpha.
# @author David Ronai / Makiopolis.com / @Makio64
#
Stage = require('makio/core/Stage')
signals = require('signals')
class Stage3d
@camera = null
@scene = null
@renderer = null
@isInit = false
# postProcess with ... | 3206 | #
# Stage3d for threejs & wagner with every basics you need + special system for clear alpha.
# @author <NAME> / <EMAIL> / @Makio64
#
Stage = require('makio/core/Stage')
signals = require('signals')
class Stage3d
@camera = null
@scene = null
@renderer = null
@isInit = false
# postProcess with wagner
@pos... | true | #
# Stage3d for threejs & wagner with every basics you need + special system for clear alpha.
# @author PI:NAME:<NAME>END_PI / PI:EMAIL:<EMAIL>END_PI / @Makio64
#
Stage = require('makio/core/Stage')
signals = require('signals')
class Stage3d
@camera = null
@scene = null
@renderer = null
@isInit = false
# ... |
[
{
"context": "text onto HTML canvas elements\n\nWritten in 2013 by Karl Naylor <kpn103@yahoo.com>\n\nTo the extent possible under ",
"end": 106,
"score": 0.9998911619186401,
"start": 95,
"tag": "NAME",
"value": "Karl Naylor"
},
{
"context": " canvas elements\n\nWritten in 2013 by Kar... | src/content/coffee/handywriteOnCanvas/graphemes/lines.coffee | karlorg/phonetify | 1 | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by Karl Naylor <kpn103@yahoo.com>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed wit... | 148848 | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warra... | true | ###
handywriteOnCanvas - renders handywrite text onto HTML canvas elements
Written in 2013 by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is ... |
[
{
"context": "dules are consumed within other modules.\n# @author René Fermann\n###\n\n{default: Exports} = require '../eslint-plug",
"end": 136,
"score": 0.9998317956924438,
"start": 124,
"tag": "NAME",
"value": "René Fermann"
},
{
"context": " versions of the function.\n # https:/... | src/rules/no-unused-modules.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileOverview Ensures that modules contain exports and/or all
# modules are consumed within other modules.
# @author René Fermann
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{getFileExtensions} = require 'eslint-module-utils/ignore'
{default: resolve} = require 'eslint-module-utils/res... | 188898 | ###*
# @fileOverview Ensures that modules contain exports and/or all
# modules are consumed within other modules.
# @author <NAME>
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{getFileExtensions} = require 'eslint-module-utils/ignore'
{default: resolve} = require 'eslint-module-utils/resolve'
... | true | ###*
# @fileOverview Ensures that modules contain exports and/or all
# modules are consumed within other modules.
# @author PI:NAME:<NAME>END_PI
###
{default: Exports} = require '../eslint-plugin-import-export-map'
{getFileExtensions} = require 'eslint-module-utils/ignore'
{default: resolve} = require 'eslint-module-u... |
[
{
"context": "/publickey'\n .reply 200, { publicKey: 'this-definitely-will-not-work' }\n\n @sut.fetch \"http://localhost:#{0xd00d}/",
"end": 1042,
"score": 0.612917959690094,
"start": 1018,
"tag": "PASSWORD",
"value": "definitely-will-not-work"
}
] | test/fetch-spec.coffee | octoblu/fetch-meshblu-public-key | 0 | shmock = require 'shmock'
enableDestroy = require 'server-destroy'
NodeRSA = require 'node-rsa'
validPublicKey = require './valid-public-key.json'
FetchPublicKey = require '../'
describe 'Fetch', ->
beforeEach ->
@server = shmock 0xd00d
enableDestroy @server
@sut = new FetchPublicKey
a... | 97909 | shmock = require 'shmock'
enableDestroy = require 'server-destroy'
NodeRSA = require 'node-rsa'
validPublicKey = require './valid-public-key.json'
FetchPublicKey = require '../'
describe 'Fetch', ->
beforeEach ->
@server = shmock 0xd00d
enableDestroy @server
@sut = new FetchPublicKey
a... | true | shmock = require 'shmock'
enableDestroy = require 'server-destroy'
NodeRSA = require 'node-rsa'
validPublicKey = require './valid-public-key.json'
FetchPublicKey = require '../'
describe 'Fetch', ->
beforeEach ->
@server = shmock 0xd00d
enableDestroy @server
@sut = new FetchPublicKey
a... |
[
{
"context": "###\nStandalone Deferred\nCopyright 2012 Otto Vehviläinen\nReleased under MIT license\n\nThis is a standalone ",
"end": 55,
"score": 0.9998805522918701,
"start": 39,
"tag": "NAME",
"value": "Otto Vehviläinen"
}
] | src/Deferred.coffee | Mumakil/Standalone-Deferred | 5 | ###
Standalone Deferred
Copyright 2012 Otto Vehviläinen
Released under MIT license
This is a standalone implementation of the wonderful jQuery.Deferred API.
The documentation here is only for quick reference, for complete api please
see the great work of the original project:
http://api.jquery.com/category/deferred-o... | 93420 | ###
Standalone Deferred
Copyright 2012 <NAME>
Released under MIT license
This is a standalone implementation of the wonderful jQuery.Deferred API.
The documentation here is only for quick reference, for complete api please
see the great work of the original project:
http://api.jquery.com/category/deferred-object/
###... | true | ###
Standalone Deferred
Copyright 2012 PI:NAME:<NAME>END_PI
Released under MIT license
This is a standalone implementation of the wonderful jQuery.Deferred API.
The documentation here is only for quick reference, for complete api please
see the great work of the original project:
http://api.jquery.com/category/deferr... |
[
{
"context": " #\n # Author.\n #\n # Created by hector spc <hector@aerstudio.com>\n # Aer Studio \n # http:/",
"end": 43,
"score": 0.9028184413909912,
"start": 33,
"tag": "NAME",
"value": "hector spc"
},
{
"context": " #\n # Author.\n #\n # Created by hector spc <hector@aerstud... | src/collections/authors_collection.coffee | aerstudio/Phallanxpress | 1 | #
# Author.
#
# Created by hector spc <hector@aerstudio.com>
# Aer Studio
# http://www.aerstudio.com
#
# Sun Mar 04 2012
#
# collections/authors_collection.js.coffee
#
class Phallanxpress.Authors extends Phallanxpress.Collection
model: Phallanxpress.Author
parseTag: 'authors'
authorList: (opt... | 57298 | #
# Author.
#
# Created by <NAME> <<EMAIL>>
# Aer Studio
# http://www.aerstudio.com
#
# Sun Mar 04 2012
#
# collections/authors_collection.js.coffee
#
class Phallanxpress.Authors extends Phallanxpress.Collection
model: Phallanxpress.Author
parseTag: 'authors'
authorList: (options)->
@_wpA... | true | #
# Author.
#
# Created by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Aer Studio
# http://www.aerstudio.com
#
# Sun Mar 04 2012
#
# collections/authors_collection.js.coffee
#
class Phallanxpress.Authors extends Phallanxpress.Collection
model: Phallanxpress.Author
parseTag: 'authors'
auth... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.995168924331665,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-tls-npn-server-client.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... | 91534 | # 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": " userId = Accounts.createUser\n username: 'admin'\n password: 'admin'\n email: 'admin@proj",
"end": 132,
"score": 0.9546324610710144,
"start": 127,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "eateUser\n username: 'admin'\n password: ... | app/server/bootstrap/users.coffee | JSSolutions-Academy/Team-A | 0 | Meteor.startup ->
usersNum = Meteor.users.find().count()
unless usersNum
userId = Accounts.createUser
username: 'admin'
password: 'admin'
email: 'admin@projectx.com'
profile:
fullname: 'Maxim Grischuk'
Roles.addUsersToRoles userId, 'admin'
Winston.info "Added new admin us... | 15489 | Meteor.startup ->
usersNum = Meteor.users.find().count()
unless usersNum
userId = Accounts.createUser
username: 'admin'
password: '<PASSWORD>'
email: '<EMAIL>'
profile:
fullname: '<NAME>'
Roles.addUsersToRoles userId, 'admin'
Winston.info "Added new admin user: #{userId}"... | true | Meteor.startup ->
usersNum = Meteor.users.find().count()
unless usersNum
userId = Accounts.createUser
username: 'admin'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
email: 'PI:EMAIL:<EMAIL>END_PI'
profile:
fullname: 'PI:NAME:<NAME>END_PI'
Roles.addUsersToRoles userId, 'admin'
... |
[
{
"context": " else\n cmd = \"cd #{userfolder};git clone git@gist.github.com:#{gist.id}\"\n cmd = winshellCheck(cmd)\n ",
"end": 2583,
"score": 0.6968545317649841,
"start": 2564,
"tag": "EMAIL",
"value": "git@gist.github.com"
}
] | gist-cloner.coffee | enjalot/blocka-slurp | 20 |
fs = require 'fs'
d3 = require 'd3'
async = require 'async'
request = require 'request'
path = require 'path'
shell = require 'shelljs'
os = require 'os'
# we will log our progress in ES
elasticsearch = require('elasticsearch')
esConfig = require('./config.js').elasticsearch
client = new elasticsearch.Client esConfig... | 113539 |
fs = require 'fs'
d3 = require 'd3'
async = require 'async'
request = require 'request'
path = require 'path'
shell = require 'shelljs'
os = require 'os'
# we will log our progress in ES
elasticsearch = require('elasticsearch')
esConfig = require('./config.js').elasticsearch
client = new elasticsearch.Client esConfig... | true |
fs = require 'fs'
d3 = require 'd3'
async = require 'async'
request = require 'request'
path = require 'path'
shell = require 'shelljs'
os = require 'os'
# we will log our progress in ES
elasticsearch = require('elasticsearch')
esConfig = require('./config.js').elasticsearch
client = new elasticsearch.Client esConfig... |
[
{
"context": "PropType definitions in React components\n# @author Evgueni Naverniouk\n###\n'use strict'\n\n# -----------------------------",
"end": 108,
"score": 0.9998459219932556,
"start": 90,
"tag": "NAME",
"value": "Evgueni Naverniouk"
},
{
"context": "ers = this.props.users.find... | src/tests/rules/no-unused-prop-types.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Warn about unused PropType definitions in React components
# @author Evgueni Naverniouk
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require ... | 151172 | ###*
# @fileoverview Warn about unused PropType definitions in React components
# @author <NAME>
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules... | true | ###*
# @fileoverview Warn about unused PropType definitions in React components
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = requir... |
[
{
"context": "###\n# app.coffee\n# @author Sidharth Mishra\n# @description An example implementation of the s",
"end": 42,
"score": 0.9998809695243835,
"start": 27,
"tag": "NAME",
"value": "Sidharth Mishra"
}
] | src/cfs/app.coffee | sidmishraw/cedux | 1 | ###
# app.coffee
# @author Sidharth Mishra
# @description An example implementation of the same
# @created Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
# @last-modified Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
###
import * as cedux from './index'
# myReducer
myReducer = (state, action) ->
if action? and action.type?
... | 73593 | ###
# app.coffee
# @author <NAME>
# @description An example implementation of the same
# @created Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
# @last-modified Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
###
import * as cedux from './index'
# myReducer
myReducer = (state, action) ->
if action? and action.type?
console.... | true | ###
# app.coffee
# @author PI:NAME:<NAME>END_PI
# @description An example implementation of the same
# @created Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
# @last-modified Sun Nov 19 2017 23:35:06 GMT-0800 (PST)
###
import * as cedux from './index'
# myReducer
myReducer = (state, action) ->
if action? and action.type... |
[
{
"context": "ugin port of\n JavaScript Color Picker\n\n @author Honza Odvarko, http:#odvarko.cz\n @copyright Honza Odvarko\n @lic",
"end": 78,
"score": 0.9998941421508789,
"start": 65,
"tag": "NAME",
"value": "Honza Odvarko"
},
{
"context": "hor Honza Odvarko, http:#odvarko.cz... | vendor/assets/javascripts/jqcolor.coffee | PixieEngine/PixelEditor | 1 | ###
jQuery Plugin port of
JavaScript Color Picker
@author Honza Odvarko, http:#odvarko.cz
@copyright Honza Odvarko
@license http://www.gnu.org/copyleft/gpl.html GNU General Public License
@version 1.0.9
@link http://jscolor.com
@ported_by Daniel Moore http://strd6.com
@ported_by Matt Diebolt htt... | 94821 | ###
jQuery Plugin port of
JavaScript Color Picker
@author <NAME>, http:#odvarko.cz
@copyright <NAME>
@license http://www.gnu.org/copyleft/gpl.html GNU General Public License
@version 1.0.9
@link http://jscolor.com
@ported_by <NAME> http://strd6.com
@ported_by <NAME> http://pixieengine.com
###
#... | true | ###
jQuery Plugin port of
JavaScript Color Picker
@author PI:NAME:<NAME>END_PI, http:#odvarko.cz
@copyright PI:NAME:<NAME>END_PI
@license http://www.gnu.org/copyleft/gpl.html GNU General Public License
@version 1.0.9
@link http://jscolor.com
@ported_by PI:NAME:<NAME>END_PI http://strd6.com
@port... |
[
{
"context": "sel = 0\nsc_api_key='?client_id=0557caec313ae36a9d6a21841293da11'\n\nhttpGet = (theU",
"end": 31,
"score": 0.9768458604812622,
"start": 21,
"tag": "KEY",
"value": "client_id="
},
{
"context": "sel = 0\nsc_api_key='?client_id=0557caec313ae36a9d6a21841293da11'\n\nhttpGet ... | helper.coffee | ChipaKraken/angular-music | 2 | sel = 0
sc_api_key='?client_id=0557caec313ae36a9d6a21841293da11'
httpGet = (theUrl)->
xmlHttp = null
xmlHttp = new XMLHttpRequest()
xmlHttp.open('GET', theUrl, false)
xmlHttp.send(null)
xmlHttp.responseText
squerify = (img)->
img.replace('/252/','/126s/')
get_sim_name = (sim)->
arts = []
arts.push(sim[0].na... | 112925 | sel = 0
sc_api_key='?<KEY> <KEY>'
httpGet = (theUrl)->
xmlHttp = null
xmlHttp = new XMLHttpRequest()
xmlHttp.open('GET', theUrl, false)
xmlHttp.send(null)
xmlHttp.responseText
squerify = (img)->
img.replace('/252/','/126s/')
get_sim_name = (sim)->
arts = []
arts.push(sim[0].name)
arts.push(sim[1].name)
ar... | true | sel = 0
sc_api_key='?PI:KEY:<KEY>END_PI PI:KEY:<KEY>END_PI'
httpGet = (theUrl)->
xmlHttp = null
xmlHttp = new XMLHttpRequest()
xmlHttp.open('GET', theUrl, false)
xmlHttp.send(null)
xmlHttp.responseText
squerify = (img)->
img.replace('/252/','/126s/')
get_sim_name = (sim)->
arts = []
arts.push(sim[0].name)
... |
[
{
"context": "###\n# grunt/watch.coffee\n#\n# © 2014 Dan Nichols\n# See LICENSE for more details\n#\n# Define our wat",
"end": 47,
"score": 0.9996291995048523,
"start": 36,
"tag": "NAME",
"value": "Dan Nichols"
}
] | grunt/watch.coffee | dlnichols/h_media | 0 | ###
# grunt/watch.coffee
#
# © 2014 Dan Nichols
# See LICENSE for more details
#
# Define our watch configuration block for grunt
###
'use strict'
module.exports =
# Watch settings
# TODO: These need to be updated, they kinda work, but not entirely
js:
files: [ 'app/scripts/**/*.js' ]
tasks: [ 'newer:jsh... | 60002 | ###
# grunt/watch.coffee
#
# © 2014 <NAME>
# See LICENSE for more details
#
# Define our watch configuration block for grunt
###
'use strict'
module.exports =
# Watch settings
# TODO: These need to be updated, they kinda work, but not entirely
js:
files: [ 'app/scripts/**/*.js' ]
tasks: [ 'newer:jshint:s... | true | ###
# grunt/watch.coffee
#
# © 2014 PI:NAME:<NAME>END_PI
# See LICENSE for more details
#
# Define our watch configuration block for grunt
###
'use strict'
module.exports =
# Watch settings
# TODO: These need to be updated, they kinda work, but not entirely
js:
files: [ 'app/scripts/**/*.js' ]
tasks: [ '... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9758449196815491,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": "make the process\n# * hang. See https://github.com/joyent/node/issues/8065 and\n# * https://gi... | test/simple/test-timers-non-integer-delay.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... | 89342 | # 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": "_home_ethernet]\n\t\tType = ethernet\n\t\tNameservers = 8.8.8.8,8.8.4.4\n\n\t\t[service_home_wifi]\n\t\tType = wifi\n\t\tNa",
"end": 738,
"score": 0.9996111989021301,
"start": 731,
"tag": "IP_ADDRESS",
"value": "8.8.8.8"
},
{
"context": "hernet]\n\t\tType = ethernet\n\t... | app/src/app.coffee | resin-io-playground/resin-kitracom-web | 1 | Promise = require 'bluebird'
fs = Promise.promisifyAll(require('fs'))
express = require 'express'
bodyParser = require 'body-parser'
config = require './config'
utils = require './utils'
connman = require './connman'
hotspot = require './hotspot'
wifiScan = require './wifi-scan'
app = express()
app.use(bodyParser.j... | 166495 | Promise = require 'bluebird'
fs = Promise.promisifyAll(require('fs'))
express = require 'express'
bodyParser = require 'body-parser'
config = require './config'
utils = require './utils'
connman = require './connman'
hotspot = require './hotspot'
wifiScan = require './wifi-scan'
app = express()
app.use(bodyParser.j... | true | Promise = require 'bluebird'
fs = Promise.promisifyAll(require('fs'))
express = require 'express'
bodyParser = require 'body-parser'
config = require './config'
utils = require './utils'
connman = require './connman'
hotspot = require './hotspot'
wifiScan = require './wifi-scan'
app = express()
app.use(bodyParser.j... |
[
{
"context": "nly\"\n input: [\n token: \"testStatementB\"\n starts: 25\n ",
"end": 2582,
"score": 0.6273769736289978,
"start": 2578,
"tag": "KEY",
"value": "test"
},
{
"context": " input: [\n token: \"testStatement... | src/coffee/expression/parse/statement/findNext.spec.coffee | jameswilddev/influx7 | 1 | describe "expression", -> describe "parse", -> describe "statement", -> describe "findNext", ->
rewire = require "rewire"
describe "imports", ->
expressionParseStatementFindNext = rewire "./findNext"
it "expressionParseStatementFunctions", -> (expect expressionParseStatementFindNext.__get__ "exp... | 196161 | describe "expression", -> describe "parse", -> describe "statement", -> describe "findNext", ->
rewire = require "rewire"
describe "imports", ->
expressionParseStatementFindNext = rewire "./findNext"
it "expressionParseStatementFunctions", -> (expect expressionParseStatementFindNext.__get__ "exp... | true | describe "expression", -> describe "parse", -> describe "statement", -> describe "findNext", ->
rewire = require "rewire"
describe "imports", ->
expressionParseStatementFindNext = rewire "./findNext"
it "expressionParseStatementFunctions", -> (expect expressionParseStatementFindNext.__get__ "exp... |
[
{
"context": "f.createUser\n email: vm.email\n password: vm.password\n , (error, authData) ->\n if error\n ",
"end": 316,
"score": 0.9754844307899475,
"start": 305,
"tag": "PASSWORD",
"value": "vm.password"
},
{
"context": "assword\n \"email\": vm.email,\... | js/navctrl.coffee | AlexStory/thundurus | 0 | angular.module "thundurus"
.controller "NavController", (fbFactory, $scope, $rootScope) ->
vm = @
vm.showLog = ->
$ '.logform'
.toggleClass 'show'
return
ref = new Firebase 'https://thundurus.firebaseio.com/'
vm.register = ->
ref.createUser
email: vm.email
password: vm.password
... | 76877 | angular.module "thundurus"
.controller "NavController", (fbFactory, $scope, $rootScope) ->
vm = @
vm.showLog = ->
$ '.logform'
.toggleClass 'show'
return
ref = new Firebase 'https://thundurus.firebaseio.com/'
vm.register = ->
ref.createUser
email: vm.email
password: <PASSWORD>
... | true | angular.module "thundurus"
.controller "NavController", (fbFactory, $scope, $rootScope) ->
vm = @
vm.showLog = ->
$ '.logform'
.toggleClass 'show'
return
ref = new Firebase 'https://thundurus.firebaseio.com/'
vm.register = ->
ref.createUser
email: vm.email
password: PI:PASSWORD:<PA... |
[
{
"context": "\nnikita = require '@nikitajs/core'\n{tags, ssh, scratch, ruby} = require '../te",
"end": 28,
"score": 0.8301543593406677,
"start": 26,
"tag": "USERNAME",
"value": "js"
},
{
"context": "}/folder/id_rsa\"\n bits: 2048\n comment: 'nikita'\n , (err, {status}) ... | packages/tools/test/ssh/keygen.coffee | DanielJohnHarty/node-nikita | 1 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ruby} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.posix
describe 'tools.ssh.keygen', ->
they 'a new key', ({ssh}) ->
nikita
ssh: ssh
.tools.ssh.keygen
target: "#{scratch}/folder/id_rsa"
bits: 2... | 108753 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ruby} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.posix
describe 'tools.ssh.keygen', ->
they 'a new key', ({ssh}) ->
nikita
ssh: ssh
.tools.ssh.keygen
target: "#{scratch}/folder/id_rsa"
bits: 2... | true |
nikita = require '@nikitajs/core'
{tags, ssh, scratch, ruby} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.posix
describe 'tools.ssh.keygen', ->
they 'a new key', ({ssh}) ->
nikita
ssh: ssh
.tools.ssh.keygen
target: "#{scratch}/folder/id_rsa"
bits: 2... |
[
{
"context": "en 100 else 100 + lumn\n\n rooms.push\n nome: nome\n larg: larg\n comp: comp\n area: are",
"end": 2382,
"score": 0.8363430500030518,
"start": 2378,
"tag": "NAME",
"value": "nome"
}
] | senai-calculeirar/script.coffee | FelixLuciano/arquivo | 0 | $ ->
$ "input[ type='text' ]"
.each ->
$ this
.attr
onKeyup: "this.setAttribute('value', this.value )"
value: ""
.after "<label for='#{$( this ).attr('id')}' >\
#{$( this ).attr 'floatPlaceholder'}\
</label>"
rooms = []
textFile =
... | 200126 | $ ->
$ "input[ type='text' ]"
.each ->
$ this
.attr
onKeyup: "this.setAttribute('value', this.value )"
value: ""
.after "<label for='#{$( this ).attr('id')}' >\
#{$( this ).attr 'floatPlaceholder'}\
</label>"
rooms = []
textFile =
... | true | $ ->
$ "input[ type='text' ]"
.each ->
$ this
.attr
onKeyup: "this.setAttribute('value', this.value )"
value: ""
.after "<label for='#{$( this ).attr('id')}' >\
#{$( this ).attr 'floatPlaceholder'}\
</label>"
rooms = []
textFile =
... |
[
{
"context": "me format, format should be in the form of email : user@sample.com'\n\n\n LANG\n },{\n init:(elem, o",
"end": 2058,
"score": 0.9999216794967651,
"start": 2043,
"tag": "EMAIL",
"value": "user@sample.com"
}
] | modules/config_edit_item/config_edit_item.coffee | signonsridhar/sridhar_hbs | 0 | define(['bases/control',
'_',
'modules/dt_dialog/dt_dialog',
'modules/unassigned_bundle_selector/unassigned_bundle_selector',
'modules/config_edit_item/group/config_edit_item_group'
'modules/config_edit_item/line/config_edit_item_line'
'modules/add_to_call_group/add_to_ca... | 72118 | define(['bases/control',
'_',
'modules/dt_dialog/dt_dialog',
'modules/unassigned_bundle_selector/unassigned_bundle_selector',
'modules/config_edit_item/group/config_edit_item_group'
'modules/config_edit_item/line/config_edit_item_line'
'modules/add_to_call_group/add_to_ca... | true | define(['bases/control',
'_',
'modules/dt_dialog/dt_dialog',
'modules/unassigned_bundle_selector/unassigned_bundle_selector',
'modules/config_edit_item/group/config_edit_item_group'
'modules/config_edit_item/line/config_edit_item_line'
'modules/add_to_call_group/add_to_ca... |
[
{
"context": "ttp://ralphcrisostomo.net\n *\n * Copyright (c) 2014 Ralph Crisostomo\n * Licensed under the MIT license.\n###\n\n'use stri",
"end": 100,
"score": 0.9998898506164551,
"start": 84,
"tag": "NAME",
"value": "Ralph Crisostomo"
}
] | template.coffee | ralphcrisostomo/grunt-init-simple-web | 0 | ###
* grunt-init-simple-web
* 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 questi... | 50508 | ###
* grunt-init-simple-web
* 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 prompts... | true | ###
* grunt-init-simple-web
* 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 qu... |
[
{
"context": "lback', (done) ->\n flat = new Flat({name: 'Bob'})\n flat.save null, {\n success: (",
"end": 1891,
"score": 0.9992088675498962,
"start": 1888,
"tag": "NAME",
"value": "Bob"
},
{
"context": "l')\n assert.equal(flat.get('name'), 'Bob', ... | test/generators/conventions/callbacks.coffee | michaelBenin/backbone-orm | 1 | util = require 'util'
assert = require 'assert'
_ = require 'underscore'
Backbone = require 'backbone'
Queue = require '../../../lib/queue'
ModelCache = require('../../../lib/cache/singletons').ModelCache
QueryCache = require('../../../lib/cache/singletons').QueryCache
Fabricator = require '../../fabricator'
module.e... | 206013 | util = require 'util'
assert = require 'assert'
_ = require 'underscore'
Backbone = require 'backbone'
Queue = require '../../../lib/queue'
ModelCache = require('../../../lib/cache/singletons').ModelCache
QueryCache = require('../../../lib/cache/singletons').QueryCache
Fabricator = require '../../fabricator'
module.e... | true | util = require 'util'
assert = require 'assert'
_ = require 'underscore'
Backbone = require 'backbone'
Queue = require '../../../lib/queue'
ModelCache = require('../../../lib/cache/singletons').ModelCache
QueryCache = require('../../../lib/cache/singletons').QueryCache
Fabricator = require '../../fabricator'
module.e... |
[
{
"context": "turers'\n level_creator: 'Artisans'\n developer: 'Archmages'\n article_editor: 'Scribes'\n translator: 'Diplo",
"end": 2407,
"score": 0.8400089740753174,
"start": 2398,
"tag": "NAME",
"value": "Archmages"
},
{
"context": "sans'\n developer: 'Archmages'\n article_e... | server/models/User.coffee | cochee/codecombat | 1 | mongoose = require('mongoose')
jsonschema = require('../schemas/user')
crypto = require('crypto')
{salt, isProduction} = require('../../server_config')
UserSchema = new mongoose.Schema({
dateCreated:
type: Date
'default': Date.now
}, {strict: false})
UserSchema.pre('init', (next) ->
return next() unless j... | 136626 | mongoose = require('mongoose')
jsonschema = require('../schemas/user')
crypto = require('crypto')
{salt, isProduction} = require('../../server_config')
UserSchema = new mongoose.Schema({
dateCreated:
type: Date
'default': Date.now
}, {strict: false})
UserSchema.pre('init', (next) ->
return next() unless j... | true | mongoose = require('mongoose')
jsonschema = require('../schemas/user')
crypto = require('crypto')
{salt, isProduction} = require('../../server_config')
UserSchema = new mongoose.Schema({
dateCreated:
type: Date
'default': Date.now
}, {strict: false})
UserSchema.pre('init', (next) ->
return next() unless j... |
[
{
"context": "1, 2, 3, 4 ]\ndataB = [ 1.5, 1.3, 3.2 ]\ndataC = [ \"正一郎\", \"清次郎\", \"誠三郎\", \"征史郎\" ]\n\n# 偶数\ndataA_F = new Linq(",
"end": 103,
"score": 0.9990911483764648,
"start": 100,
"tag": "NAME",
"value": "正一郎"
},
{
"context": ", 4 ]\ndataB = [ 1.5, 1.3, 3.2 ]\ndataC = [ \"正一郎... | test/coffee/where.coffee | Lxsbw/linqjs | 0 | Linq = require('../../src/coffee')
dataA = [ 0, 1, 2, 3, 4 ]
dataB = [ 1.5, 1.3, 3.2 ]
dataC = [ "正一郎", "清次郎", "誠三郎", "征史郎" ]
# 偶数
dataA_F = new Linq(dataA).Where( (value) -> value % 2 == 0 ).ToArray()
# 小于2
dataB_F = new Linq(dataB).Where( (value) -> value < 2.0 ).ToArray()
# 长度小于5
dataC_F = new Linq(dataC).Where( ... | 78541 | Linq = require('../../src/coffee')
dataA = [ 0, 1, 2, 3, 4 ]
dataB = [ 1.5, 1.3, 3.2 ]
dataC = [ "<NAME>", "<NAME>", "<NAME>", "<NAME>" ]
# 偶数
dataA_F = new Linq(dataA).Where( (value) -> value % 2 == 0 ).ToArray()
# 小于2
dataB_F = new Linq(dataB).Where( (value) -> value < 2.0 ).ToArray()
# 长度小于5
dataC_F = new Linq(da... | true | Linq = require('../../src/coffee')
dataA = [ 0, 1, 2, 3, 4 ]
dataB = [ 1.5, 1.3, 3.2 ]
dataC = [ "PI:NAME:<NAME>END_PI", "PI:NAME:<NAME>END_PI", "PI:NAME:<NAME>END_PI", "PI:NAME:<NAME>END_PI" ]
# 偶数
dataA_F = new Linq(dataA).Where( (value) -> value % 2 == 0 ).ToArray()
# 小于2
dataB_F = new Linq(dataB).Where( (value) ... |
[
{
"context": "\nnikita = require '@nikitajs/core'\n{tags, ssh, scratch} = require '../test'\nth",
"end": 28,
"score": 0.8359941244125366,
"start": 23,
"tag": "USERNAME",
"value": "itajs"
},
{
"context": "1'\n config:\n 'environment.MY_KEY_1': 'my value 1'\n 'enviro... | packages/lxd/test/config/set.coffee | chibanemourad/node-nikita | 0 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.lxd
describe 'lxd.config.set', ->
they 'multiple keys', ({ssh}) ->
nikita
ssh: ssh
.lxd.delete
container: 'c1'
force: true
.lxd.init
image:... | 165952 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.lxd
describe 'lxd.config.set', ->
they 'multiple keys', ({ssh}) ->
nikita
ssh: ssh
.lxd.delete
container: 'c1'
force: true
.lxd.init
image:... | true |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.lxd
describe 'lxd.config.set', ->
they 'multiple keys', ({ssh}) ->
nikita
ssh: ssh
.lxd.delete
container: 'c1'
force: true
.lxd.init
image:... |
[
{
"context": "or-in loops without if statements inside\n# @author Nicholas C. Zakas\n###\n\n'use strict'\n\nisIf = (node) ->\n return node",
"end": 103,
"score": 0.9998432397842407,
"start": 86,
"tag": "NAME",
"value": "Nicholas C. Zakas"
}
] | src/rules/guard-for-in.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Rule to flag for-in loops without if statements inside
# @author Nicholas C. Zakas
###
'use strict'
isIf = (node) ->
return node if node.type is 'IfStatement'
return node.expression if (
node.type is 'ExpressionStatement' and
node.expression.type is 'ConditionalExpression'
)
no
#... | 164752 | ###*
# @fileoverview Rule to flag for-in loops without if statements inside
# @author <NAME>
###
'use strict'
isIf = (node) ->
return node if node.type is 'IfStatement'
return node.expression if (
node.type is 'ExpressionStatement' and
node.expression.type is 'ConditionalExpression'
)
no
#-----------... | true | ###*
# @fileoverview Rule to flag for-in loops without if statements inside
# @author PI:NAME:<NAME>END_PI
###
'use strict'
isIf = (node) ->
return node if node.type is 'IfStatement'
return node.expression if (
node.type is 'ExpressionStatement' and
node.expression.type is 'ConditionalExpression'
)
no... |
[
{
"context": " #\n # Possible calls:\n #\n # @attribute \"firstname\"\n #\n # # Setting the type\n # @attribute ",
"end": 131,
"score": 0.597775936126709,
"start": 122,
"tag": "NAME",
"value": "firstname"
},
{
"context": "\n #\n # # Setting the type\n # @a... | src/server/models/mixins/attributes.coffee | komola/salad | 2 | module.exports =
ClassMethods:
# Add an attribute to this model
#
# Possible calls:
#
# @attribute "firstname"
#
# # Setting the type
# @attribute "firstname", type: "String"
attribute: (name, options) ->
@metadata().attributes or= {}
defaultOptions =
name: nam... | 224195 | module.exports =
ClassMethods:
# Add an attribute to this model
#
# Possible calls:
#
# @attribute "<NAME>"
#
# # Setting the type
# @attribute "<NAME>", type: "String"
attribute: (name, options) ->
@metadata().attributes or= {}
defaultOptions =
name: name
... | true | module.exports =
ClassMethods:
# Add an attribute to this model
#
# Possible calls:
#
# @attribute "PI:NAME:<NAME>END_PI"
#
# # Setting the type
# @attribute "PI:NAME:<NAME>END_PI", type: "String"
attribute: (name, options) ->
@metadata().attributes or= {}
defaultOptio... |
[
{
"context": "shed_at: new Date().toISOString(), author: name: 'Kana'),\n new Article(title: 'World', published_",
"end": 1027,
"score": 0.9994888305664062,
"start": 1023,
"tag": "NAME",
"value": "Kana"
},
{
"context": "shed_at: new Date().toISOString(), author: name: 'Kana')\... | apps/rss/test/instant_articles.coffee | l2succes/force | 1 | _ = require 'underscore'
fs = require 'fs'
iasTemplate = require('jade').compileFile(require.resolve '../templates/instant_articles.jade')
iaTemplate = require('jade').compileFile(require.resolve '../templates/instant_article.jade')
sd =
APP_URL: 'http://localhost'
{ fabricate } = require 'antigravity'
Article = requ... | 126329 | _ = require 'underscore'
fs = require 'fs'
iasTemplate = require('jade').compileFile(require.resolve '../templates/instant_articles.jade')
iaTemplate = require('jade').compileFile(require.resolve '../templates/instant_article.jade')
sd =
APP_URL: 'http://localhost'
{ fabricate } = require 'antigravity'
Article = requ... | true | _ = require 'underscore'
fs = require 'fs'
iasTemplate = require('jade').compileFile(require.resolve '../templates/instant_articles.jade')
iaTemplate = require('jade').compileFile(require.resolve '../templates/instant_article.jade')
sd =
APP_URL: 'http://localhost'
{ fabricate } = require 'antigravity'
Article = requ... |
[
{
"context": "ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])(\n\t\t(?:1(?:[\\s\\xa0]*Giovanni|John|[\\s\\xa0]*Gv)|(?:1\\xB0|I)[\\s\\xa0]*Giovanni|(?",
"end": 14954,
"score": 0.9063640236854553,
"start": 14946,
"tag": "NAME",
"value": "Giovanni"
},
{
"context": "ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])(\n\t\t(?:1(?:[\\... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/it/regexps.coffee | saiba-mais/bible-lessons | 149 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5J... | 154367 | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5J... | true | bcv_parser::regexps.space = "[\\s\\xa0]"
bcv_parser::regexps.escaped_passage = ///
(?:^ | [^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ] ) # Beginning of string or not in the middle of a word or immediately following another book. Only count a book if it's part of a sequence: `Matt5John3` is OK, but not `1Matt5J... |
[
{
"context": "orker\n mqttUri: 'mqtt://meshblu:judgementday@127.0.0.1'\n jobTimeoutSeconds: 1\n jobLogRedisUri:",
"end": 473,
"score": 0.9996204376220703,
"start": 464,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "ient = new Meshblumqtt uuid: 'some-uuid',... | test/whoami-spec.coffee | octoblu/meshblu-core-worker-mqtt | 0 | Worker = require '../src/worker'
Meshblumqtt = require 'meshblu-mqtt'
RedisNS = require '@octoblu/redis-ns'
redis = require 'ioredis'
JobManager = require 'meshblu-core-job-manager'
async = require 'async'
describe 'whoami', ->
beforeEach ->
@jobManager = new JobManager
client: new R... | 45722 | Worker = require '../src/worker'
Meshblumqtt = require 'meshblu-mqtt'
RedisNS = require '@octoblu/redis-ns'
redis = require 'ioredis'
JobManager = require 'meshblu-core-job-manager'
async = require 'async'
describe 'whoami', ->
beforeEach ->
@jobManager = new JobManager
client: new R... | true | Worker = require '../src/worker'
Meshblumqtt = require 'meshblu-mqtt'
RedisNS = require '@octoblu/redis-ns'
redis = require 'ioredis'
JobManager = require 'meshblu-core-job-manager'
async = require 'async'
describe 'whoami', ->
beforeEach ->
@jobManager = new JobManager
client: new R... |
[
{
"context": "ngodb_username = process.env.mongodb_username || \"admin\"\nmongodb_password = process.env.mongodb_password ",
"end": 89,
"score": 0.9957559108734131,
"start": 84,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "ngodb_password = process.env.mongodb_password || \"wh... | data-layer/collections/user.coffee | dfraser74/whoislikingyou | 0 | mongoose = require('mongoose')
mongodb_username = process.env.mongodb_username || "admin"
mongodb_password = process.env.mongodb_password || "whoislikingyou"
mongodb_port = process.env.mongodb_port || 10072
mongodb_host = process.env.mongodb_host || "alex.mongohq.com"
mongodb_database = process.env.mongodb_database ||... | 138679 | mongoose = require('mongoose')
mongodb_username = process.env.mongodb_username || "admin"
mongodb_password = process.env.mongodb_password || "<PASSWORD>"
mongodb_port = process.env.mongodb_port || 10072
mongodb_host = process.env.mongodb_host || "alex.mongohq.com"
mongodb_database = process.env.mongodb_database || "wh... | true | mongoose = require('mongoose')
mongodb_username = process.env.mongodb_username || "admin"
mongodb_password = process.env.mongodb_password || "PI:PASSWORD:<PASSWORD>END_PI"
mongodb_port = process.env.mongodb_port || 10072
mongodb_host = process.env.mongodb_host || "alex.mongohq.com"
mongodb_database = process.env.mongo... |
[
{
"context": "###\nCopyright 2014 Michael Krolikowski\n\nLicensed under the Apache License, Version 2.0 (",
"end": 38,
"score": 0.9986440539360046,
"start": 19,
"tag": "NAME",
"value": "Michael Krolikowski"
}
] | src/main/javascript/maincontroller.coffee | mkroli/shurl | 1 | ###
Copyright 2014 Michael Krolikowski
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 208917 | ###
Copyright 2014 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | true | ###
Copyright 2014 PI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
[
{
"context": "###\nCopyright 2016 Clemens Nylandsted Klokmose, Aarhus University\n\nLicensed under the Apache Lic",
"end": 46,
"score": 0.9998960494995117,
"start": 19,
"tag": "NAME",
"value": "Clemens Nylandsted Klokmose"
}
] | client_src/util.coffee | kar288/ddd | 0 | ###
Copyright 2016 Clemens Nylandsted Klokmose, Aarhus University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... | 211544 | ###
Copyright 2016 <NAME>, Aarhus University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | true | ###
Copyright 2016 PI:NAME:<NAME>END_PI, Aarhus University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
[
{
"context": " # Build the payload\n payload =\n name: \"Bugsnag\"\n client: config.apiKey\n email: \"bugsna",
"end": 341,
"score": 0.9983883500099182,
"start": 334,
"tag": "NAME",
"value": "Bugsnag"
},
{
"context": "ugsnag\"\n client: config.apiKey\n em... | plugins/uservoice/index.coffee | jacobmarshall-etc/bugsnag-notification-plugins | 0 | NotificationPlugin = require "../../notification-plugin"
class UserVoice extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
if event?.trigger?.type == "linkExistingIssue"
return callback(null, null)
return if event?.trigger?.type == "reopened"
# Build the payload
payload =... | 122416 | NotificationPlugin = require "../../notification-plugin"
class UserVoice extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
if event?.trigger?.type == "linkExistingIssue"
return callback(null, null)
return if event?.trigger?.type == "reopened"
# Build the payload
payload =... | true | NotificationPlugin = require "../../notification-plugin"
class UserVoice extends NotificationPlugin
@receiveEvent: (config, event, callback) ->
if event?.trigger?.type == "linkExistingIssue"
return callback(null, null)
return if event?.trigger?.type == "reopened"
# Build the payload
payload =... |
[
{
"context": "'number'\n\n saved = {}\n input = { name: 'jakob', age: 28 }\n\n promise(api).connect(connectio",
"end": 4076,
"score": 0.9967633485794067,
"start": 4071,
"tag": "NAME",
"value": "jakob"
},
{
"context": "should.be.a 'string'\n obj.name.should.eql '... | src/base.coffee | jakobmattsson/manikin | 0 | assert = require 'assert'
should = require 'should'
async = require 'async'
_ = require 'underscore'
core = require './core'
noErr = (cb) ->
(err, args...) ->
should.not.exist err
cb(args...) if cb
promise = core.promise
exports.runTests = (manikin, dropDatabase, connectionData) ->
it "should have the r... | 130911 | assert = require 'assert'
should = require 'should'
async = require 'async'
_ = require 'underscore'
core = require './core'
noErr = (cb) ->
(err, args...) ->
should.not.exist err
cb(args...) if cb
promise = core.promise
exports.runTests = (manikin, dropDatabase, connectionData) ->
it "should have the r... | true | assert = require 'assert'
should = require 'should'
async = require 'async'
_ = require 'underscore'
core = require './core'
noErr = (cb) ->
(err, args...) ->
should.not.exist err
cb(args...) if cb
promise = core.promise
exports.runTests = (manikin, dropDatabase, connectionData) ->
it "should have the r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.