entities listlengths 1 8.61k | max_stars_repo_path stringlengths 7 172 | max_stars_repo_name stringlengths 5 89 | max_stars_count int64 0 82k | content stringlengths 14 1.05M | id stringlengths 2 6 | new_content stringlengths 15 1.05M | modified bool 1
class | references stringlengths 29 1.05M |
|---|---|---|---|---|---|---|---|---|
[
{
"context": "###\n * quad\n * https://github.com/1egoman/quad\n *\n * Copyright (c) 2015 Ryan Gaus\n * Licens",
"end": 41,
"score": 0.9988946914672852,
"start": 34,
"tag": "USERNAME",
"value": "1egoman"
},
{
"context": "//github.com/1egoman/quad\n *\n * Copyright (c) 2015 Ryan Gaus\... | quadpi/src/quad.coffee | 1egoman/quad | 0 | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
'use strict'
express = require "express"
app = express()
chalk = require "chalk"
path = require "path"
bodyParser = require "body-parser"
uuid = require "uuid"
event = require "./call_event"
expor... | 43036 | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
'use strict'
express = require "express"
app = express()
chalk = require "chalk"
path = require "path"
bodyParser = require "body-parser"
uuid = require "uuid"
event = require "./call_event"
exports.... | true | ###
* quad
* https://github.com/1egoman/quad
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
'use strict'
express = require "express"
app = express()
chalk = require "chalk"
path = require "path"
bodyParser = require "body-parser"
uuid = require "uuid"
event = require "./call_ev... |
[
{
"context": "###!\nCopyright (c) 2002-2017 \"Neo Technology,\"\nNetwork Engine for Objects in Lund AB [http://n",
"end": 44,
"score": 0.5599489212036133,
"start": 34,
"tag": "NAME",
"value": "Technology"
}
] | src/components/D3Visualization/lib/visualization/components/style.coffee | yezonggang/zcfx-admin-master | 24 | ###!
Copyright (c) 2002-2017 "Neo Technology,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Neo4j is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 ... | 86207 | ###!
Copyright (c) 2002-2017 "Neo <NAME>,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Neo4j is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of t... | true | ###!
Copyright (c) 2002-2017 "Neo PI:NAME:<NAME>END_PI,"
Network Engine for Objects in Lund AB [http://neotechnology.com]
This file is part of Neo4j.
Neo4j is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either ... |
[
{
"context": "### Copyright 2013 Mark Watson. All rights reserved.\n This code may be used un",
"end": 30,
"score": 0.9997200965881348,
"start": 19,
"tag": "NAME",
"value": "Mark Watson"
}
] | src/nn.coffee | mark-watson/javascript_intelligent_systems | 5 | ### Copyright 2013 Mark Watson. All rights reserved.
This code may be used under the Apache 2 license.
This notice must remain in this file and derived files. ###
learningRate = 0.3
new_neural_network = (num_input, num_hidden, num_output) ->
data =
numInputs: num_input
numHidden: num_hidden
numOu... | 9095 | ### Copyright 2013 <NAME>. All rights reserved.
This code may be used under the Apache 2 license.
This notice must remain in this file and derived files. ###
learningRate = 0.3
new_neural_network = (num_input, num_hidden, num_output) ->
data =
numInputs: num_input
numHidden: num_hidden
numOutputs... | true | ### Copyright 2013 PI:NAME:<NAME>END_PI. All rights reserved.
This code may be used under the Apache 2 license.
This notice must remain in this file and derived files. ###
learningRate = 0.3
new_neural_network = (num_input, num_hidden, num_output) ->
data =
numInputs: num_input
numHidden: num_hidden
... |
[
{
"context": "___________\n# Architecture and Code Handcrafted by Prabhat Kumar.\n# Architectuur en Code handgemaakt door Prabhat ",
"end": 352,
"score": 0.7903473973274231,
"start": 339,
"tag": "NAME",
"value": "Prabhat Kumar"
},
{
"context": "hat Kumar.\n# Architectuur en Code hand... | source/core/coffee/main.coffee | CB2L/CB2L.github.io | 1 | #
# CBBL®
# Computational Biology and Bioinformatics Laboratory.
# _______________________________________________________________
# CoffeeScript, http://coffeescript.org/.
# The AMD JavaScript - for defining "common" configurations.
# _______________________________________________________________
# Architecture and C... | 183400 | #
# CBBL®
# Computational Biology and Bioinformatics Laboratory.
# _______________________________________________________________
# CoffeeScript, http://coffeescript.org/.
# The AMD JavaScript - for defining "common" configurations.
# _______________________________________________________________
# Architecture and C... | true | #
# CBBL®
# Computational Biology and Bioinformatics Laboratory.
# _______________________________________________________________
# CoffeeScript, http://coffeescript.org/.
# The AMD JavaScript - for defining "common" configurations.
# _______________________________________________________________
# Architecture and C... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9993962645530701,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-event-emitter-subclass.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... | 26571 | # Copyright <NAME>, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | true | # Copyright PI:NAME:<NAME>END_PI, Inc. and other Node contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, co... |
[
{
"context": "\n beforeEach ->\n @sut.forgotPassword(\"peter@bacon.com\")\n @rootScope.$digest()\n\n it 'should ",
"end": 526,
"score": 0.9998916983604431,
"start": 511,
"tag": "EMAIL",
"value": "peter@bacon.com"
},
{
"context": "ould call AuthenticatorService... | test/app/forgot-password-controller-spec.coffee | octoblu/email-password-site | 1 | describe 'ForgotPasswordController', ->
beforeEach ->
module 'email-password'
inject ($controller, $q, $rootScope) ->
@q = $q
@rootScope = $rootScope
@AuthenticatorService = forgotPassword: sinon.stub().returns(@q.when())
@sut = $controller 'ForgotPasswordController',
Authenti... | 211316 | describe 'ForgotPasswordController', ->
beforeEach ->
module 'email-password'
inject ($controller, $q, $rootScope) ->
@q = $q
@rootScope = $rootScope
@AuthenticatorService = forgotPassword: sinon.stub().returns(@q.when())
@sut = $controller 'ForgotPasswordController',
Authenti... | true | describe 'ForgotPasswordController', ->
beforeEach ->
module 'email-password'
inject ($controller, $q, $rootScope) ->
@q = $q
@rootScope = $rootScope
@AuthenticatorService = forgotPassword: sinon.stub().returns(@q.when())
@sut = $controller 'ForgotPasswordController',
Authenti... |
[
{
"context": "mail('foo@bar'))\n\n aok(utils.is_email('foo@bar.baz'))\n\n test_luhn_check: ->\n aok(u",
"end": 5533,
"score": 0.9769812822341919,
"start": 5522,
"tag": "EMAIL",
"value": "foo@bar.baz"
}
] | clients/test/jstest_utils_any.coffee | jacob22/accounting | 0 | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 97086 | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | true | /*
Copyright 2019 Open End AB
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
[
{
"context": "text_manipulate.dict_append_proc(dict_aa,'t2539','彦根',26857,'1954-11-18')\n\t\n\treturn\tdict_aa\n\n# -------",
"end": 1183,
"score": 0.9991827011108398,
"start": 1181,
"tag": "NAME",
"value": "彦根"
}
] | pdf/coffee/create/pdf_create.coffee | ekzemplaro/data_base_language | 3 | #! /usr/bin/coffee
# ---------------------------------------------------------------
# pdf_create.coffee
#
# Jan/10/2017
#
# ---------------------------------------------------------------
PDFDocument = require('pdfkit')
fs = require('fs')
text_manipulate=require ("/var/www/data_base/common/coffee_common/text_mani... | 3580 | #! /usr/bin/coffee
# ---------------------------------------------------------------
# pdf_create.coffee
#
# Jan/10/2017
#
# ---------------------------------------------------------------
PDFDocument = require('pdfkit')
fs = require('fs')
text_manipulate=require ("/var/www/data_base/common/coffee_common/text_mani... | true | #! /usr/bin/coffee
# ---------------------------------------------------------------
# pdf_create.coffee
#
# Jan/10/2017
#
# ---------------------------------------------------------------
PDFDocument = require('pdfkit')
fs = require('fs')
text_manipulate=require ("/var/www/data_base/common/coffee_common/text_mani... |
[
{
"context": " port: 3306,\n password: '',\n database: 'test'\n onEr",
"end": 6647,
"score": 0.7763354182243347,
"start": 6647,
"tag": "PASSWORD",
"value": ""
}
] | src/index.coffee | yangsibai/mysql-dbhelper | 1 | mysql = require("mysql")
Connection = require("mysql/lib/Connection")
_ = require("underscore")
Connection.prototype.execute = ->
this.query.apply(this, arguments)
###
查询并在完成后立即关闭连接
@param {String} sql
@param {Array} [paras]
@param {Function} cb callback function
###
Connection.prototype.$execute ... | 45245 | mysql = require("mysql")
Connection = require("mysql/lib/Connection")
_ = require("underscore")
Connection.prototype.execute = ->
this.query.apply(this, arguments)
###
查询并在完成后立即关闭连接
@param {String} sql
@param {Array} [paras]
@param {Function} cb callback function
###
Connection.prototype.$execute ... | true | mysql = require("mysql")
Connection = require("mysql/lib/Connection")
_ = require("underscore")
Connection.prototype.execute = ->
this.query.apply(this, arguments)
###
查询并在完成后立即关闭连接
@param {String} sql
@param {Array} [paras]
@param {Function} cb callback function
###
Connection.prototype.$execute ... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9993565678596497,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-process-argv-0.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... | 180026 | # 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": "essfully accepted invitation'\n FORGOT_PASSWORD: 'User forgot password'\n RESET_PASSWORD: 'User successfully reset passw",
"end": 3655,
"score": 0.9993632435798645,
"start": 3635,
"tag": "PASSWORD",
"value": "User forgot password"
},
{
"context": "SSWORD: 'User forgot... | lib/analytics.coffee | 1aurabrown/ervell | 118 | { extend, reduce, map, wrap } = require 'underscore'
{ capitalize } = require 'underscore.string'
{ NODE_ENV, CURRENT_USER, GOOGLE_ANALYTICS_ID, DO_NOT_TRACK } = require('sharify').data
module.exports = (options) =>
return if module.exports.getUserAgent()?.indexOf?('PhantomJS') > -1
return if DO_NOT_TRACK
{ @ga... | 144444 | { extend, reduce, map, wrap } = require 'underscore'
{ capitalize } = require 'underscore.string'
{ NODE_ENV, CURRENT_USER, GOOGLE_ANALYTICS_ID, DO_NOT_TRACK } = require('sharify').data
module.exports = (options) =>
return if module.exports.getUserAgent()?.indexOf?('PhantomJS') > -1
return if DO_NOT_TRACK
{ @ga... | true | { extend, reduce, map, wrap } = require 'underscore'
{ capitalize } = require 'underscore.string'
{ NODE_ENV, CURRENT_USER, GOOGLE_ANALYTICS_ID, DO_NOT_TRACK } = require('sharify').data
module.exports = (options) =>
return if module.exports.getUserAgent()?.indexOf?('PhantomJS') > -1
return if DO_NOT_TRACK
{ @ga... |
[
{
"context": "uisiera CodeCombat en su escuela?\"\n educator: \"Maestro\"\n student: \"Estudiante\"\n go_to_my_dashboard",
"end": 27821,
"score": 0.8413981795310974,
"start": 27814,
"tag": "NAME",
"value": "Maestro"
},
{
"context": "ashboard: \"Ir a mi panel\"\n\n nav:\n ... | app/locale/es-419.ozar.coffee | goranoberg/codecombat | 0 | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
ozaria_home:
subtitle: "Informática que fascina"
heading_subtitle: "Una aventura de programación para estudiantes y una solución inmediata para enseñar Ciencias de la Computación."
... | 75959 | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
ozaria_home:
subtitle: "Informática que fascina"
heading_subtitle: "Una aventura de programación para estudiantes y una solución inmediata para enseñar Ciencias de la Computación."
... | true | module.exports = nativeDescription: "Español (América Latina)", englishDescription: "Spanish (Latin America)", translation:
ozaria_home:
subtitle: "Informática que fascina"
heading_subtitle: "Una aventura de programación para estudiantes y una solución inmediata para enseñar Ciencias de la Computación."
... |
[
{
"context": "console.log msg_info\n if msg_info.nick is \"bingbot\" and s.match /^http\\:\\/\\/(.+)*(jpg|png)/i\n ",
"end": 669,
"score": 0.9990345239639282,
"start": 662,
"tag": "USERNAME",
"value": "bingbot"
},
{
"context": "'./irc_config'\n\nunless bot.connect\n # b... | imgo.coffee | mrluc/node-dbp-irctweet | 1 | fs = require 'fs'
ResponderBot = require './responderbot'
# get disposables via https://imgur.com/register/api_anon
client_id = "879200d6e95a899c7b1453ed6a31dd37"
imgur = require "imgur"
imgur.setKey client_id
{Facer} = require './cv/facer.coffee'
{OverlayImage} = require './cv/dl_overlay'
class Imgo extends Respond... | 82273 | fs = require 'fs'
ResponderBot = require './responderbot'
# get disposables via https://imgur.com/register/api_anon
client_id = "879200d6e95a899c7b1453ed6a31dd37"
imgur = require "imgur"
imgur.setKey client_id
{Facer} = require './cv/facer.coffee'
{OverlayImage} = require './cv/dl_overlay'
class Imgo extends Respond... | true | fs = require 'fs'
ResponderBot = require './responderbot'
# get disposables via https://imgur.com/register/api_anon
client_id = "879200d6e95a899c7b1453ed6a31dd37"
imgur = require "imgur"
imgur.setKey client_id
{Facer} = require './cv/facer.coffee'
{OverlayImage} = require './cv/dl_overlay'
class Imgo extends Respond... |
[
{
"context": "sword_field.val() == ''\n password_field.val(@generatePassword())\n\n @attribute('ticket_message').val(",
"end": 1074,
"score": 0.708336591720581,
"start": 1066,
"tag": "PASSWORD",
"value": "generate"
}
] | app/assets/javascripts/pigeon/qst-server-wizard.js.coffee | instedd/pigeon | 1 | #= require pigeon/wizard
class QstServerWizard extends PigeonWizard
onPhoneType: (type) ->
@pages.each (index, page) ->
page_phone_type = $(page).data('phone-type')
if page_phone_type
page.disabled = page_phone_type != type
true
@attribute('phone_type').val(type)
@updateNavigati... | 175424 | #= require pigeon/wizard
class QstServerWizard extends PigeonWizard
onPhoneType: (type) ->
@pages.each (index, page) ->
page_phone_type = $(page).data('phone-type')
if page_phone_type
page.disabled = page_phone_type != type
true
@attribute('phone_type').val(type)
@updateNavigati... | true | #= require pigeon/wizard
class QstServerWizard extends PigeonWizard
onPhoneType: (type) ->
@pages.each (index, page) ->
page_phone_type = $(page).data('phone-type')
if page_phone_type
page.disabled = page_phone_type != type
true
@attribute('phone_type').val(type)
@updateNavigati... |
[
{
"context": "llers.find().count() == 0\n _.shuffle([\n {name: \"Francesco Totti\", team: \"Roma\", role: \"F\"},\n {name: \"Mauro Icar",
"end": 94,
"score": 0.9998282790184021,
"start": 79,
"tag": "NAME",
"value": "Francesco Totti"
},
{
"context": "esco Totti\", team: \"Roma\", ... | server/fixtures.coffee | dfucci/fantasybid | 0 | Current.remove({})
if Footballers.find().count() == 0
_.shuffle([
{name: "Francesco Totti", team: "Roma", role: "F"},
{name: "Mauro Icardi", team: "Inter", role: "F"},
{name: "Marco Materazzi", team: "Inter", role: "D"},
{name: "Ale Nesta", team: "Milan", role: "D"},
{name: "Daniele DeRossi", team: "Ro... | 139385 | Current.remove({})
if Footballers.find().count() == 0
_.shuffle([
{name: "<NAME>", team: "Roma", role: "F"},
{name: "<NAME>", team: "Inter", role: "F"},
{name: "<NAME>", team: "Inter", role: "D"},
{name: "<NAME>", team: "Milan", role: "D"},
{name: "<NAME>", team: "Roma", role: "M"},
{name: "<NAME>",... | true | Current.remove({})
if Footballers.find().count() == 0
_.shuffle([
{name: "PI:NAME:<NAME>END_PI", team: "Roma", role: "F"},
{name: "PI:NAME:<NAME>END_PI", team: "Inter", role: "F"},
{name: "PI:NAME:<NAME>END_PI", team: "Inter", role: "D"},
{name: "PI:NAME:<NAME>END_PI", team: "Milan", role: "D"},
{name:... |
[
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)\n# MIT Licensed\n###\n\nmongo = r",
"end": 44,
"score": 0.999849796295166,
"start": 36,
"tag": "NAME",
"value": "Jae Kwon"
},
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.c... | logic/sessions.coffee | jaekwon/YCatalyst | 3 | ###
# YCatalyst
# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)
# MIT Licensed
###
mongo = require '../mongo'
# a global hash from record id to {username: {timestamp}}
all_sessions = undefined
mongo.after_open 'app', ->
mongo.app.findOne({_id: 'all_sessions'}, (err, stuff) ->
all_sessions = stuff or {_id: 'all... | 96268 | ###
# YCatalyst
# Copyright(c) 2011 <NAME> (<EMAIL>)
# MIT Licensed
###
mongo = require '../mongo'
# a global hash from record id to {username: {timestamp}}
all_sessions = undefined
mongo.after_open 'app', ->
mongo.app.findOne({_id: 'all_sessions'}, (err, stuff) ->
all_sessions = stuff or {_id: 'all_sessions'}
... | true | ###
# YCatalyst
# Copyright(c) 2011 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# MIT Licensed
###
mongo = require '../mongo'
# a global hash from record id to {username: {timestamp}}
all_sessions = undefined
mongo.after_open 'app', ->
mongo.app.findOne({_id: 'all_sessions'}, (err, stuff) ->
all_sessions = st... |
[
{
"context": "ntainer',\n modules:\n authorship: { authorId: 'basic' }\n toolbar: { container: '.basic-wrapper .too",
"end": 134,
"score": 0.5651406049728394,
"start": 129,
"tag": "NAME",
"value": "basic"
}
] | examples/scripts/advanced.coffee | philschatz/quill | 0 | _ = Quill.require('lodash')
basicEditor = new Quill('.basic-wrapper .editor-container',
modules:
authorship: { authorId: 'basic' }
toolbar: { container: '.basic-wrapper .toolbar-container' }
styles: false
)
advancedEditor = new Quill('.advanced-wrapper .editor-container',
modules:
'authorship': { au... | 29906 | _ = Quill.require('lodash')
basicEditor = new Quill('.basic-wrapper .editor-container',
modules:
authorship: { authorId: '<NAME>' }
toolbar: { container: '.basic-wrapper .toolbar-container' }
styles: false
)
advancedEditor = new Quill('.advanced-wrapper .editor-container',
modules:
'authorship': { a... | true | _ = Quill.require('lodash')
basicEditor = new Quill('.basic-wrapper .editor-container',
modules:
authorship: { authorId: 'PI:NAME:<NAME>END_PI' }
toolbar: { container: '.basic-wrapper .toolbar-container' }
styles: false
)
advancedEditor = new Quill('.advanced-wrapper .editor-container',
modules:
'au... |
[
{
"context": "#\n# Ethan Mick\n# 2015\n#\n\nmongoose = require('mongoose-q')()\nSche",
"end": 14,
"score": 0.9997891187667847,
"start": 4,
"tag": "NAME",
"value": "Ethan Mick"
}
] | lib/models/solar_system.coffee | ethanmick/mustached-octo-dubstep | 0 | #
# Ethan Mick
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
SolarSystem = new Schema
name:
type: String
location: Number
slots: Number
planets: [
{
type: ObjectId
ref: 'Planet'
}
]
galaxy:
type: ObjectId
ref: 'Galaxy'... | 112403 | #
# <NAME>
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
SolarSystem = new Schema
name:
type: String
location: Number
slots: Number
planets: [
{
type: ObjectId
ref: 'Planet'
}
]
galaxy:
type: ObjectId
ref: 'Galaxy'
mo... | true | #
# PI:NAME:<NAME>END_PI
# 2015
#
mongoose = require('mongoose-q')()
Schema = mongoose.Schema
ObjectId = Schema.Types.ObjectId
SolarSystem = new Schema
name:
type: String
location: Number
slots: Number
planets: [
{
type: ObjectId
ref: 'Planet'
}
]
galaxy:
type: ObjectId
ref... |
[
{
"context": "\n localStorage = _localStorage_\n key = 'test.memory.key'\n\n it 'sets/gets Item', ->\n value = 'What",
"end": 632,
"score": 0.9199728965759277,
"start": 617,
"tag": "KEY",
"value": "test.memory.key"
},
{
"context": "torage functions to handle data', ... | h/static/scripts/test/local-storage-test.coffee | noscripter/h | 0 | {module, inject} = angular.mock
describe 'localStorage', ->
fakeWindow = null
sandbox = null
before ->
angular.module('h', [])
.service('localStorage', require('../local-storage'))
beforeEach module('h')
describe 'memory fallback', ->
localStorage = null
key = null
beforeEach module (... | 32815 | {module, inject} = angular.mock
describe 'localStorage', ->
fakeWindow = null
sandbox = null
before ->
angular.module('h', [])
.service('localStorage', require('../local-storage'))
beforeEach module('h')
describe 'memory fallback', ->
localStorage = null
key = null
beforeEach module (... | true | {module, inject} = angular.mock
describe 'localStorage', ->
fakeWindow = null
sandbox = null
before ->
angular.module('h', [])
.service('localStorage', require('../local-storage'))
beforeEach module('h')
describe 'memory fallback', ->
localStorage = null
key = null
beforeEach module (... |
[
{
"context": "nce.pdf\n# http://yihui.name/knitr/options/\n\nkey: 'rmarkdown'\npatterns: [\n {\n begin: '(?x)\n (```)(\n ",
"end": 185,
"score": 0.7625868916511536,
"start": 176,
"tag": "KEY",
"value": "rmarkdown"
}
] | grammars/repositories/flavors/rmarkdown.cson | wesleyem/language-markdown | 0 | # http://rmarkdown.rstudio.com/authoring_rcodechunks.html
# http://www.rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf
# http://yihui.name/knitr/options/
key: 'rmarkdown'
patterns: [
{
begin: '(?x)
(```)(
(\\{)(r)(?:\\s)?
(?:([a-zA-Z0-9|_|-]*)(?=[\\s|,|}])\\s?)?
([^\\... | 41820 | # http://rmarkdown.rstudio.com/authoring_rcodechunks.html
# http://www.rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf
# http://yihui.name/knitr/options/
key: '<KEY>'
patterns: [
{
begin: '(?x)
(```)(
(\\{)(r)(?:\\s)?
(?:([a-zA-Z0-9|_|-]*)(?=[\\s|,|}])\\s?)?
([^\\}]*)... | true | # http://rmarkdown.rstudio.com/authoring_rcodechunks.html
# http://www.rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf
# http://yihui.name/knitr/options/
key: 'PI:KEY:<KEY>END_PI'
patterns: [
{
begin: '(?x)
(```)(
(\\{)(r)(?:\\s)?
(?:([a-zA-Z0-9|_|-]*)(?=[\\s|,|}])\\s?)?
... |
[
{
"context": "entry\n\n unless result\n result = {name: name, data: []}\n series.push result\n retur",
"end": 2059,
"score": 0.6281265616416931,
"start": 2055,
"tag": "NAME",
"value": "name"
}
] | server/sales-force/adapters/grouper.coffee | JSSolutions/Dataforce | 2 | #todo: update this adapter for new data structures
class DataGrouper
constructor: (@chart, data) ->
@series = {}
getDimension2Value = (entry) =>
if @_is2Dimensional() then entry[@chart.axis.dimension2] else @chart.axis.dimension
data.forEach (entry) =>
dimensionValue = entry[@chart.axis.dime... | 55641 | #todo: update this adapter for new data structures
class DataGrouper
constructor: (@chart, data) ->
@series = {}
getDimension2Value = (entry) =>
if @_is2Dimensional() then entry[@chart.axis.dimension2] else @chart.axis.dimension
data.forEach (entry) =>
dimensionValue = entry[@chart.axis.dime... | true | #todo: update this adapter for new data structures
class DataGrouper
constructor: (@chart, data) ->
@series = {}
getDimension2Value = (entry) =>
if @_is2Dimensional() then entry[@chart.axis.dimension2] else @chart.axis.dimension
data.forEach (entry) =>
dimensionValue = entry[@chart.axis.dime... |
[
{
"context": "onsole.log goats\n\n goat = find(propEq('name', 'Jade'), goats)\n\n should.exist goats\n goats.shoul",
"end": 737,
"score": 0.8205804824829102,
"start": 733,
"tag": "NAME",
"value": "Jade"
},
{
"context": "goat.should.have.property('name').which.is.equal('Dolly... | test/server/livestockService/test.coffee | blakeschwartz/rowdyranchtx-3.1 | 0 | #
# This is a file of template tests.
#
#
chai = require 'chai'
ramda = require 'ramda'
assert = chai.assert
should = chai.should()
find = ramda.find
propEq = ramda.propEq
Service = require('../../../dist/server/service/livestock/service').default
describe 'LivestockService Test', ->
service = null
before ->... | 68689 | #
# This is a file of template tests.
#
#
chai = require 'chai'
ramda = require 'ramda'
assert = chai.assert
should = chai.should()
find = ramda.find
propEq = ramda.propEq
Service = require('../../../dist/server/service/livestock/service').default
describe 'LivestockService Test', ->
service = null
before ->... | true | #
# This is a file of template tests.
#
#
chai = require 'chai'
ramda = require 'ramda'
assert = chai.assert
should = chai.should()
find = ramda.find
propEq = ramda.propEq
Service = require('../../../dist/server/service/livestock/service').default
describe 'LivestockService Test', ->
service = null
before ->... |
[
{
"context": "# Copyright 2010-2019 Dan Elliott, Russell Valentine\n#\n# Licensed under the Apach",
"end": 35,
"score": 0.9998136162757874,
"start": 24,
"tag": "NAME",
"value": "Dan Elliott"
},
{
"context": "# Copyright 2010-2019 Dan Elliott, Russell Valentine\n#\n# Licensed ... | clients/www/src/coffee/isadore_graphs/TimeGraph.coffee | bluthen/isadore_server | 0 | # Copyright 2010-2019 Dan Elliott, Russell Valentine
#
# 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 appl... | 59106 | # Copyright 2010-2019 <NAME>, <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 ag... | true | # Copyright 2010-2019 PI:NAME:<NAME>END_PI, 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 requ... |
[
{
"context": "e = QUnit.module\n\n\tdataOrig = [\n\t {id: 1, name: 'John'},\n\t {id: 2, name: 'Sarah'}\n\t]\n\n\tcompareData = (",
"end": 98,
"score": 0.9998253583908081,
"start": 94,
"tag": "NAME",
"value": "John"
},
{
"context": "g = [\n\t {id: 1, name: 'John'},\n\t {id: 2, nam... | tests/backend/memory-test.coffee | dundalek/warehouse | 74 |
@run_tests_memory = (constructor) ->
module = QUnit.module
dataOrig = [
{id: 1, name: 'John'},
{id: 2, name: 'Sarah'}
]
compareData = (data) ->
data.sort (a, b) -> a.id - b.id
deepEqual data, dataOrig
testData = (data) ->
backend = new constructor()
store = backend.objectStore('item', {json: dat... | 74222 |
@run_tests_memory = (constructor) ->
module = QUnit.module
dataOrig = [
{id: 1, name: '<NAME>'},
{id: 2, name: '<NAME>'}
]
compareData = (data) ->
data.sort (a, b) -> a.id - b.id
deepEqual data, dataOrig
testData = (data) ->
backend = new constructor()
store = backend.objectStore('item', {json: ... | true |
@run_tests_memory = (constructor) ->
module = QUnit.module
dataOrig = [
{id: 1, name: 'PI:NAME:<NAME>END_PI'},
{id: 2, name: 'PI:NAME:<NAME>END_PI'}
]
compareData = (data) ->
data.sort (a, b) -> a.id - b.id
deepEqual data, dataOrig
testData = (data) ->
backend = new constructor()
store = backend... |
[
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>\nAll rights reserved.\n\nRedistri",
"end": 42,
"score": 0.9998440742492676,
"start": 24,
"tag": "NAME",
"value": "Alexander Cherniuk"
},
{
"context": "###\nCopyright (c) 2013, Alexander Cherniuk <ts33kr@gmai... | library/membrane/linkage.coffee | ts33kr/granite | 6 | ###
Copyright (c) 2013, Alexander Cherniuk <ts33kr@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of co... | 78466 | ###
Copyright (c) 2013, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the foll... | true | ###
Copyright (c) 2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>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:
1. Redistributions of source code must retain the above copyright notice, this
li... |
[
{
"context": "align correctly\", ->\n editor.setText \"a::a::a:1\\nbbb::bbb=ccc:1\"\n editor.selectAll()",
"end": 2566,
"score": 0.7463645339012146,
"start": 2562,
"tag": "IP_ADDRESS",
"value": "a::a"
},
{
"context": " expect(editor.lineTextForBufferRow 0).toEq... | spec/atom-alignment-spec.coffee | papermoon1978/atom-alignment-fork | 0 | Aligner = require '../lib/aligner.coffee'
# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
#
# To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
# or `fdescribe`). Remove the `f` to unfocus the block.
describe "atom-alignment", ->
leftSpaceChars = ['=>', ':... | 139309 | Aligner = require '../lib/aligner.coffee'
# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
#
# To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
# or `fdescribe`). Remove the `f` to unfocus the block.
describe "atom-alignment", ->
leftSpaceChars = ['=>', ':... | true | Aligner = require '../lib/aligner.coffee'
# Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
#
# To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
# or `fdescribe`). Remove the `f` to unfocus the block.
describe "atom-alignment", ->
leftSpaceChars = ['=>', ':... |
[
{
"context": "lcome. Do not hesitate to contact me, my email is: jetic@me.com\n# Refreshing Frequency is set to once every 3000m",
"end": 522,
"score": 0.9999270439147949,
"start": 510,
"tag": "EMAIL",
"value": "jetic@me.com"
},
{
"context": "oard.widget.zip https://raw.githubusercon... | Eva.widget/index.coffee | viridityzhu/Evangelion-Uebersicht-Widget | 0 | Version = "0.X14.4a"
config = {
Magnification: 1.0
BatteryAlertLevel: 20
CPUAlertLevel: 90
Opacity: 0.5
Voice: false
colourIdle: "rgba(50,50,50,1)" # 10,10,10 black
colourWarn: "rgba(256,0,0,1)"
colourDNDS: "rgba(256,96,0,1)"
colourWhit: "rgba(256,256,256,1)"
colourIdleHover: "rg... | 68859 | Version = "0.X14.4a"
config = {
Magnification: 1.0
BatteryAlertLevel: 20
CPUAlertLevel: 90
Opacity: 0.5
Voice: false
colourIdle: "rgba(50,50,50,1)" # 10,10,10 black
colourWarn: "rgba(256,0,0,1)"
colourDNDS: "rgba(256,96,0,1)"
colourWhit: "rgba(256,256,256,1)"
colourIdleHover: "rg... | true | Version = "0.X14.4a"
config = {
Magnification: 1.0
BatteryAlertLevel: 20
CPUAlertLevel: 90
Opacity: 0.5
Voice: false
colourIdle: "rgba(50,50,50,1)" # 10,10,10 black
colourWarn: "rgba(256,0,0,1)"
colourDNDS: "rgba(256,96,0,1)"
colourWhit: "rgba(256,256,256,1)"
colourIdleHover: "rg... |
[
{
"context": "\"\n\tparent: Drawer\n\t\nTitle = new TextLayer\n\ttext: \"John Locke\"\n\tfontFamily: \"Roboto\"\n\tfontWeight: 700\n\tfontSize",
"end": 2030,
"score": 0.9998742938041687,
"start": 2020,
"tag": "NAME",
"value": "John Locke"
},
{
"context": "rent: TopPortion\n\nSubtext ... | Android-Components/Nav Drawer/Drawer.coffee | iamkeeler/UXTOOLTIME-Framer | 4 | plugin.run = (contents, options) ->
"""
#{contents}
# <fold>
#Drawer- hidden until hotspot is tapped
#Change Color Here
primarycolor = "#007cb0"
#Dark transparent screen bg
scrimbg = new Layer
backgroundColor: "rgba(50,50,50,0.50)"
width: Screen.width
height: Screen.height-48
y: Align.top
opacity: 0.0
#scrimb... | 80493 | plugin.run = (contents, options) ->
"""
#{contents}
# <fold>
#Drawer- hidden until hotspot is tapped
#Change Color Here
primarycolor = "#007cb0"
#Dark transparent screen bg
scrimbg = new Layer
backgroundColor: "rgba(50,50,50,0.50)"
width: Screen.width
height: Screen.height-48
y: Align.top
opacity: 0.0
#scrimb... | true | plugin.run = (contents, options) ->
"""
#{contents}
# <fold>
#Drawer- hidden until hotspot is tapped
#Change Color Here
primarycolor = "#007cb0"
#Dark transparent screen bg
scrimbg = new Layer
backgroundColor: "rgba(50,50,50,0.50)"
width: Screen.width
height: Screen.height-48
y: Align.top
opacity: 0.0
#scrimb... |
[
{
"context": "book, you can stop this in your settings page.\", \"Cheers feen\"\n\n generateEmbedCode: (model) ->\n conso",
"end": 293,
"score": 0.9567973613739014,
"start": 282,
"tag": "NAME",
"value": "Cheers feen"
}
] | static/js/dss/lib/social.coffee | fergalmoran/dss | 0 | @social = do ->
postFacebookLike: (mixId) ->
#first off, find if the current user has allowed facebook likes
$.getJSON "social/like/" + mixId + "/", (data) ->
utils.showAlert "Posted your like to facebook, you can stop this in your settings page.", "Cheers feen"
generateEmbedCode: (... | 193803 | @social = do ->
postFacebookLike: (mixId) ->
#first off, find if the current user has allowed facebook likes
$.getJSON "social/like/" + mixId + "/", (data) ->
utils.showAlert "Posted your like to facebook, you can stop this in your settings page.", "<NAME>"
generateEmbedCode: (model... | true | @social = do ->
postFacebookLike: (mixId) ->
#first off, find if the current user has allowed facebook likes
$.getJSON "social/like/" + mixId + "/", (data) ->
utils.showAlert "Posted your like to facebook, you can stop this in your settings page.", "PI:NAME:<NAME>END_PI"
generateEmb... |
[
{
"context": " not have an unsupported ARIA attribute.\n# @author Ethan Cohen\n###\n\n# ------------------------------------------",
"end": 135,
"score": 0.9998686909675598,
"start": 124,
"tag": "NAME",
"value": "Ethan Cohen"
}
] | src/tests/rules/role-supports-aria-props.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview Enforce that an element does not have an unsupported ARIA attribute.
# @author Ethan Cohen
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
pat... | 33021 | ### eslint-env jest ###
###*
# @fileoverview Enforce that an element does not have an unsupported ARIA attribute.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = r... | true | ### eslint-env jest ###
###*
# @fileoverview Enforce that an element does not have an unsupported ARIA attribute.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# -------------------------------------------------------------------------... |
[
{
"context": "###\n * cena_auth\n * https://github.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan Gaus\n * Li",
"end": 46,
"score": 0.9972999691963196,
"start": 39,
"tag": "USERNAME",
"value": "1egoman"
},
{
"context": "thub.com/1egoman/cena_app\n *\n * Copyright (c) 2015 Ryan ... | src/auth_setup.coffee | 1egoman/cena_app | 0 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 Ryan Gaus
* Licensed under the MIT license.
###
'use strict';
passport = require "passport"
User = require "./models/user"
module.exports = (app) ->
# add passport middleware
app.use passport.initialize()
app.use passport.session... | 109195 | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 <NAME>
* Licensed under the MIT license.
###
'use strict';
passport = require "passport"
User = require "./models/user"
module.exports = (app) ->
# add passport middleware
app.use passport.initialize()
app.use passport.session()
... | true | ###
* cena_auth
* https://github.com/1egoman/cena_app
*
* Copyright (c) 2015 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
'use strict';
passport = require "passport"
User = require "./models/user"
module.exports = (app) ->
# add passport middleware
app.use passport.initialize()
app.use passp... |
[
{
"context": "rce.indexOf(orig_body)\nnew_body_patch = \"{return 'Capybara';\" + \" ",
"end": 2913,
"score": 0.9894013404846191,
"start": 2905,
"tag": "NAME",
"value": "Capybara"
},
{
"context": "oOp\nCallM NoOp\nres = CallM(Changer)\nassertE... | deps/v8/test/mjsunit/debug-liveedit-patch-positions-replace.coffee | lxe/io.coffee | 0 | # Copyright 2010 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 102844 | # Copyright 2010 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... | true | # Copyright 2010 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditi... |
[
{
"context": "t.email' : 'email'\n 'keyup input.password': 'password'\n render: ->\n App.router.clearActive($('heade",
"end": 232,
"score": 0.9993804693222046,
"start": 224,
"tag": "PASSWORD",
"value": "password"
}
] | app/views/register-page.coffee | RelistenNet/relisten.net-original | 2 | { validateEmail } = App.utils.validate
class App.Views.RegisterPage extends App.Views.View
className: 'register-page'
template: JST['register']
events:
'keyup input.email' : 'email'
'keyup input.password': 'password'
render: ->
App.router.clearActive($('header .register'))
if window.location.... | 35847 | { validateEmail } = App.utils.validate
class App.Views.RegisterPage extends App.Views.View
className: 'register-page'
template: JST['register']
events:
'keyup input.email' : 'email'
'keyup input.password': '<PASSWORD>'
render: ->
App.router.clearActive($('header .register'))
if window.locatio... | true | { validateEmail } = App.utils.validate
class App.Views.RegisterPage extends App.Views.View
className: 'register-page'
template: JST['register']
events:
'keyup input.email' : 'email'
'keyup input.password': 'PI:PASSWORD:<PASSWORD>END_PI'
render: ->
App.router.clearActive($('header .register'))
... |
[
{
"context": " user: ftpdetails.username\n pass: ftpdetails.password\n port: ftpdetails.port\n ",
"end": 4688,
"score": 0.9989939332008362,
"start": 4669,
"tag": "PASSWORD",
"value": "ftpdetails.password"
}
] | lib/ftpclass.coffee | theproducer/ftp | 0 | File = require("pathwatcher").File
Directory = require("pathwatcher").Directory
Chokidar = require 'chokidar'
fs = require 'fs'
jsftp = require 'jsftp'
{Subscriber} = require 'emissary'
FtpSettingsView = require "./ftp-settings-view"
FtpStatusView = require "./ftp-status-view"
module.exports =
class Ftp
Subscribe... | 113595 | File = require("pathwatcher").File
Directory = require("pathwatcher").Directory
Chokidar = require 'chokidar'
fs = require 'fs'
jsftp = require 'jsftp'
{Subscriber} = require 'emissary'
FtpSettingsView = require "./ftp-settings-view"
FtpStatusView = require "./ftp-status-view"
module.exports =
class Ftp
Subscribe... | true | File = require("pathwatcher").File
Directory = require("pathwatcher").Directory
Chokidar = require 'chokidar'
fs = require 'fs'
jsftp = require 'jsftp'
{Subscriber} = require 'emissary'
FtpSettingsView = require "./ftp-settings-view"
FtpStatusView = require "./ftp-status-view"
module.exports =
class Ftp
Subscribe... |
[
{
"context": "[\n {\n name : \"Lorem Ispum\",\n text : \"Lorem ipsum dolor sit amet, consect",
"end": 29,
"score": 0.999890148639679,
"start": 18,
"tag": "NAME",
"value": "Lorem Ispum"
},
{
"context": "tpat. Maecenas feugiat, mi.\"\n },\n {\n name : \"Samuel L. Ipsum\",\n... | data/data.cson | Nonameghost/atom-placeholder-text | 2 | [
{
name : "Lorem Ispum",
text : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut ligula dui. Maecenas in sapien cursus, condimentum nulla vitae, pellentesque metus. Sed accumsan tellus et molestie volutpat. Maecenas feugiat, mi."
},
{
name : "Samuel L. Ipsum",
text : "The path o... | 213699 | [
{
name : "<NAME>",
text : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut ligula dui. Maecenas in sapien cursus, condimentum nulla vitae, pellentesque metus. Sed accumsan tellus et molestie volutpat. Maecenas feugiat, mi."
},
{
name : "<NAME>",
text : "The path of the righteou... | true | [
{
name : "PI:NAME:<NAME>END_PI",
text : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut ligula dui. Maecenas in sapien cursus, condimentum nulla vitae, pellentesque metus. Sed accumsan tellus et molestie volutpat. Maecenas feugiat, mi."
},
{
name : "PI:NAME:<NAME>END_PI",
text... |
[
{
"context": " * <tbody>\n * <tr>\n * <td>John</td>\n * <td>Male</td>\n * </tr>\n",
"end": 9996,
"score": 0.9995545744895935,
"start": 9992,
"tag": "NAME",
"value": "John"
},
{
"context": " <tr>\n * <th>Name</th>\n * <td>J... | src/testing/findable.coffee | ohsu-qin/qiprofile | 0 | _ = require 'lodash'
webdriver = require 'selenium-webdriver'
expect = require('./expect')()
require './object'
###*
* The WebElement extension for finding subelements.
*
* @module testing
* @class Findable
###
class Findable
###*
* Finds the element with the given search selection chain.
* Each selector i... | 31100 | _ = require 'lodash'
webdriver = require 'selenium-webdriver'
expect = require('./expect')()
require './object'
###*
* The WebElement extension for finding subelements.
*
* @module testing
* @class Findable
###
class Findable
###*
* Finds the element with the given search selection chain.
* Each selector i... | true | _ = require 'lodash'
webdriver = require 'selenium-webdriver'
expect = require('./expect')()
require './object'
###*
* The WebElement extension for finding subelements.
*
* @module testing
* @class Findable
###
class Findable
###*
* Finds the element with the given search selection chain.
* Each selector i... |
[
{
"context": " = new Sections [\n {\n body: \"<p>==Alice== was ==brave==</p>\"\n type: \"text\"\n ",
"end": 2520,
"score": 0.9992608428001404,
"start": 2515,
"tag": "NAME",
"value": "Alice"
},
{
"context": "\"text\"\n },\n {\n body:... | src/client/apps/edit/components/layout/test/index.coffee | craigspaeth/positron | 76 | _ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
Article = require '../../../../../models/article.coffee'
Channel = require '../../../../../models/channel'
Sections = require '../../../../../collections/sections'
Backbone = require 'backbone'
fixtures = require '../../../../../../test/helpers/fixt... | 185445 | _ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
Article = require '../../../../../models/article.coffee'
Channel = require '../../../../../models/channel'
Sections = require '../../../../../collections/sections'
Backbone = require 'backbone'
fixtures = require '../../../../../../test/helpers/fixt... | true | _ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
Article = require '../../../../../models/article.coffee'
Channel = require '../../../../../models/channel'
Sections = require '../../../../../collections/sections'
Backbone = require 'backbone'
fixtures = require '../../../../../../test/helpers/fixt... |
[
{
"context": "ges': (test) ->\n message = \"<message from='thing@clayster.com/imc'\n to='discovery.clayster.com'\n ",
"end": 1308,
"score": 0.9973559975624084,
"start": 1290,
"tag": "EMAIL",
"value": "thing@clayster.com"
},
{
"context": " message = \"<iq type='... | test/processor.test.coffee | TNO-IoT/ekster | 3 | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
Processor = require '../src/processor.coffee'
Backend = require '../src/backend.coffee'
Thing = require '../src/thing.coffe... | 197849 | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
Processor = require '../src/processor.coffee'
Backend = require '../src/backend.coffee'
Thing = require '../src/thing.coffe... | true | # Tests if the server component complies to
# https://xmpp.org/extensions/xep-0347.html
#
# Some test cases refer to paragraphs and / or examples from the spec.
{EventEmitter} = require 'events'
Processor = require '../src/processor.coffee'
Backend = require '../src/backend.coffee'
Thing = require '../src/thing.coffe... |
[
{
"context": "rm'\nFIELD_MAIL = 'mail'\nFIELD_PASS = 'pass[pass1]'\nFIELD_PASS_2 = 'pass[pass2]'\nFIELD_FIRST_NAME",
"end": 221,
"score": 0.8907308578491211,
"start": 211,
"tag": "PASSWORD",
"value": "pass[pass1"
},
{
"context": "LD_PASS = 'pass[pass1]'\nFIELD_P... | tests/integration/uk/sso.coffee | jonuy/dosomething | 1 | # SSO
# Sometimes SSO server response takes long.
casper.options.waitTimeout = 10000
# Constants.
AGE_TOO_OLD = 25
# Form selectors.
FORM = '#user-register-form'
FIELD_MAIL = 'mail'
FIELD_PASS = 'pass[pass1]'
FIELD_PASS_2 = 'pass[pass2]'
FIELD_FIRST_NAME = 'field_first_name[und][0][value]'
FIELD_LAST... | 50512 | # SSO
# Sometimes SSO server response takes long.
casper.options.waitTimeout = 10000
# Constants.
AGE_TOO_OLD = 25
# Form selectors.
FORM = '#user-register-form'
FIELD_MAIL = 'mail'
FIELD_PASS = '<PASSWORD>]'
FIELD_PASS_2 = '<PASSWORD>[<PASSWORD>]'
FIELD_FIRST_NAME = 'field_first_name[und][0][value]'... | true | # SSO
# Sometimes SSO server response takes long.
casper.options.waitTimeout = 10000
# Constants.
AGE_TOO_OLD = 25
# Form selectors.
FORM = '#user-register-form'
FIELD_MAIL = 'mail'
FIELD_PASS = 'PI:PASSWORD:<PASSWORD>END_PI]'
FIELD_PASS_2 = 'PI:PASSWORD:<PASSWORD>END_PI[PI:PASSWORD:<PASSWORD>END_PI]... |
[
{
"context": "nt = 0\n\nmakeSelection = ->\n\n Account.one email: 'user123@koding.me', (err, account)->\n throw err if err\n \n ",
"end": 227,
"score": 0.9999151229858398,
"start": 210,
"tag": "EMAIL",
"value": "user123@koding.me"
},
{
"context": "Account\n nickname: \... | node_modules_koding/jraphical/examples/graphlet/index.coffee | ezgikaysi/koding | 1 | bongo = require 'bongo'
{Graphlet,Relationship} = require '../../lib'
{Account,Message,Reply} = require './models'
bongo.setClient 'localhost:27017/test'
count = 0
makeSelection = ->
Account.one email: 'user123@koding.me', (err, account)->
throw err if err
account?.beginGraphlet()
.edges
... | 14551 | bongo = require 'bongo'
{Graphlet,Relationship} = require '../../lib'
{Account,Message,Reply} = require './models'
bongo.setClient 'localhost:27017/test'
count = 0
makeSelection = ->
Account.one email: '<EMAIL>', (err, account)->
throw err if err
account?.beginGraphlet()
.edges
qu... | true | bongo = require 'bongo'
{Graphlet,Relationship} = require '../../lib'
{Account,Message,Reply} = require './models'
bongo.setClient 'localhost:27017/test'
count = 0
makeSelection = ->
Account.one email: 'PI:EMAIL:<EMAIL>END_PI', (err, account)->
throw err if err
account?.beginGraphlet()
.edg... |
[
{
"context": "###\nlogin.coffee\nCopyright (C) 2014 ender xu <xuender@gmail.com>\n\nDistributed under terms of t",
"end": 44,
"score": 0.9994895458221436,
"start": 36,
"tag": "NAME",
"value": "ender xu"
},
{
"context": "###\nlogin.coffee\nCopyright (C) 2014 ender xu <xuender@gmail.co... | src/web/loginCtrl.coffee | xuender/mindfulness | 0 | ###
login.coffee
Copyright (C) 2014 ender xu <xuender@gmail.com>
Distributed under terms of the MIT license.
###
LoginCtrl = ($scope, $http, $log, $modalInstance, m, cid)->
### 登录控制 ###
$scope.old = false
$scope.user =
phone: ''
password: ''
m: m
CaptchaId: cid
Solution: ''
$scope.img = "/c... | 163641 | ###
login.coffee
Copyright (C) 2014 <NAME> <<EMAIL>>
Distributed under terms of the MIT license.
###
LoginCtrl = ($scope, $http, $log, $modalInstance, m, cid)->
### 登录控制 ###
$scope.old = false
$scope.user =
phone: ''
password: ''
m: m
CaptchaId: cid
Solution: ''
$scope.img = "/captcha/img/#... | true | ###
login.coffee
Copyright (C) 2014 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
Distributed under terms of the MIT license.
###
LoginCtrl = ($scope, $http, $log, $modalInstance, m, cid)->
### 登录控制 ###
$scope.old = false
$scope.user =
phone: ''
password: ''
m: m
CaptchaId: cid
Solution: ''
... |
[
{
"context": "###\n * @author \t\tAbdelhakim RAFIK\n * @version \tv1.0.1\n * @license \tMIT License\n * @",
"end": 33,
"score": 0.9998908638954163,
"start": 17,
"tag": "NAME",
"value": "Abdelhakim RAFIK"
},
{
"context": "nse \tMIT License\n * @copyright \tCopyright (c) 2021 Abdelhaki... | src/database/seeders/demo-data.coffee | AbdelhakimRafik/Project | 1 | ###
* @author Abdelhakim RAFIK
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 Abdelhakim RAFIK
* @date June 2021
###
userManufacture = require './manufactures/users'
articleManufacure = require './manufactures/articles'
tagsManufature = require './manufactures/tags'
article... | 153529 | ###
* @author <NAME>
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 <NAME>
* @date June 2021
###
userManufacture = require './manufactures/users'
articleManufacure = require './manufactures/articles'
tagsManufature = require './manufactures/tags'
articleTagsManufature = re... | true | ###
* @author PI:NAME:<NAME>END_PI
* @version v1.0.1
* @license MIT License
* @copyright Copyright (c) 2021 PI:NAME:<NAME>END_PI
* @date June 2021
###
userManufacture = require './manufactures/users'
articleManufacure = require './manufactures/articles'
tagsManufature = require './manufactures/tags'... |
[
{
"context": "470, 15, align: 'right', width: 75\n @doc.text 'support@toggl.com', 470, 25, align: 'right', width: 75\n @doc.rec",
"end": 1240,
"score": 0.9999224543571472,
"start": 1223,
"tag": "EMAIL",
"value": "support@toggl.com"
}
] | app/invoice.coffee | meeDamian/toggl-pdf | 1 | PDFDocument = require 'pdfkit'
moment = require 'moment'
util = require 'util'
class Invoice
@PAGE_WIDTH = 595
constructor: (@data) ->
@doc = new PDFDocument size: 'A4'
@initFonts()
@LEFT = 35
initFonts: ->
@doc.registerFont('FontRegular', __dirname + '/fonts/NotoSans-Regular.ttf', '... | 21073 | PDFDocument = require 'pdfkit'
moment = require 'moment'
util = require 'util'
class Invoice
@PAGE_WIDTH = 595
constructor: (@data) ->
@doc = new PDFDocument size: 'A4'
@initFonts()
@LEFT = 35
initFonts: ->
@doc.registerFont('FontRegular', __dirname + '/fonts/NotoSans-Regular.ttf', '... | true | PDFDocument = require 'pdfkit'
moment = require 'moment'
util = require 'util'
class Invoice
@PAGE_WIDTH = 595
constructor: (@data) ->
@doc = new PDFDocument size: 'A4'
@initFonts()
@LEFT = 35
initFonts: ->
@doc.registerFont('FontRegular', __dirname + '/fonts/NotoSans-Regular.ttf', '... |
[
{
"context": " username: process.env.DB_DEV_USER\n password: process.env.DB_DEV_PASSWORD\n database: process.env.DB_DEV_DATABASE\n ",
"end": 561,
"score": 0.9942550659179688,
"start": 534,
"tag": "PASSWORD",
"value": "process.env.DB_DEV_PASSWORD"
},
{
"context": "userna... | lib/config.coffee | rayshan/bower-server-etl | 1 | url = require 'url'
# ==========
# ask repo owner for GA Service Account key.pem & foreman .env file; place into project root
config =
development:
port: 3000
apiBaseUri: '/api/1'
ga:
clientEmail: process.env.APP_GA_CLIENT_EMAIL
privateKeyPath: "../gaServiceAcctKeyDev.pem"
profile: '7... | 174810 | url = require 'url'
# ==========
# ask repo owner for GA Service Account key.pem & foreman .env file; place into project root
config =
development:
port: 3000
apiBaseUri: '/api/1'
ga:
clientEmail: process.env.APP_GA_CLIENT_EMAIL
privateKeyPath: "../gaServiceAcctKeyDev.pem"
profile: '7... | true | url = require 'url'
# ==========
# ask repo owner for GA Service Account key.pem & foreman .env file; place into project root
config =
development:
port: 3000
apiBaseUri: '/api/1'
ga:
clientEmail: process.env.APP_GA_CLIENT_EMAIL
privateKeyPath: "../gaServiceAcctKeyDev.pem"
profile: '7... |
[
{
"context": "st from the Uber API\nuberInfo = () ->\n\tAPI_key = '1TTcGJNB_ltPhjaH0Lp1oHjypAYSFFxrwmhncRDi'\n\tlat = '40.4406'\n\tlng = '-79.9959'\n\tproxy = 'htt",
"end": 135,
"score": 0.9997354745864868,
"start": 95,
"tag": "KEY",
"value": "1TTcGJNB_ltPhjaH0Lp1oHjypAYSFFxrwmhncRDi"
}
] | public/js/uber.coffee | pschfr/dashboard | 1 | # Gets surge pricing, wait times, and est. cost from the Uber API
uberInfo = () ->
API_key = '1TTcGJNB_ltPhjaH0Lp1oHjypAYSFFxrwmhncRDi'
lat = '40.4406'
lng = '-79.9959'
proxy = 'https://paulmakesthe.net/ba-simple-proxy.php'
uberURL = 'https://api.uber.com/v1.2/estimates/time?start_latitude=' + lat + '&start_longit... | 25214 | # Gets surge pricing, wait times, and est. cost from the Uber API
uberInfo = () ->
API_key = '<KEY>'
lat = '40.4406'
lng = '-79.9959'
proxy = 'https://paulmakesthe.net/ba-simple-proxy.php'
uberURL = 'https://api.uber.com/v1.2/estimates/time?start_latitude=' + lat + '&start_longitude=' + lng
xhr = new XMLHttpReque... | true | # Gets surge pricing, wait times, and est. cost from the Uber API
uberInfo = () ->
API_key = 'PI:KEY:<KEY>END_PI'
lat = '40.4406'
lng = '-79.9959'
proxy = 'https://paulmakesthe.net/ba-simple-proxy.php'
uberURL = 'https://api.uber.com/v1.2/estimates/time?start_latitude=' + lat + '&start_longitude=' + lng
xhr = new... |
[
{
"context": "\n type: false\n name: name\n actual: \"unknown\"\n ",
"end": 10592,
"score": 0.8656387329101562,
"start": 10588,
"tag": "NAME",
"value": "name"
}
] | src/5.test.1.coffee | zhanzhenzhen/wishlist | 0 | ###
In `wishlist.Test`, the `wishes` property contains only separated wishes
(i.e. not including those defined and checked in a test function), but
the `wishResults` property includes results for all wishes.
Test names can be duplicate. Wish names can also be duplicate.
Restriction: On browser it doesn't work well with... | 185557 | ###
In `wishlist.Test`, the `wishes` property contains only separated wishes
(i.e. not including those defined and checked in a test function), but
the `wishResults` property includes results for all wishes.
Test names can be duplicate. Wish names can also be duplicate.
Restriction: On browser it doesn't work well with... | true | ###
In `wishlist.Test`, the `wishes` property contains only separated wishes
(i.e. not including those defined and checked in a test function), but
the `wishResults` property includes results for all wishes.
Test names can be duplicate. Wish names can also be duplicate.
Restriction: On browser it doesn't work well with... |
[
{
"context": " User\n\tconstructor: (options = {}) ->\n\t\t@email = \"acceptance-test-#{count}@example.com\"\n\t\t@password = \"acceptance-test-#{count}-password",
"end": 246,
"score": 0.9998282790184021,
"start": 210,
"tag": "EMAIL",
"value": "acceptance-test-#{count}@example.com"
},
{
... | test/acceptance/coffee/helpers/User.coffee | watercrossing/web-sharelatex | 0 | request = require("./request")
settings = require("settings-sharelatex")
{db, ObjectId} = require("../../../../app/js/infrastructure/mongojs")
count = 0
class User
constructor: (options = {}) ->
@email = "acceptance-test-#{count}@example.com"
@password = "acceptance-test-#{count}-password"
count++
@jar = req... | 195669 | request = require("./request")
settings = require("settings-sharelatex")
{db, ObjectId} = require("../../../../app/js/infrastructure/mongojs")
count = 0
class User
constructor: (options = {}) ->
@email = "<EMAIL>"
@password = "<PASSWORD>"
count++
@jar = request.jar()
@request = request.defaults({
jar: @... | true | request = require("./request")
settings = require("settings-sharelatex")
{db, ObjectId} = require("../../../../app/js/infrastructure/mongojs")
count = 0
class User
constructor: (options = {}) ->
@email = "PI:EMAIL:<EMAIL>END_PI"
@password = "PI:PASSWORD:<PASSWORD>END_PI"
count++
@jar = request.jar()
@reque... |
[
{
"context": "# turn on stats\n\n model = new kb.Model({name: 'Bob'})\n instance = {}\n assert.equal(kb.utils.wr",
"end": 1011,
"score": 0.9989756345748901,
"start": 1008,
"tag": "NAME",
"value": "Bob"
},
{
"context": " view_model = kb.viewModel(new kb.Model({name: 'Bob'})... | test/spec/core/utils.tests.coffee | metacommunications/knockback | 160 | assert = assert or require?('chai').assert
describe 'knockback_core utils @quick @utils', ->
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= require?('../../../knockback')
{_, ko} = kb
it 'TEST DEPENDENCY MISSING', (done) ->
assert.ok(!!ko, 'ko')
assert.ok(!!_, '_')
assert.ok(!!... | 132850 | assert = assert or require?('chai').assert
describe 'knockback_core utils @quick @utils', ->
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= require?('../../../knockback')
{_, ko} = kb
it 'TEST DEPENDENCY MISSING', (done) ->
assert.ok(!!ko, 'ko')
assert.ok(!!_, '_')
assert.ok(!!... | true | assert = assert or require?('chai').assert
describe 'knockback_core utils @quick @utils', ->
kb = window?.kb; try kb or= require?('knockback') catch; try kb or= require?('../../../knockback')
{_, ko} = kb
it 'TEST DEPENDENCY MISSING', (done) ->
assert.ok(!!ko, 'ko')
assert.ok(!!_, '_')
assert.ok(!!... |
[
{
"context": "{\n name: 'SingleBaron'\n requires: ['Baron']\n gainPriority: (state, my",
"end": 22,
"score": 0.9801579117774963,
"start": 11,
"tag": "NAME",
"value": "SingleBaron"
}
] | strategies/SingleBaron.coffee | rspeer/dominiate | 65 | {
name: 'SingleBaron'
requires: ['Baron']
gainPriority: (state, my) -> [
"Colony" if my.countInDeck("Platinum") > 0
"Province" if state.countInSupply("Colony") <= 6
"Duchy" if state.gainsToEndGame() <= 5
"Estate" if state.gainsToEndGame() <= 2
"Platinum"
"Gold"
"Baron" if my.countInDec... | 127495 | {
name: '<NAME>'
requires: ['Baron']
gainPriority: (state, my) -> [
"Colony" if my.countInDeck("Platinum") > 0
"Province" if state.countInSupply("Colony") <= 6
"Duchy" if state.gainsToEndGame() <= 5
"Estate" if state.gainsToEndGame() <= 2
"Platinum"
"Gold"
"Baron" if my.countInDeck("Ba... | true | {
name: 'PI:NAME:<NAME>END_PI'
requires: ['Baron']
gainPriority: (state, my) -> [
"Colony" if my.countInDeck("Platinum") > 0
"Province" if state.countInSupply("Colony") <= 6
"Duchy" if state.gainsToEndGame() <= 5
"Estate" if state.gainsToEndGame() <= 2
"Platinum"
"Gold"
"Baron" if my.c... |
[
{
"context": "Rest rsmq\n\nThe MIT License (MIT)\n\nCopyright © 2013 Patrick Liess, http://www.tcs.de\n\nPermission is hereby granted,",
"end": 68,
"score": 0.9997957348823547,
"start": 55,
"tag": "NAME",
"value": "Patrick Liess"
}
] | app.coffee | floleuerer/rest-rsmq | 45 | ###
Rest rsmq
The MIT License (MIT)
Copyright © 2013 Patrick Liess, http://www.tcs.de
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... | 213663 | ###
Rest rsmq
The MIT License (MIT)
Copyright © 2013 <NAME>, http://www.tcs.de
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... | true | ###
Rest rsmq
The MIT License (MIT)
Copyright © 2013 PI:NAME:<NAME>END_PI, http://www.tcs.de
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... |
[
{
"context": " : \"email\"\n \"#password\" : \"password\"\n \"#twitter_handle\" : \"twitter_handle\"\n ",
"end": 599,
"score": 0.999453067779541,
"start": 591,
"tag": "PASSWORD",
"value": "password"
},
{
"context": " : \"password\"\n \"#twit... | frontend/app/modules/person/create/PersonCreate.coffee | ry-battuta/battuta-book | 0 | @App.module "PersonApp.New", (New, App, Backbone, Marionette, $, _) ->
Controller =
new: (region) ->
console.log("person:create called")
person = App.request("person:entities:create")
personView = new Person(
model: person
)
region.show personView
class Person extends Mar... | 143684 | @App.module "PersonApp.New", (New, App, Backbone, Marionette, $, _) ->
Controller =
new: (region) ->
console.log("person:create called")
person = App.request("person:entities:create")
personView = new Person(
model: person
)
region.show personView
class Person extends Mar... | true | @App.module "PersonApp.New", (New, App, Backbone, Marionette, $, _) ->
Controller =
new: (region) ->
console.log("person:create called")
person = App.request("person:entities:create")
personView = new Person(
model: person
)
region.show personView
class Person extends Mar... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9980575442314148,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-http-upgrade-client2.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... | 25739 | # 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": "spired net server echo server example\n#\n# (C) 2011 Tristan Slominski\n#\nanode = require '../lib/anode'\n\n# create a new ",
"end": 110,
"score": 0.9997758269309998,
"start": 93,
"tag": "NAME",
"value": "Tristan Slominski"
}
] | examples/echoserver.example.coffee | tristanls/anodejs | 3 | #
# echoserver.example.coffee : Node.js inspired net server echo server example
#
# (C) 2011 Tristan Slominski
#
anode = require '../lib/anode'
# create a new actor configuration
cnf = new anode.Configuration debug : true
# create the net actor
netServer = cnf.actor 'netServer', anode.net.server_beh()
# create the e... | 143146 | #
# echoserver.example.coffee : Node.js inspired net server echo server example
#
# (C) 2011 <NAME>
#
anode = require '../lib/anode'
# create a new actor configuration
cnf = new anode.Configuration debug : true
# create the net actor
netServer = cnf.actor 'netServer', anode.net.server_beh()
# create the echo server ... | true | #
# echoserver.example.coffee : Node.js inspired net server echo server example
#
# (C) 2011 PI:NAME:<NAME>END_PI
#
anode = require '../lib/anode'
# create a new actor configuration
cnf = new anode.Configuration debug : true
# create the net actor
netServer = cnf.actor 'netServer', anode.net.server_beh()
# create th... |
[
{
"context": "tion module unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\n{Test,should} = require('lovely')\n\nTest.set \"/n",
"end": 86,
"score": 0.9998843669891357,
"start": 69,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/dom/test/element/navigation_test.coffee | lovely-io/lovely.io-stl | 2 | #
# Element navigation module unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
{Test,should} = require('lovely')
Test.set "/navigation.html", """
<html>
<head>
<script src="/core.js"></script>
<script src="/dom.js"></script>
</head>
<body>
<div id="one">
<div class="on... | 116695 | #
# Element navigation module unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
{Test,should} = require('lovely')
Test.set "/navigation.html", """
<html>
<head>
<script src="/core.js"></script>
<script src="/dom.js"></script>
</head>
<body>
<div id="one">
<div class="one">#one .on... | true | #
# Element navigation module unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
{Test,should} = require('lovely')
Test.set "/navigation.html", """
<html>
<head>
<script src="/core.js"></script>
<script src="/dom.js"></script>
</head>
<body>
<div id="one">
<div class=... |
[
{
"context": "etted entry.\n\n Have a look at https://github.com/loveencounterflow/guy-test to see how to use the BNP caller info\n ",
"end": 14734,
"score": 0.9994118809700012,
"start": 14717,
"tag": "USERNAME",
"value": "loveencounterflow"
},
{
"context": "ee different user IDs:\... | src/BITSNPIECES.coffee | loveencounterflow/cnd | 0 |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
njs_util = require 'util'
rpr = njs_util.inspect
CND = require ... | 169165 |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
njs_util = require 'util'
rpr = njs_util.inspect
CND = require ... | true |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
njs_util = require 'util'
rpr = njs_util.inspect
CND = require ... |
[
{
"context": "arr = []\narr.push 'first'\narr.push 'second'\nconsole.log arr\n",
"end": 24,
"score": 0.9378702640533447,
"start": 19,
"tag": "NAME",
"value": "first"
},
{
"context": "arr = []\narr.push 'first'\narr.push 'second'\nconsole.log arr\n",
"end": 42,
"score": 0.8478... | code/coffeescript/array-add.coffee | evmorov/ruby-coffeescript | 29 | arr = []
arr.push 'first'
arr.push 'second'
console.log arr
| 27656 | arr = []
arr.push '<NAME>'
arr.push '<NAME>'
console.log arr
| true | arr = []
arr.push 'PI:NAME:<NAME>END_PI'
arr.push 'PI:NAME:<NAME>END_PI'
console.log arr
|
[
{
"context": "js\n\n PXL.js\n Benjamin Blundell - ben@pxljs.com\n http://pxljs.",
"end": 215,
"score": 0.9998348355293274,
"start": 198,
"tag": "NAME",
"value": "Benjamin Blundell"
},
{
"context": " PXL.js\n ... | src/material/material.coffee | OniDaito/pxljs | 1 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
Benjamin Blundell - ben@pxljs.com
http://pxljs.com
This software is released under the MIT Licenc... | 208277 | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
<NAME> - <EMAIL>
http://pxljs.com
This software is released under the MIT Licence. See LICENCE.tx... | true | ###
.__
_________ __| |
\____ \ \/ / |
| |_> > <| |__
| __/__/\_ \____/
|__| \/ js
PXL.js
PI:NAME:<NAME>END_PI - PI:EMAIL:<EMAIL>END_PI
http://pxljs.com
This software is released under th... |
[
{
"context": "rucigrama JS\n @version 0.1\n @date 2015\n @author Jonathan Montoya\n###\n\nCrucigram = do ->\n\n Crucigram = (props) ->\n",
"end": 74,
"score": 0.9998930096626282,
"start": 58,
"tag": "NAME",
"value": "Jonathan Montoya"
}
] | coffee/crucigram.coffee | jonathanxx/mango-crucigram | 1 | ###
Crucigrama JS
@version 0.1
@date 2015
@author Jonathan Montoya
###
Crucigram = do ->
Crucigram = (props) ->
@originWords = null
@updater = null
@arrWords = []
@score = 0
@mark = props.mark
@attrMark = props.attrMark or 'data-mark'
@clsMark = props.clsMark or 'textMark'
@... | 36807 | ###
Crucigrama JS
@version 0.1
@date 2015
@author <NAME>
###
Crucigram = do ->
Crucigram = (props) ->
@originWords = null
@updater = null
@arrWords = []
@score = 0
@mark = props.mark
@attrMark = props.attrMark or 'data-mark'
@clsMark = props.clsMark or 'textMark'
@words = pr... | true | ###
Crucigrama JS
@version 0.1
@date 2015
@author PI:NAME:<NAME>END_PI
###
Crucigram = do ->
Crucigram = (props) ->
@originWords = null
@updater = null
@arrWords = []
@score = 0
@mark = props.mark
@attrMark = props.attrMark or 'data-mark'
@clsMark = props.clsMark or 'textMark'
... |
[
{
"context": "##\n##\n## Forked from Jeff Mott's CryptoJS\n##\n## https://code.google.com/p/cryp",
"end": 30,
"score": 0.9998633861541748,
"start": 21,
"tag": "NAME",
"value": "Jeff Mott"
},
{
"context": "n implementation of standard AES, forked from \n# [Jeff Mott's CryptoJS](http... | node_modules/triplesec/src/aes.iced | mazodan/mazodan.github.io | 0 | ##
##
## Forked from Jeff Mott's CryptoJS
##
## https://code.google.com/p/crypto-js/
##
{BlockCipher} = require './algbase'
{scrub_vec} = require './util'
#=======================================================================
#
# @private Global
#
# Global state used in all instances of AES, which is either
# imm... | 148032 | ##
##
## Forked from <NAME>'s CryptoJS
##
## https://code.google.com/p/crypto-js/
##
{BlockCipher} = require './algbase'
{scrub_vec} = require './util'
#=======================================================================
#
# @private Global
#
# Global state used in all instances of AES, which is either
# immuta... | true | ##
##
## Forked from PI:NAME:<NAME>END_PI's CryptoJS
##
## https://code.google.com/p/crypto-js/
##
{BlockCipher} = require './algbase'
{scrub_vec} = require './util'
#=======================================================================
#
# @private Global
#
# Global state used in all instances of AES, which is e... |
[
{
"context": "Title\n\n message = \"\"\"\n Username : #{user.username}\n User Agent : #{req.headers['user-agent']",
"end": 1041,
"score": 0.7880478501319885,
"start": 1028,
"tag": "USERNAME",
"value": "user.username"
},
{
"context": " user : key\n ... | servers/lib/server/helpscout.coffee | ezgikaysi/koding | 1 | request = require 'request'
KONFIG = require 'koding-config-manager'
module.exports = (account, req, res) ->
Payment = require '../../../workers/social/lib/social/models/payment'
{ apiKey, baseUrl } = KONFIG.helpscout if KONFIG.helpscout
if not apiKey or not baseUrl
errorText = 'HelpScout is disabled ... | 144493 | request = require 'request'
KONFIG = require 'koding-config-manager'
module.exports = (account, req, res) ->
Payment = require '../../../workers/social/lib/social/models/payment'
{ apiKey, baseUrl } = KONFIG.helpscout if KONFIG.helpscout
if not apiKey or not baseUrl
errorText = 'HelpScout is disabled ... | true | request = require 'request'
KONFIG = require 'koding-config-manager'
module.exports = (account, req, res) ->
Payment = require '../../../workers/social/lib/social/models/payment'
{ apiKey, baseUrl } = KONFIG.helpscout if KONFIG.helpscout
if not apiKey or not baseUrl
errorText = 'HelpScout is disabled ... |
[
{
"context": "()\n return @rowKeys\n\n flattenKey: (x) => x.join(String.fromCharCode(0))\n\n processRecord: (reco",
"end": 9167,
"score": 0.8009117245674133,
"start": 9161,
"tag": "KEY",
"value": "x.join"
},
{
"context": "rowKeys\n\n flattenKey: (x) => x.join(String.f... | pivot.coffee | faheydesign/pivottable | 1 | $ = jQuery
###
Utilities
###
addSeparators = (nStr, thousandsSep, decimalSep) ->
nStr += ''
x = nStr.split('.')
x1 = x[0]
x2 = if x.length > 1 then decimalSep + x[1] else ''
rgx = /(\d+)(\d{3})/
x1 = x1.replace(rgx, '$1' + thousandsSep + '$2') while rgx.test(x1)
return x1 + x2
numberForma... | 139450 | $ = jQuery
###
Utilities
###
addSeparators = (nStr, thousandsSep, decimalSep) ->
nStr += ''
x = nStr.split('.')
x1 = x[0]
x2 = if x.length > 1 then decimalSep + x[1] else ''
rgx = /(\d+)(\d{3})/
x1 = x1.replace(rgx, '$1' + thousandsSep + '$2') while rgx.test(x1)
return x1 + x2
numberForma... | true | $ = jQuery
###
Utilities
###
addSeparators = (nStr, thousandsSep, decimalSep) ->
nStr += ''
x = nStr.split('.')
x1 = x[0]
x2 = if x.length > 1 then decimalSep + x[1] else ''
rgx = /(\d+)(\d{3})/
x1 = x1.replace(rgx, '$1' + thousandsSep + '$2') while rgx.test(x1)
return x1 + x2
numberForma... |
[
{
"context": "y\n clientID: '1901234816764848'\n clientSecret: 'dbd4fab3a392b289aa77826a9e07a08e'\n callbackURL: 'http://notemanapi.seibertsoftwar",
"end": 712,
"score": 0.9903663992881775,
"start": 680,
"tag": "KEY",
"value": "dbd4fab3a392b289aa77826a9e07a08e"
}
] | server/src/routes.coffee | codyseibert/jotit | 1 | app = require './app'
LoginCtrl = require './controllers/login_controller'
UsersCtrl = require './controllers/users_controller'
FeaturesCtrl = require './controllers/features_controller'
userIsLoggedIn = require './helpers/user_is_logged_in'
userOwnsUser = require './helpers/user_owns_user'
passport = require 'passpo... | 161802 | app = require './app'
LoginCtrl = require './controllers/login_controller'
UsersCtrl = require './controllers/users_controller'
FeaturesCtrl = require './controllers/features_controller'
userIsLoggedIn = require './helpers/user_is_logged_in'
userOwnsUser = require './helpers/user_owns_user'
passport = require 'passpo... | true | app = require './app'
LoginCtrl = require './controllers/login_controller'
UsersCtrl = require './controllers/users_controller'
FeaturesCtrl = require './controllers/features_controller'
userIsLoggedIn = require './helpers/user_is_logged_in'
userOwnsUser = require './helpers/user_owns_user'
passport = require 'passpo... |
[
{
"context": "], ({selectedArchives}) =>\n (selectedArchives[@dataset.boardID] or= {})[@dataset.type] = +@value\n Conf['sel",
"end": 14888,
"score": 0.7731806039810181,
"start": 14872,
"tag": "EMAIL",
"value": "@dataset.boardID"
}
] | src/General/Settings.coffee | N3X15/4chan-x | 1 | Settings =
init: ->
# 4chan X settings link
link = $.el 'a',
className: 'settings-link'
textContent: '<%= meta.name %> Settings'
href: 'javascript:;'
$.on link, 'click', Settings.open
$.event 'AddMenuEntry',
type: 'header'
el: link
order: 111
# 4chan s... | 102968 | Settings =
init: ->
# 4chan X settings link
link = $.el 'a',
className: 'settings-link'
textContent: '<%= meta.name %> Settings'
href: 'javascript:;'
$.on link, 'click', Settings.open
$.event 'AddMenuEntry',
type: 'header'
el: link
order: 111
# 4chan s... | true | Settings =
init: ->
# 4chan X settings link
link = $.el 'a',
className: 'settings-link'
textContent: '<%= meta.name %> Settings'
href: 'javascript:;'
$.on link, 'click', Settings.open
$.event 'AddMenuEntry',
type: 'header'
el: link
order: 111
# 4chan s... |
[
{
"context": "earch result.'\n version: '0.6'\n authors: [\n 'Tunnecino @ ignitae.com'\n ]\n",
"end": 1473,
"score": 0.9606845378875732,
"start": 1464,
"tag": "USERNAME",
"value": "Tunnecino"
},
{
"context": "t.'\n version: '0.6'\n authors: [\n 'Tunnecino @ ignitae.com'\n ... | plugins/tinysong.coffee | Arrogance/nerdobot | 1 | request = require('request')
module.exports = (apikey) ->
songURL = (query) ->
query = encodeURIComponent query
"http://tinysong.com/b/#{query}?format=json&key=#{apikey}"
banner = (message) =>
"#{@color 'blue'}#{@BOLD}TinySong#{@RESET} - #{message}"
@addCommand 'tinysong',
args: '<search terms... | 121581 | request = require('request')
module.exports = (apikey) ->
songURL = (query) ->
query = encodeURIComponent query
"http://tinysong.com/b/#{query}?format=json&key=#{apikey}"
banner = (message) =>
"#{@color 'blue'}#{@BOLD}TinySong#{@RESET} - #{message}"
@addCommand 'tinysong',
args: '<search terms... | true | request = require('request')
module.exports = (apikey) ->
songURL = (query) ->
query = encodeURIComponent query
"http://tinysong.com/b/#{query}?format=json&key=#{apikey}"
banner = (message) =>
"#{@color 'blue'}#{@BOLD}TinySong#{@RESET} - #{message}"
@addCommand 'tinysong',
args: '<search terms... |
[
{
"context": "lhost:27017/rachel'\n exports.TELEGRAM_TOKEN = '119032707:AAHbZyi4mXH6GtAP1_vpNxv_KktPEDdFEgU'\n\n when 'pro",
"end": 389,
"score": 0.6832270622253418,
"start": 380,
"tag": "KEY",
"value": "119032707"
},
{
"context": "17/rachel'\n exports.TELEGRAM_TOKEN = '119032... | src/server/config/config.coffee | FindBoat/rachel-bot | 0 | # Sets application config parameters depending on `env` name
env = process.env.NODE_ENV or 'prod'
console.log "Set app environment: #{env}"
switch(env)
when 'dev'
exports.DEBUG_LOG = true
exports.DEBUG_WARN = true
exports.DEBUG_ERROR = true
exports.DEBUG_CLIENT = true
exports.MONGODB_URI = 'mong... | 39874 | # Sets application config parameters depending on `env` name
env = process.env.NODE_ENV or 'prod'
console.log "Set app environment: #{env}"
switch(env)
when 'dev'
exports.DEBUG_LOG = true
exports.DEBUG_WARN = true
exports.DEBUG_ERROR = true
exports.DEBUG_CLIENT = true
exports.MONGODB_URI = 'mong... | true | # Sets application config parameters depending on `env` name
env = process.env.NODE_ENV or 'prod'
console.log "Set app environment: #{env}"
switch(env)
when 'dev'
exports.DEBUG_LOG = true
exports.DEBUG_WARN = true
exports.DEBUG_ERROR = true
exports.DEBUG_CLIENT = true
exports.MONGODB_URI = 'mong... |
[
{
"context": "c/types/json.coffee)\n#\n# Spec: https://github.com/josephg/ShareJS/wiki/JSON-Operations\n\nnativetype = requir",
"end": 86,
"score": 0.9997211694717407,
"start": 79,
"tag": "USERNAME",
"value": "josephg"
},
{
"context": "he operand.\n parent = container\n key... | node_modules/share/test/types/json.coffee | abraarsyed/workshare | 2 | # Tests for JSON OT type. (src/types/json.coffee)
#
# Spec: https://github.com/josephg/ShareJS/wiki/JSON-Operations
nativetype = require '../../src/types/json'
randomWord = require './randomWord'
util = require 'util'
p = util.debug
i = util.inspect
# This is an awful function to clone a document snapshot for use b... | 220596 | # Tests for JSON OT type. (src/types/json.coffee)
#
# Spec: https://github.com/josephg/ShareJS/wiki/JSON-Operations
nativetype = require '../../src/types/json'
randomWord = require './randomWord'
util = require 'util'
p = util.debug
i = util.inspect
# This is an awful function to clone a document snapshot for use b... | true | # Tests for JSON OT type. (src/types/json.coffee)
#
# Spec: https://github.com/josephg/ShareJS/wiki/JSON-Operations
nativetype = require '../../src/types/json'
randomWord = require './randomWord'
util = require 'util'
p = util.debug
i = util.inspect
# This is an awful function to clone a document snapshot for use b... |
[
{
"context": "}\n s3upload =\n Bucket: upload.bucket,\n Key: upload.sha1\n UploadId: s3UploadId\n {partParams} = up",
"end": 4161,
"score": 0.8062745928764343,
"start": 4155,
"tag": "KEY",
"value": "upload"
},
{
"context": "ultipartUpload\n Bucket: bucket\n K... | packages/nog-blob/nog-blob-server.coffee | nogproject/nog | 0 | { NogBlob, NogBlobTest } = share
# Access action constants.
AA_UPLOAD = 'nog-blob/upload'
AA_DOWNLOAD = 'nog-blob/download'
{
ERR_BLOB_ABORT_PENDING
ERR_BLOB_CONFLICT
ERR_BLOB_NOT_FOUND
ERR_BLOB_UPLOAD_EXISTS
ERR_DB
ERR_LIMIT_S3_OBJECT_SIZE
ERR_PARAM_INVALID
ERR_UPLOADID_UNKNOWN
ERR_UPLOAD_COMPLETE
... | 169290 | { NogBlob, NogBlobTest } = share
# Access action constants.
AA_UPLOAD = 'nog-blob/upload'
AA_DOWNLOAD = 'nog-blob/download'
{
ERR_BLOB_ABORT_PENDING
ERR_BLOB_CONFLICT
ERR_BLOB_NOT_FOUND
ERR_BLOB_UPLOAD_EXISTS
ERR_DB
ERR_LIMIT_S3_OBJECT_SIZE
ERR_PARAM_INVALID
ERR_UPLOADID_UNKNOWN
ERR_UPLOAD_COMPLETE
... | true | { NogBlob, NogBlobTest } = share
# Access action constants.
AA_UPLOAD = 'nog-blob/upload'
AA_DOWNLOAD = 'nog-blob/download'
{
ERR_BLOB_ABORT_PENDING
ERR_BLOB_CONFLICT
ERR_BLOB_NOT_FOUND
ERR_BLOB_UPLOAD_EXISTS
ERR_DB
ERR_LIMIT_S3_OBJECT_SIZE
ERR_PARAM_INVALID
ERR_UPLOADID_UNKNOWN
ERR_UPLOAD_COMPLETE
... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999086260795593,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/changelog-chart.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 @ChangelogChart
constructor: (area) ->
@options =
scales:
x: d3.scaleTime()
y: d3.scaleLinear()
class: ... | 152495 | # 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 @ChangelogChart
constructor: (area) ->
@options =
scales:
x: d3.scaleTime()
y: d3.scaleLinear()
class: d3.scal... | 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 @ChangelogChart
constructor: (area) ->
@options =
scales:
x: d3.scaleTime()
y: d3.scaleLinear()
... |
[
{
"context": "version 1.0.0\n@file Tab.js\n@author Elison de Campos\n@contact http://jokerjs.zaez.net/contato\n\n@co",
"end": 135,
"score": 0.9998723268508911,
"start": 119,
"tag": "NAME",
"value": "Elison de Campos"
}
] | vendor/assets/javascripts/joker/Tab.coffee | zaeznet/joker-rails | 0 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Tab.js
@author Elison de Campos
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, under the license MIT, ava... | 209744 | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Tab.js
@author <NAME>
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, under the license MIT, available at:... | true | ###
@summary Joker
@description Framework of RIAs applications
@version 1.0.0
@file Tab.js
@author PI:NAME:<NAME>END_PI
@contact http://jokerjs.zaez.net/contato
@copyright Copyright 2013 Zaez Solucoes em Tecnologia, all rights reserved.
This source file is free software, under the license MIT,... |
[
{
"context": "ifornia, based in New York, New York',\n name: 'Dustin Yellin',\n href: '/artist/dustin-yellin',\n biograph",
"end": 170,
"score": 0.9998834729194641,
"start": 157,
"tag": "NAME",
"value": "Dustin Yellin"
},
{
"context": " href: '/artist/dustin-yellin',\n ... | desktop/apps/artwork/components/related_artists/test/artists_fixture.coffee | dblock/force | 1 | { fabricate } = require 'antigravity'
module.exports =
[
bio: 'American, born 1975, Los Angeles, California, based in New York, New York',
name: 'Dustin Yellin',
href: '/artist/dustin-yellin',
biography: 'Dustin Yellin is as known for his image-rich sculptures as he is for his entrepreneurship'
e... | 32241 | { fabricate } = require 'antigravity'
module.exports =
[
bio: 'American, born 1975, Los Angeles, California, based in New York, New York',
name: '<NAME>',
href: '/artist/dustin-yellin',
biography: '<NAME> is as known for his image-rich sculptures as he is for his entrepreneurship'
exhibition_high... | true | { fabricate } = require 'antigravity'
module.exports =
[
bio: 'American, born 1975, Los Angeles, California, based in New York, New York',
name: 'PI:NAME:<NAME>END_PI',
href: '/artist/dustin-yellin',
biography: 'PI:NAME:<NAME>END_PI is as known for his image-rich sculptures as he is for his entrepren... |
[
{
"context": "# Author: Connor Beardsmore <connor.beardsmore@gmail.com>\n# Last Modified: 22",
"end": 27,
"score": 0.9998863339424133,
"start": 10,
"tag": "NAME",
"value": "Connor Beardsmore"
},
{
"context": "# Author: Connor Beardsmore <connor.beardsmore@gmail.com>\n# Last Modified:... | Upcoming-iCal-Events.widget/main.coffee | cbeardsmore/UpcomingEvents | 8 | # Author: Connor Beardsmore <connor.beardsmore@gmail.com>
# Last Modified: 22/03/18
# Customisations
# Refresh Frequency
REFRESH_FREQUENCY = "1h"
# Number of days shown from today.
NO_DAYS_TO_SHOW = 2
# Show which calendar you pulled from before event name.
SHOW_CALENDER = false
# Ignore specific calendars.
IGNORE_CAL... | 53653 | # Author: <NAME> <<EMAIL>>
# Last Modified: 22/03/18
# Customisations
# Refresh Frequency
REFRESH_FREQUENCY = "1h"
# Number of days shown from today.
NO_DAYS_TO_SHOW = 2
# Show which calendar you pulled from before event name.
SHOW_CALENDER = false
# Ignore specific calendars.
IGNORE_CALENDERS = [
'name/UUID of th... | true | # Author: PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
# Last Modified: 22/03/18
# Customisations
# Refresh Frequency
REFRESH_FREQUENCY = "1h"
# Number of days shown from today.
NO_DAYS_TO_SHOW = 2
# Show which calendar you pulled from before event name.
SHOW_CALENDER = false
# Ignore specific calendars.
IGNORE_CALEN... |
[
{
"context": " heardAbout: 'magical interwebs'\n firstName: 'First'\n lastName: 'Last'\n}\n\nsetupTeacher = co.wrap (",
"end": 854,
"score": 0.9996407628059387,
"start": 849,
"tag": "NAME",
"value": "First"
},
{
"context": " interwebs'\n firstName: 'First'\n lastName: 'L... | spec/server/functional/delighted.spec.coffee | johanvl/codecombat | 1 | require '../common'
utils = require '../utils'
_ = require 'lodash'
Promise = require 'bluebird'
User = require '../../../server/models/User'
TrialRequest = require '../../../server/models/TrialRequest'
Prepaid = require '../../../server/models/Prepaid'
Classroom = require '../../../server/models/Classroom'
Course = re... | 204815 | require '../common'
utils = require '../utils'
_ = require 'lodash'
Promise = require 'bluebird'
User = require '../../../server/models/User'
TrialRequest = require '../../../server/models/TrialRequest'
Prepaid = require '../../../server/models/Prepaid'
Classroom = require '../../../server/models/Classroom'
Course = re... | true | require '../common'
utils = require '../utils'
_ = require 'lodash'
Promise = require 'bluebird'
User = require '../../../server/models/User'
TrialRequest = require '../../../server/models/TrialRequest'
Prepaid = require '../../../server/models/Prepaid'
Classroom = require '../../../server/models/Classroom'
Course = re... |
[
{
"context": "id: 0, active: true, facebookId: 0, notes: \"Met at Alice'ss\"}\n {id: 1, active: true, linkedinId: 1, not",
"end": 86,
"score": 0.9993594288825989,
"start": 81,
"tag": "NAME",
"value": "Alice"
},
{
"context": "id: 1, active: true, linkedinId: 1, notes: \"Met at Bob'... | test/helpers/fixtures.coffee | jamesknelson/angular-deputy | 1 | fixtures =
contacts: [
{id: 0, active: true, facebookId: 0, notes: "Met at Alice'ss"}
{id: 1, active: true, linkedinId: 1, notes: "Met at Bob's"}
{id: 2, active: false, linkedinId: 5, facebookId: 6, notes: "Met at Charlie's"}
]
questions: [
{id: 0, type: "import", question: "What is this person's ... | 88367 | fixtures =
contacts: [
{id: 0, active: true, facebookId: 0, notes: "Met at <NAME>'ss"}
{id: 1, active: true, linkedinId: 1, notes: "Met at <NAME>'s"}
{id: 2, active: false, linkedinId: 5, facebookId: 6, notes: "Met at <NAME>'s"}
]
questions: [
{id: 0, type: "import", question: "What is this person... | true | fixtures =
contacts: [
{id: 0, active: true, facebookId: 0, notes: "Met at PI:NAME:<NAME>END_PI'ss"}
{id: 1, active: true, linkedinId: 1, notes: "Met at PI:NAME:<NAME>END_PI's"}
{id: 2, active: false, linkedinId: 5, facebookId: 6, notes: "Met at PI:NAME:<NAME>END_PI's"}
]
questions: [
{id: 0, type... |
[
{
"context": "the terms of the MIT license.\n# Copyright 2012 (c) Markus Kohlhase <mail@markus-kohlhase.de>\n\nJOAP_NS = \"jabber:iq:j",
"end": 102,
"score": 0.9999006390571594,
"start": 87,
"tag": "NAME",
"value": "Markus Kohlhase"
},
{
"context": "IT license.\n# Copyright 2012 (c) ... | joap/strophe.joap.coffee | calendar42/strophejs-plugins | 0 | # This program is distributed under the terms of the MIT license.
# Copyright 2012 (c) Markus Kohlhase <mail@markus-kohlhase.de>
JOAP_NS = "jabber:iq:joap"
# Private static members
conn = null
onError = (cb=->) -> (iq) ->
err = iq.getElementsByTagName("error")[0]
if err?
code = err.getAttribute("code") * 1
... | 36725 | # This program is distributed under the terms of the MIT license.
# Copyright 2012 (c) <NAME> <<EMAIL>>
JOAP_NS = "jabber:iq:joap"
# Private static members
conn = null
onError = (cb=->) -> (iq) ->
err = iq.getElementsByTagName("error")[0]
if err?
code = err.getAttribute("code") * 1
msg = err.textConten... | true | # This program is distributed under the terms of the MIT license.
# Copyright 2012 (c) PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
JOAP_NS = "jabber:iq:joap"
# Private static members
conn = null
onError = (cb=->) -> (iq) ->
err = iq.getElementsByTagName("error")[0]
if err?
code = err.getAttribute("code") ... |
[
{
"context": "list.add_item {id:13, name: 'Element 3', author: 'John'} \n",
"end": 3628,
"score": 0.9984531402587891,
"start": 3624,
"tag": "NAME",
"value": "John"
}
] | test/components/list/selectable_list_test.coffee | pieces-js/pieces-list | 0 | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Selectable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... | 206898 | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Selectable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... | true | 'use strict'
h = require 'pieces-list/test/helpers'
utils = pi.utils
Nod = pi.Nod
describe "List.Selectable", ->
root = h.test_cont(pi.Nod.body)
after ->
root.remove()
test_div = list = null
beforeEach ->
test_div = Nod.create('div')
test_div.style position:'relative'
root.append test_div
... |
[
{
"context": "inding community structure in very large networks, A Clauset, MEJ Newman, C Moore - Physical review E, 2004\n#-",
"end": 270,
"score": 0.9998272061347961,
"start": 261,
"tag": "NAME",
"value": "A Clauset"
},
{
"context": "unity structure in very large networks, A Clause... | src/network/cluster.coffee | romind/d3plus_sandbox | 1 | normalize = require "./normalize.coffee"
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Community detection algorithm (graph clustering/partitioning)
# Based on the paper:
# Finding community structure in very large networks, A Clauset, MEJ Newman, C Moore - Physical review E, 2004
#-... | 195483 | normalize = require "./normalize.coffee"
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Community detection algorithm (graph clustering/partitioning)
# Based on the paper:
# Finding community structure in very large networks, <NAME>, <NAME>, <NAME> - Physical review E, 2004
#---------... | true | normalize = require "./normalize.coffee"
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Community detection algorithm (graph clustering/partitioning)
# Based on the paper:
# Finding community structure in very large networks, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, PI:NAME:<NAME>E... |
[
{
"context": "dimo: 'Ver podcast en Podimo'\n subscribe: 'Suscríbete'\n\n 'nl-NL':\n chaptermarks:\n show: ",
"end": 5769,
"score": 0.8138477206230164,
"start": 5759,
"tag": "NAME",
"value": "Suscríbete"
}
] | src/javascripts/i18n.coffee | clawfire/podigee-podcast-player | 204 | class I18n
# List of locales that follow BCP-47
SUPPORTED_LOCALES = ['en-US', 'de-DE', 'es-ES', 'nl-NL', 'pl-PL']
# E.g a user with en-GB will get the language 'en'
# The languages are in ISO 639-1
SUPPORTED_LANGUAGES = ['en', 'de', 'es', 'nl', 'pl']
# locale<string> BCP-47, e.g. "en-US", can be nil
# de... | 156035 | class I18n
# List of locales that follow BCP-47
SUPPORTED_LOCALES = ['en-US', 'de-DE', 'es-ES', 'nl-NL', 'pl-PL']
# E.g a user with en-GB will get the language 'en'
# The languages are in ISO 639-1
SUPPORTED_LANGUAGES = ['en', 'de', 'es', 'nl', 'pl']
# locale<string> BCP-47, e.g. "en-US", can be nil
# de... | true | class I18n
# List of locales that follow BCP-47
SUPPORTED_LOCALES = ['en-US', 'de-DE', 'es-ES', 'nl-NL', 'pl-PL']
# E.g a user with en-GB will get the language 'en'
# The languages are in ISO 639-1
SUPPORTED_LANGUAGES = ['en', 'de', 'es', 'nl', 'pl']
# locale<string> BCP-47, e.g. "en-US", can be nil
# de... |
[
{
"context": " ,\n token: \"alsoirrelevant\"\n starts: 90\n ",
"end": 2444,
"score": 0.6185713410377502,
"start": 2430,
"tag": "KEY",
"value": "alsoirrelevant"
},
{
"context": "245\n ,\n ... | src/coffee/expression/parse/parentheses.spec.coffee | jameswilddev/influx7 | 1 | describe "expression", -> describe "parse", -> describe "parentheses", ->
rewire = require "rewire"
describe "imports", ->
expressionParseParentheses = rewire "./parentheses"
it "expressionParse", -> (expect expressionParseParentheses.__get__ "expressionParse").toBe require "./../parse"
desc... | 19310 | describe "expression", -> describe "parse", -> describe "parentheses", ->
rewire = require "rewire"
describe "imports", ->
expressionParseParentheses = rewire "./parentheses"
it "expressionParse", -> (expect expressionParseParentheses.__get__ "expressionParse").toBe require "./../parse"
desc... | true | describe "expression", -> describe "parse", -> describe "parentheses", ->
rewire = require "rewire"
describe "imports", ->
expressionParseParentheses = rewire "./parentheses"
it "expressionParse", -> (expect expressionParseParentheses.__get__ "expressionParse").toBe require "./../parse"
desc... |
[
{
"context": "rn recipients\n# return [\n# {to:'yuryilinikh@gmail.com', name: 'Yury', post: 'My awesome post header abo",
"end": 2265,
"score": 0.9999275207519531,
"start": 2244,
"tag": "EMAIL",
"value": "yuryilinikh@gmail.com"
},
{
"context": "\n# {to:'y... | src/server/utils/marketing_mails.coffee | LaPingvino/rizzoma | 88 | async = require('async')
Conf = require('../conf').Conf
logger = Conf.getLogger('marketing_mails')
SmtpTransport = require('../notification/transport/smtp').SmtpTransport
class MarketingMailer
constructor: () ->
conf = Conf.getNotificationConf()
@_smtp = new SmtpTransport(conf.transport.smtp)
... | 100554 | async = require('async')
Conf = require('../conf').Conf
logger = Conf.getLogger('marketing_mails')
SmtpTransport = require('../notification/transport/smtp').SmtpTransport
class MarketingMailer
constructor: () ->
conf = Conf.getNotificationConf()
@_smtp = new SmtpTransport(conf.transport.smtp)
... | true | async = require('async')
Conf = require('../conf').Conf
logger = Conf.getLogger('marketing_mails')
SmtpTransport = require('../notification/transport/smtp').SmtpTransport
class MarketingMailer
constructor: () ->
conf = Conf.getNotificationConf()
@_smtp = new SmtpTransport(conf.transport.smtp)
... |
[
{
"context": "= l10nProvider\n\t\t\tl10nProvider.add 'en-US', key: 'message-en'\n\t\t\tl10nProvider.add 'uk-UA', key: 'message-ua'\n\n",
"end": 216,
"score": 0.9960692524909973,
"start": 206,
"tag": "KEY",
"value": "message-en"
},
{
"context": ": 'message-en'\n\t\t\tl10nProvider.add ... | test/unit/service.spec.coffee | 4vanger/angular-l10n | 18 | describe "L10n service", ->
provider = null
service = null
beforeEach ->
angular.module('test-service', ['l10n']).config (l10nProvider) ->
provider = l10nProvider
l10nProvider.add 'en-US', key: 'message-en'
l10nProvider.add 'uk-UA', key: 'message-ua'
module 'test-service'
inject (l10n) -> service = l... | 85221 | describe "L10n service", ->
provider = null
service = null
beforeEach ->
angular.module('test-service', ['l10n']).config (l10nProvider) ->
provider = l10nProvider
l10nProvider.add 'en-US', key: '<KEY>'
l10nProvider.add 'uk-UA', key: '<KEY>'
module 'test-service'
inject (l10n) -> service = l10n
after... | true | describe "L10n service", ->
provider = null
service = null
beforeEach ->
angular.module('test-service', ['l10n']).config (l10nProvider) ->
provider = l10nProvider
l10nProvider.add 'en-US', key: 'PI:KEY:<KEY>END_PI'
l10nProvider.add 'uk-UA', key: 'PI:KEY:<KEY>END_PI'
module 'test-service'
inject (l10n... |
[
{
"context": " RouteClientValidator.configure({headerClientKey:'client_id', routes})\n .then (msg)->\n ",
"end": 728,
"score": 0.9865312576293945,
"start": 719,
"tag": "KEY",
"value": "client_id"
},
{
"context": "Validator\n clientKey = if clientId th... | test/indexSpec.coffee | akuma1/express-client-validator | 4 | RouteClientValidator = require "../src/index"
_ = require('underscore')
describe "route client validator",->
{sandbox, req, res, next} = {}
beforeEach ->
sandbox = sinon.sandbox.create()
res =
status : sandbox.stub()
send : sandbox.stub()
next = sandbox.stub()
... | 129616 | RouteClientValidator = require "../src/index"
_ = require('underscore')
describe "route client validator",->
{sandbox, req, res, next} = {}
beforeEach ->
sandbox = sinon.sandbox.create()
res =
status : sandbox.stub()
send : sandbox.stub()
next = sandbox.stub()
... | true | RouteClientValidator = require "../src/index"
_ = require('underscore')
describe "route client validator",->
{sandbox, req, res, next} = {}
beforeEach ->
sandbox = sinon.sandbox.create()
res =
status : sandbox.stub()
send : sandbox.stub()
next = sandbox.stub()
... |
[
{
"context": "er\n\n baseParams: ->\n result = '?token=' + Langtrainer.LangtrainerApp.currentUser.readAttribute('token')\n result += ",
"end": 436,
"score": 0.5598938465118408,
"start": 414,
"tag": "KEY",
"value": "trainer.LangtrainerApp"
},
{
"context": " result = '?token=' ... | app/assets/javascripts/langtrainer_frontend_backbone/models/step.js.coffee | beorc/langtrainer_frontend_backbone | 0 | class Langtrainer.LangtrainerApp.Models.Step extends Backbone.Model
initialize: ->
@resetState()
resetState: ->
@wordsHelped = 0
@stepsHelped = 0
@wrongAnsers = 0
difficultyIndex: (answer) ->
wordsNumber = answer.split(' ').length
if wordsNumber == 0
return 1
return @stepsHelp... | 138383 | class Langtrainer.LangtrainerApp.Models.Step extends Backbone.Model
initialize: ->
@resetState()
resetState: ->
@wordsHelped = 0
@stepsHelped = 0
@wrongAnsers = 0
difficultyIndex: (answer) ->
wordsNumber = answer.split(' ').length
if wordsNumber == 0
return 1
return @stepsHelp... | true | class Langtrainer.LangtrainerApp.Models.Step extends Backbone.Model
initialize: ->
@resetState()
resetState: ->
@wordsHelped = 0
@stepsHelped = 0
@wrongAnsers = 0
difficultyIndex: (answer) ->
wordsNumber = answer.split(' ').length
if wordsNumber == 0
return 1
return @stepsHelp... |
[
{
"context": "ps.annotation.value\n identification._key ?= Math.random()\n\n answersByQuestion = @props.task.questi",
"end": 356,
"score": 0.9835053086280823,
"start": 345,
"tag": "KEY",
"value": "Math.random"
}
] | app/classifier/tasks/survey/annotation-view.cjsx | tlalka/Panoptes-Front-End | 0 | React = require 'react'
createReactClass = require 'create-react-class'
module.exports = createReactClass
displayName: 'SurveyAnnotationView'
getDefaultProperties: ->
task: null
classification: null
annotation: null
render: ->
<div>
{for identification, i in @props.annotation.value
... | 107529 | React = require 'react'
createReactClass = require 'create-react-class'
module.exports = createReactClass
displayName: 'SurveyAnnotationView'
getDefaultProperties: ->
task: null
classification: null
annotation: null
render: ->
<div>
{for identification, i in @props.annotation.value
... | true | React = require 'react'
createReactClass = require 'create-react-class'
module.exports = createReactClass
displayName: 'SurveyAnnotationView'
getDefaultProperties: ->
task: null
classification: null
annotation: null
render: ->
<div>
{for identification, i in @props.annotation.value
... |
[
{
"context": "signDocs = await @database.allDocs\n startkey: \"_design\"\n endkey: \"_design\\uf777\"\n include_docs",
"end": 1126,
"score": 0.9329729080200195,
"start": 1118,
"tag": "KEY",
"value": "\"_design"
},
{
"context": "se.allDocs\n startkey: \"_design\"\n... | _attachments/app/models/TertiaryIndex.coffee | jongoz/coconut-analytice | 3 | timestamp = require 'time-stamp'
#Case = require './Case'
class TertiaryIndex
constructor: (options) ->
@name = options.name
@docsToSaveOnReset = options.docsToSaveOnReset
@database = new PouchDB("#{Coconut.databaseURL}/zanzibar-index-#{@name.toLowerCase()}")
latestChangeForZanzibarDatabase: =>
ne... | 66914 | timestamp = require 'time-stamp'
#Case = require './Case'
class TertiaryIndex
constructor: (options) ->
@name = options.name
@docsToSaveOnReset = options.docsToSaveOnReset
@database = new PouchDB("#{Coconut.databaseURL}/zanzibar-index-#{@name.toLowerCase()}")
latestChangeForZanzibarDatabase: =>
ne... | true | timestamp = require 'time-stamp'
#Case = require './Case'
class TertiaryIndex
constructor: (options) ->
@name = options.name
@docsToSaveOnReset = options.docsToSaveOnReset
@database = new PouchDB("#{Coconut.databaseURL}/zanzibar-index-#{@name.toLowerCase()}")
latestChangeForZanzibarDatabase: =>
ne... |
[
{
"context": "r name> \\n create user <user name> with password <password> \\n delete user <user name> \\n assign role <role ",
"end": 5847,
"score": 0.9889590740203857,
"start": 5839,
"tag": "PASSWORD",
"value": "password"
},
{
"context": "ta.approver;\n\t\t\t\t\t\tcreaterepo.create... | scripts/xldeploy/scripts-slack/xldeploy_repo.coffee | akash1233/OnBot_Demo | 4 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... | 80731 | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... | true | #-------------------------------------------------------------------------------
# Copyright 2018 Cognizant Technology Solutions
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http:... |
[
{
"context": "module.exports =\n origin: \"monkey\"\n name: \"shines\"\n tags: [\"in\", \"the\", \"closet\"]\n timestamp: Dat",
"end": 51,
"score": 0.9889972805976868,
"start": 45,
"tag": "NAME",
"value": "shines"
}
] | benchmarks/draft4/trivial/valid_doc.coffee | pandastrike/jsck | 176 | module.exports =
origin: "monkey"
name: "shines"
tags: ["in", "the", "closet"]
timestamp: Date.now()
data:
uno: 1
dos: 2
| 225425 | module.exports =
origin: "monkey"
name: "<NAME>"
tags: ["in", "the", "closet"]
timestamp: Date.now()
data:
uno: 1
dos: 2
| true | module.exports =
origin: "monkey"
name: "PI:NAME:<NAME>END_PI"
tags: ["in", "the", "closet"]
timestamp: Date.now()
data:
uno: 1
dos: 2
|
[
{
"context": "\nnikita = require '@nikitajs/core/lib'\n{tags, config, ipa} = require '../test'",
"end": 28,
"score": 0.6361687779426575,
"start": 26,
"tag": "USERNAME",
"value": "js"
},
{
"context": "s', ->\n nikita\n .ipa.user\n uid: 'username'\n attributes: ... | packages/ipa/test/user/index.coffee | shivaylamba/meilisearch-gatsby-plugin-guide | 31 |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
uid: [1,2,3]
.should.be.rejectedWith
cod... | 13851 |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
uid: [1,2,3]
.should.be.rejectedWith
cod... | true |
nikita = require '@nikitajs/core/lib'
{tags, config, ipa} = require '../test'
they = require('mocha-they')(config)
return unless tags.ipa
describe 'ipa.user', ->
describe 'schema', ->
it 'schema root properties', ->
nikita
.ipa.user
uid: [1,2,3]
.should.be.rejectedWith
cod... |
[
{
"context": "h args\", args\n\n manager.sendTask\n name: name\n options: @taskRegistry[name].options\n ",
"end": 4145,
"score": 0.8609194755554199,
"start": 4141,
"tag": "NAME",
"value": "name"
}
] | src/ivy.coffee | apiaryio/ivy | 5 |
{EventEmitter} = require 'events'
logger = require './logger'
queues = require './queues'
{notifier} = require './notifiers'
manager = queues.queue
class Ivy extends EventEmitter
constructor: (options) ->
{
@config
} = options
@taskRegistry = {}
@taskObjectRe... | 40218 |
{EventEmitter} = require 'events'
logger = require './logger'
queues = require './queues'
{notifier} = require './notifiers'
manager = queues.queue
class Ivy extends EventEmitter
constructor: (options) ->
{
@config
} = options
@taskRegistry = {}
@taskObjectRe... | true |
{EventEmitter} = require 'events'
logger = require './logger'
queues = require './queues'
{notifier} = require './notifiers'
manager = queues.queue
class Ivy extends EventEmitter
constructor: (options) ->
{
@config
} = options
@taskRegistry = {}
@taskObjectRe... |
[
{
"context": ": \"./public/app.min.js\"\n\t\tuglify:\n\t\t\tbanner: \"/* ©Laurent Margirier */\"\n\t\t\tprod:\n\t\t\t\tfiles: [{\n\t\t\t\t\tdest: \"./public/a",
"end": 919,
"score": 0.9998475909233093,
"start": 902,
"tag": "NAME",
"value": "Laurent Margirier"
}
] | Gruntfile.coffee | inaka/angular-img-onload | 2 | module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-karma"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-contrib-jade"
grunt.loadNpmTasks "grunt-contrib-less"
grunt.loadNpmTasks "grunt-contrib-concat"
grunt.loadNpmTasks "grunt-ngmin"
grunt.loadNpm... | 115103 | module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-karma"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-contrib-jade"
grunt.loadNpmTasks "grunt-contrib-less"
grunt.loadNpmTasks "grunt-contrib-concat"
grunt.loadNpmTasks "grunt-ngmin"
grunt.loadNpm... | true | module.exports = (grunt) ->
grunt.loadNpmTasks "grunt-karma"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-contrib-jade"
grunt.loadNpmTasks "grunt-contrib-less"
grunt.loadNpmTasks "grunt-contrib-concat"
grunt.loadNpmTasks "grunt-ngmin"
grunt.loadNpm... |
[
{
"context": "t.brain.userForId(data.userId)\n user.name = data.name\n user.room = 'iMessage'\n\n msg ",
"end": 1037,
"score": 0.6181147694587708,
"start": 1033,
"tag": "NAME",
"value": "data"
}
] | src/imessage.coffee | lazerwalker/hubot-imessage | 119 | {User, Robot, Adapter, Message, TextMessage, Response} = require('hubot')
AppleScript = require('applescript')
path = require('path')
Redis = require('redis')
Pubsub = Redis.createClient()
Pubsub.subscribe('hubot:incoming-imessage')
class iMessageAdapter extends Adapter
constructor: (robot) ->
@robot = robot
... | 49684 | {User, Robot, Adapter, Message, TextMessage, Response} = require('hubot')
AppleScript = require('applescript')
path = require('path')
Redis = require('redis')
Pubsub = Redis.createClient()
Pubsub.subscribe('hubot:incoming-imessage')
class iMessageAdapter extends Adapter
constructor: (robot) ->
@robot = robot
... | true | {User, Robot, Adapter, Message, TextMessage, Response} = require('hubot')
AppleScript = require('applescript')
path = require('path')
Redis = require('redis')
Pubsub = Redis.createClient()
Pubsub.subscribe('hubot:incoming-imessage')
class iMessageAdapter extends Adapter
constructor: (robot) ->
@robot = robot
... |
[
{
"context": "@loadSeedData: ->\n animalData = [\n name: \"Kelsey\"\n type: \"dog\"\n age: 2\n breed: \"Lab",
"end": 574,
"score": 0.9997680187225342,
"start": 568,
"tag": "NAME",
"value": "Kelsey"
},
{
"context": "mes drinks out of the toilet.\"\n ,\n ... | src/animal.coffee | keisei77/coffee_demo | 0 | class window.Animal
@CATEGORIES = ["All", "Dog", "Cat", "Rabbit", "Horse"]
behaviors: ->
switch @type
when "cat" then ["meow", null]
when "dog" then ["bark", "wag"]
when "rabbit" then [null, "hop hop"]
when "horse", "donkey"
["neigh", null]
else
[null,null]
... | 117723 | class window.Animal
@CATEGORIES = ["All", "Dog", "Cat", "Rabbit", "Horse"]
behaviors: ->
switch @type
when "cat" then ["meow", null]
when "dog" then ["bark", "wag"]
when "rabbit" then [null, "hop hop"]
when "horse", "donkey"
["neigh", null]
else
[null,null]
... | true | class window.Animal
@CATEGORIES = ["All", "Dog", "Cat", "Rabbit", "Horse"]
behaviors: ->
switch @type
when "cat" then ["meow", null]
when "dog" then ["bark", "wag"]
when "rabbit" then [null, "hop hop"]
when "horse", "donkey"
["neigh", null]
else
[null,null]
... |
[
{
"context": " The `Hash` unit tests\n#\n# Copyright (C) 2011-2013 Nikolay Nemshilov\n#\n{Test,should} = require('lovely')\n\neval(Test.bu",
"end": 71,
"score": 0.9998853802680969,
"start": 54,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | stl/core/test/hash_test.coffee | lovely-io/lovely.io-stl | 2 | #
# The `Hash` unit tests
#
# Copyright (C) 2011-2013 Nikolay Nemshilov
#
{Test,should} = require('lovely')
eval(Test.build)
Lovely = this.Lovely
describe 'Hash', ->
Hash = Lovely.Hash
#
# A dummy class to check the prototype
# values filtration
#
# @param {Object} own properties
# @return undefined
... | 152328 | #
# The `Hash` unit tests
#
# Copyright (C) 2011-2013 <NAME>
#
{Test,should} = require('lovely')
eval(Test.build)
Lovely = this.Lovely
describe 'Hash', ->
Hash = Lovely.Hash
#
# A dummy class to check the prototype
# values filtration
#
# @param {Object} own properties
# @return undefined
#
Foo = (... | true | #
# The `Hash` unit tests
#
# Copyright (C) 2011-2013 PI:NAME:<NAME>END_PI
#
{Test,should} = require('lovely')
eval(Test.build)
Lovely = this.Lovely
describe 'Hash', ->
Hash = Lovely.Hash
#
# A dummy class to check the prototype
# values filtration
#
# @param {Object} own properties
# @return undefined... |
[
{
"context": "y (http://jquery.com)\n\n@source: http://github.com/rendro/easy-pie-chart/\n@autor: Robert Fleischmann\n@versi",
"end": 338,
"score": 0.788355827331543,
"start": 332,
"tag": "USERNAME",
"value": "rendro"
},
{
"context": ": http://github.com/rendro/easy-pie-chart/\n@auto... | vendor/assets/javascripts/easy-pie-chart/easy-pie-chart.coffee | hasyung/ace-theme-rails | 0 | ###
Easy pie chart is a jquery plugin to display simple animated pie charts for only one value
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
Built on top of the jQuery library (http://jquery.com)
@source: http:/... | 199572 | ###
Easy pie chart is a jquery plugin to display simple animated pie charts for only one value
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
Built on top of the jQuery library (http://jquery.com)
@source: http:/... | true | ###
Easy pie chart is a jquery plugin to display simple animated pie charts for only one value
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
Built on top of the jQuery library (http://jquery.com)
@source: http:/... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991719722747803,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-fs-truncate.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... | 201908 | # 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": "# written by al.di 2018\n# help function\ntypes = [\n 'isString'\n 'is",
"end": 18,
"score": 0.9575021266937256,
"start": 13,
"tag": "NAME",
"value": "al.di"
},
{
"context": "ults = \n item1:'just string'\n item2:\n name: 'bob marley'\n year: 1985\n title: ... | coffees/flatten.coffee | android1and1/easti | 0 | # written by al.di 2018
# help function
types = [
'isString'
'isArray'
'isObject'
'isNumber'
'isRegExp'
'isDate'
'isBoolean'
]
helpFuncs = {}
for type in types
((x)->
# func name is 'x'
helpFuncs[x] = (check)->
('[object ' + x.substr(2) + ']') is (Object.prototype.toString.call c... | 19792 | # written by <NAME> 2018
# help function
types = [
'isString'
'isArray'
'isObject'
'isNumber'
'isRegExp'
'isDate'
'isBoolean'
]
helpFuncs = {}
for type in types
((x)->
# func name is 'x'
helpFuncs[x] = (check)->
('[object ' + x.substr(2) + ']') is (Object.prototype.toString.call ... | true | # written by PI:NAME:<NAME>END_PI 2018
# help function
types = [
'isString'
'isArray'
'isObject'
'isNumber'
'isRegExp'
'isDate'
'isBoolean'
]
helpFuncs = {}
for type in types
((x)->
# func name is 'x'
helpFuncs[x] = (check)->
('[object ' + x.substr(2) + ']') is (Object.prototype.... |
[
{
"context": " {\n \"user\":{\n \"id\":1\n \"login\":\"admin\"\n \"firstname\":\"Redmine\"\n \"lastname\"",
"end": 5247,
"score": 0.9930025339126587,
"start": 5242,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "d\":1\n \"login\":\"admin\... | test/testData.coffee | Chanshi712/RedmineTimeTracker | 73 | timeTracker.value "TestData", ()->
SHOW = { DEFAULT: 0, NOT: 1, SHOW: 2 }
return {
prj1: [
{
url: "http://redmine.com"
urlIndex: 0
id: 0
text: "prj1_0"
show: SHOW.DEFAULT
}, {
url: "http://redmine.com"
urlIndex: 0
id: 1
text:... | 49198 | timeTracker.value "TestData", ()->
SHOW = { DEFAULT: 0, NOT: 1, SHOW: 2 }
return {
prj1: [
{
url: "http://redmine.com"
urlIndex: 0
id: 0
text: "prj1_0"
show: SHOW.DEFAULT
}, {
url: "http://redmine.com"
urlIndex: 0
id: 1
text:... | true | timeTracker.value "TestData", ()->
SHOW = { DEFAULT: 0, NOT: 1, SHOW: 2 }
return {
prj1: [
{
url: "http://redmine.com"
urlIndex: 0
id: 0
text: "prj1_0"
show: SHOW.DEFAULT
}, {
url: "http://redmine.com"
urlIndex: 0
id: 1
text:... |
[
{
"context": " = new Document()\n m = new SomeModel({ name : \"foo\" })\n m2 = new AnotherModel({ name : \"bar\" })\n ",
"end": 6412,
"score": 0.8691739439964294,
"start": 6409,
"tag": "NAME",
"value": "foo"
},
{
"context": " = new Document()\n m = new SomeModel({ name : \"f... | bokehjs/test/document/document.coffee | aparamon/bokeh | 1 | {expect} = require "chai"
sinon = require "sinon"
{ stdoutTrap, stderrTrap } = require 'logtrap'
{values, size} = require("core/util/object")
{Document, ModelChangedEvent, TitleChangedEvent, RootAddedEvent, RootRemovedEvent, DEFAULT_TITLE} = require "document"
js_version = require("version").version
{Models} = require... | 98984 | {expect} = require "chai"
sinon = require "sinon"
{ stdoutTrap, stderrTrap } = require 'logtrap'
{values, size} = require("core/util/object")
{Document, ModelChangedEvent, TitleChangedEvent, RootAddedEvent, RootRemovedEvent, DEFAULT_TITLE} = require "document"
js_version = require("version").version
{Models} = require... | true | {expect} = require "chai"
sinon = require "sinon"
{ stdoutTrap, stderrTrap } = require 'logtrap'
{values, size} = require("core/util/object")
{Document, ModelChangedEvent, TitleChangedEvent, RootAddedEvent, RootRemovedEvent, DEFAULT_TITLE} = require "document"
js_version = require("version").version
{Models} = require... |
[
{
"context": "CSS Quo Module\n\n@namespace Quo\n@class css\n\n@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi\n###\n\"use strict\"\n\n\n",
"end": 76,
"score": 0.9998495578765869,
"start": 55,
"tag": "NAME",
"value": "Javier Jimenez Villar"
},
{
"context": "ce Quo\n@class ... | source/quo.css.coffee | lguzzon/QuoJS | 558 | ###
CSS Quo Module
@namespace Quo
@class css
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
###
Add class to a given instance element
@method addClass
@param {string} Name of stylesheet class
###
$$.... | 141859 | ###
CSS Quo Module
@namespace Quo
@class css
@author <NAME> <<EMAIL>> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
###
Add class to a given instance element
@method addClass
@param {string} Name of stylesheet class
###
$$.fn.addClass = (values) ... | true | ###
CSS Quo Module
@namespace Quo
@class css
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
VENDORS = [ "-webkit-", "-moz-", "-ms-", "-o-", "" ]
###
Add class to a given instance element
@method addClass
@param {string} Name of stylesheet class
###... |
[
{
"context": "ateService\n\n beforeEach (done) ->\n @redisKey = UUID.v1()\n meshbluConfig =\n server: 'localhost'\n ",
"end": 517,
"score": 0.8661410808563232,
"start": 510,
"tag": "KEY",
"value": "UUID.v1"
},
{
"context": "0000'\n uuid: 'governator-uuid'\n toke... | test/integration/create-cancellation-spec.coffee | octoblu/governator-service | 0 | request = require 'request'
shmock = require 'shmock'
RedisNs = require '@octoblu/redis-ns'
redis = require 'ioredis'
enableDestroy = require 'server-destroy'
UUID = require 'uuid'
Server = require '../../server'
describe 'Create Cancellation', ->
beforeEach ->
@meshblu... | 136460 | request = require 'request'
shmock = require 'shmock'
RedisNs = require '@octoblu/redis-ns'
redis = require 'ioredis'
enableDestroy = require 'server-destroy'
UUID = require 'uuid'
Server = require '../../server'
describe 'Create Cancellation', ->
beforeEach ->
@meshblu... | true | request = require 'request'
shmock = require 'shmock'
RedisNs = require '@octoblu/redis-ns'
redis = require 'ioredis'
enableDestroy = require 'server-destroy'
UUID = require 'uuid'
Server = require '../../server'
describe 'Create Cancellation', ->
beforeEach ->
@meshblu... |
[
{
"context": " rich text editing jQuery UI widget\n# (c) 2011 Henri Bergius, IKS Consortium\n# Hallo may be freely distrib",
"end": 79,
"score": 0.9998549222946167,
"start": 66,
"tag": "NAME",
"value": "Henri Bergius"
}
] | src/widgets/button.coffee | git-j/hallo | 0 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 Henri Bergius, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.hallobutton',
button: null
isChecked: false
options:
uuid: ''
label: null
icon: null
editable... | 196376 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 <NAME>, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.hallobutton',
button: null
isChecked: false
options:
uuid: ''
label: null
icon: null
editable: null
... | true | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 PI:NAME:<NAME>END_PI, IKS Consortium
# Hallo may be freely distributed under the MIT license
((jQuery) ->
jQuery.widget 'IKS.hallobutton',
button: null
isChecked: false
options:
uuid: ''
label: null
icon: null
e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.