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": "s and next to the nose.\n '''\n\n scientificName: 'Genetta tigrina'\n mainImage: 'assets/fieldguide-content/mammals/",
"end": 563,
"score": 0.9998063445091248,
"start": 548,
"tag": "NAME",
"value": "Genetta tigrina"
}
] | app/lib/field-guide-content/genet.coffee | zooniverse/wildcam-gorongosa-facebook | 7 | module.exports =
label: 'Large-spotted genet'
description: '''
The large-spotted genet is a small carnivore that is catlike in appearance with soft, short fur. Their base color varies geographically but ranges from yellowish to gray with brown and black spots covering their body. They have a banded tail, a brow... | 100631 | module.exports =
label: 'Large-spotted genet'
description: '''
The large-spotted genet is a small carnivore that is catlike in appearance with soft, short fur. Their base color varies geographically but ranges from yellowish to gray with brown and black spots covering their body. They have a banded tail, a brow... | true | module.exports =
label: 'Large-spotted genet'
description: '''
The large-spotted genet is a small carnivore that is catlike in appearance with soft, short fur. Their base color varies geographically but ranges from yellowish to gray with brown and black spots covering their body. They have a banded tail, a brow... |
[
{
"context": "ge in backend\n#\n# Nodize CMS\n# https://github.com/nodize/nodizecms\n#\n# Original page design :\n# IonizeCMS ",
"end": 77,
"score": 0.9994315505027771,
"start": 71,
"tag": "USERNAME",
"value": "nodize"
},
{
"context": " IonizeCMS (http://www.ionizecms.com), \n# (c) P... | modules/backend/inline_views/view_categoryEdit.coffee | nodize/nodizecms | 32 | # Category edition page in backend
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Original page design :
# IonizeCMS (http://www.ionizecms.com),
# (c) Partikule (http://www.partikule.net)
#
# CoffeeKup conversion & adaptation :
# Hypee (http://hypee.com)
#
# Licensed under the MIT license:
# http://www.opens... | 127737 | # Category edition page in backend
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Original page design :
# IonizeCMS (http://www.ionizecms.com),
# (c) Part<NAME>ule (http://www.partikule.net)
#
# CoffeeKup conversion & adaptation :
# Hypee (http://hypee.com)
#
# Licensed under the MIT license:
# http://www.o... | true | # Category edition page in backend
#
# Nodize CMS
# https://github.com/nodize/nodizecms
#
# Original page design :
# IonizeCMS (http://www.ionizecms.com),
# (c) PartPI:NAME:<NAME>END_PIule (http://www.partikule.net)
#
# CoffeeKup conversion & adaptation :
# Hypee (http://hypee.com)
#
# Licensed under the MIT license:
... |
[
{
"context": "abel').val()\n console.log snippetName\n key = snippetName.toLowerCase()\n if !(key of @snippets)\n i = 0\n whil",
"end": 13744,
"score": 0.9974810481071472,
"start": 13719,
"tag": "KEY",
"value": "snippetName.toLowerCase()"
}
] | lib/tts-panel-view.coffee | mellester/atom-tabletopsimulator-lua | 24 | {$$, View} = require 'space-pen'
{CompositeDisposable} = require 'atom'
{TextEditorView} = require 'atom-space-pen-views'
path = require 'path'
mkdirp = require 'mkdirp'
THROTTLE_VALUES = {0: 0, 1: 0.5, 2: 1, 3: 1.5, 4: 2, 5: 3, 6: 5, 7: 10, 8: 20, 9: 30, 10: 60, 11:999999}
getThrottleText = (throttle) ->
if throttl... | 61728 | {$$, View} = require 'space-pen'
{CompositeDisposable} = require 'atom'
{TextEditorView} = require 'atom-space-pen-views'
path = require 'path'
mkdirp = require 'mkdirp'
THROTTLE_VALUES = {0: 0, 1: 0.5, 2: 1, 3: 1.5, 4: 2, 5: 3, 6: 5, 7: 10, 8: 20, 9: 30, 10: 60, 11:999999}
getThrottleText = (throttle) ->
if throttl... | true | {$$, View} = require 'space-pen'
{CompositeDisposable} = require 'atom'
{TextEditorView} = require 'atom-space-pen-views'
path = require 'path'
mkdirp = require 'mkdirp'
THROTTLE_VALUES = {0: 0, 1: 0.5, 2: 1, 3: 1.5, 4: 2, 5: 3, 6: 5, 7: 10, 8: 20, 9: 30, 10: 60, 11:999999}
getThrottleText = (throttle) ->
if throttl... |
[
{
"context": "###\nCopyright 2016 Balena\n\nLicensed under the Apache License, Version 2.0 (",
"end": 25,
"score": 0.9954862594604492,
"start": 19,
"tag": "NAME",
"value": "Balena"
}
] | lib/auth/server.coffee | eternius/otto-cli | 0 | ###
Copyright 2016 Balena
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | 90487 | ###
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | true | ###
Copyright 2016 PI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
[
{
"context": "###\n termap - Terminal Map Viewer\n by Michael Strassburger <codepoet@cpan.org>\n\n Canvas-like painting abstr",
"end": 60,
"score": 0.9998758435249329,
"start": 40,
"tag": "NAME",
"value": "Michael Strassburger"
},
{
"context": " - Terminal Map Viewer\n by Michael... | src/Canvas.coffee | 82ndAirborneDiv/mapsc | 1 | ###
termap - Terminal Map Viewer
by Michael Strassburger <codepoet@cpan.org>
Canvas-like painting abstraction for BrailleBuffer
Implementation inspired by node-drawille-canvas (https://github.com/madbence/node-drawille-canvas)
* added support for filled polygons
* improved text rendering
Will most like... | 107347 | ###
termap - Terminal Map Viewer
by <NAME> <<EMAIL>>
Canvas-like painting abstraction for BrailleBuffer
Implementation inspired by node-drawille-canvas (https://github.com/madbence/node-drawille-canvas)
* added support for filled polygons
* improved text rendering
Will most likely be turned into a stan... | true | ###
termap - Terminal Map Viewer
by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
Canvas-like painting abstraction for BrailleBuffer
Implementation inspired by node-drawille-canvas (https://github.com/madbence/node-drawille-canvas)
* added support for filled polygons
* improved text rendering
Will most... |
[
{
"context": " ->\n @transaction.get('testNested').set('name', 'jim')\n @transaction.set('banana', 'rama')\n @trans",
"end": 8733,
"score": 0.7702947854995728,
"start": 8732,
"tag": "NAME",
"value": "j"
},
{
"context": "t('banana'), 'rama'\n equal @nested.get('name'), 'jim'\n\nte... | tests/batman/model/transaction_test.coffee | nickjs/batman.js | 3 | PolymorphicAssociationHelpers = if typeof require is 'undefined' then window.PolymorphicAssociationHelpers else require './associations/polymorphic_association_helper'
QUnit.module "Batman.Model::transaction",
setup: ->
scope = this
PolymorphicAssociationHelpers.baseSetup.apply(scope)
class @TestNested e... | 87035 | PolymorphicAssociationHelpers = if typeof require is 'undefined' then window.PolymorphicAssociationHelpers else require './associations/polymorphic_association_helper'
QUnit.module "Batman.Model::transaction",
setup: ->
scope = this
PolymorphicAssociationHelpers.baseSetup.apply(scope)
class @TestNested e... | true | PolymorphicAssociationHelpers = if typeof require is 'undefined' then window.PolymorphicAssociationHelpers else require './associations/polymorphic_association_helper'
QUnit.module "Batman.Model::transaction",
setup: ->
scope = this
PolymorphicAssociationHelpers.baseSetup.apply(scope)
class @TestNested e... |
[
{
"context": "possess a larger tail.\n '''\n\n scientificName: '(Kinixys belliana)'\n mainImage: 'assets/fieldguide-content/reptile",
"end": 632,
"score": 0.9998631477355957,
"start": 616,
"tag": "NAME",
"value": "Kinixys belliana"
}
] | app/lib/field-guide-content/tortoise.coffee | zooniverse/snapshot-wisconsin | 0 | module.exports =
label: 'Bell’s hinged tortoise'
description: '''
The Bell’s hinged tortoise is a medium-sized tortoise with an elongated carapace and a movable rear hinge. This species is one of only four tortoises in the world to possess this unusual structure. They have tails with a clawlike tip and a small ... | 20727 | module.exports =
label: 'Bell’s hinged tortoise'
description: '''
The Bell’s hinged tortoise is a medium-sized tortoise with an elongated carapace and a movable rear hinge. This species is one of only four tortoises in the world to possess this unusual structure. They have tails with a clawlike tip and a small ... | true | module.exports =
label: 'Bell’s hinged tortoise'
description: '''
The Bell’s hinged tortoise is a medium-sized tortoise with an elongated carapace and a movable rear hinge. This species is one of only four tortoises in the world to possess this unusual structure. They have tails with a clawlike tip and a small ... |
[
{
"context": "} class manages events fired by Kaffee.\n\n @author Fabian M. <mail.fabianm@gmail.com>\n###\nclass EventManager\n",
"end": 120,
"score": 0.9996826648712158,
"start": 112,
"tag": "NAME",
"value": "Fabian M"
},
{
"context": "ges events fired by Kaffee.\n\n @author Fabia... | kaffee/src/main/kaffee/event/manager.coffee | fabianm/kaffee | 1 | LogEvent = require './logevent'
###
The {@link EventManager} class manages events fired by Kaffee.
@author Fabian M. <mail.fabianm@gmail.com>
###
class EventManager
###
Constructs a new {@link EventManager} instance.
@since 0.3.0
@param name The name of this {@link EventManager}.
@param parent Th... | 186981 | LogEvent = require './logevent'
###
The {@link EventManager} class manages events fired by Kaffee.
@author <NAME>. <<EMAIL>>
###
class EventManager
###
Constructs a new {@link EventManager} instance.
@since 0.3.0
@param name The name of this {@link EventManager}.
@param parent The parent {@link E... | true | LogEvent = require './logevent'
###
The {@link EventManager} class manages events fired by Kaffee.
@author PI:NAME:<NAME>END_PI. <PI:EMAIL:<EMAIL>END_PI>
###
class EventManager
###
Constructs a new {@link EventManager} instance.
@since 0.3.0
@param name The name of this {@link EventManager}.
@par... |
[
{
"context": "# Copyright 2013 Matt Farmer\n#\n# Licensed under the Apache License, Version ",
"end": 30,
"score": 0.999836802482605,
"start": 19,
"tag": "NAME",
"value": "Matt Farmer"
},
{
"context": "uire('mongodb').MongoClient\nmongoUrl = \"mongodb://127.0.0.1:27017/galegis-ap... | jobs/scrape-representatives.coffee | maggie-lee/galegis-api | 1 | # Copyright 2013 Matt Farmer
#
# 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... | 193949 | # Copyright 2013 <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 writ... | true | # Copyright 2013 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 agr... |
[
{
"context": " new TracesFilter(\n _id: 3,\n name: 'Starred',\n icon: 'star',\n builtin: 'starred',\n ",
"end": 1889,
"score": 0.5079618692398071,
"start": 1886,
"tag": "NAME",
"value": "red"
},
{
"context": "uiltin: 'starred',\n tokens: [{\n key: 'sta... | app/assets/javascripts/controllers/traces.coffee | rrampage/monitor | 114 | angular.module('slug.traces.services', ['ngResource', 'slug.services.pretty_print'])
.factory 'ServiceTrace', ($resource, $state, Trace) ->
ServiceTrace = $resource '/api/services/:service_id/traces/:id/:action/',
{ id: '@_id', service_id: -> $state.params.serviceId },
search:
method: 'GET',
isArr... | 151081 | angular.module('slug.traces.services', ['ngResource', 'slug.services.pretty_print'])
.factory 'ServiceTrace', ($resource, $state, Trace) ->
ServiceTrace = $resource '/api/services/:service_id/traces/:id/:action/',
{ id: '@_id', service_id: -> $state.params.serviceId },
search:
method: 'GET',
isArr... | true | angular.module('slug.traces.services', ['ngResource', 'slug.services.pretty_print'])
.factory 'ServiceTrace', ($resource, $state, Trace) ->
ServiceTrace = $resource '/api/services/:service_id/traces/:id/:action/',
{ id: '@_id', service_id: -> $state.params.serviceId },
search:
method: 'GET',
isArr... |
[
{
"context": " for key, value of vars\n if key.match /^[A-Z_]+$/\n delete vars[key]\n\n # catch unhandled p",
"end": 811,
"score": 0.772805392742157,
"start": 805,
"tag": "KEY",
"value": "Z_]+$/"
}
] | src/util/setup.coffee | citizencode/swarmbot | 21 | global.Promise = require 'bluebird' # ensure bluebird is always used instead of built-in Promise
# global debuggers, so that we have a single color for each
Debug = require 'debug'
global.debug = Debug 'app'
global.debugReply = Debug 'reply'
global.errorLog = Debug 'error'
global.inspectFallback = Debug 'fallback'
{ ... | 55569 | global.Promise = require 'bluebird' # ensure bluebird is always used instead of built-in Promise
# global debuggers, so that we have a single color for each
Debug = require 'debug'
global.debug = Debug 'app'
global.debugReply = Debug 'reply'
global.errorLog = Debug 'error'
global.inspectFallback = Debug 'fallback'
{ ... | true | global.Promise = require 'bluebird' # ensure bluebird is always used instead of built-in Promise
# global debuggers, so that we have a single color for each
Debug = require 'debug'
global.debug = Debug 'app'
global.debugReply = Debug 'reply'
global.errorLog = Debug 'error'
global.inspectFallback = Debug 'fallback'
{ ... |
[
{
"context": "rs = [\n [ [ '^foo' ], { '$fresh': true, '$key': '^foo' }, null ]\n [ [ '^foo', { foo: 'bar' } ], { fo",
"end": 2317,
"score": 0.8340163826942444,
"start": 2312,
"tag": "KEY",
"value": "'^foo"
},
{
"context": ": 'bar' } ], { foo: 'bar', '$fresh': true, '$key': '^f... | dev/datom/src/basics.test.coffee | loveencounterflow/hengist | 0 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... | 155611 |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... | true |
'use strict'
############################################################################################################
CND = require 'cnd'
rpr = CND.rpr
badge = 'DATOM/TESTS/BASICS'
debug = CND.get_logger 'debug', badge
warn ... |
[
{
"context": "s\n @devices.insert uuid: 'valid-uuid', token: bcrypt.hashSync('valid-token', 8), done\n\n describe 'w",
"end": 960,
"score": 0.7563848495483398,
"start": 954,
"tag": "PASSWORD",
"value": "bcrypt"
}
] | test/lib/authDevice-spec.coffee | Christopheraburns/projecttelemetry | 0 | _ = require 'lodash'
bcrypt = require 'bcrypt'
TestDatabase = require '../test-database'
describe 'authDevice', ->
beforeEach (done) ->
@sut = require '../../lib/authDevice'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close... | 32835 | _ = require 'lodash'
bcrypt = require 'bcrypt'
TestDatabase = require '../test-database'
describe 'authDevice', ->
beforeEach (done) ->
@sut = require '../../lib/authDevice'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close... | true | _ = require 'lodash'
bcrypt = require 'bcrypt'
TestDatabase = require '../test-database'
describe 'authDevice', ->
beforeEach (done) ->
@sut = require '../../lib/authDevice'
TestDatabase.open (error, database) =>
@database = database
done error
afterEach ->
@database.close... |
[
{
"context": " rich text editing jQuery UI widget\n# (c) 2011 Henri Bergius, IKS Consortium\n# Hallo may be freely distrib",
"end": 79,
"score": 0.9998489618301392,
"start": 66,
"tag": "NAME",
"value": "Henri Bergius"
}
] | src/toolbar/fixed.coffee | GerHobbelt/hallo | 0 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 Henri Bergius, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Fixed toolbar plugin
((jQuery) ->
jQuery.widget 'IKS.halloToolbarFixed',
toolbar: null
options:
parentElement: 'body'
editable: null
... | 99639 | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 <NAME>, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Fixed toolbar plugin
((jQuery) ->
jQuery.widget 'IKS.halloToolbarFixed',
toolbar: null
options:
parentElement: 'body'
editable: null
t... | true | # Hallo - a rich text editing jQuery UI widget
# (c) 2011 PI:NAME:<NAME>END_PI, IKS Consortium
# Hallo may be freely distributed under the MIT license
#
# Fixed toolbar plugin
((jQuery) ->
jQuery.widget 'IKS.halloToolbarFixed',
toolbar: null
options:
parentElement: 'body'
editable... |
[
{
"context": "ew ControllerTest.Desert\n id: 1\n name: 'Sonoran'\n @desert.save()\n \n cactus1 = new Contro",
"end": 194,
"score": 0.9995923638343811,
"start": 187,
"tag": "NAME",
"value": "Sonoran"
},
{
"context": "actus\n id: 1\n desert_id: 1\n nam... | test/controller_test/app/assets/javascripts/controllers/plurals_controller.js.coffee | kirkbowers/mvcoffee | 0 | class ControllerTest.PluralsController extends MVCoffee.Controller
onStart: ->
# Populate with some silly data
@desert = new ControllerTest.Desert
id: 1
name: 'Sonoran'
@desert.save()
cactus1 = new ControllerTest.Cactus
id: 1
desert_id: 1
name: 'Saguara'
cac... | 9827 | class ControllerTest.PluralsController extends MVCoffee.Controller
onStart: ->
# Populate with some silly data
@desert = new ControllerTest.Desert
id: 1
name: '<NAME>'
@desert.save()
cactus1 = new ControllerTest.Cactus
id: 1
desert_id: 1
name: '<NAME>'
cactu... | true | class ControllerTest.PluralsController extends MVCoffee.Controller
onStart: ->
# Populate with some silly data
@desert = new ControllerTest.Desert
id: 1
name: 'PI:NAME:<NAME>END_PI'
@desert.save()
cactus1 = new ControllerTest.Cactus
id: 1
desert_id: 1
name: 'PI:... |
[
{
"context": "ms, cb\n\n\t\t\t\tall =\n\t\t\t\t\t_id: 'all'\n\t\t\t\t\tusername: 'all'\n\t\t\t\t\tsystem: true\n\t\t\t\t\tname: t 'Notify_all_in_th",
"end": 3411,
"score": 0.9983800053596497,
"start": 3408,
"tag": "USERNAME",
"value": "all"
},
{
"context": " all\n\n\t\t\t\there =\n\t... | packages/rocketchat-ui-message/client/popup/messagePopupConfig.coffee | kumarpradeephk/mychatapp | 1 | @filteredUsersMemory = new Mongo.Collection null
Meteor.startup ->
Tracker.autorun ->
if not Meteor.user()? or not Session.get('openedRoom')?
return
filteredUsersMemory.remove({})
messageUsers = RocketChat.models.Messages.find({rid: Session.get('openedRoom'), 'u.username': {$ne: Meteor.user().username}}, {f... | 49090 | @filteredUsersMemory = new Mongo.Collection null
Meteor.startup ->
Tracker.autorun ->
if not Meteor.user()? or not Session.get('openedRoom')?
return
filteredUsersMemory.remove({})
messageUsers = RocketChat.models.Messages.find({rid: Session.get('openedRoom'), 'u.username': {$ne: Meteor.user().username}}, {f... | true | @filteredUsersMemory = new Mongo.Collection null
Meteor.startup ->
Tracker.autorun ->
if not Meteor.user()? or not Session.get('openedRoom')?
return
filteredUsersMemory.remove({})
messageUsers = RocketChat.models.Messages.find({rid: Session.get('openedRoom'), 'u.username': {$ne: Meteor.user().username}}, {f... |
[
{
"context": "\n\n\n# 'Firebase REST API Class' module v1.0\n# by Marc Krenn, May 31st, 2016 | marc.krenn@gmail.com | @marc_kr",
"end": 58,
"score": 0.9998903274536133,
"start": 48,
"tag": "NAME",
"value": "Marc Krenn"
},
{
"context": "ass' module v1.0\n# by Marc Krenn, May 31st, 201... | modules/firebase.coffee | charleswong28/wids2016_framerjs | 41 |
# 'Firebase REST API Class' module v1.0
# by Marc Krenn, May 31st, 2016 | marc.krenn@gmail.com | @marc_krenn
# Documentation of this Module: https://github.com/marckrenn/framer-Firebase
# ------ : ------- Firebase REST API: https://firebase.google.com/docs/reference/rest/database/
# ToDo:
# Fix onChange "connecti... | 217023 |
# 'Firebase REST API Class' module v1.0
# by <NAME>, May 31st, 2016 | <EMAIL> | @marc_krenn
# Documentation of this Module: https://github.com/marckrenn/framer-Firebase
# ------ : ------- Firebase REST API: https://firebase.google.com/docs/reference/rest/database/
# ToDo:
# Fix onChange "connection", `this´ conte... | true |
# 'Firebase REST API Class' module v1.0
# by PI:NAME:<NAME>END_PI, May 31st, 2016 | PI:EMAIL:<EMAIL>END_PI | @marc_krenn
# Documentation of this Module: https://github.com/marckrenn/framer-Firebase
# ------ : ------- Firebase REST API: https://firebase.google.com/docs/reference/rest/database/
# ToDo:
# Fix onChan... |
[
{
"context": "l>\n# @todo Allow **markdown** in todos\n#\n# @author Mickey\n# @author **Donald**\n# @copyright _No Copyright_\n",
"end": 466,
"score": 0.9994761943817139,
"start": 460,
"tag": "NAME",
"value": "Mickey"
},
{
"context": "arkdown** in todos\n#\n# @author Mickey\n# @autho... | node_modules/grunt-codo/node_modules/codo/spec/_templates/classes/class_description_markdown.coffee | fredturnerr/SRT | 210 | # Codo - the CoffeeScript API documentation generator
#
# # Header 1
#
# This is a paragraph.
#
# ## Header 2
#
# This is a paragraph.
#
# ### Header 3
#
# This is a paragraph.
#
# #### Header 4
#
# This is a paragraph.
#
# ##### Header 5
#
# This is a paragraph.
#
# ###### Header 6
#
# This is a paragraph.
#
# @abstra... | 202538 | # Codo - the CoffeeScript API documentation generator
#
# # Header 1
#
# This is a paragraph.
#
# ## Header 2
#
# This is a paragraph.
#
# ### Header 3
#
# This is a paragraph.
#
# #### Header 4
#
# This is a paragraph.
#
# ##### Header 5
#
# This is a paragraph.
#
# ###### Header 6
#
# This is a paragraph.
#
# @abstra... | true | # Codo - the CoffeeScript API documentation generator
#
# # Header 1
#
# This is a paragraph.
#
# ## Header 2
#
# This is a paragraph.
#
# ### Header 3
#
# This is a paragraph.
#
# #### Header 4
#
# This is a paragraph.
#
# ##### Header 5
#
# This is a paragraph.
#
# ###### Header 6
#
# This is a paragraph.
#
# @abstra... |
[
{
"context": "ic CoffeeScript.\n \"\"\"\n\n\n tokens: [ \"CALL_END\" ]\n\n lintToken : (token, tokenApi) ->\n ",
"end": 674,
"score": 0.9621188640594482,
"start": 666,
"tag": "KEY",
"value": "CALL_END"
}
] | src/rules/no_implicit_parens.coffee | zmbush/coffeelint | 1 |
module.exports = class NoImplicitParens
rule:
name: 'no_implicit_parens'
strict : true
level : 'ignore'
message : 'Implicit parens are forbidden'
description: """
This rule prohibits implicit parens on function calls.
<pre>
<code># Some f... | 136429 |
module.exports = class NoImplicitParens
rule:
name: 'no_implicit_parens'
strict : true
level : 'ignore'
message : 'Implicit parens are forbidden'
description: """
This rule prohibits implicit parens on function calls.
<pre>
<code># Some f... | true |
module.exports = class NoImplicitParens
rule:
name: 'no_implicit_parens'
strict : true
level : 'ignore'
message : 'Implicit parens are forbidden'
description: """
This rule prohibits implicit parens on function calls.
<pre>
<code># Some f... |
[
{
"context": "tion: 'gulp-angualr-coffee-jade-less-seed'\nauthor: ':FooTearth <footearth@gmail.com>'\nmain: 'README.md'\nlicense:",
"end": 145,
"score": 0.953412652015686,
"start": 134,
"tag": "USERNAME",
"value": "':FooTearth"
},
{
"context": "gualr-coffee-jade-less-seed'\nauthor: '... | npb.cson | zhaosoap/front-end-seed | 2 | # PUBLIC CONFIG
name: 'gulp-angualr-coffee-jade-less-seed'
version: '0.0.0'
description: 'gulp-angualr-coffee-jade-less-seed'
author: ':FooTearth <footearth@gmail.com>'
main: 'README.md'
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/gulp-angualr-coffee-jade-less-seed.git'
bugs:
url: 'ht... | 145283 | # PUBLIC CONFIG
name: 'gulp-angualr-coffee-jade-less-seed'
version: '0.0.0'
description: 'gulp-angualr-coffee-jade-less-seed'
author: ':FooTearth <<EMAIL>>'
main: 'README.md'
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/gulp-angualr-coffee-jade-less-seed.git'
bugs:
url: 'https://github... | true | # PUBLIC CONFIG
name: 'gulp-angualr-coffee-jade-less-seed'
version: '0.0.0'
description: 'gulp-angualr-coffee-jade-less-seed'
author: ':FooTearth <PI:EMAIL:<EMAIL>END_PI>'
main: 'README.md'
license: 'MIT'
repository:
type: 'git'
url: 'https://github.com/Mooxe000/gulp-angualr-coffee-jade-less-seed.git'
bugs:
url: ... |
[
{
"context": "rView - loading indicator control class\n# Coded by Hajime Oh-yake 2013.05.16\n#*************************************",
"end": 128,
"score": 0.9998888969421387,
"start": 114,
"tag": "NAME",
"value": "Hajime Oh-yake"
}
] | JSKit/03_JSActivityIndicatorView.coffee | digitarhythm/codeJS | 0 | #*****************************************
# JSActivityIndicatorView - loading indicator control class
# Coded by Hajime Oh-yake 2013.05.16
#*****************************************
class JSActivityIndicatorView extends JSView
constructor: (frame)->
super(frame)
@_bgColor = JSColor("clearColor")
... | 26884 | #*****************************************
# JSActivityIndicatorView - loading indicator control class
# Coded by <NAME> 2013.05.16
#*****************************************
class JSActivityIndicatorView extends JSView
constructor: (frame)->
super(frame)
@_bgColor = JSColor("clearColor")
@... | true | #*****************************************
# JSActivityIndicatorView - loading indicator control class
# Coded by PI:NAME:<NAME>END_PI 2013.05.16
#*****************************************
class JSActivityIndicatorView extends JSView
constructor: (frame)->
super(frame)
@_bgColor = JSColor("clearCol... |
[
{
"context": "answerIndex, '_'\n isI18N = key is 'i18n'\n if isI18N and not isDeletion\n ",
"end": 1225,
"score": 0.997428297996521,
"start": 1221,
"tag": "KEY",
"value": "i18n"
}
] | app/models/Poll.coffee | cihatislamdede/codecombat | 4,858 | CocoModel = require './CocoModel'
schema = require 'schemas/models/poll.schema'
module.exports = class Poll extends CocoModel
@className: 'Poll'
@schema: schema
urlRoot: '/db/poll'
applyDelta: (delta) ->
# Hackiest hacks ever, just manually mauling the delta (whose format I don't understand) to not overwr... | 70860 | CocoModel = require './CocoModel'
schema = require 'schemas/models/poll.schema'
module.exports = class Poll extends CocoModel
@className: 'Poll'
@schema: schema
urlRoot: '/db/poll'
applyDelta: (delta) ->
# Hackiest hacks ever, just manually mauling the delta (whose format I don't understand) to not overwr... | true | CocoModel = require './CocoModel'
schema = require 'schemas/models/poll.schema'
module.exports = class Poll extends CocoModel
@className: 'Poll'
@schema: schema
urlRoot: '/db/poll'
applyDelta: (delta) ->
# Hackiest hacks ever, just manually mauling the delta (whose format I don't understand) to not overwr... |
[
{
"context": " searchTerms = [\n {label: \"<b>?<u>s</u>mart</b> <small><small>(examples: <i>hep-th/9",
"end": 9329,
"score": 0.6047454476356506,
"start": 9328,
"tag": "NAME",
"value": "s"
},
{
"context": " searchTerms = [\n {label: \"<b>?<u>s</u>mart</b> <... | js/coffee/main.coffee | paperscape/paperscape-mapclient | 83 | # MAIN
#
# Handles non-canvas events, page refresh/resize etc.
define ['app/ajax','app/search','app/mapview','app/infoview','app/fadeview','app/detailview','app/newpapersview','app/input','lib/mousetrap','jquery','jquery.autocomplete','jquery.autocomplete.html'], (AJAX,SEARCH,MAPVIEW,INFOVIEW,FADEVIEW,DETAILVIEW,NEW... | 13617 | # MAIN
#
# Handles non-canvas events, page refresh/resize etc.
define ['app/ajax','app/search','app/mapview','app/infoview','app/fadeview','app/detailview','app/newpapersview','app/input','lib/mousetrap','jquery','jquery.autocomplete','jquery.autocomplete.html'], (AJAX,SEARCH,MAPVIEW,INFOVIEW,FADEVIEW,DETAILVIEW,NEW... | true | # MAIN
#
# Handles non-canvas events, page refresh/resize etc.
define ['app/ajax','app/search','app/mapview','app/infoview','app/fadeview','app/detailview','app/newpapersview','app/input','lib/mousetrap','jquery','jquery.autocomplete','jquery.autocomplete.html'], (AJAX,SEARCH,MAPVIEW,INFOVIEW,FADEVIEW,DETAILVIEW,NEW... |
[
{
"context": "# @author Tim Knip / http://www.floorplanner.com/ / tim at floorplan",
"end": 18,
"score": 0.9998895525932312,
"start": 10,
"tag": "NAME",
"value": "Tim Knip"
},
{
"context": "orplanner.com/ / tim at floorplanner.com\n# @author aladjev.andrew@gmail.com\n\nclass Accessor... | source/javascripts/new_src/loaders/collada/accessor.coffee | andrew-aladev/three.js | 0 | # @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
# @author aladjev.andrew@gmail.com
class Accessor
constructor: ->
@source = ""
@count = 0
@stride = 0
@params = []
parse: (element) ->
@params = []
@source = element.getAttribute "source"
@count =... | 175317 | # @author <NAME> / http://www.floorplanner.com/ / tim at floorplanner.com
# @author <EMAIL>
class Accessor
constructor: ->
@source = ""
@count = 0
@stride = 0
@params = []
parse: (element) ->
@params = []
@source = element.getAttribute "source"
@count = THREE.ColladaLoade... | true | # @author PI:NAME:<NAME>END_PI / http://www.floorplanner.com/ / tim at floorplanner.com
# @author PI:EMAIL:<EMAIL>END_PI
class Accessor
constructor: ->
@source = ""
@count = 0
@stride = 0
@params = []
parse: (element) ->
@params = []
@source = element.getAttribute "source"
... |
[
{
"context": "ileoverview Tests for react-in-jsx-scope\n# @author Glen Mailer\n###\n\n'use strict'\n\n# ----------------------------",
"end": 71,
"score": 0.999687910079956,
"start": 60,
"tag": "NAME",
"value": "Glen Mailer"
}
] | src/tests/rules/react-in-jsx-scope.coffee | danielbayley/eslint-plugin-coffee | 21 | ###*
# @fileoverview Tests for react-in-jsx-scope
# @author Glen Mailer
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rules/react-i... | 85632 | ###*
# @fileoverview Tests for react-in-jsx-scope
# @author <NAME>
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rules/react-in-jsx... | true | ###*
# @fileoverview Tests for react-in-jsx-scope
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rule... |
[
{
"context": "@storage_key = options.storage_key ? \"coderwall:autosaver:textfield:#{@autosave_field}\"\n @key_a",
"end": 320,
"score": 0.6215015053749084,
"start": 320,
"tag": "KEY",
"value": ""
},
{
"context": "ey = options.storage_key ? \"coderwall:autosaver:textfield:#{@... | app/assets/javascripts/autosaver.js.coffee | StoneCypher/coderwall | 0 | window.Coderwall ?= {}
window.Coderwall.Autosaver ?= {}
class window.Coderwall.Autosaver.TextField
constructor: (options={}) ->
return unless @supportsStorage()
@autosave_field = $("##{options.field_id}")
@save_delay = options.save_delay ? 3000
@storage_key = options.storage_key ? "coderwall... | 6124 | window.Coderwall ?= {}
window.Coderwall.Autosaver ?= {}
class window.Coderwall.Autosaver.TextField
constructor: (options={}) ->
return unless @supportsStorage()
@autosave_field = $("##{options.field_id}")
@save_delay = options.save_delay ? 3000
@storage_key = options.storage_key ? "coderwall... | true | window.Coderwall ?= {}
window.Coderwall.Autosaver ?= {}
class window.Coderwall.Autosaver.TextField
constructor: (options={}) ->
return unless @supportsStorage()
@autosave_field = $("##{options.field_id}")
@save_delay = options.save_delay ? 3000
@storage_key = options.storage_key ? "coderwall... |
[
{
"context": " save_attrs = { label: attrs.label, password: ciphertext.toString() }\n collection.create(save_attrs, {remote: fa",
"end": 780,
"score": 0.8322024345397949,
"start": 761,
"tag": "PASSWORD",
"value": "ciphertext.toString"
}
] | client/mobile/app/coffee/modules/password/form/views/layout.coffee | aeksco/ble-key | 0 |
# PasswordForm class definition
# Defines a Marionette.LayoutView class for collecting
# parameters used to create or update a PasswordModel
# This view is a work in progress, much like the rest of the PasswordModule
class PasswordForm extends Marionette.LayoutView
className: 'row'
template: require './templates/... | 125887 |
# PasswordForm class definition
# Defines a Marionette.LayoutView class for collecting
# parameters used to create or update a PasswordModel
# This view is a work in progress, much like the rest of the PasswordModule
class PasswordForm extends Marionette.LayoutView
className: 'row'
template: require './templates/... | true |
# PasswordForm class definition
# Defines a Marionette.LayoutView class for collecting
# parameters used to create or update a PasswordModel
# This view is a work in progress, much like the rest of the PasswordModule
class PasswordForm extends Marionette.LayoutView
className: 'row'
template: require './templates/... |
[
{
"context": "etwork: 'wifi',\n# \twifiSsid: 'ssid',\n# \twifiKey: 'secret',\n# \tappId: 91\n# };\n#\n# resin.models.os.download(",
"end": 1616,
"score": 0.978520929813385,
"start": 1610,
"tag": "KEY",
"value": "secret"
},
{
"context": "etwork: 'wifi',\n# \twifiSsid: 'ssid',\n# \twif... | lib/models/os.coffee | everyside/resin-sdk | 0 | ###
The MIT License
Copyright (c) 2015 Resin.io, Inc. https://resin.io.
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, ... | 185148 | ###
The MIT License
Copyright (c) 2015 Resin.io, Inc. https://resin.io.
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, ... | true | ###
The MIT License
Copyright (c) 2015 Resin.io, Inc. https://resin.io.
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, ... |
[
{
"context": " aName = @memberUserMap[a]?.get('name') ? 'Anoner'\n bName = @memberUserMap[b]?.get('name')",
"end": 11998,
"score": 0.9992305040359497,
"start": 11992,
"tag": "NAME",
"value": "Anoner"
},
{
"context": " bName = @memberUserMap[b]?.get('name') ? 'A... | app/views/courses/CourseDetailsView.coffee | SaintRamzes/codecombat | 1 | Campaign = require 'models/Campaign'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
LevelSession = require 'models/LevelSession'
RootView = require 'views/core/RootView'
template = require 'templates/courses/course-details'
User = ... | 73517 | Campaign = require 'models/Campaign'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
LevelSession = require 'models/LevelSession'
RootView = require 'views/core/RootView'
template = require 'templates/courses/course-details'
User = ... | true | Campaign = require 'models/Campaign'
CocoCollection = require 'collections/CocoCollection'
Course = require 'models/Course'
CourseInstance = require 'models/CourseInstance'
LevelSession = require 'models/LevelSession'
RootView = require 'views/core/RootView'
template = require 'templates/courses/course-details'
User = ... |
[
{
"context": " id : @id\n name : @name\n uid : @id\n serviceTy",
"end": 1344,
"score": 0.8231323957443237,
"start": 1344,
"tag": "NAME",
"value": ""
},
{
"context": "d : @id\n name : @name\n ... | stage/shims/app-component.coffee | nanobox-io/nanobox-dash-ui-clobber-box | 1 | module.exports = class AppComponent
@appComponentCount : 0
constructor : (kind='web', @type="ruby", scalesHorizontally=true, scalesRedund=false, hostId) ->
@generationCount = 1
@state = 'active'
@status = 'online'
@serverSpecsId = "b3"
@id = "#{kind}... | 62410 | module.exports = class AppComponent
@appComponentCount : 0
constructor : (kind='web', @type="ruby", scalesHorizontally=true, scalesRedund=false, hostId) ->
@generationCount = 1
@state = 'active'
@status = 'online'
@serverSpecsId = "b3"
@id = "#{kind}... | true | module.exports = class AppComponent
@appComponentCount : 0
constructor : (kind='web', @type="ruby", scalesHorizontally=true, scalesRedund=false, hostId) ->
@generationCount = 1
@state = 'active'
@status = 'online'
@serverSpecsId = "b3"
@id = "#{kind}... |
[
{
"context": "nforce lang attribute has a valid value.\n# @author Ethan Cohen\n###\n\n# ------------------------------------------",
"end": 108,
"score": 0.999876081943512,
"start": 97,
"tag": "NAME",
"value": "Ethan Cohen"
}
] | src/tests/rules/lang.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview Enforce lang attribute has a valid value.
# @author Ethan Cohen
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{RuleTes... | 126001 | ### eslint-env jest ###
###*
# @fileoverview Enforce lang attribute has a valid value.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{RuleTester} ... | true | ### eslint-env jest ###
###*
# @fileoverview Enforce lang attribute has a valid value.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'... |
[
{
"context": " member.teamId = team.id\n member.firstName = 'Test'\n teamsnap.saveMember member, (err, result) ->",
"end": 159,
"score": 0.9992847442626953,
"start": 155,
"tag": "NAME",
"value": "Test"
}
] | test/memberPhotos.coffee | teamsnap/teamsnap-javascript-sdk | 9 | describe 'Member Photos', ->
member = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = 'Test'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
result.should.have.property('type', 'member')
done()
after (done) ... | 198193 | describe 'Member Photos', ->
member = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = '<NAME>'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
result.should.have.property('type', 'member')
done()
after (done... | true | describe 'Member Photos', ->
member = null
before (done) ->
member = teamsnap.createMember()
member.teamId = team.id
member.firstName = 'PI:NAME:<NAME>END_PI'
teamsnap.saveMember member, (err, result) ->
expect(err).to.be.null
result.should.have.property('type', 'member')
done()
... |
[
{
"context": "'my iteration'\n ObjectID: i\n Name: 'my iteration'\n StartDate: new Date()\n EndDate: n",
"end": 9412,
"score": 0.9006379842758179,
"start": 9400,
"tag": "NAME",
"value": "my iteration"
}
] | test/spec/iterationplanningboard/IterationPlanningBoardColumnSpec.coffee | RallyHackathon/app-catalog | 1 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.ui.renderer.template.progressbar.TimeboxProgressBarTemplate'
]
describe 'Rally.apps.iterationplanningboard.IterationPlanningBoardColumn', ->
beforeEach ->
queryStub = @ajax.whenQuerying('artifact').respondWith()
@colors = Rally.ui.renderer.template.prog... | 100452 | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.ui.renderer.template.progressbar.TimeboxProgressBarTemplate'
]
describe 'Rally.apps.iterationplanningboard.IterationPlanningBoardColumn', ->
beforeEach ->
queryStub = @ajax.whenQuerying('artifact').respondWith()
@colors = Rally.ui.renderer.template.prog... | true | Ext = window.Ext4 || window.Ext
Ext.require [
'Rally.ui.renderer.template.progressbar.TimeboxProgressBarTemplate'
]
describe 'Rally.apps.iterationplanningboard.IterationPlanningBoardColumn', ->
beforeEach ->
queryStub = @ajax.whenQuerying('artifact').respondWith()
@colors = Rally.ui.renderer.template.prog... |
[
{
"context": " field in fields\r\n\t\tif key != ''\r\n\t\t\tkey = key + '|' + row[field]\r\n\t\telse\r\n\t\t\tkey = row[field]\r\n\treturn key\r\n",
"end": 2042,
"score": 0.705843448638916,
"start": 2036,
"tag": "KEY",
"value": "+ row["
},
{
"context": "ds\r\n\t\tif key != ''\r\n\t\t... | jsonGroupby.coffee | scotthathaway/jsonGroupBy | 1 | parseFormula = (formula, formula_info) ->
actions = ['CountAll','SumAll','MinAll','MaxAll','AvgAll','Sum','Count','Min','Max','Avg']
# for field, formula of formula_data
# console.log formula
for name in formula_info
for action in actions
data = "data"
if action=="Sum" or action=="Count" or action=="... | 135788 | parseFormula = (formula, formula_info) ->
actions = ['CountAll','SumAll','MinAll','MaxAll','AvgAll','Sum','Count','Min','Max','Avg']
# for field, formula of formula_data
# console.log formula
for name in formula_info
for action in actions
data = "data"
if action=="Sum" or action=="Count" or action=="... | true | parseFormula = (formula, formula_info) ->
actions = ['CountAll','SumAll','MinAll','MaxAll','AvgAll','Sum','Count','Min','Max','Avg']
# for field, formula of formula_data
# console.log formula
for name in formula_info
for action in actions
data = "data"
if action=="Sum" or action=="Count" or action=="... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9990978240966797,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/simple/test-require-cache-without-stat.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... | 119981 | # 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": "9. The Redis port.\n* `host`, *optional* Default: \"127.0.0.1\". The Redis host.\n* `options`, *optional* Default",
"end": 462,
"score": 0.9997333884239197,
"start": 453,
"tag": "IP_ADDRESS",
"value": "127.0.0.1"
},
{
"context": "+ \":\"\n\t\tport = o.port or 6379\n\t\t... | index.coffee | thomask52/redis-tagging | 38 | RedisInst = require "redis"
_template = require "lodash/template"
_isNaN = require "lodash/isNaN"
_isArray = require "lodash/isArray"
_isNumber = require "lodash/isNumber"
_isString = require "lodash/isString"
###
Redis Tagging
To create a new instance use:
RedisTagging = require("redis-tagging")
rt = new Red... | 127572 | RedisInst = require "redis"
_template = require "lodash/template"
_isNaN = require "lodash/isNaN"
_isArray = require "lodash/isArray"
_isNumber = require "lodash/isNumber"
_isString = require "lodash/isString"
###
Redis Tagging
To create a new instance use:
RedisTagging = require("redis-tagging")
rt = new Red... | true | RedisInst = require "redis"
_template = require "lodash/template"
_isNaN = require "lodash/isNaN"
_isArray = require "lodash/isArray"
_isNumber = require "lodash/isNumber"
_isString = require "lodash/isString"
###
Redis Tagging
To create a new instance use:
RedisTagging = require("redis-tagging")
rt = new Red... |
[
{
"context": " + \"/login\"\n jar: jar\n json:\n username: username\n password: password\n authSig: authSig\n ",
"end": 710,
"score": 0.9993842244148254,
"start": 702,
"tag": "USERNAME",
"value": "username"
},
{
"context": " json:\n username: username\n ... | test/load/chatloadtestalt.coffee | SchoolOfFreelancing/SureSpot | 1 | request = require("request")
http = require 'http'
assert = require("assert")
should = require("should")
redis = require("redis")
util = require("util")
fs = require("fs")
io = require 'socket.io-client'
async = require 'async'
_ = require 'underscore'
dcrypt = require 'dcrypt'
crypto = require 'crypto'
rc = redis.cre... | 133105 | request = require("request")
http = require 'http'
assert = require("assert")
should = require("should")
redis = require("redis")
util = require("util")
fs = require("fs")
io = require 'socket.io-client'
async = require 'async'
_ = require 'underscore'
dcrypt = require 'dcrypt'
crypto = require 'crypto'
rc = redis.cre... | true | request = require("request")
http = require 'http'
assert = require("assert")
should = require("should")
redis = require("redis")
util = require("util")
fs = require("fs")
io = require 'socket.io-client'
async = require 'async'
_ = require 'underscore'
dcrypt = require 'dcrypt'
crypto = require 'crypto'
rc = redis.cre... |
[
{
"context": "ach ->\n users = [\n {_id: 0, first_name: 'A', last_name: 'B', email: 'a.b@ab.com'},\n {_i",
"end": 91,
"score": 0.9982752799987793,
"start": 90,
"tag": "NAME",
"value": "A"
},
{
"context": " = [\n {_id: 0, first_name: 'A', last_name: 'B', email: 'a.... | spec/javascripts/admin_views/group_edit_dialog_view_spec.js.coffee | projectcypress/bonnie | 0 | describe 'GroupEditDialog', ->
beforeEach ->
users = [
{_id: 0, first_name: 'A', last_name: 'B', email: 'a.b@ab.com'},
{_id: 1, first_name: 'C', last_name: 'D', email: 'a.b@cd.com'},
]
@editDialog = new Thorax.Views.GroupEditDialog(
model: new Thorax.Model(users: users, name: 'CMS', _i... | 51249 | describe 'GroupEditDialog', ->
beforeEach ->
users = [
{_id: 0, first_name: '<NAME>', last_name: '<NAME>', email: '<EMAIL>'},
{_id: 1, first_name: '<NAME>', last_name: '<NAME>', email: '<EMAIL>'},
]
@editDialog = new Thorax.Views.GroupEditDialog(
model: new Thorax.Model(users: users, n... | true | describe 'GroupEditDialog', ->
beforeEach ->
users = [
{_id: 0, first_name: 'PI:NAME:<NAME>END_PI', last_name: 'PI:NAME:<NAME>END_PI', email: 'PI:EMAIL:<EMAIL>END_PI'},
{_id: 1, first_name: 'PI:NAME:<NAME>END_PI', last_name: 'PI:NAME:<NAME>END_PI', email: 'PI:EMAIL:<EMAIL>END_PI'},
]
@editDi... |
[
{
"context": " phpmyadmin's sql parser\n # https://github.com/phpmyadmin/sql-parser/blob/master/src/Utils/BufferedQuery.ph",
"end": 7378,
"score": 0.999525249004364,
"start": 7368,
"tag": "USERNAME",
"value": "phpmyadmin"
},
{
"context": "fo.host,\n port: ssh.port,\n ... | lib/quick-query-dump-loader.coffee | fabianfiorotto/quick-query | 74 | {View, $} = require 'atom-space-pen-views'
{TextBuffer} = require 'atom'
fs = require 'fs'
{remote} = require 'electron'
path = require 'path'
ssh2 = require 'ssh2'
module.exports =
class QuickQueryDumpLoader extends View
initialize: (@browser, options = {} )->
if @browser.selectedConnection?
@refreshDatab... | 88994 | {View, $} = require 'atom-space-pen-views'
{TextBuffer} = require 'atom'
fs = require 'fs'
{remote} = require 'electron'
path = require 'path'
ssh2 = require 'ssh2'
module.exports =
class QuickQueryDumpLoader extends View
initialize: (@browser, options = {} )->
if @browser.selectedConnection?
@refreshDatab... | true | {View, $} = require 'atom-space-pen-views'
{TextBuffer} = require 'atom'
fs = require 'fs'
{remote} = require 'electron'
path = require 'path'
ssh2 = require 'ssh2'
module.exports =
class QuickQueryDumpLoader extends View
initialize: (@browser, options = {} )->
if @browser.selectedConnection?
@refreshDatab... |
[
{
"context": "ils of entries\n idx += +1\n key = '\\u3000' unless idx is 0\n line = \"#{entry} #{sig",
"end": 6426,
"score": 0.9322011470794678,
"start": 6419,
"tag": "KEY",
"value": "'\\u3000"
}
] | src/show-repeated-factors.coffee | loveencounterflow/jizura | 0 |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
join = njs_path.join
#...................................................................................... | 118870 |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
join = njs_path.join
#...................................................................................... | true |
############################################################################################################
njs_path = require 'path'
njs_fs = require 'fs'
join = njs_path.join
#...................................................................................... |
[
{
"context": "tification _.extend {}, @props,\n key: \"notification-#{notification._id}\"\n notification: notif",
"end": 3217,
"score": 0.9830377101898193,
"start": 3202,
"tag": "KEY",
"value": "notification-#{"
},
{
"context": "ops,\n key: \"notifica... | src/components/list.coffee | EmmanuelCuillier/kerplunk-notifications-master | 0 | _ = require 'lodash'
React = require 'react'
Notification = require './notification'
{DOM} = React
module.exports = React.createFactory React.createClass
getInitialState: ->
notifications: @props.allNotifications ? []
componentDidMount: ->
@socket = @props.getSocket 'kerplunk'
@socket.on 'data', @on... | 128941 | _ = require 'lodash'
React = require 'react'
Notification = require './notification'
{DOM} = React
module.exports = React.createFactory React.createClass
getInitialState: ->
notifications: @props.allNotifications ? []
componentDidMount: ->
@socket = @props.getSocket 'kerplunk'
@socket.on 'data', @on... | true | _ = require 'lodash'
React = require 'react'
Notification = require './notification'
{DOM} = React
module.exports = React.createFactory React.createClass
getInitialState: ->
notifications: @props.allNotifications ? []
componentDidMount: ->
@socket = @props.getSocket 'kerplunk'
@socket.on 'data', @on... |
[
{
"context": "end': '\"\\\\1'\n }\n 'sigils': {\n 'comment': 'Sigil'\n 'name': 'keyword.operator.sigil.rust'\n 'm",
"end": 1476,
"score": 0.7527714967727661,
"start": 1474,
"tag": "NAME",
"value": "il"
}
] | grammars/rust.cson | TheDarkula/rust-lang-atom | 2 | 'name': 'Rust'
'scopeName': 'source.rust'
'fileTypes': [
'rs'
]
'repository': {
'block_doc_comment': {
'comment': 'Block documentation comment'
'name': 'comment.block.documentation.rust'
'begin': '/\\*[\\*!](?![\\*/])'
'end': '\\*/'
'patterns': [
{ 'include': '#block_doc_comment' }
... | 174586 | 'name': 'Rust'
'scopeName': 'source.rust'
'fileTypes': [
'rs'
]
'repository': {
'block_doc_comment': {
'comment': 'Block documentation comment'
'name': 'comment.block.documentation.rust'
'begin': '/\\*[\\*!](?![\\*/])'
'end': '\\*/'
'patterns': [
{ 'include': '#block_doc_comment' }
... | true | 'name': 'Rust'
'scopeName': 'source.rust'
'fileTypes': [
'rs'
]
'repository': {
'block_doc_comment': {
'comment': 'Block documentation comment'
'name': 'comment.block.documentation.rust'
'begin': '/\\*[\\*!](?![\\*/])'
'end': '\\*/'
'patterns': [
{ 'include': '#block_doc_comment' }
... |
[
{
"context": " ->\n new DotLedger.Models.Account\n name: 'Some Account'\n type: 'Savings'\n number: '123'\n ",
"end": 122,
"score": 0.9979578256607056,
"start": 110,
"tag": "NAME",
"value": "Some Account"
}
] | spec/javascripts/dot_ledger/views/accounts/show_spec.js.coffee | malclocke/dotledger | 0 | describe "DotLedger.Views.Accounts.Show", ->
createModel = ->
new DotLedger.Models.Account
name: 'Some Account'
type: 'Savings'
number: '123'
id: 1
unsorted_transaction_count: 5
sorted_transaction_count: 10
review_transaction_count: 15
balance: 123.45
updated_... | 184242 | describe "DotLedger.Views.Accounts.Show", ->
createModel = ->
new DotLedger.Models.Account
name: '<NAME>'
type: 'Savings'
number: '123'
id: 1
unsorted_transaction_count: 5
sorted_transaction_count: 10
review_transaction_count: 15
balance: 123.45
updated_at: '2... | true | describe "DotLedger.Views.Accounts.Show", ->
createModel = ->
new DotLedger.Models.Account
name: 'PI:NAME:<NAME>END_PI'
type: 'Savings'
number: '123'
id: 1
unsorted_transaction_count: 5
sorted_transaction_count: 10
review_transaction_count: 15
balance: 123.45
... |
[
{
"context": "Id=ace32b45-7826-4797-9e1a-2eb88264b737&authToken=asdf\"\n wsProtocols: [\"binary\"]\n\n# Redux Actions\n\nREQU",
"end": 465,
"score": 0.9902945756912231,
"start": 461,
"tag": "PASSWORD",
"value": "asdf"
},
{
"context": ") ->\n r.table(\"turtles\").filter(herd... | src/client/routes/turtles/turtles.coffee | mividtim/mivid-stack | 3 | _ = require "lodash"
#fs = require "fs"
Redux = require "Redux"
RethinkdbWebsocketClient = require "rethinkdb-websocket-client"
r = RethinkdbWebsocketClient.rethinkdb
secure = window.location.protocol is "https:"
port = window.location.port
if port.length < 1 then port = if secure then 443 else 80
rethinkOptions =
h... | 96997 | _ = require "lodash"
#fs = require "fs"
Redux = require "Redux"
RethinkdbWebsocketClient = require "rethinkdb-websocket-client"
r = RethinkdbWebsocketClient.rethinkdb
secure = window.location.protocol is "https:"
port = window.location.port
if port.length < 1 then port = if secure then 443 else 80
rethinkOptions =
h... | true | _ = require "lodash"
#fs = require "fs"
Redux = require "Redux"
RethinkdbWebsocketClient = require "rethinkdb-websocket-client"
r = RethinkdbWebsocketClient.rethinkdb
secure = window.location.protocol is "https:"
port = window.location.port
if port.length < 1 then port = if secure then 443 else 80
rethinkOptions =
h... |
[
{
"context": "e[g]] = f(e[g], d._queue)\n g++\n d.setKey('AvlkNoldcTOU4PvKi2Xm7z')\n window.filepicker = d\n return\n ) docume",
"end": 763,
"score": 0.9997504353523254,
"start": 741,
"tag": "KEY",
"value": "AvlkNoldcTOU4PvKi2Xm7z"
}
] | app/core/services/filepicker.coffee | cihatislamdede/codecombat | 4,858 | module.exports = initializeFilepicker = ->
((a) ->
return if window.filepicker
b = a.createElement('script')
b.type = 'text/javascript'
b.async = not 0
b.src = ((if 'https:' is a.location.protocol then 'https:' else 'http:')) + '//api.filepicker.io/v1/filepicker.js'
c = a.getElementsByTagName(... | 63526 | module.exports = initializeFilepicker = ->
((a) ->
return if window.filepicker
b = a.createElement('script')
b.type = 'text/javascript'
b.async = not 0
b.src = ((if 'https:' is a.location.protocol then 'https:' else 'http:')) + '//api.filepicker.io/v1/filepicker.js'
c = a.getElementsByTagName(... | true | module.exports = initializeFilepicker = ->
((a) ->
return if window.filepicker
b = a.createElement('script')
b.type = 'text/javascript'
b.async = not 0
b.src = ((if 'https:' is a.location.protocol then 'https:' else 'http:')) + '//api.filepicker.io/v1/filepicker.js'
c = a.getElementsByTagName(... |
[
{
"context": "s\n\n dateKey = crypto.createHmac(hashalg, \"#{sigver}#{@secretAccessKey}\").update(dateShortPolicy).dige",
"end": 2708,
"score": 0.6214789748191833,
"start": 2704,
"tag": "KEY",
"value": "ver}"
}
] | src/lib/index.coffee | jssuttles/s3-browser-direct-upload | 0 | # s3-browser-direct-upload
_ = require('lodash')
mime = require('mime')
moment = require('moment')
crypto = require('crypto')
class S3Client
constructor: (options = {}, arrAllowedDataExtensions) ->
aws = require('aws-sdk')
@_checkOptions options unless options instanceof aws.Config
@s3 = ne... | 208082 | # s3-browser-direct-upload
_ = require('lodash')
mime = require('mime')
moment = require('moment')
crypto = require('crypto')
class S3Client
constructor: (options = {}, arrAllowedDataExtensions) ->
aws = require('aws-sdk')
@_checkOptions options unless options instanceof aws.Config
@s3 = ne... | true | # s3-browser-direct-upload
_ = require('lodash')
mime = require('mime')
moment = require('moment')
crypto = require('crypto')
class S3Client
constructor: (options = {}, arrAllowedDataExtensions) ->
aws = require('aws-sdk')
@_checkOptions options unless options instanceof aws.Config
@s3 = ne... |
[
{
"context": "###\n# Copyright jtlebi.fr <admin@jtlebi.fr> and other contributors.",
"end": 17,
"score": 0.944227933883667,
"start": 16,
"tag": "EMAIL",
"value": "j"
},
{
"context": "###\n# Copyright jtlebi.fr <admin@jtlebi.fr> and other contributors.\n#\n# Per",
"end": 25,
"... | static/js/app/plugins/player.coffee | yadutaf/Weathermap-archive | 1 | ###
# Copyright jtlebi.fr <admin@jtlebi.fr> and other 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... | 96719 | ###
# Copyright <EMAIL>tlebi.fr <<EMAIL>> and other 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... | true | ###
# Copyright PI:EMAIL:<EMAIL>END_PItlebi.fr <PI:EMAIL:<EMAIL>END_PI> and other 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 limi... |
[
{
"context": "5:root}\";\n \\$${1:db}${2:['$3']}['password'] = \"$6\";\n \\$${1:db}${2:['$3']}['database'] = \"${7:d",
"end": 1688,
"score": 0.9988516569137573,
"start": 1685,
"tag": "PASSWORD",
"value": "\"$6"
},
{
"context": "stname' => '${5:localhost}',\n 'usernam... | snippets/database_driver.cson | femi-dd/codeigniter-atom | 1 | '.source.php':
'Database Forge Add Column':
'prefix': 'cidbfaddcol'
'body': '''
\$this->dbforge->add_column(${1:'${2:table_name}'}, ${3:$fields});
'''
'Database Forge Add Field':
'prefix': 'cidbfaddf'
'body': '''
\$this->dbforge->add_field(${1:"${2:string or array}"});
'''
'Dat... | 210248 | '.source.php':
'Database Forge Add Column':
'prefix': 'cidbfaddcol'
'body': '''
\$this->dbforge->add_column(${1:'${2:table_name}'}, ${3:$fields});
'''
'Database Forge Add Field':
'prefix': 'cidbfaddf'
'body': '''
\$this->dbforge->add_field(${1:"${2:string or array}"});
'''
'Dat... | true | '.source.php':
'Database Forge Add Column':
'prefix': 'cidbfaddcol'
'body': '''
\$this->dbforge->add_column(${1:'${2:table_name}'}, ${3:$fields});
'''
'Database Forge Add Field':
'prefix': 'cidbfaddf'
'body': '''
\$this->dbforge->add_field(${1:"${2:string or array}"});
'''
'Dat... |
[
{
"context": "###\n Pokemon Go(c) MITM node proxy\n by Michael Strassburger <codepoet@cpan.org>\n\n This example intercepts th",
"end": 61,
"score": 0.9998785853385925,
"start": 41,
"tag": "NAME",
"value": "Michael Strassburger"
},
{
"context": " Go(c) MITM node proxy\n by Michae... | example.quickEvolve.coffee | noobcakes4603/tinkering | 393 | ###
Pokemon Go(c) MITM node proxy
by Michael Strassburger <codepoet@cpan.org>
This example intercepts the server answer for a successful evolve and causes
the app to think that the evolution failed, but replaces the Pokémon anyway
Be aware: This triggers an error message in the app which can be ignored
###
... | 206602 | ###
Pokemon Go(c) MITM node proxy
by <NAME> <<EMAIL>>
This example intercepts the server answer for a successful evolve and causes
the app to think that the evolution failed, but replaces the Pokémon anyway
Be aware: This triggers an error message in the app which can be ignored
###
PokemonGoMITM = require... | true | ###
Pokemon Go(c) MITM node proxy
by PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
This example intercepts the server answer for a successful evolve and causes
the app to think that the evolution failed, but replaces the Pokémon anyway
Be aware: This triggers an error message in the app which can be ignored... |
[
{
"context": " <%= isProd %>\n# Info\nappName:\t'GridFw'\nauthor:\t\t'Coredigix.com'\nauthorEmail: 'hello@coredigix.com'\ncopyright:\t(n",
"end": 93,
"score": 0.9943703413009644,
"start": 80,
"tag": "EMAIL",
"value": "Coredigix.com"
},
{
"context": ":\t'GridFw'\nauthor:\t\t'Coredigix... | gulpfile/app-params.coffee | rafikalid/module-cache | 0 | ###*
* App params
###
isProd: <%= isProd %>
# Info
appName: 'GridFw'
author: 'Coredigix.com'
authorEmail: 'hello@coredigix.com'
copyright: (new Date()).getFullYear()
# Content
DEFAULT_ENCODING: 'utf8' | 92919 | ###*
* App params
###
isProd: <%= isProd %>
# Info
appName: 'GridFw'
author: '<EMAIL>'
authorEmail: '<EMAIL>'
copyright: (new Date()).getFullYear()
# Content
DEFAULT_ENCODING: 'utf8' | true | ###*
* App params
###
isProd: <%= isProd %>
# Info
appName: 'GridFw'
author: 'PI:EMAIL:<EMAIL>END_PI'
authorEmail: 'PI:EMAIL:<EMAIL>END_PI'
copyright: (new Date()).getFullYear()
# Content
DEFAULT_ENCODING: 'utf8' |
[
{
"context": "first_entry.medication.push new Medication(name: 'Advil')\n first_entry.medication.push new Medication(na",
"end": 2104,
"score": 0.5549447536468506,
"start": 2099,
"tag": "NAME",
"value": "Advil"
},
{
"context": "first_entry.medication.push new Medication(name: 'Tylen... | specs/migraine-qc/day-spec.coffee | rachel-carvalho/migraine-buddy-parser | 1 | { start, it, finish } = require '../support/support'
fs = require 'fs'
assert = require 'assert'
{DateTime} = require 'luxon'
MigraineQC = require '../../lib/migraine-qc'
Medication = require '../../lib/medication'
Entry = require '../../lib/entry'
first_entry_html = fs.readFileSync('specs/fixtures/first-entry.html')... | 139348 | { start, it, finish } = require '../support/support'
fs = require 'fs'
assert = require 'assert'
{DateTime} = require 'luxon'
MigraineQC = require '../../lib/migraine-qc'
Medication = require '../../lib/medication'
Entry = require '../../lib/entry'
first_entry_html = fs.readFileSync('specs/fixtures/first-entry.html')... | true | { start, it, finish } = require '../support/support'
fs = require 'fs'
assert = require 'assert'
{DateTime} = require 'luxon'
MigraineQC = require '../../lib/migraine-qc'
Medication = require '../../lib/medication'
Entry = require '../../lib/entry'
first_entry_html = fs.readFileSync('specs/fixtures/first-entry.html')... |
[
{
"context": "neighborhoods = [\n {\n name: \"Sakura Square\"\n address: \"19th St & Lawrence St\"\n coordin",
"end": 46,
"score": 0.9997509717941284,
"start": 33,
"tag": "NAME",
"value": "Sakura Square"
},
{
"context": "long: -104.993086\n recommendation:\n who: \"... | source/assets/javascripts/picks/neighborhoods.coffee | isabella232/summit-guide-2015 | 1 | neighborhoods = [
{
name: "Sakura Square"
address: "19th St & Lawrence St"
coordinates:
lat: 39.751747
long: -104.993086
recommendation:
who: "joshua"
why: "The closest thing Denver has to a Japantown. It's small but charming."
}
{
name: "Union Station"
address: "17... | 116235 | neighborhoods = [
{
name: "<NAME>"
address: "19th St & Lawrence St"
coordinates:
lat: 39.751747
long: -104.993086
recommendation:
who: "<NAME>"
why: "The closest thing Denver has to a Japantown. It's small but charming."
}
{
name: "Union Station"
address: "17th & Wy... | true | neighborhoods = [
{
name: "PI:NAME:<NAME>END_PI"
address: "19th St & Lawrence St"
coordinates:
lat: 39.751747
long: -104.993086
recommendation:
who: "PI:NAME:<NAME>END_PI"
why: "The closest thing Denver has to a Japantown. It's small but charming."
}
{
name: "Union Stat... |
[
{
"context": "ve Yandex credit in your organization!\n#\n# Author: Jon Coe\n\nLANGUAGES =\n \"az\": \"Azerbaijan\",\n \"sq\": \"Alban",
"end": 779,
"score": 0.9998476505279541,
"start": 772,
"tag": "NAME",
"value": "Jon Coe"
}
] | src/translate.coffee | jonmcoe/hubot-translate | 0 | # Description:
# Translate phrases to/from a variety of languages
#
# Configuration:
# YANDEX_KEY: your API key with https://translate.yandex.com
# DEBUG: flag for verbose errors
#
# Commands:
# hubot translate me <phrase> - Translate <phrase> into English. <phrase>'s language is auto-detected
# hubot transla... | 208392 | # Description:
# Translate phrases to/from a variety of languages
#
# Configuration:
# YANDEX_KEY: your API key with https://translate.yandex.com
# DEBUG: flag for verbose errors
#
# Commands:
# hubot translate me <phrase> - Translate <phrase> into English. <phrase>'s language is auto-detected
# hubot transla... | true | # Description:
# Translate phrases to/from a variety of languages
#
# Configuration:
# YANDEX_KEY: your API key with https://translate.yandex.com
# DEBUG: flag for verbose errors
#
# Commands:
# hubot translate me <phrase> - Translate <phrase> into English. <phrase>'s language is auto-detected
# hubot transla... |
[
{
"context": "est\n\n\t\t@stubbedUser = \n\t\t\t_id: \"3131231\"\n\t\t\tname:\"bob\"\n\t\t\temail:\"hello@world.com\"\n\t\t@newEmail = \"bob@bo",
"end": 999,
"score": 0.7374482154846191,
"start": 996,
"tag": "USERNAME",
"value": "bob"
},
{
"context": "User = \n\t\t\t_id: \"3131231\"\... | test/unit/coffee/User/UserUpdaterTests.coffee | davidmehren/web-sharelatex | 0 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ... | 146909 | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ... | true | should = require('chai').should()
SandboxedModule = require('sandboxed-module')
assert = require('assert')
path = require('path')
sinon = require('sinon')
modulePath = path.join __dirname, "../../../../app/js/Features/User/UserUpdater"
expect = require("chai").expect
tk = require('timekeeper')
describe "UserUpdater", ... |
[
{
"context": "abase: c.database,\n user: c.user,\n password: c.password\n ssh: if @info.ssh? then @info.ssh else null\n\n",
"end": 2083,
"score": 0.9988911747932434,
"start": 2073,
"tag": "PASSWORD",
"value": "c.password"
}
] | lib/quick-query-mysql-connection.coffee | fabianfiorotto/quick-query | 74 | mysql = require 'mysql'
{Emitter} = require 'atom'
class QuickQueryMysqlColumn
type: 'column'
child_type: null
constructor: (@table,row) ->
@connection = @table.connection
@name = row['Field']
@column = @name # TODO remove
@primary_key = row["Key"] == "PRI"
@datatype = row['Type']
@defau... | 25116 | mysql = require 'mysql'
{Emitter} = require 'atom'
class QuickQueryMysqlColumn
type: 'column'
child_type: null
constructor: (@table,row) ->
@connection = @table.connection
@name = row['Field']
@column = @name # TODO remove
@primary_key = row["Key"] == "PRI"
@datatype = row['Type']
@defau... | true | mysql = require 'mysql'
{Emitter} = require 'atom'
class QuickQueryMysqlColumn
type: 'column'
child_type: null
constructor: (@table,row) ->
@connection = @table.connection
@name = row['Field']
@column = @name # TODO remove
@primary_key = row["Key"] == "PRI"
@datatype = row['Type']
@defau... |
[
{
"context": "responseTime = 10\n\nrepos = [\n { id: '1', owner: 'travis-ci', name: 'travis-core', slug: 'travis-ci/travis-",
"end": 91,
"score": 0.9991791844367981,
"start": 82,
"tag": "USERNAME",
"value": "travis-ci"
},
{
"context": "repos = [\n { id: '1', owner: 'travis-ci', n... | assets/scripts/spec/support/mocks.coffee | rwjblue/travis-web | 0 | minispade.require 'ext/jquery'
responseTime = 10
repos = [
{ id: '1', owner: 'travis-ci', name: 'travis-core', slug: 'travis-ci/travis-core', build_ids: [1, 2], last_build_id: 1, last_build_number: 1, last_build_state: 'passed', last_build_duration: 30, last_build_started_at: '2012-07-02T00:00:00Z', last_build_... | 194000 | minispade.require 'ext/jquery'
responseTime = 10
repos = [
{ id: '1', owner: 'travis-ci', name: 'travis-core', slug: 'travis-ci/travis-core', build_ids: [1, 2], last_build_id: 1, last_build_number: 1, last_build_state: 'passed', last_build_duration: 30, last_build_started_at: '2012-07-02T00:00:00Z', last_build_... | true | minispade.require 'ext/jquery'
responseTime = 10
repos = [
{ id: '1', owner: 'travis-ci', name: 'travis-core', slug: 'travis-ci/travis-core', build_ids: [1, 2], last_build_id: 1, last_build_number: 1, last_build_state: 'passed', last_build_duration: 30, last_build_started_at: '2012-07-02T00:00:00Z', last_build_... |
[
{
"context": " team: [\"badger\"]\n name: \"Badger Badger\"\n author: \"jonti\"\n ",
"end": 341,
"score": 0.9997732639312744,
"start": 328,
"tag": "NAME",
"value": "Badger Badger"
},
{
"context": " name: \"Badger Badger\"\n ... | www/test/src/model/quest.coffee | berekuk/questhub | 15 | define ["models/quest"], (QuestModel) ->
describe "model/quest:", ->
describe "serialize", ->
model = undefined
modelParams =
ts: 1360197975
status: "open"
_id: "5112f9577a8f1d370b000002"
team: ["badger"]
... | 103561 | define ["models/quest"], (QuestModel) ->
describe "model/quest:", ->
describe "serialize", ->
model = undefined
modelParams =
ts: 1360197975
status: "open"
_id: "5112f9577a8f1d370b000002"
team: ["badger"]
... | true | define ["models/quest"], (QuestModel) ->
describe "model/quest:", ->
describe "serialize", ->
model = undefined
modelParams =
ts: 1360197975
status: "open"
_id: "5112f9577a8f1d370b000002"
team: ["badger"]
... |
[
{
"context": "\n objectA = \n testKey: 'testVal1'\n \n objectB =\n ",
"end": 215,
"score": 0.9820392727851868,
"start": 207,
"tag": "KEY",
"value": "testVal1"
},
{
"context": "\n objectB =\n otherKe... | spec/utils_spec.coffee | monokrome/modelingclay | 0 | utils = require '../lib/utils'
describe 'utility belt', ->
describe 'extend', ->
it 'should copy key/value pairs from one object to another', ->
objectA =
testKey: 'testVal1'
objectB =
otherKey: 'testVal2'
deepObj:
... | 209866 | utils = require '../lib/utils'
describe 'utility belt', ->
describe 'extend', ->
it 'should copy key/value pairs from one object to another', ->
objectA =
testKey: '<KEY>'
objectB =
otherKey: '<KEY>'
deepObj:
... | true | utils = require '../lib/utils'
describe 'utility belt', ->
describe 'extend', ->
it 'should copy key/value pairs from one object to another', ->
objectA =
testKey: 'PI:KEY:<KEY>END_PI'
objectB =
otherKey: 'PI:KEY:<KEY>END_PI'
... |
[
{
"context": "->\n defineAttribute @object, 'name', value: \"Jonas\"\n expect(@object.name).to.eql(\"Jonas\")\n\n ",
"end": 2148,
"score": 0.9995047450065613,
"start": 2143,
"tag": "NAME",
"value": "Jonas"
},
{
"context": "value: \"Jonas\"\n expect(@object.name).to.... | test/attribute.spec.coffee | jnicklas/serenade.js | 1 | require './spec_helper'
Serenade = require('../lib/serenade')
{defineAttribute, defineProperty} = Serenade
describe 'Serenade.defineAttribute', ->
beforeEach ->
@object = {}
it 'does not bleed over between objects with same prototype', ->
@inst1 = Object.create(@object)
@inst2 = Object.create(@object... | 72185 | require './spec_helper'
Serenade = require('../lib/serenade')
{defineAttribute, defineProperty} = Serenade
describe 'Serenade.defineAttribute', ->
beforeEach ->
@object = {}
it 'does not bleed over between objects with same prototype', ->
@inst1 = Object.create(@object)
@inst2 = Object.create(@object... | true | require './spec_helper'
Serenade = require('../lib/serenade')
{defineAttribute, defineProperty} = Serenade
describe 'Serenade.defineAttribute', ->
beforeEach ->
@object = {}
it 'does not bleed over between objects with same prototype', ->
@inst1 = Object.create(@object)
@inst2 = Object.create(@object... |
[
{
"context": "ph', nesting: 1}\n {type: 'text', content: 'two'}\n {type: 'paragraph', nesting: -1}\n ",
"end": 5367,
"score": 0.8562281131744385,
"start": 5364,
"tag": "NAME",
"value": "two"
},
{
"context": "ph', nesting: 1}\n {type: 'text', content: 'one'}\... | test/mocha/markdown/list.coffee | alinex/node-report | 1 | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown list", ->
describe "items", ->
# http://spec.commonmark.org/0.27/#example-214
it "should show some blocks", (cb) ->
test.markdown null, 'A ... | 113657 | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown list", ->
describe "items", ->
# http://spec.commonmark.org/0.27/#example-214
it "should show some blocks", (cb) ->
test.markdown null, 'A ... | true | ### eslint-env node, mocha ###
test = require '../test'
async = require 'async'
Report = require '../../../src'
before (cb) -> Report.init cb
describe "markdown list", ->
describe "items", ->
# http://spec.commonmark.org/0.27/#example-214
it "should show some blocks", (cb) ->
test.markdown null, 'A ... |
[
{
"context": "database: dbConfig.path.substr 1\n user: user\n password: pass\n pool:\n min: 2",
"end": 394,
"score": 0.8296457529067993,
"start": 390,
"tag": "USERNAME",
"value": "user"
},
{
"context": ".substr 1\n user: user\n password... | knexfile.coffee | imgflo/imgflo-server | 29 | common = require './src/common'
url = require 'url'
config = common.getProductionConfig()
dbConfig = url.parse config.database_url
[user, pass] = dbConfig.auth.split ':'
switch dbConfig.protocol
when 'postgres:'
cfg =
client: 'postgresql'
connection:
host: dbConfig.hostname
port: dbC... | 102111 | common = require './src/common'
url = require 'url'
config = common.getProductionConfig()
dbConfig = url.parse config.database_url
[user, pass] = dbConfig.auth.split ':'
switch dbConfig.protocol
when 'postgres:'
cfg =
client: 'postgresql'
connection:
host: dbConfig.hostname
port: dbC... | true | common = require './src/common'
url = require 'url'
config = common.getProductionConfig()
dbConfig = url.parse config.database_url
[user, pass] = dbConfig.auth.split ':'
switch dbConfig.protocol
when 'postgres:'
cfg =
client: 'postgresql'
connection:
host: dbConfig.hostname
port: dbC... |
[
{
"context": "s\",\"Prov\",\"Eccl\",\"Song\",\"Isa\",\"Jer\",\"Lam\",\"Ezek\",\"Dan\",\"Hos\",\"Joel\",\"Amos\",\"Obad\",\"Jonah\",\"Mic\",\"Nah\",\"",
"end": 505,
"score": 0.7876476645469666,
"start": 502,
"tag": "NAME",
"value": "Dan"
},
{
"context": "ov\",\"Eccl\",\"Song\",\"Isa\"... | src/tl/spec.coffee | phillipb/Bible-Passage-Reference-Parser | 149 | bcv_parser = require("../../js/tl_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | 167902 | bcv_parser = require("../../js/tl_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... | true | bcv_parser = require("../../js/tl_bcv_parser.js").bcv_parser
describe "Parsing", ->
p = {}
beforeEach ->
p = new bcv_parser
p.options.osis_compaction_strategy = "b"
p.options.sequence_combination_strategy = "combine"
it "should round-trip OSIS references", ->
p.set_options osis_compaction_strategy: "bc"
... |
[
{
"context": " grunt-external-sourcemap\n# * https://github.com/goodeggs/grunt-external-sourcemap\n# *\n# * Copyright (c) ",
"end": 67,
"score": 0.9990765452384949,
"start": 59,
"tag": "USERNAME",
"value": "goodeggs"
},
{
"context": "nt-external-sourcemap\n# *\n# * Copyright (c)... | Gruntfile.coffee | gruntjs-updater/grunt-external-sourcemap | 0 | # /*
# * grunt-external-sourcemap
# * https://github.com/goodeggs/grunt-external-sourcemap
# *
# * Copyright (c) 2013 Good Eggs
# * Licensed under the MIT license.
# */
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
# Before generating any new files, remove any previously-created... | 2043 | # /*
# * grunt-external-sourcemap
# * https://github.com/goodeggs/grunt-external-sourcemap
# *
# * Copyright (c) 2013 <NAME>
# * Licensed under the MIT license.
# */
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
# Before generating any new files, remove any previously-created fi... | true | # /*
# * grunt-external-sourcemap
# * https://github.com/goodeggs/grunt-external-sourcemap
# *
# * Copyright (c) 2013 PI:NAME:<NAME>END_PI
# * Licensed under the MIT license.
# */
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
# Before generating any new files, remove any previou... |
[
{
"context": "oids-d16a.firebaseio.com/scores/'\n token: 'ASTEROIDS_D16A'\n scoring: 'highScore'\n author: 'da",
"end": 420,
"score": 0.875018298625946,
"start": 406,
"tag": "PASSWORD",
"value": "ASTEROIDS_D16A"
},
{
"context": "6A'\n scoring: 'highScore'\... | example/migrations/20150428233702-populate-game.coffee | darkoverlordofdata/eric | 2 | "use strict"
module.exports =
up: (queryInterface, Sequelize, done) ->
Games = queryInterface.sequelize.models.Game
Games.sync().then ->
Games.create(
active: 1
name: 'Asteroid Simulator'
slug: 'asteroids'
url: 'https://darkoverlordofdata.com/asteroids'
leaderbo... | 56079 | "use strict"
module.exports =
up: (queryInterface, Sequelize, done) ->
Games = queryInterface.sequelize.models.Game
Games.sync().then ->
Games.create(
active: 1
name: 'Asteroid Simulator'
slug: 'asteroids'
url: 'https://darkoverlordofdata.com/asteroids'
leaderbo... | true | "use strict"
module.exports =
up: (queryInterface, Sequelize, done) ->
Games = queryInterface.sequelize.models.Game
Games.sync().then ->
Games.create(
active: 1
name: 'Asteroid Simulator'
slug: 'asteroids'
url: 'https://darkoverlordofdata.com/asteroids'
leaderbo... |
[
{
"context": "ier\"\n input: [\n token: \"invalidIdentifierA\"\n starts: 31\n ends",
"end": 1400,
"score": 0.6149332523345947,
"start": 1383,
"tag": "KEY",
"value": "invalidIdentifier"
},
{
"context": "ier\"\n input: ... | src/coffee/expression/parse/reference.spec.coffee | jameswilddev/influx7 | 1 | describe "expression", -> describe "parse", -> describe "reference", ->
rewire = require "rewire"
describe "imports", ->
expressionParseReference = rewire "./reference"
it "isIdentifier", -> (expect expressionParseReference.__get__ "isIdentifier").toBe require "./../../isIdentifier"
describe... | 5365 | describe "expression", -> describe "parse", -> describe "reference", ->
rewire = require "rewire"
describe "imports", ->
expressionParseReference = rewire "./reference"
it "isIdentifier", -> (expect expressionParseReference.__get__ "isIdentifier").toBe require "./../../isIdentifier"
describe... | true | describe "expression", -> describe "parse", -> describe "reference", ->
rewire = require "rewire"
describe "imports", ->
expressionParseReference = rewire "./reference"
it "isIdentifier", -> (expect expressionParseReference.__get__ "isIdentifier").toBe require "./../../isIdentifier"
describe... |
[
{
"context": "is is based on \"Implementing a Git HTTP Server\" by Michael F. Collins, III\n # http://www.michaelfcollins3.me/blog/2012",
"end": 3686,
"score": 0.9998030066490173,
"start": 3668,
"tag": "NAME",
"value": "Michael F. Collins"
},
{
"context": " that may be helpful here:... | server/jotgit.coffee | jdleesmiller/jotgit | 140 | path = Npm.require('path')
http = Npm.require('http')
Meteor.startup ->
Meteor.settings.projectPath ||= path.join(process.env.PWD, 'tests/demo')
repo = new Jotgit.Repo(Meteor.settings.projectPath)
editorServers = {}
Meteor.publish 'files', ->
self = this
handleAdded = (path) -> self.added('files',... | 135910 | path = Npm.require('path')
http = Npm.require('http')
Meteor.startup ->
Meteor.settings.projectPath ||= path.join(process.env.PWD, 'tests/demo')
repo = new Jotgit.Repo(Meteor.settings.projectPath)
editorServers = {}
Meteor.publish 'files', ->
self = this
handleAdded = (path) -> self.added('files',... | true | path = Npm.require('path')
http = Npm.require('http')
Meteor.startup ->
Meteor.settings.projectPath ||= path.join(process.env.PWD, 'tests/demo')
repo = new Jotgit.Repo(Meteor.settings.projectPath)
editorServers = {}
Meteor.publish 'files', ->
self = this
handleAdded = (path) -> self.added('files',... |
[
{
"context": "d event handlers, for the MD Popup Menu.\n @author Derek Gransaull <derek@dgtlife.com>\n @copyright DGTLife, LLC 201",
"end": 111,
"score": 0.9998827576637268,
"start": 96,
"tag": "NAME",
"value": "Derek Gransaull"
},
{
"context": "for the MD Popup Menu.\n @author De... | client/imports/ui/md-popup-menu/md-popup-menu.coffee | dgtlife/material-for-meteor | 12 | ###
@file Defines the on-render callback and event handlers, for the MD Popup Menu.
@author Derek Gransaull <derek@dgtlife.com>
@copyright DGTLife, LLC 2015
###
{ Template } = require 'meteor/templating'
{ Meteor } = require 'meteor/meteor'
eqS = require('../../api/md-utils.js').eqS
importMenuItems = require('..... | 153400 | ###
@file Defines the on-render callback and event handlers, for the MD Popup Menu.
@author <NAME> <<EMAIL>>
@copyright DGTLife, LLC 2015
###
{ Template } = require 'meteor/templating'
{ Meteor } = require 'meteor/meteor'
eqS = require('../../api/md-utils.js').eqS
importMenuItems = require('../../api/md-menu-api... | true | ###
@file Defines the on-render callback and event handlers, for the MD Popup Menu.
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
@copyright DGTLife, LLC 2015
###
{ Template } = require 'meteor/templating'
{ Meteor } = require 'meteor/meteor'
eqS = require('../../api/md-utils.js').eqS
importMenuItems = r... |
[
{
"context": "(true)\n\n\tconsole.log v[@id].w,v[@id].h\n\n\tx1 = v[@pa.id].x + 175 * Math.sin(alpha)\n\ty1 = v[@pa.id].y - 17",
"end": 1387,
"score": 0.7792010307312012,
"start": 1382,
"tag": "EMAIL",
"value": "pa.id"
},
{
"context": "x1 = v[@pa.id].x + 175 * Math.sin(alpha)\n\ty1 ... | pie.coffee | agershun/minday | 0 | ################################################
# MINDAY 0.009 Ly
# circle.coffee
# Процедуры для работы с круглыми сегментами
################################################
canvastype[PIE] =-> ACTIVE
keyp[PIE] = {}
keyp[PIEPART] = {}
childkind[PIE] =-> PIEPART
childkind[PIEPART] =-> IDEA
# TODO Разобраться, поч... | 161090 | ################################################
# MINDAY 0.009 Ly
# circle.coffee
# Процедуры для работы с круглыми сегментами
################################################
canvastype[PIE] =-> ACTIVE
keyp[PIE] = {}
keyp[PIEPART] = {}
childkind[PIE] =-> PIEPART
childkind[PIEPART] =-> IDEA
# TODO Разобраться, поч... | true | ################################################
# MINDAY 0.009 Ly
# circle.coffee
# Процедуры для работы с круглыми сегментами
################################################
canvastype[PIE] =-> ACTIVE
keyp[PIE] = {}
keyp[PIEPART] = {}
childkind[PIE] =-> PIEPART
childkind[PIEPART] =-> IDEA
# TODO Разобраться, поч... |
[
{
"context": "parse(sample), [\n\t\t\tclassDate: '1/19'\n\t\t\tauthor: 'Maddux, J. E., Gosselin, J. T., & Winstead, B. A.'\n\t\t\tyear: 2012",
"end": 434,
"score": 0.9996978640556335,
"start": 422,
"tag": "NAME",
"value": "Maddux, J. E"
},
{
"context": " [\n\t\t\tclassDate: '1/19'\n\... | test/spec.coffee | metaraine/syllaparse | 0 | assert = require('chai').assert
syllaparse = require '../lib/index.js'
fs = require 'fs'
readSample = (name)->
fs.readFileSync __dirname + '/samples/' + name + '.txt', 'utf-8'
describe 'syllaparse', ->
it 'should parse readings that follow "Course Outline" in the format "Author. (Year). Title".', ->
sample = rea... | 85254 | assert = require('chai').assert
syllaparse = require '../lib/index.js'
fs = require 'fs'
readSample = (name)->
fs.readFileSync __dirname + '/samples/' + name + '.txt', 'utf-8'
describe 'syllaparse', ->
it 'should parse readings that follow "Course Outline" in the format "Author. (Year). Title".', ->
sample = rea... | true | assert = require('chai').assert
syllaparse = require '../lib/index.js'
fs = require 'fs'
readSample = (name)->
fs.readFileSync __dirname + '/samples/' + name + '.txt', 'utf-8'
describe 'syllaparse', ->
it 'should parse readings that follow "Course Outline" in the format "Author. (Year). Title".', ->
sample = rea... |
[
{
"context": "ores: storeNames\n storeDefaults: { keyName: 'id' }\n\n @_stores = vault.stores\n\n @readOnlyVer",
"end": 1303,
"score": 0.907708466053009,
"start": 1301,
"tag": "KEY",
"value": "id"
}
] | src/DreamApp/DreamStore.coffee | rtfeldman/dreamwriter-coffee | 3 | _ = require "lodash"
EventEmitter = require "event-emitter"
sha1 = require "sha1"
proxy = (target, methodName) ->
-> target[methodName].apply target, Array.prototype.slice.call arguments
getRandomSha = -> sha1 "#{Math.random()}"[0..16]
newRecord = ->
creationTimestamp = new Date()
{id: getRan... | 114809 | _ = require "lodash"
EventEmitter = require "event-emitter"
sha1 = require "sha1"
proxy = (target, methodName) ->
-> target[methodName].apply target, Array.prototype.slice.call arguments
getRandomSha = -> sha1 "#{Math.random()}"[0..16]
newRecord = ->
creationTimestamp = new Date()
{id: getRan... | true | _ = require "lodash"
EventEmitter = require "event-emitter"
sha1 = require "sha1"
proxy = (target, methodName) ->
-> target[methodName].apply target, Array.prototype.slice.call arguments
getRandomSha = -> sha1 "#{Math.random()}"[0..16]
newRecord = ->
creationTimestamp = new Date()
{id: getRan... |
[
{
"context": "\n title : 'Invite people'\n key : 'invitepeople'\n onClick : @props.onInvitePeople\n ,\n ",
"end": 1573,
"score": 0.9900250434875488,
"start": 1561,
"tag": "KEY",
"value": "invitepeople"
},
{
"context": " title : 'Update purpose'\n ... | client/activity/lib/components/channelthreadheader/container.coffee | ezgikaysi/koding | 1 | kd = require 'kd'
View = require './view'
React = require 'kd-react'
immutable = require 'immutable'
ActivityFlux = require 'activity/flux'
isGroupChannel = require 'app/util/isgroupchannel'
KeyboardKeys = require 'app/constants/keyboardKeys'
module.exports = class ChannelThread... | 90934 | kd = require 'kd'
View = require './view'
React = require 'kd-react'
immutable = require 'immutable'
ActivityFlux = require 'activity/flux'
isGroupChannel = require 'app/util/isgroupchannel'
KeyboardKeys = require 'app/constants/keyboardKeys'
module.exports = class ChannelThread... | true | kd = require 'kd'
View = require './view'
React = require 'kd-react'
immutable = require 'immutable'
ActivityFlux = require 'activity/flux'
isGroupChannel = require 'app/util/isgroupchannel'
KeyboardKeys = require 'app/constants/keyboardKeys'
module.exports = class ChannelThread... |
[
{
"context": "ttribute provided\", ->\n address.firstName = 'Josh'\n\n expect(address.isValid()).toBe(true)\n ",
"end": 671,
"score": 0.9996919631958008,
"start": 667,
"tag": "NAME",
"value": "Josh"
},
{
"context": "hen regex doesnt match\", ->\n person.email = 'bil... | test/validity.spec.coffee | DynamoMTL/validity.js | 0 | describe "Validity", ->
it "is valid with no validations", ->
class Address
Validity.define @
address = new Address
expect(address.isValid()).toBe(true)
expect(address.isInvalid()).toBe(false)
expect(address.errors).toEqual([])
describe "required", ->
class Address
Validity.de... | 74196 | describe "Validity", ->
it "is valid with no validations", ->
class Address
Validity.define @
address = new Address
expect(address.isValid()).toBe(true)
expect(address.isInvalid()).toBe(false)
expect(address.errors).toEqual([])
describe "required", ->
class Address
Validity.de... | true | describe "Validity", ->
it "is valid with no validations", ->
class Address
Validity.define @
address = new Address
expect(address.isValid()).toBe(true)
expect(address.isInvalid()).toBe(false)
expect(address.errors).toEqual([])
describe "required", ->
class Address
Validity.de... |
[
{
"context": " user: credentials.username,\n password: credentials.password,\n database: credentials.database,\n ",
"end": 527,
"score": 0.9991070628166199,
"start": 507,
"tag": "PASSWORD",
"value": "credentials.password"
}
] | src/coffee/orms/mysql.coffee | njoannidi/Migratory | 0 | mysql = require 'mysql'
fs = require 'fs'
###
Database Adapter
Since JS doesn't have interfaces, here's a spec:
The following methods are REQUIRED:
connect
beginTransaction
rollback
commit
processFile
The following methods are OPTIONAL:
setSchema
###
mysqlDatabaseH... | 189976 | mysql = require 'mysql'
fs = require 'fs'
###
Database Adapter
Since JS doesn't have interfaces, here's a spec:
The following methods are REQUIRED:
connect
beginTransaction
rollback
commit
processFile
The following methods are OPTIONAL:
setSchema
###
mysqlDatabaseH... | true | mysql = require 'mysql'
fs = require 'fs'
###
Database Adapter
Since JS doesn't have interfaces, here's a spec:
The following methods are REQUIRED:
connect
beginTransaction
rollback
commit
processFile
The following methods are OPTIONAL:
setSchema
###
mysqlDatabaseH... |
[
{
"context": "f err\n json = teams.map (team) ->\n username: \"nko3-#{team.slug}\"\n password: team.code\n email: \"",
"end": 205,
"score": 0.995650589466095,
"start": 201,
"tag": "USERNAME",
"value": "nko3"
},
{
"context": "->\n username: \"nko3-#{team.slug}\"\n pass... | scripts/nodejitsu-create-accounts.coffee | nko3/website | 3 | env = require '../config/env'
mongoose = require('../models')(env.mongo_url)
Team = mongoose.model 'Team'
Team.find {}, (err, teams) ->
throw err if err
json = teams.map (team) ->
username: "nko3-#{team.slug}"
password: team.code
email: "team+#{team.slug}@nodeknockout.com"
console.log json
mongoo... | 61944 | env = require '../config/env'
mongoose = require('../models')(env.mongo_url)
Team = mongoose.model 'Team'
Team.find {}, (err, teams) ->
throw err if err
json = teams.map (team) ->
username: "nko3-#{team.slug}"
password: <PASSWORD>
email: "<EMAIL>"
console.log json
mongoose.connection.close()
| true | env = require '../config/env'
mongoose = require('../models')(env.mongo_url)
Team = mongoose.model 'Team'
Team.find {}, (err, teams) ->
throw err if err
json = teams.map (team) ->
username: "nko3-#{team.slug}"
password: PI:PASSWORD:<PASSWORD>END_PI
email: "PI:EMAIL:<EMAIL>END_PI"
console.log json
... |
[
{
"context": ":\n username: null\n email: null\n password: null\n code: null\n sheet:\n collapsed: true\n ",
"end": 72,
"score": 0.9988592863082886,
"start": 68,
"tag": "PASSWORD",
"value": "null"
}
] | h/js/controllers.coffee | metasj/h | 1 | class App
scope:
username: null
email: null
password: null
code: null
sheet:
collapsed: true
tab: 'login'
personas: []
persona: null
token: null
this.$inject = [
'$compile', '$element', '$http', '$location', '$scope', '$timeout',
'annotator', 'drafts', 'flash'
... | 106464 | class App
scope:
username: null
email: null
password: <PASSWORD>
code: null
sheet:
collapsed: true
tab: 'login'
personas: []
persona: null
token: null
this.$inject = [
'$compile', '$element', '$http', '$location', '$scope', '$timeout',
'annotator', 'drafts', 'fla... | true | class App
scope:
username: null
email: null
password: PI:PASSWORD:<PASSWORD>END_PI
code: null
sheet:
collapsed: true
tab: 'login'
personas: []
persona: null
token: null
this.$inject = [
'$compile', '$element', '$http', '$location', '$scope', '$timeout',
'annotato... |
[
{
"context": "like the Apple Finder does.\n#\n# Copyright (c) 2015 Christian Gambardella\n#\n# Licensed under the MIT license:\n# http://www.",
"end": 158,
"score": 0.9998781681060791,
"start": 137,
"tag": "NAME",
"value": "Christian Gambardella"
},
{
"context": "icense.php\n#\n# Pro... | jquery.truncatemiddle.coffee | nerdyglasses/jquery.truncatemiddle | 1 | #
# jquery.truncatemiddle › A naive implementation to trunacate strings in the middle like the Apple Finder does.
#
# Copyright (c) 2015 Christian Gambardella
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
# Project home:
# https://github.com/nerdyglasses/jquery.truncatemiddl... | 201162 | #
# jquery.truncatemiddle › A naive implementation to trunacate strings in the middle like the Apple Finder does.
#
# Copyright (c) 2015 <NAME>
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
# Project home:
# https://github.com/nerdyglasses/jquery.truncatemiddle
#
# Version: ... | true | #
# jquery.truncatemiddle › A naive implementation to trunacate strings in the middle like the Apple Finder does.
#
# Copyright (c) 2015 PI:NAME:<NAME>END_PI
#
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license.php
#
# Project home:
# https://github.com/nerdyglasses/jquery.truncatemiddle... |
[
{
"context": " method: 'POST'\n body:\n key: 'next-state'\n type: 'ProductState'\n }\n cli",
"end": 15754,
"score": 0.9973834156990051,
"start": 15744,
"tag": "KEY",
"value": "next-state"
}
] | src/spec/integration/testhelpers.coffee | easybi-vv/sphere-node-product-csv-sync-1 | 0 | { createRequestBuilder } = require '@commercetools/api-request-builder'
_ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
exports.uniqueId = uniqueId = (prefix) ->
_.uniqueId "#{prefix}#{new Date().getTime()}_"
getAllAttributesByConstraint = (constraint) ->
lowerConstraint... | 170072 | { createRequestBuilder } = require '@commercetools/api-request-builder'
_ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
exports.uniqueId = uniqueId = (prefix) ->
_.uniqueId "#{prefix}#{new Date().getTime()}_"
getAllAttributesByConstraint = (constraint) ->
lowerConstraint... | true | { createRequestBuilder } = require '@commercetools/api-request-builder'
_ = require 'underscore'
_.mixin require('underscore-mixins')
Promise = require 'bluebird'
exports.uniqueId = uniqueId = (prefix) ->
_.uniqueId "#{prefix}#{new Date().getTime()}_"
getAllAttributesByConstraint = (constraint) ->
lowerConstraint... |
[
{
"context": "###\nCopyright 2016 Balena\n\nLicensed under the Apache License, Version 2.0 (",
"end": 25,
"score": 0.8702195286750793,
"start": 19,
"tag": "NAME",
"value": "Balena"
}
] | lib/settings.coffee | josecoelho/balena-sdk | 1 | ###
Copyright 2016 Balena
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | 162702 | ###
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | true | ###
Copyright 2016 PI:NAME:<NAME>END_PI
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
[
{
"context": "oogle calendars in user's calendar list.\n# Author: Ryuei Sasaki\n# Github: https://github.com/louixs/\n\n# Dependenc",
"end": 327,
"score": 0.999889075756073,
"start": 315,
"tag": "NAME",
"value": "Ryuei Sasaki"
},
{
"context": "Author: Ryuei Sasaki\n# Github: https://... | calendar.widget/calendar.coffee | louixs/ubersicht_google_calendar | 13 | # Name: Google Calendar for Übersicht using oauth2
# Description: Obtain google calendar events using google oauth2 for widget for Mac OSX app Übersicht. Sorts and displays events for today and tomorrow based on user's Google calendar's timezone. Allows multiple google calendars in user's calendar list.
# Author: Ryuei... | 90289 | # Name: Google Calendar for Übersicht using oauth2
# Description: Obtain google calendar events using google oauth2 for widget for Mac OSX app Übersicht. Sorts and displays events for today and tomorrow based on user's Google calendar's timezone. Allows multiple google calendars in user's calendar list.
# Author: <NAME... | true | # Name: Google Calendar for Übersicht using oauth2
# Description: Obtain google calendar events using google oauth2 for widget for Mac OSX app Übersicht. Sorts and displays events for today and tomorrow based on user's Google calendar's timezone. Allows multiple google calendars in user's calendar list.
# Author: PI:NA... |
[
{
"context": "'\n\nclass Script extends AbstractScript\n artist: 'Ashworth'\n title: 'Meow Mix'\n image: '/images/ashworth.m",
"end": 121,
"score": 0.9998321533203125,
"start": 113,
"tag": "NAME",
"value": "Ashworth"
},
{
"context": "orth.meow-mix.jpg'\n url: 'https://soundcloud.... | app/scripts/ashworth.meow-mix.coffee | bmatcuk/lasercatparty | 2 | "use strict"
AbstractScript = require 'scripts/abstract_script'
class Script extends AbstractScript
artist: 'Ashworth'
title: 'Meow Mix'
image: '/images/ashworth.meow-mix.jpg'
url: 'https://soundcloud.com/meowmixofficial/a_meow_mix_by_ashworth'
run: (objs) ->
super objs
@registrar.onceAt 1.875, ->... | 176254 | "use strict"
AbstractScript = require 'scripts/abstract_script'
class Script extends AbstractScript
artist: '<NAME>'
title: 'Meow Mix'
image: '/images/ashworth.meow-mix.jpg'
url: 'https://soundcloud.com/meowmixofficial/a_meow_mix_by_ashworth'
run: (objs) ->
super objs
@registrar.onceAt 1.875, ->
... | true | "use strict"
AbstractScript = require 'scripts/abstract_script'
class Script extends AbstractScript
artist: 'PI:NAME:<NAME>END_PI'
title: 'Meow Mix'
image: '/images/ashworth.meow-mix.jpg'
url: 'https://soundcloud.com/meowmixofficial/a_meow_mix_by_ashworth'
run: (objs) ->
super objs
@registrar.once... |
[
{
"context": "ap/4.0.0-beta.2/css/bootstrap.min.css\" integrity=\"sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb\" crossorigin=\"anonymous\">\n </head>\n <bo",
"end": 6591,
"score": 0.9994166493415833,
"start": 6520,
"tag": "KEY",
"value": "sha384-PsH8R72JQ... | snippets/fu-bootstrap4.cson | Airhard/fu-atom | 0 | '.text.html':
'Breadcrumb':
'prefix': 'breadcrumb'
'body': """
<ol class="breadcrumb" style="margin-bottom: 5px;">
<li><a href="#">${1:Home}</a></li>
<li><a href="#">${2:Library}</a></li>
<li class="active">${3:Data}</li>
</ol>
"""
'Alerts':
'prefix': 'alert'
'body': ... | 85750 | '.text.html':
'Breadcrumb':
'prefix': 'breadcrumb'
'body': """
<ol class="breadcrumb" style="margin-bottom: 5px;">
<li><a href="#">${1:Home}</a></li>
<li><a href="#">${2:Library}</a></li>
<li class="active">${3:Data}</li>
</ol>
"""
'Alerts':
'prefix': 'alert'
'body': ... | true | '.text.html':
'Breadcrumb':
'prefix': 'breadcrumb'
'body': """
<ol class="breadcrumb" style="margin-bottom: 5px;">
<li><a href="#">${1:Home}</a></li>
<li><a href="#">${2:Library}</a></li>
<li class="active">${3:Data}</li>
</ol>
"""
'Alerts':
'prefix': 'alert'
'body': ... |
[
{
"context": "zCluster.clusterCount}\"\n @name = \"Main App\"\n @running = true\n @state ",
"end": 245,
"score": 0.8668336868286133,
"start": 241,
"tag": "NAME",
"value": "Main"
},
{
"context": "ster.clusterCount}\"\n @name = \"Main ... | stage/shims/horiz-cluster.coffee | nanobox-io/nanobox-dash-ui-clobber-box | 1 | Host = require './host'
module.exports = class HorizCluster
@clusterCount : 0
constructor: (totalMembers=4, totalGenerations=1) ->
@id = "cluster.#{HorizCluster.clusterCount}"
@name = "Main App"
@running = true
@state = "active"
@... | 158142 | Host = require './host'
module.exports = class HorizCluster
@clusterCount : 0
constructor: (totalMembers=4, totalGenerations=1) ->
@id = "cluster.#{HorizCluster.clusterCount}"
@name = "<NAME> App"
@running = true
@state = "active"
... | true | Host = require './host'
module.exports = class HorizCluster
@clusterCount : 0
constructor: (totalMembers=4, totalGenerations=1) ->
@id = "cluster.#{HorizCluster.clusterCount}"
@name = "PI:NAME:<NAME>END_PI App"
@running = true
@state ... |
[
{
"context": "lue) ->\n\n assertObject object\n\n entry = object[@name] ? []\n\n isDefined = entry[0] is object\n\n if arg",
"end": 269,
"score": 0.6702194213867188,
"start": 265,
"tag": "USERNAME",
"value": "name"
},
{
"context": "key) ->\n\n assertObject object\n\n entry = ob... | src/index.coffee | aleclarson/weakmap | 1 |
NamedFunction = require "NamedFunction"
WeakMap = module.exports = NamedFunction "WeakMap", ->
return new WeakMap unless @ instanceof WeakMap
@name = WeakMap.unique()
@
WeakMap::set = (object, key, newValue) ->
assertObject object
entry = object[@name] ? []
isDefined = entry[0] is object
if argu... | 109875 |
NamedFunction = require "NamedFunction"
WeakMap = module.exports = NamedFunction "WeakMap", ->
return new WeakMap unless @ instanceof WeakMap
@name = WeakMap.unique()
@
WeakMap::set = (object, key, newValue) ->
assertObject object
entry = object[@name] ? []
isDefined = entry[0] is object
if argu... | true |
NamedFunction = require "NamedFunction"
WeakMap = module.exports = NamedFunction "WeakMap", ->
return new WeakMap unless @ instanceof WeakMap
@name = WeakMap.unique()
@
WeakMap::set = (object, key, newValue) ->
assertObject object
entry = object[@name] ? []
isDefined = entry[0] is object
if argu... |
[
{
"context": "=================================\n# Copyright 2014 Hatio, Lab.\n# Licensed under The MIT License\n# http://o",
"end": 67,
"score": 0.8545719385147095,
"start": 62,
"tag": "NAME",
"value": "Hatio"
}
] | src/spec/SpecRulerLayer.coffee | heartyoh/infopik | 0 | # ==========================================
# Copyright 2014 Hatio, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
createView = (attributes) ->
new kin.L... | 96406 | # ==========================================
# Copyright 2014 <NAME>, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
createView = (attributes) ->
new kin.... | true | # ==========================================
# Copyright 2014 PI:NAME:<NAME>END_PI, Lab.
# Licensed under The MIT License
# http://opensource.org/licenses/MIT
# ==========================================
define [
'dou'
'KineticJS'
], (
dou
kin
) ->
"use strict"
createView = (attributes) ->
... |
[
{
"context": "type == 'a'\n \"#{id}-all\"\n else\n \"#{id}-#{index}#{TYPE_POSTFIX[type]}\"\n\n path: (id, index, ",
"end": 1078,
"score": 0.7941120862960815,
"start": 1076,
"tag": "KEY",
"value": "#{"
},
{
"context": "a'\n \"#{id}-all\"\n else\n \"#{id}-#{i... | src/TrendModel.coffee | higuma/tenki-data-map | 11 | CACHE_LIMIT = 100
cache = {}
queue = []
TYPE_POSTFIX =
'y': '' # year (annual)
'd': 'x' # decade
'c': 'xx' # century
class TrendModel
# <- Conrtroller
constructor: (@ctl) ->
getData: (id, index, type) ->
key = @key id, index, type
data = cache[key]
if @isData data
queue.... | 97996 | CACHE_LIMIT = 100
cache = {}
queue = []
TYPE_POSTFIX =
'y': '' # year (annual)
'd': 'x' # decade
'c': 'xx' # century
class TrendModel
# <- Conrtroller
constructor: (@ctl) ->
getData: (id, index, type) ->
key = @key id, index, type
data = cache[key]
if @isData data
queue.... | true | CACHE_LIMIT = 100
cache = {}
queue = []
TYPE_POSTFIX =
'y': '' # year (annual)
'd': 'x' # decade
'c': 'xx' # century
class TrendModel
# <- Conrtroller
constructor: (@ctl) ->
getData: (id, index, type) ->
key = @key id, index, type
data = cache[key]
if @isData data
queue.... |
[
{
"context": "to production is running. https://gist.github.com/fa77d9fb1fe41c3bb3a3ffb2c\"\n\n describe \"failure\", ()",
"end": 932,
"score": 0.949703574180603,
"start": 930,
"tag": "USERNAME",
"value": "fa"
},
{
"context": " production is running. https://gist.github.com/fa77d9fb... | test/models/github_events_test.coffee | JennerF/hubot-test | 2 | Fs = require "fs"
Path = require "path"
GitHubEvents = require(Path.join(__dirname, "..", "..", "src", "models", "github_events"))
Deployment = GitHubEvents.Deployment
DeploymentStatus = GitHubEvents.DeploymentStatus
describe "GitHubEvents.DeploymentStatus fixtures", () ->
deploymentStatusFor = (fixture... | 211773 | Fs = require "fs"
Path = require "path"
GitHubEvents = require(Path.join(__dirname, "..", "..", "src", "models", "github_events"))
Deployment = GitHubEvents.Deployment
DeploymentStatus = GitHubEvents.DeploymentStatus
describe "GitHubEvents.DeploymentStatus fixtures", () ->
deploymentStatusFor = (fixture... | true | Fs = require "fs"
Path = require "path"
GitHubEvents = require(Path.join(__dirname, "..", "..", "src", "models", "github_events"))
Deployment = GitHubEvents.Deployment
DeploymentStatus = GitHubEvents.DeploymentStatus
describe "GitHubEvents.DeploymentStatus fixtures", () ->
deploymentStatusFor = (fixture... |
[
{
"context": "###\nGulp task ng-min\n@create 2014-12-15\n@author KoutarouYabe <idolm@ster.pw>\n###\n\nmodule.exports = (gulp, plug",
"end": 60,
"score": 0.9998903274536133,
"start": 48,
"tag": "NAME",
"value": "KoutarouYabe"
},
{
"context": "k ng-min\n@create 2014-12-15\n@author Kout... | tasks/config/ngmin.coffee | ky0615/atc_tram | 0 | ###
Gulp task ng-min
@create 2014-12-15
@author KoutarouYabe <idolm@ster.pw>
###
module.exports = (gulp, plugins)->
gulp.task "ngmin", ->
gulp.src ["www/js/**/*.js", "!www/js/lib/**/*.js"]
.pipe plugins.ngAnnotate()
.pipe gulp.dest "www/js"
| 152226 | ###
Gulp task ng-min
@create 2014-12-15
@author <NAME> <<EMAIL>>
###
module.exports = (gulp, plugins)->
gulp.task "ngmin", ->
gulp.src ["www/js/**/*.js", "!www/js/lib/**/*.js"]
.pipe plugins.ngAnnotate()
.pipe gulp.dest "www/js"
| true | ###
Gulp task ng-min
@create 2014-12-15
@author PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
###
module.exports = (gulp, plugins)->
gulp.task "ngmin", ->
gulp.src ["www/js/**/*.js", "!www/js/lib/**/*.js"]
.pipe plugins.ngAnnotate()
.pipe gulp.dest "www/js"
|
[
{
"context": " devMode: atom.inDevMode()\n\n analyticsWriteKey: \"phc2hsUe48Dfw1iwsYQs2W7HH9jcwrws\"\n analytics: null\n\n enabled: () ->\n return a",
"end": 324,
"score": 0.9996242523193359,
"start": 292,
"tag": "KEY",
"value": "phc2hsUe48Dfw1iwsYQs2W7HH9jcwrws"
}
] | lib/analytics.coffee | KunihikoKido/atom-elasticsearch-client | 37 | os = require 'os'
uuid = require 'node-uuid'
pkg = require '../package.json'
Analytics = require 'analytics-node'
config = require './config'
module.exports =
namespace: pkg.name
atomVersion: atom.getVersion()
pkgVersion: pkg.version
devMode: atom.inDevMode()
analyticsWriteKey: "phc2hsUe48Dfw1iwsYQs2W7HH9jc... | 56561 | os = require 'os'
uuid = require 'node-uuid'
pkg = require '../package.json'
Analytics = require 'analytics-node'
config = require './config'
module.exports =
namespace: pkg.name
atomVersion: atom.getVersion()
pkgVersion: pkg.version
devMode: atom.inDevMode()
analyticsWriteKey: "<KEY>"
analytics: null
... | true | os = require 'os'
uuid = require 'node-uuid'
pkg = require '../package.json'
Analytics = require 'analytics-node'
config = require './config'
module.exports =
namespace: pkg.name
atomVersion: atom.getVersion()
pkgVersion: pkg.version
devMode: atom.inDevMode()
analyticsWriteKey: "PI:KEY:<KEY>END_PI"
analyt... |
[
{
"context": "\n inputOptions :\n placeholder : 'your username'\n name : 'username'\n valid",
"end": 482,
"score": 0.9868150949478149,
"start": 469,
"tag": "USERNAME",
"value": "your username"
},
{
"context": "lder : 'your username'\n ... | client/landing/site.landing/coffee/team/forms/teamjoinbyloginform.coffee | lionheart1022/koding | 0 | kd = require 'kd'
utils = require './../../core/utils'
TeamJoinTabForm = require './../forms/teamjointabform'
LoginInputView = require './../../login/logininputview'
module.exports = class TeamJoinByLoginForm extends TeamJoinTabForm
constructor: (options = {}, data) ->
options.buttonTi... | 128957 | kd = require 'kd'
utils = require './../../core/utils'
TeamJoinTabForm = require './../forms/teamjointabform'
LoginInputView = require './../../login/logininputview'
module.exports = class TeamJoinByLoginForm extends TeamJoinTabForm
constructor: (options = {}, data) ->
options.buttonTi... | true | kd = require 'kd'
utils = require './../../core/utils'
TeamJoinTabForm = require './../forms/teamjointabform'
LoginInputView = require './../../login/logininputview'
module.exports = class TeamJoinByLoginForm extends TeamJoinTabForm
constructor: (options = {}, data) ->
options.buttonTi... |
[
{
"context": "###\n@Author: Kristinita\n@Date: 2017-04-04 13:01:15\n@Last Modified time:",
"end": 23,
"score": 0.9997488856315613,
"start": 13,
"tag": "NAME",
"value": "Kristinita"
}
] | themes/sashapelican/static/coffee/Fancybox/fancybox.coffee | Kristinita/KristinitaPelicanCI | 0 | ###
@Author: Kristinita
@Date: 2017-04-04 13:01:15
@Last Modified time: 2017-04-14 14:37:51
###
############
# Fancybox #
############
###
Modal window for images:
http://fancyapps.com/fancybox/3/
http://fancyapps.com/fancybox/3/docs/#options
http://xiper.net/collect/js-plugins/gallery/fancybox
###
$('.fancybox').fan... | 222896 | ###
@Author: <NAME>
@Date: 2017-04-04 13:01:15
@Last Modified time: 2017-04-14 14:37:51
###
############
# Fancybox #
############
###
Modal window for images:
http://fancyapps.com/fancybox/3/
http://fancyapps.com/fancybox/3/docs/#options
http://xiper.net/collect/js-plugins/gallery/fancybox
###
$('.fancybox').fancybo... | true | ###
@Author: PI:NAME:<NAME>END_PI
@Date: 2017-04-04 13:01:15
@Last Modified time: 2017-04-14 14:37:51
###
############
# Fancybox #
############
###
Modal window for images:
http://fancyapps.com/fancybox/3/
http://fancyapps.com/fancybox/3/docs/#options
http://xiper.net/collect/js-plugins/gallery/fancybox
###
$('.fanc... |
[
{
"context": "# \n# Math3d\n# @author David Ronai / Makiopolis.com / @Makio64 \n# \nclass Math3d\n\n\t# ",
"end": 33,
"score": 0.9998699426651001,
"start": 22,
"tag": "NAME",
"value": "David Ronai"
},
{
"context": "# \n# Math3d\n# @author David Ronai / Makiopolis.com / @Makio64 \n# \... | src/coffee/core/3d/Math3d.coffee | Makio64/Kyari | 0 | #
# Math3d
# @author David Ronai / Makiopolis.com / @Makio64
#
class Math3d
# The distance optimized formula wihout square, use it for comparaison
@distance = (v1, v2)->
dx = (v2.x-v1.x)
dy = (v2.y-v1.y)
dz = (v2.z-v1.z)
return dx*dx + dy*dy + dz*dz
# The real 3d distance
@distanceSqrt = (v1, v2)->
... | 101833 | #
# Math3d
# @author <NAME> / <EMAIL> / @Makio64
#
class Math3d
# The distance optimized formula wihout square, use it for comparaison
@distance = (v1, v2)->
dx = (v2.x-v1.x)
dy = (v2.y-v1.y)
dz = (v2.z-v1.z)
return dx*dx + dy*dy + dz*dz
# The real 3d distance
@distanceSqrt = (v1, v2)->
dx = (v2.x-v... | true | #
# Math3d
# @author PI:NAME:<NAME>END_PI / PI:EMAIL:<EMAIL>END_PI / @Makio64
#
class Math3d
# The distance optimized formula wihout square, use it for comparaison
@distance = (v1, v2)->
dx = (v2.x-v1.x)
dy = (v2.y-v1.y)
dz = (v2.z-v1.z)
return dx*dx + dy*dy + dz*dz
# The real 3d distance
@distanceSqr... |
[
{
"context": " mydb.users.set myuser[0],\n password: myuser[4]\n name: myuser[1]\n email: myuser",
"end": 738,
"score": 0.9979702830314636,
"start": 730,
"tag": "PASSWORD",
"value": "myuser[4"
},
{
"context": " mydb.emails.set myuser[3],\n u... | lib/import.coffee | Vowow/LoginJS | 0 | fs = require "fs"
parse = require "csv-parse"
parser = parse(delimiter: ",")
source = fs.createReadStream("./DB/dbin.csv")
stream = fs.createReadStream("./DB/dbin.json")
JSONStream = require "JSONStream"
es = require "event-stream"
output = []
mydb = require "../lib/db.coffee"
format =""
module.exports = (newUser, form... | 67613 | fs = require "fs"
parse = require "csv-parse"
parser = parse(delimiter: ",")
source = fs.createReadStream("./DB/dbin.csv")
stream = fs.createReadStream("./DB/dbin.json")
JSONStream = require "JSONStream"
es = require "event-stream"
output = []
mydb = require "../lib/db.coffee"
format =""
module.exports = (newUser, form... | true | fs = require "fs"
parse = require "csv-parse"
parser = parse(delimiter: ",")
source = fs.createReadStream("./DB/dbin.csv")
stream = fs.createReadStream("./DB/dbin.json")
JSONStream = require "JSONStream"
es = require "event-stream"
output = []
mydb = require "../lib/db.coffee"
format =""
module.exports = (newUser, form... |
[
{
"context": "# Made with Framer\n# by Benjamin den Boer\n# www.framerjs.com\n\n# Set default cursor\ndocument",
"end": 41,
"score": 0.9998844265937805,
"start": 24,
"tag": "NAME",
"value": "Benjamin den Boer"
}
] | examples/audio-player.framer/app.coffee | RaffaelSilvado/MUZIK | 109 | # Made with Framer
# by Benjamin den Boer
# www.framerjs.com
# Set default cursor
document.body.style.cursor = "auto"
# Include the module
{AudioPlayer} = require "audio"
# New AudioPlayer
audio = new AudioPlayer
audio: "audio.mp3"
width: 300, height: 200
image: "images/bg.png"
borderRadius: 4
audio.center()
... | 167936 | # Made with Framer
# by <NAME>
# www.framerjs.com
# Set default cursor
document.body.style.cursor = "auto"
# Include the module
{AudioPlayer} = require "audio"
# New AudioPlayer
audio = new AudioPlayer
audio: "audio.mp3"
width: 300, height: 200
image: "images/bg.png"
borderRadius: 4
audio.center()
audio.y -= ... | true | # Made with Framer
# by PI:NAME:<NAME>END_PI
# www.framerjs.com
# Set default cursor
document.body.style.cursor = "auto"
# Include the module
{AudioPlayer} = require "audio"
# New AudioPlayer
audio = new AudioPlayer
audio: "audio.mp3"
width: 300, height: 200
image: "images/bg.png"
borderRadius: 4
audio.center... |
[
{
"context": ">\n\nparticipant1 = new Contact\n id: '1'\n email: 'ben@nylas.com'\n isSearchIndexed: false\nparticipant2 = new Cont",
"end": 482,
"score": 0.9999334216117859,
"start": 469,
"tag": "EMAIL",
"value": "ben@nylas.com"
},
{
"context": "se\nparticipant2 = new Contact\n i... | packages/client-app/spec/components/tokenizing-text-field-spec.cjsx | cnheider/nylas-mail | 24,369 | _ = require 'underscore'
React = require 'react'
ReactDOM = require 'react-dom'
{mount} = require 'enzyme'
{NylasTestUtils,
Account,
AccountStore,
Contact,
} = require 'nylas-exports'
{TokenizingTextField, Menu} = require 'nylas-component-kit'
CustomToken = React.createClass
render: ->
<span>{@props.token.e... | 113784 | _ = require 'underscore'
React = require 'react'
ReactDOM = require 'react-dom'
{mount} = require 'enzyme'
{NylasTestUtils,
Account,
AccountStore,
Contact,
} = require 'nylas-exports'
{TokenizingTextField, Menu} = require 'nylas-component-kit'
CustomToken = React.createClass
render: ->
<span>{@props.token.e... | true | _ = require 'underscore'
React = require 'react'
ReactDOM = require 'react-dom'
{mount} = require 'enzyme'
{NylasTestUtils,
Account,
AccountStore,
Contact,
} = require 'nylas-exports'
{TokenizingTextField, Menu} = require 'nylas-component-kit'
CustomToken = React.createClass
render: ->
<span>{@props.token.e... |
[
{
"context": "\n Accounts.createUser username:'root', password:'root', email:'root@domovoy.local'\n\nelse\n log.info \"(D",
"end": 506,
"score": 0.9994966983795166,
"start": 502,
"tag": "PASSWORD",
"value": "root"
},
{
"context": "eateUser username:'root', password:'root', email:'r... | modules/init/server/starup.coffee | Latnok/domovoy | 0 | serverSets = db.settings.findOne 'server'
initiated = _.isString serverSets?.uuid
if !initiated
log.info "(Domovoy) server init startup"
chp = require 'child_process'
ls = chp.spawn('uuidgen', ['-r'])
ls.stdout.on('data', Meteor.bindEnvironment((data) ->
uuidString = data.toString().replace("\n", '')
... | 26510 | serverSets = db.settings.findOne 'server'
initiated = _.isString serverSets?.uuid
if !initiated
log.info "(Domovoy) server init startup"
chp = require 'child_process'
ls = chp.spawn('uuidgen', ['-r'])
ls.stdout.on('data', Meteor.bindEnvironment((data) ->
uuidString = data.toString().replace("\n", '')
... | true | serverSets = db.settings.findOne 'server'
initiated = _.isString serverSets?.uuid
if !initiated
log.info "(Domovoy) server init startup"
chp = require 'child_process'
ls = chp.spawn('uuidgen', ['-r'])
ls.stdout.on('data', Meteor.bindEnvironment((data) ->
uuidString = data.toString().replace("\n", '')
... |
[
{
"context": "nd be stressed but rest at night!)\n#\n# Authored by Michele Giugliano, on Jan 5th 2018\n#\n# It uses AppleScript and for ",
"end": 242,
"score": 0.9998934268951416,
"start": 225,
"tag": "NAME",
"value": "Michele Giugliano"
},
{
"context": " is almost entirely based on\... | daytime-to-do-list/index.coffee | mgiugliano/daytime-to-do-list | 1 | #
# A minimalistic widget to display the Reminders, *restricted* to a given list.
# The widget hides the content of the list after a specified time of the day.
# (i.e. work and be stressed but rest at night!)
#
# Authored by Michele Giugliano, on Jan 5th 2018
#
# It uses AppleScript and for the rest it is almost entire... | 94740 | #
# A minimalistic widget to display the Reminders, *restricted* to a given list.
# The widget hides the content of the list after a specified time of the day.
# (i.e. work and be stressed but rest at night!)
#
# Authored by <NAME>, on Jan 5th 2018
#
# It uses AppleScript and for the rest it is almost entirely based on... | true | #
# A minimalistic widget to display the Reminders, *restricted* to a given list.
# The widget hides the content of the list after a specified time of the day.
# (i.e. work and be stressed but rest at night!)
#
# Authored by PI:NAME:<NAME>END_PI, on Jan 5th 2018
#
# It uses AppleScript and for the rest it is almost ent... |
[
{
"context": "t \"I snogged Madame De Pampadore\"\n if name == \"Simon\"\n alert \"The awesome one.\"\n alert \"",
"end": 774,
"score": 0.9982287287712097,
"start": 769,
"tag": "NAME",
"value": "Simon"
},
{
"context": "wesome one.\"\n alert \"Hail\"\n if na... | Game/monster.coffee | TimeGuys/BrewLib | 0 | monster = (name,strength,health) ->
alert name
if strength == 1
alert "I'll sqaush you"
if strength == 2
alert "I'll kill you"
if strength == 3
alert "Suck It"
if strength == 4
alert "DIE"
if strength == 5
alert "Maybe you will be a worthy opponent"
if... | 69998 | monster = (name,strength,health) ->
alert name
if strength == 1
alert "I'll sqaush you"
if strength == 2
alert "I'll kill you"
if strength == 3
alert "Suck It"
if strength == 4
alert "DIE"
if strength == 5
alert "Maybe you will be a worthy opponent"
if... | true | monster = (name,strength,health) ->
alert name
if strength == 1
alert "I'll sqaush you"
if strength == 2
alert "I'll kill you"
if strength == 3
alert "Suck It"
if strength == 4
alert "DIE"
if strength == 5
alert "Maybe you will be a worthy opponent"
if... |
[
{
"context": "r nm in ['exlibris','test','from','plugin','uid','username','email','all','find','embedded','pilot','live','",
"end": 2221,
"score": 0.9968560338020325,
"start": 2213,
"tag": "USERNAME",
"value": "username"
},
{
"context": " undefined, dev\n\n API.mail.send\n ... | noddy/service/v2/scripts/avail2find.coffee | oaworks/API | 2 | '''
import unidecode from 'unidecode'
@oab_availability = new API.collection {index:"oab",type:"availability"}
API.add 'service/oab/scripts/avail2find',
get:
roleRequired: 'root'
action: () ->
dev = true
processed = 0
find_saves = []
catalogue_saves = []
catalogue_updates = []... | 11197 | '''
import unidecode from 'unidecode'
@oab_availability = new API.collection {index:"oab",type:"availability"}
API.add 'service/oab/scripts/avail2find',
get:
roleRequired: 'root'
action: () ->
dev = true
processed = 0
find_saves = []
catalogue_saves = []
catalogue_updates = []... | true | '''
import unidecode from 'unidecode'
@oab_availability = new API.collection {index:"oab",type:"availability"}
API.add 'service/oab/scripts/avail2find',
get:
roleRequired: 'root'
action: () ->
dev = true
processed = 0
find_saves = []
catalogue_saves = []
catalogue_updates = []... |
[
{
"context": ".body.email.toLowerCase().trim()\n password: auth.hashPassword req.body.password\n\n DataService 'signupUser', ",
"end": 744,
"score": 0.9905627369880676,
"start": 727,
"tag": "PASSWORD",
"value": "auth.hashPassword"
},
{
"context": "rCase().trim()\n pa... | api/users.coffee | withmaia/maia-api | 0 | somata = require 'somata'
express = require 'express'
auth = require './auth'
crypto = require 'crypto'
{log} = somata.helpers
_ = require 'underscore'
jwt = require 'jwt-simple'
#uploads = require './uploads'
config = require '../config'
announce = require 'nexus-announce'
somata_client = new somata.Client
DataServi... | 164663 | somata = require 'somata'
express = require 'express'
auth = require './auth'
crypto = require 'crypto'
{log} = somata.helpers
_ = require 'underscore'
jwt = require 'jwt-simple'
#uploads = require './uploads'
config = require '../config'
announce = require 'nexus-announce'
somata_client = new somata.Client
DataServi... | true | somata = require 'somata'
express = require 'express'
auth = require './auth'
crypto = require 'crypto'
{log} = somata.helpers
_ = require 'underscore'
jwt = require 'jwt-simple'
#uploads = require './uploads'
config = require '../config'
announce = require 'nexus-announce'
somata_client = new somata.Client
DataServi... |
[
{
"context": "ansform them to Model instances\n # e.g. 'first_name AS firstName'\n returning.push \"#{mo",
"end": 4706,
"score": 0.685321033000946,
"start": 4701,
"tag": "NAME",
"value": "first"
},
{
"context": "to Model instances\n # e.g. 'first_name AS fi... | src/serializers/modelSerializer.coffee | BlackBalloon/hapi-simple-orm | 2 | 'use strict'
_ = require 'underscore'
Promise = require 'bluebird'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
ForeignKey = require './../fields/foreignKey'
BaseModel = require './../model/baseModel'
ManyToMany = requir... | 131905 | 'use strict'
_ = require 'underscore'
Promise = require 'bluebird'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
ForeignKey = require './../fields/foreignKey'
BaseModel = require './../model/baseModel'
ManyToMany = requir... | true | 'use strict'
_ = require 'underscore'
Promise = require 'bluebird'
knexConf = require process.cwd() + '/knexfile'
knex = require('knex')(knexConf[process.env.NODE_ENV])
ForeignKey = require './../fields/foreignKey'
BaseModel = require './../model/baseModel'
ManyToMany = requir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.