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": "ns', ($window, permissions) ->\n VISIBILITY_KEY ='hypothesis.visibility'\n VISIBILITY_PUBLIC = 'public'\n VISIBILITY_PRIV",
"end": 103,
"score": 0.993683397769928,
"start": 82,
"tag": "KEY",
"value": "hypothesis.visibility"
},
{
"context": " cookies and local storage... | h/static/scripts/directives/privacy.coffee | Treora/h | 0 | privacy = ['$window', 'permissions', ($window, permissions) ->
VISIBILITY_KEY ='hypothesis.visibility'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
levels = [
{name: VISIBILITY_PUBLIC, text: 'Public'}
{name: VISIBILITY_PRIVATE, text: 'Only Me'}
]
getLevel = (name) ->
for level i... | 17904 | privacy = ['$window', 'permissions', ($window, permissions) ->
VISIBILITY_KEY ='<KEY>'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
levels = [
{name: VISIBILITY_PUBLIC, text: 'Public'}
{name: VISIBILITY_PRIVATE, text: 'Only Me'}
]
getLevel = (name) ->
for level in levels
i... | true | privacy = ['$window', 'permissions', ($window, permissions) ->
VISIBILITY_KEY ='PI:KEY:<KEY>END_PI'
VISIBILITY_PUBLIC = 'public'
VISIBILITY_PRIVATE = 'private'
levels = [
{name: VISIBILITY_PUBLIC, text: 'Public'}
{name: VISIBILITY_PRIVATE, text: 'Only Me'}
]
getLevel = (name) ->
for level in l... |
[
{
"context": "dminConfig =\n name: 'Dashboard'\n adminEmails: ['maxim@jssolutionsdev.com']\n collections:\n Activities: {}\n Companies",
"end": 76,
"score": 0.9999241828918457,
"start": 52,
"tag": "EMAIL",
"value": "maxim@jssolutionsdev.com"
}
] | app/lib/admin-panel.coffee | JSSolutions-Academy/Team-A | 0 | @AdminConfig =
name: 'Dashboard'
adminEmails: ['maxim@jssolutionsdev.com']
collections:
Activities: {}
Companies: {}
Invitations: {}
| 47342 | @AdminConfig =
name: 'Dashboard'
adminEmails: ['<EMAIL>']
collections:
Activities: {}
Companies: {}
Invitations: {}
| true | @AdminConfig =
name: 'Dashboard'
adminEmails: ['PI:EMAIL:<EMAIL>END_PI']
collections:
Activities: {}
Companies: {}
Invitations: {}
|
[
{
"context": "r templates, refer to the FAQ: https://github.com/bevry/docpad/wiki/FAQ\n\n templateData: # Specify some s",
"end": 599,
"score": 0.9598326683044434,
"start": 594,
"tag": "USERNAME",
"value": "bevry"
},
{
"context": "\"\n\n # The website author's name\n author:... | docpad.coffee | me6iaton/docapp-ghpages-test | 0 | # The DocPad Configuration File # It is simply a CoffeeScript Object which is parsed by CSON
docpadConfig =
# =================================
# Paths Configuration
# Root Path
# The root path of our our project
databaseCache: false
regenerateDelay: 100
# logLevel: 9
catchExceptions: false
growl: false
# sk... | 41524 | # The DocPad Configuration File # It is simply a CoffeeScript Object which is parsed by CSON
docpadConfig =
# =================================
# Paths Configuration
# Root Path
# The root path of our our project
databaseCache: false
regenerateDelay: 100
# logLevel: 9
catchExceptions: false
growl: false
# sk... | true | # The DocPad Configuration File # It is simply a CoffeeScript Object which is parsed by CSON
docpadConfig =
# =================================
# Paths Configuration
# Root Path
# The root path of our our project
databaseCache: false
regenerateDelay: 100
# logLevel: 9
catchExceptions: false
growl: false
# sk... |
[
{
"context": " cb(0)\n\n return process\n )\n\n email = \"deploy@nrt.io\"\n Git.setEmail(email).then(->\n try\n setE",
"end": 2446,
"score": 0.999918520450592,
"start": 2433,
"tag": "EMAIL",
"value": "deploy@nrt.io"
}
] | server/test/units/git.coffee | unepwcmc/NRT | 0 | assert = require('chai').assert
sinon = require 'sinon'
Git = require '../../lib/git'
CommandRunner = require '../../lib/command_runner'
suite('Git')
test('createTag creates a new tag for the given name and description', (done)->
newTagName = "fancy-banana"
newDescription = "Fancy Banana"
spawnStub = sinon.st... | 173250 | assert = require('chai').assert
sinon = require 'sinon'
Git = require '../../lib/git'
CommandRunner = require '../../lib/command_runner'
suite('Git')
test('createTag creates a new tag for the given name and description', (done)->
newTagName = "fancy-banana"
newDescription = "Fancy Banana"
spawnStub = sinon.st... | true | assert = require('chai').assert
sinon = require 'sinon'
Git = require '../../lib/git'
CommandRunner = require '../../lib/command_runner'
suite('Git')
test('createTag creates a new tag for the given name and description', (done)->
newTagName = "fancy-banana"
newDescription = "Fancy Banana"
spawnStub = sinon.st... |
[
{
"context": "#\n# HTML/XML highlighter\n#\n# Copyright (C) 2011 Nikolay Nemshilov\n#\nColorifier.html = Colorifier.xml = new Class Co",
"end": 65,
"score": 0.9998811483383179,
"start": 48,
"tag": "NAME",
"value": "Nikolay Nemshilov"
}
] | src/lang/html.coffee | MadRabbit/colorifier | 1 | #
# HTML/XML highlighter
#
# Copyright (C) 2011 Nikolay Nemshilov
#
Colorifier.html = Colorifier.xml = new Class Colorifier,
comments: "<!-- -->"
paint: (text, callback)->
text = @_comments(text)
text = @_embedded(text)
text = @_strings(text)
text = @_tags(text)
text = callback.call(@, t... | 1056 | #
# HTML/XML highlighter
#
# Copyright (C) 2011 <NAME>
#
Colorifier.html = Colorifier.xml = new Class Colorifier,
comments: "<!-- -->"
paint: (text, callback)->
text = @_comments(text)
text = @_embedded(text)
text = @_strings(text)
text = @_tags(text)
text = callback.call(@, text) if cal... | true | #
# HTML/XML highlighter
#
# Copyright (C) 2011 PI:NAME:<NAME>END_PI
#
Colorifier.html = Colorifier.xml = new Class Colorifier,
comments: "<!-- -->"
paint: (text, callback)->
text = @_comments(text)
text = @_embedded(text)
text = @_strings(text)
text = @_tags(text)
text = callback.call(@... |
[
{
"context": "meta:\n name: \"shiptag\"\n version: \"2018/12/27/02\"\n\ndata:\n mapname: [\n ",
"end": 22,
"score": 0.687608540058136,
"start": 15,
"tag": "NAME",
"value": "shiptag"
}
] | fcd/shiptag.cson | Flourite/poi | 0 | meta:
name: "shiptag"
version: "2018/12/27/02"
data:
mapname: [
"E1"
"E2"
"E2"
"E3"
]
color: [
"#9E9E9E"
"#569E44"
"#03A9F4"
"#FFEA00"
]
fleetname:
"zh-CN": [
"鼠输送部队"
"拉包尔舰队"
"联合舰队"
"布因派遣队"
]
"zh-TW": [
"鼠輸送部隊"
"拉包爾艦隊"
... | 55266 | meta:
name: "<NAME>"
version: "2018/12/27/02"
data:
mapname: [
"E1"
"E2"
"E2"
"E3"
]
color: [
"#9E9E9E"
"#569E44"
"#03A9F4"
"#FFEA00"
]
fleetname:
"zh-CN": [
"鼠输送部队"
"拉包尔舰队"
"联合舰队"
"布因派遣队"
]
"zh-TW": [
"鼠輸送部隊"
"拉包爾艦隊"
"... | true | meta:
name: "PI:NAME:<NAME>END_PI"
version: "2018/12/27/02"
data:
mapname: [
"E1"
"E2"
"E2"
"E3"
]
color: [
"#9E9E9E"
"#569E44"
"#03A9F4"
"#FFEA00"
]
fleetname:
"zh-CN": [
"鼠输送部队"
"拉包尔舰队"
"联合舰队"
"布因派遣队"
]
"zh-TW": [
"鼠輸送部隊"
"... |
[
{
"context": "###\ncas-analyser.coffee\n\nCopyright (c) 2015 Jeongbin Park\n\nGNU General Public License\n\nThis program is free",
"end": 57,
"score": 0.9997098445892334,
"start": 44,
"tag": "NAME",
"value": "Jeongbin Park"
}
] | coffee/miseq-analyzer.coffee | Gue-ho/Be_Analyzer | 0 | ###
cas-analyser.coffee
Copyright (c) 2015 Jeongbin Park
GNU General Public License
This program 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 the License, or
(at your option) any later ve... | 92568 | ###
cas-analyser.coffee
Copyright (c) 2015 <NAME>
GNU General Public License
This program 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 the License, or
(at your option) any later version.
... | true | ###
cas-analyser.coffee
Copyright (c) 2015 PI:NAME:<NAME>END_PI
GNU General Public License
This program 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 the License, or
(at your option) any l... |
[
{
"context": " process.env.URELEASE_USER_ID\nurelease_password = process.env.URELEASE_PASSWORD\n\n\nmodule.exports = (robot) ->\n\trobo",
"end": 917,
"score": 0.950055718421936,
"start": 902,
"tag": "PASSWORD",
"value": "process.env.URE"
},
{
"context": "USER_ID\nurelease_password =... | scripts/urelease/scripts-slack/notify_urelease.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:... | 143412 | #-------------------------------------------------------------------------------
# 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": "implements exclusive ItwayIO plugins.\n#\n# @Author nilsenj\n# @Email ni_cole@i.ua\n# @version 0.1\n###\n\n### -",
"end": 219,
"score": 0.9996095299720764,
"start": 212,
"tag": "USERNAME",
"value": "nilsenj"
},
{
"context": "e ItwayIO plugins.\n#\n# @Author nilsenj\... | resources/assets/coffee/app.coffee | itway/itway | 3 | ###! ItwayIO app.js
# ================
# Main JS application file for ItwayIO This file
# should be included in all pages. It controls some layout
# options and implements exclusive ItwayIO plugins.
#
# @Author nilsenj
# @Email ni_cole@i.ua
# @version 0.1
###
### ----------------------------------
# - Initialize th... | 225957 | ###! ItwayIO app.js
# ================
# Main JS application file for ItwayIO This file
# should be included in all pages. It controls some layout
# options and implements exclusive ItwayIO plugins.
#
# @Author nilsenj
# @Email <EMAIL>
# @version 0.1
###
### ----------------------------------
# - Initialize the Itw... | true | ###! ItwayIO app.js
# ================
# Main JS application file for ItwayIO This file
# should be included in all pages. It controls some layout
# options and implements exclusive ItwayIO plugins.
#
# @Author nilsenj
# @Email PI:EMAIL:<EMAIL>END_PI
# @version 0.1
###
### ----------------------------------
# - Ini... |
[
{
"context": "\nnikita = require '@nikitajs/core'\n{tags, ssh, scratch} = require '../test'\nth",
"end": 28,
"score": 0.6286169290542603,
"start": 26,
"tag": "USERNAME",
"value": "js"
},
{
"context": "tags.ipa\n\nipa =\n principal: 'admin'\n password: 'admin_pw'\n referer: 'https:... | packages/ipa/test/user/index.coffee | chibanemourad/node-nikita | 0 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
ipa =
principal: 'admin'
password: 'admin_pw'
referer: 'https://ipa.nikita/ipa'
url: 'https://ipa.nikita/ipa/session/json'
describe 'ipa.user', ->
they 'create a ... | 59478 |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
ipa =
principal: 'admin'
password: '<PASSWORD>'
referer: 'https://ipa.nikita/ipa'
url: 'https://ipa.nikita/ipa/session/json'
describe 'ipa.user', ->
they 'create ... | true |
nikita = require '@nikitajs/core'
{tags, ssh, scratch} = require '../test'
they = require('ssh2-they').configure ssh...
return unless tags.ipa
ipa =
principal: 'admin'
password: 'PI:PASSWORD:<PASSWORD>END_PI'
referer: 'https://ipa.nikita/ipa'
url: 'https://ipa.nikita/ipa/session/json'
describe 'ipa.user', -... |
[
{
"context": ", and talk about the bot's issues.\n#\n# Author:\n# @brucellino\n\n{ WebClient } = require \"@slack/client\"\n\n\n\nmodul",
"end": 859,
"score": 0.9997433423995972,
"start": 848,
"tag": "USERNAME",
"value": "@brucellino"
},
{
"context": "n'\n repo = 'fitsmbot'\n rob... | scripts/identity.coffee | brucellino/fitsmbot | 0 | # Description:
# This script gives the robot some identity by setting facts
# in its brain.
#
# Dependencies:
# hubot-redis-brain
#
# Configuration:
# REDIS_URL needs to be set in common.env
#
# Commands:
# hubot make an improvement - open an issue against the repo to ask the
# maintainers to improve the bo... | 95974 | # Description:
# This script gives the robot some identity by setting facts
# in its brain.
#
# Dependencies:
# hubot-redis-brain
#
# Configuration:
# REDIS_URL needs to be set in common.env
#
# Commands:
# hubot make an improvement - open an issue against the repo to ask the
# maintainers to improve the bo... | true | # Description:
# This script gives the robot some identity by setting facts
# in its brain.
#
# Dependencies:
# hubot-redis-brain
#
# Configuration:
# REDIS_URL needs to be set in common.env
#
# Commands:
# hubot make an improvement - open an issue against the repo to ask the
# maintainers to improve the bo... |
[
{
"context": "l ('==') values)\n # list.find({age: 20, name: 'John'})\n # @example Find by string query = find by no",
"end": 4613,
"score": 0.9998061060905457,
"start": 4609,
"tag": "NAME",
"value": "John"
}
] | app/components/list.coffee | pieces-js/pieces-list | 0 | 'use strict'
Base = pi.components.Base
ListEvent = require './events/list_events'
Nod = pi.Nod
utils = pi.utils
Klass = require './utils/klass'
# Basic list component
class List extends Base
merge_classes: [Klass.DISABLED, Klass.ACTIVE, Klass.HIDDEN]
@active_property @::, 'size', default: 0
@active_property @::... | 164406 | 'use strict'
Base = pi.components.Base
ListEvent = require './events/list_events'
Nod = pi.Nod
utils = pi.utils
Klass = require './utils/klass'
# Basic list component
class List extends Base
merge_classes: [Klass.DISABLED, Klass.ACTIVE, Klass.HIDDEN]
@active_property @::, 'size', default: 0
@active_property @::... | true | 'use strict'
Base = pi.components.Base
ListEvent = require './events/list_events'
Nod = pi.Nod
utils = pi.utils
Klass = require './utils/klass'
# Basic list component
class List extends Base
merge_classes: [Klass.DISABLED, Klass.ACTIVE, Klass.HIDDEN]
@active_property @::, 'size', default: 0
@active_property @::... |
[
{
"context": "###\ngrunt-init-grunt-task\nhttps://github.com/weareinteractive/grunt-init-grunt-task\n\nCopyright (c) 2013 We Are ",
"end": 61,
"score": 0.9994125366210938,
"start": 45,
"tag": "USERNAME",
"value": "weareinteractive"
},
{
"context": "eractive/grunt-init-grunt-task\n\nC... | template.coffee | gruntjs-updater/grunt-init-grunt-task | 0 | ###
grunt-init-grunt-task
https://github.com/weareinteractive/grunt-init-grunt-task
Copyright (c) 2013 We Are Interactive, "Cowboy" Ben Alman, contributors
Licensed under the MIT license.
###
"use strict"
# Basic template description.
exports.description =
"""
Create a Grunt plugin, including CoffeeScript, Mocha ... | 112868 | ###
grunt-init-grunt-task
https://github.com/weareinteractive/grunt-init-grunt-task
Copyright (c) 2013 <NAME>, "Cowboy" <NAME>, contributors
Licensed under the MIT license.
###
"use strict"
# Basic template description.
exports.description =
"""
Create a Grunt plugin, including CoffeeScript, Mocha tests, Chai and... | true | ###
grunt-init-grunt-task
https://github.com/weareinteractive/grunt-init-grunt-task
Copyright (c) 2013 PI:NAME:<NAME>END_PI, "Cowboy" PI:NAME:<NAME>END_PI, contributors
Licensed under the MIT license.
###
"use strict"
# Basic template description.
exports.description =
"""
Create a Grunt plugin, including CoffeeS... |
[
{
"context": " Cunha\"\n \"SI\":\"Slovenia\"\n \"SJ\":\"Svalbard and Jan Mayen\"\n \"SK\":\"Slovakia\"\n \"SL\":\"Sierra Leone\"\n \"SM\":\"",
"end": 4245,
"score": 0.8620093464851379,
"start": 4240,
"tag": "NAME",
"value": "Mayen"
}
] | app/assets/javascripts/country.coffee | ojny/oj_web | 2 | country_dict =
"AD":"Andorra"
"AE":"United Arab Emirates"
"AF":"Afghanistan"
"AG":"Antigua and Barbuda"
"AI":"Anguilla"
"AL":"Albania"
"AM":"Armenia"
"AO":"Angola"
"AQ":"Antarctica"
"AR":"Argentina"
"AS":"American Samoa"
"AT":"Austria"
"AU":"Australia"
"AW":"Aruba"
"AX":"Aland Islands"
"... | 103919 | country_dict =
"AD":"Andorra"
"AE":"United Arab Emirates"
"AF":"Afghanistan"
"AG":"Antigua and Barbuda"
"AI":"Anguilla"
"AL":"Albania"
"AM":"Armenia"
"AO":"Angola"
"AQ":"Antarctica"
"AR":"Argentina"
"AS":"American Samoa"
"AT":"Austria"
"AU":"Australia"
"AW":"Aruba"
"AX":"Aland Islands"
"... | true | country_dict =
"AD":"Andorra"
"AE":"United Arab Emirates"
"AF":"Afghanistan"
"AG":"Antigua and Barbuda"
"AI":"Anguilla"
"AL":"Albania"
"AM":"Armenia"
"AO":"Angola"
"AQ":"Antarctica"
"AR":"Argentina"
"AS":"American Samoa"
"AT":"Austria"
"AU":"Australia"
"AW":"Aruba"
"AX":"Aland Islands"
"... |
[
{
"context": "derer.initMap = (el) ->\n L.mapbox.accessToken = 'pk.eyJ1IjoiYWRhbWphY29iYmVja2VyIiwiYSI6Im1SVEQtSm8ifQ.ZgEOSXsv9eLfGQ-9yAmtIg'\n L.mapbox.map(el, 'adamjacobbecker.ja7plkah')\n\n",
"end": 246,
"score": 0.9996926784515381,
"start": 170,
"tag": "KEY",
"value": "pk.eyJ1IjoiYWRhb... | src/fields/map_marker.coffee | dobtco/formrenderer-base | 79 | FormRenderer.loadLeaflet = (cb) ->
if L?.GeoJSON?
cb()
else
requireOnce FormRenderer.MAPBOX_URL, cb
FormRenderer.initMap = (el) ->
L.mapbox.accessToken = 'pk.eyJ1IjoiYWRhbWphY29iYmVja2VyIiwiYSI6Im1SVEQtSm8ifQ.ZgEOSXsv9eLfGQ-9yAmtIg'
L.mapbox.map(el, 'adamjacobbecker.ja7plkah')
FormRenderer.Models.Resp... | 174991 | FormRenderer.loadLeaflet = (cb) ->
if L?.GeoJSON?
cb()
else
requireOnce FormRenderer.MAPBOX_URL, cb
FormRenderer.initMap = (el) ->
L.mapbox.accessToken = '<KEY>'
L.mapbox.map(el, 'adamjacobbecker.ja7plkah')
FormRenderer.Models.ResponseFieldMapMarker = FormRenderer.Models.ResponseField.extend
field_t... | true | FormRenderer.loadLeaflet = (cb) ->
if L?.GeoJSON?
cb()
else
requireOnce FormRenderer.MAPBOX_URL, cb
FormRenderer.initMap = (el) ->
L.mapbox.accessToken = 'PI:KEY:<KEY>END_PI'
L.mapbox.map(el, 'adamjacobbecker.ja7plkah')
FormRenderer.Models.ResponseFieldMapMarker = FormRenderer.Models.ResponseField.ext... |
[
{
"context": "###\nCopyright 2016 Resin.io\n\nLicensed under the Apache License, Version 2.0 (",
"end": 27,
"score": 0.8099269270896912,
"start": 22,
"tag": "NAME",
"value": "in.io"
}
] | packages/resin-settings-client/lib/yaml.coffee | resin-io-playground/resin-sdk-lerna | 0 | ###
Copyright 2016 Resin.io
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
distri... | 106672 | ###
Copyright 2016 Res<NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | true | ###
Copyright 2016 ResPI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
[
{
"context": "', 'link')\n selected: new Batman.Object(name: 'crono')\n helpers.render '<select data-bind=\"selected.n",
"end": 900,
"score": 0.8685765266418457,
"start": 895,
"tag": "NAME",
"value": "crono"
},
{
"context": "tman.Set()\n selected: new Batman.Object(name: 'cron... | tests/batman/view/select_rendering_test.coffee | Shipow/batman | 1 | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
oldIteratorDeferEvery = Batman.DOM.IteratorBinding::deferEvery
oldRendererDeferEvery = Batman.Renderer::deferEvery
getSelections = (node) -> node.find('option').map((i, node) -> !!node.selected).toArray()
getContents = (nod... | 77982 | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
oldIteratorDeferEvery = Batman.DOM.IteratorBinding::deferEvery
oldRendererDeferEvery = Batman.Renderer::deferEvery
getSelections = (node) -> node.find('option').map((i, node) -> !!node.selected).toArray()
getContents = (nod... | true | helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
oldIteratorDeferEvery = Batman.DOM.IteratorBinding::deferEvery
oldRendererDeferEvery = Batman.Renderer::deferEvery
getSelections = (node) -> node.find('option').map((i, node) -> !!node.selected).toArray()
getContents = (nod... |
[
{
"context": " = JSON.parse(data.toString())\n session_key = @scrobblers[params.username]\n if session_key is params.s",
"end": 2062,
"score": 0.9446306228637695,
"start": 2051,
"tag": "KEY",
"value": "@scrobblers"
},
{
"context": "artist_name\n for username, sessi... | src/server/plugins/lastfm.coffee | joshbedo/groovebasin | 1 | Plugin = require('../plugin').Plugin
LastFmNode = require('lastfm').LastFmNode
exports.Plugin = class LastFm extends Plugin
constructor: ->
super
@lastfm = new LastFmNode
api_key: process.env.npm_package_config_lastfm_api_key
secret: process.env.npm_package_config_lastfm_secret
@previous_now_... | 172448 | Plugin = require('../plugin').Plugin
LastFmNode = require('lastfm').LastFmNode
exports.Plugin = class LastFm extends Plugin
constructor: ->
super
@lastfm = new LastFmNode
api_key: process.env.npm_package_config_lastfm_api_key
secret: process.env.npm_package_config_lastfm_secret
@previous_now_... | true | Plugin = require('../plugin').Plugin
LastFmNode = require('lastfm').LastFmNode
exports.Plugin = class LastFm extends Plugin
constructor: ->
super
@lastfm = new LastFmNode
api_key: process.env.npm_package_config_lastfm_api_key
secret: process.env.npm_package_config_lastfm_secret
@previous_now_... |
[
{
"context": "#\n# Copyright 2014 Carsten Klein\n#\n# Licensed under the Apache License, Version 2.",
"end": 32,
"score": 0.9998596906661987,
"start": 19,
"tag": "NAME",
"value": "Carsten Klein"
}
] | test/coffee-script-only-inheritance-test.coffee | vibejs/vibejs-subclassof | 0 | #
# Copyright 2014 Carsten Klein
#
# 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 writ... | 76093 | #
# Copyright 2014 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | true | #
# Copyright 2014 PI:NAME:<NAME>END_PI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... |
[
{
"context": "DB\n db : 'use_this'\n authKey : 'not-this'\n password: ''\n\n tdb.acquire (err, conn) ",
"end": 1305,
"score": 0.7604880928993225,
"start": 1301,
"tag": "KEY",
"value": "this"
}
] | test/lib/db.spec.coffee | scull7/uow-store-rethink | 0 | require '../create-db.js'
rethinkdb = require 'rethinkdb'
DB = require '../../lib/db.js'
describe 'Database Connector', ->
db = null
before (done) ->
testDb = DB(rethinkConfig)
testDb.clean()
.then -> testDb.install()
.then -> done()
beforeEach -> db = DB(rethinkConfig)
it '... | 157275 | require '../create-db.js'
rethinkdb = require 'rethinkdb'
DB = require '../../lib/db.js'
describe 'Database Connector', ->
db = null
before (done) ->
testDb = DB(rethinkConfig)
testDb.clean()
.then -> testDb.install()
.then -> done()
beforeEach -> db = DB(rethinkConfig)
it '... | true | require '../create-db.js'
rethinkdb = require 'rethinkdb'
DB = require '../../lib/db.js'
describe 'Database Connector', ->
db = null
before (done) ->
testDb = DB(rethinkConfig)
testDb.clean()
.then -> testDb.install()
.then -> done()
beforeEach -> db = DB(rethinkConfig)
it '... |
[
{
"context": "should extract the name', ->\n expectedValue = 'John Smith'\n sut = new AddressParser\n sut.parse('John ",
"end": 97,
"score": 0.9998000860214233,
"start": 87,
"tag": "NAME",
"value": "John Smith"
},
{
"context": "Smith'\n sut = new AddressParser\n sut.pa... | spec/AddressParserSpec.coffee | thrustlabs/jquery-addressparser | 1 | describe 'Address Parser', ->
it 'should extract the name', ->
expectedValue = 'John Smith'
sut = new AddressParser
sut.parse('John Smith, 121 John St., Toronto, Ontario')
expect(sut.name).toEqual(expectedValue)
it 'should extract the email', ->
expectedValue = 'bob@smith.com'
sut = new Ad... | 172283 | describe 'Address Parser', ->
it 'should extract the name', ->
expectedValue = '<NAME>'
sut = new AddressParser
sut.parse('<NAME>, 121 <NAME> St., Toronto, Ontario')
expect(sut.name).toEqual(expectedValue)
it 'should extract the email', ->
expectedValue = '<EMAIL>'
sut = new AddressParser
... | true | describe 'Address Parser', ->
it 'should extract the name', ->
expectedValue = 'PI:NAME:<NAME>END_PI'
sut = new AddressParser
sut.parse('PI:NAME:<NAME>END_PI, 121 PI:NAME:<NAME>END_PI St., Toronto, Ontario')
expect(sut.name).toEqual(expectedValue)
it 'should extract the email', ->
expectedValu... |
[
{
"context": "ges', ->\n A = \"\"\"\n {\n \"properties\": { \"name\": \"Example\", \"foo\": \"Baz\", \"bar\": \"Foo\" },\n \"inports\": {\n ",
"end": 4678,
"score": 0.855310320854187,
"start": 4671,
"tag": "NAME",
"value": "Example"
}
] | spec/Journal.coffee | aretecode/noflo-built | 1 | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
else
noflo = require 'noflo'
describe 'Journal', ->
describe 'connected to initialized graph', ->
g = new noflo.graph.Graph
g.addNod... | 164022 | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
else
noflo = require 'noflo'
describe 'Journal', ->
describe 'connected to initialized graph', ->
g = new noflo.graph.Graph
g.addNod... | true | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
else
noflo = require 'noflo'
describe 'Journal', ->
describe 'connected to initialized graph', ->
g = new noflo.graph.Graph
g.addNod... |
[
{
"context": "ess', ->\n expect(s3.dnsCompatibleBucketName('1.2.3.4')).to.equal(false)\n expect(s3.dnsCompatibleB",
"end": 1627,
"score": 0.9997085332870483,
"start": 1620,
"tag": "IP_ADDRESS",
"value": "1.2.3.4"
},
{
"context": " AWS.Config(s3ForcePathStyle: true, accessKe... | test/services/s3.spec.coffee | ashharrison90/ibm-cos-sdk-js | 0 | helpers = require('../helpers')
AWS = helpers.AWS
Stream = AWS.util.stream
Buffer = AWS.util.Buffer
describe 'AWS.S3', ->
s3 = null
request = (operation, params) -> s3.makeRequest(operation, params)
beforeEach (done) ->
s3 = new AWS.S3(region: undefined)
s3.clearBucketRegionCache()
done()
descri... | 122830 | helpers = require('../helpers')
AWS = helpers.AWS
Stream = AWS.util.stream
Buffer = AWS.util.Buffer
describe 'AWS.S3', ->
s3 = null
request = (operation, params) -> s3.makeRequest(operation, params)
beforeEach (done) ->
s3 = new AWS.S3(region: undefined)
s3.clearBucketRegionCache()
done()
descri... | true | helpers = require('../helpers')
AWS = helpers.AWS
Stream = AWS.util.stream
Buffer = AWS.util.Buffer
describe 'AWS.S3', ->
s3 = null
request = (operation, params) -> s3.makeRequest(operation, params)
beforeEach (done) ->
s3 = new AWS.S3(region: undefined)
s3.clearBucketRegionCache()
done()
descri... |
[
{
"context": "ve OverlappingMarkerSpiderfier\nhttps://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet\nCopyright (c)",
"end": 66,
"score": 0.9996458888053894,
"start": 62,
"tag": "USERNAME",
"value": "jawj"
},
{
"context": "MarkerSpiderfier-Leaflet\nCopyright (c) 2011 - 2012 Geor... | lib/oms.coffee | emre2038/OverlappingMarkerSpiderfier-Leaflet | 1 | ###* @preserve OverlappingMarkerSpiderfier
https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
Copyright (c) 2011 - 2012 George MacKerron
Released under the MIT licence: http://opensource.org/licenses/mit-license
Note: The Leaflet maps API must be included *before* this code
###
# NB. string literal properties... | 65944 | ###* @preserve OverlappingMarkerSpiderfier
https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
Copyright (c) 2011 - 2012 <NAME>
Released under the MIT licence: http://opensource.org/licenses/mit-license
Note: The Leaflet maps API must be included *before* this code
###
# NB. string literal properties -- object... | true | ###* @preserve OverlappingMarkerSpiderfier
https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
Copyright (c) 2011 - 2012 PI:NAME:<NAME>END_PI
Released under the MIT licence: http://opensource.org/licenses/mit-license
Note: The Leaflet maps API must be included *before* this code
###
# NB. string literal proper... |
[
{
"context": " require 'scaleway'\n\nclient = new Api\n token: '<YOUR_TOKEN>'\n\ndata =\n name: 'c1'\n organization: '<OR",
"end": 59,
"score": 0.5107666254043579,
"start": 55,
"tag": "PASSWORD",
"value": "YOUR"
},
{
"context": "ire 'scaleway'\n\nclient = new Api\n token: '<YOU... | examples/simple.coffee | moul/node-scaleway | 18 | Api = require 'scaleway'
client = new Api
token: '<YOUR_TOKEN>'
data =
name: 'c1'
organization: '<ORGANIZATION_ID>'
image: '<IMAGE_ID>'
tags: ['test', 'demo']
client.post '/servers', data, (err, res) ->
console.log res.server
| 11938 | Api = require 'scaleway'
client = new Api
token: '<<PASSWORD>_<KEY>>'
data =
name: 'c1'
organization: '<ORGANIZATION_ID>'
image: '<IMAGE_ID>'
tags: ['test', 'demo']
client.post '/servers', data, (err, res) ->
console.log res.server
| true | Api = require 'scaleway'
client = new Api
token: '<PI:PASSWORD:<PASSWORD>END_PI_PI:KEY:<KEY>END_PI>'
data =
name: 'c1'
organization: '<ORGANIZATION_ID>'
image: '<IMAGE_ID>'
tags: ['test', 'demo']
client.post '/servers', data, (err, res) ->
console.log res.server
|
[
{
"context": " ento().use\n greet: ->\n msg += \"Hello, #{@name}\"\n\n new Person(name: \"Jake\").greet()\n e",
"end": 135,
"score": 0.5104079246520996,
"start": 135,
"tag": "NAME",
"value": ""
},
{
"context": "o().use\n greet: ->\n msg += \"Hello, #{@na... | test/use_test.coffee | rstacruz/ento | 11 | require './setup'
describe 'use', ->
it 'basic use', ->
msg = ''
Person = ento().use
greet: ->
msg += "Hello, #{@name}"
new Person(name: "Jake").greet()
expect(msg).to.eq "Hello, Jake"
it 'multiple', ->
Armored = { armor: -> 200 }
Villain = { alignment: -> 'evil' }
Uni... | 143073 | require './setup'
describe 'use', ->
it 'basic use', ->
msg = ''
Person = ento().use
greet: ->
msg += "Hello,<NAME> #{@name}"
new Person(name: "<NAME>").greet()
expect(msg).to.eq "Hello, <NAME>"
it 'multiple', ->
Armored = { armor: -> 200 }
Villain = { alignment: -> 'evil' ... | true | require './setup'
describe 'use', ->
it 'basic use', ->
msg = ''
Person = ento().use
greet: ->
msg += "Hello,PI:NAME:<NAME>END_PI #{@name}"
new Person(name: "PI:NAME:<NAME>END_PI").greet()
expect(msg).to.eq "Hello, PI:NAME:<NAME>END_PI"
it 'multiple', ->
Armored = { armor: -> 2... |
[
{
"context": "eturns last meme (text and image).\n#\n# Author:\n# Eunomie\n# Based 9gag.coffee by EnriqueVidal\n\ncheerio = ",
"end": 674,
"score": 0.9749237298965454,
"start": 667,
"tag": "NAME",
"value": "Eunomie"
},
{
"context": ".\n#\n# Author:\n# Eunomie\n# Based 9gag.co... | node_modules/hubot-codinglove/src/codinglove.coffee | mikelovskij/sauron2 | 18 | # Description:
# Display meme from "The coding love <http://thecodinglove.com>"
# or "les joies du code <http://lesjoiesducode.tumblr.com>".
#
# Dependencies:
# "cheerio": "0.7.0"
# "he": "0.4.1"
#
# Configuration:
# None
#
# Commands:
# hubot [give me some] joy [asshole] - Return a random meme (coding love... | 78965 | # Description:
# Display meme from "The coding love <http://thecodinglove.com>"
# or "les joies du code <http://lesjoiesducode.tumblr.com>".
#
# Dependencies:
# "cheerio": "0.7.0"
# "he": "0.4.1"
#
# Configuration:
# None
#
# Commands:
# hubot [give me some] joy [asshole] - Return a random meme (coding love... | true | # Description:
# Display meme from "The coding love <http://thecodinglove.com>"
# or "les joies du code <http://lesjoiesducode.tumblr.com>".
#
# Dependencies:
# "cheerio": "0.7.0"
# "he": "0.4.1"
#
# Configuration:
# None
#
# Commands:
# hubot [give me some] joy [asshole] - Return a random meme (coding love... |
[
{
"context": "he latest English versions:\n## https://github.com/uploadcare/uploadcare-widget/blob/master/app/assets/javascri",
"end": 185,
"score": 0.9750394821166992,
"start": 175,
"tag": "USERNAME",
"value": "uploadcare"
},
{
"context": " upload: 'No s\\'ha pogut carregar'\n ... | app/assets/javascripts/uploadcare/locale/ca.js.coffee | Tlapi/uploadcare-widget | 0 | ##
## Please, do not use this locale as a reference for new translations.
## It could be outdated or incomplete. Always use the latest English versions:
## https://github.com/uploadcare/uploadcare-widget/blob/master/app/assets/javascripts/uploadcare/locale/en.js.coffee
##
## Any fixes are welcome.
##
uploadcare.namesp... | 202105 | ##
## Please, do not use this locale as a reference for new translations.
## It could be outdated or incomplete. Always use the latest English versions:
## https://github.com/uploadcare/uploadcare-widget/blob/master/app/assets/javascripts/uploadcare/locale/en.js.coffee
##
## Any fixes are welcome.
##
uploadcare.namesp... | true | ##
## Please, do not use this locale as a reference for new translations.
## It could be outdated or incomplete. Always use the latest English versions:
## https://github.com/uploadcare/uploadcare-widget/blob/master/app/assets/javascripts/uploadcare/locale/en.js.coffee
##
## Any fixes are welcome.
##
uploadcare.namesp... |
[
{
"context": "ealer', ->\n dealer = null\n storage = {}\n id = 'dlr'\n\n beforeEach ->\n dealer = new Dealer(storage",
"end": 250,
"score": 0.9537742137908936,
"start": 247,
"tag": "USERNAME",
"value": "dlr"
},
{
"context": "hould change the game', ->\n dealer.changeGame('c... | spec/poker/dealer-spec.coffee | robksawyer/hubot-poker | 1 | Game = require('../../js/token-poker/base-game')
Dealer = require('../../js/poker/dealer')
GameCommand = require('../../js/poker/game-command')
Rounds = require('../../js/poker/round')
describe 'Dealer', ->
dealer = null
storage = {}
id = 'dlr'
beforeEach ->
dealer = new Dealer(storage, id, [KillEmAll, Lo... | 96623 | Game = require('../../js/token-poker/base-game')
Dealer = require('../../js/poker/dealer')
GameCommand = require('../../js/poker/game-command')
Rounds = require('../../js/poker/round')
describe 'Dealer', ->
dealer = null
storage = {}
id = 'dlr'
beforeEach ->
dealer = new Dealer(storage, id, [KillEmAll, Lo... | true | Game = require('../../js/token-poker/base-game')
Dealer = require('../../js/poker/dealer')
GameCommand = require('../../js/poker/game-command')
Rounds = require('../../js/poker/round')
describe 'Dealer', ->
dealer = null
storage = {}
id = 'dlr'
beforeEach ->
dealer = new Dealer(storage, id, [KillEmAll, Lo... |
[
{
"context": "IN_API_KEY: 'foo'\n\t\t\t\t\tRESIN_SUPERVISOR_API_KEY: 'bar'\n\t\t\t\t\tOTHER_VAR: 'hi'\n\t\t\t\t}\n\t\t}\n\t\t@eventTracker.t",
"end": 2443,
"score": 0.6418049335479736,
"start": 2440,
"tag": "KEY",
"value": "bar"
}
] | test/09-event-tracker.spec.coffee | hippolyt/resin-supervisor | 0 | mixpanel = require 'mixpanel'
m = require 'mochainon'
{ expect } = m.chai
{ stub } = m.sinon
supervisorVersion = require '../src/lib/supervisor-version'
{ EventTracker } = require '../src/event-tracker'
describe 'EventTracker', ->
before ->
stub(mixpanel, 'init').callsFake (token) ->
return {
token: token
... | 141356 | mixpanel = require 'mixpanel'
m = require 'mochainon'
{ expect } = m.chai
{ stub } = m.sinon
supervisorVersion = require '../src/lib/supervisor-version'
{ EventTracker } = require '../src/event-tracker'
describe 'EventTracker', ->
before ->
stub(mixpanel, 'init').callsFake (token) ->
return {
token: token
... | true | mixpanel = require 'mixpanel'
m = require 'mochainon'
{ expect } = m.chai
{ stub } = m.sinon
supervisorVersion = require '../src/lib/supervisor-version'
{ EventTracker } = require '../src/event-tracker'
describe 'EventTracker', ->
before ->
stub(mixpanel, 'init').callsFake (token) ->
return {
token: token
... |
[
{
"context": "###\nCopyright (c) 2002-2013 \"Neo Technology,\"\nNetwork Engine for Objects in Lund AB [http://n",
"end": 43,
"score": 0.5616934895515442,
"start": 33,
"tag": "NAME",
"value": "Technology"
}
] | community/server/src/main/coffeescript/ribcage/ui/Tooltip.coffee | rebaze/neo4j | 1 | ###
Copyright (c) 2002-2013 "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 o... | 154300 | ###
Copyright (c) 2002-2013 "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 th... | true | ###
Copyright (c) 2002-2013 "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 v... |
[
{
"context": "sed under the MIT License\nDate: 11-08-2015\nAuthor: Julio Cesar Fausto\nSource: https://github.com/jcfausto/jcfausto-com-",
"end": 110,
"score": 0.9998652338981628,
"start": 92,
"tag": "NAME",
"value": "Julio Cesar Fausto"
},
{
"context": "or: Julio Cesar Fausto\nSourc... | app/assets/javascripts/components/achievement_item.js.jsx.coffee | jcfausto/jcfausto-rails-website | 1 | ###
AchievementItem React Component
Released under the MIT License
Date: 11-08-2015
Author: Julio Cesar Fausto
Source: https://github.com/jcfausto/jcfausto-com-rails
###
@AchievementItem = React.createClass
getInitialState: ->
when: this.props.when
what: this.props.what
logWhen: ->
console.log("abacax... | 82341 | ###
AchievementItem React Component
Released under the MIT License
Date: 11-08-2015
Author: <NAME>
Source: https://github.com/jcfausto/jcfausto-com-rails
###
@AchievementItem = React.createClass
getInitialState: ->
when: this.props.when
what: this.props.what
logWhen: ->
console.log("abacaxi")
#I am... | true | ###
AchievementItem React Component
Released under the MIT License
Date: 11-08-2015
Author: PI:NAME:<NAME>END_PI
Source: https://github.com/jcfausto/jcfausto-com-rails
###
@AchievementItem = React.createClass
getInitialState: ->
when: this.props.when
what: this.props.what
logWhen: ->
console.log("abac... |
[
{
"context": "\n collection.add(new Contact({id: 'b1', name: 'Ringo', number: '555-555-5556'}))\n collection.add(ne",
"end": 1586,
"score": 0.9996006488800049,
"start": 1581,
"tag": "NAME",
"value": "Ringo"
},
{
"context": "\n collection.add(new Contact({id: 'b2', name: 'Geo... | test/spec/core/collection-observable.tests.coffee | metacommunications/knockback | 0 | assert = assert or require?('chai').assert
describe 'collection-observable @quick @collection-observable', ->
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(!!_, '_')... | 108240 | assert = assert or require?('chai').assert
describe 'collection-observable @quick @collection-observable', ->
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(!!_, '_')... | true | assert = assert or require?('chai').assert
describe 'collection-observable @quick @collection-observable', ->
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(!!_, '_')... |
[
{
"context": "ection which user have specified\n if key is \"chalk\"\n # NOTE: With new section, the previous s",
"end": 3429,
"score": 0.9353474378585815,
"start": 3424,
"tag": "KEY",
"value": "chalk"
}
] | src/parse.coffee | adrianlee44/chalkboard | 1 | #
# @chalk function
# @function
# @name parse
# @description
# Run through code and parse out all the comments
# @param {String} code Source code to be parsed
# @param {Object} lang Language settings for the file
# @param {Object} options User settings (default {})
# @returns {Array} List of object... | 116047 | #
# @chalk function
# @function
# @name parse
# @description
# Run through code and parse out all the comments
# @param {String} code Source code to be parsed
# @param {Object} lang Language settings for the file
# @param {Object} options User settings (default {})
# @returns {Array} List of object... | true | #
# @chalk function
# @function
# @name parse
# @description
# Run through code and parse out all the comments
# @param {String} code Source code to be parsed
# @param {Object} lang Language settings for the file
# @param {Object} options User settings (default {})
# @returns {Array} List of object... |
[
{
"context": "s for logging messages to the console.\n#\n# @author Matthew Wagerfield @mwagerfield\n#\n#=================================",
"end": 230,
"score": 0.999879002571106,
"start": 212,
"tag": "NAME",
"value": "Matthew Wagerfield"
},
{
"context": "ges to the console.\n#\n# @a... | development/production/source/assets/scripts/coffee/core/Base.coffee | wagerfield/cinnamon | 2 | ###
#============================================================
#
# Project Base
#
# Defines the project name and namespace as well as some
# conveniece methods for logging messages to the console.
#
# @author Matthew Wagerfield @mwagerfield
#
#============================================================
###
# Debug... | 197351 | ###
#============================================================
#
# Project Base
#
# Defines the project name and namespace as well as some
# conveniece methods for logging messages to the console.
#
# @author <NAME> @mwagerfield
#
#============================================================
###
# Debug flag.
DEBUG... | true | ###
#============================================================
#
# Project Base
#
# Defines the project name and namespace as well as some
# conveniece methods for logging messages to the console.
#
# @author PI:NAME:<NAME>END_PI @mwagerfield
#
#============================================================
###
# Deb... |
[
{
"context": " #\n # ['Form', 'enterer', 'first_name', '=', 'Jim']\n #\n # will return all forms that were entered",
"end": 1265,
"score": 0.9997815489768982,
"start": 1262,
"tag": "NAME",
"value": "Jim"
},
{
"context": " that were entered by a user with the first name 'Jim'.\n... | app/scripts/views/filter-expression.coffee | OpenSourceFieldlinguistics/dative | 7 | define [
'./base'
'./../templates/filter-expression'
'autosize'
], (BaseView, filterExpressionTemplate) ->
# Filter Expression View
# ----------------------
#
# A view for a filter expression, i.e., a set of inputs for creating a filter
# expression for building the type of search (i.e., query) that th... | 8443 | define [
'./base'
'./../templates/filter-expression'
'autosize'
], (BaseView, filterExpressionTemplate) ->
# Filter Expression View
# ----------------------
#
# A view for a filter expression, i.e., a set of inputs for creating a filter
# expression for building the type of search (i.e., query) that th... | true | define [
'./base'
'./../templates/filter-expression'
'autosize'
], (BaseView, filterExpressionTemplate) ->
# Filter Expression View
# ----------------------
#
# A view for a filter expression, i.e., a set of inputs for creating a filter
# expression for building the type of search (i.e., query) that th... |
[
{
"context": "env.data.redis.last_error\n\t\t\tnext = ->\n\t\t\t\ttoken = env.data.generateUid()\n\t\t\t\t(env.data.redis.multi [\n\t\t\t\t\t['hmset', 'sessi",
"end": 2041,
"score": 0.8731780648231506,
"start": 2019,
"tag": "KEY",
"value": "env.data.generateUid()"
},
{
"context": "to... | plugins/admin-auth/auth.coffee | pmstss/oauthd | 4 | # OAuth daemon
# Copyright (C) 2013 Webshell SAS
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed... | 144601 | # OAuth daemon
# Copyright (C) 2013 Webshell SAS
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed... | true | # OAuth daemon
# Copyright (C) 2013 Webshell SAS
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed... |
[
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)\n# MIT Licensed\n###\n\nrequire.p",
"end": 44,
"score": 0.9998375773429871,
"start": 36,
"tag": "NAME",
"value": "Jae Kwon"
},
{
"context": "###\n# YCatalyst\n# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.... | server.coffee | jaekwon/YCatalyst | 3 | ###
# YCatalyst
# Copyright(c) 2011 Jae Kwon (jae@ycatalyst.com)
# MIT Licensed
###
require.paths.unshift 'vendor'
require.paths.unshift 'vendor/validator'
http = require 'http'
utils = require './utils'
mongo = require './mongo'
fu = require './fu'
rec = require './static/record'
cookie = require 'cookie-node'
_ = r... | 81243 | ###
# YCatalyst
# Copyright(c) 2011 <NAME> (<EMAIL>)
# MIT Licensed
###
require.paths.unshift 'vendor'
require.paths.unshift 'vendor/validator'
http = require 'http'
utils = require './utils'
mongo = require './mongo'
fu = require './fu'
rec = require './static/record'
cookie = require 'cookie-node'
_ = require './st... | true | ###
# YCatalyst
# Copyright(c) 2011 PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
# MIT Licensed
###
require.paths.unshift 'vendor'
require.paths.unshift 'vendor/validator'
http = require 'http'
utils = require './utils'
mongo = require './mongo'
fu = require './fu'
rec = require './static/record'
cookie = require 'c... |
[
{
"context": "###################################\n#\n# Created by Markus\n#\n###############################################",
"end": 77,
"score": 0.9990465641021729,
"start": 71,
"tag": "NAME",
"value": "Markus"
}
] | server/1_collections/_collections.coffee | agottschalk10/worklearn | 0 | #######################################################
#
# Created by Markus
#
#######################################################
#######################################################
@Secrets = new Mongo.Collection("secrets")
@Logging = new Mongo.Collection("logging")
| 53895 | #######################################################
#
# Created by <NAME>
#
#######################################################
#######################################################
@Secrets = new Mongo.Collection("secrets")
@Logging = new Mongo.Collection("logging")
| true | #######################################################
#
# Created by PI:NAME:<NAME>END_PI
#
#######################################################
#######################################################
@Secrets = new Mongo.Collection("secrets")
@Logging = new Mongo.Collection("logging")
|
[
{
"context": "essage + person\n\t\n# framerSaysHelloWorld(string, 'Laine')\n\nsayHi = (message) ->\n\tprint message\n\n# sayHi(s",
"end": 391,
"score": 0.9959349632263184,
"start": 386,
"tag": "NAME",
"value": "Laine"
}
] | prototypes/framerBasics.framer/app.coffee | davo/FramerNYCMeetup | 7 | # 1. CofeeScript Basics (spaces, vars, functions, comments)
# 2. BackgroundLayer
# 3. Layer Properties, Centering
# 4. Draggable
# 5. Constraints Layer, Frame
# 6. Set Constraints, Events
# 7. States / Animation
# This is a comment
# Variables
string = "Hello there, "
number = 42
framerSaysHelloWorld = (message, per... | 167586 | # 1. CofeeScript Basics (spaces, vars, functions, comments)
# 2. BackgroundLayer
# 3. Layer Properties, Centering
# 4. Draggable
# 5. Constraints Layer, Frame
# 6. Set Constraints, Events
# 7. States / Animation
# This is a comment
# Variables
string = "Hello there, "
number = 42
framerSaysHelloWorld = (message, per... | true | # 1. CofeeScript Basics (spaces, vars, functions, comments)
# 2. BackgroundLayer
# 3. Layer Properties, Centering
# 4. Draggable
# 5. Constraints Layer, Frame
# 6. Set Constraints, Events
# 7. States / Animation
# This is a comment
# Variables
string = "Hello there, "
number = 42
framerSaysHelloWorld = (message, per... |
[
{
"context": "utils'\ncsv = require 'csv-parser'\n\nCHANNEL_KEY = 'OrderXmlFileExport'\n\nargv = utils.getDefaultOptions()\n .describe('s",
"end": 387,
"score": 0.9519387483596802,
"start": 369,
"tag": "KEY",
"value": "OrderXmlFileExport"
},
{
"context": "ials,\n host: sftp... | src/coffee/run.coffee | celeste-horgan/sphere-order-export | 3 | path = require 'path'
_ = require 'underscore'
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
tmp = Promise.promisifyAll require('tmp')
{ProjectCredentialsConfig, Sftp} = require 'sphere-node-utils'
package_json = require '../package.json'
OrderExport = require './orderexport'
utils = require './u... | 191607 | path = require 'path'
_ = require 'underscore'
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
tmp = Promise.promisifyAll require('tmp')
{ProjectCredentialsConfig, Sftp} = require 'sphere-node-utils'
package_json = require '../package.json'
OrderExport = require './orderexport'
utils = require './u... | true | path = require 'path'
_ = require 'underscore'
Promise = require 'bluebird'
fs = Promise.promisifyAll require('fs')
tmp = Promise.promisifyAll require('tmp')
{ProjectCredentialsConfig, Sftp} = require 'sphere-node-utils'
package_json = require '../package.json'
OrderExport = require './orderexport'
utils = require './u... |
[
{
"context": "36'\n binddn: 'cn=Manager,dc=ryba'\n passwd: 'test'\n suffix_dn: 'ou=users,dc=ryba' # used by ldap",
"end": 338,
"score": 0.9994755387306213,
"start": 334,
"tag": "PASSWORD",
"value": "test"
},
{
"context": " null\n ,\n ssh: host: 'localhost', username: 'r... | packages/core/env/systemctl/test.coffee | chibanemourad/node-nikita | 0 |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: true # cant be activated because systemctl not compatible with Docker
conditions_is_os:
arch: '64'
name: 'centos'
version: '7.5'
ldap:
uri: 'ldaps://master3.ryba:636'
binddn: 'cn=Manager,dc=ryba'... | 31257 |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: true # cant be activated because systemctl not compatible with Docker
conditions_is_os:
arch: '64'
name: 'centos'
version: '7.5'
ldap:
uri: 'ldaps://master3.ryba:636'
binddn: 'cn=Manager,dc=ryba'... | true |
module.exports =
tags:
service_install: true
service_startup: true
service_systemctl: true # cant be activated because systemctl not compatible with Docker
conditions_is_os:
arch: '64'
name: 'centos'
version: '7.5'
ldap:
uri: 'ldaps://master3.ryba:636'
binddn: 'cn=Manager,dc=ryba'... |
[
{
"context": "ption: 'Throw dies'\n version: '0.1'\n authors: ['Álvaro Cuesta']\n",
"end": 839,
"score": 0.9998774528503418,
"start": 826,
"tag": "NAME",
"value": "Álvaro Cuesta"
}
] | plugins/dice.coffee | alvaro-cuesta/nerdobot | 2 | util = require '../lib/util'
{floor, random} = Math
DEFAULT_DIES = 1
DEFAULT_FACES = 6
MAX_DIES = 100
module.exports = ->
@addCommand 'dice',
args: "<dices, default=#{DEFAULT_DIES}, max=#{MAX_DIES}> <faces, default=#{DEFAULT_FACES}>"
description: 'Throw dies and show their sum'
({nick}, message, to) =>... | 72546 | util = require '../lib/util'
{floor, random} = Math
DEFAULT_DIES = 1
DEFAULT_FACES = 6
MAX_DIES = 100
module.exports = ->
@addCommand 'dice',
args: "<dices, default=#{DEFAULT_DIES}, max=#{MAX_DIES}> <faces, default=#{DEFAULT_FACES}>"
description: 'Throw dies and show their sum'
({nick}, message, to) =>... | true | util = require '../lib/util'
{floor, random} = Math
DEFAULT_DIES = 1
DEFAULT_FACES = 6
MAX_DIES = 100
module.exports = ->
@addCommand 'dice',
args: "<dices, default=#{DEFAULT_DIES}, max=#{MAX_DIES}> <faces, default=#{DEFAULT_FACES}>"
description: 'Throw dies and show their sum'
({nick}, message, to) =>... |
[
{
"context": "en'\n\t\t\tlocalStorage.setItem 'visitorToken', Random.id()\n\n\t\ttoken.set localStorage.getItem 'visitorToken",
"end": 302,
"score": 0.4122096002101898,
"start": 300,
"tag": "KEY",
"value": "id"
}
] | packages/rocketchat-livechat/app/client/lib/_visitor.coffee | claysaad/Rocket.Chat | 1 | msgStream = new Meteor.Streamer 'room-messages'
@visitor = new class
token = new ReactiveVar null
room = new ReactiveVar null
roomToSubscribe = new ReactiveVar null
roomSubscribed = null
register = ->
if not localStorage.getItem 'visitorToken'
localStorage.setItem 'visitorToken', Random.id()
token.set lo... | 96893 | msgStream = new Meteor.Streamer 'room-messages'
@visitor = new class
token = new ReactiveVar null
room = new ReactiveVar null
roomToSubscribe = new ReactiveVar null
roomSubscribed = null
register = ->
if not localStorage.getItem 'visitorToken'
localStorage.setItem 'visitorToken', Random.<KEY>()
token.set... | true | msgStream = new Meteor.Streamer 'room-messages'
@visitor = new class
token = new ReactiveVar null
room = new ReactiveVar null
roomToSubscribe = new ReactiveVar null
roomSubscribed = null
register = ->
if not localStorage.getItem 'visitorToken'
localStorage.setItem 'visitorToken', Random.PI:KEY:<KEY>END_PI()... |
[
{
"context": "# Copyright (c) 2013 JeongHoon Byun aka \"Outsider\", <http://blog.outsider.ne.kr/>\n# L",
"end": 35,
"score": 0.9998748898506165,
"start": 21,
"tag": "NAME",
"value": "JeongHoon Byun"
},
{
"context": "# Copyright (c) 2013 JeongHoon Byun aka \"Outsider\", <http://blog.o... | test/parser/php-parser.test.coffee | uppalapatisujitha/CodingConventionofCommitHistory | 421 | # Copyright (c) 2013 JeongHoon Byun aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
parser = require '../../src/parser/php-parser'
describe 'php-parser >', ->
describe 'indent >', ->
it 'check space indent #1', ->
... | 202330 | # Copyright (c) 2013 <NAME> aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
parser = require '../../src/parser/php-parser'
describe 'php-parser >', ->
describe 'indent >', ->
it 'check space indent #1', ->
con... | true | # Copyright (c) 2013 PI:NAME:<NAME>END_PI aka "Outsider", <http://blog.outsider.ne.kr/>
# Licensed under the MIT license.
# <http://outsider.mit-license.org/>
should = require 'should'
parser = require '../../src/parser/php-parser'
describe 'php-parser >', ->
describe 'indent >', ->
it 'check space indent #1'... |
[
{
"context": " @fileoverview Prevent usage of setState\n# @author Mark Dalgleish\n###\n'use strict'\n\n# -----------------------------",
"end": 71,
"score": 0.9998747706413269,
"start": 57,
"tag": "NAME",
"value": "Mark Dalgleish"
}
] | src/tests/rules/no-render-return-value.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Prevent usage of setState
# @author Mark Dalgleish
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/no-render-return-value'
... | 103542 | ###*
# @fileoverview Prevent usage of setState
# @author <NAME>
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/no-render-return-value'
{RuleTes... | true | ###*
# @fileoverview Prevent usage of setState
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require '../../rules/no-render-return-v... |
[
{
"context": "store = secrets\n store: tmp\n password: 'mysecret'\n store.init (err) ->\n return next err if",
"end": 287,
"score": 0.9993270635604858,
"start": 279,
"tag": "PASSWORD",
"value": "mysecret"
},
{
"context": "store = secrets\n store: tmp\n pas... | test/secrets/index.coffee | WIN32GG/node-masson | 0 |
nikita = require 'nikita'
secrets = require '../../lib/secrets'
describe 'command configure', ->
tmp = '/tmp/masson_store'
beforeEach ->
nikita
.system.remove tmp
.promise()
it 'init', (next) ->
store = secrets
store: tmp
password: 'mysecret'
store.init (err) ->
r... | 57331 |
nikita = require 'nikita'
secrets = require '../../lib/secrets'
describe 'command configure', ->
tmp = '/tmp/masson_store'
beforeEach ->
nikita
.system.remove tmp
.promise()
it 'init', (next) ->
store = secrets
store: tmp
password: '<PASSWORD>'
store.init (err) ->
... | true |
nikita = require 'nikita'
secrets = require '../../lib/secrets'
describe 'command configure', ->
tmp = '/tmp/masson_store'
beforeEach ->
nikita
.system.remove tmp
.promise()
it 'init', (next) ->
store = secrets
store: tmp
password: 'PI:PASSWORD:<PASSWORD>END_PI'
store.i... |
[
{
"context": "st[] = 2\nlist[] = 3\n\n; add a group\n[person]\nname = Alexander Schilling\njob = Developer\n\n; add a subgroup\n[city.address]\n",
"end": 365,
"score": 0.9998353719711304,
"start": 346,
"tag": "NAME",
"value": "Alexander Schilling"
}
] | src/type/ini.coffee | alinex/node-formatter | 0 | ###
INI
===================================================
This is one of the oldest formats used for configurations. It is very simple but
allows also complex objects through extended groups.
Common file extension `ini`.
``` ini
; simple text
string = test
; add a simple list
list[] = 1
list[] = 2
list[] = 3
; ad... | 190884 | ###
INI
===================================================
This is one of the oldest formats used for configurations. It is very simple but
allows also complex objects through extended groups.
Common file extension `ini`.
``` ini
; simple text
string = test
; add a simple list
list[] = 1
list[] = 2
list[] = 3
; ad... | true | ###
INI
===================================================
This is one of the oldest formats used for configurations. It is very simple but
allows also complex objects through extended groups.
Common file extension `ini`.
``` ini
; simple text
string = test
; add a simple list
list[] = 1
list[] = 2
list[] = 3
; ad... |
[
{
"context": "#\npsJS - Pub/sub implementation with test\n\nAuthor: kk- <karcsi@ekezet.com>\nLicense: UNLICENSE\n###\nclass ",
"end": 55,
"score": 0.9985396862030029,
"start": 53,
"tag": "USERNAME",
"value": "kk"
},
{
"context": " - Pub/sub implementation with test\n\nAuthor: kk- <ka... | src/psjs.coffee | atomgomba/psjs | 0 | ###
psJS - Pub/sub implementation with test
Author: kk- <karcsi@ekezet.com>
License: UNLICENSE
###
class psJS
listeners = {}
@on: (name, fun) ->
if name of listeners
listeners[name].push fun if not listeners[name].once
else
listeners[name] = [fun]
return @
... | 170395 | ###
psJS - Pub/sub implementation with test
Author: kk- <<EMAIL>>
License: UNLICENSE
###
class psJS
listeners = {}
@on: (name, fun) ->
if name of listeners
listeners[name].push fun if not listeners[name].once
else
listeners[name] = [fun]
return @
@once: (n... | true | ###
psJS - Pub/sub implementation with test
Author: kk- <PI:EMAIL:<EMAIL>END_PI>
License: UNLICENSE
###
class psJS
listeners = {}
@on: (name, fun) ->
if name of listeners
listeners[name].push fun if not listeners[name].once
else
listeners[name] = [fun]
return @... |
[
{
"context": "\n '(c) 2014' + bannerDate + ' L.systems SARL, Etienne Folio, Quentin Raynaud'\n 'https://bitbucket.org/ls",
"end": 584,
"score": 0.9998347163200378,
"start": 571,
"tag": "NAME",
"value": "Etienne Folio"
},
{
"context": "4' + bannerDate + ' L.systems SARL, Eti... | Gruntfile.coffee | Intergen-NZ/angular-extend-promises | 0 | shell = require 'shelljs'
SemVer = require('semver').SemVer
webpack = require 'webpack'
module.exports = (grunt) ->
grunt.loadTasks file for file in grunt.file.expand 'node_modules/grunt-*/tasks'
pkg = grunt.file.readJSON 'package.json'
license = grunt.file.read 'LICENSE'
bannerDate = if grunt.template.toda... | 46200 | shell = require 'shelljs'
SemVer = require('semver').SemVer
webpack = require 'webpack'
module.exports = (grunt) ->
grunt.loadTasks file for file in grunt.file.expand 'node_modules/grunt-*/tasks'
pkg = grunt.file.readJSON 'package.json'
license = grunt.file.read 'LICENSE'
bannerDate = if grunt.template.toda... | true | shell = require 'shelljs'
SemVer = require('semver').SemVer
webpack = require 'webpack'
module.exports = (grunt) ->
grunt.loadTasks file for file in grunt.file.expand 'node_modules/grunt-*/tasks'
pkg = grunt.file.readJSON 'package.json'
license = grunt.file.read 'LICENSE'
bannerDate = if grunt.template.toda... |
[
{
"context": "<SiteID>#{@userId}</SiteID>\n <Password>#{@password}</Password>\n </ServiceHeader>\n </Requ",
"end": 560,
"score": 0.6636025905609131,
"start": 551,
"tag": "PASSWORD",
"value": "@password"
}
] | src/dhl.coffee | humm64/ship_new | 0 | {Parser} = require 'xml2js'
moment = require 'moment-timezone'
{titleCase, upperCaseFirst, lowerCase} = require 'change-case'
{ShipperClient} = require './shipper'
class DhlClient extends ShipperClient
constructor: ({@userId, @password}, @options) ->
super
@parser = new Parser()
generateRequest: (trk) ->... | 115372 | {Parser} = require 'xml2js'
moment = require 'moment-timezone'
{titleCase, upperCaseFirst, lowerCase} = require 'change-case'
{ShipperClient} = require './shipper'
class DhlClient extends ShipperClient
constructor: ({@userId, @password}, @options) ->
super
@parser = new Parser()
generateRequest: (trk) ->... | true | {Parser} = require 'xml2js'
moment = require 'moment-timezone'
{titleCase, upperCaseFirst, lowerCase} = require 'change-case'
{ShipperClient} = require './shipper'
class DhlClient extends ShipperClient
constructor: ({@userId, @password}, @options) ->
super
@parser = new Parser()
generateRequest: (trk) ->... |
[
{
"context": "do fill = (item = 'Andy') ->\n\t$('#content').append \"#{item}\"\n\tconsole.dir",
"end": 23,
"score": 0.9994560480117798,
"start": 19,
"tag": "NAME",
"value": "Andy"
}
] | components/coffee/script.coffee | IcthusSolutions/coffeeScript | 0 | do fill = (item = 'Andy') ->
$('#content').append "#{item}"
console.dir @fill
fill | 184082 | do fill = (item = '<NAME>') ->
$('#content').append "#{item}"
console.dir @fill
fill | true | do fill = (item = 'PI:NAME:<NAME>END_PI') ->
$('#content').append "#{item}"
console.dir @fill
fill |
[
{
"context": " '55f7d19c85efe377996a1231'\n accessToken: 'afasdfasdfas'\n showname: 'Teambition'\n ",
"end": 342,
"score": 0.809808611869812,
"start": 340,
"tag": "KEY",
"value": "af"
},
{
"context": "55f7d19c85efe377996a1231'\n accessToken: 'afasdfasdfas'\... | talk-api2x/test/servers/account.coffee | ikingye/talk-os | 3,084 | express = require 'express'
module.exports = app = express()
app.get '/v1/user/get', (req, res) ->
accountToken = req.query['accountToken']
accountToken.should.eql 'OKKKKKKK'
data =
_id: '55f7d19c85efe377996a1232'
unions:
[
refer: 'teambition'
openId: '55f7d19c85efe377996a1231'
... | 52636 | express = require 'express'
module.exports = app = express()
app.get '/v1/user/get', (req, res) ->
accountToken = req.query['accountToken']
accountToken.should.eql 'OKKKKKKK'
data =
_id: '55f7d19c85efe377996a1232'
unions:
[
refer: 'teambition'
openId: '55f7d19c85efe377996a1231'
... | true | express = require 'express'
module.exports = app = express()
app.get '/v1/user/get', (req, res) ->
accountToken = req.query['accountToken']
accountToken.should.eql 'OKKKKKKK'
data =
_id: '55f7d19c85efe377996a1232'
unions:
[
refer: 'teambition'
openId: '55f7d19c85efe377996a1231'
... |
[
{
"context": "to run commands on, set \"hosts\", [\"example.com\", \"git@example.com\"]'\n\nensure 'keepReleases', -> 5\nensure 'env', ",
"end": 334,
"score": 0.743660569190979,
"start": 319,
"tag": "EMAIL",
"value": "git@example.com"
}
] | cockout/deploy.coffee | sergeysova/deplosha | 1 | path = require('path')
ensure 'application', ->
abort 'Please specify application name, set "application", "foo"'
ensure 'repository', ->
abort 'Please specify repository url, set "repository", "/home/git/myrepo.git"'
ensure 'hosts', ->
abort 'Specify ssh hosts to run commands on, set "hosts", ["example.com", "g... | 42219 | path = require('path')
ensure 'application', ->
abort 'Please specify application name, set "application", "foo"'
ensure 'repository', ->
abort 'Please specify repository url, set "repository", "/home/git/myrepo.git"'
ensure 'hosts', ->
abort 'Specify ssh hosts to run commands on, set "hosts", ["example.com", "<... | true | path = require('path')
ensure 'application', ->
abort 'Please specify application name, set "application", "foo"'
ensure 'repository', ->
abort 'Please specify repository url, set "repository", "/home/git/myrepo.git"'
ensure 'hosts', ->
abort 'Specify ssh hosts to run commands on, set "hosts", ["example.com", "P... |
[
{
"context": " Under MIT license, see LICENSE file for details\n Andrey Popp (c) 2013\n\n###\n\npath ",
"end": 96,
"score": 0.9998130798339844,
"start": 85,
"tag": "NAME",
"value": "Andrey Popp"
}
] | index.coffee | andreypopp/wall | 2 | ###
Application entry point.
Under MIT license, see LICENSE file for details
Andrey Popp (c) 2013
###
path = require 'path'
{extend} = require 'underscore'
express = require 'express'
page ... | 4521 | ###
Application entry point.
Under MIT license, see LICENSE file for details
<NAME> (c) 2013
###
path = require 'path'
{extend} = require 'underscore'
express = require 'express'
page =... | true | ###
Application entry point.
Under MIT license, see LICENSE file for details
PI:NAME:<NAME>END_PI (c) 2013
###
path = require 'path'
{extend} = require 'underscore'
express = require 'express'
page ... |
[
{
"context": "et Chamber\": {\n cards: -3\n coins: +2\n }\n \"Shanty Town\": {\n actions: +1\n cards: 0\n }\n Silver: {\n",
"end": 7212,
"score": 0.9681650400161743,
"start": 7201,
"tag": "NAME",
"value": "Shanty Town"
}
] | heuristics.coffee | rspeer/dominiate | 65 | # These heuristics are intended to estimate the average effect on your hand
# state when you play the card, not to define what the card actually does.
#
# NOTE: This is not used anywhere yet. I thought it would be useful as a base
# case for code that analyzes a game tree.
#
# The values are all constants, even when th... | 37050 | # These heuristics are intended to estimate the average effect on your hand
# state when you play the card, not to define what the card actually does.
#
# NOTE: This is not used anywhere yet. I thought it would be useful as a base
# case for code that analyzes a game tree.
#
# The values are all constants, even when th... | true | # These heuristics are intended to estimate the average effect on your hand
# state when you play the card, not to define what the card actually does.
#
# NOTE: This is not used anywhere yet. I thought it would be useful as a base
# case for code that analyzes a game tree.
#
# The values are all constants, even when th... |
[
{
"context": "s = ->\n res = {}\n for key in [\n 'social.twitter.message'\n 'social.youtube.url'\n ]\n orionDict",
"end": 332,
"score": 0.844690203666687,
"start": 317,
"tag": "KEY",
"value": "twitter.message"
}
] | app/013_socials/socials.coffee | PEM--/asv-la-soiree | 1 | # Social messages
orion.dictionary.addDefinition 'twitter.message', 'social',
type: String, label: 'Message par défaut pour Twitter'
orion.dictionary.addDefinition 'youtube.url', 'social',
type: String, label: 'Adresse YouTube'
if Meteor.isServer
@socialValues = ->
res = {}
for key in [
'social.twi... | 134832 | # Social messages
orion.dictionary.addDefinition 'twitter.message', 'social',
type: String, label: 'Message par défaut pour Twitter'
orion.dictionary.addDefinition 'youtube.url', 'social',
type: String, label: 'Adresse YouTube'
if Meteor.isServer
@socialValues = ->
res = {}
for key in [
'social.<KE... | true | # Social messages
orion.dictionary.addDefinition 'twitter.message', 'social',
type: String, label: 'Message par défaut pour Twitter'
orion.dictionary.addDefinition 'youtube.url', 'social',
type: String, label: 'Adresse YouTube'
if Meteor.isServer
@socialValues = ->
res = {}
for key in [
'social.PI:... |
[
{
"context": "ut {\n userid: String!\n password: String!\n }\",\n },\n type: UserAuthTC,\n ",
"end": 777,
"score": 0.6925026178359985,
"start": 771,
"tag": "PASSWORD",
"value": "String"
}
] | controller/schema/userauth_schema.coffee | rirufa/roomchat-server | 0 | LoginService = require('../../service/login_service')
GrahqlBaseSchema = require('../grahql_base_schema')
class UserAuthSchema extends GrahqlBaseSchema
OnDefineSchema: (schemaComposer)->
UserAuthTC = schemaComposer.createObjectTC("
type UserAuth{
sucess: Boolean,
token: String,
user... | 189967 | LoginService = require('../../service/login_service')
GrahqlBaseSchema = require('../grahql_base_schema')
class UserAuthSchema extends GrahqlBaseSchema
OnDefineSchema: (schemaComposer)->
UserAuthTC = schemaComposer.createObjectTC("
type UserAuth{
sucess: Boolean,
token: String,
user... | true | LoginService = require('../../service/login_service')
GrahqlBaseSchema = require('../grahql_base_schema')
class UserAuthSchema extends GrahqlBaseSchema
OnDefineSchema: (schemaComposer)->
UserAuthTC = schemaComposer.createObjectTC("
type UserAuth{
sucess: Boolean,
token: String,
user... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9989554286003113,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-repl-.save.load.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... | 211376 | # 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": "P, RESTR, CHNGE\n\n# Notes:\n# None\n#\n# Author:\n# KeShiXiong <sxke@Ctrip.com>\n\nclass Ticket\n construc",
"end": 193,
"score": 0.6492208242416382,
"start": 191,
"tag": "NAME",
"value": "Ke"
},
{
"context": "RESTR, CHNGE\n\n# Notes:\n# None\n#\n# Author:\n# ... | hubot-scripts/remedyTicket.coffee | leoxhj/haojiexu | 0 | # Description
# Remedy Ticket Info
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# <TICKET ID> - INC, CRQ, TAS, OP, RESTR, CHNGE
# Notes:
# None
#
# Author:
# KeShiXiong <sxke@Ctrip.com>
class Ticket
constructor:(@tid) ->
@requestBody = ""
@data = undefined
fetchInfo:(robot... | 205488 | # Description
# Remedy Ticket Info
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# <TICKET ID> - INC, CRQ, TAS, OP, RESTR, CHNGE
# Notes:
# None
#
# Author:
# <NAME>Sh<NAME>g <<EMAIL>>
class Ticket
constructor:(@tid) ->
@requestBody = ""
@data = undefined
fetchInfo:(robot, ... | true | # Description
# Remedy Ticket Info
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# <TICKET ID> - INC, CRQ, TAS, OP, RESTR, CHNGE
# Notes:
# None
#
# Author:
# PI:NAME:<NAME>END_PIShPI:NAME:<NAME>END_PIg <PI:EMAIL:<EMAIL>END_PI>
class Ticket
constructor:(@tid) ->
@requestBody = ""
... |
[
{
"context": "random\n# with a 100% deterministic alternative.\n\n# Robert Jenkins' 32 bit integer hash function.\nGenerateKey = ->\n ",
"end": 2356,
"score": 0.9997140169143677,
"start": 2342,
"tag": "NAME",
"value": "Robert Jenkins"
},
{
"context": " 30\n i = 0\n\n while i < kNMo... | deps/v8/benchmarks/spinning-balls/v.coffee | lxe/io.coffee | 0 | # Copyright 2011 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... | 80829 | # Copyright 2011 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 2011 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": "', 'required' => 'required', 'placeholder' => 'eg: hellolaravel@gmail.com']) }}\n \"\"\"\n \"file->collective\":\n \"prefix\":",
"end": 1612,
"score": 0.9999151825904846,
"start": 1590,
"tag": "EMAIL",
"value": "hellolaravel@gmail.com"
}
] | snippets/laravel-collective.cson | code4mk/atom-lara | 0 | ########################################################
# Atom Laravel Snippet #
# Laravel collective #
#####################################################
'.text.html.php.blade':
"open->collective":
"prefix": "lc-open"
"body": """
{!! F... | 135242 | ########################################################
# Atom Laravel Snippet #
# Laravel collective #
#####################################################
'.text.html.php.blade':
"open->collective":
"prefix": "lc-open"
"body": """
{!! F... | true | ########################################################
# Atom Laravel Snippet #
# Laravel collective #
#####################################################
'.text.html.php.blade':
"open->collective":
"prefix": "lc-open"
"body": """
{!! F... |
[
{
"context": "before ->\n @skip() if __globalTest.offline\n\n [Alice, Bob] = [null, null]\n it 'create mailboxes', ->\n",
"end": 504,
"score": 0.5225240588188171,
"start": 499,
"tag": "NAME",
"value": "Alice"
},
{
"context": "ull]\n it 'create mailboxes', ->\n MailBox.new('A... | tests/specs/06a.relay.coffee | vault12/glow | 14 | # Copyright (c) 2015 Vault12, Inc.
# MIT License https://opensource.org/licenses/MIT
__CRYPTO_DEBUG = true # Expose #theglow objects as window globals
expect = require('chai').expect
MailBox = require 'mailbox'
Nacl = require 'nacl'
Relay = require 'relay'
describe 'Relay Ops, wrapper API', ->
return unless ... | 217589 | # Copyright (c) 2015 Vault12, Inc.
# MIT License https://opensource.org/licenses/MIT
__CRYPTO_DEBUG = true # Expose #theglow objects as window globals
expect = require('chai').expect
MailBox = require 'mailbox'
Nacl = require 'nacl'
Relay = require 'relay'
describe 'Relay Ops, wrapper API', ->
return unless ... | true | # Copyright (c) 2015 Vault12, Inc.
# MIT License https://opensource.org/licenses/MIT
__CRYPTO_DEBUG = true # Expose #theglow objects as window globals
expect = require('chai').expect
MailBox = require 'mailbox'
Nacl = require 'nacl'
Relay = require 'relay'
describe 'Relay Ops, wrapper API', ->
return unless ... |
[
{
"context": "(robot) ->\n\n client = new LuaClient {\n host: '127.0.0.1',\n port: 27064,\n name: 'hubot',\n pass: '",
"end": 698,
"score": 0.9997137784957886,
"start": 689,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": " host: '127.0.0.1',\n port: 27064... | garrysmod/lua-socket-server/hubot/lua-server.coffee | samuelmaddock/recycling-bin | 3 | # Description:
# Manages communication to and from the GMT lua server.
#
LuaClient = require './luaserver/LuaClient.coffee'
LOG_ROOM = 'status'
roomMap = {
default: 'status',
ballrace1: 'chat_ballrace1',
ballrace2: 'chat_ballrace2',
lobby1: 'chat_lobby1',
lobby2: 'chat_lobby2',
minigolf1: 'chat_minigol... | 211775 | # Description:
# Manages communication to and from the GMT lua server.
#
LuaClient = require './luaserver/LuaClient.coffee'
LOG_ROOM = 'status'
roomMap = {
default: 'status',
ballrace1: 'chat_ballrace1',
ballrace2: 'chat_ballrace2',
lobby1: 'chat_lobby1',
lobby2: 'chat_lobby2',
minigolf1: 'chat_minigol... | true | # Description:
# Manages communication to and from the GMT lua server.
#
LuaClient = require './luaserver/LuaClient.coffee'
LOG_ROOM = 'status'
roomMap = {
default: 'status',
ballrace1: 'chat_ballrace1',
ballrace2: 'chat_ballrace2',
lobby1: 'chat_lobby1',
lobby2: 'chat_lobby2',
minigolf1: 'chat_minigol... |
[
{
"context": "# Panel.coffee\n# Tomasz (Tomek) Zemla\n# tomek@datacratic.com\n\n# Base abstra",
"end": 23,
"score": 0.9975488185882568,
"start": 17,
"tag": "NAME",
"value": "Tomasz"
},
{
"context": "# Panel.coffee\n# Tomasz (Tomek) Zemla\n# tomek@datacratic.com\n\n# Base abstract cla... | src/Panel.coffee | SachithDassanayaka/sachithdassanayaka.github.io | 0 | # Panel.coffee
# Tomasz (Tomek) Zemla
# tomek@datacratic.com
# Base abstract class for all UI panels. There are four classes derived from Panel:
# Menu - main application menu (left)
# Console - main output/info area (right)
# ToolBar - top window control
# StatusBar - bottom window helper
Subject = require('./Subjec... | 181525 | # Panel.coffee
# <NAME> (<NAME>
# <EMAIL>
# Base abstract class for all UI panels. There are four classes derived from Panel:
# Menu - main application menu (left)
# Console - main output/info area (right)
# ToolBar - top window control
# StatusBar - bottom window helper
Subject = require('./Subject.coffee')
class P... | true | # Panel.coffee
# PI:NAME:<NAME>END_PI (PI:NAME:<NAME>END_PI
# PI:EMAIL:<EMAIL>END_PI
# Base abstract class for all UI panels. There are four classes derived from Panel:
# Menu - main application menu (left)
# Console - main output/info area (right)
# ToolBar - top window control
# StatusBar - bottom window helper
Sub... |
[
{
"context": "r based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n ",
"end": 85,
"score": 0.9887773394584656,
"start": 71,
"tag": "NAME",
"value": "Xavier.Decoret"
},
{
"context": "t @preamble\n \t\n'''\nfileTypes: [\n \... | grammars/bibtex.cson | aviatesk/Atom-LaTeX | 69 | comment: '''
Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment
TODO: Does not support @preamble
'''
fileTypes: [
"bib"
]
name: "BibTeX"
patterns: [
{
begin: "@Comment"
beginCaptures:
"0":
name: "punctuation.defin... | 77005 | comment: '''
Grammar based on description from http://artis.imag.fr/~<NAME>/resources/xdkbibtex/bibtex_summary.html#comment
TODO: Does not support @preamble
'''
fileTypes: [
"bib"
]
name: "<NAME>"
patterns: [
{
begin: "@Comment"
beginCaptures:
"0":
name: "punctuation.definition.co... | true | comment: '''
Grammar based on description from http://artis.imag.fr/~PI:NAME:<NAME>END_PI/resources/xdkbibtex/bibtex_summary.html#comment
TODO: Does not support @preamble
'''
fileTypes: [
"bib"
]
name: "PI:NAME:<NAME>END_PI"
patterns: [
{
begin: "@Comment"
beginCaptures:
"0":
name... |
[
{
"context": "censed under the MIT license.\n\nhttps://github.com/devjam\n\nUtil.UA.browser\t\t\t\t\t: String\nUtil.UA.isIE\t\t\t\t\t\t:",
"end": 113,
"score": 0.999624490737915,
"start": 107,
"tag": "USERNAME",
"value": "devjam"
},
{
"context": "まう\n\t\t\t\tunless value?\n\t\t\t\t\t... | src/util.coffee | devjam/util.js | 0 | ###
util.js v 1.2.7
Copyright (c) 2013 SHIFTBRAIN Inc.
Licensed under the MIT license.
https://github.com/devjam
Util.UA.browser : String
Util.UA.isIE : Bool
Util.UA.isIE6 : Bool
Util.UA.isIE7 : Bool
Util.UA.isIE8 : Bool
Util.UA.isIE9 : Bool
Util.UA.isLtIE9 : Bool
Util.UA.isIOS :... | 81884 | ###
util.js v 1.2.7
Copyright (c) 2013 SHIFTBRAIN Inc.
Licensed under the MIT license.
https://github.com/devjam
Util.UA.browser : String
Util.UA.isIE : Bool
Util.UA.isIE6 : Bool
Util.UA.isIE7 : Bool
Util.UA.isIE8 : Bool
Util.UA.isIE9 : Bool
Util.UA.isLtIE9 : Bool
Util.UA.isIOS :... | true | ###
util.js v 1.2.7
Copyright (c) 2013 SHIFTBRAIN Inc.
Licensed under the MIT license.
https://github.com/devjam
Util.UA.browser : String
Util.UA.isIE : Bool
Util.UA.isIE6 : Bool
Util.UA.isIE7 : Bool
Util.UA.isIE8 : Bool
Util.UA.isIE9 : Bool
Util.UA.isLtIE9 : Bool
Util.UA.isIOS :... |
[
{
"context": " $set: {\n password: ha,\n salt: salt,\n ",
"end": 655,
"score": 0.9832999110221863,
"start": 653,
"tag": "PASSWORD",
"value": "ha"
}
] | server/auth.coffee | YagamiMirai/jinrou | 18 | crypto=require 'crypto'
#ユーザー管理の何か
user=require './rpc/user.coffee'
#params: params.userid, params.password
exports.authenticate = (params,cb) ->
M.users.findOne {userid:params.userid}, (err,doc)->
unless doc?
cb {success:false}
return
unless check params.password, doc.passw... | 201578 | crypto=require 'crypto'
#ユーザー管理の何か
user=require './rpc/user.coffee'
#params: params.userid, params.password
exports.authenticate = (params,cb) ->
M.users.findOne {userid:params.userid}, (err,doc)->
unless doc?
cb {success:false}
return
unless check params.password, doc.passw... | true | crypto=require 'crypto'
#ユーザー管理の何か
user=require './rpc/user.coffee'
#params: params.userid, params.password
exports.authenticate = (params,cb) ->
M.users.findOne {userid:params.userid}, (err,doc)->
unless doc?
cb {success:false}
return
unless check params.password, doc.passw... |
[
{
"context": "mEvents(\n -> Bacon.once({ bacon: Bacon.once(\"sir francis\")}).flatMapWithConcurrencyLimit(1, \".bacon\")\n ",
"end": 666,
"score": 0.9994401931762695,
"start": 655,
"tag": "NAME",
"value": "sir francis"
},
{
"context": ".flatMapWithConcurrencyLimit(1, \".bacon... | spec/specs/flatmapwithconcurrencylimit.coffee | phadej/bacon.js | 0 | describe "EventStream.flatMapWithConcurrencyLimit", ->
describe "limits the number of concurrently active spawned streams by queuing", ->
expectStreamEvents(
-> series(1, [1, 2]).flatMapWithConcurrencyLimit(1, (value) ->
series(t(2), [value, error(), value]))
[1, error(), 1, 2, error(), 2], se... | 43051 | describe "EventStream.flatMapWithConcurrencyLimit", ->
describe "limits the number of concurrently active spawned streams by queuing", ->
expectStreamEvents(
-> series(1, [1, 2]).flatMapWithConcurrencyLimit(1, (value) ->
series(t(2), [value, error(), value]))
[1, error(), 1, 2, error(), 2], se... | true | describe "EventStream.flatMapWithConcurrencyLimit", ->
describe "limits the number of concurrently active spawned streams by queuing", ->
expectStreamEvents(
-> series(1, [1, 2]).flatMapWithConcurrencyLimit(1, (value) ->
series(t(2), [value, error(), value]))
[1, error(), 1, 2, error(), 2], se... |
[
{
"context": "g quote: s = \\\"hi\", ->\n # https://github.com/codecombat/aether/issues/113\n code = \"\"\"\n var s = ",
"end": 2022,
"score": 0.9995821118354797,
"start": 2012,
"tag": "USERNAME",
"value": "codecombat"
},
{
"context": "uble var\", ->\n code = \"\"... | test/problem_spec.coffee | basicer/aether | 0 | Aether = require '../aether'
describe "Problem Test Suite", ->
describe "Transpile problems", ->
it "missing a closing quote: self.attack('Brak)", ->
code = """
self.attack('Brak)
"""
aether = new Aether language: 'python'
aether.transpile code
expect(aether.problems.errors.le... | 17184 | Aether = require '../aether'
describe "Problem Test Suite", ->
describe "Transpile problems", ->
it "missing a closing quote: self.attack('Brak)", ->
code = """
self.attack('Brak)
"""
aether = new Aether language: 'python'
aether.transpile code
expect(aether.problems.errors.le... | true | Aether = require '../aether'
describe "Problem Test Suite", ->
describe "Transpile problems", ->
it "missing a closing quote: self.attack('Brak)", ->
code = """
self.attack('Brak)
"""
aether = new Aether language: 'python'
aether.transpile code
expect(aether.problems.errors.le... |
[
{
"context": " <foo> - performs bashshell command\n#\n# Author:\n# Leon van Kammen / Coderofsalvation\n#\nfs = require(\"fs\")\n\nprocess.",
"end": 392,
"score": 0.9995593428611755,
"start": 377,
"tag": "NAME",
"value": "Leon van Kammen"
}
] | node_modules/hubot-script-shellcmd/src/shellcmd.coffee | Viper702/riley-reid | 46 | # Description:
# List/Execute shellcommands from a specified folder.
#
# Dependencies:
# None
#
# Configuration
# HUBOT_SHELLCMD="bash/handler" (cp the example 'bash'-directory to your root/runtime folder)
#
# where 'handler' is a shellscript like:
#
# Commands:
# Hubot shell - list (bash)shell commands
# Hubot... | 45876 | # Description:
# List/Execute shellcommands from a specified folder.
#
# Dependencies:
# None
#
# Configuration
# HUBOT_SHELLCMD="bash/handler" (cp the example 'bash'-directory to your root/runtime folder)
#
# where 'handler' is a shellscript like:
#
# Commands:
# Hubot shell - list (bash)shell commands
# Hubot... | true | # Description:
# List/Execute shellcommands from a specified folder.
#
# Dependencies:
# None
#
# Configuration
# HUBOT_SHELLCMD="bash/handler" (cp the example 'bash'-directory to your root/runtime folder)
#
# where 'handler' is a shellscript like:
#
# Commands:
# Hubot shell - list (bash)shell commands
# Hubot... |
[
{
"context": "'\n\nclass Palsu extends nodext.Extension\n name: 'Palsu'\n config: {}\n\n makeDir: (dir, cb) ->\n fs.sta",
"end": 124,
"score": 0.604383111000061,
"start": 120,
"tag": "NAME",
"value": "alsu"
}
] | extension/palsu/main.coffee | bergie/ViePalsu | 5 | nodext = require 'nodext'
express = require 'express'
fs = require 'fs'
class Palsu extends nodext.Extension
name: 'Palsu'
config: {}
makeDir: (dir, cb) ->
fs.stat dir, (err, stat) ->
return cb() unless err
fs.mkdir dir, 0o0777, cb
configure: (server) ->
@makeDir "#{__dirname}/static/js",... | 118093 | nodext = require 'nodext'
express = require 'express'
fs = require 'fs'
class Palsu extends nodext.Extension
name: 'P<NAME>'
config: {}
makeDir: (dir, cb) ->
fs.stat dir, (err, stat) ->
return cb() unless err
fs.mkdir dir, 0o0777, cb
configure: (server) ->
@makeDir "#{__dirname}/static/js... | true | nodext = require 'nodext'
express = require 'express'
fs = require 'fs'
class Palsu extends nodext.Extension
name: 'PPI:NAME:<NAME>END_PI'
config: {}
makeDir: (dir, cb) ->
fs.stat dir, (err, stat) ->
return cb() unless err
fs.mkdir dir, 0o0777, cb
configure: (server) ->
@makeDir "#{__dirn... |
[
{
"context": ")\n\t\tprotoNode = vert.next()\n\t\tkey = protoNode.key.split(\"/\").pop().split(\"#\").pop()\n\t\tnode[key] = protoNode.value\n\t\tnode[\"name\"] = ",
"end": 2427,
"score": 0.809501588344574,
"start": 2396,
"tag": "KEY",
"value": "split(\"/\").pop().split(\"#\").pop"
}
] | app/assets/javascripts/filters.coffee | guidocecilio/discover-smarter | 2 | # Just a log helper
log = (args...) ->
console.log.apply console, args if console.log?
String::alphaNum = ->
@.replace /[^a-zA-Z0-9]/g, ''
String::validURL = ->
pattern = new RegExp("/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/")
isUrl = pattern.test(@)
log "that " + @ + " is a URL is " + is... | 53773 | # Just a log helper
log = (args...) ->
console.log.apply console, args if console.log?
String::alphaNum = ->
@.replace /[^a-zA-Z0-9]/g, ''
String::validURL = ->
pattern = new RegExp("/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/")
isUrl = pattern.test(@)
log "that " + @ + " is a URL is " + is... | true | # Just a log helper
log = (args...) ->
console.log.apply console, args if console.log?
String::alphaNum = ->
@.replace /[^a-zA-Z0-9]/g, ''
String::validURL = ->
pattern = new RegExp("/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/")
isUrl = pattern.test(@)
log "that " + @ + " is a URL is " + is... |
[
{
"context": "dule.exports =\n user:\n _id: userId\n name: 'John Smith'\n token: token\n email: 'me@my.me'\n passw",
"end": 341,
"score": 0.9995629191398621,
"start": 331,
"tag": "NAME",
"value": "John Smith"
},
{
"context": " name: 'John Smith'\n token: token\n ... | server/test/setup.coffee | stevelacy/claru | 0 | mongoose = require 'mongoose'
tungsten = require 'tungsten'
config = require '../config'
date = new Date()
itemId = String mongoose.Types.ObjectId()
userId = String mongoose.Types.ObjectId()
token = tungsten.encode
id: userId
exp: date + 345600000
, config.token.secret
module.exports =
user:
_id: userId
... | 85725 | mongoose = require 'mongoose'
tungsten = require 'tungsten'
config = require '../config'
date = new Date()
itemId = String mongoose.Types.ObjectId()
userId = String mongoose.Types.ObjectId()
token = tungsten.encode
id: userId
exp: date + 345600000
, config.token.secret
module.exports =
user:
_id: userId
... | true | mongoose = require 'mongoose'
tungsten = require 'tungsten'
config = require '../config'
date = new Date()
itemId = String mongoose.Types.ObjectId()
userId = String mongoose.Types.ObjectId()
token = tungsten.encode
id: userId
exp: date + 345600000
, config.token.secret
module.exports =
user:
_id: userId
... |
[
{
"context": "#\n# ngModal\n# by Adam Albrecht\n# http://adamalbrecht.com\n#\n# Source Code: https:",
"end": 30,
"score": 0.9999006986618042,
"start": 17,
"tag": "NAME",
"value": "Adam Albrecht"
},
{
"context": "malbrecht.com\n#\n# Source Code: https://github.com/adamalbrecht/ngModal... | src/ng-modal.coffee | Ricco1/ngModal | 0 | #
# ngModal
# by Adam Albrecht
# http://adamalbrecht.com
#
# Source Code: https://github.com/adamalbrecht/ngModal
#
# Compatible with Angular 1.2.x
#
app = angular.module("ngModal", [])
app.provider "ngModalDefaults", ->
options: {
closeButtonHtml: "<span class='ng-modal-close-x'>X</span>"
hideCloseButton: ... | 6264 | #
# ngModal
# by <NAME>
# http://adamalbrecht.com
#
# Source Code: https://github.com/adamalbrecht/ngModal
#
# Compatible with Angular 1.2.x
#
app = angular.module("ngModal", [])
app.provider "ngModalDefaults", ->
options: {
closeButtonHtml: "<span class='ng-modal-close-x'>X</span>"
hideCloseButton: false
... | true | #
# ngModal
# by PI:NAME:<NAME>END_PI
# http://adamalbrecht.com
#
# Source Code: https://github.com/adamalbrecht/ngModal
#
# Compatible with Angular 1.2.x
#
app = angular.module("ngModal", [])
app.provider "ngModalDefaults", ->
options: {
closeButtonHtml: "<span class='ng-modal-close-x'>X</span>"
hideCloseB... |
[
{
"context": "peahead(null,\n name: 'engine'\n displayKey: 'smooth_name'\n source: engine.ttAdapter()\n templates:\n ",
"end": 412,
"score": 0.56847083568573,
"start": 401,
"tag": "KEY",
"value": "smooth_name"
}
] | app/assets/javascripts/shared/search_autocomplete.js.coffee | sebastiencarceles/companydata.co | 1 | $(document).on 'turbolinks:load', ->
engine = new Bloodhound(
datumTokenizer: (d) ->
Bloodhound.tokenizers.whitespace d.smooth_name
queryTokenizer: Bloodhound.tokenizers.whitespace
remote:
url: '/api/v1/companies/autocomplete?q=%QUERY'
wildcard: '%QUERY'
)
engine.initialize()
... | 185194 | $(document).on 'turbolinks:load', ->
engine = new Bloodhound(
datumTokenizer: (d) ->
Bloodhound.tokenizers.whitespace d.smooth_name
queryTokenizer: Bloodhound.tokenizers.whitespace
remote:
url: '/api/v1/companies/autocomplete?q=%QUERY'
wildcard: '%QUERY'
)
engine.initialize()
... | true | $(document).on 'turbolinks:load', ->
engine = new Bloodhound(
datumTokenizer: (d) ->
Bloodhound.tokenizers.whitespace d.smooth_name
queryTokenizer: Bloodhound.tokenizers.whitespace
remote:
url: '/api/v1/companies/autocomplete?q=%QUERY'
wildcard: '%QUERY'
)
engine.initialize()
... |
[
{
"context": "artner = new Channel\n id: '123'\n name: 'Gagosian'\n type: 'partner'\n sinon.stub(Channel.pro",
"end": 1479,
"score": 0.9995096325874329,
"start": 1471,
"tag": "NAME",
"value": "Gagosian"
},
{
"context": "eq.user.get('current_channel').name.should.equ... | src/client/apps/switch_channel/test/index.test.coffee | artsyjian/positron | 76 | sinon = require 'sinon'
rewire = require 'rewire'
app = rewire '../'
Backbone = require 'backbone'
Channel = rewire '../../../models/channel.coffee'
User = require '../../../models/user.coffee'
{ fabricate } = require '@artsy/antigravity'
fixtures = require '../../../../test/helpers/fixtures.coffee'
describe 'authoriz... | 80666 | sinon = require 'sinon'
rewire = require 'rewire'
app = rewire '../'
Backbone = require 'backbone'
Channel = rewire '../../../models/channel.coffee'
User = require '../../../models/user.coffee'
{ fabricate } = require '@artsy/antigravity'
fixtures = require '../../../../test/helpers/fixtures.coffee'
describe 'authoriz... | true | sinon = require 'sinon'
rewire = require 'rewire'
app = rewire '../'
Backbone = require 'backbone'
Channel = rewire '../../../models/channel.coffee'
User = require '../../../models/user.coffee'
{ fabricate } = require '@artsy/antigravity'
fixtures = require '../../../../test/helpers/fixtures.coffee'
describe 'authoriz... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.999912440776825,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/beatmaps/search-content.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { Paginator } from './paginator'
import { SearchPanel } from './search-panel'
import { SearchSort } from './search-sort'
import { Beatmaps... | 108765 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { Paginator } from './paginator'
import { SearchPanel } from './search-panel'
import { SearchSort } from './search-sort'
import { BeatmapsetPanel... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import { Paginator } from './paginator'
import { SearchPanel } from './search-panel'
import { SearchSort } from './search-sort'
import { ... |
[
{
"context": "}}\n ).bind this\n\n <ListGroupItem>\n *@{@props.email}\n <span className=\"pull-right\"><Glyphicon gl",
"end": 1031,
"score": 0.7107807993888855,
"start": 1020,
"tag": "EMAIL",
"value": "props.email"
}
] | picoCTF-web/web/coffee/react-utils.coffee | jingjiey/picoCTF | 1 | Tooltip = ReactBootstrap.Tooltip
OverlayTrigger = ReactBootstrap.OverlayTrigger
Input = ReactBootstrap.Input
Row = ReactBootstrap.Row
Col = ReactBootstrap.Col
Button = ReactBootstrap.Button
Panel = ReactBootstrap.Panel
ListGroup = ReactBootstrap.ListGroup
ListGroupItem = ReactBootstrap.ListGroupItem
Glyphicon = ReactBo... | 75359 | Tooltip = ReactBootstrap.Tooltip
OverlayTrigger = ReactBootstrap.OverlayTrigger
Input = ReactBootstrap.Input
Row = ReactBootstrap.Row
Col = ReactBootstrap.Col
Button = ReactBootstrap.Button
Panel = ReactBootstrap.Panel
ListGroup = ReactBootstrap.ListGroup
ListGroupItem = ReactBootstrap.ListGroupItem
Glyphicon = ReactBo... | true | Tooltip = ReactBootstrap.Tooltip
OverlayTrigger = ReactBootstrap.OverlayTrigger
Input = ReactBootstrap.Input
Row = ReactBootstrap.Row
Col = ReactBootstrap.Col
Button = ReactBootstrap.Button
Panel = ReactBootstrap.Panel
ListGroup = ReactBootstrap.ListGroup
ListGroupItem = ReactBootstrap.ListGroupItem
Glyphicon = ReactBo... |
[
{
"context": " {\n id: 1\n name: 'Manager'\n }\n {\n id: ",
"end": 471,
"score": 0.7295025587081909,
"start": 464,
"tag": "NAME",
"value": "Manager"
},
{
"context": " {\n id: 2\n name... | test/unit/specs/components/bitwise.spec.coffee | dimailn/vrf | 8 | import './setup'
import {
mount
} from '@vue/test-utils'
describe 'checkbox', ->
it "simple bitwise", ->
wrapper = mount(
template: '''
<rf-form :resource="resource">
<rf-bitwise name="flags" :options="options" ref="bitwise" />
</rf-form>
'''
data: ->
option... | 75263 | import './setup'
import {
mount
} from '@vue/test-utils'
describe 'checkbox', ->
it "simple bitwise", ->
wrapper = mount(
template: '''
<rf-form :resource="resource">
<rf-bitwise name="flags" :options="options" ref="bitwise" />
</rf-form>
'''
data: ->
option... | true | import './setup'
import {
mount
} from '@vue/test-utils'
describe 'checkbox', ->
it "simple bitwise", ->
wrapper = mount(
template: '''
<rf-form :resource="resource">
<rf-bitwise name="flags" :options="options" ref="bitwise" />
</rf-form>
'''
data: ->
option... |
[
{
"context": "c test\", ->\n data = []\n obj = id: 5, name: 'test'\n data.should.be.empty\n data.push obj\n d",
"end": 396,
"score": 0.9686756134033203,
"start": 392,
"tag": "NAME",
"value": "test"
}
] | test/src/specs/eventparser.spec.coffee | 1egoman/eventparser | 0 | 'use strict';
eventparser = source("eventparser")
describe "basic tests", ->
it "standard async test", (done) ->
bool = false
bool.should.be.false
setTimeout ->
bool.should.be.false
bool = true
bool.should.be.true
150
setTimeout ->
bool.should.be.true
done()
3... | 61214 | 'use strict';
eventparser = source("eventparser")
describe "basic tests", ->
it "standard async test", (done) ->
bool = false
bool.should.be.false
setTimeout ->
bool.should.be.false
bool = true
bool.should.be.true
150
setTimeout ->
bool.should.be.true
done()
3... | true | 'use strict';
eventparser = source("eventparser")
describe "basic tests", ->
it "standard async test", (done) ->
bool = false
bool.should.be.false
setTimeout ->
bool.should.be.false
bool = true
bool.should.be.true
150
setTimeout ->
bool.should.be.true
done()
3... |
[
{
"context": "w(\n index: index\n code: code\n name: name\n price: displayPrice(price, rounded)\n )\n ",
"end": 566,
"score": 0.6180253028869629,
"start": 562,
"tag": "NAME",
"value": "name"
}
] | kirppu/static_src/js/checkout/item_receipt_table.coffee | tracon/kirppu | 0 | class @ItemReceiptTable
# @param {Object} options
# @param {str} [optional] options.caption
# @param {bool} [optional] options.autoNumber
constructor: (options=null) ->
options = Object.assign(
caption: null
autoNumber: false
splitTitle: false
, options
)
@_table = Template.... | 30433 | class @ItemReceiptTable
# @param {Object} options
# @param {str} [optional] options.caption
# @param {bool} [optional] options.autoNumber
constructor: (options=null) ->
options = Object.assign(
caption: null
autoNumber: false
splitTitle: false
, options
)
@_table = Template.... | true | class @ItemReceiptTable
# @param {Object} options
# @param {str} [optional] options.caption
# @param {bool} [optional] options.autoNumber
constructor: (options=null) ->
options = Object.assign(
caption: null
autoNumber: false
splitTitle: false
, options
)
@_table = Template.... |
[
{
"context": "uerystring'\n_ = require 'underscore'\n\nFLICKR_KEY=\"9ff0fef9b6c8e4509682e9576b9480f3\"\n\nmodule.exports = (query, options = {}, callback",
"end": 137,
"score": 0.9997614026069641,
"start": 105,
"tag": "KEY",
"value": "9ff0fef9b6c8e4509682e9576b9480f3"
}
] | lib/flickr_search.coffee | KyleAMathews/react-flickr-example | 2 | request = require 'superagent'
querystring = require 'querystring'
_ = require 'underscore'
FLICKR_KEY="9ff0fef9b6c8e4509682e9576b9480f3"
module.exports = (query, options = {}, callback) ->
tags = query.split(' ').join(',')
defaultOptions =
method: 'flickr.photos.search'
api_key: FLICKR_KEY
tags: tags... | 76815 | request = require 'superagent'
querystring = require 'querystring'
_ = require 'underscore'
FLICKR_KEY="<KEY>"
module.exports = (query, options = {}, callback) ->
tags = query.split(' ').join(',')
defaultOptions =
method: 'flickr.photos.search'
api_key: FLICKR_KEY
tags: tags
tag_mode: 'all'
pe... | true | request = require 'superagent'
querystring = require 'querystring'
_ = require 'underscore'
FLICKR_KEY="PI:KEY:<KEY>END_PI"
module.exports = (query, options = {}, callback) ->
tags = query.split(' ').join(',')
defaultOptions =
method: 'flickr.photos.search'
api_key: FLICKR_KEY
tags: tags
tag_mode:... |
[
{
"context": "xpect(c.outPorts.ports).to.have.keys [\n 'out'\n ]\n done()\n c.once 'network',",
"end": 9198,
"score": 0.5112891793251038,
"start": 9195,
"tag": "KEY",
"value": "out"
}
] | spec/Subgraph.coffee | aretecode/noflo-built | 1 | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
path = require 'path'
root = path.resolve __dirname, '../'
urlPrefix = './'
else
noflo = require 'noflo'
root = 'noflo'
urlPrefix = '... | 24615 | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
path = require 'path'
root = path.resolve __dirname, '../'
urlPrefix = './'
else
noflo = require 'noflo'
root = 'noflo'
urlPrefix = '... | true | if typeof process isnt 'undefined' and process.execPath and process.execPath.match /node|iojs/
chai = require 'chai' unless chai
noflo = require '../src/lib/NoFlo.coffee'
path = require 'path'
root = path.resolve __dirname, '../'
urlPrefix = './'
else
noflo = require 'noflo'
root = 'noflo'
urlPrefix = '... |
[
{
"context": "if err? then return next err\n user.password = hash\n next()\n\n\nUser.methods.comparePassword = (ca",
"end": 685,
"score": 0.800606906414032,
"start": 681,
"tag": "PASSWORD",
"value": "hash"
}
] | src/server/models/users.coffee | FindBoat/moolo | 0 | bcrypt = require 'bcrypt-nodejs'
mongoose = require 'mongoose'
User = new mongoose.Schema
email: type: String, unique: true, lowercase: true
password: String
profile:
name: type: String, default: ''
gender: type: String, default: ''
location: type: String, default: ''
website: type: String, defa... | 134520 | bcrypt = require 'bcrypt-nodejs'
mongoose = require 'mongoose'
User = new mongoose.Schema
email: type: String, unique: true, lowercase: true
password: String
profile:
name: type: String, default: ''
gender: type: String, default: ''
location: type: String, default: ''
website: type: String, defa... | true | bcrypt = require 'bcrypt-nodejs'
mongoose = require 'mongoose'
User = new mongoose.Schema
email: type: String, unique: true, lowercase: true
password: String
profile:
name: type: String, default: ''
gender: type: String, default: ''
location: type: String, default: ''
website: type: String, defa... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9991028904914856,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/disabled/test-dgram-unix-anon.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... | 130260 | # 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": " L.mapbox.accessToken = config.accessToken || 'pk.eyJ1IjoiZ2luYS1hbGFza2EiLCJhIjoiN0lJVnk5QSJ9.CsQYpUUXtdCpnUdwurAYcQ';\n @map = L.mapbox.map(mapel.data('target'), c",
"end": 2005,
"score": 0.9997062087059021,
"start": 1935,
"tag": "KEY",
"value": "pk.eyJ1IjoiZ2luYS1hbGFz... | app/assets/javascripts/maps.js.coffee | gina-alaska/gina-catalog | 0 | class Layers
constructor: (@mapel, @map, @selector = 'layer') ->
@config = @mapel.data()
setup: () ->
layers = {}
layersForControl = {
}
# = L.featureGroup()
for el in @mapel.find('layer')
klass = @determineLayerClass(el)
layers[klass.zoomable] ||= L.featureGroup()
layer... | 116052 | class Layers
constructor: (@mapel, @map, @selector = 'layer') ->
@config = @mapel.data()
setup: () ->
layers = {}
layersForControl = {
}
# = L.featureGroup()
for el in @mapel.find('layer')
klass = @determineLayerClass(el)
layers[klass.zoomable] ||= L.featureGroup()
layer... | true | class Layers
constructor: (@mapel, @map, @selector = 'layer') ->
@config = @mapel.data()
setup: () ->
layers = {}
layersForControl = {
}
# = L.featureGroup()
for el in @mapel.find('layer')
klass = @determineLayerClass(el)
layers[klass.zoomable] ||= L.featureGroup()
layer... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999085664749146,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/react/_components/comment-show-more.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import core from 'osu-core-singleton'
import * as React from 'react'
import { button, div, span } from 'react-dom-factories'
import { ShowMoreLin... | 40216 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import core from 'osu-core-singleton'
import * as React from 'react'
import { button, div, span } from 'react-dom-factories'
import { ShowMoreLink } fro... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
import core from 'osu-core-singleton'
import * as React from 'react'
import { button, div, span } from 'react-dom-factories'
import { Sho... |
[
{
"context": "###*\n@author Adrien Brault <adrien.brault@gmail.com>\n###\n\ndefine 'Coffixi/co",
"end": 26,
"score": 0.9998946189880371,
"start": 13,
"tag": "NAME",
"value": "Adrien Brault"
},
{
"context": "###*\n@author Adrien Brault <adrien.brault@gmail.com>\n###\n\ndefine 'Coffixi... | src/Coffixi/core/Polygon.coffee | namuol/Coffixi | 1 | ###*
@author Adrien Brault <adrien.brault@gmail.com>
###
define 'Coffixi/core/Polygon', [
'./Point'
], (
Point
) ->
###*
@class Polygon
@constructor
@param points* {Array<Point>|Array<Number>|Point...|Number...} This can be an array of Points that form the polygon,
a flat array of numbers that will be i... | 107721 | ###*
@author <NAME> <<EMAIL>>
###
define 'Coffixi/core/Polygon', [
'./Point'
], (
Point
) ->
###*
@class Polygon
@constructor
@param points* {Array<Point>|Array<Number>|Point...|Number...} This can be an array of Points that form the polygon,
a flat array of numbers that will be interpreted as [x,y, x,y... | true | ###*
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
define 'Coffixi/core/Polygon', [
'./Point'
], (
Point
) ->
###*
@class Polygon
@constructor
@param points* {Array<Point>|Array<Number>|Point...|Number...} This can be an array of Points that form the polygon,
a flat array of numbers that wil... |
[
{
"context": "req.body.password is '' then invalids.password = 'password'\n\n if invalids.email or invalids.password\n re",
"end": 1349,
"score": 0.9992021322250366,
"start": 1341,
"tag": "PASSWORD",
"value": "password"
}
] | controllers/users_controller.coffee | develvad/NodeCMS | 1 | User = require("../models/User").UsersModelo
crypto = require('crypto')
_auth = (user, req, res) ->
user.updated = Date.now()
hash = crypto.createHash("md5")
user.token = hash.update(JSON.stringify(user), "utf8").digest("hex")
user.save((error) ->
if not error
req.session.user = user
res.redir... | 25253 | User = require("../models/User").UsersModelo
crypto = require('crypto')
_auth = (user, req, res) ->
user.updated = Date.now()
hash = crypto.createHash("md5")
user.token = hash.update(JSON.stringify(user), "utf8").digest("hex")
user.save((error) ->
if not error
req.session.user = user
res.redir... | true | User = require("../models/User").UsersModelo
crypto = require('crypto')
_auth = (user, req, res) ->
user.updated = Date.now()
hash = crypto.createHash("md5")
user.token = hash.update(JSON.stringify(user), "utf8").digest("hex")
user.save((error) ->
if not error
req.session.user = user
res.redir... |
[
{
"context": "# author LeFnord\n# email pscholz.le@gmail.com\n# date 2013-08-28",
"end": 16,
"score": 0.9927151203155518,
"start": 9,
"tag": "NAME",
"value": "LeFnord"
},
{
"context": "# author LeFnord\n# email pscholz.le@gmail.com\n# date 2013-08-28\n# ========================... | assets/javascripts/visuals.coffee | LeFnord/xmi-viewer | 0 | # author LeFnord
# email pscholz.le@gmail.com
# date 2013-08-28
# ==============================================================================
# application specifiic code
width = 960
height = 1000
margin = 10
pad = margin / 2
radius = 7
yfixed = pad + radius
color = d3.scale.category20()
colors = [
[
'rgb(... | 15958 | # author <NAME>
# email <EMAIL>
# date 2013-08-28
# ==============================================================================
# application specifiic code
width = 960
height = 1000
margin = 10
pad = margin / 2
radius = 7
yfixed = pad + radius
color = d3.scale.category20()
colors = [
[
'rgb(228,26,28)'
... | true | # author PI:NAME:<NAME>END_PI
# email PI:EMAIL:<EMAIL>END_PI
# date 2013-08-28
# ==============================================================================
# application specifiic code
width = 960
height = 1000
margin = 10
pad = margin / 2
radius = 7
yfixed = pad + radius
color = d3.scale.category20()
colors = ... |
[
{
"context": "datesLengthOf/.test(content)\n assert /'username', { min: 6 }/.test(content)\n\n describe 'genera",
"end": 5305,
"score": 0.825215220451355,
"start": 5297,
"tag": "USERNAME",
"value": "username"
},
{
"context": " owner: 'rwx'\n ... | spec/lib/models-generator.coffee | CureApp/loopback-with-admin | 13 |
{ normalize } = require 'path'
fs = require 'fs-extra'
ModelsGenerator = require '../../src/lib/models-generator'
ModelDefinition = require '../../src/lib/model-definition'
ModelConfigGenerator = require '../../src/lib/model-config-generator'
describe 'ModelsGenerator', ->
describe 'constructor', ->
... | 153612 |
{ normalize } = require 'path'
fs = require 'fs-extra'
ModelsGenerator = require '../../src/lib/models-generator'
ModelDefinition = require '../../src/lib/model-definition'
ModelConfigGenerator = require '../../src/lib/model-config-generator'
describe 'ModelsGenerator', ->
describe 'constructor', ->
... | true |
{ normalize } = require 'path'
fs = require 'fs-extra'
ModelsGenerator = require '../../src/lib/models-generator'
ModelDefinition = require '../../src/lib/model-definition'
ModelConfigGenerator = require '../../src/lib/model-config-generator'
describe 'ModelsGenerator', ->
describe 'constructor', ->
... |
[
{
"context": " User.removeQ()\n .then ->\n User.register('test1', 'test')\n .then (user)->\n token = user.g",
"end": 458,
"score": 0.877412736415863,
"start": 453,
"tag": "USERNAME",
"value": "test1"
},
{
"context": "'\n payload: JSON.stringify({\n token: ... | test/integration/device.coffee | ethanmick/fastchat-server | 7 | 'use strict'
#
# FastChat
# 2015
#
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
describe 'Devices', ->
user = null
s = null
before (done)->
mongoose.connect process.env.MONGOLAB_URI
s = new Server(port:... | 112727 | 'use strict'
#
# FastChat
# 2015
#
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
describe 'Devices', ->
user = null
s = null
before (done)->
mongoose.connect process.env.MONGOLAB_URI
s = new Server(port:... | true | 'use strict'
#
# FastChat
# 2015
#
should = require('chai').should()
mongoose = require('mongoose-q')()
User = require('../../lib/model/user')
Server = require '../../lib/server'
describe 'Devices', ->
user = null
s = null
before (done)->
mongoose.connect process.env.MONGOLAB_URI
s = new Server(port:... |
[
{
"context": " id: 'footer-wrapper'\n \"Copyright (c) David Stein\"\n\n PageController = React.createClass\n displa",
"end": 1607,
"score": 0.9996232390403748,
"start": 1596,
"tag": "NAME",
"value": "David Stein"
},
{
"context": "ntDidMount: ->\n if location.hos... | coffee/views/page_controller.coffee | davidbstein/static-blog | 0 | dependencies =
React: "react"
cx: 'cx'
$: "jquery"
CommonmarkElement: "external/commonmark-react/commonmark_react"
hljs_shim: "highlight"
# copy/pastable require.js hacks
define (_v for _, _v of dependencies), () ->
_i=0; @[_k] = arguments[_i++] for _k of dependencies
#/hacks
d = React.DOM
Header = R... | 105371 | dependencies =
React: "react"
cx: 'cx'
$: "jquery"
CommonmarkElement: "external/commonmark-react/commonmark_react"
hljs_shim: "highlight"
# copy/pastable require.js hacks
define (_v for _, _v of dependencies), () ->
_i=0; @[_k] = arguments[_i++] for _k of dependencies
#/hacks
d = React.DOM
Header = R... | true | dependencies =
React: "react"
cx: 'cx'
$: "jquery"
CommonmarkElement: "external/commonmark-react/commonmark_react"
hljs_shim: "highlight"
# copy/pastable require.js hacks
define (_v for _, _v of dependencies), () ->
_i=0; @[_k] = arguments[_i++] for _k of dependencies
#/hacks
d = React.DOM
Header = R... |
[
{
"context": "###\n# Copyright (C) 2012 jareiko / http://www.jareiko.net/\n###\n\ndefine [\n], () ->\n",
"end": 32,
"score": 0.9982678294181824,
"start": 25,
"tag": "USERNAME",
"value": "jareiko"
},
{
"context": " @tiles = {}\n\n hasTile: (tX, tY) ->\n key = tX + ',' + tY\n ... | server/public/scripts/util/hash2d.coffee | triggerrally/triggerrally.github.io | 1 | ###
# Copyright (C) 2012 jareiko / http://www.jareiko.net/
###
define [
], () ->
exports = {}
class exports.Hash2D
# Hashes objects into a grid of square tiles.
constructor: (@gridSize) ->
@tiles = {}
hasTile: (tX, tY) ->
key = tX + ',' + tY
key in @tiles
getTile: (tX, tY) ->
... | 62381 | ###
# Copyright (C) 2012 jareiko / http://www.jareiko.net/
###
define [
], () ->
exports = {}
class exports.Hash2D
# Hashes objects into a grid of square tiles.
constructor: (@gridSize) ->
@tiles = {}
hasTile: (tX, tY) ->
key = <KEY> t<KEY>
key in @tiles
getTile: (tX, tY) ->
... | true | ###
# Copyright (C) 2012 jareiko / http://www.jareiko.net/
###
define [
], () ->
exports = {}
class exports.Hash2D
# Hashes objects into a grid of square tiles.
constructor: (@gridSize) ->
@tiles = {}
hasTile: (tX, tY) ->
key = PI:KEY:<KEY>END_PI tPI:KEY:<KEY>END_PI
key in @tiles
... |
[
{
"context": " $scope.data ||= {}\n $scope.data.username = 'Anonymous ' + Math.floor(Math.random() * 1000)\n\n $scope.",
"end": 843,
"score": 0.9823928475379944,
"start": 834,
"tag": "USERNAME",
"value": "Anonymous"
},
{
"context": "= ->\n PubNub.init({\n subscrib... | app/scripts/app.coffee | pubnub/angularjs-agile-poker | 0 | 'use strict'
###
We set up the app with 3 main routes: login, lobby, and room
###
angular.module('AgilePoker', ['pubnub.angular.service'])
.config ($routeProvider) ->
$routeProvider
.when '/lobby',
templateUrl: 'views/lobby.html'
controller: 'LobbyCtrl'
.when '/login',
templ... | 73298 | 'use strict'
###
We set up the app with 3 main routes: login, lobby, and room
###
angular.module('AgilePoker', ['pubnub.angular.service'])
.config ($routeProvider) ->
$routeProvider
.when '/lobby',
templateUrl: 'views/lobby.html'
controller: 'LobbyCtrl'
.when '/login',
templ... | true | 'use strict'
###
We set up the app with 3 main routes: login, lobby, and room
###
angular.module('AgilePoker', ['pubnub.angular.service'])
.config ($routeProvider) ->
$routeProvider
.when '/lobby',
templateUrl: 'views/lobby.html'
controller: 'LobbyCtrl'
.when '/login',
templ... |
[
{
"context": "ructions: http://minijs.com/plugins/7/slider\n# By: Matthieu Aussaguel, http://www.mynameismatthieu.com, @mattaussaguel\n",
"end": 118,
"score": 0.9998982548713684,
"start": 100,
"tag": "NAME",
"value": "Matthieu Aussaguel"
},
{
"context": "tthieu Aussaguel, http://www.... | resources/js/miniSlider.coffee | seidnur/test | 1 | #
# miniSlider, a slider plugin for jQuery
# Instructions: http://minijs.com/plugins/7/slider
# By: Matthieu Aussaguel, http://www.mynameismatthieu.com, @mattaussaguel
# Version: 1.0 Stable
# More info: http://minijs.com/
#
class Slide
constructor: (@element, @index, @options) ->
@element.css { position: 'absolut... | 135599 | #
# miniSlider, a slider plugin for jQuery
# Instructions: http://minijs.com/plugins/7/slider
# By: <NAME>, http://www.mynameismatthieu.com, @mattaussaguel
# Version: 1.0 Stable
# More info: http://minijs.com/
#
class Slide
constructor: (@element, @index, @options) ->
@element.css { position: 'absolute', top: 0, ... | true | #
# miniSlider, a slider plugin for jQuery
# Instructions: http://minijs.com/plugins/7/slider
# By: PI:NAME:<NAME>END_PI, http://www.mynameismatthieu.com, @mattaussaguel
# Version: 1.0 Stable
# More info: http://minijs.com/
#
class Slide
constructor: (@element, @index, @options) ->
@element.css { position: 'absol... |
[
{
"context": ": process.env.HUBOT_XMPP_USERNAME\n password: process.env.HUBOT_XMPP_PASSWORD\n host: process.env.HUBOT_XMPP_HOST\n por",
"end": 2465,
"score": 0.9983234405517578,
"start": 2434,
"tag": "PASSWORD",
"value": "process.env.HUBOT_XMPP_PASSWORD"
}
] | src/hubot-single-user-xmpp.coffee | black-roland/hubot-single-user-xmpp | 1 | try
{ Adapter, TextMessage, User } = require 'hubot'
catch
prequire = require 'parent-require'
{ Adapter, TextMessage, User } = prequire 'hubot'
xmpp = require 'simple-xmpp'
class XMPPAdapter extends Adapter
reconnectInterval: 30000
constructor: (robot) ->
@robot = robot
@admin = process.env.HUBOT... | 75551 | try
{ Adapter, TextMessage, User } = require 'hubot'
catch
prequire = require 'parent-require'
{ Adapter, TextMessage, User } = prequire 'hubot'
xmpp = require 'simple-xmpp'
class XMPPAdapter extends Adapter
reconnectInterval: 30000
constructor: (robot) ->
@robot = robot
@admin = process.env.HUBOT... | true | try
{ Adapter, TextMessage, User } = require 'hubot'
catch
prequire = require 'parent-require'
{ Adapter, TextMessage, User } = prequire 'hubot'
xmpp = require 'simple-xmpp'
class XMPPAdapter extends Adapter
reconnectInterval: 30000
constructor: (robot) ->
@robot = robot
@admin = process.env.HUBOT... |
[
{
"context": "###\nCopyright 2017 Balena\n\nLicensed under the Apache License, Version 2.",
"end": 22,
"score": 0.6200683116912842,
"start": 19,
"tag": "NAME",
"value": "Bal"
}
] | lib/actions/local/scan.coffee | edmooney/balena-cli | 0 | ###
Copyright 2017 Balena
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribut... | 190085 | ###
Copyright 2017 <NAME>ena
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
distri... | true | ###
Copyright 2017 PI:NAME:<NAME>END_PIena
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
[
{
"context": "# @author Tim Knip / http://www.floorplanner.com/ / tim at floorplan",
"end": 18,
"score": 0.999886691570282,
"start": 10,
"tag": "NAME",
"value": "Tim Knip"
},
{
"context": "orplanner.com/ / tim at floorplanner.com\n# @author aladjev.andrew@gmail.com\n\n#= require new_... | source/javascripts/new_src/loaders/collada/polygons.coffee | andrew-aladev/three.js | 0 | # @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
# @author aladjev.andrew@gmail.com
#= require new_src/core/geometry
#= require new_src/loaders/collada/input
class Polygons
constructor: ->
@material = ""
@count = 0
@inputs = []
@vcount = null
@p = []
... | 170464 | # @author <NAME> / http://www.floorplanner.com/ / tim at floorplanner.com
# @author <EMAIL>
#= require new_src/core/geometry
#= require new_src/loaders/collada/input
class Polygons
constructor: ->
@material = ""
@count = 0
@inputs = []
@vcount = null
@p = []
@geometry = new THR... | true | # @author PI:NAME:<NAME>END_PI / http://www.floorplanner.com/ / tim at floorplanner.com
# @author PI:EMAIL:<EMAIL>END_PI
#= require new_src/core/geometry
#= require new_src/loaders/collada/input
class Polygons
constructor: ->
@material = ""
@count = 0
@inputs = []
@vcount = null
@p ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.