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": "', [ () ->\n return {\n flutter: {\n name: 'Flutter'\n measures: 4,tempo: 120, beats: 4, resoluti",
"end": 77,
"score": 0.9972497820854187,
"start": 70,
"tag": "NAME",
"value": "Flutter"
},
{
"context": " }\n }\n }\n jonny: {\n name:... | src/scripts/services/presets_service.coffee | jakealbaugh/random_commander | 31 | app.service 'Presets', [ () ->
return {
flutter: {
name: 'Flutter'
measures: 4,tempo: 120, beats: 4, resolution: 16, root: 0
clefs: {
treble: {
values: [0,0,0,0,10]
intervals: [10,0,0,10,0,6,0,10,4,0,5,0]
chords: [10,0,0,0,0]
octaves: [5,10,5]
... | 9654 | app.service 'Presets', [ () ->
return {
flutter: {
name: '<NAME>'
measures: 4,tempo: 120, beats: 4, resolution: 16, root: 0
clefs: {
treble: {
values: [0,0,0,0,10]
intervals: [10,0,0,10,0,6,0,10,4,0,5,0]
chords: [10,0,0,0,0]
octaves: [5,10,5]
... | true | app.service 'Presets', [ () ->
return {
flutter: {
name: 'PI:NAME:<NAME>END_PI'
measures: 4,tempo: 120, beats: 4, resolution: 16, root: 0
clefs: {
treble: {
values: [0,0,0,0,10]
intervals: [10,0,0,10,0,6,0,10,4,0,5,0]
chords: [10,0,0,0,0]
octaves: ... |
[
{
"context": "###\n Pokemon Go(c) MITM node proxy\n by Michael Strassburger <codepoet@cpan.org>\n\n Plays with your displayed ",
"end": 61,
"score": 0.9998825788497925,
"start": 41,
"tag": "NAME",
"value": "Michael Strassburger"
},
{
"context": " Go(c) MITM node proxy\n by Michae... | example.changeLevel.coffee | BuloZB/pokemon-go-mitm-node | 393 | ###
Pokemon Go(c) MITM node proxy
by Michael Strassburger <codepoet@cpan.org>
Plays with your displayed level and XP
Be aware: this is just visible to you and won't gain you any special powers
###
PokemonGoMITM = require './lib/pokemon-go-mitm'
server = new PokemonGoMITM port: 8081
.addResponseHandler "Ge... | 126938 | ###
Pokemon Go(c) MITM node proxy
by <NAME> <<EMAIL>>
Plays with your displayed level and XP
Be aware: this is just visible to you and won't gain you any special powers
###
PokemonGoMITM = require './lib/pokemon-go-mitm'
server = new PokemonGoMITM port: 8081
.addResponseHandler "GetInventory", (data) ->
... | true | ###
Pokemon Go(c) MITM node proxy
by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
Plays with your displayed level and XP
Be aware: this is just visible to you and won't gain you any special powers
###
PokemonGoMITM = require './lib/pokemon-go-mitm'
server = new PokemonGoMITM port: 8081
.addResponseHandle... |
[
{
"context": "rom User\n\nSet of bot commands\n1. create sonar user test1\n2. delete sonar user test1\n3. create sonar projec",
"end": 942,
"score": 0.9627575874328613,
"start": 937,
"tag": "USERNAME",
"value": "test1"
},
{
"context": "ds\n1. create sonar user test1\n2. delete sonar ... | scripts/sonar/scripts-hipchat/Sonar.coffee | akash1233/OnBot_Demo | 4 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... | 223160 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... | true | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
# ... |
[
{
"context": "### (c) 2013 Maxim Litvinov ###\n\niw = 8\nih = 8\nCOLORS = 7\nDEG = Math.PI/180\n\n",
"end": 27,
"score": 0.9997703433036804,
"start": 13,
"tag": "NAME",
"value": "Maxim Litvinov"
}
] | 7/match3.coffee | metalim/21 | 0 | ### (c) 2013 Maxim Litvinov ###
iw = 8
ih = 8
COLORS = 7
DEG = Math.PI/180
styles = [
'blue'
'magenta'
'red'
'orange'
'yellow'
'green'
'white'
]
disabled = (e)->
e.preventDefault()
trace = (e)->
#console.log e.type,e
class Game
constructor:->
@canvas = document.getElementById 'canvas'
@ctx = @canvas.g... | 216840 | ### (c) 2013 <NAME> ###
iw = 8
ih = 8
COLORS = 7
DEG = Math.PI/180
styles = [
'blue'
'magenta'
'red'
'orange'
'yellow'
'green'
'white'
]
disabled = (e)->
e.preventDefault()
trace = (e)->
#console.log e.type,e
class Game
constructor:->
@canvas = document.getElementById 'canvas'
@ctx = @canvas.getContex... | true | ### (c) 2013 PI:NAME:<NAME>END_PI ###
iw = 8
ih = 8
COLORS = 7
DEG = Math.PI/180
styles = [
'blue'
'magenta'
'red'
'orange'
'yellow'
'green'
'white'
]
disabled = (e)->
e.preventDefault()
trace = (e)->
#console.log e.type,e
class Game
constructor:->
@canvas = document.getElementById 'canvas'
@ctx = @ca... |
[
{
"context": ".fillForm '#username': self.username, '#password': self.password\n else # login with a Windows Live acc",
"end": 6133,
"score": 0.9364743232727051,
"start": 6120,
"tag": "PASSWORD",
"value": "self.password"
},
{
"context": " the robot\n return if userID... | src/skypeweb.coffee | Suuperbot/hubot-skype-web | 51 | phantom = require 'phantom'
request = require 'request'
util = require 'util'
escape = require 'escape-html'
fs = require 'fs'
path = require 'path'
URL = require 'url-parse'
PageHelper = require './page_helper'
{Adapter, TextMessage, User} = require 'hubot'
class SkypeWebAdapter extends Adapter
... | 169177 | phantom = require 'phantom'
request = require 'request'
util = require 'util'
escape = require 'escape-html'
fs = require 'fs'
path = require 'path'
URL = require 'url-parse'
PageHelper = require './page_helper'
{Adapter, TextMessage, User} = require 'hubot'
class SkypeWebAdapter extends Adapter
... | true | phantom = require 'phantom'
request = require 'request'
util = require 'util'
escape = require 'escape-html'
fs = require 'fs'
path = require 'path'
URL = require 'url-parse'
PageHelper = require './page_helper'
{Adapter, TextMessage, User} = require 'hubot'
class SkypeWebAdapter extends Adapter
... |
[
{
"context": "i'\n country: 'US'\n }\n ]\n name: \"Mariane Ibrahim Gallery\"\n profile: {\n bio: 'A very elaborate bio ",
"end": 295,
"score": 0.9998893737792969,
"start": 272,
"tag": "NAME",
"value": "Mariane Ibrahim Gallery"
}
] | apps/artwork/components/partner/test/fixture.coffee | xtina-starr/microgravity | 0 | { fabricate } = require 'antigravity'
module.exports =
partner = fabricate('partner',
href: "/art-gallery"
locations: [
{
city: 'New York'
country: 'US'
},
{
city: 'Miami'
country: 'US'
}
]
name: "Mariane Ibrahim Gallery"
profile: {
bi... | 60102 | { fabricate } = require 'antigravity'
module.exports =
partner = fabricate('partner',
href: "/art-gallery"
locations: [
{
city: 'New York'
country: 'US'
},
{
city: 'Miami'
country: 'US'
}
]
name: "<NAME>"
profile: {
bio: 'A very elabor... | true | { fabricate } = require 'antigravity'
module.exports =
partner = fabricate('partner',
href: "/art-gallery"
locations: [
{
city: 'New York'
country: 'US'
},
{
city: 'Miami'
country: 'US'
}
]
name: "PI:NAME:<NAME>END_PI"
profile: {
bio: ... |
[
{
"context": ".authorize({\n type: \"redirect\",\n name: \"Birds Eye\",\n success: () =>\n @status(\"signed-in",
"end": 546,
"score": 0.9398490190505981,
"start": 537,
"tag": "NAME",
"value": "Birds Eye"
},
{
"context": ".get(\"me\", {},\n (user) =>\n ... | js/user.coffee | mikemoraned/birdseye | 1 | window.birdseye ?= {}
class User
status: ko.observable("signed-out")
name: ko.observable()
organisationIds: ko.observableArray()
constructor: ->
@signedIn = ko.computed(() =>
@status() == "signed-in"
)
freshSignIn: () =>
@_clear()
@signOut()
@_signIn()
signOut: () =>
@_clea... | 40966 | window.birdseye ?= {}
class User
status: ko.observable("signed-out")
name: ko.observable()
organisationIds: ko.observableArray()
constructor: ->
@signedIn = ko.computed(() =>
@status() == "signed-in"
)
freshSignIn: () =>
@_clear()
@signOut()
@_signIn()
signOut: () =>
@_clea... | true | window.birdseye ?= {}
class User
status: ko.observable("signed-out")
name: ko.observable()
organisationIds: ko.observableArray()
constructor: ->
@signedIn = ko.computed(() =>
@status() == "signed-in"
)
freshSignIn: () =>
@_clear()
@signOut()
@_signIn()
signOut: () =>
@_clea... |
[
{
"context": "eetings'])\n\nsetup(db)\n\nschema =\n user: {'username', 'password', 'avatar'}\n announcement: {'title',",
"end": 556,
"score": 0.9893514513969421,
"start": 548,
"tag": "USERNAME",
"value": "username"
},
{
"context": "setup(db)\n\nschema =\n user: {'u... | server/db.coffee | IliaSky/sky-learning | 2 | # module.exports = require('mongojs').connect('localhost/learning', ['news', 'lectures', 'tasks', 'topics', 'users'])
utils = require('./utils')
log = utils.log
ObjectID = require('mongodb').ObjectID
fs = require('fs')
setup = require('./db-setup')
config = require('../config/db.json')
_id = (x) -> if typeof x is 'str... | 30309 | # module.exports = require('mongojs').connect('localhost/learning', ['news', 'lectures', 'tasks', 'topics', 'users'])
utils = require('./utils')
log = utils.log
ObjectID = require('mongodb').ObjectID
fs = require('fs')
setup = require('./db-setup')
config = require('../config/db.json')
_id = (x) -> if typeof x is 'str... | true | # module.exports = require('mongojs').connect('localhost/learning', ['news', 'lectures', 'tasks', 'topics', 'users'])
utils = require('./utils')
log = utils.log
ObjectID = require('mongodb').ObjectID
fs = require('fs')
setup = require('./db-setup')
config = require('../config/db.json')
_id = (x) -> if typeof x is 'str... |
[
{
"context": "# Based on http:#bl.ocks.org/robschmuecker/7880033 which has the following copyright\n\n# Copy",
"end": 42,
"score": 0.9996268153190613,
"start": 29,
"tag": "USERNAME",
"value": "robschmuecker"
},
{
"context": "he following copyright\n\n# Copyright (c) 2013-2016, Rob Sc... | lib/tree-view.coffee | jasongilman/proto-repl-sayid | 23 | # Based on http:#bl.ocks.org/robschmuecker/7880033 which has the following copyright
# Copyright (c) 2013-2016, Rob Schmuecker
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistribution... | 67271 | # Based on http:#bl.ocks.org/robschmuecker/7880033 which has the following copyright
# Copyright (c) 2013-2016, <NAME>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of sou... | true | # Based on http:#bl.ocks.org/robschmuecker/7880033 which has the following copyright
# Copyright (c) 2013-2016, PI:NAME:<NAME>END_PI
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistri... |
[
{
"context": "# Copyright (c) Konode. All rights reserved.\n# This source code is subje",
"end": 22,
"score": 0.9710984826087952,
"start": 16,
"tag": "NAME",
"value": "Konode"
}
] | src/colors.coffee | LogicalOutcomes/KoNote | 1 | # Copyright (c) Konode. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Standardized color hex definitions
# TODO: Generate these colors programatically
Imm = require 'immutable'
# Darker... | 123963 | # Copyright (c) <NAME>. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Standardized color hex definitions
# TODO: Generate these colors programatically
Imm = require 'immutable'
# Darker... | true | # Copyright (c) PI:NAME:<NAME>END_PI. All rights reserved.
# This source code is subject to the terms of the Mozilla Public License, v. 2.0
# that can be found in the LICENSE file or at: http://mozilla.org/MPL/2.0
# Standardized color hex definitions
# TODO: Generate these colors programatically
Imm = require 'immuta... |
[
{
"context": "omer'\n 'editCustomerLogin'\n ]}\n {id:2, name:\"This is the second one\", permissions:[\n 'editAdminL",
"end": 186,
"score": 0.8106033802032471,
"start": 182,
"tag": "NAME",
"value": "This"
},
{
"context": "Info'\n 'editCustomerLogin'\n ]}\n {id:3, name:\"... | resources/assets/js/admininfo/data/profiles.coffee | xavierauana/sbctemp | 0 | module.exports = [
{id:1, name:'1', permission:[
'readcustomerinfo'
'readadmininfo'
'editCustomerInfo'
'deleteCustomer'
'editCustomerLogin'
]}
{id:2, name:"This is the second one", permissions:[
'editAdminLogin'
'createNewCustomer'
'editCustomerInfo'
'editCustomerLogin'
]}
... | 1028 | module.exports = [
{id:1, name:'1', permission:[
'readcustomerinfo'
'readadmininfo'
'editCustomerInfo'
'deleteCustomer'
'editCustomerLogin'
]}
{id:2, name:"<NAME> is the second one", permissions:[
'editAdminLogin'
'createNewCustomer'
'editCustomerInfo'
'editCustomerLogin'
]}
... | true | module.exports = [
{id:1, name:'1', permission:[
'readcustomerinfo'
'readadmininfo'
'editCustomerInfo'
'deleteCustomer'
'editCustomerLogin'
]}
{id:2, name:"PI:NAME:<NAME>END_PI is the second one", permissions:[
'editAdminLogin'
'createNewCustomer'
'editCustomerInfo'
'editCustom... |
[
{
"context": " ( done ) ->\n input._add [ {\n email: 'joe@example.com'\n login: 'joe'\n } ]\n \n mysq",
"end": 3023,
"score": 0.9999213814735413,
"start": 3008,
"tag": "EMAIL",
"value": "joe@example.com"
},
{
"context": "\n email: 'joe@example... | test/src/mysql.coffee | ReactiveSets/toubkal_mysql | 2 | ###
mysql.coffee
The MIT License (MIT)
Copyright (c) 2015, Reactive Sets
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
... | 101520 | ###
mysql.coffee
The MIT License (MIT)
Copyright (c) 2015, Reactive Sets
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
... | true | ###
mysql.coffee
The MIT License (MIT)
Copyright (c) 2015, Reactive Sets
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
... |
[
{
"context": "w Tests for class-methods-use-this rule.\n# @author Patrick Williams\n###\n\n'use strict'\n\n#-----------------------------",
"end": 86,
"score": 0.9994756579399109,
"start": 70,
"tag": "NAME",
"value": "Patrick Williams"
}
] | src/tests/rules/class-methods-use-this.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for class-methods-use-this rule.
# @author Patrick Williams
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/class-meth... | 45917 | ###*
# @fileoverview Tests for class-methods-use-this rule.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/class-methods-use-th... | true | ###*
# @fileoverview Tests for class-methods-use-this rule.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require '../../rules/class-... |
[
{
"context": " @item =\n imageUrl: '/foo.jpg',\n name: 'Foo Bar',\n href: '/foo/bar'\n detail: 'Item Deta",
"end": 301,
"score": 0.9947234392166138,
"start": 294,
"tag": "NAME",
"value": "Foo Bar"
},
{
"context": " $('.current-item__name').text().should.eql '... | src/desktop/apps/artist/test/components/current_show_auction/template.coffee | kanaabe/force | 1 | _ = require 'underscore'
jade = require 'jade'
fs = require 'fs'
benv = require 'benv'
{ resolve } = require 'path'
sinon = require 'sinon'
helpers = require '../../../view_helpers'
describe 'current auction or show', ->
before (done) ->
@item =
imageUrl: '/foo.jpg',
name: 'Foo Bar',
href: '/fo... | 50421 | _ = require 'underscore'
jade = require 'jade'
fs = require 'fs'
benv = require 'benv'
{ resolve } = require 'path'
sinon = require 'sinon'
helpers = require '../../../view_helpers'
describe 'current auction or show', ->
before (done) ->
@item =
imageUrl: '/foo.jpg',
name: '<NAME>',
href: '/foo... | true | _ = require 'underscore'
jade = require 'jade'
fs = require 'fs'
benv = require 'benv'
{ resolve } = require 'path'
sinon = require 'sinon'
helpers = require '../../../view_helpers'
describe 'current auction or show', ->
before (done) ->
@item =
imageUrl: '/foo.jpg',
name: 'PI:NAME:<NAME>END_PI',
... |
[
{
"context": "riteJSON\n 'my.host.org': \n username: 'richard'\n password: 'p@s$w0rd'\n 'my.second.ho",
"end": 348,
"score": 0.9996009469032288,
"start": 341,
"tag": "USERNAME",
"value": "richard"
},
{
"context": ": \n username: 'richard'\n passw... | test/saveFileSpec.coffee | h2non/node-authrc | 1 | fs = require 'fs'
{ expect } = require 'chai'
Authrc = require '../lib/authrc'
describe 'save/update data in file', ->
auth = null
authrcPath = "#{__dirname}/fixtures/tmp/.authrc"
writeJSON = (data) ->
fs.writeFileSync authrcPath, JSON.stringify(data, null, 4)
before ->
writeJSON
'my.host.org':... | 53047 | fs = require 'fs'
{ expect } = require 'chai'
Authrc = require '../lib/authrc'
describe 'save/update data in file', ->
auth = null
authrcPath = "#{__dirname}/fixtures/tmp/.authrc"
writeJSON = (data) ->
fs.writeFileSync authrcPath, JSON.stringify(data, null, 4)
before ->
writeJSON
'my.host.org':... | true | fs = require 'fs'
{ expect } = require 'chai'
Authrc = require '../lib/authrc'
describe 'save/update data in file', ->
auth = null
authrcPath = "#{__dirname}/fixtures/tmp/.authrc"
writeJSON = (data) ->
fs.writeFileSync authrcPath, JSON.stringify(data, null, 4)
before ->
writeJSON
'my.host.org':... |
[
{
"context": "quire '../lib/utils'\n\n\n# state = {person: {name: 'Elin'}}\n# changes = []\n# producerOLD = undef (draft) -",
"end": 317,
"score": 0.9990808367729187,
"start": 313,
"tag": "NAME",
"value": "Elin"
}
] | examples/playground/client/src/app/lifters.coffee | Cottin/popsiql-cache | 0 | {groupBy, indexBy, map, prop} = R = require 'ramda' # auto_require: ramda
{fchange, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːemail, ːid, ːavatar, ːname] = ['email', 'id', 'avatar', 'name'] #auto_sugar
immer = require 'immer'
{df} = require '../lib/utils'
# state = {person: {name: 'Elin'}}... | 122222 | {groupBy, indexBy, map, prop} = R = require 'ramda' # auto_require: ramda
{fchange, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːemail, ːid, ːavatar, ːname] = ['email', 'id', 'avatar', 'name'] #auto_sugar
immer = require 'immer'
{df} = require '../lib/utils'
# state = {person: {name: '<NAME>'... | true | {groupBy, indexBy, map, prop} = R = require 'ramda' # auto_require: ramda
{fchange, $, $$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːemail, ːid, ːavatar, ːname] = ['email', 'id', 'avatar', 'name'] #auto_sugar
immer = require 'immer'
{df} = require '../lib/utils'
# state = {person: {name: 'PI:NAME... |
[
{
"context": " @myModels = [\n new MyModel({id: 1, name: \"Joseane Fogaça\", phone_number: \"96789-6991\"}),\n new MyModel",
"end": 443,
"score": 0.999845564365387,
"start": 429,
"tag": "NAME",
"value": "Joseane Fogaça"
},
{
"context": " \"96789-6991\"}),\n new MyMod... | spec/javascripts/core/components/grid.spec.coffee | houzelio/houzel | 2 | import GridCmp from 'javascripts/core/components/grid'
import PageableCollection from "backbone.paginator"
describe("Grid Component", () ->
MyModel = Backbone.Model.extend({})
MyCollection = PageableCollection.extend({
model: MyModel
url: '/test'
state:
pageSize: 2
totalRecords: 3
})
... | 45716 | import GridCmp from 'javascripts/core/components/grid'
import PageableCollection from "backbone.paginator"
describe("Grid Component", () ->
MyModel = Backbone.Model.extend({})
MyCollection = PageableCollection.extend({
model: MyModel
url: '/test'
state:
pageSize: 2
totalRecords: 3
})
... | true | import GridCmp from 'javascripts/core/components/grid'
import PageableCollection from "backbone.paginator"
describe("Grid Component", () ->
MyModel = Backbone.Model.extend({})
MyCollection = PageableCollection.extend({
model: MyModel
url: '/test'
state:
pageSize: 2
totalRecords: 3
})
... |
[
{
"context": "e crypto', ->\n crypto = Crypto()\n password = 'this is a password'\n data =\n foo: 1\n bar: 2\n stuff:\n ",
"end": 189,
"score": 0.9992914795875549,
"start": 171,
"tag": "PASSWORD",
"value": "this is a password"
}
] | test/crypto.coffee | yinso/keybox | 1 | Crypto = require '../src/crypto'
{ assert } = require 'chai'
describe 'crypto test', ->
crypto = null
it 'can create crypto', ->
crypto = Crypto()
password = 'this is a password'
data =
foo: 1
bar: 2
stuff:
this_is: 'top_secret_to_be_encrypted'
encrypted = null
it 'can encrypt', (d... | 46304 | Crypto = require '../src/crypto'
{ assert } = require 'chai'
describe 'crypto test', ->
crypto = null
it 'can create crypto', ->
crypto = Crypto()
password = '<PASSWORD>'
data =
foo: 1
bar: 2
stuff:
this_is: 'top_secret_to_be_encrypted'
encrypted = null
it 'can encrypt', (done) ->
... | true | Crypto = require '../src/crypto'
{ assert } = require 'chai'
describe 'crypto test', ->
crypto = null
it 'can create crypto', ->
crypto = Crypto()
password = 'PI:PASSWORD:<PASSWORD>END_PI'
data =
foo: 1
bar: 2
stuff:
this_is: 'top_secret_to_be_encrypted'
encrypted = null
it 'can en... |
[
{
"context": "### Copyright (c) 2015 Magnus Leo. All rights reserved. ###\n\nlayers = require('./la",
"end": 33,
"score": 0.9998525381088257,
"start": 23,
"tag": "NAME",
"value": "Magnus Leo"
}
] | src/modules/event.coffee | magnusleo/Leo-Engine | 1 | ### Copyright (c) 2015 Magnus Leo. All rights reserved. ###
layers = require('./layers')
util = require('./util')
event = {}
module.exports = event
event.pressedKeys = []
event._keydown = (e) ->
unless e.ctrlKey or e.metaKey
e.preventDefault()
# Prevent keydown repeat
keyIndex = event.pressedKe... | 158117 | ### Copyright (c) 2015 <NAME>. All rights reserved. ###
layers = require('./layers')
util = require('./util')
event = {}
module.exports = event
event.pressedKeys = []
event._keydown = (e) ->
unless e.ctrlKey or e.metaKey
e.preventDefault()
# Prevent keydown repeat
keyIndex = event.pressedKeys.i... | true | ### Copyright (c) 2015 PI:NAME:<NAME>END_PI. All rights reserved. ###
layers = require('./layers')
util = require('./util')
event = {}
module.exports = event
event.pressedKeys = []
event._keydown = (e) ->
unless e.ctrlKey or e.metaKey
e.preventDefault()
# Prevent keydown repeat
keyIndex = event... |
[
{
"context": "tegration of a background-image uploader\n# Author: Guillaume Piot\n# Email: guillaume@cotidia.com\n# Company: Cotidia",
"end": 77,
"score": 0.9998760223388672,
"start": 63,
"tag": "NAME",
"value": "Guillaume Piot"
},
{
"context": "d-image uploader\n# Author: Guillaume ... | cotidia/cms/www/scripts/background-image.coffee | guillaumepiot/cotidia-cms | 0 | # Example integration of a background-image uploader
# Author: Guillaume Piot
# Email: guillaume@cotidia.com
# Company: Cotidia Ltd
# Licence: MIT
#
# The div holder is absolute positioned within the parent div
#
# <div class="[ article__image ] [ article-image ] [ editable ] [ parallax ]" data-name="article_image">
#... | 36881 | # Example integration of a background-image uploader
# Author: <NAME>
# Email: <EMAIL>
# Company: Cotidia Ltd
# Licence: MIT
#
# The div holder is absolute positioned within the parent div
#
# <div class="[ article__image ] [ article-image ] [ editable ] [ parallax ]" data-name="article_image">
# <div
# dat... | true | # Example integration of a background-image uploader
# Author: PI:NAME:<NAME>END_PI
# Email: PI:EMAIL:<EMAIL>END_PI
# Company: Cotidia Ltd
# Licence: MIT
#
# The div holder is absolute positioned within the parent div
#
# <div class="[ article__image ] [ article-image ] [ editable ] [ parallax ]" data-name="article_im... |
[
{
"context": "til\n\n The MIT License (MIT)\n\n Copyright (c) 2014 Yasuhiro Okuno\n\n Permission is hereby granted, free of charge, ",
"end": 88,
"score": 0.9998689889907837,
"start": 74,
"tag": "NAME",
"value": "Yasuhiro Okuno"
}
] | coffee_lib/crowdutil/subcmd/update-user.coffee | koma75/crowdutil | 1 | ###
@license
crowdutil
The MIT License (MIT)
Copyright (c) 2014 Yasuhiro Okuno
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... | 174900 | ###
@license
crowdutil
The MIT License (MIT)
Copyright (c) 2014 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... | true | ###
@license
crowdutil
The MIT License (MIT)
Copyright (c) 2014 PI:NAME:<NAME>END_PI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitati... |
[
{
"context": " hint: [\"WELCOME TO\", \"A JS13K 2018 GAME\\nBY MONSTERKODI\"]\n dots: [\n v:[0,0,1], b:0\n ",
"end": 727,
"score": 0.9500527381896973,
"start": 716,
"tag": "USERNAME",
"value": "MONSTERKODI"
},
{
"context": "'\n ,\n v:[-1,0... | Konnekt-master/coffee/lvls.coffee | sreechar/Games | 1 | ###
000 00000000 000 000 00000000 000 0000000
000 000 000 000 000 000 000
000 0000000 000 000 0000000 000 0000000
000 000 000 000 000 000
0000000 00000000 0 00000000 0000000 0000000
###
levelList = [
... | 171957 | ###
000 00000000 000 000 00000000 000 0000000
000 000 000 000 000 000 000
000 0000000 000 000 0000000 000 0000000
000 000 000 000 000 000
0000000 00000000 0 00000000 0000000 0000000
###
levelList = [
... | true | ###
000 00000000 000 000 00000000 000 0000000
000 000 000 000 000 000 000
000 0000000 000 000 0000000 000 0000000
000 000 000 000 000 000
0000000 00000000 0 00000000 0000000 0000000
###
levelList = [
... |
[
{
"context": "n = app.createModel \"UserModule\",\n email: \"admin@publish.org\"\n username: \"admin\"\n password: \"pas",
"end": 736,
"score": 0.9999209642410278,
"start": 719,
"tag": "EMAIL",
"value": "admin@publish.org"
},
{
"context": " email: \"admin@publ... | components/cms/sysmodules/user/server.coffee | dni/CCLV | 0 | auth = require "../../lib/utilities/auth"
passport = require "passport"
User = {}
module.exports.setup = (app, config)->
User = require('../../lib/model/Schema')(config)
app.get "/user", auth, (req, res)->
res.send app.user
# login
app.get '/login', (req, res)->
res.sendfile process.cwd()+'/componen... | 69547 | auth = require "../../lib/utilities/auth"
passport = require "passport"
User = {}
module.exports.setup = (app, config)->
User = require('../../lib/model/Schema')(config)
app.get "/user", auth, (req, res)->
res.send app.user
# login
app.get '/login', (req, res)->
res.sendfile process.cwd()+'/componen... | true | auth = require "../../lib/utilities/auth"
passport = require "passport"
User = {}
module.exports.setup = (app, config)->
User = require('../../lib/model/Schema')(config)
app.get "/user", auth, (req, res)->
res.send app.user
# login
app.get '/login', (req, res)->
res.sendfile process.cwd()+'/componen... |
[
{
"context": " databasePath: @databasePath\n password: password\n lifetime: lifetime\n\n stop: (callback) ->",
"end": 538,
"score": 0.9993552565574646,
"start": 530,
"tag": "PASSWORD",
"value": "password"
}
] | lib/password_server.coffee | jacobmarshall-etc/1pass | 0 | fs = require 'fs'
path = require 'path'
net = require 'net'
child_process = require 'child_process'
class PasswordServer
constructor: (@rcDir, @databasePath) ->
@socketPath = (rcDir + '/sockets/' + databasePath).replace(/\/+/g, '/')
start: (password, lifetime, callback) ->
@stop =>
child = child_pro... | 17688 | fs = require 'fs'
path = require 'path'
net = require 'net'
child_process = require 'child_process'
class PasswordServer
constructor: (@rcDir, @databasePath) ->
@socketPath = (rcDir + '/sockets/' + databasePath).replace(/\/+/g, '/')
start: (password, lifetime, callback) ->
@stop =>
child = child_pro... | true | fs = require 'fs'
path = require 'path'
net = require 'net'
child_process = require 'child_process'
class PasswordServer
constructor: (@rcDir, @databasePath) ->
@socketPath = (rcDir + '/sockets/' + databasePath).replace(/\/+/g, '/')
start: (password, lifetime, callback) ->
@stop =>
child = child_pro... |
[
{
"context": "ts =\n email:\n from: process.env.SMTP_FROM || 'admin@abc.com'\n opts:\n host: process.env.SMTP_HOST || '",
"end": 75,
"score": 0.9998924136161804,
"start": 62,
"tag": "EMAIL",
"value": "admin@abc.com"
}
] | backend/config/email.coffee | twhtanghk/rest.smtp | 0 | module.exports =
email:
from: process.env.SMTP_FROM || 'admin@abc.com'
opts:
host: process.env.SMTP_HOST || 'smtp.abc.com'
port: process.env.SMTP_PORT || 25
secure: false
| 56370 | module.exports =
email:
from: process.env.SMTP_FROM || '<EMAIL>'
opts:
host: process.env.SMTP_HOST || 'smtp.abc.com'
port: process.env.SMTP_PORT || 25
secure: false
| true | module.exports =
email:
from: process.env.SMTP_FROM || 'PI:EMAIL:<EMAIL>END_PI'
opts:
host: process.env.SMTP_HOST || 'smtp.abc.com'
port: process.env.SMTP_PORT || 25
secure: false
|
[
{
"context": " type: 'select'\n placement: 'right'\n name: 'dummy'\n pk: null\n callback: null\n value: -> nu",
"end": 117,
"score": 0.9549097418785095,
"start": 112,
"tag": "NAME",
"value": "dummy"
}
] | client/utils.coffee | tyrchen/teamspark | 21 | @ts = @ts || {}
ts.setEditable = (options) ->
defaults =
type: 'select'
placement: 'right'
name: 'dummy'
pk: null
callback: null
value: -> null
source: -> null
renderCallback: (e, editable) ->
showCallback: (e, editable) ->
defaults = _.extend defaults, options
defaults.node.... | 129549 | @ts = @ts || {}
ts.setEditable = (options) ->
defaults =
type: 'select'
placement: 'right'
name: '<NAME>'
pk: null
callback: null
value: -> null
source: -> null
renderCallback: (e, editable) ->
showCallback: (e, editable) ->
defaults = _.extend defaults, options
defaults.node... | true | @ts = @ts || {}
ts.setEditable = (options) ->
defaults =
type: 'select'
placement: 'right'
name: 'PI:NAME:<NAME>END_PI'
pk: null
callback: null
value: -> null
source: -> null
renderCallback: (e, editable) ->
showCallback: (e, editable) ->
defaults = _.extend defaults, options
... |
[
{
"context": "nished = @digger.create (x,y,solid) =>\n key = x+\",\"+y\n @maps[l][key] =\n val: if solid then ",
"end": 3271,
"score": 0.9987694025039673,
"start": 3264,
"tag": "KEY",
"value": "x+\",\"+y"
}
] | game.coffee | fazo96/aDemonsMaze | 3 | # This is A Demon's Maze main game file.
# Please look for a LICENSE.txt file in this folder for licensing information.
# Utility function. Needed!
Array::delete = (o) ->
@splice @indexOf(o), 1
Game =
w: 50
h: 50
screen_w: 80
screen_h: 25
camera_w: 80
camera_h: 23
debug: no
maps: []
monsters: []
... | 99308 | # This is A Demon's Maze main game file.
# Please look for a LICENSE.txt file in this folder for licensing information.
# Utility function. Needed!
Array::delete = (o) ->
@splice @indexOf(o), 1
Game =
w: 50
h: 50
screen_w: 80
screen_h: 25
camera_w: 80
camera_h: 23
debug: no
maps: []
monsters: []
... | true | # This is A Demon's Maze main game file.
# Please look for a LICENSE.txt file in this folder for licensing information.
# Utility function. Needed!
Array::delete = (o) ->
@splice @indexOf(o), 1
Game =
w: 50
h: 50
screen_w: 80
screen_h: 25
camera_w: 80
camera_h: 23
debug: no
maps: []
monsters: []
... |
[
{
"context": "rd, we will override with email\n\t\tusernameField: 'email'\n\t\tpasswordField: 'password'\n\n\t\t# allows us to pa",
"end": 3134,
"score": 0.9899752140045166,
"start": 3129,
"tag": "USERNAME",
"value": "email"
},
{
"context": " email\n\t\tusernameField: 'email'\n\t\tpa... | src/app/scripts/passport.coffee | guloggratis/jarv-dashboard-1pagewebapp | 0 | # load all the things we need
LocalStrategy = require('passport-local').Strategy
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy
bcrypt = require 'bcrypt-nodejs'
# include configs file
config = require './config.js'
# expose this function to our app using module.exports
module.exports = (passport, db... | 41372 | # load all the things we need
LocalStrategy = require('passport-local').Strategy
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy
bcrypt = require 'bcrypt-nodejs'
# include configs file
config = require './config.js'
# expose this function to our app using module.exports
module.exports = (passport, db... | true | # load all the things we need
LocalStrategy = require('passport-local').Strategy
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy
bcrypt = require 'bcrypt-nodejs'
# include configs file
config = require './config.js'
# expose this function to our app using module.exports
module.exports = (passport, db... |
[
{
"context": " TumblRip -- Download photos from Tumblr\n# Made by Olivier ORABONA\n# Licence: MIT\n\n# NodeJS imports\nfs = require 'fs",
"end": 67,
"score": 0.9998680353164673,
"start": 52,
"tag": "NAME",
"value": "Olivier ORABONA"
}
] | src/tumblrip.coffee | thomas694/tumblrip-other | 2 | # TumblRip -- Download photos from Tumblr
# Made by Olivier ORABONA
# Licence: MIT
# NodeJS imports
fs = require 'fs'
path = require 'path'
request = require 'request'
Q = require 'q'
mkdirp = require 'mkdirp'
URL = require 'url'
bhttp = require 'bhttp'
# My own imports
{ApiError, RejectError} = require './eh'
{log, ... | 101009 | # TumblRip -- Download photos from Tumblr
# Made by <NAME>
# Licence: MIT
# NodeJS imports
fs = require 'fs'
path = require 'path'
request = require 'request'
Q = require 'q'
mkdirp = require 'mkdirp'
URL = require 'url'
bhttp = require 'bhttp'
# My own imports
{ApiError, RejectError} = require './eh'
{log, pick, fin... | true | # TumblRip -- Download photos from Tumblr
# Made by PI:NAME:<NAME>END_PI
# Licence: MIT
# NodeJS imports
fs = require 'fs'
path = require 'path'
request = require 'request'
Q = require 'q'
mkdirp = require 'mkdirp'
URL = require 'url'
bhttp = require 'bhttp'
# My own imports
{ApiError, RejectError} = require './eh'
{... |
[
{
"context": "), Factory(\"Magikarp\")]\n team2: [Factory(\"Shedinja\")]\n @p1.currentHP = 2\n @battle.perf",
"end": 2628,
"score": 0.6445953845977783,
"start": 2625,
"tag": "NAME",
"value": "hed"
},
{
"context": "is,\n team1: [Factory(\"Magikarp\"), Factory(\... | test/bw/abilities.coffee | sarenji/pokebattle-sim | 5 | require '../helpers'
{Attachment, Status} = require('../../server/bw/attachment')
{Battle} = require('../../server/bw/battle')
{Pokemon} = require('../../server/bw/pokemon')
{Weather} = require('../../shared/weather')
{Item} = require('../../server/bw/data/items')
{Ability} = require '../../server/bw/data/abilities'
u... | 18884 | require '../helpers'
{Attachment, Status} = require('../../server/bw/attachment')
{Battle} = require('../../server/bw/battle')
{Pokemon} = require('../../server/bw/pokemon')
{Weather} = require('../../shared/weather')
{Item} = require('../../server/bw/data/items')
{Ability} = require '../../server/bw/data/abilities'
u... | true | require '../helpers'
{Attachment, Status} = require('../../server/bw/attachment')
{Battle} = require('../../server/bw/battle')
{Pokemon} = require('../../server/bw/pokemon')
{Weather} = require('../../shared/weather')
{Item} = require('../../server/bw/data/items')
{Ability} = require '../../server/bw/data/abilities'
u... |
[
{
"context": "et').withArgs('profile_abc').returns({firstName: \"chris\"})\n sandbox.stub(cache, 'put')\n\n afterEach ->",
"end": 423,
"score": 0.9990476369857788,
"start": 418,
"tag": "NAME",
"value": "chris"
},
{
"context": "se', ->\n profile.getProfile({_auth: {token: 'xy... | test/auth/profile-spec.coffee | theodorick/ocelot | 13 | profile = require '../../src/auth/profile'
chai = require 'chai'
cache = require 'memory-cache'
sinon = require 'sinon'
agent = require '../../src/http-agent'
config = require 'config'
chaiAsPromised = require 'chai-as-promised'
chai.use chaiAsPromised
chai.should()
sandbox = sinon.sandbox.create()
describe 'profile'... | 109342 | profile = require '../../src/auth/profile'
chai = require 'chai'
cache = require 'memory-cache'
sinon = require 'sinon'
agent = require '../../src/http-agent'
config = require 'config'
chaiAsPromised = require 'chai-as-promised'
chai.use chaiAsPromised
chai.should()
sandbox = sinon.sandbox.create()
describe 'profile'... | true | profile = require '../../src/auth/profile'
chai = require 'chai'
cache = require 'memory-cache'
sinon = require 'sinon'
agent = require '../../src/http-agent'
config = require 'config'
chaiAsPromised = require 'chai-as-promised'
chai.use chaiAsPromised
chai.should()
sandbox = sinon.sandbox.create()
describe 'profile'... |
[
{
"context": " nbits : 256\n expire_in : 10\n }]\n userid = \"Tester 1 <tester@gmail.com>\"\n await KeyManager.generate {",
"end": 758,
"score": 0.9973128437995911,
"start": 750,
"tag": "USERNAME",
"value": "Tester 1"
},
{
"context": "256\n expire_in : 10\n }]\n userid = ... | test/files/subkey_preference.iced | samkenxstream/kbpgp | 464 | kbpgp = require '../..'
C = kbpgp.const.openpgp
{unbox,box,KeyManager} = kbpgp
{ECDSA} = kbpgp.ecc
{unix_time} = kbpgp.util
exports.test_multiple_encryption_subkeys = (T,cb) ->
F = C.key_flags
primary = {
flags : F.certify_keys
nbits : 384
algo : ECDSA
}
subkeys = [{
flags : F.encrypt_storage |... | 5455 | kbpgp = require '../..'
C = kbpgp.const.openpgp
{unbox,box,KeyManager} = kbpgp
{ECDSA} = kbpgp.ecc
{unix_time} = kbpgp.util
exports.test_multiple_encryption_subkeys = (T,cb) ->
F = C.key_flags
primary = {
flags : F.certify_keys
nbits : 384
algo : ECDSA
}
subkeys = [{
flags : F.encrypt_storage |... | true | kbpgp = require '../..'
C = kbpgp.const.openpgp
{unbox,box,KeyManager} = kbpgp
{ECDSA} = kbpgp.ecc
{unix_time} = kbpgp.util
exports.test_multiple_encryption_subkeys = (T,cb) ->
F = C.key_flags
primary = {
flags : F.certify_keys
nbits : 384
algo : ECDSA
}
subkeys = [{
flags : F.encrypt_storage |... |
[
{
"context": "ameForUser({\n\t\t\t\t\tid: window.user.id\n\t\t\t\t\temail: \"james.allen@overleaf.com\"\n\t\t\t\t\tfirst_name: \"James\"\n\t\t\t\t\tlast_name: \"Allen\"",
"end": 441,
"score": 0.9999253153800964,
"start": 417,
"tag": "EMAIL",
"value": "james.allen@overleaf.com"
},
{
"... | test/unit_frontend/coffee/ide/history/util/displayNameForUserTests.coffee | davidmehren/web-sharelatex | 0 | define ['ide/history/util/displayNameForUser'], (displayNameForUser) ->
describe "displayNameForUser", ->
beforeEach ->
window.user = { id: 42 }
it "should return 'Anonymous' with no user", ->
expect(
displayNameForUser(null)
).to.equal "Anonymous"
it "should return 'you' when the user has the sam... | 202161 | define ['ide/history/util/displayNameForUser'], (displayNameForUser) ->
describe "displayNameForUser", ->
beforeEach ->
window.user = { id: 42 }
it "should return 'Anonymous' with no user", ->
expect(
displayNameForUser(null)
).to.equal "Anonymous"
it "should return 'you' when the user has the sam... | true | define ['ide/history/util/displayNameForUser'], (displayNameForUser) ->
describe "displayNameForUser", ->
beforeEach ->
window.user = { id: 42 }
it "should return 'Anonymous' with no user", ->
expect(
displayNameForUser(null)
).to.equal "Anonymous"
it "should return 'you' when the user has the sam... |
[
{
"context": "# Mice: alert\n\n# Copyright (c) 2014 Miclle\n# Licensed under MIT (https://github.com/miclle/m",
"end": 42,
"score": 0.7694029211997986,
"start": 36,
"tag": "NAME",
"value": "Miclle"
},
{
"context": "4 Miclle\n# Licensed under MIT (https://github.com/miclle/mice/blob/m... | assets/javascripts/mice/alert.coffee | miclle/mice | 7 | # Mice: alert
# Copyright (c) 2014 Miclle
# Licensed under MIT (https://github.com/miclle/mice/blob/master/LICENSE)
'use strict';
(($) ->
# ALERT PUBLIC CLASS DEFINITION
# ===============================
class Alert
constructor: (element) ->
$(element).on('click', '[data-dismiss="alert"]', @close)
... | 37827 | # Mice: alert
# Copyright (c) 2014 <NAME>
# Licensed under MIT (https://github.com/miclle/mice/blob/master/LICENSE)
'use strict';
(($) ->
# ALERT PUBLIC CLASS DEFINITION
# ===============================
class Alert
constructor: (element) ->
$(element).on('click', '[data-dismiss="alert"]', @close)
... | true | # Mice: alert
# Copyright (c) 2014 PI:NAME:<NAME>END_PI
# Licensed under MIT (https://github.com/miclle/mice/blob/master/LICENSE)
'use strict';
(($) ->
# ALERT PUBLIC CLASS DEFINITION
# ===============================
class Alert
constructor: (element) ->
$(element).on('click', '[data-dismiss="alert... |
[
{
"context": "alse\n\n process.nextTick =>\n @filterToken = Math.random().toString(36).substring(7)\n @_filter",
"end": 4096,
"score": 0.47242069244384766,
"start": 4092,
"tag": "KEY",
"value": "Math"
}
] | lib/filter-editor-view.coffee | JavaCS3/filter-editor-view | 0 | 'use strict'
$ = (arg) ->
return (require 'jquery') arg
module.exports =
class FilterEditorView
scheduleTimeout: null
confirmed: false
filterToken: ""
constructor: (args) ->
@_createFrameArea()
@$list = $(@list)
# Events binding
@filterEditor.getModel().getBuffer().onDidChange =>
@_... | 208891 | 'use strict'
$ = (arg) ->
return (require 'jquery') arg
module.exports =
class FilterEditorView
scheduleTimeout: null
confirmed: false
filterToken: ""
constructor: (args) ->
@_createFrameArea()
@$list = $(@list)
# Events binding
@filterEditor.getModel().getBuffer().onDidChange =>
@_... | true | 'use strict'
$ = (arg) ->
return (require 'jquery') arg
module.exports =
class FilterEditorView
scheduleTimeout: null
confirmed: false
filterToken: ""
constructor: (args) ->
@_createFrameArea()
@$list = $(@list)
# Events binding
@filterEditor.getModel().getBuffer().onDidChange =>
@_... |
[
{
"context": "aderValues: ['oi', 'oioi']\n headerKeys: ['6', '7']\n bodyEncoding: 'form'\n bod",
"end": 561,
"score": 0.8232784867286682,
"start": 560,
"tag": "KEY",
"value": "6"
},
{
"context": "alues: ['oi', 'oioi']\n headerKeys: ['6', '7']\n ... | test/http-formatter-spec.coffee | octoblu/nanocyte-component-http-formatter | 0 | ReturnValue = require 'nanocyte-component-return-value'
HttpFormatter = require '../src/http-formatter'
describe 'HttpFormatter', ->
beforeEach ->
@sut = new HttpFormatter
it 'should exist', ->
expect(@sut).to.be.an.instanceOf ReturnValue
describe '->onEnvelope', ->
describe 'when called with an en... | 118549 | ReturnValue = require 'nanocyte-component-return-value'
HttpFormatter = require '../src/http-formatter'
describe 'HttpFormatter', ->
beforeEach ->
@sut = new HttpFormatter
it 'should exist', ->
expect(@sut).to.be.an.instanceOf ReturnValue
describe '->onEnvelope', ->
describe 'when called with an en... | true | ReturnValue = require 'nanocyte-component-return-value'
HttpFormatter = require '../src/http-formatter'
describe 'HttpFormatter', ->
beforeEach ->
@sut = new HttpFormatter
it 'should exist', ->
expect(@sut).to.be.an.instanceOf ReturnValue
describe '->onEnvelope', ->
describe 'when called with an en... |
[
{
"context": "ge, secure } = KONFIG.sessionCookie\n\n csrfToken = createId()\n # set cookie as pending cookie\n req.pendin",
"end": 333,
"score": 0.8134938478469849,
"start": 327,
"tag": "KEY",
"value": "create"
}
] | servers/lib/server/setcsrftoken.coffee | ezgikaysi/koding | 1 | KONFIG = require 'koding-config-manager'
{ v4: createId } = require 'node-uuid'
module.exports = (req, res, next) ->
unless KONFIG.environment is 'production'
res.header 'Access-Control-Allow-Origin', 'http://www.koding.com'
next() if req?.cookies?._csrf
{ maxAge, secure } = KONFIG.sessionCookie
csrfT... | 225718 | KONFIG = require 'koding-config-manager'
{ v4: createId } = require 'node-uuid'
module.exports = (req, res, next) ->
unless KONFIG.environment is 'production'
res.header 'Access-Control-Allow-Origin', 'http://www.koding.com'
next() if req?.cookies?._csrf
{ maxAge, secure } = KONFIG.sessionCookie
csrfT... | true | KONFIG = require 'koding-config-manager'
{ v4: createId } = require 'node-uuid'
module.exports = (req, res, next) ->
unless KONFIG.environment is 'production'
res.header 'Access-Control-Allow-Origin', 'http://www.koding.com'
next() if req?.cookies?._csrf
{ maxAge, secure } = KONFIG.sessionCookie
csrfT... |
[
{
"context": "argv: targv),\n key: [\n \"val1\"\n \"val2\"\n \"val3\"\n ",
"end": 1000,
"score": 0.8621773719787598,
"start": 996,
"tag": "KEY",
"value": "val1"
},
{
"context": "argv: targv),\n key: [\n ... | tests/basic_test.coffee | skoberlink/uniformer-config | 0 | uniformer = require("../lib/uniformer-config")
exports.basicTests =
setUp: (done) ->
done()
"library load test": (test) ->
test.expect 1
test.doesNotThrow require("../lib/uniformer-config")
test.done()
"argv single/multi values test": (test) ->
test.expect 2
... | 28382 | uniformer = require("../lib/uniformer-config")
exports.basicTests =
setUp: (done) ->
done()
"library load test": (test) ->
test.expect 1
test.doesNotThrow require("../lib/uniformer-config")
test.done()
"argv single/multi values test": (test) ->
test.expect 2
... | true | uniformer = require("../lib/uniformer-config")
exports.basicTests =
setUp: (done) ->
done()
"library load test": (test) ->
test.expect 1
test.doesNotThrow require("../lib/uniformer-config")
test.done()
"argv single/multi values test": (test) ->
test.expect 2
... |
[
{
"context": "g.id is 'Hero Placeholder'\n name = {knight: 'Tharin', captain: 'Anya'}[@thang.type] ? 'Hero'\n else",
"end": 4974,
"score": 0.7735147476196289,
"start": 4968,
"tag": "NAME",
"value": "Tharin"
},
{
"context": "ally know who we are then.\n name = {knight: 'T... | app/views/play/level/LevelHUDView.coffee | enricpc/codecombat | 0 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/play/level/hud'
prop_template = require 'templates/play/level/hud_prop'
action_template = require 'templates/play/level/hud_action'
DialogueAnimator = require './DialogueAnimator'
module.exports = class LevelHUDView extends CocoView
id: 'thang-h... | 37466 | CocoView = require 'views/kinds/CocoView'
template = require 'templates/play/level/hud'
prop_template = require 'templates/play/level/hud_prop'
action_template = require 'templates/play/level/hud_action'
DialogueAnimator = require './DialogueAnimator'
module.exports = class LevelHUDView extends CocoView
id: 'thang-h... | true | CocoView = require 'views/kinds/CocoView'
template = require 'templates/play/level/hud'
prop_template = require 'templates/play/level/hud_prop'
action_template = require 'templates/play/level/hud_action'
DialogueAnimator = require './DialogueAnimator'
module.exports = class LevelHUDView extends CocoView
id: 'thang-h... |
[
{
"context": "###\n# @author Argi Karunia <https://github.com/hkyo89>\n# @link https://gi",
"end": 27,
"score": 0.9998750686645508,
"start": 15,
"tag": "NAME",
"value": "Argi Karunia"
},
{
"context": "###\n# @author Argi Karunia <https://github.com/hkyo89>\n# @link https://gi... | src/assets.coffee | tokopedia/nodame | 2 | ###
# @author Argi Karunia <https://github.com/hkyo89>
# @link https://github.com/tokopedia/nodame
# @license http://opensource.org/licenses/MIT
#
# @version 1.0.0
###
Path = require('./path')
# TODO: Optimize the assets variable!
# So pricey!
class Assets
start = 0
constructor: (opt) ->
@_DESKTO... | 216818 | ###
# @author <NAME> <https://github.com/hkyo89>
# @link https://github.com/tokopedia/nodame
# @license http://opensource.org/licenses/MIT
#
# @version 1.0.0
###
Path = require('./path')
# TODO: Optimize the assets variable!
# So pricey!
class Assets
start = 0
constructor: (opt) ->
@_DESKTOP = 'd... | true | ###
# @author PI:NAME:<NAME>END_PI <https://github.com/hkyo89>
# @link https://github.com/tokopedia/nodame
# @license http://opensource.org/licenses/MIT
#
# @version 1.0.0
###
Path = require('./path')
# TODO: Optimize the assets variable!
# So pricey!
class Assets
start = 0
constructor: (opt) ->
... |
[
{
"context": "r}/authorized_keys\"\n keys: [\n 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgccoXaSKaovgSkE",
"end": 520,
"score": 0.5245014429092407,
"start": 520,
"tag": "KEY",
"value": ""
},
{
"context": "uthorized_keys\"\n keys: [\n 'ssh-rsa AAAAB3NzaC1... | packages/file/test/types/ssh_authorized_keys.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 31 |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.ssh_authorized_keys', ->
they 'overwrite file', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file
... | 8872 |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.ssh_authorized_keys', ->
they 'overwrite file', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file
... | true |
nikita = require '@nikitajs/core/lib'
{tags, config} = require '../test'
they = require('mocha-they')(config)
return unless tags.posix
describe 'file.types.ssh_authorized_keys', ->
they 'overwrite file', ({ssh}) ->
nikita
$ssh: ssh
$tmpdir: true
, ({metadata: {tmpdir}}) ->
@file
... |
[
{
"context": " userId = Accounts.createUser\n username: user.username,\n email: user.email,\n password:",
"end": 687,
"score": 0.9618425965309143,
"start": 674,
"tag": "USERNAME",
"value": "user.username"
},
{
"context": ",\n email: user.email,\n ... | server/entry.coffee | Vilango/accounts-entry | 0 | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
AccountsEntry =
settings: {}
config: (appConfig) ->
@settings = _.extend(@settings, appConfig)
@AccountsEntry = AccountsEntry
Meteor.methods
entryValidateSignupCode: (signupCode) ->... | 147995 | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
AccountsEntry =
settings: {}
config: (appConfig) ->
@settings = _.extend(@settings, appConfig)
@AccountsEntry = AccountsEntry
Meteor.methods
entryValidateSignupCode: (signupCode) ->... | true | Meteor.startup ->
Accounts.urls.resetPassword = (token) ->
Meteor.absoluteUrl('reset-password/' + token)
AccountsEntry =
settings: {}
config: (appConfig) ->
@settings = _.extend(@settings, appConfig)
@AccountsEntry = AccountsEntry
Meteor.methods
entryValidateSignupCode: (signupCode) ->... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999105334281921,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/account-edit-blocklist.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @AccountEditBlocklist
element: 'block-list__content'
jsClass: '.js-account-edit-blocklist'
constructor: ->
$(document).on 'click... | 92379 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @AccountEditBlocklist
element: 'block-list__content'
jsClass: '.js-account-edit-blocklist'
constructor: ->
$(document).on 'click', @jsC... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @AccountEditBlocklist
element: 'block-list__content'
jsClass: '.js-account-edit-blocklist'
constructor: ->
$(document).o... |
[
{
"context": "t']\nprivateProperties = ['permissions', 'email', 'firstName', 'lastName', 'gender', 'facebookID', 'music', 'v",
"end": 416,
"score": 0.9973228573799133,
"start": 407,
"tag": "NAME",
"value": "firstName"
},
{
"context": "operties = ['permissions', 'email', 'firstName', ... | server/users/user_handler.coffee | JeremyGeros/codecombat | 0 | schema = require './user_schema'
crypto = require 'crypto'
request = require 'request'
User = require './User'
Handler = require '../commons/Handler'
mongoose = require 'mongoose'
config = require '../../server_config'
errors = require '../commons/errors'
async = require 'async'
serverProperties = ['passwordHash', 'em... | 184500 | schema = require './user_schema'
crypto = require 'crypto'
request = require 'request'
User = require './User'
Handler = require '../commons/Handler'
mongoose = require 'mongoose'
config = require '../../server_config'
errors = require '../commons/errors'
async = require 'async'
serverProperties = ['passwordHash', 'em... | true | schema = require './user_schema'
crypto = require 'crypto'
request = require 'request'
User = require './User'
Handler = require '../commons/Handler'
mongoose = require 'mongoose'
config = require '../../server_config'
errors = require '../commons/errors'
async = require 'async'
serverProperties = ['passwordHash', 'em... |
[
{
"context": " can get back to doing some research.'\n pass: 'New password:'\n again: 'Again, to confirm:'\n submit: 'Su",
"end": 833,
"score": 0.9970964789390564,
"start": 821,
"tag": "PASSWORD",
"value": "New password"
},
{
"context": "vuelva a hacer algo de investigación.... | app/pages/reset-password.cjsx | Crentist/Panoptes-frontend-spanish | 1 | counterpart = require 'counterpart'
React = require 'react'
Translate = require 'react-translate-component'
auth = require 'panoptes-client/lib/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
counterpart.registerTranslations 'en',
forgotten:
header: 'So, you’ve forgotten you... | 24577 | counterpart = require 'counterpart'
React = require 'react'
Translate = require 'react-translate-component'
auth = require 'panoptes-client/lib/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
counterpart.registerTranslations 'en',
forgotten:
header: 'So, you’ve forgotten you... | true | counterpart = require 'counterpart'
React = require 'react'
Translate = require 'react-translate-component'
auth = require 'panoptes-client/lib/auth'
alert = require '../lib/alert'
LoginDialog = require '../partials/login-dialog'
counterpart.registerTranslations 'en',
forgotten:
header: 'So, you’ve forgotten you... |
[
{
"context": "rver.\n populateFields: (config) ->\n password = config.password;\n passphrase = config.passphrase;\n\n if !pas",
"end": 5861,
"score": 0.9732145667076111,
"start": 5846,
"tag": "PASSWORD",
"value": "config.password"
},
{
"context": " return \"Host must be sp... | lib/dialogs/sftp-dialog.coffee | morassman/atom-commander | 43 | fs = require 'fs'
fsp = require 'fs-plus'
SSH2 = require 'ssh2'
PathUtil = require('path')
Utils = require '../utils'
SFTPFileSystem = require '../fs/ftp/sftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class SFTPDialog extends View
constructor: ->
super();
@ssh2 = n... | 196430 | fs = require 'fs'
fsp = require 'fs-plus'
SSH2 = require 'ssh2'
PathUtil = require('path')
Utils = require '../utils'
SFTPFileSystem = require '../fs/ftp/sftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class SFTPDialog extends View
constructor: ->
super();
@ssh2 = n... | true | fs = require 'fs'
fsp = require 'fs-plus'
SSH2 = require 'ssh2'
PathUtil = require('path')
Utils = require '../utils'
SFTPFileSystem = require '../fs/ftp/sftp-filesystem'
{View, TextEditorView} = require 'atom-space-pen-views'
module.exports =
class SFTPDialog extends View
constructor: ->
super();
@ssh2 = n... |
[
{
"context": "###\nCopyright 2016 Balena\n\nLicensed under the Apache License, Version 2.0 (",
"end": 25,
"score": 0.973562479019165,
"start": 19,
"tag": "NAME",
"value": "Balena"
},
{
"context": "mple\n\t# balena.models.application.create({ name: 'My App', applicationType: 'essentia... | lib/models/application.coffee | xmb666/balena-sdk | 1 | ###
Copyright 2016 Balena
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
distribu... | 4716 | ###
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | true | ###
Copyright 2016 PI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
[
{
"context": "*************************\n#\n# Application\n# -> HUB GIZ\n#\n# *************************************\n\n",
"end": 66,
"score": 0.7964599132537842,
"start": 65,
"tag": "NAME",
"value": "H"
}
] | app/assets/javascripts/admin.js.coffee | qsitconsultoria/hub | 0 | # *************************************
#
# Application
# -> HUB GIZ
#
# *************************************
# -------------------------------------
# vendor
# -------------------------------------
#= require medium-editor
#= require pickadate/lib/picker
#= require pickadate/lib/picker.date
#= require pickadat... | 189516 | # *************************************
#
# Application
# -> <NAME>UB GIZ
#
# *************************************
# -------------------------------------
# vendor
# -------------------------------------
#= require medium-editor
#= require pickadate/lib/picker
#= require pickadate/lib/picker.date
#= require pic... | true | # *************************************
#
# Application
# -> PI:NAME:<NAME>END_PIUB GIZ
#
# *************************************
# -------------------------------------
# vendor
# -------------------------------------
#= require medium-editor
#= require pickadate/lib/picker
#= require pickadate/lib/picker.date
... |
[
{
"context": "tions = state: 'st4t3'\n res = access_token: 't0k3n'\n error = {}\n\n before ->\n sinon.",
"end": 3606,
"score": 0.9954054951667786,
"start": 3601,
"tag": "PASSWORD",
"value": "t0k3n"
}
] | test/unit/strategies/OAuth2.coffee | 1242035/connect | 331 | # Test dependencies
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
Strategy = require('passport-strategy')
OAuth2Strategy = require '../../../protocols/OAut... | 145823 | # Test dependencies
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
Strategy = require('passport-strategy')
OAuth2Strategy = require '../../../protocols/OAut... | true | # Test dependencies
nock = require 'nock'
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
expect = chai.expect
# Assertions
chai.use sinonChai
chai.should()
# Code under test
Strategy = require('passport-strategy')
OAuth2Strategy = require '../../../protocols/OAut... |
[
{
"context": "-m '[bot] build and deploy'\"\nrun \"git push --force git@heroku.com:#{HEROKU_APP}.git HEAD:master\"\n",
"end": 528,
"score": 0.9997607469558716,
"start": 514,
"tag": "EMAIL",
"value": "git@heroku.com"
}
] | bin/deploy.coffee | canopyui/canopy | 1 | #!/usr/bin/env coffee
require 'shelljs/global'
HEROKU_APP = process.env.HEROKU_APP ? throw new Error("Please set environment variable HEROKU_APP")
run = (cmd, options = {}) ->
continue_on_failure = options.continue_on_failure ? false
echo "==> #{cmd}"
code = (exec cmd).code
if code isnt 0
echo 'COMMAND F... | 100579 | #!/usr/bin/env coffee
require 'shelljs/global'
HEROKU_APP = process.env.HEROKU_APP ? throw new Error("Please set environment variable HEROKU_APP")
run = (cmd, options = {}) ->
continue_on_failure = options.continue_on_failure ? false
echo "==> #{cmd}"
code = (exec cmd).code
if code isnt 0
echo 'COMMAND F... | true | #!/usr/bin/env coffee
require 'shelljs/global'
HEROKU_APP = process.env.HEROKU_APP ? throw new Error("Please set environment variable HEROKU_APP")
run = (cmd, options = {}) ->
continue_on_failure = options.continue_on_failure ? false
echo "==> #{cmd}"
code = (exec cmd).code
if code isnt 0
echo 'COMMAND F... |
[
{
"context": "\n }],\n \"cat2\": [{\n \"title\": \"test2\",\n \"active\": true,\n \"dataToggl",
"end": 1046,
"score": 0.5440605282783508,
"start": 1042,
"tag": "NAME",
"value": "test"
}
] | spec/sidebar-spec.coffee | Cantik-Music-Player/sidebar | 0 | Sidebar = require '../lib/sidebar'
sinon = require 'sinon'
assert = require 'assert'
describe "Sidebar", ->
beforeEach ->
Sidebar.prototype.show = sinon.spy()
@sidebar = new Sidebar('pluginManager', 'element')
@sidebar.activate = ->
it "Initialized", ->
assert.deepEqual(@sidebar.links, {})
it "... | 2117 | Sidebar = require '../lib/sidebar'
sinon = require 'sinon'
assert = require 'assert'
describe "Sidebar", ->
beforeEach ->
Sidebar.prototype.show = sinon.spy()
@sidebar = new Sidebar('pluginManager', 'element')
@sidebar.activate = ->
it "Initialized", ->
assert.deepEqual(@sidebar.links, {})
it "... | true | Sidebar = require '../lib/sidebar'
sinon = require 'sinon'
assert = require 'assert'
describe "Sidebar", ->
beforeEach ->
Sidebar.prototype.show = sinon.spy()
@sidebar = new Sidebar('pluginManager', 'element')
@sidebar.activate = ->
it "Initialized", ->
assert.deepEqual(@sidebar.links, {})
it "... |
[
{
"context": "ions = toImmutable [\n generateDummyAccount 1, 'nick', '', ''\n generateDummyAccount 2, 'john', 'Joh",
"end": 425,
"score": 0.927107572555542,
"start": 421,
"tag": "USERNAME",
"value": "nick"
},
{
"context": "nt 1, 'nick', '', ''\n generateDummyAccount 2, 'john... | client/activity/lib/components/chatinputwidget/test/mentiondropbox.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
React = require 'kd-react'
expect = require 'expect'
toImmutable = require 'app/util/toImmutable'
MentionDropbox = require '../mentiondropbox'
helpers = require './helpers'
generateDummyAccount = require 'app/util/generateDummy... | 28868 | kd = require 'kd'
React = require 'kd-react'
expect = require 'expect'
toImmutable = require 'app/util/toImmutable'
MentionDropbox = require '../mentiondropbox'
helpers = require './helpers'
generateDummyAccount = require 'app/util/generateDummy... | true | kd = require 'kd'
React = require 'kd-react'
expect = require 'expect'
toImmutable = require 'app/util/toImmutable'
MentionDropbox = require '../mentiondropbox'
helpers = require './helpers'
generateDummyAccount = require 'app/util/generateDummy... |
[
{
"context": "###\n * @author \t\tAbdelhakim RAFIK\n * @version \tv1.0.1\n * @license \tMIT License\n * @",
"end": 33,
"score": 0.9998882412910461,
"start": 17,
"tag": "NAME",
"value": "Abdelhakim RAFIK"
},
{
"context": "nse \tMIT License\n * @copyright \tCopyright (c) 2021 Abdelhaki... | src/app/models/_associations.coffee | AbdelhakimRafik/Project | 1 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date June 2021
###
###
Tables associations definition
###
module.exports = (Models) ->
# User - Articles assocations
Models.User.hasMany Models.Article
Models.Article.belongsTo ... | 40512 | ###
* @author <NAME>
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 <NAME>
* @date June 2021
###
###
Tables associations definition
###
module.exports = (Models) ->
# User - Articles assocations
Models.User.hasMany Models.Article
Models.Article.belongsTo Models.User
# Arti... | true | ###
* @author PI:NAME:<NAME>END_PI
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 PI:NAME:<NAME>END_PI
* @date June 2021
###
###
Tables associations definition
###
module.exports = (Models) ->
# User - Articles assocations
Models.User.hasMany Models.Article
Models.Article.be... |
[
{
"context": "_PAGE_SIZE\n 'reverse': false\n 'memberKey': 'member'\n 'rankKey': 'rank'\n 'scoreKey': 'score'\n ",
"end": 394,
"score": 0.9472173452377319,
"start": 388,
"tag": "KEY",
"value": "member"
},
{
"context": ": false\n 'memberKey': 'member'\n 'rankKey': '... | src/leaderboard.coffee | KeKs0r/leaderboard-coffeescript | 22 | redis = require 'redis'
class Leaderboard
###
# Default page size: 25
###
@DEFAULT_PAGE_SIZE = 25
###
# Default options when creating a leaderboard. Page size is 25 and reverse
# is set to false, meaning various methods will return results in
# highest-to-lowest order.
###
DEFAULT_OPTIONS =
'p... | 91084 | redis = require 'redis'
class Leaderboard
###
# Default page size: 25
###
@DEFAULT_PAGE_SIZE = 25
###
# Default options when creating a leaderboard. Page size is 25 and reverse
# is set to false, meaning various methods will return results in
# highest-to-lowest order.
###
DEFAULT_OPTIONS =
'p... | true | redis = require 'redis'
class Leaderboard
###
# Default page size: 25
###
@DEFAULT_PAGE_SIZE = 25
###
# Default options when creating a leaderboard. Page size is 25 and reverse
# is set to false, meaning various methods will return results in
# highest-to-lowest order.
###
DEFAULT_OPTIONS =
'p... |
[
{
"context": " getType: -> 'group'\n @stubs.user =\n name: 'name'\n real_name: 'real_name'\n id: 'U123'\n pr",
"end": 1032,
"score": 0.6846247911453247,
"start": 1028,
"tag": "NAME",
"value": "name"
},
{
"context": "\n @stubs.user =\n name: 'name'\n real_name: '... | test/stubs.coffee | fabchia/hubot | 0 | # Setup stubs used by the other tests
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
# Use Hubot's brain in our stubs
{Brain, Robot} = require 'hubot'
_ = require 'lodash'
# Stub a few interfaces to grease the skids f... | 221763 | # Setup stubs used by the other tests
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
# Use Hubot's brain in our stubs
{Brain, Robot} = require 'hubot'
_ = require 'lodash'
# Stub a few interfaces to grease the skids f... | true | # Setup stubs used by the other tests
SlackBot = require '../src/bot'
SlackFormatter = require '../src/formatter'
SlackClient = require '../src/client'
{EventEmitter} = require 'events'
# Use Hubot's brain in our stubs
{Brain, Robot} = require 'hubot'
_ = require 'lodash'
# Stub a few interfaces to grease the skids f... |
[
{
"context": "xample {\"data\":{\"phone_number\":null,\"name_first\":\"Aha\",\"address_street1\":\"2800 San Jacinto Street\",\"liv",
"end": 4087,
"score": 0.9997574090957642,
"start": 4084,
"tag": "NAME",
"value": "Aha"
},
{
"context": "_code\":\"US\",\"address_city\":\"Houston\",\"n... | app/scripts/services/authentication.coffee | nerdfiles/utxo_us | 0 | "use strict"
###*
@ngdoc service
@name utxoPmc.authentication
@description
# authentication
Service in the utxoPmc.
###
angular.module("utxoPmc").factory "authentication", ($timeout, $q, $http, $window, person, crypto, localStorageService, $location) ->
###*
Authentication Service Interface.
###
__interface... | 212302 | "use strict"
###*
@ngdoc service
@name utxoPmc.authentication
@description
# authentication
Service in the utxoPmc.
###
angular.module("utxoPmc").factory "authentication", ($timeout, $q, $http, $window, person, crypto, localStorageService, $location) ->
###*
Authentication Service Interface.
###
__interface... | true | "use strict"
###*
@ngdoc service
@name utxoPmc.authentication
@description
# authentication
Service in the utxoPmc.
###
angular.module("utxoPmc").factory "authentication", ($timeout, $q, $http, $window, person, crypto, localStorageService, $location) ->
###*
Authentication Service Interface.
###
__interface... |
[
{
"context": ".equal(c1)\n\n\t\t\tcontext = new Framer.Context(name:\"Test\")\n\n\t\t\tcontext.reset()\n\t\t\tcontext.reset()\n\t\t\tconte",
"end": 355,
"score": 0.8585156798362732,
"start": 351,
"tag": "NAME",
"value": "Test"
},
{
"context": "vents\", ->\n\n\t\t\tcontext = new Frame... | test/tests/ContextTest.coffee | HydAu/FramerJS | 0 | assert = require "assert"
describe "Context", ->
describe "Reset", ->
it "should never append more than a single child on reset", (done) ->
c1 = document.querySelectorAll(".framerContext").length
# There's one default context:
document.querySelectorAll(".framerContext").length.should.equal(c1)
cont... | 21845 | assert = require "assert"
describe "Context", ->
describe "Reset", ->
it "should never append more than a single child on reset", (done) ->
c1 = document.querySelectorAll(".framerContext").length
# There's one default context:
document.querySelectorAll(".framerContext").length.should.equal(c1)
cont... | true | assert = require "assert"
describe "Context", ->
describe "Reset", ->
it "should never append more than a single child on reset", (done) ->
c1 = document.querySelectorAll(".framerContext").length
# There's one default context:
document.querySelectorAll(".framerContext").length.should.equal(c1)
cont... |
[
{
"context": "t_filters.join(\",\")\n\ninitSidebarTab = ->\n key = \"dashboard_sidebar_filter\"\n\n # store selection in cookie\n $('.dash-sideba",
"end": 760,
"score": 0.979351818561554,
"start": 736,
"tag": "KEY",
"value": "dashboard_sidebar_filter"
}
] | app/assets/javascripts/dashboard.js.coffee | lbt/gitlabhq | 1 | window.dashboardPage = ->
Pager.init 20, true
initSidebarTab()
$(".event_filter_link").bind "click", (event) ->
event.preventDefault()
toggleFilter $(this)
reloadActivities()
reloadActivities = ->
$(".content_list").html ''
Pager.init 20, true
toggleFilter = (sender) ->
sender.parent().toggleC... | 18741 | window.dashboardPage = ->
Pager.init 20, true
initSidebarTab()
$(".event_filter_link").bind "click", (event) ->
event.preventDefault()
toggleFilter $(this)
reloadActivities()
reloadActivities = ->
$(".content_list").html ''
Pager.init 20, true
toggleFilter = (sender) ->
sender.parent().toggleC... | true | window.dashboardPage = ->
Pager.init 20, true
initSidebarTab()
$(".event_filter_link").bind "click", (event) ->
event.preventDefault()
toggleFilter $(this)
reloadActivities()
reloadActivities = ->
$(".content_list").html ''
Pager.init 20, true
toggleFilter = (sender) ->
sender.parent().toggleC... |
[
{
"context": " Ember.belongsTo('Travis.Repo', key: 'repository_id')\n commit: Ember.belongsTo('Travis.Commit', key:",
"end": 653,
"score": 0.7613850831985474,
"start": 651,
"tag": "KEY",
"value": "id"
},
{
"context": "uild: Ember.belongsTo('Travis.Build', key: 'build_id')\n\n is... | assets/scripts/app/models/request.coffee | Acidburn0zzz/travis-web | 0 | require 'travis/model'
@Travis.Request = Travis.Model.extend
id: Ember.attr('string')
created_at: Ember.attr('string')
event_type: Ember.attr('string')
result: Ember.attr('string')
message: Ember.attr('string')
headCommit: Ember.attr('string')
base... | 41450 | require 'travis/model'
@Travis.Request = Travis.Model.extend
id: Ember.attr('string')
created_at: Ember.attr('string')
event_type: Ember.attr('string')
result: Ember.attr('string')
message: Ember.attr('string')
headCommit: Ember.attr('string')
base... | true | require 'travis/model'
@Travis.Request = Travis.Model.extend
id: Ember.attr('string')
created_at: Ember.attr('string')
event_type: Ember.attr('string')
result: Ember.attr('string')
message: Ember.attr('string')
headCommit: Ember.attr('string')
base... |
[
{
"context": " spread operators and their expressions.\n# @author Kai Cataldo\n###\n\n'use strict'\n\n#-----------------------------",
"end": 115,
"score": 0.9998527765274048,
"start": 104,
"tag": "NAME",
"value": "Kai Cataldo"
}
] | src/rules/rest-spread-spacing.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Enforce spacing between rest and spread operators and their expressions.
# @author Kai Cataldo
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#------------------------------------------------------------------------------
module... | 215841 | ###*
# @fileoverview Enforce spacing between rest and spread operators and their expressions.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#------------------------------------------------------------------------------
module.expo... | true | ###*
# @fileoverview Enforce spacing between rest and spread operators and their expressions.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Rule Definition
#-----------------------------------------------------------------------------... |
[
{
"context": "ipt.\n So make your changes in the .coffee file.\n Thatcher Peskens\n _\n ,_(')<\n \\___)\n###\n\ndo @myTe",
"end": 139,
"score": 0.9998021721839905,
"start": 123,
"tag": "NAME",
"value": "Thatcher Peskens"
},
{
"context": "\n {\n \"Authori... | whisk_tutorial/static/js/terminal.coffee | apache/openwhisk-tutorial | 2 | ###
Please note the javascript is being fully generated from coffeescript.
So make your changes in the .coffee file.
Thatcher Peskens
_
,_(')<
\___)
###
do @myTerminal = ->
# Which terminal emulator version are we
EMULATOR_VERSION = "0.1.3"
@basesettings = {
prompt: 'you@tutoria... | 209032 | ###
Please note the javascript is being fully generated from coffeescript.
So make your changes in the .coffee file.
<NAME>
_
,_(')<
\___)
###
do @myTerminal = ->
# Which terminal emulator version are we
EMULATOR_VERSION = "0.1.3"
@basesettings = {
prompt: 'you@tutorial:~$ ',
... | true | ###
Please note the javascript is being fully generated from coffeescript.
So make your changes in the .coffee file.
PI:NAME:<NAME>END_PI
_
,_(')<
\___)
###
do @myTerminal = ->
# Which terminal emulator version are we
EMULATOR_VERSION = "0.1.3"
@basesettings = {
prompt: 'you@tut... |
[
{
"context": "# @link http://podstats.org/\n# @author Dennis Morhardt <info@dennismorhardt.de>\n# @copyright Copyright",
"end": 93,
"score": 0.9998766779899597,
"start": 78,
"tag": "NAME",
"value": "Dennis Morhardt"
},
{
"context": "p://podstats.org/\n# @author Den... | Application/Assets/javascripts/components/download-timeline.coffee | gglnx/podstats | 0 | ##
# @package Podstats
# @link http://podstats.org/
# @author Dennis Morhardt <info@dennismorhardt.de>
# @copyright Copyright 2014, Dennis Morhardt
# @license BSD-3-Clause, http://opensource.org/licenses/BSD-3-Clause
##
# Download timeline
define ['jquery', 'moment', 'Raphael', 'morris'], ($, mom... | 192367 | ##
# @package Podstats
# @link http://podstats.org/
# @author <NAME> <<EMAIL>>
# @copyright Copyright 2014, <NAME>
# @license BSD-3-Clause, http://opensource.org/licenses/BSD-3-Clause
##
# Download timeline
define ['jquery', 'moment', 'Raphael', 'morris'], ($, moment, Raphael) -> $ ()->
$('[data... | true | ##
# @package Podstats
# @link http://podstats.org/
# @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# @copyright Copyright 2014, PI:NAME:<NAME>END_PI
# @license BSD-3-Clause, http://opensource.org/licenses/BSD-3-Clause
##
# Download timeline
define ['jquery', 'moment', 'Raphael', 'morris'... |
[
{
"context": "###\n Author: ec.huyinghuan@gmail.com\n Date: 2015.07.07\n Describe:\n gitlab与项目相关关系的",
"end": 37,
"score": 0.9999063611030579,
"start": 14,
"tag": "EMAIL",
"value": "ec.huyinghuan@gmail.com"
}
] | src/js/gitlab/gitlab-controller.coffee | Kiteam/kiteam-angular | 0 | ###
Author: ec.huyinghuan@gmail.com
Date: 2015.07.07
Describe:
gitlab与项目相关关系的增删改
###
"use strict"
define [
'../ng-module'
'../utils'
], (_module, _utils) ->
_module.controllerModule.
controller('gitlabController',
['$rootScope', '$scope', '$stateParams', 'API', 'NOTIFY'
($rootScope, $scope,... | 205760 | ###
Author: <EMAIL>
Date: 2015.07.07
Describe:
gitlab与项目相关关系的增删改
###
"use strict"
define [
'../ng-module'
'../utils'
], (_module, _utils) ->
_module.controllerModule.
controller('gitlabController',
['$rootScope', '$scope', '$stateParams', 'API', 'NOTIFY'
($rootScope, $scope, $stateParams, A... | true | ###
Author: PI:EMAIL:<EMAIL>END_PI
Date: 2015.07.07
Describe:
gitlab与项目相关关系的增删改
###
"use strict"
define [
'../ng-module'
'../utils'
], (_module, _utils) ->
_module.controllerModule.
controller('gitlabController',
['$rootScope', '$scope', '$stateParams', 'API', 'NOTIFY'
($rootScope, $scope, ... |
[
{
"context": "t(\"paananen\")\n userName = Bacon.constant(\"mr.bacon\")\n Bacon.combineTemplate({ userName: user",
"end": 28082,
"score": 0.9995568990707397,
"start": 28074,
"tag": "USERNAME",
"value": "mr.bacon"
},
{
"context": "tName, lastName: lastName }})\n [... | spec/BaconSpec.coffee | hden/testling-ci-playground | 0 | Bacon = (require "../src/Bacon").Bacon
Mocks = (require "./Mock")
mock = Mocks.mock
mockFunction = Mocks.mockFunction
EventEmitter = require("events").EventEmitter
th = require("./SpecHelper")
t = th.t
expectStreamEvents = th.expectStreamEvents
expectPropertyEvents = th.expectPropertyEvents
verifyCleanup = th.verifyCle... | 91667 | Bacon = (require "../src/Bacon").Bacon
Mocks = (require "./Mock")
mock = Mocks.mock
mockFunction = Mocks.mockFunction
EventEmitter = require("events").EventEmitter
th = require("./SpecHelper")
t = th.t
expectStreamEvents = th.expectStreamEvents
expectPropertyEvents = th.expectPropertyEvents
verifyCleanup = th.verifyCle... | true | Bacon = (require "../src/Bacon").Bacon
Mocks = (require "./Mock")
mock = Mocks.mock
mockFunction = Mocks.mockFunction
EventEmitter = require("events").EventEmitter
th = require("./SpecHelper")
t = th.t
expectStreamEvents = th.expectStreamEvents
expectPropertyEvents = th.expectPropertyEvents
verifyCleanup = th.verifyCle... |
[
{
"context": "x, y)\n @tag = \"lock_#{tag}\"\n @key = \"key_#{tag}\"\n\n @addAnimation('locked', sprites.getTextu",
"end": 194,
"score": 0.9517753720283508,
"start": 189,
"tag": "KEY",
"value": "#{tag"
}
] | src/lock.coffee | icebreaker/deermas | 1 | class Lock extends Fz2D.Entity
constructor: (sprites, tag=null, x=0, y=0) ->
if tag?
super(sprites.getTexture("lock_#{tag}"), x, y)
@tag = "lock_#{tag}"
@key = "key_#{tag}"
@addAnimation('locked', sprites.getTexture("lock_#{tag}"))
@addAnimation('unlocked', sprites.getTexture("lock_... | 9614 | class Lock extends Fz2D.Entity
constructor: (sprites, tag=null, x=0, y=0) ->
if tag?
super(sprites.getTexture("lock_#{tag}"), x, y)
@tag = "lock_#{tag}"
@key = "key_<KEY>}"
@addAnimation('locked', sprites.getTexture("lock_#{tag}"))
@addAnimation('unlocked', sprites.getTexture("lock_... | true | class Lock extends Fz2D.Entity
constructor: (sprites, tag=null, x=0, y=0) ->
if tag?
super(sprites.getTexture("lock_#{tag}"), x, y)
@tag = "lock_#{tag}"
@key = "key_PI:KEY:<KEY>END_PI}"
@addAnimation('locked', sprites.getTexture("lock_#{tag}"))
@addAnimation('unlocked', sprites.getT... |
[
{
"context": "class Person\n constructor: (@name, @preferences) ->\n @mate = null\n @best_mate",
"end": 34,
"score": 0.7417832612991333,
"start": 28,
"tag": "USERNAME",
"value": "(@name"
},
{
"context": "\n\n preferred_mate_name: =>\n @preferences[@best_mate_rank]\n\n rej... | Task/Stable-marriage-problem/CoffeeScript/stable-marriage-problem.coffee | LaudateCorpus1/RosettaCodeData | 1 | class Person
constructor: (@name, @preferences) ->
@mate = null
@best_mate_rank = 0
@rank = {}
for preference, i in @preferences
@rank[preference] = i
preferred_mate_name: =>
@preferences[@best_mate_rank]
reject: =>
@best_mate_rank += 1
set_mate: (mate) =>
@mate = mate
of... | 152018 | class Person
constructor: (@name, @preferences) ->
@mate = null
@best_mate_rank = 0
@rank = {}
for preference, i in @preferences
@rank[preference] = i
preferred_mate_name: =>
@preferences[@best_mate_rank]
reject: =>
@best_mate_rank += 1
set_mate: (mate) =>
@mate = mate
of... | true | class Person
constructor: (@name, @preferences) ->
@mate = null
@best_mate_rank = 0
@rank = {}
for preference, i in @preferences
@rank[preference] = i
preferred_mate_name: =>
@preferences[@best_mate_rank]
reject: =>
@best_mate_rank += 1
set_mate: (mate) =>
@mate = mate
of... |
[
{
"context": "io.com\n\nCopyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>\n\nLicensed under the Apache License, Version 2.0 ",
"end": 194,
"score": 0.9999219179153442,
"start": 178,
"tag": "EMAIL",
"value": "info@chaibio.com"
}
] | frontend/javascripts/app/controllers/standard_curve_chart_ctrl.js.coffee | MakerButt/chaipcr | 1 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lic... | 121777 | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You... | true | ###
Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
For more information visit http://www.chaibio.com
Copyright 2016 Chai Biotechnologies Inc. <PI:EMAIL:<EMAIL>END_PI>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... |
[
{
"context": "ashPassword\n password : password\n salt : new Buffer",
"end": 1836,
"score": 0.9986457228660583,
"start": 1828,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "t) ->\n hashPassword({pa... | src/api/authentication_strategies.coffee | bladepan/cloudbrowser | 0 | Crypto = require('crypto')
Async = require('async')
User = require('../server/user')
{getParentMountPoint, hashPassword} = require('./utils')
cloudbrowserError = require('../shared/cloudbrowser_error')
utils = require('../shared/utils')
###*
@class LocalStrategy
@param {BrowserServer} bserver
@param {cl... | 117563 | Crypto = require('crypto')
Async = require('async')
User = require('../server/user')
{getParentMountPoint, hashPassword} = require('./utils')
cloudbrowserError = require('../shared/cloudbrowser_error')
utils = require('../shared/utils')
###*
@class LocalStrategy
@param {BrowserServer} bserver
@param {cl... | true | Crypto = require('crypto')
Async = require('async')
User = require('../server/user')
{getParentMountPoint, hashPassword} = require('./utils')
cloudbrowserError = require('../shared/cloudbrowser_error')
utils = require('../shared/utils')
###*
@class LocalStrategy
@param {BrowserServer} bserver
@param {cl... |
[
{
"context": "er for Zen Photon Garden.\n#\n# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>\n#\n# Permission is hereby g",
"end": 481,
"score": 0.9998833537101746,
"start": 460,
"tag": "NAME",
"value": "Micah Elizabeth Scott"
},
{
"context": ".\n#\n# Copyright (... | example /hqz/cluster-start.coffee | amane312/photon_generator | 0 | #!/usr/bin/env coffee
#
# Cluster startup script. Experimental!
#
# AWS configuration comes from the environment:
#
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# AWS_REGION
# HQZ_BUCKET
#
# Required Node modules:
#
# npm install aws-sdk coffee-script async
#
##############################... | 67964 | #!/usr/bin/env coffee
#
# Cluster startup script. Experimental!
#
# AWS configuration comes from the environment:
#
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# AWS_REGION
# HQZ_BUCKET
#
# Required Node modules:
#
# npm install aws-sdk coffee-script async
#
##############################... | true | #!/usr/bin/env coffee
#
# Cluster startup script. Experimental!
#
# AWS configuration comes from the environment:
#
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# AWS_REGION
# HQZ_BUCKET
#
# Required Node modules:
#
# npm install aws-sdk coffee-script async
#
##############################... |
[
{
"context": "###\ncontext.coffee\nCopyright (C) 2014 ender xu <xuender@gmail.com>\n\nDistributed under terms of t",
"end": 46,
"score": 0.9996089339256287,
"start": 38,
"tag": "NAME",
"value": "ender xu"
},
{
"context": "###\ncontext.coffee\nCopyright (C) 2014 ender xu <xuender@gmai... | src/mate/context.coffee | roceys/cm | 248 | ###
context.coffee
Copyright (C) 2014 ender xu <xuender@gmail.com>
Distributed under terms of the MIT license.
###
s_x = 0
s_y = 0
if 's_b' not of window
window.s_b = true
document.addEventListener('dragstart', (e)->
s_x = e.screenX
s_y = e.screenY
, false)
document.addEventListener('dragover', (e)->
... | 159444 | ###
context.coffee
Copyright (C) 2014 <NAME> <<EMAIL>>
Distributed under terms of the MIT license.
###
s_x = 0
s_y = 0
if 's_b' not of window
window.s_b = true
document.addEventListener('dragstart', (e)->
s_x = e.screenX
s_y = e.screenY
, false)
document.addEventListener('dragover', (e)->
if e.toEl... | true | ###
context.coffee
Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
Distributed under terms of the MIT license.
###
s_x = 0
s_y = 0
if 's_b' not of window
window.s_b = true
document.addEventListener('dragstart', (e)->
s_x = e.screenX
s_y = e.screenY
, false)
document.addEventListener('d... |
[
{
"context": "ckbone.$ = $\n\nwindow.gon = {\n user: {\n name: \"Luccas Marks\"\n email: \"luccas@houzel.com\"\n admin: false\n",
"end": 202,
"score": 0.9998835325241089,
"start": 190,
"tag": "NAME",
"value": "Luccas Marks"
},
{
"context": " {\n user: {\n name: \"Luccas... | spec/javascripts/spec_helper.coffee | houzelio/houzel | 2 | import defaultLocale from "../../config/locales/javascript/en.yml"
import { t } from 'javascripts/core/helpers/i18n'
import 'bootstrap'
Backbone.$ = $
window.gon = {
user: {
name: "Luccas Marks"
email: "luccas@houzel.com"
admin: false
}
locale: "en"
}
phrases = defaultLocale.json['en'].javascripts... | 30550 | import defaultLocale from "../../config/locales/javascript/en.yml"
import { t } from 'javascripts/core/helpers/i18n'
import 'bootstrap'
Backbone.$ = $
window.gon = {
user: {
name: "<NAME>"
email: "<EMAIL>"
admin: false
}
locale: "en"
}
phrases = defaultLocale.json['en'].javascripts
t().load(phrase... | true | import defaultLocale from "../../config/locales/javascript/en.yml"
import { t } from 'javascripts/core/helpers/i18n'
import 'bootstrap'
Backbone.$ = $
window.gon = {
user: {
name: "PI:NAME:<NAME>END_PI"
email: "PI:EMAIL:<EMAIL>END_PI"
admin: false
}
locale: "en"
}
phrases = defaultLocale.json['en'... |
[
{
"context": "t.Injector.resolve('planStore').model,\n id: 'ABC123',\n name: 'Q1',\n theme: ' \\n'\n\n @the",
"end": 1930,
"score": 0.7103622555732727,
"start": 1924,
"tag": "KEY",
"value": "ABC123"
},
{
"context": "t.Injector.resolve('planStore').model,\n id:... | test/spec/roadmapplanningboard/ThemeHeaderSpec.coffee | RallyHackathon/app-catalog | 1 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.ThemeHeader'
'Rally.apps.roadmapplanningboard.PlanningBoard'
]
describe 'Rally.apps.roadmapplanningboard.ThemeHeader', ->
helpers
createCardboard: (config) ->
... | 54692 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.ThemeHeader'
'Rally.apps.roadmapplanningboard.PlanningBoard'
]
describe 'Rally.apps.roadmapplanningboard.ThemeHeader', ->
helpers
createCardboard: (config) ->
... | true | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.test.apps.roadmapplanningboard.helper.TestDependencyHelper'
'Rally.apps.roadmapplanningboard.ThemeHeader'
'Rally.apps.roadmapplanningboard.PlanningBoard'
]
describe 'Rally.apps.roadmapplanningboard.ThemeHeader', ->
helpers
createCardboard: (config) ->
... |
[
{
"context": "son: {start: {c: 3,r: 0}, end: {c: 4,r: 0}, name:\"Zuchini\", color:\"#008045\"}\n subscriber: recorder",
"end": 1199,
"score": 0.9833941459655762,
"start": 1192,
"tag": "NAME",
"value": "Zuchini"
},
{
"context": ".add {start: {c: 2,r: 0}, end: {c: 2,r: 0}, nam... | test/unit/plants-test.coffee | TheSoftwareGreenhouse/ourSquareFeet | 1 | vows = require 'vows'
assert = require 'assert'
recorderMock = require('../mockjQuery.coffee').recorderMock
PlantsModule = require '../../server/public/javascript/plants.coffee'
PlantModule = require '../../server/public/javascript/plant.coffee'
assert.hasBeenCalled = (actual) ->
assert.isNotZero actual.__calls.leng... | 181001 | vows = require 'vows'
assert = require 'assert'
recorderMock = require('../mockjQuery.coffee').recorderMock
PlantsModule = require '../../server/public/javascript/plants.coffee'
PlantModule = require '../../server/public/javascript/plant.coffee'
assert.hasBeenCalled = (actual) ->
assert.isNotZero actual.__calls.leng... | true | vows = require 'vows'
assert = require 'assert'
recorderMock = require('../mockjQuery.coffee').recorderMock
PlantsModule = require '../../server/public/javascript/plants.coffee'
PlantModule = require '../../server/public/javascript/plant.coffee'
assert.hasBeenCalled = (actual) ->
assert.isNotZero actual.__calls.leng... |
[
{
"context": " - proteus api commands\n#\n# Notes:\n#\n# Author:\n# gfjohnson\n\npapi = require 'bcprotapi'\n\nmoduledesc = 'Proteu",
"end": 439,
"score": 0.9997132420539856,
"start": 430,
"tag": "USERNAME",
"value": "gfjohnson"
},
{
"context": "'papi'\n\nconfig =\n host: 'localho... | src/proteusdns.coffee | gsfjohnson/hubot-proteusdns | 0 | # coffeelint: disable=max_line_length
#
# Description:
# Interact with Proteus API.
#
# Dependencies:
# proteusdns
#
# Configuration:
# HUBOT_BCPROTAPI_HOST [required] - url (e.g. proteus.example.com)
# HUBOT_BCPROTAPI_USER [required] - api user
# HUBOT_BCPROTAPI_PASS [required] - api pass
# HUBOT_BCPROTAPI... | 43856 | # coffeelint: disable=max_line_length
#
# Description:
# Interact with Proteus API.
#
# Dependencies:
# proteusdns
#
# Configuration:
# HUBOT_BCPROTAPI_HOST [required] - url (e.g. proteus.example.com)
# HUBOT_BCPROTAPI_USER [required] - api user
# HUBOT_BCPROTAPI_PASS [required] - api pass
# HUBOT_BCPROTAPI... | true | # coffeelint: disable=max_line_length
#
# Description:
# Interact with Proteus API.
#
# Dependencies:
# proteusdns
#
# Configuration:
# HUBOT_BCPROTAPI_HOST [required] - url (e.g. proteus.example.com)
# HUBOT_BCPROTAPI_USER [required] - api user
# HUBOT_BCPROTAPI_PASS [required] - api pass
# HUBOT_BCPROTAPI... |
[
{
"context": " removeFromCache: (path, args, obj) ->\n key = @key path, args\n @procs[key] = @procs[key].filter (",
"end": 478,
"score": 0.7809809446334839,
"start": 475,
"tag": "KEY",
"value": "key"
}
] | lib/connection/process/cycler.coffee | jessebett/atom-julia-client | 0 | {isEqual} = require 'underscore-plus'
basic = require './basic'
basic2 = require './basic2'
IPC = require '../ipc'
module.exports =
provider: ->
switch atom.config.get 'julia-client.consoleOptions.consoleStyle'
when 'REPL-based' then basic2
when 'Legacy' then basic
cacheLength: 1
procs: {}
... | 104866 | {isEqual} = require 'underscore-plus'
basic = require './basic'
basic2 = require './basic2'
IPC = require '../ipc'
module.exports =
provider: ->
switch atom.config.get 'julia-client.consoleOptions.consoleStyle'
when 'REPL-based' then basic2
when 'Legacy' then basic
cacheLength: 1
procs: {}
... | true | {isEqual} = require 'underscore-plus'
basic = require './basic'
basic2 = require './basic2'
IPC = require '../ipc'
module.exports =
provider: ->
switch atom.config.get 'julia-client.consoleOptions.consoleStyle'
when 'REPL-based' then basic2
when 'Legacy' then basic
cacheLength: 1
procs: {}
... |
[
{
"context": "# DataProjector.coffee\n# Tomasz (Tomek) Zemla\n# tomek@datacratic.com\n\n# Main class ",
"end": 31,
"score": 0.9560483694076538,
"start": 25,
"tag": "NAME",
"value": "Tomasz"
},
{
"context": "# DataProjector.coffee\n# Tomasz (Tomek) Zemla\n# tomek@datacratic.com\n\n# M... | src/DataProjector.coffee | SachithDassanayaka/sachithdassanayaka.github.io | 0 | # DataProjector.coffee
# Tomasz (Tomek) Zemla
# tomek@datacratic.com
# Main class of the data visualization application.
Subject = require('./Subject.coffee')
Observer = require('./Observer.coffee')
Utility = require('./Utility.coffee')
Palette = require('./Palette.coffee')
Storage = require('./Storage.coffee')
Toolb... | 203303 | # DataProjector.coffee
# <NAME> (<NAME>
# <EMAIL>
# Main class of the data visualization application.
Subject = require('./Subject.coffee')
Observer = require('./Observer.coffee')
Utility = require('./Utility.coffee')
Palette = require('./Palette.coffee')
Storage = require('./Storage.coffee')
Toolbar = require('./Too... | true | # DataProjector.coffee
# PI:NAME:<NAME>END_PI (PI:NAME:<NAME>END_PI
# PI:EMAIL:<EMAIL>END_PI
# Main class of the data visualization application.
Subject = require('./Subject.coffee')
Observer = require('./Observer.coffee')
Utility = require('./Utility.coffee')
Palette = require('./Palette.coffee')
Storage = require('... |
[
{
"context": "'use strict'\n\nconsole.log('%cBINGO!!!\\nlyfuture@gmail.com', 'color:Orange');\n\ndefaultRules = 'from_url,to_u",
"end": 57,
"score": 0.9391108751296997,
"start": 38,
"tag": "EMAIL",
"value": "nlyfuture@gmail.com"
}
] | app.safariextension/scripts/options.coffee | lanceli/redirector | 26 | 'use strict'
console.log('%cBINGO!!!\nlyfuture@gmail.com', 'color:Orange');
defaultRules = 'from_url,to_url\nfrom_url,to_url,disabled_rule\nblock_url\nblock_url,,disabled_rule'
document.addEventListener 'DOMContentLoaded', () ->
$rules = document.getElementById('rules')
$rules.focus()
$rules.innerText = localSt... | 147676 | 'use strict'
console.log('%cBINGO!!!\<EMAIL>', 'color:Orange');
defaultRules = 'from_url,to_url\nfrom_url,to_url,disabled_rule\nblock_url\nblock_url,,disabled_rule'
document.addEventListener 'DOMContentLoaded', () ->
$rules = document.getElementById('rules')
$rules.focus()
$rules.innerText = localStorage.getIte... | true | 'use strict'
console.log('%cBINGO!!!\PI:EMAIL:<EMAIL>END_PI', 'color:Orange');
defaultRules = 'from_url,to_url\nfrom_url,to_url,disabled_rule\nblock_url\nblock_url,,disabled_rule'
document.addEventListener 'DOMContentLoaded', () ->
$rules = document.getElementById('rules')
$rules.focus()
$rules.innerText = loca... |
[
{
"context": "e approaching the greatest of mysteries.\n - Carl Sagan, Cosmos 1980\n '''\n\n contentView = new D",
"end": 1273,
"score": 0.9998501539230347,
"start": 1263,
"tag": "NAME",
"value": "Carl Sagan"
}
] | coffee/test/shells/doc.shell.spec.coffee | athenalabs/acorn-player | 11 | goog.provide 'acorn.specs.shells.DocShell'
goog.require 'acorn.shells.DocShell'
goog.require 'acorn.util.test'
describe 'acorn.shells.DocShell', ->
text = athena.lib.util.test
TextShell = acorn.shells.TextShell
DocShell = acorn.shells.DocShell
it 'should be part of acorn.shells', ->
expect(DocShell).toBe... | 176863 | goog.provide 'acorn.specs.shells.DocShell'
goog.require 'acorn.shells.DocShell'
goog.require 'acorn.util.test'
describe 'acorn.shells.DocShell', ->
text = athena.lib.util.test
TextShell = acorn.shells.TextShell
DocShell = acorn.shells.DocShell
it 'should be part of acorn.shells', ->
expect(DocShell).toBe... | true | goog.provide 'acorn.specs.shells.DocShell'
goog.require 'acorn.shells.DocShell'
goog.require 'acorn.util.test'
describe 'acorn.shells.DocShell', ->
text = athena.lib.util.test
TextShell = acorn.shells.TextShell
DocShell = acorn.shells.DocShell
it 'should be part of acorn.shells', ->
expect(DocShell).toBe... |
[
{
"context": "ual = require 'deep-equal'\nquery = require '@gasolwu/refract-query'\nrenderExample = require './example",
"end": 289,
"score": 0.5689322352409363,
"start": 287,
"tag": "USERNAME",
"value": "wu"
},
{
"context": "styles` directory for available options.\n key = \"css-#{... | src/main.coffee | Gasol/aglio-theme-olio | 1 | crypto = require 'crypto'
fs = require 'fs'
hljs = require 'highlight.js'
pug = require 'pug'
less = require 'less'
markdownIt = require 'markdown-it'
moment = require 'moment'
path = require 'path'
querystring = require 'querystring'
equal = require 'deep-equal'
query = require '@gasolwu/refract-query'
renderExample =... | 53978 | crypto = require 'crypto'
fs = require 'fs'
hljs = require 'highlight.js'
pug = require 'pug'
less = require 'less'
markdownIt = require 'markdown-it'
moment = require 'moment'
path = require 'path'
querystring = require 'querystring'
equal = require 'deep-equal'
query = require '@gasolwu/refract-query'
renderExample =... | true | crypto = require 'crypto'
fs = require 'fs'
hljs = require 'highlight.js'
pug = require 'pug'
less = require 'less'
markdownIt = require 'markdown-it'
moment = require 'moment'
path = require 'path'
querystring = require 'querystring'
equal = require 'deep-equal'
query = require '@gasolwu/refract-query'
renderExample =... |
[
{
"context": "r_dir', ()->\n account = 'the-account'\n token = 'the-token'\n login1 = 'the-login'\n login2 = 'second:login'",
"end": 248,
"score": 0.99396151304245,
"start": 239,
"tag": "PASSWORD",
"value": "the-token"
},
{
"context": "= 'the-account'\n token = 'the-token'\n lo... | test/directory_test.coffee | conjurinc/api-node | 2 | assert = require('assert')
gently = new (require('gently'))
g = require('../lib/global')
conjur_dir = require('../lib/conjur/directory')
{makeEvents} = require('./helpers')
describe 'conjur_dir', ()->
account = 'the-account'
token = 'the-token'
login1 = 'the-login'
login2 = 'second:login'
logins = [ login1, ... | 201592 | assert = require('assert')
gently = new (require('gently'))
g = require('../lib/global')
conjur_dir = require('../lib/conjur/directory')
{makeEvents} = require('./helpers')
describe 'conjur_dir', ()->
account = 'the-account'
token = '<PASSWORD>'
login1 = 'the-login'
login2 = 'second:<PASSWORD>'
logins = [ lo... | true | assert = require('assert')
gently = new (require('gently'))
g = require('../lib/global')
conjur_dir = require('../lib/conjur/directory')
{makeEvents} = require('./helpers')
describe 'conjur_dir', ()->
account = 'the-account'
token = 'PI:PASSWORD:<PASSWORD>END_PI'
login1 = 'the-login'
login2 = 'second:PI:PASSWO... |
[
{
"context": "###\nCopyright 2016 Balena\n\nLicensed under the Apache License, Version 2.0 (",
"end": 25,
"score": 0.9983971118927002,
"start": 19,
"tag": "NAME",
"value": "Balena"
},
{
"context": " following documentation:\n#\n#\t\thttps://github.com/flatiron/revalidator\n###\nmodul... | lib/schema.coffee | balena-io-modules/resin-device-config | 2 | ###
Copyright 2016 Balena
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
distribu... | 81690 | ###
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | true | ###
Copyright 2016 PI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
[
{
"context": "ces to all of its direct customers. Please contact Joong W Park (323) 735-9665 for further information.\n \"\"\"\n\n",
"end": 2236,
"score": 0.9998643398284912,
"start": 2224,
"tag": "NAME",
"value": "Joong W Park"
}
] | tests/features/step_definitions/documents_steps.coffee | ecohealthalliance/eidr-connect | 1 | do ->
'use strict'
module.exports = ->
DOCUMENT_LINK = 'http://www.promedmail.org/post/5018201'
DOCUMENT_TEXT = """
US Deer Antler Ex and Imp, of Los Angeles, CA is recalling a variety of herbal teas prepared on [its] premises between 1 March and 30 April 2017 in cooperation with an inspection made ... | 47713 | do ->
'use strict'
module.exports = ->
DOCUMENT_LINK = 'http://www.promedmail.org/post/5018201'
DOCUMENT_TEXT = """
US Deer Antler Ex and Imp, of Los Angeles, CA is recalling a variety of herbal teas prepared on [its] premises between 1 March and 30 April 2017 in cooperation with an inspection made ... | true | do ->
'use strict'
module.exports = ->
DOCUMENT_LINK = 'http://www.promedmail.org/post/5018201'
DOCUMENT_TEXT = """
US Deer Antler Ex and Imp, of Los Angeles, CA is recalling a variety of herbal teas prepared on [its] premises between 1 March and 30 April 2017 in cooperation with an inspection made ... |
[
{
"context": " @user1 = @server.findOrCreateUser(id: 1, name: \"Star Fox\", @spark1)\n @user2 = @server.findOrCreateUser(",
"end": 830,
"score": 0.9575255513191223,
"start": 822,
"tag": "NAME",
"value": "Star Fox"
},
{
"context": " @user2 = @server.findOrCreateUser(id: 2, name: ... | test/server/commands_spec.coffee | sarenji/pokebattle-sim | 5 | require('../helpers')
should = require('should')
async = require 'async'
primus = require('primus')
commands = require('../../server/commands')
alts = require('../../server/alts')
auth = require('../../server/auth')
{User} = require('../../server/user')
{BattleServer} = require('../../server/server')
{Room} = require(... | 22921 | require('../helpers')
should = require('should')
async = require 'async'
primus = require('primus')
commands = require('../../server/commands')
alts = require('../../server/alts')
auth = require('../../server/auth')
{User} = require('../../server/user')
{BattleServer} = require('../../server/server')
{Room} = require(... | true | require('../helpers')
should = require('should')
async = require 'async'
primus = require('primus')
commands = require('../../server/commands')
alts = require('../../server/alts')
auth = require('../../server/auth')
{User} = require('../../server/user')
{BattleServer} = require('../../server/server')
{Room} = require(... |
[
{
"context": "ersonality makes you Lawful-aligned.\n *\n * @name Lawful\n * @prerequisite Play for one week\n * @effect +",
"end": 118,
"score": 0.7785242795944214,
"start": 112,
"tag": "NAME",
"value": "Lawful"
}
] | src/character/personalities/Lawful.coffee | sadbear-/IdleLands | 3 |
Personality = require "../base/Personality"
`/**
* This personality makes you Lawful-aligned.
*
* @name Lawful
* @prerequisite Play for one week
* @effect +10 alignment
* @category Personalities
* @package Player
*/`
class Lawful extends Personality
constructor: ->
alignment: -> 10
@canUse = (pl... | 133704 |
Personality = require "../base/Personality"
`/**
* This personality makes you Lawful-aligned.
*
* @name <NAME>
* @prerequisite Play for one week
* @effect +10 alignment
* @category Personalities
* @package Player
*/`
class Lawful extends Personality
constructor: ->
alignment: -> 10
@canUse = (pl... | true |
Personality = require "../base/Personality"
`/**
* This personality makes you Lawful-aligned.
*
* @name PI:NAME:<NAME>END_PI
* @prerequisite Play for one week
* @effect +10 alignment
* @category Personalities
* @package Player
*/`
class Lawful extends Personality
constructor: ->
alignment: -> 10
... |
[
{
"context": "esults.at(0).get(\"Author\").get(\"Name\")).to.equal(\"Administrator\")\r\n\r\n query.exec()\r\n\r\n it 'can support de",
"end": 9181,
"score": 0.7827478647232056,
"start": 9168,
"tag": "NAME",
"value": "Administrator"
}
] | tests/JsonQuery.Tests.coffee | versionone/V1.Backbone | 1 | V1 = require('../V1.Backbone')
JsonRetriever = V1.Backbone.JsonRetriever
expect = require('chai').expect
Backbone = require('backbone')
recorded = require('./recorded')
spy = require('sinon').spy
deferred = require('JQDeferred')
inputCollection = null
describe 'V1.Backbone.JsonRetriever', ->
describe... | 31145 | V1 = require('../V1.Backbone')
JsonRetriever = V1.Backbone.JsonRetriever
expect = require('chai').expect
Backbone = require('backbone')
recorded = require('./recorded')
spy = require('sinon').spy
deferred = require('JQDeferred')
inputCollection = null
describe 'V1.Backbone.JsonRetriever', ->
describe... | true | V1 = require('../V1.Backbone')
JsonRetriever = V1.Backbone.JsonRetriever
expect = require('chai').expect
Backbone = require('backbone')
recorded = require('./recorded')
spy = require('sinon').spy
deferred = require('JQDeferred')
inputCollection = null
describe 'V1.Backbone.JsonRetriever', ->
describe... |
[
{
"context": "a-f0-9]{24}$/i)\n required: true\n altKeys: ['shipId', 'platformId']\n },\n orgUrl: {\n validation: ",
"end": 1080,
"score": 0.9969333410263062,
"start": 1074,
"tag": "KEY",
"value": "shipId"
},
{
"context": "}$/i)\n required: true\n altKeys: ['shipId',... | src/client/script-tag-config.coffee | fossabot/hull-js | 25 | _ = require '../utils/lodash'
logger = require '../utils/logger'
dasherize = (str)->
str.replace /[A-Z]/, (c) -> "-" + c.toLowerCase()
origin = window.location.origin || window.location.protocol + "//" + window.location.hostname
if window.location.port
origin += ':' + window.location.port
httpsRegex = /^https:|... | 145063 | _ = require '../utils/lodash'
logger = require '../utils/logger'
dasherize = (str)->
str.replace /[A-Z]/, (c) -> "-" + c.toLowerCase()
origin = window.location.origin || window.location.protocol + "//" + window.location.hostname
if window.location.port
origin += ':' + window.location.port
httpsRegex = /^https:|... | true | _ = require '../utils/lodash'
logger = require '../utils/logger'
dasherize = (str)->
str.replace /[A-Z]/, (c) -> "-" + c.toLowerCase()
origin = window.location.origin || window.location.protocol + "//" + window.location.hostname
if window.location.port
origin += ':' + window.location.port
httpsRegex = /^https:|... |
[
{
"context": " $modalInstance.close {\n username: this.username\n password: this.password\n }\n $scop",
"end": 5467,
"score": 0.5811622738838196,
"start": 5459,
"tag": "USERNAME",
"value": "username"
},
{
"context": "\n username: this.username\n ... | src/coffee/controllers/mainCtrl.coffee | Chanshi712/RedmineTimeTracker | 73 | timeTracker.controller 'MainCtrl', ($rootScope, $scope, $timeout, $location, $anchorScroll, $window, $q, $modal, Ticket, Project, Account, State, DataAdapter, Message, Platform, Resource, Option, Log, Analytics, RedmineLoader) ->
# represents 5 minuts [msec]
MINUTE_5 = 5 * 60 * 1000
# List for toast Message.
... | 11958 | timeTracker.controller 'MainCtrl', ($rootScope, $scope, $timeout, $location, $anchorScroll, $window, $q, $modal, Ticket, Project, Account, State, DataAdapter, Message, Platform, Resource, Option, Log, Analytics, RedmineLoader) ->
# represents 5 minuts [msec]
MINUTE_5 = 5 * 60 * 1000
# List for toast Message.
... | true | timeTracker.controller 'MainCtrl', ($rootScope, $scope, $timeout, $location, $anchorScroll, $window, $q, $modal, Ticket, Project, Account, State, DataAdapter, Message, Platform, Resource, Option, Log, Analytics, RedmineLoader) ->
# represents 5 minuts [msec]
MINUTE_5 = 5 * 60 * 1000
# List for toast Message.
... |
[
{
"context": "t([catIndex, catGenreIndex])\n keys = Set(['genre','cat','dude'])\n \n index = ObjectSt",
"end": 9898,
"score": 0.7870301008224487,
"start": 9893,
"tag": "KEY",
"value": "genre"
},
{
"context": "dex, catGenreIndex])\n keys = Set(['genre','cat... | spec/search/object_store_spec.coffee | dcrosby42/metroid-clone | 5 | # Finder = require '../../src/javascript/search/immutable_object_finder'
Immutable = require 'immutable'
{Map,Set,List} = Immutable
ExpectHelpers = require '../helpers/expect_helpers'
expectIs = ExpectHelpers.expectIs
ObjectStore = require '../../src/javascript/search/object_store'
util = require 'util'
chai = requi... | 36595 | # Finder = require '../../src/javascript/search/immutable_object_finder'
Immutable = require 'immutable'
{Map,Set,List} = Immutable
ExpectHelpers = require '../helpers/expect_helpers'
expectIs = ExpectHelpers.expectIs
ObjectStore = require '../../src/javascript/search/object_store'
util = require 'util'
chai = requi... | true | # Finder = require '../../src/javascript/search/immutable_object_finder'
Immutable = require 'immutable'
{Map,Set,List} = Immutable
ExpectHelpers = require '../helpers/expect_helpers'
expectIs = ExpectHelpers.expectIs
ObjectStore = require '../../src/javascript/search/object_store'
util = require 'util'
chai = requi... |
[
{
"context": "e 2\"\n description: \"View Issue 2\"\n}, {\n text: \"Lol wut\"\n icon: \"😂\"\n group: \"Issue 2\"\n description: \"D",
"end": 636,
"score": 0.6799201965332031,
"start": 630,
"tag": "NAME",
"value": "ol wut"
},
{
"context": "10\"\n description: \"Culvert Livin'\"... | system/achievement.coffee | STRd6/zine | 12 | Achievement = require "../lib/achievement"
{Observable} = UI = require "ui"
{emptyElement} = require "../util"
# TODO: Track unlocks, save/restore achievements
# TODO: Only display once
# TODO: View achievement progress grouped by area
achievementData = [{
text: "Issue 1"
icon: "📰"
group: "Issue 1"
descrip... | 184226 | Achievement = require "../lib/achievement"
{Observable} = UI = require "ui"
{emptyElement} = require "../util"
# TODO: Track unlocks, save/restore achievements
# TODO: Only display once
# TODO: View achievement progress grouped by area
achievementData = [{
text: "Issue 1"
icon: "📰"
group: "Issue 1"
descrip... | true | Achievement = require "../lib/achievement"
{Observable} = UI = require "ui"
{emptyElement} = require "../util"
# TODO: Track unlocks, save/restore achievements
# TODO: Only display once
# TODO: View achievement progress grouped by area
achievementData = [{
text: "Issue 1"
icon: "📰"
group: "Issue 1"
descrip... |
[
{
"context": "verview Tests for no-restricted-globals.\n# @author Benoît Zugmeyer\n###\n\n'use strict'\n\n#-----------------------------",
"end": 79,
"score": 0.9998325109481812,
"start": 64,
"tag": "NAME",
"value": "Benoît Zugmeyer"
}
] | src/tests/rules/no-restricted-globals.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for no-restricted-globals.
# @author Benoît Zugmeyer
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-restricte... | 170651 | ###*
# @fileoverview Tests for no-restricted-globals.
# @author <NAME>
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-restricted-globals... | true | ###*
# @fileoverview Tests for no-restricted-globals.
# @author PI:NAME:<NAME>END_PI
###
'use strict'
#------------------------------------------------------------------------------
# Requirements
#------------------------------------------------------------------------------
rule = require 'eslint/lib/rules/no-rest... |
[
{
"context": "oveCount = 0\n\ndevicetokens.forEach (dt) ->\n key = \"#{dt.user}#{dt.type}#{dt.clientId}\"\n if dtMap[key] ",
"end": 144,
"score": 0.7496496438980103,
"start": 141,
"tag": "KEY",
"value": "\"#{"
},
{
"context": "0\n\ndevicetokens.forEach (dt) ->\n key = \"#{dt.user}... | talk-api2x/mshells/cleanup-repeat-client-id.coffee | ikingye/talk-os | 3,084 | devicetokens = db.devicetokens.find().sort({updatedAt: -1})
dtMap = {}
tokenMap = {}
removeCount = 0
devicetokens.forEach (dt) ->
key = "#{dt.user}#{dt.type}#{dt.clientId}"
if dtMap[key] or tokenMap[dt.token] or not dt.clientId
print "Remove", JSON.stringify(dt)
removeCount += 1
db.devicetokens.remov... | 96847 | devicetokens = db.devicetokens.find().sort({updatedAt: -1})
dtMap = {}
tokenMap = {}
removeCount = 0
devicetokens.forEach (dt) ->
key = <KEY>dt.user}<KEY>dt.type}<KEY>dt.clientId<KEY>}"
if dtMap[key] or tokenMap[dt.token] or not dt.clientId
print "Remove", JSON.stringify(dt)
removeCount += 1
db.devic... | true | devicetokens = db.devicetokens.find().sort({updatedAt: -1})
dtMap = {}
tokenMap = {}
removeCount = 0
devicetokens.forEach (dt) ->
key = PI:KEY:<KEY>END_PIdt.user}PI:KEY:<KEY>END_PIdt.type}PI:KEY:<KEY>END_PIdt.clientIdPI:KEY:<KEY>END_PI}"
if dtMap[key] or tokenMap[dt.token] or not dt.clientId
print "Remove", ... |
[
{
"context": "k: {}\n clientId: \"12345\"\n accessToken: \"abcdefg\"\n callbackUrl: \"http://localhost/callback.ht",
"end": 707,
"score": 0.9958217144012451,
"start": 700,
"tag": "KEY",
"value": "abcdefg"
},
{
"context": "d is provided\", ->\n readmill.book = auth... | test/spec/readmill.coffee | aron/annotator.readmill.js | 0 | describe "Readmill", ->
jQuery = Annotator.$
Readmill = Annotator.Readmill
readmill = null
beforeEach ->
sinon.stub(Readmill.Store.prototype, "get").returns(null)
readmill = new Readmill $("<div />"),
book: {}
clientId: "12345"
callbackUrl: "http://localhost/callback.html"
afterE... | 25391 | describe "Readmill", ->
jQuery = Annotator.$
Readmill = Annotator.Readmill
readmill = null
beforeEach ->
sinon.stub(Readmill.Store.prototype, "get").returns(null)
readmill = new Readmill $("<div />"),
book: {}
clientId: "12345"
callbackUrl: "http://localhost/callback.html"
afterE... | true | describe "Readmill", ->
jQuery = Annotator.$
Readmill = Annotator.Readmill
readmill = null
beforeEach ->
sinon.stub(Readmill.Store.prototype, "get").returns(null)
readmill = new Readmill $("<div />"),
book: {}
clientId: "12345"
callbackUrl: "http://localhost/callback.html"
afterE... |
[
{
"context": ".setPageTitle('nav.my_account')\n\n user.password = ''\n user.password_confirmation = ''\n\n $scope.editi",
"end": 169,
"score": 0.9638828635215759,
"start": 169,
"tag": "PASSWORD",
"value": ""
},
{
"context": " user.password = ''\n user.password_confirmation = ''\n... | app/assets/javascripts/sprangular/controllers/account.coffee | rposborne/sprangular | 0 | Sprangular.controller 'AccountCtrl', (
$scope,
$location,
$routeParams,
Status,
Account,
user
) ->
Status.setPageTitle('nav.my_account')
user.password = ''
user.password_confirmation = ''
$scope.editing = false
$scope.user = user
$scope.edit = ->
$scope.editing = true
$scope.stopEdit =... | 35991 | Sprangular.controller 'AccountCtrl', (
$scope,
$location,
$routeParams,
Status,
Account,
user
) ->
Status.setPageTitle('nav.my_account')
user.password =<PASSWORD> ''
user.password_confirmation =<PASSWORD> ''
$scope.editing = false
$scope.user = user
$scope.edit = ->
$scope.editing = true
... | true | Sprangular.controller 'AccountCtrl', (
$scope,
$location,
$routeParams,
Status,
Account,
user
) ->
Status.setPageTitle('nav.my_account')
user.password =PI:PASSWORD:<PASSWORD>END_PI ''
user.password_confirmation =PI:PASSWORD:<PASSWORD>END_PI ''
$scope.editing = false
$scope.user = user
$scope.... |
[
{
"context": "---------------------------------\n# Copyright 2014 Patrick Mueller\n#\n# Licensed under the Apache License, Version 2.",
"end": 704,
"score": 0.9998435974121094,
"start": 689,
"tag": "NAME",
"value": "Patrick Mueller"
}
] | www-src/ang/views/body.coffee | pmuellr/gh-miner | 1 | # Licensed under the Apache License. See footer for details.
AngTangle.controller body = ($scope, Logger, data) ->
domReady = false
$ ->
domReady = true
$scope.isDev = $("html").hasClass "dev"
$scope.messages = Logger.getMessages()
$scope.pkg = data.package
subTitle = ... | 90340 | # Licensed under the Apache License. See footer for details.
AngTangle.controller body = ($scope, Logger, data) ->
domReady = false
$ ->
domReady = true
$scope.isDev = $("html").hasClass "dev"
$scope.messages = Logger.getMessages()
$scope.pkg = data.package
subTitle = ... | true | # Licensed under the Apache License. See footer for details.
AngTangle.controller body = ($scope, Logger, data) ->
domReady = false
$ ->
domReady = true
$scope.isDev = $("html").hasClass "dev"
$scope.messages = Logger.getMessages()
$scope.pkg = data.package
subTitle = ... |
[
{
"context": "rs (dot) noreply (dot) github (dot) com\n# @Author: Ben Mz\n\n# Licensed under the Apache License, Version 2.0",
"end": 101,
"score": 0.9997890591621399,
"start": 95,
"tag": "NAME",
"value": "Ben Mz"
}
] | livetoken.coffee | x62en/livetoken-npm | 0 | # Copyright [2016]
# @Email: x62en (at) users (dot) noreply (dot) github (dot) com
# @Author: Ben Mz
# 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/LICE... | 170899 | # Copyright [2016]
# @Email: x62en (at) users (dot) noreply (dot) github (dot) com
# @Author: <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/LICE... | true | # Copyright [2016]
# @Email: x62en (at) users (dot) noreply (dot) github (dot) com
# @Author: 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... |
[
{
"context": "s', (next) ->\n parse \"\"\"\n name,last name\n Boudreau,Jonathan\n \"\"\", raw: true, columns: ['FIELD_1', ",
"end": 791,
"score": 0.9366697072982788,
"start": 783,
"tag": "NAME",
"value": "Boudreau"
},
{
"context": " ->\n parse \"\"\"\n name,last nam... | test/api.raw.coffee | hei-pa/node-csv-parse | 1 |
parse = require '../src'
describe 'api raw', ->
it 'includes escape chars', (next) ->
str = """
"hello""world",LOL
"""
parse str, raw: true, escape: '"', (err, data) ->
data[0].raw.should.eql str unless err
data[0].row.should.eql [ 'hello"world', 'LOL' ] unless err
next err
it '... | 118262 |
parse = require '../src'
describe 'api raw', ->
it 'includes escape chars', (next) ->
str = """
"hello""world",LOL
"""
parse str, raw: true, escape: '"', (err, data) ->
data[0].raw.should.eql str unless err
data[0].row.should.eql [ 'hello"world', 'LOL' ] unless err
next err
it '... | true |
parse = require '../src'
describe 'api raw', ->
it 'includes escape chars', (next) ->
str = """
"hello""world",LOL
"""
parse str, raw: true, escape: '"', (err, data) ->
data[0].raw.should.eql str unless err
data[0].row.should.eql [ 'hello"world', 'LOL' ] unless err
next err
it '... |
[
{
"context": "ount = new DotLedger.Models.Account(id: 1, name: 'Some Account'))->\n view = new DotLedger.Views.Statements.Fo",
"end": 178,
"score": 0.7129579782485962,
"start": 166,
"tag": "NAME",
"value": "Some Account"
}
] | spec/javascripts/dot_ledger/views/statements/form_spec.js.coffee | timobleeker/dotledger | 0 | describe "DotLedger.Views.Statements.Form", ->
createView = (statement = new DotLedger.Models.Statement(),
account = new DotLedger.Models.Account(id: 1, name: 'Some Account'))->
view = new DotLedger.Views.Statements.Form
model: statement
account: account
view
it "should be defined", ->
... | 25339 | describe "DotLedger.Views.Statements.Form", ->
createView = (statement = new DotLedger.Models.Statement(),
account = new DotLedger.Models.Account(id: 1, name: '<NAME>'))->
view = new DotLedger.Views.Statements.Form
model: statement
account: account
view
it "should be defined", ->
expect... | true | describe "DotLedger.Views.Statements.Form", ->
createView = (statement = new DotLedger.Models.Statement(),
account = new DotLedger.Models.Account(id: 1, name: 'PI:NAME:<NAME>END_PI'))->
view = new DotLedger.Views.Statements.Form
model: statement
account: account
view
it "should be defined",... |
[
{
"context": "# Reavetard Wifi Module Tests - Author: Robbie Saunders\n# Test Linux interface configuration commands fro",
"end": 55,
"score": 0.9998611211776733,
"start": 40,
"tag": "NAME",
"value": "Robbie Saunders"
}
] | test/wifi.coffee | eibbors/reavetard | 1 | # Reavetard Wifi Module Tests - Author: Robbie Saunders
# Test Linux interface configuration commands from wifi.coffee
# Change these to match your interface names before running
DEV1 = 'wlan1'
DEV2 = 'wlan2'
DEV3 = 'eth1'
# Import wifi command `namespaces`
{airmon, iwconfig, ifconfig} = require '../src/wifi'
# airm... | 99319 | # Reavetard Wifi Module Tests - Author: <NAME>
# Test Linux interface configuration commands from wifi.coffee
# Change these to match your interface names before running
DEV1 = 'wlan1'
DEV2 = 'wlan2'
DEV3 = 'eth1'
# Import wifi command `namespaces`
{airmon, iwconfig, ifconfig} = require '../src/wifi'
# airmon-ng
# ... | true | # Reavetard Wifi Module Tests - Author: PI:NAME:<NAME>END_PI
# Test Linux interface configuration commands from wifi.coffee
# Change these to match your interface names before running
DEV1 = 'wlan1'
DEV2 = 'wlan2'
DEV3 = 'eth1'
# Import wifi command `namespaces`
{airmon, iwconfig, ifconfig} = require '../src/wifi'
#... |
[
{
"context": "# \n# grunt-include-bootstrap\n# https://github.com/davewasmer/grunt-include-bootstrap\n# \n# Copyright (c) 2013 D",
"end": 60,
"score": 0.9997206330299377,
"start": 50,
"tag": "USERNAME",
"value": "davewasmer"
},
{
"context": "er/grunt-include-bootstrap\n# \n# Copyrigh... | tasks/include_bootstrap.coffee | gruntjs-updater/grunt-include-bootstrap | 0 | #
# grunt-include-bootstrap
# https://github.com/davewasmer/grunt-include-bootstrap
#
# Copyright (c) 2013 Dave Wasmer
# Licensed under the MIT license.
#
path = require 'path'
module.exports = (grunt) ->
grunt.task.loadNpmTasks('grunt-contrib-less')
grunt.registerMultiTask 'include_bootstrap', 'Include the ... | 63064 | #
# grunt-include-bootstrap
# https://github.com/davewasmer/grunt-include-bootstrap
#
# Copyright (c) 2013 <NAME>
# Licensed under the MIT license.
#
path = require 'path'
module.exports = (grunt) ->
grunt.task.loadNpmTasks('grunt-contrib-less')
grunt.registerMultiTask 'include_bootstrap', 'Include the base ... | true | #
# grunt-include-bootstrap
# https://github.com/davewasmer/grunt-include-bootstrap
#
# Copyright (c) 2013 PI:NAME:<NAME>END_PI
# Licensed under the MIT license.
#
path = require 'path'
module.exports = (grunt) ->
grunt.task.loadNpmTasks('grunt-contrib-less')
grunt.registerMultiTask 'include_bootstrap', 'Inc... |
[
{
"context": "d = this.inputs.profile_id;\n this.user.password = this.inputs.password;\n ",
"end": 207,
"score": 0.9662841558456421,
"start": 187,
"tag": "PASSWORD",
"value": "this.inputs.password"
}
] | resources/assets/js/admininfo/methods/updateUser.coffee | xavierauana/sbctemp | 0 | module.exports = ->
console.log('Put to server and update user');
this.user.loginName = this.inputs.loginName;
this.user.profile_id = this.inputs.profile_id;
this.user.password = this.inputs.password;
| 153578 | module.exports = ->
console.log('Put to server and update user');
this.user.loginName = this.inputs.loginName;
this.user.profile_id = this.inputs.profile_id;
this.user.password = <PASSWORD>;
| true | module.exports = ->
console.log('Put to server and update user');
this.user.loginName = this.inputs.loginName;
this.user.profile_id = this.inputs.profile_id;
this.user.password = PI:PASSWORD:<PASSWORD>END_PI;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.