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": " rich text editing jQuery UI widget\n# (c) 2011 Henri Bergius, IKS Consortium\n# Hallo may be freely distrib",
"end": 79,
"score": 0.9998356103897095,
"start": 66,
"tag": "NAME",
"value": "Henri Bergius"
},
{
"context": " Image insertion plugin\n#\n# Liip AG... | vendor/assets/javascripts/hallo/plugins/image.coffee | spanner/bop | 0 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 Henri Bergius, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Image insertion plugin
#
# Liip AG:
#
# * Colin Frei
# * Reto Ryter
# * David Buchmann
# * Fabian Vogler
# * Bartosz Podlewski
((jQu... | 35188 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 <NAME>, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Image insertion plugin
#
# Liip AG:
#
# * <NAME>
# * <NAME>
# * <NAME>
# * <NAME>
# * <NAME>
((jQuery) ->
jQuery.widget "Liip.halloimage"... | true | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 PI:NAME:<NAME>END_PI, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Image insertion plugin
#
# Liip AG:
#
# * PI:NAME:<NAME>END_PI
# * PI:NAME:<NAME>END_PI
# * PI:NAME:<NAME>END_PI
# * PI:NAME:<NAM... |
[
{
"context": " Backbone\n) ->\n\n ###*\n # @author Raymond de Wit\n # @module App\n # @submodule ",
"end": 341,
"score": 0.9998782277107239,
"start": 327,
"tag": "NAME",
"value": "Raymond de Wit"
}
] | generators/demo/templates/src/models/example.coffee | marviq/generator-bat | 3 | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
], factory )
return
)((
Backbone
) ->
###*
# @author ... | 88920 | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
], factory )
return
)((
Backbone
) ->
###*
# @author ... | true | 'use strict'
( ( factory ) ->
if typeof exports is 'object'
module.exports = factory(
require( 'backbone' )
)
else if typeof define is 'function' and define.amd
define( [
'backbone'
], factory )
return
)((
Backbone
) ->
###*
# @author ... |
[
{
"context": "e [url] [options]')\n .epilog('Copyright 2016 by Philipp Staender, https://tldr.one')\n .argv\n\nif argv.version\n ",
"end": 1828,
"score": 0.9998686909675598,
"start": 1812,
"tag": "NAME",
"value": "Philipp Staender"
}
] | src/index.coffee | pstaender/tldr.one-cli | 0 | fs = require('fs')
_ = require('lodash')
config = {}
configFileName = process.env.TLDRConfigFile || '.tldr.one.yml'
# check and merge config file(s); in this folder and in home dir
[ __dirname+'/../'+configFileName, require('home-dir')()+'/'+configFileName ].forEach (ymlFilePath) ->
try
_.merge config, require('... | 120224 | fs = require('fs')
_ = require('lodash')
config = {}
configFileName = process.env.TLDRConfigFile || '.tldr.one.yml'
# check and merge config file(s); in this folder and in home dir
[ __dirname+'/../'+configFileName, require('home-dir')()+'/'+configFileName ].forEach (ymlFilePath) ->
try
_.merge config, require('... | true | fs = require('fs')
_ = require('lodash')
config = {}
configFileName = process.env.TLDRConfigFile || '.tldr.one.yml'
# check and merge config file(s); in this folder and in home dir
[ __dirname+'/../'+configFileName, require('home-dir')()+'/'+configFileName ].forEach (ymlFilePath) ->
try
_.merge config, require('... |
[
{
"context": "mespace COOLSTRAP\n * @class Navigate\n *\n * @author Abraham Barrera <abarrerac@gmail.com> || @abraham_barrera\n###\n\nCO",
"end": 139,
"score": 0.9998999834060669,
"start": 124,
"tag": "NAME",
"value": "Abraham Barrera"
},
{
"context": " * @class Navigate\n *\n * @aut... | coolstrap-core/app/assets/javascripts/coolstrap/navigate/_Coolstrap.Navigate.coffee | cristianferrarig/coolstrap | 0 | ###
* Handles the <sections> , <articles> and <asides> to show
*
* @namespace COOLSTRAP
* @class Navigate
*
* @author Abraham Barrera <abarrerac@gmail.com> || @abraham_barrera
###
COOLSTRAP.Navigate = ((cool) ->
ATTRIBUTE = cool.Constants.ATTRIBUTE
CLASS = cool.Constants.CLASS
ELEMENT = cool.Constants.ELEM... | 8505 | ###
* Handles the <sections> , <articles> and <asides> to show
*
* @namespace COOLSTRAP
* @class Navigate
*
* @author <NAME> <<EMAIL>> || @abraham_barrera
###
COOLSTRAP.Navigate = ((cool) ->
ATTRIBUTE = cool.Constants.ATTRIBUTE
CLASS = cool.Constants.CLASS
ELEMENT = cool.Constants.ELEMENT
TRIGGER = cool.... | true | ###
* Handles the <sections> , <articles> and <asides> to show
*
* @namespace COOLSTRAP
* @class Navigate
*
* @author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> || @abraham_barrera
###
COOLSTRAP.Navigate = ((cool) ->
ATTRIBUTE = cool.Constants.ATTRIBUTE
CLASS = cool.Constants.CLASS
ELEMENT = cool.Consta... |
[
{
"context": "(done) ->\n this.testPOSTAPI \"/receive?appKey=sdf98sd98sfd&nonce=844551300×tamp=1467557868712&signature",
"end": 1829,
"score": 0.9968769550323486,
"start": 1817,
"tag": "KEY",
"value": "sdf98sd98sfd"
}
] | spec/apiSpec.coffee | rongcloud/sealtalk-robot | 6 | Config = require '../src/conf'
describe 'Test robot.', ->
# _global = null
#
# beforeAll ->
# _global = this
describe 'Test receiving message.', ->
it 'Correct.', (done) ->
this.testPOSTAPI "/receive?appKey=#{Config.RONGCLOUD_APP_KEY}&nonce=844551300×tamp=1467557868712&signature=13fe1fc1e9... | 127667 | Config = require '../src/conf'
describe 'Test robot.', ->
# _global = null
#
# beforeAll ->
# _global = this
describe 'Test receiving message.', ->
it 'Correct.', (done) ->
this.testPOSTAPI "/receive?appKey=#{Config.RONGCLOUD_APP_KEY}&nonce=844551300×tamp=1467557868712&signature=13fe1fc1e9... | true | Config = require '../src/conf'
describe 'Test robot.', ->
# _global = null
#
# beforeAll ->
# _global = this
describe 'Test receiving message.', ->
it 'Correct.', (done) ->
this.testPOSTAPI "/receive?appKey=#{Config.RONGCLOUD_APP_KEY}&nonce=844551300×tamp=1467557868712&signature=13fe1fc1e9... |
[
{
"context": "ements must have a <track> for captions.\n# @author Ethan Cohen\n###\n\n# ------------------------------------------",
"end": 129,
"score": 0.9998857975006104,
"start": 118,
"tag": "NAME",
"value": "Ethan Cohen"
}
] | src/tests/rules/media-has-caption.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview <audio> and <video> elements must have a <track> for captions.
# @author Ethan Cohen
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = re... | 197733 | ### eslint-env jest ###
###*
# @fileoverview <audio> and <video> elements must have a <track> for captions.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require... | true | ### eslint-env jest ###
###*
# @fileoverview <audio> and <video> elements must have a <track> for captions.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
... |
[
{
"context": "foreEach ->\n process.env.CREATESEND_API_KEY = 'foo123bar456baz'\n process.env.CREATESEND_CLIENT_ID = 'foobarba",
"end": 284,
"score": 0.9996445775032043,
"start": 269,
"tag": "KEY",
"value": "foo123bar456baz"
},
{
"context": "ise (resolve, reject) ->\n selfR... | test/createsend_test.coffee | stephenyeargin/hubot-createsend | 1 | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper('../src/createsend.coffee')
describe 'createsend basic operations', ->
beforeEach ->
process.env.CREATESEND_API_KEY = 'foo123bar456baz'
process.env.CREATESEND_CLIENT_... | 116549 | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper('../src/createsend.coffee')
describe 'createsend basic operations', ->
beforeEach ->
process.env.CREATESEND_API_KEY = '<KEY>'
process.env.CREATESEND_CLIENT_ID = 'foob... | true | Helper = require('hubot-test-helper')
chai = require 'chai'
nock = require 'nock'
fs = require 'fs'
expect = chai.expect
helper = new Helper('../src/createsend.coffee')
describe 'createsend basic operations', ->
beforeEach ->
process.env.CREATESEND_API_KEY = 'PI:KEY:<KEY>END_PI'
process.env.CREATESEND_CLIE... |
[
{
"context": "e.com\"\n\n sn: ->\n @_handleCommand \"nick\", \"sugarman#{Math.floor(Math.random() * 100)}\"\n\n 2: ->\n ",
"end": 402,
"score": 0.9988269805908203,
"start": 394,
"tag": "USERNAME",
"value": "sugarman"
},
{
"context": "e.com\"\n\n 3: ->\n @_handleC... | src/chat/developer_commands.coffee | nornagon/ircv | 20 | exports = window.chat ?= {}
##
# Special commands used to make testing easier. These commands are not
# displayed in /help.
#
# TODO: Remote these commands when pushing a public build.
##
class DeveloperCommands extends MessageHandler
constructor: (@_chat) ->
super
_handlers:
1: ->
@_handleCommand "... | 219841 | exports = window.chat ?= {}
##
# Special commands used to make testing easier. These commands are not
# displayed in /help.
#
# TODO: Remote these commands when pushing a public build.
##
class DeveloperCommands extends MessageHandler
constructor: (@_chat) ->
super
_handlers:
1: ->
@_handleCommand "... | true | exports = window.chat ?= {}
##
# Special commands used to make testing easier. These commands are not
# displayed in /help.
#
# TODO: Remote these commands when pushing a public build.
##
class DeveloperCommands extends MessageHandler
constructor: (@_chat) ->
super
_handlers:
1: ->
@_handleCommand "... |
[
{
"context": "pe', 'application/json'\n .send\n to: ['user1@abc.com', 'user2@abc.com' ]\n cc: ['user3@abc.com']",
"end": 373,
"score": 0.9999182224273682,
"start": 360,
"tag": "EMAIL",
"value": "user1@abc.com"
},
{
"context": "/json'\n .send\n to: ['use... | backend/test/unit/create.coffee | twhtanghk/rest.smtp | 0 | co = require 'co'
req = require 'supertest'
describe 'email', ->
token = null
before -> co ->
token = yield sails.config.oauth2.validToken sails.config.oauth2
it 'create', ->
req sails.hooks.http.app
.post '/api/email'
.set 'Authorization', "Bearer #{token}"
.set 'Content-Type', 'appl... | 183526 | co = require 'co'
req = require 'supertest'
describe 'email', ->
token = null
before -> co ->
token = yield sails.config.oauth2.validToken sails.config.oauth2
it 'create', ->
req sails.hooks.http.app
.post '/api/email'
.set 'Authorization', "Bearer #{token}"
.set 'Content-Type', 'appl... | true | co = require 'co'
req = require 'supertest'
describe 'email', ->
token = null
before -> co ->
token = yield sails.config.oauth2.validToken sails.config.oauth2
it 'create', ->
req sails.hooks.http.app
.post '/api/email'
.set 'Authorization', "Bearer #{token}"
.set 'Content-Type', 'appl... |
[
{
"context": " stderr', () ->\n # See https://travis-ci.org/cybertk/abao/jobs/76656192#L479\n # iojs behaviour is",
"end": 7545,
"score": 0.9993684887886047,
"start": 7538,
"tag": "USERNAME",
"value": "cybertk"
},
{
"context": " type: 'bulldozer'\n na... | test/e2e/cli-test.coffee | plroebuck/abao | 380 | chai = require 'chai'
child_process = require 'child_process'
express = require 'express'
_ = require 'lodash'
pkg = require '../../package'
expect = chai.expect
HOSTNAME = 'localhost'
PORT = 3333
SERVER = "http://#{HOSTNAME}:#{PORT}"
TEMPLATE_DIR = './templates'
DFLT_TEMPLATE_FILE = "#{TEMPLATE_DIR}/hooks.js"
FIXTU... | 61457 | chai = require 'chai'
child_process = require 'child_process'
express = require 'express'
_ = require 'lodash'
pkg = require '../../package'
expect = chai.expect
HOSTNAME = 'localhost'
PORT = 3333
SERVER = "http://#{HOSTNAME}:#{PORT}"
TEMPLATE_DIR = './templates'
DFLT_TEMPLATE_FILE = "#{TEMPLATE_DIR}/hooks.js"
FIXTU... | true | chai = require 'chai'
child_process = require 'child_process'
express = require 'express'
_ = require 'lodash'
pkg = require '../../package'
expect = chai.expect
HOSTNAME = 'localhost'
PORT = 3333
SERVER = "http://#{HOSTNAME}:#{PORT}"
TEMPLATE_DIR = './templates'
DFLT_TEMPLATE_FILE = "#{TEMPLATE_DIR}/hooks.js"
FIXTU... |
[
{
"context": "truct a new Queue\n #\n # @param [String] user The username\n # @param [String] password The password\n # @pa",
"end": 1515,
"score": 0.9663372039794922,
"start": 1507,
"tag": "USERNAME",
"value": "username"
},
{
"context": "user The username\n # @param [String] pa... | src/modules/queue.coffee | Soundscape/sublime-amqp | 0 | Core = require 'sublime-core'
Stomp = require 'stompjs'
shoe = require 'shoe'
states =
disconnected:
connect: (inst) ->
sock = shoe("#{inst.protocol}://#{inst.host}:#{inst.port}/stomp").sock
inst.client = if inst.node and typeof window == 'undefined' then Stomp.overTCP(inst.host, inst.port)
els... | 181035 | Core = require 'sublime-core'
Stomp = require 'stompjs'
shoe = require 'shoe'
states =
disconnected:
connect: (inst) ->
sock = shoe("#{inst.protocol}://#{inst.host}:#{inst.port}/stomp").sock
inst.client = if inst.node and typeof window == 'undefined' then Stomp.overTCP(inst.host, inst.port)
els... | true | Core = require 'sublime-core'
Stomp = require 'stompjs'
shoe = require 'shoe'
states =
disconnected:
connect: (inst) ->
sock = shoe("#{inst.protocol}://#{inst.host}:#{inst.port}/stomp").sock
inst.client = if inst.node and typeof window == 'undefined' then Stomp.overTCP(inst.host, inst.port)
els... |
[
{
"context": "local couchdb server\nTODO_COUCH_LOCAL = \"http://127.0.0.1:5984\"\n\n# local mongo server\nTODO_MONGO_LOCAL = ",
"end": 297,
"score": 0.9995937347412109,
"start": 288,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "\n pathname: \"database\"\n ... | node/lib-src/server.coffee | Oskarmal/svlab3 | 0 | # Licensed under the Apache License. See footer for details.
# name of the todo service in cloud foundry
TODO_COUCH_SERVICE = "todo-couch-db"
TODO_MONGOLAB_SERVICE = "todo-mongo-db"
TODO_COMPOSEMONGO_SERVICE = "todo-compose-mongo-db"
# local couchdb server
TODO_COUCH_LOCAL = "http://127.0.0.1:5984"
# local mongo s... | 134408 | # Licensed under the Apache License. See footer for details.
# name of the todo service in cloud foundry
TODO_COUCH_SERVICE = "todo-couch-db"
TODO_MONGOLAB_SERVICE = "todo-mongo-db"
TODO_COMPOSEMONGO_SERVICE = "todo-compose-mongo-db"
# local couchdb server
TODO_COUCH_LOCAL = "http://127.0.0.1:5984"
# local mongo s... | true | # Licensed under the Apache License. See footer for details.
# name of the todo service in cloud foundry
TODO_COUCH_SERVICE = "todo-couch-db"
TODO_MONGOLAB_SERVICE = "todo-mongo-db"
TODO_COMPOSEMONGO_SERVICE = "todo-compose-mongo-db"
# local couchdb server
TODO_COUCH_LOCAL = "http://127.0.0.1:5984"
# local mongo s... |
[
{
"context": "\tif /Mobile/.test navigator.userAgent\n\t\tkeys = [['tab', '\\t'], ['cr', '\\n'], '!', '@', '#', '$', '%', '",
"end": 6868,
"score": 0.500550389289856,
"start": 6865,
"tag": "KEY",
"value": "tab"
},
{
"context": "ile/.test navigator.userAgent\n\t\tkeys = [['tab', '\\t'... | try_coffee.coffee | luochen1990/luochen1990.github.io | 0 | init_coffee_editor = (coffee_code_div, js_code_div) ->
$(coffee_code_div).css('tab-size': '4', '-moz-tab-size': '4', '-o-tab-size': '4')
_js_code = ''
#_history_counter = 0
_compile = () ->
try
_js_code = CoffeeScript.compile($(coffee_code_div).val(), {bare: true})
$(js_code_div).val(_js_code) if js_code_di... | 43375 | init_coffee_editor = (coffee_code_div, js_code_div) ->
$(coffee_code_div).css('tab-size': '4', '-moz-tab-size': '4', '-o-tab-size': '4')
_js_code = ''
#_history_counter = 0
_compile = () ->
try
_js_code = CoffeeScript.compile($(coffee_code_div).val(), {bare: true})
$(js_code_div).val(_js_code) if js_code_di... | true | init_coffee_editor = (coffee_code_div, js_code_div) ->
$(coffee_code_div).css('tab-size': '4', '-moz-tab-size': '4', '-o-tab-size': '4')
_js_code = ''
#_history_counter = 0
_compile = () ->
try
_js_code = CoffeeScript.compile($(coffee_code_div).val(), {bare: true})
$(js_code_div).val(_js_code) if js_code_di... |
[
{
"context": " 'prefix':'micab'\n 'body': \"\"\"\n<!--\n Author: Juan Diego Pérez @pekechis\n E-mail: contact@jdperez.es\n Desc",
"end": 1236,
"score": 0.999882161617279,
"start": 1220,
"tag": "NAME",
"value": "Juan Diego Pérez"
},
{
"context": "\n 'body': \"\"\"\n<!--... | Tools/Atom/snippets.cson | pekechis/teaching_examples | 24 | # ATOM HTML SNIPPETS
# 1. HTML SKELETON htmls+tab creates the skeleton of a web page
# 2. HTML COMMENT hcom+tab creates an html comment
# 3. HTML AUTHOR HEADER
'*.*' :
'lorem ipsum':
'prefix' : 'lorem'
'body': """
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt u... | 17422 | # ATOM HTML SNIPPETS
# 1. HTML SKELETON htmls+tab creates the skeleton of a web page
# 2. HTML COMMENT hcom+tab creates an html comment
# 3. HTML AUTHOR HEADER
'*.*' :
'lorem ipsum':
'prefix' : 'lorem'
'body': """
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt u... | true | # ATOM HTML SNIPPETS
# 1. HTML SKELETON htmls+tab creates the skeleton of a web page
# 2. HTML COMMENT hcom+tab creates an html comment
# 3. HTML AUTHOR HEADER
'*.*' :
'lorem ipsum':
'prefix' : 'lorem'
'body': """
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt u... |
[
{
"context": " <img src=\"${1:mcfly}.jpg\">\n <h2>${2:Marty McFly}</h2>\n <p>${3:November 05, 1955}</p>\n ",
"end": 1806,
"score": 0.9988866448402405,
"start": 1795,
"tag": "NAME",
"value": "Marty McFly"
}
] | snippets/card.cson | mod-john/ionic-atom-plugin | 21 | ".text.html":
'Card':
'prefix':'ionic-css-card'
'body' : """
<div class="card">
<div class="item item-text-wrap">
${1:This is a Card}
</div>
</div>
"""
'Card List':
'prefix':'ionic-css-card:list'
'body' : """
<div class="list card">
... | 171866 | ".text.html":
'Card':
'prefix':'ionic-css-card'
'body' : """
<div class="card">
<div class="item item-text-wrap">
${1:This is a Card}
</div>
</div>
"""
'Card List':
'prefix':'ionic-css-card:list'
'body' : """
<div class="list card">
... | true | ".text.html":
'Card':
'prefix':'ionic-css-card'
'body' : """
<div class="card">
<div class="item item-text-wrap">
${1:This is a Card}
</div>
</div>
"""
'Card List':
'prefix':'ionic-css-card:list'
'body' : """
<div class="list card">
... |
[
{
"context": " value\n\n GH = 'octo'\n REPO = 'myRepo'\n USER = 'someUser'\n ME = 'myUser'\n BRANCH = 'BRANCH'\n ANOTHER_US",
"end": 1148,
"score": 0.9994752407073975,
"start": 1140,
"tag": "USERNAME",
"value": "someUser"
},
{
"context": "to'\n REPO = 'myRepo'\n USER = 'someU... | test/simple.spec.coffee | BafS/octokat.js | 59 | define = window?.define or (deps, cb) -> cb((require(dep.replace('cs!./', './')) for dep in deps)...)
define ['chai', 'cs!./test-config'], ({assert, expect}, {Octokat, client, USERNAME, TOKEN, ORG_NAME, REPO_USER, REPO_NAME, REPO_HOMEPAGE, OTHER_HOMEPAGE, OTHER_USERNAME, DEFAULT_BRANCH, LONG_TIMEOUT, SHORT_TIMEOUT}) ->... | 92928 | define = window?.define or (deps, cb) -> cb((require(dep.replace('cs!./', './')) for dep in deps)...)
define ['chai', 'cs!./test-config'], ({assert, expect}, {Octokat, client, USERNAME, TOKEN, ORG_NAME, REPO_USER, REPO_NAME, REPO_HOMEPAGE, OTHER_HOMEPAGE, OTHER_USERNAME, DEFAULT_BRANCH, LONG_TIMEOUT, SHORT_TIMEOUT}) ->... | true | define = window?.define or (deps, cb) -> cb((require(dep.replace('cs!./', './')) for dep in deps)...)
define ['chai', 'cs!./test-config'], ({assert, expect}, {Octokat, client, USERNAME, TOKEN, ORG_NAME, REPO_USER, REPO_NAME, REPO_HOMEPAGE, OTHER_HOMEPAGE, OTHER_USERNAME, DEFAULT_BRANCH, LONG_TIMEOUT, SHORT_TIMEOUT}) ->... |
[
{
"context": "###\n# riki-browser.coffee\n# @author Sidharth Mishra\n# @description Adding browser support to rikimaru",
"end": 51,
"score": 0.999880313873291,
"start": 36,
"tag": "NAME",
"value": "Sidharth Mishra"
}
] | src/cfs/riki-browser.coffee | AdiChat/rikimaru | 3 | ###
# riki-browser.coffee
# @author Sidharth Mishra
# @description Adding browser support to rikimaru
# @created Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
# @last-modified Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
###
import { app, BrowserWindow } from 'electron'
export createWindow = (url) ->
do(win = undefined) ->
... | 99138 | ###
# riki-browser.coffee
# @author <NAME>
# @description Adding browser support to rikimaru
# @created Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
# @last-modified Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
###
import { app, BrowserWindow } from 'electron'
export createWindow = (url) ->
do(win = undefined) ->
win = n... | true | ###
# riki-browser.coffee
# @author PI:NAME:<NAME>END_PI
# @description Adding browser support to rikimaru
# @created Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
# @last-modified Mon Nov 20 2017 20:46:05 GMT-0800 (PST)
###
import { app, BrowserWindow } from 'electron'
export createWindow = (url) ->
do(win = undefined) ... |
[
{
"context": "# Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.\n\n#/--- G",
"end": 28,
"score": 0.9998732805252075,
"start": 17,
"tag": "NAME",
"value": "Mark Cavage"
},
{
"context": "# Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.\n\n#/--- ... | deps/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.coffee | lxe/io.coffee | 0 | # Copyright 2011 Mark Cavage <mcavage@gmail.com> All rights reserved.
#/--- Globals
#/--- Helpers
merge = (from, to) ->
assert.ok from
assert.equal typeof (from), "object"
assert.ok to
assert.equal typeof (to), "object"
keys = Object.getOwnPropertyNames(from)
keys.forEach (key) ->
return if to[key]
... | 52382 | # Copyright 2011 <NAME> <<EMAIL>> All rights reserved.
#/--- Globals
#/--- Helpers
merge = (from, to) ->
assert.ok from
assert.equal typeof (from), "object"
assert.ok to
assert.equal typeof (to), "object"
keys = Object.getOwnPropertyNames(from)
keys.forEach (key) ->
return if to[key]
value = Obje... | true | # Copyright 2011 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> All rights reserved.
#/--- Globals
#/--- Helpers
merge = (from, to) ->
assert.ok from
assert.equal typeof (from), "object"
assert.ok to
assert.equal typeof (to), "object"
keys = Object.getOwnPropertyNames(from)
keys.forEach (key) ->
return... |
[
{
"context": " sendFrame 'ready', uuid: 'some-device', token: 'some-token'\n\n socket.on 'error', (error) ->\n thr",
"end": 1677,
"score": 0.712415874004364,
"start": 1667,
"tag": "KEY",
"value": "some-token"
}
] | test/verifier-spec.coffee | sqrtofsaturn/meshblu-verifier-websocket | 0 | shmock = require 'shmock'
Verifier = require '../src/verifier'
MockMeshbluWebsocket = require './mock-meshblu-websocket'
describe 'Verifier', ->
beforeEach (done) ->
@registerHandler = sinon.stub()
@whoamiHandler = sinon.stub()
@unregisterHandler = sinon.stub()
@updateHandler = sinon.stub()
@mess... | 123996 | shmock = require 'shmock'
Verifier = require '../src/verifier'
MockMeshbluWebsocket = require './mock-meshblu-websocket'
describe 'Verifier', ->
beforeEach (done) ->
@registerHandler = sinon.stub()
@whoamiHandler = sinon.stub()
@unregisterHandler = sinon.stub()
@updateHandler = sinon.stub()
@mess... | true | shmock = require 'shmock'
Verifier = require '../src/verifier'
MockMeshbluWebsocket = require './mock-meshblu-websocket'
describe 'Verifier', ->
beforeEach (done) ->
@registerHandler = sinon.stub()
@whoamiHandler = sinon.stub()
@unregisterHandler = sinon.stub()
@updateHandler = sinon.stub()
@mess... |
[
{
"context": "/github.com/RUB-NDS/XMLSec-WebCrypto\"\n\n author: \"Martin Becker\"\n\n #dependencies:\n \n devDependencies:\n \"htt",
"end": 243,
"score": 0.9999022483825684,
"start": 230,
"tag": "NAME",
"value": "Martin Becker"
}
] | package.coffee | RUB-NDS/XMLSec-WebCrypto | 1 | module.exports =
name: "xmlsec-webcrypto"
version: "0.1.1"
description: "An implementation for the XML Security Standard using the W3C WebCrypto API"
homepage: "https://github.com/RUB-NDS/XMLSec-WebCrypto"
author: "Martin Becker"
#dependencies:
devDependencies:
"http-server": ">= 0.8.5"
j... | 33791 | module.exports =
name: "xmlsec-webcrypto"
version: "0.1.1"
description: "An implementation for the XML Security Standard using the W3C WebCrypto API"
homepage: "https://github.com/RUB-NDS/XMLSec-WebCrypto"
author: "<NAME>"
#dependencies:
devDependencies:
"http-server": ">= 0.8.5"
jquery: ... | true | module.exports =
name: "xmlsec-webcrypto"
version: "0.1.1"
description: "An implementation for the XML Security Standard using the W3C WebCrypto API"
homepage: "https://github.com/RUB-NDS/XMLSec-WebCrypto"
author: "PI:NAME:<NAME>END_PI"
#dependencies:
devDependencies:
"http-server": ">= 0.8.5... |
[
{
"context": "oLowerCase() + '@zooniverse.org'\nTEST_PASSWORD = 'P@$$wørd'\n\ntest 'Checking the current user initially fails",
"end": 209,
"score": 0.9994284510612488,
"start": 201,
"tag": "PASSWORD",
"value": "P@$$wørd"
},
{
"context": ">\n SHORT_PASSWORD_REGISTRATION =\n login... | test/auth.coffee | camallen/Panoptes-Front-End | 0 | test = require 'blue-tape'
auth = require '../app/api/auth'
TEST_NAME = 'TEST_' + (new Date).toISOString().replace /\W/g, '_'
TEST_EMAIL = TEST_NAME.toLowerCase() + '@zooniverse.org'
TEST_PASSWORD = 'P@$$wørd'
test 'Checking the current user initially fails', (t) ->
auth.checkCurrent()
.then (user) ->
if ... | 163542 | test = require 'blue-tape'
auth = require '../app/api/auth'
TEST_NAME = 'TEST_' + (new Date).toISOString().replace /\W/g, '_'
TEST_EMAIL = TEST_NAME.toLowerCase() + '@zooniverse.org'
TEST_PASSWORD = '<PASSWORD>'
test 'Checking the current user initially fails', (t) ->
auth.checkCurrent()
.then (user) ->
i... | true | test = require 'blue-tape'
auth = require '../app/api/auth'
TEST_NAME = 'TEST_' + (new Date).toISOString().replace /\W/g, '_'
TEST_EMAIL = TEST_NAME.toLowerCase() + '@zooniverse.org'
TEST_PASSWORD = 'PI:PASSWORD:<PASSWORD>END_PI'
test 'Checking the current user initially fails', (t) ->
auth.checkCurrent()
.then... |
[
{
"context": ">\n @head ->\n @meta charset: \"utf-8\"\n @title \"Wallapatta\"\n @meta name: \"viewport\", content: \"width=devic",
"end": 131,
"score": 0.6835700869560242,
"start": 121,
"tag": "NAME",
"value": "Wallapatta"
}
] | ui-assets/index.coffee | chethiya/wallapatta | 86 | VERSION = 9
Weya = require '../lib//weya/weya'
template = ->
@html ->
@head ->
@meta charset: "utf-8"
@title "Wallapatta"
@meta name: "viewport", content: "width=device-width, initial-scale=1.0"
@meta name: "apple-mobile-web-app-capable", content:"yes"
@link
href: 'http://fonts.googleapis.com/cs... | 161693 | VERSION = 9
Weya = require '../lib//weya/weya'
template = ->
@html ->
@head ->
@meta charset: "utf-8"
@title "<NAME>"
@meta name: "viewport", content: "width=device-width, initial-scale=1.0"
@meta name: "apple-mobile-web-app-capable", content:"yes"
@link
href: 'http://fonts.googleapis.com/css?fa... | true | VERSION = 9
Weya = require '../lib//weya/weya'
template = ->
@html ->
@head ->
@meta charset: "utf-8"
@title "PI:NAME:<NAME>END_PI"
@meta name: "viewport", content: "width=device-width, initial-scale=1.0"
@meta name: "apple-mobile-web-app-capable", content:"yes"
@link
href: 'http://fonts.googlea... |
[
{
"context": "\n VALUES (0, 'anonyme', 0, 'nonyme', 'a', 'foyer@ens-lyon.fr.invalid', 1)\n \"\"\"\n\n.then ->\n @connection.client.que",
"end": 638,
"score": 0.9997835755348206,
"start": 613,
"tag": "EMAIL",
"value": "foyer@ens-lyon.fr.invalid"
},
{
"context": " req.sess... | server/middles.coffee | dreimert/foyer | 2 | db = require "./db"
utils = require "./utils"
Promise = require "bluebird"
lieux =
foyer: 4
kfet: 5
anonyme = null
db().then ->
@connection.client.query """
SELECT *
FROM "public"."ardoise"
WHERE id = 0
"""
.then (user) ->
if user.rows[0]?
anonyme = user.rows[0]
else
@connectio... | 46483 | db = require "./db"
utils = require "./utils"
Promise = require "bluebird"
lieux =
foyer: 4
kfet: 5
anonyme = null
db().then ->
@connection.client.query """
SELECT *
FROM "public"."ardoise"
WHERE id = 0
"""
.then (user) ->
if user.rows[0]?
anonyme = user.rows[0]
else
@connectio... | true | db = require "./db"
utils = require "./utils"
Promise = require "bluebird"
lieux =
foyer: 4
kfet: 5
anonyme = null
db().then ->
@connection.client.query """
SELECT *
FROM "public"."ardoise"
WHERE id = 0
"""
.then (user) ->
if user.rows[0]?
anonyme = user.rows[0]
else
@connectio... |
[
{
"context": "# return new paper.Path.Circle\n # name: \"spiral\"\n # position: result.getPointAt(offset)\n ",
"end": 3570,
"score": 0.673949122428894,
"start": 3564,
"tag": "NAME",
"value": "spiral"
}
] | rails-material/app/assets/javascripts/junk.coffee | The-Hybrid-Atelier/program-as-material | 0 | @test_spiral: ()->
junk = paper.project.getItems
name: "spiral"
_.each junk, (j)-> j.remove()
@test_a()
@test_b()
@test_a: ()->
prop =
traceWidth: 10
traceInterval: 2
boundary = new paper.Path.Circle
name: "spiral"
dashArray: [10, 4]
strokeColor: "green"
... | 200838 | @test_spiral: ()->
junk = paper.project.getItems
name: "spiral"
_.each junk, (j)-> j.remove()
@test_a()
@test_b()
@test_a: ()->
prop =
traceWidth: 10
traceInterval: 2
boundary = new paper.Path.Circle
name: "spiral"
dashArray: [10, 4]
strokeColor: "green"
... | true | @test_spiral: ()->
junk = paper.project.getItems
name: "spiral"
_.each junk, (j)-> j.remove()
@test_a()
@test_b()
@test_a: ()->
prop =
traceWidth: 10
traceInterval: 2
boundary = new paper.Path.Circle
name: "spiral"
dashArray: [10, 4]
strokeColor: "green"
... |
[
{
"context": " a background terminal. Set it\n and forget it, as Ron Popeil used to tell us.\n \n But we don't need the s",
"end": 4327,
"score": 0.9881563186645508,
"start": 4321,
"tag": "NAME",
"value": "Ron Po"
}
] | Gruntfile.coffee | kicksordie/new10 | 0 | module.exports = (grunt) ->
###
Load required Grunt tasks. These are installed based on the versions listed
in `package.json` when you do `npm install` in this directory.
###
###
Load in our build configuration file.
###
###
This is the configuration object Grunt uses to give each plugin its
... | 111482 | module.exports = (grunt) ->
###
Load required Grunt tasks. These are installed based on the versions listed
in `package.json` when you do `npm install` in this directory.
###
###
Load in our build configuration file.
###
###
This is the configuration object Grunt uses to give each plugin its
... | true | module.exports = (grunt) ->
###
Load required Grunt tasks. These are installed based on the versions listed
in `package.json` when you do `npm install` in this directory.
###
###
Load in our build configuration file.
###
###
This is the configuration object Grunt uses to give each plugin its
... |
[
{
"context": " else\n # FZ.filter ts, prefix, key: 'qname'\n # )\n",
"end": 10971,
"score": 0.9977508783340454,
"start": 10966,
"tag": "KEY",
"value": "qname"
}
] | lib/completion-backend.coffee | bfly2000/atom-haskell-stack-ide | 0 | FZ = require 'fuzzaldrin'
{Disposable, Range} = require 'atom'
BufferInfo = require './buffer-info'
ModuleInfo = require './module-info'
Util = require './util'
module.exports =
class CompletionBackend
process: null
languagePragmas: []
bufferMap: null
dirMap: null
modListMap: null
compilerOptions: []
co... | 130789 | FZ = require 'fuzzaldrin'
{Disposable, Range} = require 'atom'
BufferInfo = require './buffer-info'
ModuleInfo = require './module-info'
Util = require './util'
module.exports =
class CompletionBackend
process: null
languagePragmas: []
bufferMap: null
dirMap: null
modListMap: null
compilerOptions: []
co... | true | FZ = require 'fuzzaldrin'
{Disposable, Range} = require 'atom'
BufferInfo = require './buffer-info'
ModuleInfo = require './module-info'
Util = require './util'
module.exports =
class CompletionBackend
process: null
languagePragmas: []
bufferMap: null
dirMap: null
modListMap: null
compilerOptions: []
co... |
[
{
"context": "sources in the route\n\najaxTimeout = 1000\ntoken = \"abcdefg\"\nurl = \"http://127.0.0.1:4321\"\n\ndescribe(\"GitLab\"",
"end": 1056,
"score": 0.9795857667922974,
"start": 1049,
"tag": "KEY",
"value": "abcdefg"
},
{
"context": "jaxTimeout = 1000\ntoken = \"abcdefg\"\nu... | test/spec/gitlab_spec.coffee | oreillymedia/backbone-gitlab | 22 | # GitLab Specs
#
# In these tests, results from the "test/canned" folder will be served as API responses.
# If you want to check that a specific URL was called, you can use the AJAX helpers:
#
# spyOnAjax()
# model.fetch()
# expect(lastAjaxCall().args[0].type).toEqual("GET")
# expect(lastAjaxCall().args[0].url)... | 17525 | # GitLab Specs
#
# In these tests, results from the "test/canned" folder will be served as API responses.
# If you want to check that a specific URL was called, you can use the AJAX helpers:
#
# spyOnAjax()
# model.fetch()
# expect(lastAjaxCall().args[0].type).toEqual("GET")
# expect(lastAjaxCall().args[0].url)... | true | # GitLab Specs
#
# In these tests, results from the "test/canned" folder will be served as API responses.
# If you want to check that a specific URL was called, you can use the AJAX helpers:
#
# spyOnAjax()
# model.fetch()
# expect(lastAjaxCall().args[0].type).toEqual("GET")
# expect(lastAjaxCall().args[0].url)... |
[
{
"context": " = 'koding.com, gmail.com'\n username = generateRandomUsername()\n inviteeEmail = generateRandomEmail()\n in",
"end": 1846,
"score": 0.9651629328727722,
"start": 1824,
"tag": "USERNAME",
"value": "generateRandomUsername"
},
{
"context": " # expecting... | servers/lib/server/handlers/createteam.test.coffee | f/koding | 1 | koding = require './../bongo'
KONFIG = require 'koding-config-manager'
{ hostname } = KONFIG
{ Relationship } = require 'jraphical'
{ async
expect
request
convertToArray
generateRandomEmail
generateRandomStrin... | 12562 | koding = require './../bongo'
KONFIG = require 'koding-config-manager'
{ hostname } = KONFIG
{ Relationship } = require 'jraphical'
{ async
expect
request
convertToArray
generateRandomEmail
generateRandomStrin... | true | koding = require './../bongo'
KONFIG = require 'koding-config-manager'
{ hostname } = KONFIG
{ Relationship } = require 'jraphical'
{ async
expect
request
convertToArray
generateRandomEmail
generateRandomStrin... |
[
{
"context": " @_password\n ).set (password) ->\n @_password = password\n salt = @salt = bcrypt.genSaltSync(10)\n @ha",
"end": 464,
"score": 0.9697223901748657,
"start": 456,
"tag": "PASSWORD",
"value": "password"
},
{
"context": " = new exports.User\n email: email\n ... | models.coffee | hcwiley/basic-bot | 1 |
'''
config = require './config'
mongoose = require 'mongoose'
fs = require 'fs'
Schema = mongoose.Schema
Mixed = Schema.Types.Mixed
bcrypt = require('bcrypt')
User = new Schema
name: String
email:
type: String
required: true
unique: true
is_admin:
type: Boolean
default: ... | 10354 |
'''
config = require './config'
mongoose = require 'mongoose'
fs = require 'fs'
Schema = mongoose.Schema
Mixed = Schema.Types.Mixed
bcrypt = require('bcrypt')
User = new Schema
name: String
email:
type: String
required: true
unique: true
is_admin:
type: Boolean
default: ... | true |
'''
config = require './config'
mongoose = require 'mongoose'
fs = require 'fs'
Schema = mongoose.Schema
Mixed = Schema.Types.Mixed
bcrypt = require('bcrypt')
User = new Schema
name: String
email:
type: String
required: true
unique: true
is_admin:
type: Boolean
default: ... |
[
{
"context": "er = new Mailer\n server: {}\n from: 'robot@pomotodo.com'\n\n mailer.render('sample/sample', name: 'wor",
"end": 225,
"score": 0.9999303817749023,
"start": 207,
"tag": "EMAIL",
"value": "robot@pomotodo.com"
},
{
"context": " subject: 'Sample E... | test/mailer.test.coffee | jysperm/pomo-mailer | 1 | stubTransport = require 'nodemailer-stub-transport'
{Mailer} = pomoMailer
describe 'mailer', ->
describe 'render', ->
it 'with locals', ->
mailer = new Mailer
server: {}
from: 'robot@pomotodo.com'
mailer.render('sample/sample', name: 'world').then (mail) ->
mail.should.be.eq... | 93725 | stubTransport = require 'nodemailer-stub-transport'
{Mailer} = pomoMailer
describe 'mailer', ->
describe 'render', ->
it 'with locals', ->
mailer = new Mailer
server: {}
from: '<EMAIL>'
mailer.render('sample/sample', name: 'world').then (mail) ->
mail.should.be.eql
... | true | stubTransport = require 'nodemailer-stub-transport'
{Mailer} = pomoMailer
describe 'mailer', ->
describe 'render', ->
it 'with locals', ->
mailer = new Mailer
server: {}
from: 'PI:EMAIL:<EMAIL>END_PI'
mailer.render('sample/sample', name: 'world').then (mail) ->
mail.should.b... |
[
{
"context": "module.exports =\n\tpublishKey: 'pub-c-02e5848f-c9c5-4e6a-8586-268c44635766'\n\tsubscribeKey: 'sub-c-4a67af8a-049f-11e7-b09b-06",
"end": 73,
"score": 0.9997184872627258,
"start": 31,
"tag": "KEY",
"value": "pub-c-02e5848f-c9c5-4e6a-8586-268c44635766"
},
{
"context": "84... | tests/config.coffee | resin-io-modules/resin-device-logs | 0 | module.exports =
publishKey: 'pub-c-02e5848f-c9c5-4e6a-8586-268c44635766'
subscribeKey: 'sub-c-4a67af8a-049f-11e7-b09b-0619f8945a4f'
| 75487 | module.exports =
publishKey: '<KEY>'
subscribeKey: '<KEY>'
| true | module.exports =
publishKey: 'PI:KEY:<KEY>END_PI'
subscribeKey: 'PI:KEY:<KEY>END_PI'
|
[
{
"context": "filling in email fields\", ->\n EMAIL = \"fill@llthethings.org\"\n context \"type=email\", ->\n ",
"end": 1738,
"score": 0.9999194741249084,
"start": 1718,
"tag": "EMAIL",
"value": "fill@llthethings.org"
}
] | spec/fill-all-the-things-spec.coffee | searls/fill-all-the-things | 10 | (($,_) ->
describe "FillAllTheThings", ->
window.Yields = (f) ->
When -> FillAllTheThings.fill()
Then(f)
describe ".fill", ->
describe "events", ->
Given -> spyOn(_, "defer").andCallFake (f) -> f()
Given -> @$input = affix('input')
Given -> @$input.on('change', => @t... | 162751 | (($,_) ->
describe "FillAllTheThings", ->
window.Yields = (f) ->
When -> FillAllTheThings.fill()
Then(f)
describe ".fill", ->
describe "events", ->
Given -> spyOn(_, "defer").andCallFake (f) -> f()
Given -> @$input = affix('input')
Given -> @$input.on('change', => @t... | true | (($,_) ->
describe "FillAllTheThings", ->
window.Yields = (f) ->
When -> FillAllTheThings.fill()
Then(f)
describe ".fill", ->
describe "events", ->
Given -> spyOn(_, "defer").andCallFake (f) -> f()
Given -> @$input = affix('input')
Given -> @$input.on('change', => @t... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9988946914672852,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-readuint.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 150714 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero G",
"end": 27,
"score": 0.5885388255119324,
"start": 20,
"tag": "NAME",
"value": "Pty Ltd"
},
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Pu... | resources/assets/coffee/_classes/form-clear.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 @FormClear
constructor: ->
$(document).on 'ajax:success', '.js-form-clear', @clear
clear: (e) ->
e.currentTarget.reset()
| 195244 | # Copyright (c) ppy <NAME> <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @FormClear
constructor: ->
$(document).on 'ajax:success', '.js-form-clear', @clear
clear: (e) ->
e.currentTarget.reset()
| true | # Copyright (c) ppy PI:NAME:<NAME>END_PI <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 @FormClear
constructor: ->
$(document).on 'ajax:success', '.js-form-clear', @clear
clear: (e) ->
e.curre... |
[
{
"context": "#\n# Zen Photon Garden.\n#\n# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>\n#\n# Permission is hereby g",
"end": 71,
"score": 0.9998822808265686,
"start": 50,
"tag": "NAME",
"value": "Micah Elizabeth Scott"
},
{
"context": ".\n#\n# Copyright (c)... | example /html/src/zen-setup.coffee | amane312/photon_generator | 0 | #
# Zen Photon Garden.
#
# Copyright (c) 2013 Micah Elizabeth Scott <micah@scanlime.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without... | 209748 | #
# Zen Photon Garden.
#
# Copyright (c) 2013 <NAME> <<EMAIL>>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to ... | true | #
# Zen Photon Garden.
#
# Copyright (c) 2013 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including with... |
[
{
"context": "10.1\n * http://scopejs.org\n *\n * Copyright(c) 2011 Derek Brans <dbrans@gmail.com>\n * Released under the MIT Lice",
"end": 95,
"score": 0.9998849630355835,
"start": 84,
"tag": "NAME",
"value": "Derek Brans"
},
{
"context": "/scopejs.org\n *\n * Copyright(c) 2011 Dere... | src/scope.coffee | dbrans/scope | 1 | # File header.
###
* Scopejs v0.10.1
* http://scopejs.org
*
* Copyright(c) 2011 Derek Brans <dbrans@gmail.com>
* Released under the MIT License
###
# Scopejs is a library for defining and working with lexical scopes.
# Visit [scopejs.org](http://scopejs.org) for more information.
# ##Helpers
# isString and isFn... | 62898 | # File header.
###
* Scopejs v0.10.1
* http://scopejs.org
*
* Copyright(c) 2011 <NAME> <<EMAIL>>
* Released under the MIT License
###
# Scopejs is a library for defining and working with lexical scopes.
# Visit [scopejs.org](http://scopejs.org) for more information.
# ##Helpers
# isString and isFn are borrowed ... | true | # File header.
###
* Scopejs v0.10.1
* http://scopejs.org
*
* Copyright(c) 2011 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
* Released under the MIT License
###
# Scopejs is a library for defining and working with lexical scopes.
# Visit [scopejs.org](http://scopejs.org) for more information.
# ##Helpers
# is... |
[
{
"context": "es\n for key, outlet of @outlets\n key = hash(outlet)\n if match[key]\n match[key] = out",
"end": 1349,
"score": 0.8337310552597046,
"start": 1338,
"tag": "KEY",
"value": "hash(outlet"
},
{
"context": "utlet object to node\n _add: (outlet) -... | scripts/vendor/shadergraph-master/src/graph/node.coffee | keeffEoghan/superkaleider | 1 | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# Retrieve input
ge... | 3890 | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# Retrieve input
ge... | true | Graph = require './graph'
Outlet = require './outlet'
###
Node in graph.
###
class Node
@index: 0
@id: (name) -> ++Node.index
constructor: (@owner, outlets) ->
@graph = null
@inputs = []
@outputs = []
@outlets = null
@id = Node.id()
@setOutlets outlets
# Retrieve input
ge... |
[
{
"context": "er-animating\n\n * requestAnimationFrame polyfill by Erik Möller\n * fixes from Paul Irish and Tino Zijdel\n *\n * @r",
"end": 221,
"score": 0.9998971223831177,
"start": 210,
"tag": "NAME",
"value": "Erik Möller"
},
{
"context": "lyfill by Erik Möller\n * fixes from Pau... | components/raf-coffeescript/src/Raf.coffee | biojazzard/kirbout | 2 | ###
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* requestAnimationFrame polyfill by Erik Möller
* fixes from Paul Irish and Tino Zijdel
*
* @refactoring to CofeeScript by Alfredo Llanos <alfr... | 195358 | ###
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* requestAnimationFrame polyfill by <NAME>
* fixes from Paul Irish and <NAME>
*
* @refactoring to CofeeScript by <NAME> <<EMAIL>> || @biojazzar... | true | ###
*
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
* http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
* requestAnimationFrame polyfill by PI:NAME:<NAME>END_PI
* fixes from Paul Irish and PI:NAME:<NAME>END_PI
*
* @refactoring to CofeeScript by PI... |
[
{
"context": "'dummyFrom', {\n# x: 0\n# y: 0\n# name: 'Untitled'\n# })\n#\n# constructor: (@x, @y, @name) ->\n#\n#",
"end": 319,
"score": 0.7295269966125488,
"start": 311,
"tag": "NAME",
"value": "Untitled"
}
] | src/mixins/parameterizable.coffee | abe33/agt | 1 | # Public: A `Parameterizable` object provides a class and an instance
# method to convert an arbitrary {Object} or a series of values into
# an instance of the class receiving the mixin.
#
# ```coffeescript
# class Dummy
# @include agt.mixins.Parameterizable('dummyFrom', {
# x: 0
# y: 0
# name: 'Untitled'... | 185893 | # Public: A `Parameterizable` object provides a class and an instance
# method to convert an arbitrary {Object} or a series of values into
# an instance of the class receiving the mixin.
#
# ```coffeescript
# class Dummy
# @include agt.mixins.Parameterizable('dummyFrom', {
# x: 0
# y: 0
# name: '<NAME>'
#... | true | # Public: A `Parameterizable` object provides a class and an instance
# method to convert an arbitrary {Object} or a series of values into
# an instance of the class receiving the mixin.
#
# ```coffeescript
# class Dummy
# @include agt.mixins.Parameterizable('dummyFrom', {
# x: 0
# y: 0
# name: 'PI:NAME:<... |
[
{
"context": " email: $scope.email\n password: $scope.password\n .then (result) ->\n TokenService.setT",
"end": 332,
"score": 0.6743995547294617,
"start": 324,
"tag": "PASSWORD",
"value": "password"
}
] | client/app/src/login/login_controller.coffee | codyseibert/jotit | 1 | module.exports = [
'$scope'
'$state'
'$window'
'SecurityService'
'TokenService'
(
$scope
$state
$window
SecurityService
TokenService
) ->
$scope.email = ''
$scope.password = ''
$scope.login = ->
SecurityService.login
email: $scope.email
password: $sc... | 61373 | module.exports = [
'$scope'
'$state'
'$window'
'SecurityService'
'TokenService'
(
$scope
$state
$window
SecurityService
TokenService
) ->
$scope.email = ''
$scope.password = ''
$scope.login = ->
SecurityService.login
email: $scope.email
password: $sc... | true | module.exports = [
'$scope'
'$state'
'$window'
'SecurityService'
'TokenService'
(
$scope
$state
$window
SecurityService
TokenService
) ->
$scope.email = ''
$scope.password = ''
$scope.login = ->
SecurityService.login
email: $scope.email
password: $sc... |
[
{
"context": "provide an account balance', ->\n account_id = 'Fred'\n acct = @mockify new Account()\n balances =",
"end": 565,
"score": 0.9901109933853149,
"start": 561,
"tag": "NAME",
"value": "Fred"
}
] | test/query_spec.coffee | PartTimeLegend/buttercoin-engine | 0 | test.uses "QueryInterface",
"Datastore.BalanceSheet",
"Datastore.SuperMarket",
"Datastore.Amount",
"Datastore.Account",
"Datastore.Ratio",
"Datastore.Market",
"Datastore.Book"
describe "QueryInterface", ->
setup_mocking()
beforeEach ->
@bal... | 106331 | test.uses "QueryInterface",
"Datastore.BalanceSheet",
"Datastore.SuperMarket",
"Datastore.Amount",
"Datastore.Account",
"Datastore.Ratio",
"Datastore.Market",
"Datastore.Book"
describe "QueryInterface", ->
setup_mocking()
beforeEach ->
@bal... | true | test.uses "QueryInterface",
"Datastore.BalanceSheet",
"Datastore.SuperMarket",
"Datastore.Amount",
"Datastore.Account",
"Datastore.Ratio",
"Datastore.Market",
"Datastore.Book"
describe "QueryInterface", ->
setup_mocking()
beforeEach ->
@bal... |
[
{
"context": "token: process.env.JENKINS_CAMPFIRE_TOKEN || \"xxxxxxxxxxxxxxxxxxxxxxxx\"\n account: process.env.JENKINS_CAMPFIRE_ACCOUN",
"end": 504,
"score": 0.8249578475952148,
"start": 480,
"tag": "KEY",
"value": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
] | spec/helper.coffee | atmos/jinkies | 3 | require.paths.unshift(__dirname + "/../lib")
Vows = require "vows"
exports.Vows = Vows
Assert = require "assert"
exports.Assert = Assert
exports.default_options =
job: process.env.JENKINS_JOB || "default"
server: process.env.JENKINS_SERVER || "http://localhost:8080"
campfire:
us... | 21784 | require.paths.unshift(__dirname + "/../lib")
Vows = require "vows"
exports.Vows = Vows
Assert = require "assert"
exports.Assert = Assert
exports.default_options =
job: process.env.JENKINS_JOB || "default"
server: process.env.JENKINS_SERVER || "http://localhost:8080"
campfire:
us... | true | require.paths.unshift(__dirname + "/../lib")
Vows = require "vows"
exports.Vows = Vows
Assert = require "assert"
exports.Assert = Assert
exports.default_options =
job: process.env.JENKINS_JOB || "default"
server: process.env.JENKINS_SERVER || "http://localhost:8080"
campfire:
us... |
[
{
"context": "clip_name - Display dataclip value\n#\n# Author:\n# Yannick @yann_ck\n\nmodule.exports = (robot) ->\n robot.res",
"end": 198,
"score": 0.999713122844696,
"start": 191,
"tag": "NAME",
"value": "Yannick"
},
{
"context": "e - Display dataclip value\n#\n# Author:\n# Ya... | scripts/dataclips.coffee | ys/dataclips-hubot | 1 | # Description:
# Access DataClip result
#
# Commands:
# hubot add clip clip_name json_url - Save a dataclip url to redis
# hubot clip clip_name - Display dataclip value
#
# Author:
# Yannick @yann_ck
module.exports = (robot) ->
robot.respond /add clip ?([\w .\-_]+) (.*)/i, (msg) ->
clip_name = msg.match[... | 204657 | # Description:
# Access DataClip result
#
# Commands:
# hubot add clip clip_name json_url - Save a dataclip url to redis
# hubot clip clip_name - Display dataclip value
#
# Author:
# <NAME> @yann_ck
module.exports = (robot) ->
robot.respond /add clip ?([\w .\-_]+) (.*)/i, (msg) ->
clip_name = msg.match[1... | true | # Description:
# Access DataClip result
#
# Commands:
# hubot add clip clip_name json_url - Save a dataclip url to redis
# hubot clip clip_name - Display dataclip value
#
# Author:
# PI:NAME:<NAME>END_PI @yann_ck
module.exports = (robot) ->
robot.respond /add clip ?([\w .\-_]+) (.*)/i, (msg) ->
clip_name... |
[
{
"context": "r.Extras.Hints.disable()\n\nFramer.Info =\n\tauthor: \"Callil Capuozzo, Leander Capuozzo\"\n\ttwitter: \"@_callil @leanderca",
"end": 557,
"score": 0.9998748302459717,
"start": 542,
"tag": "NAME",
"value": "Callil Capuozzo"
},
{
"context": "isable()\n\nFramer.Info =\n\t... | app.coffee | leandercapuozzo/sunrisehunterxsausha | 0 | {VRComponent, VRLayer} = require "VRComponent"
vr = new VRComponent
distance: 2000
perspective: 1200
# clip: false
cubeSide: 2600
# front: "images/front.jpg"
left: "images/left.jpg"
right: "images/left.jpg"
back: "images/left.jpg"
top: "images/top.jpg"
bottom: "images/bottom.jpg"
vr.hideEnviroment()
Ut... | 97891 | {VRComponent, VRLayer} = require "VRComponent"
vr = new VRComponent
distance: 2000
perspective: 1200
# clip: false
cubeSide: 2600
# front: "images/front.jpg"
left: "images/left.jpg"
right: "images/left.jpg"
back: "images/left.jpg"
top: "images/top.jpg"
bottom: "images/bottom.jpg"
vr.hideEnviroment()
Ut... | true | {VRComponent, VRLayer} = require "VRComponent"
vr = new VRComponent
distance: 2000
perspective: 1200
# clip: false
cubeSide: 2600
# front: "images/front.jpg"
left: "images/left.jpg"
right: "images/left.jpg"
back: "images/left.jpg"
top: "images/top.jpg"
bottom: "images/bottom.jpg"
vr.hideEnviroment()
Ut... |
[
{
"context": "ection = new Backbone.Collection([ {id: 1, name: \"one\"}, \n ",
"end": 117,
"score": 0.9312620162963867,
"start": 114,
"tag": "NAME",
"value": "one"
},
{
"context": " {id: 2, name: \"two\"}, ... | test/framework/cartilage/views/list_view_test.js.coffee | Cartilage/cartilage | 1 | module "Cartilage.Views.BasicListView"
setup: ->
@testCollection = new Backbone.Collection([ {id: 1, name: "one"},
{id: 2, name: "two"},
{id: 3, name: "three"} ],
model: Back... | 13392 | module "Cartilage.Views.BasicListView"
setup: ->
@testCollection = new Backbone.Collection([ {id: 1, name: "<NAME>"},
{id: 2, name: "<NAME>"},
{id: 3, name: "<NAME>"} ],
mode... | true | module "Cartilage.Views.BasicListView"
setup: ->
@testCollection = new Backbone.Collection([ {id: 1, name: "PI:NAME:<NAME>END_PI"},
{id: 2, name: "PI:NAME:<NAME>END_PI"},
{id: 3, name: "PI:NAME:<NAME>END_PI"} ],
... |
[
{
"context": " multiple windows:\nexport getPresenceId = (key = 'presenceId') ->\n id = window.localStorage.getItem key\n unl",
"end": 408,
"score": 0.8082071542739868,
"start": 398,
"tag": "KEY",
"value": "presenceId"
}
] | client/lib/presenceId.coffee | notaplanet/comingle | 37 | import {Random} from 'meteor/random'
import {getName} from '../Name'
## Modeled after Cocreate's remoteId mechanism
unless (presenceId = window?.sessionStorage?.getItem? 'presenceId')
window?.sessionStorage?.setItem? 'presenceId', presenceId = Random.id()
export getPresenceId = -> presenceId
### Persistent versio... | 111823 | import {Random} from 'meteor/random'
import {getName} from '../Name'
## Modeled after Cocreate's remoteId mechanism
unless (presenceId = window?.sessionStorage?.getItem? 'presenceId')
window?.sessionStorage?.setItem? 'presenceId', presenceId = Random.id()
export getPresenceId = -> presenceId
### Persistent versio... | true | import {Random} from 'meteor/random'
import {getName} from '../Name'
## Modeled after Cocreate's remoteId mechanism
unless (presenceId = window?.sessionStorage?.getItem? 'presenceId')
window?.sessionStorage?.setItem? 'presenceId', presenceId = Random.id()
export getPresenceId = -> presenceId
### Persistent versio... |
[
{
"context": "###\nCopyright (c) Ramesh Nair (hiddentao.com)\n\nPermission is hereby granted, fr",
"end": 29,
"score": 0.9998806118965149,
"start": 18,
"tag": "NAME",
"value": "Ramesh Nair"
},
{
"context": "###\nCopyright (c) Ramesh Nair (hiddentao.com)\n\nPermission is hereby grante... | test/mssql.test.coffee | sqren/squel | 0 | ###
Copyright (c) Ramesh Nair (hiddentao.com)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, dis... | 196786 | ###
Copyright (c) <NAME> (<EMAIL>)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, su... | true | ###
Copyright (c) PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, m... |
[
{
"context": " request.get base_url + \"fbb28a111?access_token=secret\", (_, { body })->\n result = JSON.parse(bod",
"end": 3887,
"score": 0.626228928565979,
"start": 3881,
"tag": "KEY",
"value": "secret"
}
] | server/test/api_split_participant.coffee | assaf/vanity.js | 2 | Helper = require("./helper") # must be at top
assert = require("assert")
Async = require("async")
{ EventEmitter } = require("events")
request = require("request")
EventSource = require("./event_source")
redis = require("../config/redis")
describe "API sp... | 56083 | Helper = require("./helper") # must be at top
assert = require("assert")
Async = require("async")
{ EventEmitter } = require("events")
request = require("request")
EventSource = require("./event_source")
redis = require("../config/redis")
describe "API sp... | true | Helper = require("./helper") # must be at top
assert = require("assert")
Async = require("async")
{ EventEmitter } = require("events")
request = require("request")
EventSource = require("./event_source")
redis = require("../config/redis")
describe "API sp... |
[
{
"context": ") ->\n localStorageService.set 'trello_token', 'abc'\n\n beforeEach inject (trelloUtils, TrelloClient,",
"end": 159,
"score": 0.5901240110397339,
"start": 156,
"tag": "KEY",
"value": "abc"
}
] | client/src/common/services/trello-utils.test.coffee | MollardMichael/scrumble | 27 | describe 'trelloUtils', ->
beforeEach module 'Scrumble.common'
beforeEach inject (localStorageService) ->
localStorageService.set 'trello_token', 'abc'
beforeEach inject (trelloUtils, TrelloClient, $q, $rootScope) ->
@trelloUtils = trelloUtils
@TrelloClient = TrelloClient
@$q = $q
@$rootScop... | 42700 | describe 'trelloUtils', ->
beforeEach module 'Scrumble.common'
beforeEach inject (localStorageService) ->
localStorageService.set 'trello_token', '<KEY>'
beforeEach inject (trelloUtils, TrelloClient, $q, $rootScope) ->
@trelloUtils = trelloUtils
@TrelloClient = TrelloClient
@$q = $q
@$rootSc... | true | describe 'trelloUtils', ->
beforeEach module 'Scrumble.common'
beforeEach inject (localStorageService) ->
localStorageService.set 'trello_token', 'PI:KEY:<KEY>END_PI'
beforeEach inject (trelloUtils, TrelloClient, $q, $rootScope) ->
@trelloUtils = trelloUtils
@TrelloClient = TrelloClient
@$q = $q... |
[
{
"context": "me: global.DEFAULT_ROOM)\n\n# # Test\n# context 'alice: translate', ->\n# beforeEach ->\n# co =>",
"end": 271,
"score": 0.549750030040741,
"start": 266,
"tag": "NAME",
"value": "alice"
},
{
"context": " ->\n# co =>\n# yield @room.user.say 'al... | test/scripts/test-translate.coffee | lalith-b/aiva | 0 | # helper = new Helper('../scripts/translate.js')
# describe 'scripts/translate.js', ->
# beforeEach ->
# # creating room with 'httpd: false' will auto tear-down
# @room = helper.createRoom(httpd: false, name: global.DEFAULT_ROOM)
# # Test
# context 'alice: translate', ->
# beforeEach ->
# co =... | 223334 | # helper = new Helper('../scripts/translate.js')
# describe 'scripts/translate.js', ->
# beforeEach ->
# # creating room with 'httpd: false' will auto tear-down
# @room = helper.createRoom(httpd: false, name: global.DEFAULT_ROOM)
# # Test
# context '<NAME>: translate', ->
# beforeEach ->
# co ... | true | # helper = new Helper('../scripts/translate.js')
# describe 'scripts/translate.js', ->
# beforeEach ->
# # creating room with 'httpd: false' will auto tear-down
# @room = helper.createRoom(httpd: false, name: global.DEFAULT_ROOM)
# # Test
# context 'PI:NAME:<NAME>END_PI: translate', ->
# beforeEach ... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999158978462219,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/status-map.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 @StatusMap
constructor: (element) ->
@circleSize = 8
offset = 40
# whatever input data is scaled to
width = 1350
hei... | 71320 | # 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 @StatusMap
constructor: (element) ->
@circleSize = 8
offset = 40
# whatever input data is scaled to
width = 1350
height = 5... | 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 @StatusMap
constructor: (element) ->
@circleSize = 8
offset = 40
# whatever input data is scaled to
width = 1350... |
[
{
"context": "###\nRaconteur story scaffold, copyright (c) Bruno Dias 2015.\n\nDistributed under the MIT license. See LIC",
"end": 54,
"score": 0.9998862147331238,
"start": 44,
"tag": "NAME",
"value": "Bruno Dias"
},
{
"context": "ng's surname\", \"keeps getting into edit wars about ... | game/main.coffee | artefacto/research-adventures | 0 | ###
Raconteur story scaffold, copyright (c) Bruno Dias 2015.
Distributed under the MIT license. See LICENSE for information.
In a finished game file, almost all of this scaffold will have been replaced
by new content (the new game does not carry "substantial parts" of this code)
so this copyright notice may be remove... | 37072 | ###
Raconteur story scaffold, copyright (c) <NAME> 2015.
Distributed under the MIT license. See LICENSE for information.
In a finished game file, almost all of this scaffold will have been replaced
by new content (the new game does not carry "substantial parts" of this code)
so this copyright notice may be removed an... | true | ###
Raconteur story scaffold, copyright (c) PI:NAME:<NAME>END_PI 2015.
Distributed under the MIT license. See LICENSE for information.
In a finished game file, almost all of this scaffold will have been replaced
by new content (the new game does not carry "substantial parts" of this code)
so this copyright notice may... |
[
{
"context": " project = Immutable.fromJS({\n name: 'test project',\n members: [\n {is_acti",
"end": 3356,
"score": 0.9656559824943542,
"start": 3344,
"tag": "NAME",
"value": "test project"
}
] | app/modules/services/project.service.spec.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 18879 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": " store.annotations = [{text: \"Foobar\"}, {user: \"Bob\"}]\n assert.deepEqual(store.dumpAnnotations()",
"end": 8790,
"score": 0.9969125986099243,
"start": 8787,
"tag": "NAME",
"value": "Bob"
},
{
"context": "ore.dumpAnnotations(), [{text: \"Foobar\"}, {user: \"Bo... | inception-html-editor/src/main/js/annotatorjs/test/spec/plugin/store_spec.coffee | CPHI-TVHS/inception | 377 | describe "Annotator.Plugin.Store", ->
store = null
beforeEach ->
element = $('<div></div>')[0]
store = new Annotator.Plugin.Store(element, {autoFetch: false})
store.annotator = {
plugins: {}
loadAnnotations: sinon.spy()
}
describe "events", ->
it "should call Store#annotationCrea... | 11057 | describe "Annotator.Plugin.Store", ->
store = null
beforeEach ->
element = $('<div></div>')[0]
store = new Annotator.Plugin.Store(element, {autoFetch: false})
store.annotator = {
plugins: {}
loadAnnotations: sinon.spy()
}
describe "events", ->
it "should call Store#annotationCrea... | true | describe "Annotator.Plugin.Store", ->
store = null
beforeEach ->
element = $('<div></div>')[0]
store = new Annotator.Plugin.Store(element, {autoFetch: false})
store.annotator = {
plugins: {}
loadAnnotations: sinon.spy()
}
describe "events", ->
it "should call Store#annotationCrea... |
[
{
"context": "# * http://foundation.zurb.com\n# * Copyright 2012, ZURB\n# * Free to use under the MIT license.\n# * http:/",
"end": 156,
"score": 0.7665047645568848,
"start": 152,
"tag": "NAME",
"value": "ZURB"
}
] | coffee/topbar.coffee | alejo8591/shurikend | 0 | ###
Inspired in foundation v.3.2
topbar: topbar.coffee
###
#
# * jQuery Foundation Top Bar 2.0.4
# * http://foundation.zurb.com
# * Copyright 2012, ZURB
# * Free to use under the MIT license.
# * http://www.opensource.org/licenses/mit-license.php
#
#jslint unparam: true, browser: true, indent: 2
(($, window) ->
... | 29025 | ###
Inspired in foundation v.3.2
topbar: topbar.coffee
###
#
# * jQuery Foundation Top Bar 2.0.4
# * http://foundation.zurb.com
# * Copyright 2012, <NAME>
# * Free to use under the MIT license.
# * http://www.opensource.org/licenses/mit-license.php
#
#jslint unparam: true, browser: true, indent: 2
(($, window) ->
... | true | ###
Inspired in foundation v.3.2
topbar: topbar.coffee
###
#
# * jQuery Foundation Top Bar 2.0.4
# * http://foundation.zurb.com
# * Copyright 2012, PI:NAME:<NAME>END_PI
# * Free to use under the MIT license.
# * http://www.opensource.org/licenses/mit-license.php
#
#jslint unparam: true, browser: true, indent: 2
((... |
[
{
"context": "sibleField: =>\n if @options.system\n field: @fieldName\n text: @columName\n display: (item) => i",
"end": 1906,
"score": 0.909403920173645,
"start": 1896,
"tag": "USERNAME",
"value": "@fieldName"
},
{
"context": "options.system\n field: @fieldNam... | app/assets/javascripts/factories/filters/distance_jumps.coffee | zianlo1/carebearium | 0 | #= require ./base
class CB.Filters.DistanceJumps extends CB.Filters.Base
constructor: (@options) ->
super(@options)
@options.min = 0 if angular.isUndefined @options.min
@options.max = 10 if angular.isUndefined @options.max
@options.security = '0.5' if angular.isUndefined @options.security
securit... | 93478 | #= require ./base
class CB.Filters.DistanceJumps extends CB.Filters.Base
constructor: (@options) ->
super(@options)
@options.min = 0 if angular.isUndefined @options.min
@options.max = 10 if angular.isUndefined @options.max
@options.security = '0.5' if angular.isUndefined @options.security
securit... | true | #= require ./base
class CB.Filters.DistanceJumps extends CB.Filters.Base
constructor: (@options) ->
super(@options)
@options.min = 0 if angular.isUndefined @options.min
@options.max = 10 if angular.isUndefined @options.max
@options.security = '0.5' if angular.isUndefined @options.security
securit... |
[
{
"context": "endpoint.addMiddleware('delete', requirePassword('asdf')).register(@app)\n\t\t\tdata = @mod.toObject()\n\n\t\t\ti",
"end": 2093,
"score": 0.9745662212371826,
"start": 2089,
"tag": "PASSWORD",
"value": "asdf"
},
{
"context": "@app).del('/api/posts/' + id).query\n\t\t\t\t... | coffee/test/delete.coffee | lbacas/mongoose-rest-endpoints | 1 | express = require 'express'
request = require 'supertest'
should = require 'should'
Q = require 'q'
require('../lib/log').verbose(true)
mongoose = require 'mongoose'
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
commentSchema = new mongoose.Schema
comment:String
_post:
type:mongoose.Sche... | 57721 | express = require 'express'
request = require 'supertest'
should = require 'should'
Q = require 'q'
require('../lib/log').verbose(true)
mongoose = require 'mongoose'
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
commentSchema = new mongoose.Schema
comment:String
_post:
type:mongoose.Sche... | true | express = require 'express'
request = require 'supertest'
should = require 'should'
Q = require 'q'
require('../lib/log').verbose(true)
mongoose = require 'mongoose'
mre = require '../lib/endpoint'
# Custom "Post" and "Comment" documents
commentSchema = new mongoose.Schema
comment:String
_post:
type:mongoose.Sche... |
[
{
"context": "projectToken\", ->\n expect(routes.projectToken(\"123-foo\")).to.eq \"http://localhost:1234/projects/123-foo/",
"end": 992,
"score": 0.9185410737991333,
"start": 985,
"tag": "PASSWORD",
"value": "123-foo"
}
] | packages/server/test/unit/routes_util_spec.coffee | nongmanh/cypress | 2 | require("../spec_helper")
routes = require("#{root}/lib/util/routes")
describe "lib/util/routes", ->
it "api", ->
expect(routes.api()).to.eq "http://localhost:1234/"
it "auth", ->
expect(routes.auth()).to.eq "http://localhost:1234/auth"
it "ping", ->
expect(routes.ping()).to.eq("http://localhost:1... | 11528 | require("../spec_helper")
routes = require("#{root}/lib/util/routes")
describe "lib/util/routes", ->
it "api", ->
expect(routes.api()).to.eq "http://localhost:1234/"
it "auth", ->
expect(routes.auth()).to.eq "http://localhost:1234/auth"
it "ping", ->
expect(routes.ping()).to.eq("http://localhost:1... | true | require("../spec_helper")
routes = require("#{root}/lib/util/routes")
describe "lib/util/routes", ->
it "api", ->
expect(routes.api()).to.eq "http://localhost:1234/"
it "auth", ->
expect(routes.auth()).to.eq "http://localhost:1234/auth"
it "ping", ->
expect(routes.ping()).to.eq("http://localhost:1... |
[
{
"context": " tweet with <n> starting w/ latest\n#\n# Author:\n# KevinTraver\n#\n\n_ = require \"underscore\"\nTwit = require ",
"end": 462,
"score": 0.5146749019622803,
"start": 457,
"tag": "NAME",
"value": "Kevin"
},
{
"context": " with <n> starting w/ latest\n#\n# Author:\n# ... | src/scripts/twitter.coffee | contolini/hubot-scripts | 1,450 | # Description:
# gets tweet from user
#
# Dependencies:
# "twit": "1.1.6"
# "underscore": "1.4.4"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWITTER_ACCESS_TOKEN_SECRET
#
# Commands:
# hubot twitter <twitter username> - Show last ... | 175621 | # Description:
# gets tweet from user
#
# Dependencies:
# "twit": "1.1.6"
# "underscore": "1.4.4"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWITTER_ACCESS_TOKEN_SECRET
#
# Commands:
# hubot twitter <twitter username> - Show last ... | true | # Description:
# gets tweet from user
#
# Dependencies:
# "twit": "1.1.6"
# "underscore": "1.4.4"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWITTER_ACCESS_TOKEN_SECRET
#
# Commands:
# hubot twitter <twitter username> - Show last ... |
[
{
"context": "ryView shows a row inside of a table.\n\n @author Sebastian Sachtleben\n###\nclass TableEntry extends BaseView\n\n\ttemplate:",
"end": 212,
"score": 0.9998912811279297,
"start": 192,
"tag": "NAME",
"value": "Sebastian Sachtleben"
}
] | app/assets/javascripts/shared/views/tableEntryView.coffee | ssachtleben/herowar | 1 | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The TableEntryView shows a row inside of a table.
@author Sebastian Sachtleben
###
class TableEntry extends BaseView
template: templates.get 'tableEntry.tmpl'
entityType: ''
delete... | 202821 | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The TableEntryView shows a row inside of a table.
@author <NAME>
###
class TableEntry extends BaseView
template: templates.get 'tableEntry.tmpl'
entityType: ''
deleteField: 'name'
... | true | BaseView = require 'views/baseView'
templates = require 'templates'
app = require 'application'
db = require 'database'
###
The TableEntryView shows a row inside of a table.
@author PI:NAME:<NAME>END_PI
###
class TableEntry extends BaseView
template: templates.get 'tableEntry.tmpl'
entityType: ''
delete... |
[
{
"context": "ops)->\n if not ops\n ops = \n name: \"Satin Stitch\"\n super ops\n stitch: (thread)->\n ",
"end": 3364,
"score": 0.9593285918235779,
"start": 3361,
"tag": "NAME",
"value": "Sat"
},
{
"context": "ops)->\n if not ops\n ops = \n name: ... | tool/app/assets/javascripts/tool/stitcher/sketches.coffee | The-Hybrid-Atelier/embr | 0 | class stitcher.Sketch
constructor: (name)->
this.name = name
console.log "\tImporting", this.name, "to canvas.."
@procedure()
clearCanvasAndBegin: ()->
thread = stitch.threadkeeper.current_thread
thread.remove()
thread = stitch.threadkeeper.knotAndBegin()
procedure: ()->
return ... | 158642 | class stitcher.Sketch
constructor: (name)->
this.name = name
console.log "\tImporting", this.name, "to canvas.."
@procedure()
clearCanvasAndBegin: ()->
thread = stitch.threadkeeper.current_thread
thread.remove()
thread = stitch.threadkeeper.knotAndBegin()
procedure: ()->
return ... | true | class stitcher.Sketch
constructor: (name)->
this.name = name
console.log "\tImporting", this.name, "to canvas.."
@procedure()
clearCanvasAndBegin: ()->
thread = stitch.threadkeeper.current_thread
thread.remove()
thread = stitch.threadkeeper.knotAndBegin()
procedure: ()->
return ... |
[
{
"context": "assName: 'artisan'\n\n contributors: [\n {name: \"Sootn\", avatar: \"\"}\n {name: \"Zach Martin\", avatar: \"",
"end": 324,
"score": 0.9998558163642883,
"start": 319,
"tag": "NAME",
"value": "Sootn"
},
{
"context": "rs: [\n {name: \"Sootn\", avatar: \"\"}\n ... | app/views/contribute/artisan_view.coffee | madawei2699/codecombat | 0 | ContributeClassView = require 'views/contribute/contribute_class_view'
template = require 'templates/contribute/artisan'
{me} = require('lib/auth')
module.exports = class ArtisanView extends ContributeClassView
id: "artisan-view"
template: template
contributorClassName: 'artisan'
contributors: [
{name: "S... | 107224 | ContributeClassView = require 'views/contribute/contribute_class_view'
template = require 'templates/contribute/artisan'
{me} = require('lib/auth')
module.exports = class ArtisanView extends ContributeClassView
id: "artisan-view"
template: template
contributorClassName: 'artisan'
contributors: [
{name: "<... | true | ContributeClassView = require 'views/contribute/contribute_class_view'
template = require 'templates/contribute/artisan'
{me} = require('lib/auth')
module.exports = class ArtisanView extends ContributeClassView
id: "artisan-view"
template: template
contributorClassName: 'artisan'
contributors: [
{name: "P... |
[
{
"context": ": 'string' }\n }\n }\n original_data = { name: 'Bob', numbers: ['401-401-1337', ['123-456-7890']], 'a",
"end": 304,
"score": 0.9998323917388916,
"start": 301,
"tag": "NAME",
"value": "Bob"
}
] | test/keyboard/delete-key.coffee | lgr7/codecombattreema | 66 | describe 'Delete key press', ->
deleteKeyPress = ($el) -> keyDown($el, 8)
schema = {
type: 'object',
properties: {
name: { type: 'string' }
numbers: { type: 'array', items: { type: ['string', 'array'] } }
address: { type: 'string' }
}
}
original_data = { name: 'Bob', numbers: ['40... | 120215 | describe 'Delete key press', ->
deleteKeyPress = ($el) -> keyDown($el, 8)
schema = {
type: 'object',
properties: {
name: { type: 'string' }
numbers: { type: 'array', items: { type: ['string', 'array'] } }
address: { type: 'string' }
}
}
original_data = { name: '<NAME>', numbers: [... | true | describe 'Delete key press', ->
deleteKeyPress = ($el) -> keyDown($el, 8)
schema = {
type: 'object',
properties: {
name: { type: 'string' }
numbers: { type: 'array', items: { type: ['string', 'array'] } }
address: { type: 'string' }
}
}
original_data = { name: 'PI:NAME:<NAME>END_P... |
[
{
"context": "'https://gist.github.com'\n .value 'authorName', 'JumpeiArashi'\n .value 'gistUsername', 'JumpeiArashi-blog'\n .",
"end": 461,
"score": 0.9829065799713135,
"start": 449,
"tag": "NAME",
"value": "JumpeiArashi"
},
{
"context": "orName', 'JumpeiArashi'\n .value 'gistUs... | app/scripts/app.coffee | JumpeiArashi/blog.arashike.com | 0 | 'use strict'
###*
# @ngdoc overview
# @name blogarashikecomApp
# @description
# # blogarashikecomApp
#
# Main module of the application.
###
angular
.module 'arashike-blog', [
'ngAnimate'
'ngAria'
'ngCookies'
'ngMessages'
'ngResource'
'ngRoute'
'ngSanitize'
'ngTouch'
'ngMate... | 40517 | 'use strict'
###*
# @ngdoc overview
# @name blogarashikecomApp
# @description
# # blogarashikecomApp
#
# Main module of the application.
###
angular
.module 'arashike-blog', [
'ngAnimate'
'ngAria'
'ngCookies'
'ngMessages'
'ngResource'
'ngRoute'
'ngSanitize'
'ngTouch'
'ngMate... | true | 'use strict'
###*
# @ngdoc overview
# @name blogarashikecomApp
# @description
# # blogarashikecomApp
#
# Main module of the application.
###
angular
.module 'arashike-blog', [
'ngAnimate'
'ngAria'
'ngCookies'
'ngMessages'
'ngResource'
'ngRoute'
'ngSanitize'
'ngTouch'
'ngMate... |
[
{
"context": "lass='s2'>Email:</span> <span class=\n 's1'>legal@#{kd.config.domains.mail}</span><span class='s2'> </span>\n </p>\n",
"end": 62610,
"score": 0.8581430315971375,
"start": 62580,
"tag": "EMAIL",
"value": "legal@#{kd.config.domains.mail"
}
] | client/legal/lib/tosview.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
JView = require 'app/jview'
module.exports = class TosView extends JView
constructor: (options = {}) ->
super options
pistachio : ->
"""
<div class='tos'>
<p class='last-modified'>(last modified on May 5th, 2015)</p>
<p class='p2'>
<b>PLEASE NOTE:</b> The Kodi... | 4201 | kd = require 'kd'
JView = require 'app/jview'
module.exports = class TosView extends JView
constructor: (options = {}) ->
super options
pistachio : ->
"""
<div class='tos'>
<p class='last-modified'>(last modified on May 5th, 2015)</p>
<p class='p2'>
<b>PLEASE NOTE:</b> The Kodi... | true | kd = require 'kd'
JView = require 'app/jview'
module.exports = class TosView extends JView
constructor: (options = {}) ->
super options
pistachio : ->
"""
<div class='tos'>
<p class='last-modified'>(last modified on May 5th, 2015)</p>
<p class='p2'>
<b>PLEASE NOTE:</b> The Kodi... |
[
{
"context": "\n @outputPath,\n inputBody: '<h1>Hello my friend</h1>'\n }\n\n @sut.build (error) => done error",
"end": 466,
"score": 0.5995339751243591,
"start": 460,
"tag": "NAME",
"value": "friend"
}
] | test/generate-pdf-spec.coffee | lludol/html5-to-pdf | 0 | {describe,it,expect,beforeEach} = global
HTMLToPDF = require '../'
fs = require 'fs-extra'
path = require 'path'
describe 'Generate PDF', ->
beforeEach ->
@outputPath = path.join __dirname, '..', 'tmp', 'test.pdf'
fs.mkdirpSync path.dirname @outputPath
try
fs.unlinkSync @outputPath
... | 95718 | {describe,it,expect,beforeEach} = global
HTMLToPDF = require '../'
fs = require 'fs-extra'
path = require 'path'
describe 'Generate PDF', ->
beforeEach ->
@outputPath = path.join __dirname, '..', 'tmp', 'test.pdf'
fs.mkdirpSync path.dirname @outputPath
try
fs.unlinkSync @outputPath
... | true | {describe,it,expect,beforeEach} = global
HTMLToPDF = require '../'
fs = require 'fs-extra'
path = require 'path'
describe 'Generate PDF', ->
beforeEach ->
@outputPath = path.join __dirname, '..', 'tmp', 'test.pdf'
fs.mkdirpSync path.dirname @outputPath
try
fs.unlinkSync @outputPath
... |
[
{
"context": "NUB.uuid()\npubnub = PUBNUB.init\n subscribe_key: 'sub-c-4c7f1748-ced1-11e2-a5be-02ee2ddab7fe'\n publish_key: 'pub-c-6dd9f234-e11e-4345-92c4-f7",
"end": 142,
"score": 0.9997572302818298,
"start": 100,
"tag": "KEY",
"value": "sub-c-4c7f1748-ced1-11e2-a5be-02ee2ddab7fe"
},
... | app/scripts/main.coffee | ToeJamson/backbone | 1 | # Start by creating our PubNub instance
uuid = PUBNUB.uuid()
pubnub = PUBNUB.init
subscribe_key: 'sub-c-4c7f1748-ced1-11e2-a5be-02ee2ddab7fe'
publish_key: 'pub-c-6dd9f234-e11e-4345-92c4-f723de52df70'
uuid: uuid
Todo = Backbone.Model.extend
defaults: () ->
{
title: "empty todo..."
order: Todos.n... | 219349 | # Start by creating our PubNub instance
uuid = PUBNUB.uuid()
pubnub = PUBNUB.init
subscribe_key: '<KEY>'
publish_key: '<KEY>'
uuid: uuid
Todo = Backbone.Model.extend
defaults: () ->
{
title: "empty todo..."
order: Todos.nextOrder()
done: false
}
toggle: () ->
@save
done: ... | true | # Start by creating our PubNub instance
uuid = PUBNUB.uuid()
pubnub = PUBNUB.init
subscribe_key: 'PI:KEY:<KEY>END_PI'
publish_key: 'PI:KEY:<KEY>END_PI'
uuid: uuid
Todo = Backbone.Model.extend
defaults: () ->
{
title: "empty todo..."
order: Todos.nextOrder()
done: false
}
toggle: ()... |
[
{
"context": "#\n# Configuration:\n# MONGODB_URL\n#\n# Author:\n# Yalochat <eng@yalochat.com>\n\n'use strict'\n{EventEmitter} =",
"end": 301,
"score": 0.848522424697876,
"start": 293,
"tag": "NAME",
"value": "Yalochat"
},
{
"context": "ration:\n# MONGODB_URL\n#\n# Author:\n# ... | src/hubot-yalo-brain.coffee | yalochat/hubot-yalo-brain | 0 | # Description:
# hubot-yalo-brain
# Integrate MongoDB to persist data through mongoose.
# Overwrite set and get methods. Now these return a Promise
# instead of a value to handle async work.
#
# Dependencies:
# "mongoose": "^4.0.0"
#
# Configuration:
# MONGODB_URL
#
# Author:
# Yalochat <eng@yalochat.com>... | 91863 | # Description:
# hubot-yalo-brain
# Integrate MongoDB to persist data through mongoose.
# Overwrite set and get methods. Now these return a Promise
# instead of a value to handle async work.
#
# Dependencies:
# "mongoose": "^4.0.0"
#
# Configuration:
# MONGODB_URL
#
# Author:
# <NAME> <<EMAIL>>
'use stri... | true | # Description:
# hubot-yalo-brain
# Integrate MongoDB to persist data through mongoose.
# Overwrite set and get methods. Now these return a Promise
# instead of a value to handle async work.
#
# Dependencies:
# "mongoose": "^4.0.0"
#
# Configuration:
# MONGODB_URL
#
# Author:
# PI:NAME:<NAME>END_PI <PI:EM... |
[
{
"context": "ion ', ->\n indicator = Factory.indicator(name: 'test indicator')\n indicators = new Backbone.Collectio",
"end": 199,
"score": 0.974918007850647,
"start": 195,
"tag": "NAME",
"value": "test"
},
{
"context": " ', ->\n indicator = Factory.indicator(name: 'test indicat... | client/test/src/views/indicator_selector_results_view.coffee | unepwcmc/NRT | 0 | assert = chai.assert
suite('IndicatorSelectorResultsView')
test('renders an IndicatorSelectorItem sub view for each result in the given collection ', ->
indicator = Factory.indicator(name: 'test indicator')
indicators = new Backbone.Collections.IndicatorCollection([indicator])
view = new Backbone.Views.Indica... | 77012 | assert = chai.assert
suite('IndicatorSelectorResultsView')
test('renders an IndicatorSelectorItem sub view for each result in the given collection ', ->
indicator = Factory.indicator(name: '<NAME> <NAME>')
indicators = new Backbone.Collections.IndicatorCollection([indicator])
view = new Backbone.Views.Indicat... | true | assert = chai.assert
suite('IndicatorSelectorResultsView')
test('renders an IndicatorSelectorItem sub view for each result in the given collection ', ->
indicator = Factory.indicator(name: 'PI:NAME:<NAME>END_PI PI:NAME:<NAME>END_PI')
indicators = new Backbone.Collections.IndicatorCollection([indicator])
view ... |
[
{
"context": "其中的对象即可,不需要另外设计代码\n###\n\n# settings\ncustomerName = 'Good Hostpital'\ncustomGrade = '三级综合' # '三级中医','二级综合'...\nlastYear",
"end": 539,
"score": 0.9984678626060486,
"start": 525,
"tag": "NAME",
"value": "Good Hostpital"
},
{
"context": "eLimit: ->\n null \n \n\n\n\... | cases/2022hzzdxkjsgh/testSelf.coffee | Tostig0916/hqcoffee | 2 | ###
用于边测试边开发的 test driven developing
功能完善后,将本文件代码部分复制粘贴 self.coffee 即可作为各项目的基础程序文件
开发流程为,在terminal 运行
```
coffee -w cases/goodhostpital2021/testSelf.coffee
```
TODO:
医院库和专科库分开?
若不分开,每次需要剔除医院
注意排序:
除了指标名是从小到大排序英文在前,其他例如年份,数值都是默认从大到小排序的.注意看 sort 用法,如果不符合前述原则,
则须加以留意並讨论
对标报告:
... | 48607 | ###
用于边测试边开发的 test driven developing
功能完善后,将本文件代码部分复制粘贴 self.coffee 即可作为各项目的基础程序文件
开发流程为,在terminal 运行
```
coffee -w cases/goodhostpital2021/testSelf.coffee
```
TODO:
医院库和专科库分开?
若不分开,每次需要剔除医院
注意排序:
除了指标名是从小到大排序英文在前,其他例如年份,数值都是默认从大到小排序的.注意看 sort 用法,如果不符合前述原则,
则须加以留意並讨论
对标报告:
... | true | ###
用于边测试边开发的 test driven developing
功能完善后,将本文件代码部分复制粘贴 self.coffee 即可作为各项目的基础程序文件
开发流程为,在terminal 运行
```
coffee -w cases/goodhostpital2021/testSelf.coffee
```
TODO:
医院库和专科库分开?
若不分开,每次需要剔除医院
注意排序:
除了指标名是从小到大排序英文在前,其他例如年份,数值都是默认从大到小排序的.注意看 sort 用法,如果不符合前述原则,
则须加以留意並讨论
对标报告:
... |
[
{
"context": "crypted_password = bcrypt.hashSync(@password + pepper, salt)\n \n next()\n\n # generat",
"end": 1093,
"score": 0.8202566504478455,
"start": 1090,
"tag": "PASSWORD",
"value": "per"
}
] | app/models/User.coffee | scottbarstow/sample-node-web | 0 | bcrypt = require 'bcrypt'
crypto = require 'crypto'
utils = require '../utils'
module.exports = (compound, User) ->
app = compound.app
User::isAdmin = ->
!!@is_admin
User::validPassword = (password) ->
pepper = app.get('pepper')
return bcrypt.compareSync( password + pepper, @encr... | 30880 | bcrypt = require 'bcrypt'
crypto = require 'crypto'
utils = require '../utils'
module.exports = (compound, User) ->
app = compound.app
User::isAdmin = ->
!!@is_admin
User::validPassword = (password) ->
pepper = app.get('pepper')
return bcrypt.compareSync( password + pepper, @encr... | true | bcrypt = require 'bcrypt'
crypto = require 'crypto'
utils = require '../utils'
module.exports = (compound, User) ->
app = compound.app
User::isAdmin = ->
!!@is_admin
User::validPassword = (password) ->
pepper = app.get('pepper')
return bcrypt.compareSync( password + pepper, @encr... |
[
{
"context": "The UI.Icon unit tests\n#\n# Copyright (C) 2012-2013 Nikolay Nemshilov\n#\n{Test,should} = require('lovely')\n\ndescribe \"UI",
"end": 72,
"score": 0.9998888969421387,
"start": 55,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | ui/core/test/icon_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The UI.Icon unit tests
#
# Copyright (C) 2012-2013 Nikolay Nemshilov
#
{Test,should} = require('lovely')
describe "UI.Icon", ->
UI = Icon = icon = Element = null
before Test.load (build, window)->
UI = build
Icon = UI.Icon
icon = new Icon('name')
Element = window.Lovely.module('dom'... | 145582 | #
# The UI.Icon unit tests
#
# Copyright (C) 2012-2013 <NAME>
#
{Test,should} = require('lovely')
describe "UI.Icon", ->
UI = Icon = icon = Element = null
before Test.load (build, window)->
UI = build
Icon = UI.Icon
icon = new Icon('name')
Element = window.Lovely.module('dom').Element
... | true | #
# The UI.Icon unit tests
#
# Copyright (C) 2012-2013 PI:NAME:<NAME>END_PI
#
{Test,should} = require('lovely')
describe "UI.Icon", ->
UI = Icon = icon = Element = null
before Test.load (build, window)->
UI = build
Icon = UI.Icon
icon = new Icon('name')
Element = window.Lovely.module('d... |
[
{
"context": "oper] = {\n\t\t\t\tid: PlayModes.Developer,\n\t\t\t\tname: \"Developer Sandbox\",\n\t\t\t\tdescription: \"Shuffle free. Mulligan free.\"",
"end": 3734,
"score": 0.8126592040061951,
"start": 3717,
"tag": "NAME",
"value": "Developer Sandbox"
}
] | app/sdk/playModes/playModeFactory.coffee | willroberts/duelyst | 5 | _ = require 'underscore'
RSX = require('app/data/resources')
PlayModes = require './playModesLookup'
moment = require 'moment'
i18next = require 'i18next'
class PlayModeFactory
@playModes: null
@playModeForIdentifier: (identifier) ->
@_initCache()
playMode = @playModes[identifier]
if playMode
return playM... | 167273 | _ = require 'underscore'
RSX = require('app/data/resources')
PlayModes = require './playModesLookup'
moment = require 'moment'
i18next = require 'i18next'
class PlayModeFactory
@playModes: null
@playModeForIdentifier: (identifier) ->
@_initCache()
playMode = @playModes[identifier]
if playMode
return playM... | true | _ = require 'underscore'
RSX = require('app/data/resources')
PlayModes = require './playModesLookup'
moment = require 'moment'
i18next = require 'i18next'
class PlayModeFactory
@playModes: null
@playModeForIdentifier: (identifier) ->
@_initCache()
playMode = @playModes[identifier]
if playMode
return playM... |
[
{
"context": "\tdoc =\n\t\t\t\t\t_id: ObjectId()\n\t\t\t\t\tname: \"something*bad\"\n\t\t\t\t@subject._putElement @project, @folder._id, ",
"end": 17229,
"score": 0.7255874872207642,
"start": 17226,
"tag": "USERNAME",
"value": "bad"
},
{
"context": "eEach ->\n\t\t\t@doc =\n\t\t\t\t_i... | test/unit/coffee/Project/ProjectEntityMongoUpdateHandlerTests.coffee | davidmehren/web-sharelatex | 0 | chai = require('chai')
expect = chai.expect
assert = require('chai').assert
should = chai.should()
sinon = require 'sinon'
tk = require("timekeeper")
modulePath = "../../../../app/js/Features/Project/ProjectEntityMongoUpdateHandler"
Errors = require "../../../../app/js/Features/Errors/Errors"
ObjectId = require("mongoo... | 54655 | chai = require('chai')
expect = chai.expect
assert = require('chai').assert
should = chai.should()
sinon = require 'sinon'
tk = require("timekeeper")
modulePath = "../../../../app/js/Features/Project/ProjectEntityMongoUpdateHandler"
Errors = require "../../../../app/js/Features/Errors/Errors"
ObjectId = require("mongoo... | true | chai = require('chai')
expect = chai.expect
assert = require('chai').assert
should = chai.should()
sinon = require 'sinon'
tk = require("timekeeper")
modulePath = "../../../../app/js/Features/Project/ProjectEntityMongoUpdateHandler"
Errors = require "../../../../app/js/Features/Errors/Errors"
ObjectId = require("mongoo... |
[
{
"context": "s\",\"Prov\",\"Eccl\",\"Song\",\"Isa\",\"Jer\",\"Lam\",\"Ezek\",\"Dan\",\"Hos\",\"Joel\",\"Amos\",\"Obad\",\"Jonah\",\"Mic\",\"Nah\",\"",
"end": 505,
"score": 0.787865161895752,
"start": 502,
"tag": "NAME",
"value": "Dan"
},
{
"context": "ov\",\"Eccl\",\"Song\",\"Isa\",... | lib/bible-tools/lib/Bible-Passage-Reference-Parser/src/sr/spec.coffee | saiba-mais/bible-lessons | 0 | bcv_parser = require("../../js/sr_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | 134222 | bcv_parser = require("../../js/sr_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | true | bcv_parser = require("../../js/sr_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... |
[
{
"context": "# Mike Bostock's margin convention\nmargin = \n top: 20, \n ",
"end": 14,
"score": 0.9584318399429321,
"start": 2,
"tag": "NAME",
"value": "Mike Bostock"
}
] | Problem3/coffee/unHealth.coffee | rlucioni/cs171-hw3-lucioni-renzo | 1 | # Mike Bostock's margin convention
margin =
top: 20,
bottom: 20,
left: 20,
right: 20
canvasWidth = 1100 - margin.left - margin.right
canvasHeight = 800 - margin.top - margin.bottom
svg = d3.select("#visUN").append("svg")
.attr("width", canvasWidth + margin.left + margin.right)
.attr(... | 54289 | # <NAME>'s margin convention
margin =
top: 20,
bottom: 20,
left: 20,
right: 20
canvasWidth = 1100 - margin.left - margin.right
canvasHeight = 800 - margin.top - margin.bottom
svg = d3.select("#visUN").append("svg")
.attr("width", canvasWidth + margin.left + margin.right)
.attr("heigh... | true | # PI:NAME:<NAME>END_PI's margin convention
margin =
top: 20,
bottom: 20,
left: 20,
right: 20
canvasWidth = 1100 - margin.left - margin.right
canvasHeight = 800 - margin.top - margin.bottom
svg = d3.select("#visUN").append("svg")
.attr("width", canvasWidth + margin.left + margin.right)
... |
[
{
"context": "oon'\n 7: 'Lauttaan'\n 8: 'Bussiin'\n 12: 'Junaan'\n 21: 'Bussiin'\n 22: 'Bussiin'\n 23: 'Bus",
"end": 1236,
"score": 0.8943771123886108,
"start": 1231,
"tag": "NAME",
"value": "unaan"
}
] | web/js/nls/root/strings.coffee | reitti/reittiopas | 3 | define ->
findingRoutes: 'Haetaan reittejä...'
earlierDepartures: "Aikaisemmat lähdöt"
laterDepartures: "Myöhemmät lähdöt"
earlierArrivals: "Aikaisemmin perillä"
laterArrivals: "Myöhemmin perillä"
departure: 'Lähtö'
arrival: 'Perillä'
duration: 'Kesto'
walkingDistance: 'Kävelyä'
highFlooredShort: 'e... | 150560 | define ->
findingRoutes: 'Haetaan reittejä...'
earlierDepartures: "Aikaisemmat lähdöt"
laterDepartures: "Myöhemmät lähdöt"
earlierArrivals: "Aikaisemmin perillä"
laterArrivals: "Myöhemmin perillä"
departure: 'Lähtö'
arrival: 'Perillä'
duration: 'Kesto'
walkingDistance: 'Kävelyä'
highFlooredShort: 'e... | true | define ->
findingRoutes: 'Haetaan reittejä...'
earlierDepartures: "Aikaisemmat lähdöt"
laterDepartures: "Myöhemmät lähdöt"
earlierArrivals: "Aikaisemmin perillä"
laterArrivals: "Myöhemmin perillä"
departure: 'Lähtö'
arrival: 'Perillä'
duration: 'Kesto'
walkingDistance: 'Kävelyä'
highFlooredShort: 'e... |
[
{
"context": ").generate()\n expect(password).toMatch('[\\\\d\\\\w]{10}')\n expect(password.length).toEqual(10)\n\n ",
"end": 900,
"score": 0.6858909726142883,
"start": 892,
"tag": "PASSWORD",
"value": "d\\\\w]{10"
},
{
"context": "IGITS).generate()\n expect(pass... | spec/javascripts/jquery.password_wizard_spec.coffee | tian-im/password_wizard | 1 | jQuery ($) ->
# test cases
describe 'PasswordGenerator', ->
describe '#one_char', ->
it 'must return one char from the character candidates', ->
generator = new PasswordGenerator()
candidates = generator.candidates
for i in [ 0...1000 ]
index = candidates.indexOf(generato... | 209615 | jQuery ($) ->
# test cases
describe 'PasswordGenerator', ->
describe '#one_char', ->
it 'must return one char from the character candidates', ->
generator = new PasswordGenerator()
candidates = generator.candidates
for i in [ 0...1000 ]
index = candidates.indexOf(generato... | true | jQuery ($) ->
# test cases
describe 'PasswordGenerator', ->
describe '#one_char', ->
it 'must return one char from the character candidates', ->
generator = new PasswordGenerator()
candidates = generator.candidates
for i in [ 0...1000 ]
index = candidates.indexOf(generato... |
[
{
"context": "Script\n\nkey = new Fingerprint({ie_activex: true}).get()\nsum = new Fingerprint({canvas: true}).get()\nurl",
"end": 8688,
"score": 0.5150495767593384,
"start": 8685,
"tag": "KEY",
"value": "get"
}
] | coffee_clients/lib/kweak.coffee | scanton/quick-links | 0 | `
;(function (name, context, definition) {
if (typeof module !== 'undefined' && module.exports) { module.exports = definition(); }
else if (typeof define === 'function' && define.amd) { define(definition); }
else { context[name] = definition(); }
})('Fingerprint', this, function () {
'use strict';
var Fin... | 25837 | `
;(function (name, context, definition) {
if (typeof module !== 'undefined' && module.exports) { module.exports = definition(); }
else if (typeof define === 'function' && define.amd) { define(definition); }
else { context[name] = definition(); }
})('Fingerprint', this, function () {
'use strict';
var Fin... | true | `
;(function (name, context, definition) {
if (typeof module !== 'undefined' && module.exports) { module.exports = definition(); }
else if (typeof define === 'function' && define.amd) { define(definition); }
else { context[name] = definition(); }
})('Fingerprint', this, function () {
'use strict';
var Fin... |
[
{
"context": "ire('mongoose');\nmongoose.connect('mongodb://node:node@novus.modulusmongo.net:27017/Iganiq8o'); // connect to our database\nvar ",
"end": 500,
"score": 0.9991847276687622,
"start": 473,
"tag": "EMAIL",
"value": "node@novus.modulusmongo.net"
}
] | server.coffee | pblin/LinkedDataAPI | 0 | // BASE SETUP
// =============================================================================
// call the packages we need
require ('coffee-script/register');
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
sparql = require 'sparql'
// configure app
app... | 102799 | // BASE SETUP
// =============================================================================
// call the packages we need
require ('coffee-script/register');
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
sparql = require 'sparql'
// configure app
app... | true | // BASE SETUP
// =============================================================================
// call the packages we need
require ('coffee-script/register');
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
sparql = require 'sparql'
// configure app
app... |
[
{
"context": "# Copyright 2010-2012 Mikeal Rogers\n#\n# Licensed under the Apache License, Version",
"end": 35,
"score": 0.9998640418052673,
"start": 22,
"tag": "NAME",
"value": "Mikeal Rogers"
}
] | deps/npm/node_modules/request/index.coffee | lxe/io.coffee | 0 | # Copyright 2010-2012 Mikeal Rogers
#
# 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 ... | 70348 | # Copyright 2010-2012 <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 ... | true | # Copyright 2010-2012 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 ... |
[
{
"context": " />\n <h1 className=\"header center teal-text\">Shaun Farrell</h1>\n <div className=\"row center\">\n <",
"end": 630,
"score": 0.9998486638069153,
"start": 617,
"tag": "NAME",
"value": "Shaun Farrell"
},
{
"context": "Name=\"flow-text light\">\n ... | src/components/app.cjsx | Soundscape/sublime-portfolio | 0 | React = require 'react'
NavBar = require './navbar'
Parallax = require './parallax'
ParallaxSection = require './parallax.section'
ContactForm = require './contact.form'
ProjectList = require './project.list'
Footer = require './footer'
items = [
{ href: '#intro', text: 'About me' },
{ href: '#projects', text: 'Pr... | 44879 | React = require 'react'
NavBar = require './navbar'
Parallax = require './parallax'
ParallaxSection = require './parallax.section'
ContactForm = require './contact.form'
ProjectList = require './project.list'
Footer = require './footer'
items = [
{ href: '#intro', text: 'About me' },
{ href: '#projects', text: 'Pr... | true | React = require 'react'
NavBar = require './navbar'
Parallax = require './parallax'
ParallaxSection = require './parallax.section'
ContactForm = require './contact.form'
ProjectList = require './project.list'
Footer = require './footer'
items = [
{ href: '#intro', text: 'About me' },
{ href: '#projects', text: 'Pr... |
[
{
"context": "# @author Tim Knip / http://www.floorplanner.com/ / tim at floorplan",
"end": 18,
"score": 0.999891996383667,
"start": 10,
"tag": "NAME",
"value": "Tim Knip"
},
{
"context": "orplanner.com/ / tim at floorplanner.com\n# @author aladjev.andrew@gmail.com\n\n#= require new_... | source/javascripts/new_src/loaders/collada/vertices.coffee | andrew-aladev/three.js | 0 | # @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
# @author aladjev.andrew@gmail.com
#= require new_src/loaders/collada/input
class Vertices
constructor: ->
@input = {}
parse: (element) ->
@id = element.getAttribute "id"
length = element.childNodes.length
for i in [... | 204390 | # @author <NAME> / http://www.floorplanner.com/ / tim at floorplanner.com
# @author <EMAIL>
#= require new_src/loaders/collada/input
class Vertices
constructor: ->
@input = {}
parse: (element) ->
@id = element.getAttribute "id"
length = element.childNodes.length
for i in [0...length]
i... | true | # @author PI:NAME:<NAME>END_PI / http://www.floorplanner.com/ / tim at floorplanner.com
# @author PI:EMAIL:<EMAIL>END_PI
#= require new_src/loaders/collada/input
class Vertices
constructor: ->
@input = {}
parse: (element) ->
@id = element.getAttribute "id"
length = element.childNodes.length
... |
[
{
"context": "'model')\n # Load the payload.\n key = ns.to_p('files')\n @tc.push_payload(ns.to_p('file'), data.re",
"end": 2334,
"score": 0.9796357154846191,
"start": 2318,
"tag": "KEY",
"value": "ns.to_p('files')"
}
] | src/thinkspace/client/thinkspace-resource/addon/components/manage/files.coffee | sixthedge/cellar | 6 | import ember from 'ember'
import ns from 'totem/ns'
import ajax from 'totem/ajax'
import base from 'thinkspace-base/components/base'
export default base.extend
c_manage_file: ns.to_p 'resource', 'manage', 'file'
files_url: ember.computed -> ajax.adapter_model_url(model: ns.to_p 'file')
model_type: ember.... | 202736 | import ember from 'ember'
import ns from 'totem/ns'
import ajax from 'totem/ajax'
import base from 'thinkspace-base/components/base'
export default base.extend
c_manage_file: ns.to_p 'resource', 'manage', 'file'
files_url: ember.computed -> ajax.adapter_model_url(model: ns.to_p 'file')
model_type: ember.... | true | import ember from 'ember'
import ns from 'totem/ns'
import ajax from 'totem/ajax'
import base from 'thinkspace-base/components/base'
export default base.extend
c_manage_file: ns.to_p 'resource', 'manage', 'file'
files_url: ember.computed -> ajax.adapter_model_url(model: ns.to_p 'file')
model_type: ember.... |
[
{
"context": "# Created by Marie Schweiz on 16 September 2017\n# \n# Use to create and desig",
"end": 26,
"score": 0.9998566508293152,
"start": 13,
"tag": "NAME",
"value": "Marie Schweiz"
}
] | simpleripple.coffee | MarieSchweiz/Simple-Ripple | 9 | # Created by Marie Schweiz on 16 September 2017
#
# Use to create and design an android ripple touch effect
#
# To Get Started...
#
# 1. Place this file in Framer Studio modules directory
#
# 2. In your project include:
# ripple = require("simpleripple").ripple
#
# 3. Activate the ripple by adding:
# yourlayer... | 197736 | # Created by <NAME> on 16 September 2017
#
# Use to create and design an android ripple touch effect
#
# To Get Started...
#
# 1. Place this file in Framer Studio modules directory
#
# 2. In your project include:
# ripple = require("simpleripple").ripple
#
# 3. Activate the ripple by adding:
# yourlayer.on(Eve... | true | # Created by PI:NAME:<NAME>END_PI on 16 September 2017
#
# Use to create and design an android ripple touch effect
#
# To Get Started...
#
# 1. Place this file in Framer Studio modules directory
#
# 2. In your project include:
# ripple = require("simpleripple").ripple
#
# 3. Activate the ripple by adding:
# yo... |
[
{
"context": "ith modifier\n\t\twindow.localStorage.setItem dkey, 'tdyutrghjtucvghjtc' # something random not important\n",
"end": 4500,
"score": 0.7648369073867798,
"start": 4482,
"tag": "KEY",
"value": "tdyutrghjtucvghjtc"
}
] | assets/kinhJS.coffee | phineas-pta/kinh_nhat_tung | 0 | ---
# placholder for Jekyll to recognize this file
---
'use strict'
y = 'yesssss' # to save some data
dkey = 'dark' # keyword for dark theme
prevScrollPos = hamburgerHeight = 0 # placeholder global value
langElemMap = new Map # cache all elem of each lang
Element.prototype.isEmpty = -> # new method for all elements
... | 216788 | ---
# placholder for Jekyll to recognize this file
---
'use strict'
y = 'yesssss' # to save some data
dkey = 'dark' # keyword for dark theme
prevScrollPos = hamburgerHeight = 0 # placeholder global value
langElemMap = new Map # cache all elem of each lang
Element.prototype.isEmpty = -> # new method for all elements
... | true | ---
# placholder for Jekyll to recognize this file
---
'use strict'
y = 'yesssss' # to save some data
dkey = 'dark' # keyword for dark theme
prevScrollPos = hamburgerHeight = 0 # placeholder global value
langElemMap = new Map # cache all elem of each lang
Element.prototype.isEmpty = -> # new method for all elements
... |
[
{
"context": "have a name', ->\n task1.name.should.equal 'wash dishes'\n\n it 'should be initially incomplete', ->\n t",
"end": 284,
"score": 0.547577440738678,
"start": 278,
"tag": "NAME",
"value": "dishes"
}
] | tests/unit/examples/taskTest.coffee | Seishi/boilerplate-coffee | 3 | chai = require "chai"
chai.should()
{Task, TaskList} = require "../../../src/assets/scripts/examples/task"
describe 'Task instance', ->
task1 = task2 = null
beforeEach ->
task1 = new Task 'wash dishes'
it 'should have a name', ->
task1.name.should.equal 'wash dishes'
it 'should be initially incompl... | 73874 | chai = require "chai"
chai.should()
{Task, TaskList} = require "../../../src/assets/scripts/examples/task"
describe 'Task instance', ->
task1 = task2 = null
beforeEach ->
task1 = new Task 'wash dishes'
it 'should have a name', ->
task1.name.should.equal 'wash <NAME>'
it 'should be initially incompl... | true | chai = require "chai"
chai.should()
{Task, TaskList} = require "../../../src/assets/scripts/examples/task"
describe 'Task instance', ->
task1 = task2 = null
beforeEach ->
task1 = new Task 'wash dishes'
it 'should have a name', ->
task1.name.should.equal 'wash PI:NAME:<NAME>END_PI'
it 'should be ini... |
[
{
"context": ")\r\n myCount = response.getLength()\r\n\r\n \r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass RestfulResponse",
"end": 863,
"score": 0.9997671842575073,
"start": 851,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/serialization/RestfulResponse.coffee | qrefdev/qref | 0 | ###
The response object returned for all RESTful requests.
This response object supports pagination and returning the total available records using the {#setTotal} method.
@example Reporting a Failure
response = new RestfulResponse()
response.failure('Some failure reason', 500)
@example Returning Data [... | 160966 | ###
The response object returned for all RESTful requests.
This response object supports pagination and returning the total available records using the {#setTotal} method.
@example Reporting a Failure
response = new RestfulResponse()
response.failure('Some failure reason', 500)
@example Returning Data [... | true | ###
The response object returned for all RESTful requests.
This response object supports pagination and returning the total available records using the {#setTotal} method.
@example Reporting a Failure
response = new RestfulResponse()
response.failure('Some failure reason', 500)
@example Returning Data [... |
[
{
"context": "t be static expressions\"\n\n result =\n name: @name\n\n # Check if we have a localization map, a",
"end": 8178,
"score": 0.7238603830337524,
"start": 8178,
"tag": "NAME",
"value": ""
},
{
"context": "be static expressions\"\n\n result =\n name: @name... | packages/litexa/src/parser/intent.coffee | cheruvian/litexa | 34 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
lib = module.exports.lib = {}
{ Func... | 225283 | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
lib = module.exports.lib = {}
{ Func... | true | ###
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###
lib = module.exports.lib = {}
{ Func... |
[
{
"context": "odalShowing = false\n @_data = [\n { name: 'AAA', amount: 2000 }\n { name: 'BBB', amount: 10 ",
"end": 117,
"score": 0.9568563103675842,
"start": 114,
"tag": "NAME",
"value": "AAA"
},
{
"context": " { name: 'AAA', amount: 2000 }\n { name: 'BBB', am... | src/senior/SeniorModel.coffee | khirayama/hansonJavaScript | 10 | class @SeniorModel
constructor: ->
@_events = {}
@_isModalShowing = false
@_data = [
{ name: 'AAA', amount: 2000 }
{ name: 'BBB', amount: 10 }
{ name: 'CCC', amount: 10000 }
]
getData: ->
@_data
setData: (value) ->
@_data = value
getIsModalShowing: ->
@_isModalSh... | 83566 | class @SeniorModel
constructor: ->
@_events = {}
@_isModalShowing = false
@_data = [
{ name: '<NAME>', amount: 2000 }
{ name: '<NAME>', amount: 10 }
{ name: '<NAME>', amount: 10000 }
]
getData: ->
@_data
setData: (value) ->
@_data = value
getIsModalShowing: ->
@_... | true | class @SeniorModel
constructor: ->
@_events = {}
@_isModalShowing = false
@_data = [
{ name: 'PI:NAME:<NAME>END_PI', amount: 2000 }
{ name: 'PI:NAME:<NAME>END_PI', amount: 10 }
{ name: 'PI:NAME:<NAME>END_PI', amount: 10000 }
]
getData: ->
@_data
setData: (value) ->
@_da... |
[
{
"context": "common_key = \"test__wafer\"\ncommon_message = \"test message\"\ncommon_obj =\n n",
"end": 25,
"score": 0.997871994972229,
"start": 14,
"tag": "KEY",
"value": "test__wafer"
}
] | test/test.coffee | calebrash/wafer | 1 | common_key = "test__wafer"
common_message = "test message"
common_obj =
num: 999
msg: common_message
obj:
num: 888
test 'Wafer objects exist', () ->
ok typeof Wafer is "function", "v2 Wafer exists"
test "Simple string storage", () ->
w = new Wafer common_key
w.set common_message
equal w.get(), commo... | 135130 | common_key = "<KEY>"
common_message = "test message"
common_obj =
num: 999
msg: common_message
obj:
num: 888
test 'Wafer objects exist', () ->
ok typeof Wafer is "function", "v2 Wafer exists"
test "Simple string storage", () ->
w = new Wafer common_key
w.set common_message
equal w.get(), common_mess... | true | common_key = "PI:KEY:<KEY>END_PI"
common_message = "test message"
common_obj =
num: 999
msg: common_message
obj:
num: 888
test 'Wafer objects exist', () ->
ok typeof Wafer is "function", "v2 Wafer exists"
test "Simple string storage", () ->
w = new Wafer common_key
w.set common_message
equal w.get()... |
[
{
"context": "###\n\tCopyright © 2001 Robert Penner\n\tAll rights reserved.\n\n\tRedistribution and use in",
"end": 35,
"score": 0.9998366236686707,
"start": 22,
"tag": "NAME",
"value": "Robert Penner"
},
{
"context": "\t@penner = factory\n\n# based on https://github.com/danro/jquery... | node_modules/penner/penner.coffee | davidfig/physics | 13 | ###
Copyright © 2001 Robert Penner
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the followin... | 11337 | ###
Copyright © 2001 <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following discl... | true | ###
Copyright © 2001 PI:NAME:<NAME>END_PI
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the f... |
[
{
"context": "be.length 0\n\n Things.Data.updateEntry name: \"Jim\"\n expect(Things.Data.get()).to.be.length 1\n\n",
"end": 1164,
"score": 0.999799907207489,
"start": 1161,
"tag": "NAME",
"value": "Jim"
},
{
"context": "t()).to.eql {}\n\n Profile.Data.replace name: \"J... | test/unit/basic_spec.coffee | killercup/angular-epicmodel | 0 | describe "Collection", ->
angular.module 'Stuff', ['EpicModel']
beforeEach module('Stuff')
beforeEach addHelpers()
Collection = null
beforeEach inject (_Collection_) ->
Collection = _Collection_
describe "creation", ->
it "works with a name", ->
Things = Collection.new "Things"
expec... | 185161 | describe "Collection", ->
angular.module 'Stuff', ['EpicModel']
beforeEach module('Stuff')
beforeEach addHelpers()
Collection = null
beforeEach inject (_Collection_) ->
Collection = _Collection_
describe "creation", ->
it "works with a name", ->
Things = Collection.new "Things"
expec... | true | describe "Collection", ->
angular.module 'Stuff', ['EpicModel']
beforeEach module('Stuff')
beforeEach addHelpers()
Collection = null
beforeEach inject (_Collection_) ->
Collection = _Collection_
describe "creation", ->
it "works with a name", ->
Things = Collection.new "Things"
expec... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9974650740623474,
"start": 12,
"tag": "NAME",
"value": "Joyent"
},
{
"context": " connection.\n# Demos this bug: https://github.com/joyent/node/issues/680\nbody = \"hello worl... | test/simple/test-http-extra-response.coffee | lxe/io.coffee | 0 | # Copyright Joyent, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 134803 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": "calhost'\n username: process.env.USERNAME || 'admin'\n password: process.env.PASSWORD || '9999'\n ",
"end": 342,
"score": 0.9951281547546387,
"start": 337,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "e: process.env.USERNAME || 'admin'\n password:... | stream-rtsp/node_modules/onvif/test/ptz.coffee | danyperry/webcam | 0 | synthTest = not process.env.HOSTNAME
assert = require 'assert'
onvif = require('../lib/onvif')
serverMockup = require('./serverMockup') if synthTest
util = require('util')
describe 'PTZ', () ->
cam = null
before (done) ->
options = {
hostname: process.env.HOSTNAME || 'localhost'
username: process.... | 41355 | synthTest = not process.env.HOSTNAME
assert = require 'assert'
onvif = require('../lib/onvif')
serverMockup = require('./serverMockup') if synthTest
util = require('util')
describe 'PTZ', () ->
cam = null
before (done) ->
options = {
hostname: process.env.HOSTNAME || 'localhost'
username: process.... | true | synthTest = not process.env.HOSTNAME
assert = require 'assert'
onvif = require('../lib/onvif')
serverMockup = require('./serverMockup') if synthTest
util = require('util')
describe 'PTZ', () ->
cam = null
before (done) ->
options = {
hostname: process.env.HOSTNAME || 'localhost'
username: process.... |
[
{
"context": "payer_id: 'fake_payer_id'\n email: 'fake_email@example.com'\n payment_method: 'paypal'\n ",
"end": 1708,
"score": 0.9999005198478699,
"start": 1686,
"tag": "EMAIL",
"value": "fake_email@example.com"
}
] | test/app/views/core/SubscribeModal.spec.coffee | CSCI-462-02-2018/codecombat | 1 | SubscribeModal = require 'views/core/SubscribeModal'
Products = require 'collections/Products'
stripeHandler = require 'core/services/stripe'
payPal = require 'core/services/paypal'
{ wrapJasmine } = require('test/app/utils')
productList = [
{
_id: '1'
name: 'basic_subscription'
amount: 100
gems: 350... | 220695 | SubscribeModal = require 'views/core/SubscribeModal'
Products = require 'collections/Products'
stripeHandler = require 'core/services/stripe'
payPal = require 'core/services/paypal'
{ wrapJasmine } = require('test/app/utils')
productList = [
{
_id: '1'
name: 'basic_subscription'
amount: 100
gems: 350... | true | SubscribeModal = require 'views/core/SubscribeModal'
Products = require 'collections/Products'
stripeHandler = require 'core/services/stripe'
payPal = require 'core/services/paypal'
{ wrapJasmine } = require('test/app/utils')
productList = [
{
_id: '1'
name: 'basic_subscription'
amount: 100
gems: 350... |
[
{
"context": "# Copyright (c) 2008-2013 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely dist",
"end": 41,
"score": 0.9998620748519897,
"start": 26,
"tag": "NAME",
"value": "Michael Dvorkin"
}
] | app/assets/javascripts/crm.js.coffee | Damo1223/CRM | 0 | # Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
String::capitalize ... | 27596 | # Copyright (c) 2008-2013 <NAME> and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
String::capitalize = ->
... | true | # Copyright (c) 2008-2013 PI:NAME:<NAME>END_PI and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
String::capita... |
[
{
"context": "\n file: {},\n name: 'test',\n size: 3000\n })\n\n ",
"end": 3057,
"score": 0.9994395971298218,
"start": 3053,
"tag": "NAME",
"value": "test"
},
{
"context": "\n file: {},\n name: '... | app/modules/components/attachments-full/attachments-full.service.spec.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 73940 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": " {}) ->\n ## don't buffer writes - thanks a lot, Nagle\n ## https://github.com/cypress-io/cypress/issu",
"end": 1043,
"score": 0.9795334339141846,
"start": 1038,
"tag": "NAME",
"value": "Nagle"
},
{
"context": "s - thanks a lot, Nagle\n ## https://github.com/cy... | packages/https-proxy/lib/server.coffee | fsteinbauer/cypress | 0 | _ = require("lodash")
{ agent, allowDestroy, connect } = require("@packages/network")
debug = require("debug")("cypress:https-proxy")
fs = require("fs-extra")
getProxyForUrl = require("proxy-from-env").getProxyForUrl
https = require("https")
net = require("net")
parse ... | 91531 | _ = require("lodash")
{ agent, allowDestroy, connect } = require("@packages/network")
debug = require("debug")("cypress:https-proxy")
fs = require("fs-extra")
getProxyForUrl = require("proxy-from-env").getProxyForUrl
https = require("https")
net = require("net")
parse ... | true | _ = require("lodash")
{ agent, allowDestroy, connect } = require("@packages/network")
debug = require("debug")("cypress:https-proxy")
fs = require("fs-extra")
getProxyForUrl = require("proxy-from-env").getProxyForUrl
https = require("https")
net = require("net")
parse ... |
[
{
"context": "query = {mini_app_id: appId}\n\t\t\tquery[key] = from_user\n\t\t\tset = {$set: {}}\n\t\t\tset.$set[key] = to_user\n\t\t",
"end": 900,
"score": 0.5294601917266846,
"start": 896,
"tag": "USERNAME",
"value": "user"
},
{
"context": "ends_coll.findOne({mini_app_id: appId, us... | creator/packages/steedos-weixin/server/routes/phone_login.coffee | yicone/steedos-platform | 42 |
userDataTransfer = (appId, from_user, to_user)->
#数据结构: {待转移的数据对象: [user字段数组]}
dataTransferObjects = {
vip_customers: ['from', 'created_by', 'modified_by'], #防止一个用户有多条vip_customers记录,不转移owner数据
love_friends: ['created_by', 'modified_by'],
vip_invites: ['from', 'owner', 'created_by', 'modified_by'],
vip_grou... | 153125 |
userDataTransfer = (appId, from_user, to_user)->
#数据结构: {待转移的数据对象: [user字段数组]}
dataTransferObjects = {
vip_customers: ['from', 'created_by', 'modified_by'], #防止一个用户有多条vip_customers记录,不转移owner数据
love_friends: ['created_by', 'modified_by'],
vip_invites: ['from', 'owner', 'created_by', 'modified_by'],
vip_grou... | true |
userDataTransfer = (appId, from_user, to_user)->
#数据结构: {待转移的数据对象: [user字段数组]}
dataTransferObjects = {
vip_customers: ['from', 'created_by', 'modified_by'], #防止一个用户有多条vip_customers记录,不转移owner数据
love_friends: ['created_by', 'modified_by'],
vip_invites: ['from', 'owner', 'created_by', 'modified_by'],
vip_grou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.