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": "module.exports = {\n\n name: \"Vala\"\n namespace: \"vala\"\n\n ###\n Supported Grammars\n",
"end": 33,
"score": 0.6875685453414917,
"start": 29,
"tag": "NAME",
"value": "Vala"
}
] | src/languages/vala.coffee | jmullercuber/atom-beautify | 1,783 | module.exports = {
name: "Vala"
namespace: "vala"
###
Supported Grammars
###
grammars: [
"Vala"
]
###
Supported extensions
###
extensions: [
"vala"
"vapi"
]
options:
configPath:
type: 'string'
default: ""
description: "Path to uncrustify config file. i.e. ... | 113408 | module.exports = {
name: "<NAME>"
namespace: "vala"
###
Supported Grammars
###
grammars: [
"Vala"
]
###
Supported extensions
###
extensions: [
"vala"
"vapi"
]
options:
configPath:
type: 'string'
default: ""
description: "Path to uncrustify config file. i.e... | true | module.exports = {
name: "PI:NAME:<NAME>END_PI"
namespace: "vala"
###
Supported Grammars
###
grammars: [
"Vala"
]
###
Supported extensions
###
extensions: [
"vala"
"vapi"
]
options:
configPath:
type: 'string'
default: ""
description: "Path to uncrustify co... |
[
{
"context": "(top left corner) in the viewport.\n #\n # Author: Peter-Paul Koch, http://www.quirksmode.org/js/findpos.html\n find",
"end": 111,
"score": 0.9997816681861877,
"start": 96,
"tag": "NAME",
"value": "Peter-Paul Koch"
}
] | src/utils.coffee | digineo/signat0r | 1 | Utils =
# Finds the position of an element (top left corner) in the viewport.
#
# Author: Peter-Paul Koch, http://www.quirksmode.org/js/findpos.html
findPosition: (elem)->
leftPos = topPos = 0
if elem.offsetParent
while true
leftPos += elem.offsetLeft
topPos += elem.offsetTop
... | 217242 | Utils =
# Finds the position of an element (top left corner) in the viewport.
#
# Author: <NAME>, http://www.quirksmode.org/js/findpos.html
findPosition: (elem)->
leftPos = topPos = 0
if elem.offsetParent
while true
leftPos += elem.offsetLeft
topPos += elem.offsetTop
break ... | true | Utils =
# Finds the position of an element (top left corner) in the viewport.
#
# Author: PI:NAME:<NAME>END_PI, http://www.quirksmode.org/js/findpos.html
findPosition: (elem)->
leftPos = topPos = 0
if elem.offsetParent
while true
leftPos += elem.offsetLeft
topPos += elem.offsetTop
... |
[
{
"context": " grunt-hipchat-v2-notifier\n# * https://github.com/logankoester/grunt-hipchat-v2-notifier\n# *\n# * Copyright (c) 2",
"end": 67,
"score": 0.9993730187416077,
"start": 55,
"tag": "USERNAME",
"value": "logankoester"
},
{
"context": "ipchat-v2-notifier\n# *\n# * Copyright ... | src/tasks/hipchat_notifier.coffee | jasonmit/grunt-hipchat-v2-notifier | 1 | #
# * grunt-hipchat-v2-notifier
# * https://github.com/logankoester/grunt-hipchat-v2-notifier
# *
# * Copyright (c) 2013-2014 Logan Koester
# * Licensed under the MIT license.
#
module.exports = (grunt) ->
Hipchatter = require 'hipchatter'
grunt.registerMultiTask 'hipchat_notifier', 'Send a message to a Hipchat ro... | 135729 | #
# * grunt-hipchat-v2-notifier
# * https://github.com/logankoester/grunt-hipchat-v2-notifier
# *
# * Copyright (c) 2013-2014 <NAME>
# * Licensed under the MIT license.
#
module.exports = (grunt) ->
Hipchatter = require 'hipchatter'
grunt.registerMultiTask 'hipchat_notifier', 'Send a message to a Hipchat room', ->... | true | #
# * grunt-hipchat-v2-notifier
# * https://github.com/logankoester/grunt-hipchat-v2-notifier
# *
# * Copyright (c) 2013-2014 PI:NAME:<NAME>END_PI
# * Licensed under the MIT license.
#
module.exports = (grunt) ->
Hipchatter = require 'hipchatter'
grunt.registerMultiTask 'hipchat_notifier', 'Send a message to a Hip... |
[
{
"context": "oject_id, version, pathname} = req.params\n\t\t\tkey = \"#{project_id}:#{version}:#{pathname}\"\n\t\t\tif @oldFiles[key]?\n\t\t\t\tres.send @oldFiles[key]",
"end": 1361,
"score": 0.9993714094161987,
"start": 1323,
"tag": "KEY",
"value": "\"#{project_id}:#{version}:#{pathname}\"... | test/acceptance/coffee/helpers/MockProjectHistoryApi.coffee | shyoshyo/web-sharelatex | 1 | _ = require 'lodash'
express = require 'express'
bodyParser = require "body-parser"
app = express()
{ObjectId} = require 'mongojs'
module.exports = MockProjectHistoryApi =
docs: {}
oldFiles: {}
projectVersions: {}
labels: {}
projectSnapshots: {}
addOldFile: (project_id, version, pathname, content) ->
@old... | 71473 | _ = require 'lodash'
express = require 'express'
bodyParser = require "body-parser"
app = express()
{ObjectId} = require 'mongojs'
module.exports = MockProjectHistoryApi =
docs: {}
oldFiles: {}
projectVersions: {}
labels: {}
projectSnapshots: {}
addOldFile: (project_id, version, pathname, content) ->
@old... | true | _ = require 'lodash'
express = require 'express'
bodyParser = require "body-parser"
app = express()
{ObjectId} = require 'mongojs'
module.exports = MockProjectHistoryApi =
docs: {}
oldFiles: {}
projectVersions: {}
labels: {}
projectSnapshots: {}
addOldFile: (project_id, version, pathname, content) ->
@old... |
[
{
"context": "# @author Gianluigi Mango\n# User API\nUserHandler = require './handler/userH",
"end": 25,
"score": 0.9998672604560852,
"start": 10,
"tag": "NAME",
"value": "Gianluigi Mango"
}
] | dev/server/api/userApi.coffee | knickatheart/mean-api | 0 | # @author Gianluigi Mango
# User API
UserHandler = require './handler/userHandler'
module.exports = class UserApi
constructor: (@action, @path, @req, @res) ->
@userHandler = new UserHandler @req
console.info '[Query]', action
switch @action
when 'getInfo' then @userHandler.getInfo @path, @res
when 'add... | 22138 | # @author <NAME>
# User API
UserHandler = require './handler/userHandler'
module.exports = class UserApi
constructor: (@action, @path, @req, @res) ->
@userHandler = new UserHandler @req
console.info '[Query]', action
switch @action
when 'getInfo' then @userHandler.getInfo @path, @res
when 'addUser' the... | true | # @author PI:NAME:<NAME>END_PI
# User API
UserHandler = require './handler/userHandler'
module.exports = class UserApi
constructor: (@action, @path, @req, @res) ->
@userHandler = new UserHandler @req
console.info '[Query]', action
switch @action
when 'getInfo' then @userHandler.getInfo @path, @res
when... |
[
{
"context": "e key\n key = if base_key then (k) -> \"#{base_key}_#{k}\" else (k) -> k\n\n # First add primitive values\n",
"end": 594,
"score": 0.6759657263755798,
"start": 592,
"tag": "KEY",
"value": "#{"
}
] | coffee/json_connector/json_flattener.coffee | enterstudio/tableau-web-table-connector | 59 | _ = require 'underscore'
class Table
constructor: (@rows=[])->
add_row: (row_data)->
@rows.push row_data
merge_table_pair = (t1, t2)->
a = t1.rows
b = t2.rows
o = new Table
for a_row in a
for b_row in b
o.add_row _.extend({}, a_row, b_row)
o
merge_tables = (t1, tables...)->
return... | 33123 | _ = require 'underscore'
class Table
constructor: (@rows=[])->
add_row: (row_data)->
@rows.push row_data
merge_table_pair = (t1, t2)->
a = t1.rows
b = t2.rows
o = new Table
for a_row in a
for b_row in b
o.add_row _.extend({}, a_row, b_row)
o
merge_tables = (t1, tables...)->
return... | true | _ = require 'underscore'
class Table
constructor: (@rows=[])->
add_row: (row_data)->
@rows.push row_data
merge_table_pair = (t1, t2)->
a = t1.rows
b = t2.rows
o = new Table
for a_row in a
for b_row in b
o.add_row _.extend({}, a_row, b_row)
o
merge_tables = (t1, tables...)->
return... |
[
{
"context": "\n\n compJID = \"comp.exmaple.tld\"\n clientJID = \"client@exmaple.tld\"\n\n xmppComp =\n channels: {}\n send: (data) ",
"end": 290,
"score": 0.9997097253799438,
"start": 272,
"tag": "EMAIL",
"value": "client@exmaple.tld"
},
{
"context": "x.Element \"iq\",\n ... | spec/Router.spec.coffee | flosse/node-xmpp-joap | 0 | Router = require "../src/Router"
ltx = require "ltx"
chai = require 'chai'
expect = chai.expect
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Router", ->
compJID = "comp.exmaple.tld"
clientJID = "client@exmaple.tld"
xmppComp =
channels: ... | 169269 | Router = require "../src/Router"
ltx = require "ltx"
chai = require 'chai'
expect = chai.expect
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Router", ->
compJID = "comp.exmaple.tld"
clientJID = "<EMAIL>"
xmppComp =
channels: {}
send... | true | Router = require "../src/Router"
ltx = require "ltx"
chai = require 'chai'
expect = chai.expect
{ JID } = require "node-xmpp-core"
JOAP_NS = "jabber:iq:joap"
RPC_NS = "jabber:iq:rpc"
describe "Router", ->
compJID = "comp.exmaple.tld"
clientJID = "PI:EMAIL:<EMAIL>END_PI"
xmppComp =
channe... |
[
{
"context": "onParam.mold), [\n# {\n# name: 'name2'\n# $index: 0\n# $isNew: true\n# ",
"end": 3650,
"score": 0.6798576712608337,
"start": 3649,
"tag": "NAME",
"value": "2"
},
{
"context": " this.collectionParam.child(1).setMold('name', 'new name'... | test/skipped/integration.spec.coffee | ipkozyrin/mold | 0 | mold = require('../../src/index').default
describe.skip 'Integration.', ->
describe 'documentsCollection => nested document.', ->
beforeEach () ->
testSchema = () ->
documentsCollection:
type: 'documentsCollection'
item:
type: 'document'
schema:
... | 128314 | mold = require('../../src/index').default
describe.skip 'Integration.', ->
describe 'documentsCollection => nested document.', ->
beforeEach () ->
testSchema = () ->
documentsCollection:
type: 'documentsCollection'
item:
type: 'document'
schema:
... | true | mold = require('../../src/index').default
describe.skip 'Integration.', ->
describe 'documentsCollection => nested document.', ->
beforeEach () ->
testSchema = () ->
documentsCollection:
type: 'documentsCollection'
item:
type: 'document'
schema:
... |
[
{
"context": "id\n\t\t\tfields = [{\n\t\t\t\t\ttype: 'String',\n\t\t\t\t\tname:'name',\n\t\t\t\t\twidth: 60,\n\t\t\t\t\ttitle: TAPi18n.__('space_u",
"end": 1412,
"score": 0.8797792196273804,
"start": 1408,
"tag": "NAME",
"value": "name"
},
{
"context": "join(\",\")\n\t\t\t\t},{\n\t\t... | creator/packages/steedos-users-import/routes/api_space_users_export.coffee | yicone/steedos-platform | 42 | Meteor.startup ->
WebApp.connectHandlers.use "/api/export/space_users", (req, res, next)->
try
current_user_info = uuflowManager.check_authorization(req)
query = req.query
space_id = query.space_id
org_id = query.org_id
user_id = query['X-User-Id']
org = db.organizations.findOne({_id:org_id},{fiel... | 184032 | Meteor.startup ->
WebApp.connectHandlers.use "/api/export/space_users", (req, res, next)->
try
current_user_info = uuflowManager.check_authorization(req)
query = req.query
space_id = query.space_id
org_id = query.org_id
user_id = query['X-User-Id']
org = db.organizations.findOne({_id:org_id},{fiel... | true | Meteor.startup ->
WebApp.connectHandlers.use "/api/export/space_users", (req, res, next)->
try
current_user_info = uuflowManager.check_authorization(req)
query = req.query
space_id = query.space_id
org_id = query.org_id
user_id = query['X-User-Id']
org = db.organizations.findOne({_id:org_id},{fiel... |
[
{
"context": "# Copyright (c) 2013, 2014, 2015 Michele Bini\n\ntest \"Verify catching impure reflective function",
"end": 45,
"score": 0.9998421669006348,
"start": 33,
"tag": "NAME",
"value": "Michele Bini"
}
] | test/reflection.coffee | rev22/reflective-coffeescript | 0 | # Copyright (c) 2013, 2014, 2015 Michele Bini
test "Verify catching impure reflective functions", ->
CoffeeScript.compile "@>@foo"
CoffeeScript.compile "->foo"
ok do (caught = false)->
try
CoffeeScript.compile "@>foo"
catch
caught = true
caught
ok do (caught = false)->
try
Cof... | 103773 | # Copyright (c) 2013, 2014, 2015 <NAME>
test "Verify catching impure reflective functions", ->
CoffeeScript.compile "@>@foo"
CoffeeScript.compile "->foo"
ok do (caught = false)->
try
CoffeeScript.compile "@>foo"
catch
caught = true
caught
ok do (caught = false)->
try
CoffeeScr... | true | # Copyright (c) 2013, 2014, 2015 PI:NAME:<NAME>END_PI
test "Verify catching impure reflective functions", ->
CoffeeScript.compile "@>@foo"
CoffeeScript.compile "->foo"
ok do (caught = false)->
try
CoffeeScript.compile "@>foo"
catch
caught = true
caught
ok do (caught = false)->
try
... |
[
{
"context": "# @author Tim Knip / http://www.floorplanner.com/ / tim at floorplan",
"end": 18,
"score": 0.9998829960823059,
"start": 10,
"tag": "NAME",
"value": "Tim Knip"
},
{
"context": "orplanner.com/ / tim at floorplanner.com\n# @author aladjev.andrew@gmail.com\n\n#= require new... | source/javascripts/new_src/loaders/collada/node.coffee | andrew-aladev/three.js | 0 | # @author Tim Knip / http://www.floorplanner.com/ / tim at floorplanner.com
# @author aladjev.andrew@gmail.com
#= require new_src/core/matrix_4
#= require new_src/loaders/collada/transform
#= require new_src/loaders/collada/instance_geometry
#= require new_src/loaders/collada/instance_controller
#= require new_src/loa... | 181358 | # @author <NAME> / http://www.floorplanner.com/ / tim at floorplanner.com
# @author <EMAIL>
#= require new_src/core/matrix_4
#= require new_src/loaders/collada/transform
#= require new_src/loaders/collada/instance_geometry
#= require new_src/loaders/collada/instance_controller
#= require new_src/loaders/collada/instan... | true | # @author PI:NAME:<NAME>END_PI / http://www.floorplanner.com/ / tim at floorplanner.com
# @author PI:EMAIL:<EMAIL>END_PI
#= require new_src/core/matrix_4
#= require new_src/loaders/collada/transform
#= require new_src/loaders/collada/instance_geometry
#= require new_src/loaders/collada/instance_controller
#= require n... |
[
{
"context": "n_out: null\n timer_created_at_key: 'totem:session_timer_created_at'\n\n actions:\n sign_out",
"end": 2014,
"score": 0.7297385334968567,
"start": 2008,
"tag": "KEY",
"value": "totem:"
},
{
"context": " timer_created_at_key: 'totem:session_... | src/totem/client/totem-application/app/controllers/session_timeout.coffee | sixthedge/cellar | 6 | import ember from 'ember'
import config from 'totem-config/config'
import util from 'totem/util'
import ajax from 'totem/ajax'
import ts from 'totem/scope'
# The 'session_timeout' controller is instantiated by 'totem_messages' when
# @totem_messages.api_success() is called ('api_success' calls 'reset_session_... | 35689 | import ember from 'ember'
import config from 'totem-config/config'
import util from 'totem/util'
import ajax from 'totem/ajax'
import ts from 'totem/scope'
# The 'session_timeout' controller is instantiated by 'totem_messages' when
# @totem_messages.api_success() is called ('api_success' calls 'reset_session_... | true | import ember from 'ember'
import config from 'totem-config/config'
import util from 'totem/util'
import ajax from 'totem/ajax'
import ts from 'totem/scope'
# The 'session_timeout' controller is instantiated by 'totem_messages' when
# @totem_messages.api_success() is called ('api_success' calls 'reset_session_... |
[
{
"context": " = new Date().getFullYear()\n printf(\"(c) 2022%s Hein Thant Maung Maung. Licensed under BSD-2-CLAUSE.\\n\\n\",\n if cu",
"end": 1686,
"score": 0.9998720288276672,
"start": 1664,
"tag": "NAME",
"value": "Hein Thant Maung Maung"
}
] | src/xuerun.coffee | heinthanth/xuerun | 0 | import { parse } from "https://deno.land/std@0.139.0/flags/mod.ts";
import { parse as parseYAML } from "https://deno.land/std@0.139.0/encoding/yaml.ts"
import { YAMLError } from "https://deno.land/std@0.139.0/encoding/_yaml/error.ts"
import { dirname, resolve } from "https://deno.land/std@0.139.0/path/mod.ts";
import {... | 150699 | import { parse } from "https://deno.land/std@0.139.0/flags/mod.ts";
import { parse as parseYAML } from "https://deno.land/std@0.139.0/encoding/yaml.ts"
import { YAMLError } from "https://deno.land/std@0.139.0/encoding/_yaml/error.ts"
import { dirname, resolve } from "https://deno.land/std@0.139.0/path/mod.ts";
import {... | true | import { parse } from "https://deno.land/std@0.139.0/flags/mod.ts";
import { parse as parseYAML } from "https://deno.land/std@0.139.0/encoding/yaml.ts"
import { YAMLError } from "https://deno.land/std@0.139.0/encoding/_yaml/error.ts"
import { dirname, resolve } from "https://deno.land/std@0.139.0/path/mod.ts";
import {... |
[
{
"context": "ends require('../abstract')\n\n cacheKeyAppendix: 'filerev'\n\n enabled: -> _.isObject(@getConfig().postp",
"end": 147,
"score": 0.5794306397438049,
"start": 144,
"tag": "KEY",
"value": "fil"
}
] | lib/grunt/task_helpers/filerev/abstract.coffee | wonderweblabs/graspi | 0 | _ = require 'lodash'
File = require 'path'
module.exports = class AbstractTaskHelper extends require('../abstract')
cacheKeyAppendix: 'filerev'
enabled: -> _.isObject(@getConfig().postpipeline.filerevision)
# ------------------------------------------------------------
getMappingFile: ->
File.join... | 194456 | _ = require 'lodash'
File = require 'path'
module.exports = class AbstractTaskHelper extends require('../abstract')
cacheKeyAppendix: '<KEY>erev'
enabled: -> _.isObject(@getConfig().postpipeline.filerevision)
# ------------------------------------------------------------
getMappingFile: ->
File.jo... | true | _ = require 'lodash'
File = require 'path'
module.exports = class AbstractTaskHelper extends require('../abstract')
cacheKeyAppendix: 'PI:KEY:<KEY>END_PIerev'
enabled: -> _.isObject(@getConfig().postpipeline.filerevision)
# ------------------------------------------------------------
getMappingFile: -... |
[
{
"context": "PresentationKey: ->\n key = @currentDoctype.toLowerCase()\n key += localStore.keys.separation + loc",
"end": 3332,
"score": 0.4901748299598694,
"start": 3321,
"tag": "KEY",
"value": "toLowerCase"
}
] | client/app/views/results_global_controls_view.coffee | aenario/cozy-databrowser | 0 | View = require './../lib/view'
DeleteAllModel = require './../models/delete_all_model'
app = require 'application'
localStore = require './../helpers/oLocalStorageHelper'
module.exports = class ResultsGlobalControlsView extends View
el: '#results-global-controls'
templateModal: require('./templates/modal_conf... | 94652 | View = require './../lib/view'
DeleteAllModel = require './../models/delete_all_model'
app = require 'application'
localStore = require './../helpers/oLocalStorageHelper'
module.exports = class ResultsGlobalControlsView extends View
el: '#results-global-controls'
templateModal: require('./templates/modal_conf... | true | View = require './../lib/view'
DeleteAllModel = require './../models/delete_all_model'
app = require 'application'
localStore = require './../helpers/oLocalStorageHelper'
module.exports = class ResultsGlobalControlsView extends View
el: '#results-global-controls'
templateModal: require('./templates/modal_conf... |
[
{
"context": "http://elving.github.com/swag/>\n Copyright 2012 Elving Rodriguez <http://elving.me/>\n Available under MIT licen",
"end": 88,
"score": 0.9998801350593567,
"start": 72,
"tag": "NAME",
"value": "Elving Rodriguez"
},
{
"context": "lable under MIT license <https://ra... | src/swag.coffee | SBoudrias/swag | 0 | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 Elving Rodriguez <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'... | 129764 | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 <NAME> <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handlebars'
modul... | true | ###
Swag v0.2.6 <http://elving.github.com/swag/>
Copyright 2012 PI:NAME:<NAME>END_PI <http://elving.me/>
Available under MIT license <https://raw.github.com/elving/swag/master/LICENSE>
###
if window?
Handlebars = window.Handlebars
window.Swag = Swag = {}
if module?
Handlebars = require 'handleb... |
[
{
"context": "Wrap: true\n \"exception-reporting\":\n userId: \"623d3757-a301-4179-88ab-3798c281a688\"\n \"formatters-python\":\n autopep8:\n binPa",
"end": 327,
"score": 0.7546429634094238,
"start": 292,
"tag": "PASSWORD",
"value": "23d3757-a301-4179-88ab-3798c281a688"
},
{... | config.cson | tpaclatee/atom-setup-python | 0 | "*":
Hydrogen: {}
"autocomplete-python":
useKite: false
useSnippets: "all"
core:
disabledPackages: [
"kite"
]
telemetryConsent: "limited"
uriHandlerRegistration: "always"
editor:
fontSize: 15
softWrap: true
"exception-reporting":
userId: "623d3757-a301-4179-88ab-3798c... | 8167 | "*":
Hydrogen: {}
"autocomplete-python":
useKite: false
useSnippets: "all"
core:
disabledPackages: [
"kite"
]
telemetryConsent: "limited"
uriHandlerRegistration: "always"
editor:
fontSize: 15
softWrap: true
"exception-reporting":
userId: "6<PASSWORD>"
"formatters-py... | true | "*":
Hydrogen: {}
"autocomplete-python":
useKite: false
useSnippets: "all"
core:
disabledPackages: [
"kite"
]
telemetryConsent: "limited"
uriHandlerRegistration: "always"
editor:
fontSize: 15
softWrap: true
"exception-reporting":
userId: "6PI:PASSWORD:<PASSWORD>END_PI... |
[
{
"context": "# TokenField\n#\n# Author: Bjarne Mogstad\n# Url: https://github.com/mogstad/token-field\n\ncl",
"end": 39,
"score": 0.9998869895935059,
"start": 25,
"tag": "NAME",
"value": "Bjarne Mogstad"
},
{
"context": " Author: Bjarne Mogstad\n# Url: https://github.com/mogstad/tok... | lib/sensu-dashboard/assets/javascripts/libs/token.field.coffee | sensu-og/sensu-dashboard | 14 | # TokenField
#
# Author: Bjarne Mogstad
# Url: https://github.com/mogstad/token-field
class @TokenField extends Backbone.View
tagName: "ul"
className: "token-field"
events:
"blur input": ->
@$el.removeClass("focus")
@selectTokenAtIndex(Infinity)
"focus input": ->
@$el.addClass("focus")
... | 40312 | # TokenField
#
# Author: <NAME>
# Url: https://github.com/mogstad/token-field
class @TokenField extends Backbone.View
tagName: "ul"
className: "token-field"
events:
"blur input": ->
@$el.removeClass("focus")
@selectTokenAtIndex(Infinity)
"focus input": ->
@$el.addClass("focus")
"cli... | true | # TokenField
#
# Author: PI:NAME:<NAME>END_PI
# Url: https://github.com/mogstad/token-field
class @TokenField extends Backbone.View
tagName: "ul"
className: "token-field"
events:
"blur input": ->
@$el.removeClass("focus")
@selectTokenAtIndex(Infinity)
"focus input": ->
@$el.addClass("fo... |
[
{
"context": " the round-robin DNS case.\", (done)->\n ips = ['17.172.224.35', '17.178.96.29', '17.142.160.29']\n NetUtil.re",
"end": 1451,
"score": 0.999725878238678,
"start": 1438,
"tag": "IP_ADDRESS",
"value": "17.172.224.35"
},
{
"context": "DNS case.\", (done)->\n ips =... | test/test-net-util.coffee | intellinote/inote-util | 1 | require 'coffee-errors'
#------------------------------------------------------------------------------#
assert = require 'assert'
should = require 'should'
fs = require 'fs'
path = require 'path'
HOME_DIR = path.join(__dirname,'..')
LIB_COV = path.join(HOME_DIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB... | 128978 | require 'coffee-errors'
#------------------------------------------------------------------------------#
assert = require 'assert'
should = require 'should'
fs = require 'fs'
path = require 'path'
HOME_DIR = path.join(__dirname,'..')
LIB_COV = path.join(HOME_DIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB... | true | require 'coffee-errors'
#------------------------------------------------------------------------------#
assert = require 'assert'
should = require 'should'
fs = require 'fs'
path = require 'path'
HOME_DIR = path.join(__dirname,'..')
LIB_COV = path.join(HOME_DIR,'lib-cov')
LIB_DIR = if fs.existsSync(LIB... |
[
{
"context": " passed data', ->\n data1 = 12\n data2 = 'tasty cake'\n\n el1 = list.add(data1)\n el2 ",
"end": 419,
"score": 0.5425951480865479,
"start": 418,
"tag": "PASSWORD",
"value": "t"
}
] | test/linkedlist.coffee | VincentToups/Kran | 0 | Llist = require('../kran').LinkedList
describe 'linked list', ->
list = null
beforeEach ->
list = new Llist()
it 'should construct an object', ->
list.should.be.an('object')
it 'should make it possible to add list elements', ->
el = list.add()
el.should.be.an('object')
describe 'a linked... | 85973 | Llist = require('../kran').LinkedList
describe 'linked list', ->
list = null
beforeEach ->
list = new Llist()
it 'should construct an object', ->
list.should.be.an('object')
it 'should make it possible to add list elements', ->
el = list.add()
el.should.be.an('object')
describe 'a linked... | true | Llist = require('../kran').LinkedList
describe 'linked list', ->
list = null
beforeEach ->
list = new Llist()
it 'should construct an object', ->
list.should.be.an('object')
it 'should make it possible to add list elements', ->
el = list.add()
el.should.be.an('object')
describe 'a linked... |
[
{
"context": "action: spy\n\n\t\t\tcliManager.execute command: 'hello John', (error) ->\n\t\t\t\texpect(error).to.not.exist\n\t\t\t\te",
"end": 3039,
"score": 0.9887856841087341,
"start": 3035,
"tag": "NAME",
"value": "John"
},
{
"context": "ce\n\t\t\t\texpect(spy).to.have.been.calle... | tests/capitano.spec.coffee | resin-io/capitano | 19 | _ = require('lodash')
sinon = require('sinon')
chai = require('chai')
chai.use(require('sinon-chai'))
expect = chai.expect
cliManager = require('../lib/capitano')
utils = require('../lib/utils')
describe 'Capitano:', ->
beforeEach ->
cliManager.state.commands = []
cliManager.state.globalOptions = []
cliManager... | 189103 | _ = require('lodash')
sinon = require('sinon')
chai = require('chai')
chai.use(require('sinon-chai'))
expect = chai.expect
cliManager = require('../lib/capitano')
utils = require('../lib/utils')
describe 'Capitano:', ->
beforeEach ->
cliManager.state.commands = []
cliManager.state.globalOptions = []
cliManager... | true | _ = require('lodash')
sinon = require('sinon')
chai = require('chai')
chai.use(require('sinon-chai'))
expect = chai.expect
cliManager = require('../lib/capitano')
utils = require('../lib/utils')
describe 'Capitano:', ->
beforeEach ->
cliManager.state.commands = []
cliManager.state.globalOptions = []
cliManager... |
[
{
"context": "it, time: timestamp}\n else\n {author: \"YOU\", commit: '<none>', time: '<none>'}\n formatt",
"end": 4990,
"score": 0.8177962303161621,
"start": 4987,
"tag": "NAME",
"value": "YOU"
}
] | lib/simple-git.coffee | mauricioszabo/simple-git | 10 | {CompositeDisposable} = require 'atom'
h = require './helper-fns'
DiffView = require './diff-view'
{Diff2Html} = require 'diff2html'
{ScrollView} = require 'atom-space-pen-views'
class Scroll extends ScrollView
@content: ->
@div()
initialize: (txt) ->
super
@text(txt)
module.exports =
config:
den... | 58266 | {CompositeDisposable} = require 'atom'
h = require './helper-fns'
DiffView = require './diff-view'
{Diff2Html} = require 'diff2html'
{ScrollView} = require 'atom-space-pen-views'
class Scroll extends ScrollView
@content: ->
@div()
initialize: (txt) ->
super
@text(txt)
module.exports =
config:
den... | true | {CompositeDisposable} = require 'atom'
h = require './helper-fns'
DiffView = require './diff-view'
{Diff2Html} = require 'diff2html'
{ScrollView} = require 'atom-space-pen-views'
class Scroll extends ScrollView
@content: ->
@div()
initialize: (txt) ->
super
@text(txt)
module.exports =
config:
den... |
[
{
"context": "_getConnection: (callback) ->\n {hostname, port, username, password, keyfile, useAgent, passphrase, readyTi",
"end": 3244,
"score": 0.9710964560508728,
"start": 3236,
"tag": "USERNAME",
"value": "username"
},
{
"context": " host: hostname\n port: port\n u... | lib/transports/ScpTransport.coffee | octoshrimpy/remote-sync-test | 0 | SSHConnection = null
mkdirp = null
fs = null
path = require "path"
module.exports =
class ScpTransport
constructor: (@logger, @settings, @projectPath) ->
dispose: ->
if @connection
@connection.end()
@connection = null
delete: (localFilePath, callback) ->
targetFilePath = path.join(@settings... | 143465 | SSHConnection = null
mkdirp = null
fs = null
path = require "path"
module.exports =
class ScpTransport
constructor: (@logger, @settings, @projectPath) ->
dispose: ->
if @connection
@connection.end()
@connection = null
delete: (localFilePath, callback) ->
targetFilePath = path.join(@settings... | true | SSHConnection = null
mkdirp = null
fs = null
path = require "path"
module.exports =
class ScpTransport
constructor: (@logger, @settings, @projectPath) ->
dispose: ->
if @connection
@connection.end()
@connection = null
delete: (localFilePath, callback) ->
targetFilePath = path.join(@settings... |
[
{
"context": "kLayoutAsFixed()\n\n # Simple Diff function\n # (C) Paul Butler 2008 <http://www.paulbutler.org/>\n # https://git",
"end": 10335,
"score": 0.9996294975280762,
"start": 10324,
"tag": "NAME",
"value": "Paul Butler"
},
{
"context": "ttp://www.paulbutler.org/>\n # https... | src/patch-programming/DiffingPatchNodeWdgt.coffee | intensifier/Fizzygum | 110 | # this file is excluded from the fizzygum homepage build
class DiffingPatchNodeWdgt extends Widget
@augmentWith ControllerMixin
tempPromptEntryField: nil
defaultContents: nil
textMorph: nil
output: nil
input1: nil
input2: nil
# we need to keep track of which inputs are
# connected because we wai... | 76486 | # this file is excluded from the fizzygum homepage build
class DiffingPatchNodeWdgt extends Widget
@augmentWith ControllerMixin
tempPromptEntryField: nil
defaultContents: nil
textMorph: nil
output: nil
input1: nil
input2: nil
# we need to keep track of which inputs are
# connected because we wai... | true | # this file is excluded from the fizzygum homepage build
class DiffingPatchNodeWdgt extends Widget
@augmentWith ControllerMixin
tempPromptEntryField: nil
defaultContents: nil
textMorph: nil
output: nil
input1: nil
input2: nil
# we need to keep track of which inputs are
# connected because we wai... |
[
{
"context": "efer msgs\n asp = new util.ASP {}\n userid = \"anon@keybase.io\"\n for msg in msgs\n await KeyManager.impor",
"end": 1268,
"score": 0.9998974800109863,
"start": 1253,
"tag": "EMAIL",
"value": "anon@keybase.io"
}
] | dev/clearsign.iced | samkenxstream/kbpgp | 464 | #!/usr/bin/env iced
fs = require 'fs'
{make_esc} = require 'iced-error'
armor = require '../lib/openpgp/armor'
util = require '../lib/util'
{do_message,Message} = require '../lib/openpgp/processor'
{Literal} = require '../lib/openpgp/packet/literal'
{PgpKeyRing} = require '../lib/keyring'
{KeyManager} = require '../li... | 205261 | #!/usr/bin/env iced
fs = require 'fs'
{make_esc} = require 'iced-error'
armor = require '../lib/openpgp/armor'
util = require '../lib/util'
{do_message,Message} = require '../lib/openpgp/processor'
{Literal} = require '../lib/openpgp/packet/literal'
{PgpKeyRing} = require '../lib/keyring'
{KeyManager} = require '../li... | true | #!/usr/bin/env iced
fs = require 'fs'
{make_esc} = require 'iced-error'
armor = require '../lib/openpgp/armor'
util = require '../lib/util'
{do_message,Message} = require '../lib/openpgp/processor'
{Literal} = require '../lib/openpgp/packet/literal'
{PgpKeyRing} = require '../lib/keyring'
{KeyManager} = require '../li... |
[
{
"context": "at you're doing\n#\n# Notes\n# None\n#\n# Author:\n# Morgan Wigmanich <okize123@gmail.com> (https://github.com/okize)\n\n",
"end": 241,
"score": 0.9998681545257568,
"start": 225,
"tag": "NAME",
"value": "Morgan Wigmanich"
},
{
"context": " Notes\n# None\n#\n# Auth... | src/ihavenoidea.coffee | okize/hubot-has-no-idea | 2 | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# Morgan Wigmanich <okize123@gmail.com> (https://github.com/okize)
module.exports = (robot) ->
... | 140187 | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# <NAME> <<EMAIL>> (https://github.com/okize)
module.exports = (robot) ->
robot.hear regex, (m... | true | # Description:
# Hubot script to display "I have no idea what I'm doing" images
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# you have no idea what you're doing
#
# Notes
# None
#
# Author:
# PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> (https://github.com/okize)
module.exports = (rob... |
[
{
"context": "###\n# scripts/directives/style.coffee\n#\n# © 2014 Dan Nichols\n# See LICENSE for more details\n###\n'use strict'\n\n",
"end": 60,
"score": 0.9995200037956238,
"start": 49,
"tag": "NAME",
"value": "Dan Nichols"
}
] | app/scripts/directives/tabs.coffee | dlnichols/h_media | 0 | ###
# scripts/directives/style.coffee
#
# © 2014 Dan Nichols
# See LICENSE for more details
###
'use strict'
angular.module 'hMediaApp'
.controller 'tabsetController', ($scope, $state) ->
ctrl = @
tabs = ctrl.tabs = $scope.tabs = []
ctrl.state = $state
ctrl.addTab = (tab) ->
tabs.push tab
return
ct... | 217123 | ###
# scripts/directives/style.coffee
#
# © 2014 <NAME>
# See LICENSE for more details
###
'use strict'
angular.module 'hMediaApp'
.controller 'tabsetController', ($scope, $state) ->
ctrl = @
tabs = ctrl.tabs = $scope.tabs = []
ctrl.state = $state
ctrl.addTab = (tab) ->
tabs.push tab
return
ctrl.re... | true | ###
# scripts/directives/style.coffee
#
# © 2014 PI:NAME:<NAME>END_PI
# See LICENSE for more details
###
'use strict'
angular.module 'hMediaApp'
.controller 'tabsetController', ($scope, $state) ->
ctrl = @
tabs = ctrl.tabs = $scope.tabs = []
ctrl.state = $state
ctrl.addTab = (tab) ->
tabs.push tab
ret... |
[
{
"context": "e\", subtitle: \"\" },\n 1: { id: 2, title: \"Robinson Crusoe\" }\n })\n $httpBackend.flush()\n\n c",
"end": 1166,
"score": 0.9998701214790344,
"start": 1151,
"tag": "NAME",
"value": "Robinson Crusoe"
},
{
"context": "ual(2)\n expect(colle... | test/transform-response-spec.coffee | panta/angular-rest-orm | 21 | describe "response transform:", ->
$rootScope = undefined
$httpBackend = undefined
$q = undefined
Resource = undefined
Book = undefined
beforeEach module("restOrm")
beforeEach inject(($injector) ->
$rootScope = $injector.get("$rootScope")
$httpBackend = $injector.get("$httpBackend")
$q = $in... | 130649 | describe "response transform:", ->
$rootScope = undefined
$httpBackend = undefined
$q = undefined
Resource = undefined
Book = undefined
beforeEach module("restOrm")
beforeEach inject(($injector) ->
$rootScope = $injector.get("$rootScope")
$httpBackend = $injector.get("$httpBackend")
$q = $in... | true | describe "response transform:", ->
$rootScope = undefined
$httpBackend = undefined
$q = undefined
Resource = undefined
Book = undefined
beforeEach module("restOrm")
beforeEach inject(($injector) ->
$rootScope = $injector.get("$rootScope")
$httpBackend = $injector.get("$httpBackend")
$q = $in... |
[
{
"context": ": 'localhost'\n #port: 8777\n #username: 'admin' # optional\n #password: 'secret' # option",
"end": 672,
"score": 0.9984956979751587,
"start": 667,
"tag": "USERNAME",
"value": "admin"
},
{
"context": "#username: 'admin' # optional\n #password: '... | otto.db.coffee | ferguson/otto | 16 | _ = require 'underscore'
fs = require 'fs'
net = require 'net'
mongodb = require 'mongodb'
child_process = require 'child_process'
otto = global.otto
module.exports = global.otto.db = do -> # note the 'do' causes the function to be called
db = {}
mongo = null
c = {}
#collections_inuse = ['objects', 'conne... | 20464 | _ = require 'underscore'
fs = require 'fs'
net = require 'net'
mongodb = require 'mongodb'
child_process = require 'child_process'
otto = global.otto
module.exports = global.otto.db = do -> # note the 'do' causes the function to be called
db = {}
mongo = null
c = {}
#collections_inuse = ['objects', 'conne... | true | _ = require 'underscore'
fs = require 'fs'
net = require 'net'
mongodb = require 'mongodb'
child_process = require 'child_process'
otto = global.otto
module.exports = global.otto.db = do -> # note the 'do' causes the function to be called
db = {}
mongo = null
c = {}
#collections_inuse = ['objects', 'conne... |
[
{
"context": "est for Meaning -> qfm\n [S]tories\n [T]odd Barranca\n [S]ong Lyrics\n [S]poopin Right N",
"end": 2035,
"score": 0.9685910940170288,
"start": 2023,
"tag": "NAME",
"value": "odd Barranca"
}
] | issues/2017-10.coffee | STRd6/zine | 12 | Model = require "model"
AchievementStatus = require "../apps/achievement-status"
MyBriefcase = require "../apps/my-briefcase"
StoryReader = require "../apps/story-reader"
Social = require "../social/social"
fetchContent = (targetFile, sourcePath=targetFile) ->
targetPath = "/issue-10/#{targetFile}"
system.read... | 99591 | Model = require "model"
AchievementStatus = require "../apps/achievement-status"
MyBriefcase = require "../apps/my-briefcase"
StoryReader = require "../apps/story-reader"
Social = require "../social/social"
fetchContent = (targetFile, sourcePath=targetFile) ->
targetPath = "/issue-10/#{targetFile}"
system.read... | true | Model = require "model"
AchievementStatus = require "../apps/achievement-status"
MyBriefcase = require "../apps/my-briefcase"
StoryReader = require "../apps/story-reader"
Social = require "../social/social"
fetchContent = (targetFile, sourcePath=targetFile) ->
targetPath = "/issue-10/#{targetFile}"
system.read... |
[
{
"context": "dBeUUID = Uuid.v4()\n\tpers = new Person \n\t\tgiven: \"Slog\"\n\t\t_id: shouldBeUUID\n\t# console.log pers.uri()\n\tp",
"end": 4466,
"score": 0.9971185922622681,
"start": 4462,
"tag": "NAME",
"value": "Slog"
},
{
"context": " = schemo.models\n\tauthor = new Person\n\t\... | test/test.coffee | kba/mongoose-jsonld | 0 | Fs = require 'fs'
Async = require 'async'
test = require 'tape'
Mongoose = require 'mongoose'
Schemo = require '../src'
Uuid = require 'node-uuid'
Utils = require '../src/utils'
{inspect} = require 'util'
ignore = ->
schemo = null
_connect = ->
schemo = new Schemo(
mongoose: Mongoose.createC... | 2296 | Fs = require 'fs'
Async = require 'async'
test = require 'tape'
Mongoose = require 'mongoose'
Schemo = require '../src'
Uuid = require 'node-uuid'
Utils = require '../src/utils'
{inspect} = require 'util'
ignore = ->
schemo = null
_connect = ->
schemo = new Schemo(
mongoose: Mongoose.createC... | true | Fs = require 'fs'
Async = require 'async'
test = require 'tape'
Mongoose = require 'mongoose'
Schemo = require '../src'
Uuid = require 'node-uuid'
Utils = require '../src/utils'
{inspect} = require 'util'
ignore = ->
schemo = null
_connect = ->
schemo = new Schemo(
mongoose: Mongoose.createC... |
[
{
"context": "oGLib\n# Module | Stat methods\n# Author | Sherif Emabrak\n# Description | proportion for set of elements\n# ",
"end": 163,
"score": 0.9998790621757507,
"start": 149,
"tag": "NAME",
"value": "Sherif Emabrak"
}
] | src/lib/statistics/summary/proportion.coffee | Sherif-Embarak/gp-test | 0 | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat methods
# Author | Sherif Emabrak
# Description | proportion for set of elements
# ------------------------------------------------------------------------------
proportion = () -> | 183035 | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat methods
# Author | <NAME>
# Description | proportion for set of elements
# ------------------------------------------------------------------------------
proportion = () -> | true | # ------------------------------------------------------------------------------
# Project | GoGLib
# Module | Stat methods
# Author | PI:NAME:<NAME>END_PI
# Description | proportion for set of elements
# ------------------------------------------------------------------------------
proportion = () -> |
[
{
"context": "user'\nAssert = require 'assert'\n\nuser = new User \"Fake User\", {name: 'fake', type: \"groupchat\"}\nAssert.equal ",
"end": 82,
"score": 0.6883094310760498,
"start": 73,
"tag": "USERNAME",
"value": "Fake User"
},
{
"context": "re 'assert'\n\nuser = new User \"Fake Us... | test/user_test.coffee | realmacsoftware/hubot | 1 | User = require '../src/user'
Assert = require 'assert'
user = new User "Fake User", {name: 'fake', type: "groupchat"}
Assert.equal "Fake User", user.id
Assert.equal "groupchat", user.type
Assert.equal "fake", user.name
user = new User "Fake User", {room: "chat@room.jabber", type: "groupchat"}
Assert.equal "Fake User"... | 12872 | User = require '../src/user'
Assert = require 'assert'
user = new User "Fake User", {name: 'fake', type: "groupchat"}
Assert.equal "Fake User", user.id
Assert.equal "groupchat", user.type
Assert.equal "fake", user.name
user = new User "Fake User", {room: "<EMAIL>", type: "groupchat"}
Assert.equal "Fake User", user.id... | true | User = require '../src/user'
Assert = require 'assert'
user = new User "Fake User", {name: 'fake', type: "groupchat"}
Assert.equal "Fake User", user.id
Assert.equal "groupchat", user.type
Assert.equal "fake", user.name
user = new User "Fake User", {room: "PI:EMAIL:<EMAIL>END_PI", type: "groupchat"}
Assert.equal "Fake... |
[
{
"context": "ain_text_email\n recipient:\n address: 'jane@codecombat.com'\n sender:\n address: config.mail.usern",
"end": 479,
"score": 0.9998922944068909,
"start": 460,
"tag": "EMAIL",
"value": "jane@codecombat.com"
},
{
"context": "nt:\n address: req... | server/middleware/contact.coffee | Anagsom/codecombat | 2 | sendwithus = require '../sendwithus'
utils = require '../lib/utils'
errors = require '../commons/errors'
wrap = require 'co-express'
database = require '../commons/database'
parse = require '../commons/parse'
config = require '../../server_config'
module.exports =
sendAPCSPAccessRequest: wrap (req, res, next) ->
... | 159183 | sendwithus = require '../sendwithus'
utils = require '../lib/utils'
errors = require '../commons/errors'
wrap = require 'co-express'
database = require '../commons/database'
parse = require '../commons/parse'
config = require '../../server_config'
module.exports =
sendAPCSPAccessRequest: wrap (req, res, next) ->
... | true | sendwithus = require '../sendwithus'
utils = require '../lib/utils'
errors = require '../commons/errors'
wrap = require 'co-express'
database = require '../commons/database'
parse = require '../commons/parse'
config = require '../../server_config'
module.exports =
sendAPCSPAccessRequest: wrap (req, res, next) ->
... |
[
{
"context": "$scope.submit = ->\n username = $scope.form.username\n email = $scope.form.email\n passwor",
"end": 5463,
"score": 0.9381839036941528,
"start": 5455,
"tag": "USERNAME",
"value": "username"
},
{
"context": " email = $scope.form.email\n pa... | results/front/app/coffee/controllers/main.coffee | gnufede/results | 0 | MainController = ($scope, $rootScope, resource, $timeout, $routeParams, $location) ->
onUserSuccess = (result) ->
$scope.user = result
if $routeParams.year
$scope.getGoalsAndWins()
onUserError = (result)->
$location.url("/login")
resource.getUser("me").then(onUserSucces... | 109856 | MainController = ($scope, $rootScope, resource, $timeout, $routeParams, $location) ->
onUserSuccess = (result) ->
$scope.user = result
if $routeParams.year
$scope.getGoalsAndWins()
onUserError = (result)->
$location.url("/login")
resource.getUser("me").then(onUserSucces... | true | MainController = ($scope, $rootScope, resource, $timeout, $routeParams, $location) ->
onUserSuccess = (result) ->
$scope.user = result
if $routeParams.year
$scope.getGoalsAndWins()
onUserError = (result)->
$location.url("/login")
resource.getUser("me").then(onUserSucces... |
[
{
"context": "eathermap.org/data/2.5/weather'\n# key = '317b5b5a2c782dd1b7aab1c82867e90c'\n lat = position.coords.latitude\n ",
"end": 2764,
"score": 0.9997537732124329,
"start": 2732,
"tag": "KEY",
"value": "317b5b5a2c782dd1b7aab1c82867e90c"
}
] | api/app/assets/javascripts/diaries.coffee | kyokoshima/word_diary | 0 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = ->
Barba.Pjax.start()
Barba.Pjax.init()
Barba.Prefetch.init()
Barba.Dispatcher.on 'linkClick... | 147115 | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = ->
Barba.Pjax.start()
Barba.Pjax.init()
Barba.Prefetch.init()
Barba.Dispatcher.on 'linkClick... | true | # Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
ready = ->
Barba.Pjax.start()
Barba.Pjax.init()
Barba.Prefetch.init()
Barba.Dispatcher.on 'linkClick... |
[
{
"context": "###\n * tablodbò\n * https://github.com/leny/tablodbo\n *\n * JS/COFFEE Document - /cli.js - cli",
"end": 42,
"score": 0.9995286464691162,
"start": 38,
"tag": "USERNAME",
"value": "leny"
},
{
"context": "ommander setup and runner\n *\n * Copyright (c) 2014 Leny\n * Lice... | src/cli.coffee | leny/tablodbo | 0 | ###
* tablodbò
* https://github.com/leny/tablodbo
*
* JS/COFFEE Document - /cli.js - cli entry point, commander setup and runner
*
* Copyright (c) 2014 Leny
* Licensed under the MIT license.
###
"use strict"
pkg = require "../package.json"
tablodbo = require "./tablodbo.js"
exec = require( "child_process" ).e... | 50352 | ###
* tablodbò
* https://github.com/leny/tablodbo
*
* JS/COFFEE Document - /cli.js - cli entry point, commander setup and runner
*
* Copyright (c) 2014 <NAME>
* Licensed under the MIT license.
###
"use strict"
pkg = require "../package.json"
tablodbo = require "./tablodbo.js"
exec = require( "child_process" )... | true | ###
* tablodbò
* https://github.com/leny/tablodbo
*
* JS/COFFEE Document - /cli.js - cli entry point, commander setup and runner
*
* Copyright (c) 2014 PI:NAME:<NAME>END_PI
* Licensed under the MIT license.
###
"use strict"
pkg = require "../package.json"
tablodbo = require "./tablodbo.js"
exec = require( "ch... |
[
{
"context": "GS IN THE SOFTWARE.\n\n# Taken from hubot at commit 71d1c686d9ffdfad54751080c699979fa17190a1 and modified to fit current use.\n\nclass ChatUser\n",
"end": 1166,
"score": 0.975783109664917,
"start": 1126,
"tag": "PASSWORD",
"value": "71d1c686d9ffdfad54751080c699979fa17190a1"
}... | src/user.coffee | kumpelblase2/modlab-chat | 0 | # Copyright (c) 2013 GitHub Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# dis... | 206072 | # Copyright (c) 2013 GitHub Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# dis... | true | # Copyright (c) 2013 GitHub Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# dis... |
[
{
"context": "ipt utilities which you may never use.\n @author Draucpid\n @date Dec. 11st, 2014\n###\n((root, fact",
"end": 69,
"score": 0.5066878795623779,
"start": 68,
"tag": "USERNAME",
"value": "D"
},
{
"context": "t utilities which you may never use.\n @author Draucpid\... | lessjs.coffee | dracupid/lessjs | 0 | ###
A javascript utilities which you may never use.
@author Draucpid
@date Dec. 11st, 2014
###
((root, factory)->
if typeof module is "object" && typeof module.exports is "object"
module.exports = factory root
else if typeof define is 'function' and define.amd
define 'lessjs', [], ->... | 182421 | ###
A javascript utilities which you may never use.
@author D<NAME>
@date Dec. 11st, 2014
###
((root, factory)->
if typeof module is "object" && typeof module.exports is "object"
module.exports = factory root
else if typeof define is 'function' and define.amd
define 'lessjs', [], -> ... | true | ###
A javascript utilities which you may never use.
@author DPI:NAME:<NAME>END_PI
@date Dec. 11st, 2014
###
((root, factory)->
if typeof module is "object" && typeof module.exports is "object"
module.exports = factory root
else if typeof define is 'function' and define.amd
define 'le... |
[
{
"context": "=======================================\n # 1 | [Alice 1, Bob 0] | Alice | index 0, [a, b, c]\n # 2 | [",
"end": 2091,
"score": 0.9904425740242004,
"start": 2086,
"tag": "NAME",
"value": "Alice"
},
{
"context": "===============================\n # 1 | [Alice 1, Bo... | crdt.coffee | jerico-dev/meteor-versioning | 7 | # A commutative replicative data type.
class Meteor._CrdtDocument
constructor: (@collProps = null, serializedCrdt = null) ->
if serializedCrdt?
{
_id: @id
_crdtId: @crdtId
_clock: @clock
_deleted: @deleted
} = serializedCrdt
@properties = _.omit serializedCrdt,
... | 223830 | # A commutative replicative data type.
class Meteor._CrdtDocument
constructor: (@collProps = null, serializedCrdt = null) ->
if serializedCrdt?
{
_id: @id
_crdtId: @crdtId
_clock: @clock
_deleted: @deleted
} = serializedCrdt
@properties = _.omit serializedCrdt,
... | true | # A commutative replicative data type.
class Meteor._CrdtDocument
constructor: (@collProps = null, serializedCrdt = null) ->
if serializedCrdt?
{
_id: @id
_crdtId: @crdtId
_clock: @clock
_deleted: @deleted
} = serializedCrdt
@properties = _.omit serializedCrdt,
... |
[
{
"context": "e: Backbone.Many\n key: 'managers'\n collectionType: -> factory.invoke 'users:e",
"end": 957,
"score": 0.9746805429458618,
"start": 949,
"tag": "KEY",
"value": "managers"
}
] | src/app/modules/tickets/entities/categories/Category.coffee | josepramon/tfm-adminApp | 0 | # Dependencies
# -------------------------
# Base class (extends Backbone.Model)
Model = require 'msq-appbase/lib/appBaseComponents/entities/Model'
# Libs/generic stuff:
i18n = require 'i18next-client'
factory = require 'msq-appbase/lib/utilities/factory'
Backbone = require 'backbone'
###
Ticket category mo... | 45977 | # Dependencies
# -------------------------
# Base class (extends Backbone.Model)
Model = require 'msq-appbase/lib/appBaseComponents/entities/Model'
# Libs/generic stuff:
i18n = require 'i18next-client'
factory = require 'msq-appbase/lib/utilities/factory'
Backbone = require 'backbone'
###
Ticket category mo... | true | # Dependencies
# -------------------------
# Base class (extends Backbone.Model)
Model = require 'msq-appbase/lib/appBaseComponents/entities/Model'
# Libs/generic stuff:
i18n = require 'i18next-client'
factory = require 'msq-appbase/lib/utilities/factory'
Backbone = require 'backbone'
###
Ticket category mo... |
[
{
"context": "sion\r\n\r\nuid = (len = 16, prefix = \"\", keyspace = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\") ->\r\n prefix += keyspace.charAt(Math.floor(Math",
"end": 248,
"score": 0.9995819926261902,
"start": 186,
"tag": "KEY",
"value": "ABCDEFGHIJKLMNOPQRSTUVWX... | servers/www/assets/js/services/panes/streamer.coffee | sitedata/plunker | 340 | #= require ../../services/panels
#= require ../../services/scratch
#= require ../../services/url
#= require ../../directives/discussion
uid = (len = 16, prefix = "", keyspace = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") ->
prefix += keyspace.charAt(Math.floor(Math.random() * keyspace.l... | 154123 | #= require ../../services/panels
#= require ../../services/scratch
#= require ../../services/url
#= require ../../directives/discussion
uid = (len = 16, prefix = "", keyspace = "<KEY>") ->
prefix += keyspace.charAt(Math.floor(Math.random() * keyspace.length)) while len-- > 0
prefix
synchro = new clas... | true | #= require ../../services/panels
#= require ../../services/scratch
#= require ../../services/url
#= require ../../directives/discussion
uid = (len = 16, prefix = "", keyspace = "PI:KEY:<KEY>END_PI") ->
prefix += keyspace.charAt(Math.floor(Math.random() * keyspace.length)) while len-- > 0
prefix
synch... |
[
{
"context": "ult()\n navigator.id.request {\n siteName: 'Asciinema',\n siteLogo: 'data:image/png;base64,iV",
"end": 128,
"score": 0.841982364654541,
"start": 125,
"tag": "NAME",
"value": "Asc"
}
] | app/assets/javascripts/persona.js.coffee | zouguangxian/asciinema.org | 1 | $ ->
$('#persona-button, #log-in').click (event) ->
event.preventDefault()
navigator.id.request {
siteName: 'Asciinema',
siteLogo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEUAAAD///+l2Z/dAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHGBMiFVqqanYAAAAZ... | 69342 | $ ->
$('#persona-button, #log-in').click (event) ->
event.preventDefault()
navigator.id.request {
siteName: '<NAME>iinema',
siteLogo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEUAAAD///+l2Z/dAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wHGBMiFVqqanYAA... | true | $ ->
$('#persona-button, #log-in').click (event) ->
event.preventDefault()
navigator.id.request {
siteName: 'PI:NAME:<NAME>END_PIiinema',
siteLogo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAABlBMVEUAAAD///+l2Z/dAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9w... |
[
{
"context": " validate that a value matches a regex\n # @author Daniel Bartholomae\n class RegexValidatorRule extends ValidatorRule\n",
"end": 366,
"score": 0.9998599886894226,
"start": 348,
"tag": "NAME",
"value": "Daniel Bartholomae"
}
] | src/rules/Regex.coffee | dbartholomae/node-validation-codes | 0 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... | 54291 | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... | true | ((modules, factory) ->
# Use define if amd compatible define function is defined
if typeof define is 'function' && define.amd
define modules, factory
# Use node require if not
else
module.exports = factory (require m for m in modules)...
)( ['./Rule'], (ValidatorRule) ->
# A rule to validate that a value ... |
[
{
"context": "return model =\n name: 'Killer-Cube',\n level: 7,\n model: 1\n size: 2,\n zoom: 1,\n ",
"end": 35,
"score": 0.9991844296455383,
"start": 24,
"tag": "NAME",
"value": "Killer-Cube"
}
] | utilities/starblast_bed_wars/broken/starblast_killer_cube.coffee | JavRedstone/Starblast.io-Modding | 5 | return model =
name: 'Killer-Cube',
level: 7,
model: 1
size: 2,
zoom: 1,
specs:
shield:
capacity: [400,400]
reload: [15, 15]
generator:
capacity: [200, 200]
reload: [50, 50]
ship:
mass: 100
speed: [150, 150]
rotation: [100, 100]
acceleration: [150,... | 183429 | return model =
name: '<NAME>',
level: 7,
model: 1
size: 2,
zoom: 1,
specs:
shield:
capacity: [400,400]
reload: [15, 15]
generator:
capacity: [200, 200]
reload: [50, 50]
ship:
mass: 100
speed: [150, 150]
rotation: [100, 100]
acceleration: [150, 150]... | true | return model =
name: 'PI:NAME:<NAME>END_PI',
level: 7,
model: 1
size: 2,
zoom: 1,
specs:
shield:
capacity: [400,400]
reload: [15, 15]
generator:
capacity: [200, 200]
reload: [50, 50]
ship:
mass: 100
speed: [150, 150]
rotation: [100, 100]
accelerati... |
[
{
"context": "->\n User.login\n id: req.body.id,\n password: req.body.password\n (err, user) ->\n if user\n req.sess",
"end": 558,
"score": 0.9985567331314087,
"start": 541,
"tag": "PASSWORD",
"value": "req.body.password"
}
] | userApp.coffee | madnite1/devnote | 11 | User = require('./lib/users').User
util = require('./lib/util')
exports.getUsers = (req, res) ->
switch req.query.action
when 'login' then login req, res
else users req, res
exports.login = (req, res) ->
res.render 'user/login',
title: 'login'
return_to: req.header('Referrer')
# get userlist
user... | 173480 | User = require('./lib/users').User
util = require('./lib/util')
exports.getUsers = (req, res) ->
switch req.query.action
when 'login' then login req, res
else users req, res
exports.login = (req, res) ->
res.render 'user/login',
title: 'login'
return_to: req.header('Referrer')
# get userlist
user... | true | User = require('./lib/users').User
util = require('./lib/util')
exports.getUsers = (req, res) ->
switch req.query.action
when 'login' then login req, res
else users req, res
exports.login = (req, res) ->
res.render 'user/login',
title: 'login'
return_to: req.header('Referrer')
# get userlist
user... |
[
{
"context": " return\n else\n id_key = \"#{domain_id}_#{record}_#{addr}_#{type}\"\n dns_cache.records[id_key] = {}\n ",
"end": 9764,
"score": 0.9989577531814575,
"start": 9724,
"tag": "KEY",
"value": "\"#{domain_id}_#{record}_#{addr}_#{type}\""
}... | src/scripts/dnsmadeeasy.coffee | lusis/hubot-dnsmadeeasy | 1 | # Description
# Creates a new DNS entry with DNS Made Easy
#
# Dependencies:
# "dme2": "0.0.2"
# "underscore": "^1.6.0"
# "clark": "0.0.6"
#
# Configuration:
# HUBOT_DME2_API_KEY
# HUBOT_DME2_API_SECRET
#
# Commands:
# hubot dns me domains - returns a list of domains in DME account
# hubot dns me stats ... | 4718 | # Description
# Creates a new DNS entry with DNS Made Easy
#
# Dependencies:
# "dme2": "0.0.2"
# "underscore": "^1.6.0"
# "clark": "0.0.6"
#
# Configuration:
# HUBOT_DME2_API_KEY
# HUBOT_DME2_API_SECRET
#
# Commands:
# hubot dns me domains - returns a list of domains in DME account
# hubot dns me stats ... | true | # Description
# Creates a new DNS entry with DNS Made Easy
#
# Dependencies:
# "dme2": "0.0.2"
# "underscore": "^1.6.0"
# "clark": "0.0.6"
#
# Configuration:
# HUBOT_DME2_API_KEY
# HUBOT_DME2_API_SECRET
#
# Commands:
# hubot dns me domains - returns a list of domains in DME account
# hubot dns me stats ... |
[
{
"context": "# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999138116836548,
"start": 29,
"tag": "EMAIL",
"value": "contact@ppy.sh"
}
] | resources/assets/coffee/_classes/gallery.coffee | osu-katakuna/osu-katakuna-web | 5 | # Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @Gallery
constructor: ->
@container = document.getElementsByClassName('pswp')
$(document).on 'click', '.js-gallery', @initiateOp... | 24891 | # Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @Gallery
constructor: ->
@container = document.getElementsByClassName('pswp')
$(document).on 'click', '.js-gallery', @initiateOpen
... | true | # Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @Gallery
constructor: ->
@container = document.getElementsByClassName('pswp')
$(document).on 'click', '.js-gallery', @in... |
[
{
"context": "et: {}\n user: appConfig.database.user\n pass: appConfig.database.pass\n\n options.server.socketOptions = options.replset",
"end": 2038,
"score": 0.787752091884613,
"start": 2015,
"tag": "PASSWORD",
"value": "appConfig.database.pass"
}
] | src/server/database/connection.coffee | ingshtrom/mystic-noggin | 0 | ###
* The bootstrapping for connecting to the MongoDB database.
* @module mystic-noggin
* @submodule server/database/connection
* @requires {module} bluebird
* @requires {module} mongoose
* @requires {module} async
* @requires {module} fs
* @requires {module} path
* @requires {submodule} server/app-config
* @... | 115655 | ###
* The bootstrapping for connecting to the MongoDB database.
* @module mystic-noggin
* @submodule server/database/connection
* @requires {module} bluebird
* @requires {module} mongoose
* @requires {module} async
* @requires {module} fs
* @requires {module} path
* @requires {submodule} server/app-config
* @... | true | ###
* The bootstrapping for connecting to the MongoDB database.
* @module mystic-noggin
* @submodule server/database/connection
* @requires {module} bluebird
* @requires {module} mongoose
* @requires {module} async
* @requires {module} fs
* @requires {module} path
* @requires {submodule} server/app-config
* @... |
[
{
"context": "# Copyright (c) 2008-2014 Michael Dvorkin and contributors.\n#\n# Fat Free CRM is freely dist",
"end": 41,
"score": 0.9998666644096375,
"start": 26,
"tag": "NAME",
"value": "Michael Dvorkin"
}
] | app/assets/javascripts/pagination.js.coffee | roadt/fat_free_crm | 1,290 | # Copyright (c) 2008-2014 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$(document).on 'aja... | 181329 | # Copyright (c) 2008-2014 <NAME> and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$(document).on 'ajax:send', ... | true | # Copyright (c) 2008-2014 PI:NAME:<NAME>END_PI and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
(($) ->
$(document).on... |
[
{
"context": " I could not get it to work with $ajax :(\n\nkey = 'faa63307397f9a8437455fc4cacc3cd2'\n\nprevSch = []\n\npersist = ->\n elStorage.empty()\n",
"end": 139,
"score": 0.9997732639312744,
"start": 107,
"tag": "KEY",
"value": "faa63307397f9a8437455fc4cacc3cd2"
}
] | script.coffee | ratalla816/weather-dashborad | 1 |
# I tried to write this in coffeescript for funzies, but I could not get it to work with $ajax :(
key = 'faa63307397f9a8437455fc4cacc3cd2'
prevSch = []
persist = ->
elStorage.empty()
i = 0
while i < prevSch.length
elHistory = $('<row>')
elButton = $('<button>')
.text(''.concat(prevSch[i]))
el... | 13677 |
# I tried to write this in coffeescript for funzies, but I could not get it to work with $ajax :(
key = '<KEY>'
prevSch = []
persist = ->
elStorage.empty()
i = 0
while i < prevSch.length
elHistory = $('<row>')
elButton = $('<button>')
.text(''.concat(prevSch[i]))
elHistory.addClass 'row prevT... | true |
# I tried to write this in coffeescript for funzies, but I could not get it to work with $ajax :(
key = 'PI:KEY:<KEY>END_PI'
prevSch = []
persist = ->
elStorage.empty()
i = 0
while i < prevSch.length
elHistory = $('<row>')
elButton = $('<button>')
.text(''.concat(prevSch[i]))
elHistory.addCla... |
[
{
"context": "'\n 'body': \"issues_url '${1:https://github.com/johndoe/mycookbook/issues}'\"\n 'license metadata':\n 'p",
"end": 537,
"score": 0.9961466193199158,
"start": 530,
"tag": "USERNAME",
"value": "johndoe"
},
{
"context": "ntainer_email'\n 'body': \"maintainer_emai... | snippets/metadata.cson | pschaumburg/language-chef | 3 | '.source.chef.metadata':
'chef_version metadata':
'prefix': 'chef_version'
'body': "chef_version '${1:>=} ${2:13}'"
'depends metadata':
'prefix': 'depends'
'body': "depends '${1:apache2}', '${2:<} ${3:1.0}'"
'description metadata':
'prefix': 'description'
'body': "description '${1:A fancy ... | 9727 | '.source.chef.metadata':
'chef_version metadata':
'prefix': 'chef_version'
'body': "chef_version '${1:>=} ${2:13}'"
'depends metadata':
'prefix': 'depends'
'body': "depends '${1:apache2}', '${2:<} ${3:1.0}'"
'description metadata':
'prefix': 'description'
'body': "description '${1:A fancy ... | true | '.source.chef.metadata':
'chef_version metadata':
'prefix': 'chef_version'
'body': "chef_version '${1:>=} ${2:13}'"
'depends metadata':
'prefix': 'depends'
'body': "depends '${1:apache2}', '${2:<} ${3:1.0}'"
'description metadata':
'prefix': 'description'
'body': "description '${1:A fancy ... |
[
{
"context": " ->\n expect(commit.author.login).to.equal('caboteria')\n done()\n\n it \"returns a detailed git ",
"end": 1072,
"score": 0.9969938397407532,
"start": 1063,
"tag": "USERNAME",
"value": "caboteria"
},
{
"context": ") ->\n expect(commit.author.name... | test/ruby-specs/commits.spec.coffee | BafS/octokat.js | 59 | define = window?.define or (cb) -> cb ((dep) -> require(dep.replace('cs!', '')))
define (require) ->
{expect} = require 'chai'
{client, LONG_TIMEOUT, test_repo} = require 'cs!../test-config'
describe 'Commits', () ->
@timeout(LONG_TIMEOUT)
it "returns all commits", (done) ->
client.repos("sferik/... | 158129 | define = window?.define or (cb) -> cb ((dep) -> require(dep.replace('cs!', '')))
define (require) ->
{expect} = require 'chai'
{client, LONG_TIMEOUT, test_repo} = require 'cs!../test-config'
describe 'Commits', () ->
@timeout(LONG_TIMEOUT)
it "returns all commits", (done) ->
client.repos("sferik/... | true | define = window?.define or (cb) -> cb ((dep) -> require(dep.replace('cs!', '')))
define (require) ->
{expect} = require 'chai'
{client, LONG_TIMEOUT, test_repo} = require 'cs!../test-config'
describe 'Commits', () ->
@timeout(LONG_TIMEOUT)
it "returns all commits", (done) ->
client.repos("sferik/... |
[
{
"context": "n @props.projectModal.steps\n step._key ?= Math.random()\n <ProjectModalStepEditor\n k",
"end": 2344,
"score": 0.9415947794914246,
"start": 2333,
"tag": "KEY",
"value": "Math.random"
}
] | app/partials/project-modal-editor.cjsx | cientopolis/collaboratory-frontend | 1 | React = require 'react'
apiClient = require 'panoptes-client/lib/api-client'
putFile = require '../lib/put-file'
FileButton = require '../components/file-button'
{MarkdownEditor} = require 'markdownz'
debounce = require 'debounce'
ProjectModalStepEditor = React.createClass
getDefaultProps: ->
step: null
medi... | 159807 | React = require 'react'
apiClient = require 'panoptes-client/lib/api-client'
putFile = require '../lib/put-file'
FileButton = require '../components/file-button'
{MarkdownEditor} = require 'markdownz'
debounce = require 'debounce'
ProjectModalStepEditor = React.createClass
getDefaultProps: ->
step: null
medi... | true | React = require 'react'
apiClient = require 'panoptes-client/lib/api-client'
putFile = require '../lib/put-file'
FileButton = require '../components/file-button'
{MarkdownEditor} = require 'markdownz'
debounce = require 'debounce'
ProjectModalStepEditor = React.createClass
getDefaultProps: ->
step: null
medi... |
[
{
"context": "exports.glyphs['caronSlovak'] =\n\tglyphName: 'caron slovak'\n\tcharacterName: 'CARON SLOVAK'\n\tanchors:\n\t\t0:\n\t\t",
"end": 57,
"score": 0.9991868138313293,
"start": 45,
"tag": "NAME",
"value": "caron slovak"
},
{
"context": "k'] =\n\tglyphName: 'caron slovak'\n\tc... | src/glyphs/components/caronSlovak.coffee | byte-foundry/antique.ptf | 0 | exports.glyphs['caronSlovak'] =
glyphName: 'caron slovak'
characterName: 'CARON SLOVAK'
anchors:
0:
x: parentAnchors[0].x
y: parentAnchors[0].y
tags: [
'component',
'diacritic'
]
contours:
0:
skeleton: true
closed: false
nodes:
0:
x: anchors[0].x + ( 28 / 54 ) * thickness * 0.25
... | 110498 | exports.glyphs['caronSlovak'] =
glyphName: '<NAME>'
characterName: '<NAME>'
anchors:
0:
x: parentAnchors[0].x
y: parentAnchors[0].y
tags: [
'component',
'diacritic'
]
contours:
0:
skeleton: true
closed: false
nodes:
0:
x: anchors[0].x + ( 28 / 54 ) * thickness * 0.25
y: contou... | true | exports.glyphs['caronSlovak'] =
glyphName: 'PI:NAME:<NAME>END_PI'
characterName: 'PI:NAME:<NAME>END_PI'
anchors:
0:
x: parentAnchors[0].x
y: parentAnchors[0].y
tags: [
'component',
'diacritic'
]
contours:
0:
skeleton: true
closed: false
nodes:
0:
x: anchors[0].x + ( 28 / 54 ) * thi... |
[
{
"context": "ArtworkAuctionView.__set__\n CURRENT_USER: 'existy'\n AUCTION:\n artwork_id: 'peter-al",
"end": 2224,
"score": 0.9851125478744507,
"start": 2218,
"tag": "USERNAME",
"value": "existy"
},
{
"context": ".accounting = accounting\n @view.data.user... | src/desktop/apps/artwork/components/auction/test/view.coffee | kierangillen/force | 0 | accounting = require 'accounting'
benv = require 'benv'
moment = require 'moment'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
_ = require 'underscore'
describe 'auction', ->
before (done) ->
sinon.stub global, 'setTimeout'
benv.setup ->
benv.expose $: benv.require('j... | 153918 | accounting = require 'accounting'
benv = require 'benv'
moment = require 'moment'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
_ = require 'underscore'
describe 'auction', ->
before (done) ->
sinon.stub global, 'setTimeout'
benv.setup ->
benv.expose $: benv.require('j... | true | accounting = require 'accounting'
benv = require 'benv'
moment = require 'moment'
sinon = require 'sinon'
rewire = require 'rewire'
Backbone = require 'backbone'
_ = require 'underscore'
describe 'auction', ->
before (done) ->
sinon.stub global, 'setTimeout'
benv.setup ->
benv.expose $: benv.require('j... |
[
{
"context": "u a useful user story to implement\n#\n# Author:\n# KevinTraver\n#\n\nscreen_name = \"GoatUserStories\"\n_ = requ",
"end": 455,
"score": 0.8862618207931519,
"start": 450,
"tag": "NAME",
"value": "Kevin"
},
{
"context": "eful user story to implement\n#\n# Author:\n# ... | scripts/userstory.coffee | adewinter/hubot-ralph | 4 | # Description:
# gets random tweet from @GoatUserStory
# based on https://github.com/github/hubot-scripts/blob/master/src/scripts/twitter.coffee
#
# Dependencies:
# "twit", "underscore"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWI... | 179772 | # Description:
# gets random tweet from @GoatUserStory
# based on https://github.com/github/hubot-scripts/blob/master/src/scripts/twitter.coffee
#
# Dependencies:
# "twit", "underscore"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWI... | true | # Description:
# gets random tweet from @GoatUserStory
# based on https://github.com/github/hubot-scripts/blob/master/src/scripts/twitter.coffee
#
# Dependencies:
# "twit", "underscore"
#
# Configuration:
# HUBOT_TWITTER_CONSUMER_KEY
# HUBOT_TWITTER_CONSUMER_SECRET
# HUBOT_TWITTER_ACCESS_TOKEN
# HUBOT_TWI... |
[
{
"context": "# Copyright (C) 2015, Radmon.\n# Use of this source code is governed by the MIT",
"end": 28,
"score": 0.8786696195602417,
"start": 22,
"tag": "NAME",
"value": "Radmon"
},
{
"context": " 'open'\n\n $.fn.collapse = (option) ->\n key = 'tm.collapse'\n this.each ->\n... | coffee/collapse.coffee | radonlab/papery-theme | 0 | # Copyright (C) 2015, Radmon.
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.
module.exports = ($) ->
'use strict'
target = '.collapse'
class Collapse
constructor: (element) ->
@element = element
toggle: () ->
@element.toggleClass 'open'
... | 112973 | # Copyright (C) 2015, <NAME>.
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.
module.exports = ($) ->
'use strict'
target = '.collapse'
class Collapse
constructor: (element) ->
@element = element
toggle: () ->
@element.toggleClass 'open'
... | true | # Copyright (C) 2015, PI:NAME:<NAME>END_PI.
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.
module.exports = ($) ->
'use strict'
target = '.collapse'
class Collapse
constructor: (element) ->
@element = element
toggle: () ->
@element.toggleC... |
[
{
"context": "# Copyright Joyent, Inc. and other Node contributors.\n#\n# Permission",
"end": 18,
"score": 0.9990760684013367,
"start": 12,
"tag": "NAME",
"value": "Joyent"
}
] | test/pummel/test-net-timeout.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... | 225548 | # 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": " base or= randhex(3)\n opts =\n username : \"test_#{base}\"\n password : randhex(6)\n email ",
"end": 1577,
"score": 0.9918482303619385,
"start": 1572,
"tag": "USERNAME",
"value": "test_"
},
{
"context": "=\n username : \"test_#{base}\"\n pa... | test/lib/user.iced | substack/keybase-client | 1 |
#
# A file that wraps the creation and management of test
# users, potentially with features to access test twitter
# and github accounts. As such, it might need access to
# a configuration file, since we don't want to push our
# test twitter/github credentials to github.
#
{prng} = require 'crypto'
{init,config} = r... | 19420 |
#
# A file that wraps the creation and management of test
# users, potentially with features to access test twitter
# and github accounts. As such, it might need access to
# a configuration file, since we don't want to push our
# test twitter/github credentials to github.
#
{prng} = require 'crypto'
{init,config} = r... | true |
#
# A file that wraps the creation and management of test
# users, potentially with features to access test twitter
# and github accounts. As such, it might need access to
# a configuration file, since we don't want to push our
# test twitter/github credentials to github.
#
{prng} = require 'crypto'
{init,config} = r... |
[
{
"context": "###*\n * 按钮\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n{View} = req",
"end": 28,
"score": 0.9994409680366516,
"start": 22,
"tag": "USERNAME",
"value": "vfasky"
},
{
"context": "###*\n * 按钮\n * @author vfasky <vfasky@gmail.com>\n###\n'use strict'\n\n{Vie... | example/src/button.coffee | vfasky/mcore-weui | 0 | ###*
* 按钮
* @author vfasky <vfasky@gmail.com>
###
'use strict'
{View} = require 'mcoreapp'
class Button extends View
run: ->
@render require('../tpl/button.html')
module.exports = Button
module.exports.viewName = 'button'
| 18304 | ###*
* 按钮
* @author vfasky <<EMAIL>>
###
'use strict'
{View} = require 'mcoreapp'
class Button extends View
run: ->
@render require('../tpl/button.html')
module.exports = Button
module.exports.viewName = 'button'
| true | ###*
* 按钮
* @author vfasky <PI:EMAIL:<EMAIL>END_PI>
###
'use strict'
{View} = require 'mcoreapp'
class Button extends View
run: ->
@render require('../tpl/button.html')
module.exports = Button
module.exports.viewName = 'button'
|
[
{
"context": "d4383a44a6adc\"\n vout: 1\n scriptPubKey: \"76a914e867aad8bd361f57c50adc37a0c018692b5b0c9a88ac\"\n amount: 0.4296\n confirmations: 1\n ",
"end": 1252,
"score": 0.9997707009315491,
"start": 1202,
"tag": "KEY",
"value": "76a914e867aad8bd361f57c50adc37a0c018... | src/backend/coin-utils.coffee | jesstelford/payment-channels | 10 | _ = require 'underscore'
bignum = require 'bignum'
Builder = require 'bitcore/lib/TransactionBuilder'
Key = require 'bitcore/lib/Key'
networks = require "#{__dirname}/networks.js"
# TODO: Research: What's riskier; 1) Using satoshi's and worry about overflowing
# the integer type, or 2) Using BTC's and worry about Java... | 107521 | _ = require 'underscore'
bignum = require 'bignum'
Builder = require 'bitcore/lib/TransactionBuilder'
Key = require 'bitcore/lib/Key'
networks = require "#{__dirname}/networks.js"
# TODO: Research: What's riskier; 1) Using satoshi's and worry about overflowing
# the integer type, or 2) Using BTC's and worry about Java... | true | _ = require 'underscore'
bignum = require 'bignum'
Builder = require 'bitcore/lib/TransactionBuilder'
Key = require 'bitcore/lib/Key'
networks = require "#{__dirname}/networks.js"
# TODO: Research: What's riskier; 1) Using satoshi's and worry about overflowing
# the integer type, or 2) Using BTC's and worry about Java... |
[
{
"context": "ptimal_l]\n\n # final result object\n password: password\n guesses: guesses\n guesses_log10: @log10 gu",
"end": 7155,
"score": 0.9994570016860962,
"start": 7147,
"tag": "PASSWORD",
"value": "password"
}
] | node_modules/zxcvbn/src/scoring.coffee | bboozzoo/mender-gui | 0 | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... | 191401 | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... | true | adjacency_graphs = require('./adjacency_graphs')
# on qwerty, 'g' has degree 6, being adjacent to 'ftyhbv'. '\' has degree 1.
# this calculates the average over all keys.
calc_average_degree = (graph) ->
average = 0
for key, neighbors of graph
average += (n for n in neighbors when n).length
average /= (k for... |
[
{
"context": "aultHeaders()\n\t\t\t\t\tbody: JSON.stringify({ email: 'user1@mail.com', password: '123456' })\n\t\t\t\t},\n\t\t\t\t(jqXHR) -> sto",
"end": 2461,
"score": 0.9999163150787354,
"start": 2447,
"tag": "EMAIL",
"value": "user1@mail.com"
},
{
"context": "N.stringify({ email: ... | app/assets/javascripts/app.coffee | adrianhurt/play-api-rest-tester | 16 | define ['jquery', 'bootstrap', 'requests', 'jsonview'], ($, bootstrap, requests, jsonview) ->
makeRequest = ->
withApiUrl (apiUrl) ->
request = $('#request').val().replace(/^\//, '')
if isEmpty(request)
alert 'The Request is required'
else
$('.response-empty, .response').addClass('hidden')
... | 206567 | define ['jquery', 'bootstrap', 'requests', 'jsonview'], ($, bootstrap, requests, jsonview) ->
makeRequest = ->
withApiUrl (apiUrl) ->
request = $('#request').val().replace(/^\//, '')
if isEmpty(request)
alert 'The Request is required'
else
$('.response-empty, .response').addClass('hidden')
... | true | define ['jquery', 'bootstrap', 'requests', 'jsonview'], ($, bootstrap, requests, jsonview) ->
makeRequest = ->
withApiUrl (apiUrl) ->
request = $('#request').val().replace(/^\//, '')
if isEmpty(request)
alert 'The Request is required'
else
$('.response-empty, .response').addClass('hidden')
... |
[
{
"context": "', value: 'value1'}\n # {name: 'key2', value: 'value2'}\n # {name: 'key3', value: 'value3'}\n #]\n ",
"end": 619,
"score": 0.6220699548721313,
"start": 613,
"tag": "KEY",
"value": "value2"
},
{
"context": "le.com', 'POST', [\n # { name: 'key1', value: 'va... | wms_stepper/app/assets/javascripts/stingre.js.coffee | Windermere/stepre | 0 | $ ->
# Define namespace
window.Stingre or= {}
# Create a namespace and local reference
window.Stingre.Helpers = class Helpers
@nonajax_submit = (action, method, values) ->
form = $('<form/>', {
action: action
method: method
})
$.each values, ->
form.append $('<inp... | 127136 | $ ->
# Define namespace
window.Stingre or= {}
# Create a namespace and local reference
window.Stingre.Helpers = class Helpers
@nonajax_submit = (action, method, values) ->
form = $('<form/>', {
action: action
method: method
})
$.each values, ->
form.append $('<inp... | true | $ ->
# Define namespace
window.Stingre or= {}
# Create a namespace and local reference
window.Stingre.Helpers = class Helpers
@nonajax_submit = (action, method, values) ->
form = $('<form/>', {
action: action
method: method
})
$.each values, ->
form.append $('<inp... |
[
{
"context": "\"Jouer\"\n community: \"Communauté\"\n editor: \"Éditeur\"\n blog: \"Blog\"\n forum: \"Forum\"\n account:",
"end": 1017,
"score": 0.5553150177001953,
"start": 1011,
"tag": "NAME",
"value": "diteur"
},
{
"context": "opos\"\n contact: \"Contact\"\n t... | app/locale/fr.coffee | maurovanetti/codecombat | 1 | module.exports = nativeDescription: "français", englishDescription: "French", translation:
common:
loading: "Chargement..."
saving: "Sauvegarde..."
sending: "Envoi..."
send: "Envoyer"
cancel: "Annuler"
save: "Sauvegarder"
publish: "Publier"
create: "Creer"
delay_1_sec: "1 seconde"
... | 174168 | module.exports = nativeDescription: "français", englishDescription: "French", translation:
common:
loading: "Chargement..."
saving: "Sauvegarde..."
sending: "Envoi..."
send: "Envoyer"
cancel: "Annuler"
save: "Sauvegarder"
publish: "Publier"
create: "Creer"
delay_1_sec: "1 seconde"
... | true | module.exports = nativeDescription: "français", englishDescription: "French", translation:
common:
loading: "Chargement..."
saving: "Sauvegarde..."
sending: "Envoi..."
send: "Envoyer"
cancel: "Annuler"
save: "Sauvegarder"
publish: "Publier"
create: "Creer"
delay_1_sec: "1 seconde"
... |
[
{
"context": " data: JSON.stringify(\n cur_password: cpass\n new_password: npass1\n )\n ",
"end": 1340,
"score": 0.9121830463409424,
"start": 1335,
"tag": "PASSWORD",
"value": "cpass"
},
{
"context": " cur_password: cpass\n new_passw... | views/js/admin_config.coffee | pjmtdw/kagetra | 2 | define ["crypto-aes", "crypto-hmac", "crypto-base64", "crypto-pbkdf2"], ->
AdminChangePassView = Backbone.View.extend
el: "#admin-change-pass"
events:
"submit #change-shared-pass" : "change_shared_pass"
"submit #change-addrbook-pass" : "change_addrbook_pass"
change_shared_pass: ->
_.conf... | 151422 | define ["crypto-aes", "crypto-hmac", "crypto-base64", "crypto-pbkdf2"], ->
AdminChangePassView = Backbone.View.extend
el: "#admin-change-pass"
events:
"submit #change-shared-pass" : "change_shared_pass"
"submit #change-addrbook-pass" : "change_addrbook_pass"
change_shared_pass: ->
_.conf... | true | define ["crypto-aes", "crypto-hmac", "crypto-base64", "crypto-pbkdf2"], ->
AdminChangePassView = Backbone.View.extend
el: "#admin-change-pass"
events:
"submit #change-shared-pass" : "change_shared_pass"
"submit #change-addrbook-pass" : "change_addrbook_pass"
change_shared_pass: ->
_.conf... |
[
{
"context": "rn if not value\n\n $scope.storageKey = \"comment-\" + value.project + \"-\" + value.id + \"-\" + value._n",
"end": 2091,
"score": 0.8864040970802307,
"start": 2082,
"tag": "KEY",
"value": "comment-\""
},
{
"context": " $scope.storageKey = \"comment-\" + val... | app/modules/components/wysiwyg/comment-wysiwyg.directive.coffee | threefoldtech/Threefold-Circles-front | 0 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | 122956 | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... | true | ###
# Copyright (C) 2014-2018 Taiga Agile LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program ... |
[
{
"context": "errors = {}\n this._parent = {}\n this._name = name\n this._json = {}\n this._uid = _.uniqueId(\"#",
"end": 198,
"score": 0.8532000780105591,
"start": 194,
"tag": "NAME",
"value": "name"
}
] | src/model.coffee | lancecarlson/corpus | 1 | this.Model = (name, options, func) ->
model = (attributes) ->
self = this
this._tagId = null
this._refresh attributes
this._errors = {}
this._parent = {}
this._name = name
this._json = {}
this._uid = _.uniqueId("#{this._name}_")
this.bind "change", this._change
this.bind "data... | 125507 | this.Model = (name, options, func) ->
model = (attributes) ->
self = this
this._tagId = null
this._refresh attributes
this._errors = {}
this._parent = {}
this._name = <NAME>
this._json = {}
this._uid = _.uniqueId("#{this._name}_")
this.bind "change", this._change
this.bind "da... | true | this.Model = (name, options, func) ->
model = (attributes) ->
self = this
this._tagId = null
this._refresh attributes
this._errors = {}
this._parent = {}
this._name = PI:NAME:<NAME>END_PI
this._json = {}
this._uid = _.uniqueId("#{this._name}_")
this.bind "change", this._change
... |
[
{
"context": "one\"\n encrypt: true\n name: \"test\"\n proxy: \"http://localdb.emptystack.ne",
"end": 211,
"score": 0.8587133288383484,
"start": 207,
"tag": "USERNAME",
"value": "test"
},
{
"context": " 'setItem', ->\n proxy.setItem \"name\... | test/core/proxySpec.coffee | wh1100717/localDB | 59 | define (require, exports, module) ->
'use strict'
Proxy = require('core/proxy')
describe 'Proxy', ->
options = {
expire: "none"
encrypt: true
name: "test"
proxy: "http://localdb.emptystack.net/server.html"
}
proxy = new Proxy(options)... | 47720 | define (require, exports, module) ->
'use strict'
Proxy = require('core/proxy')
describe 'Proxy', ->
options = {
expire: "none"
encrypt: true
name: "test"
proxy: "http://localdb.emptystack.net/server.html"
}
proxy = new Proxy(options)... | true | define (require, exports, module) ->
'use strict'
Proxy = require('core/proxy')
describe 'Proxy', ->
options = {
expire: "none"
encrypt: true
name: "test"
proxy: "http://localdb.emptystack.net/server.html"
}
proxy = new Proxy(options)... |
[
{
"context": "h1 style='font: 300 52px/62px Helvetica Neue'>2007 Cabernet Sauvignon</h1>\n\t\t\"\"\"\n\t\t\n\t\t@titleLayer = new Layer\n\t\t\tparent",
"end": 883,
"score": 0.9996171593666077,
"start": 865,
"tag": "NAME",
"value": "Cabernet Sauvignon"
},
{
"context": " i \n\t\tscroll... | snapping-details.framer/app.coffee | bberak/snapping-details | 0 | # Set background
bg = new BackgroundLayer backgroundColor: "#877DD7"
# Create ScrollComponent
scroll = new ScrollComponent
width: bg.width
height: bg.height
scrollHorizontal: false
class Details extends Layer
constructor: ({x, y, width, height, scroll, h1, h3, image, borderRadius}) ->
super
x: x
y: y
... | 193521 | # Set background
bg = new BackgroundLayer backgroundColor: "#877DD7"
# Create ScrollComponent
scroll = new ScrollComponent
width: bg.width
height: bg.height
scrollHorizontal: false
class Details extends Layer
constructor: ({x, y, width, height, scroll, h1, h3, image, borderRadius}) ->
super
x: x
y: y
... | true | # Set background
bg = new BackgroundLayer backgroundColor: "#877DD7"
# Create ScrollComponent
scroll = new ScrollComponent
width: bg.width
height: bg.height
scrollHorizontal: false
class Details extends Layer
constructor: ({x, y, width, height, scroll, h1, h3, image, borderRadius}) ->
super
x: x
y: y
... |
[
{
"context": "TP POST request to create a manufacturer.\r\n@author Nathan Klick\r\n@copyright QRef 2012\r\n###\r\nclass CreateAircraftM",
"end": 161,
"score": 0.9998619556427002,
"start": 149,
"tag": "NAME",
"value": "Nathan Klick"
}
] | Workspace/QRef/NodeServer/src/specification/request/ajax/CreateAircraftManufacturerAjaxRequest.coffee | qrefdev/qref | 0 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a manufacturer.
@author Nathan Klick
@copyright QRef 2012
###
class CreateAircraftManufacturerAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the manufacturer... | 61727 | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a manufacturer.
@author <NAME>
@copyright QRef 2012
###
class CreateAircraftManufacturerAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the manufacturer.
##... | true | AjaxRequest = require('../../../serialization/AjaxRequest')
###
Object sent as the body of an HTTP POST request to create a manufacturer.
@author PI:NAME:<NAME>END_PI
@copyright QRef 2012
###
class CreateAircraftManufacturerAjaxRequest extends AjaxRequest
###
@property [String] (Required) The name of the manu... |
[
{
"context": "ts.HrefVariables()\n hrefVariables.set('name', 'Doe')\n hrefVariables.getMember('name').attributes.",
"end": 688,
"score": 0.9985744953155518,
"start": 685,
"tag": "NAME",
"value": "Doe"
},
{
"context": ": {\n default: undefined,\n example: 'Doe',\n ... | test/unit/compile-uri/compile-params-test.coffee | DMG-Cloud-Services/adsk-dredd-transactions | 0 | {assert} = require 'chai'
fury = new require 'adsk-fury'
compileParams = require '../../../src/compile-uri/compile-params'
describe 'compileParams', ->
it 'should compile a primitive href variable', ->
hrefVariables = new fury.minim.elements.HrefVariables()
hrefVariables.set('name', new fury.minim.elements.... | 12500 | {assert} = require 'chai'
fury = new require 'adsk-fury'
compileParams = require '../../../src/compile-uri/compile-params'
describe 'compileParams', ->
it 'should compile a primitive href variable', ->
hrefVariables = new fury.minim.elements.HrefVariables()
hrefVariables.set('name', new fury.minim.elements.... | true | {assert} = require 'chai'
fury = new require 'adsk-fury'
compileParams = require '../../../src/compile-uri/compile-params'
describe 'compileParams', ->
it 'should compile a primitive href variable', ->
hrefVariables = new fury.minim.elements.HrefVariables()
hrefVariables.set('name', new fury.minim.elements.... |
[
{
"context": "sl(a) or rgb(a) as input, outputs rgb(a)\n# author: Valerio Proietti (@kamicane) http://mad4milk.net http://mootools.n",
"end": 125,
"score": 0.9998679161071777,
"start": 109,
"tag": "NAME",
"value": "Valerio Proietti"
},
{
"context": "s input, outputs rgb(a)\n# author:... | src/color.coffee | sebmarkbage/moofx | 2 | # color: A color converter. Takes a named color, hex(a), hsl(a) or rgb(a) as input, outputs rgb(a)
# author: Valerio Proietti (@kamicane) http://mad4milk.net http://mootools.net
# credits: http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
# license: MIT
colors =
m... | 166969 | # color: A color converter. Takes a named color, hex(a), hsl(a) or rgb(a) as input, outputs rgb(a)
# author: <NAME> (@kamicane) http://mad4milk.net http://mootools.net
# credits: http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
# license: MIT
colors =
maroon: '#8... | true | # color: A color converter. Takes a named color, hex(a), hsl(a) or rgb(a) as input, outputs rgb(a)
# author: PI:NAME:<NAME>END_PI (@kamicane) http://mad4milk.net http://mootools.net
# credits: http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript
# license: MIT
colors ... |
[
{
"context": "# @file particle.coffee\n# @Copyright (c) 2017 Taylor Siviter\n# This source code is licensed under the MIT Lice",
"end": 60,
"score": 0.9998103976249695,
"start": 46,
"tag": "NAME",
"value": "Taylor Siviter"
}
] | src/particle/particle.coffee | siviter-t/lampyridae.coffee | 4 | # @file particle.coffee
# @Copyright (c) 2017 Taylor Siviter
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'maths/vec2d'
class Lampyridae.Particle
### Construct and manage a generic circular particle.
#
# @param canvas [Object] In... | 213605 | # @file particle.coffee
# @Copyright (c) 2017 <NAME>
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'maths/vec2d'
class Lampyridae.Particle
### Construct and manage a generic circular particle.
#
# @param canvas [Object] Instance o... | true | # @file particle.coffee
# @Copyright (c) 2017 PI:NAME:<NAME>END_PI
# This source code is licensed under the MIT License.
# For full information, see the LICENSE file in the project root.
require 'maths/vec2d'
class Lampyridae.Particle
### Construct and manage a generic circular particle.
#
# @param canvas [Obje... |
[
{
"context": "s/icons/heroku@2x.png'\n\n @_fields.push\n key: 'webhookUrl'\n type: 'text'\n readonly: true\n descr",
"end": 1116,
"score": 0.6921895742416382,
"start": 1109,
"tag": "KEY",
"value": "webhook"
}
] | src/services/heroku.coffee | jianliaoim/talk-services | 40 | _ = require 'lodash'
Promise = require 'bluebird'
util = require '../util'
###*
* Define handler when receive incoming webhook from heroku
* @param {Object} req Express request object
* @param {Object} res Express response object
* @param {Function} callback
* @return {Promise}
###
_receiveWebh... | 200626 | _ = require 'lodash'
Promise = require 'bluebird'
util = require '../util'
###*
* Define handler when receive incoming webhook from heroku
* @param {Object} req Express request object
* @param {Object} res Express response object
* @param {Function} callback
* @return {Promise}
###
_receiveWebh... | true | _ = require 'lodash'
Promise = require 'bluebird'
util = require '../util'
###*
* Define handler when receive incoming webhook from heroku
* @param {Object} req Express request object
* @param {Object} res Express response object
* @param {Function} callback
* @return {Promise}
###
_receiveWebh... |
[
{
"context": "nd query', ->\n kb = Prolog.parseKb \"father(abraham, isaac).\n father(haran, lot).\n ",
"end": 968,
"score": 0.784266471862793,
"start": 961,
"tag": "NAME",
"value": "abraham"
},
{
"context": "', ->\n kb = Prolog.parseKb \"father(abraham... | test/simple.coffee | mattsouth/dprolog | 7 | should = require('chai').should()
Prolog = require '../src/simple'
describe 'Parser', ->
it 'should parse a fact', ->
kb = Prolog.parseKb "likes(X, pomegranate)."
kb.should.have.length 1
kb[0].head.functor.should.equal "likes"
kb[0].head.params.should.have.length 2
kb[0].hea... | 90480 | should = require('chai').should()
Prolog = require '../src/simple'
describe 'Parser', ->
it 'should parse a fact', ->
kb = Prolog.parseKb "likes(X, pomegranate)."
kb.should.have.length 1
kb[0].head.functor.should.equal "likes"
kb[0].head.params.should.have.length 2
kb[0].hea... | true | should = require('chai').should()
Prolog = require '../src/simple'
describe 'Parser', ->
it 'should parse a fact', ->
kb = Prolog.parseKb "likes(X, pomegranate)."
kb.should.have.length 1
kb[0].head.functor.should.equal "likes"
kb[0].head.params.should.have.length 2
kb[0].hea... |
[
{
"context": "ng Else'})\n .addEmail('Email', { value: 'a@a.a'})\n .addUrl('Url', { value: 'http://www.",
"end": 7433,
"score": 0.9331843256950378,
"start": 7428,
"tag": "EMAIL",
"value": "a@a.a"
},
{
"context": "e })\n .addPassword('Password', { value: 'ab... | src/components/form/spec.coffee | p-koscielniak/hexagonjs | 61 | import { userFacingText } from 'utils/user-facing-text'
import { div, select, detached } from 'utils/selection'
import { Form, validateForm } from 'components/form'
export default () ->
describe 'form', ->
it 'should have user facing text defined', ->
userFacingText('form', 'missingRadioValue').should.equ... | 169605 | import { userFacingText } from 'utils/user-facing-text'
import { div, select, detached } from 'utils/selection'
import { Form, validateForm } from 'components/form'
export default () ->
describe 'form', ->
it 'should have user facing text defined', ->
userFacingText('form', 'missingRadioValue').should.equ... | true | import { userFacingText } from 'utils/user-facing-text'
import { div, select, detached } from 'utils/selection'
import { Form, validateForm } from 'components/form'
export default () ->
describe 'form', ->
it 'should have user facing text defined', ->
userFacingText('form', 'missingRadioValue').should.equ... |
[
{
"context": " position:\n company:\n name: \"Empresa\"\n title: \"Puesto profesional\"\n summ",
"end": 210,
"score": 0.9942916631698608,
"start": 203,
"tag": "NAME",
"value": "Empresa"
}
] | app/scripts/controllers/main.coffee | N4N0/portfolio | 0 | 'use strict'
angular.module('portfolioApp')
.controller 'MainCtrl', ['$scope', '$http', 'linkedIn', ($scope, $http, linkedIn) ->
templates =
position:
company:
name: "Empresa"
title: "Puesto profesional"
summary: "Descripción"
education:
degree: "Titulo"... | 143898 | 'use strict'
angular.module('portfolioApp')
.controller 'MainCtrl', ['$scope', '$http', 'linkedIn', ($scope, $http, linkedIn) ->
templates =
position:
company:
name: "<NAME>"
title: "Puesto profesional"
summary: "Descripción"
education:
degree: "Titulo"
... | true | 'use strict'
angular.module('portfolioApp')
.controller 'MainCtrl', ['$scope', '$http', 'linkedIn', ($scope, $http, linkedIn) ->
templates =
position:
company:
name: "PI:NAME:<NAME>END_PI"
title: "Puesto profesional"
summary: "Descripción"
education:
deg... |
[
{
"context": "stdout.slice(0, 10)}\n * http://github.com/elabs/serenade.js\n *\n * Copyright 2011,",
"end": 625,
"score": 0.7539781332015991,
"start": 620,
"tag": "USERNAME",
"value": "elabs"
},
{
"context": "/serenade.js\n *\n * Copyright 2011... | src/build.coffee | varvet/serenade.js | 5 | # We prioritize getting this to work in the browser over being a good node/commonjs citizen.
# To get this to work in commonjs anyway, we basically eval the whole thing. Sue me.
CoffeeScript = require 'coffee-script'
fs = require 'fs'
path = require 'path'
gzip = require 'gzip-js'
vm = require("vm")
fs = require("fs"... | 133045 | # We prioritize getting this to work in the browser over being a good node/commonjs citizen.
# To get this to work in commonjs anyway, we basically eval the whole thing. Sue me.
CoffeeScript = require 'coffee-script'
fs = require 'fs'
path = require 'path'
gzip = require 'gzip-js'
vm = require("vm")
fs = require("fs"... | true | # We prioritize getting this to work in the browser over being a good node/commonjs citizen.
# To get this to work in commonjs anyway, we basically eval the whole thing. Sue me.
CoffeeScript = require 'coffee-script'
fs = require 'fs'
path = require 'path'
gzip = require 'gzip-js'
vm = require("vm")
fs = require("fs"... |
[
{
"context": "\n expected = 'Solved <a href=\"https://github.com/travis-ci/travis-web/issues/11\">#11</a>hey'\n\n equal(result",
"end": 242,
"score": 0.9995834231376648,
"start": 233,
"tag": "USERNAME",
"value": "travis-ci"
},
{
"context": "\n expected = 'Solved <a href=\"https://... | assets/scripts/spec/unit/helpers_spec.coffee | Acidburn0zzz/travis-web | 0 | module "Travis.Helpers.githubify"
test 'replaces #Num with github issues link', ->
message = 'Solved #11hey'
result = Travis.Helpers.githubify(message, 'travis-ci', 'travis-web')
expected = 'Solved <a href="https://github.com/travis-ci/travis-web/issues/11">#11</a>hey'
equal(result, expected, "#num should be ... | 40292 | module "Travis.Helpers.githubify"
test 'replaces #Num with github issues link', ->
message = 'Solved #11hey'
result = Travis.Helpers.githubify(message, 'travis-ci', 'travis-web')
expected = 'Solved <a href="https://github.com/travis-ci/travis-web/issues/11">#11</a>hey'
equal(result, expected, "#num should be ... | true | module "Travis.Helpers.githubify"
test 'replaces #Num with github issues link', ->
message = 'Solved #11hey'
result = Travis.Helpers.githubify(message, 'travis-ci', 'travis-web')
expected = 'Solved <a href="https://github.com/travis-ci/travis-web/issues/11">#11</a>hey'
equal(result, expected, "#num should be ... |
[
{
"context": "test fixture using js-fixtures https://github.com/badunk/js-fixtures\n fixtures.path = 'fixtures'\n ",
"end": 848,
"score": 0.9993903040885925,
"start": 842,
"tag": "USERNAME",
"value": "badunk"
},
{
"context": ".g., error msgs\n $f('input.password').val ... | test/views/login-dialog.spec.coffee | OpenSourceFieldlinguistics/dative | 7 | define (require) ->
LoginDialogView = require '../../../scripts/views/login-dialog'
ApplicationSettingsModel = require '../../../scripts/models/application-settings'
describe 'Login Dialog View', ->
before ->
# Spy on methods...
sinon.spy LoginDialogView::, '_authenticateFail'
sinon.spy L... | 208909 | define (require) ->
LoginDialogView = require '../../../scripts/views/login-dialog'
ApplicationSettingsModel = require '../../../scripts/models/application-settings'
describe 'Login Dialog View', ->
before ->
# Spy on methods...
sinon.spy LoginDialogView::, '_authenticateFail'
sinon.spy L... | true | define (require) ->
LoginDialogView = require '../../../scripts/views/login-dialog'
ApplicationSettingsModel = require '../../../scripts/models/application-settings'
describe 'Login Dialog View', ->
before ->
# Spy on methods...
sinon.spy LoginDialogView::, '_authenticateFail'
sinon.spy L... |
[
{
"context": "cs/#info.info\n\nFramer.Info =\n\ttitle: \"\"\n\tauthor: \"Tony\"\n\ttwitter: \"\"\n\tdescription: \"\"\n\n\nFramer.Defaults.",
"end": 146,
"score": 0.9991326332092285,
"start": 142,
"tag": "NAME",
"value": "Tony"
}
] | 59appleMusic.framer/app.coffee | gremjua-forks/100daysofframer | 26 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "Tony"
twitter: ""
description: ""
Framer.Defaults.Animation = curve: "spring(300,25,0)"
bg = new Layer
size: Screen, borderRadius: 20, html: "Song Playing Demo"
background... | 103936 | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "<NAME>"
twitter: ""
description: ""
Framer.Defaults.Animation = curve: "spring(300,25,0)"
bg = new Layer
size: Screen, borderRadius: 20, html: "Song Playing Demo"
backgrou... | true | # Project Info
# This info is presented in a widget when you share.
# http://framerjs.com/docs/#info.info
Framer.Info =
title: ""
author: "PI:NAME:<NAME>END_PI"
twitter: ""
description: ""
Framer.Defaults.Animation = curve: "spring(300,25,0)"
bg = new Layer
size: Screen, borderRadius: 20, html: "Song Playing D... |
[
{
"context": "ivity.camelizeKeys = yes\nApp.Activity.primaryKey = '_id'\nApp.Activity.collectionKey = 'activities'\nApp.Ac",
"end": 1170,
"score": 0.7105882167816162,
"start": 1166,
"tag": "KEY",
"value": "'_id"
}
] | app/models/activity.coffee | robinandeer/scout | 4 | NewRESTAdapter = require 'adapters/new-rest'
MomentDate = require 'helpers/moment-date'
App.Activity = Ember.Model.extend
_id: Em.attr()
activityId: Em.attr()
category: Em.attr()
context: Em.attr()
contextId: Em.attr()
ecosystem: Em.attr()
userId: Em.attr()
user: Em.belongsTo 'App.User', {key: 'user_i... | 42409 | NewRESTAdapter = require 'adapters/new-rest'
MomentDate = require 'helpers/moment-date'
App.Activity = Ember.Model.extend
_id: Em.attr()
activityId: Em.attr()
category: Em.attr()
context: Em.attr()
contextId: Em.attr()
ecosystem: Em.attr()
userId: Em.attr()
user: Em.belongsTo 'App.User', {key: 'user_i... | true | NewRESTAdapter = require 'adapters/new-rest'
MomentDate = require 'helpers/moment-date'
App.Activity = Ember.Model.extend
_id: Em.attr()
activityId: Em.attr()
category: Em.attr()
context: Em.attr()
contextId: Em.attr()
ecosystem: Em.attr()
userId: Em.attr()
user: Em.belongsTo 'App.User', {key: 'user_i... |
[
{
"context": "-noise-in-javascript_31.html\r\n// This is a port of Ken Perlin's Java code. The\r\n// original Java code is at htt",
"end": 114,
"score": 0.996938169002533,
"start": 104,
"tag": "NAME",
"value": "Ken Perlin"
}
] | src/perlin.coffee | vjeux/jsRayTracer | 55 |
`
// http://asserttrue.blogspot.com/2011/12/perlin-noise-in-javascript_31.html
// This is a port of Ken Perlin's Java code. The
// original Java code is at http://cs.nyu.edu/%7Eperlin/noise/.
// Note that in this version, a number from 0 to 1 is returned.
PerlinNoise = new function() {
this.noise = function(x... | 169739 |
`
// http://asserttrue.blogspot.com/2011/12/perlin-noise-in-javascript_31.html
// This is a port of <NAME>'s Java code. The
// original Java code is at http://cs.nyu.edu/%7Eperlin/noise/.
// Note that in this version, a number from 0 to 1 is returned.
PerlinNoise = new function() {
this.noise = function(x, y,... | true |
`
// http://asserttrue.blogspot.com/2011/12/perlin-noise-in-javascript_31.html
// This is a port of PI:NAME:<NAME>END_PI's Java code. The
// original Java code is at http://cs.nyu.edu/%7Eperlin/noise/.
// Note that in this version, a number from 0 to 1 is returned.
PerlinNoise = new function() {
this.noise = ... |
[
{
"context": ": InputHelper.makeRadioToggle attr, 'lastname', ['Hans', 'Franz'] \n @makeRadioToggle = (attr, label,",
"end": 1644,
"score": 0.9992735385894775,
"start": 1640,
"tag": "NAME",
"value": "Hans"
},
{
"context": "elper.makeRadioToggle attr, 'lastname', ['Hans', 'Franz']... | client/app/scripts/components/util/ui/InputHelper.coffee | softwarerero/protothril | 0 | module.exports = class InputHelper
# use like: InputHelper.makeInput attr, 'lastname', {mask: '####-##-___-# $'}
@makeInput = (attr, field, params) ->
changeHandler = if params.mask
setMaskValue(attr[field])
else
m.withAttr("value", attr[field])
[
LABEL {for: field}, t9n field
i... | 121353 | module.exports = class InputHelper
# use like: InputHelper.makeInput attr, 'lastname', {mask: '####-##-___-# $'}
@makeInput = (attr, field, params) ->
changeHandler = if params.mask
setMaskValue(attr[field])
else
m.withAttr("value", attr[field])
[
LABEL {for: field}, t9n field
i... | true | module.exports = class InputHelper
# use like: InputHelper.makeInput attr, 'lastname', {mask: '####-##-___-# $'}
@makeInput = (attr, field, params) ->
changeHandler = if params.mask
setMaskValue(attr[field])
else
m.withAttr("value", attr[field])
[
LABEL {for: field}, t9n field
i... |
[
{
"context": "#\n# Copyright 2014 Carsten Klein\n#\n# Licensed under the Apache License, Version 2.",
"end": 32,
"score": 0.9998666644096375,
"start": 19,
"tag": "NAME",
"value": "Carsten Klein"
}
] | src/monkeypatch.coffee | vibejs/vibejs-subclassof | 0 | #
# Copyright 2014 Carsten Klein
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 87565 | #
# Copyright 2014 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | true | #
# Copyright 2014 PI:NAME:<NAME>END_PI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... |
[
{
"context": "um-set-1-label'\n ,\n key: 'enum-set-2-key'\n label: 'enum-set-2-label'\n ",
"end": 1818,
"score": 0.5461097955703735,
"start": 1818,
"tag": "KEY",
"value": ""
},
{
"context": "-set-1-label'\n ,\n key: 'enum-set-2-key'\n ... | test/enum-validator.spec.coffee | sphereio/sphere-product-import | 5 | debug = require('debug')('spec:enum-validator')
_ = require 'underscore'
_.mixin require 'underscore-mixins'
{EnumValidator} = require '../lib'
Promise = require 'bluebird'
slugify = require 'underscore.string/slugify'
{ExtendedLogger} = require 'sphere-node-utils'
package_json = require '../package.json'
sampleVarian... | 152988 | debug = require('debug')('spec:enum-validator')
_ = require 'underscore'
_.mixin require 'underscore-mixins'
{EnumValidator} = require '../lib'
Promise = require 'bluebird'
slugify = require 'underscore.string/slugify'
{ExtendedLogger} = require 'sphere-node-utils'
package_json = require '../package.json'
sampleVarian... | true | debug = require('debug')('spec:enum-validator')
_ = require 'underscore'
_.mixin require 'underscore-mixins'
{EnumValidator} = require '../lib'
Promise = require 'bluebird'
slugify = require 'underscore.string/slugify'
{ExtendedLogger} = require 'sphere-node-utils'
package_json = require '../package.json'
sampleVarian... |
[
{
"context": "ncodeData(\"shell:am start\n --eia 'key1' '2,3'\n --ela 'key2' '20,30'\n --ei 'k",
"end": 10556,
"score": 0.8186745643615723,
"start": 10553,
"tag": "KEY",
"value": "2,3"
},
{
"context": " --eia 'key1' '2,3'\n --ela 'key2' '20,3... | test/adb/command/host-transport/startactivity.coffee | DeedleFake/adbkit | 642 | Stream = require 'stream'
Sinon = require 'sinon'
Chai = require 'chai'
Chai.use require 'sinon-chai'
{expect} = Chai
MockConnection = require '../../../mock/connection'
Protocol = require '../../../../src/adb/protocol'
StartActivityCommand = require \
'../../../../src/adb/command/host-transport/startactivity'
desc... | 66913 | Stream = require 'stream'
Sinon = require 'sinon'
Chai = require 'chai'
Chai.use require 'sinon-chai'
{expect} = Chai
MockConnection = require '../../../mock/connection'
Protocol = require '../../../../src/adb/protocol'
StartActivityCommand = require \
'../../../../src/adb/command/host-transport/startactivity'
desc... | true | Stream = require 'stream'
Sinon = require 'sinon'
Chai = require 'chai'
Chai.use require 'sinon-chai'
{expect} = Chai
MockConnection = require '../../../mock/connection'
Protocol = require '../../../../src/adb/protocol'
StartActivityCommand = require \
'../../../../src/adb/command/host-transport/startactivity'
desc... |
[
{
"context": " it 'shows confirmation and a mailto link to schools@codecombat.com', ->\n if not @view.$('#request-sent-btn'",
"end": 6032,
"score": 0.9999243021011353,
"start": 6010,
"tag": "EMAIL",
"value": "schools@codecombat.com"
},
{
"context": " locale\n # ... | test/app/views/courses/EnrollmentsView.spec.coffee | toivomattila/codecombat | 1 | EnrollmentsView = require 'views/courses/EnrollmentsView'
Courses = require 'collections/Courses'
Prepaids = require 'collections/Prepaids'
Users = require 'collections/Users'
Classrooms = require 'collections/Classrooms'
factories = require 'test/app/factories'
TeachersContactModal = require 'views/teachers/TeachersCo... | 173002 | EnrollmentsView = require 'views/courses/EnrollmentsView'
Courses = require 'collections/Courses'
Prepaids = require 'collections/Prepaids'
Users = require 'collections/Users'
Classrooms = require 'collections/Classrooms'
factories = require 'test/app/factories'
TeachersContactModal = require 'views/teachers/TeachersCo... | true | EnrollmentsView = require 'views/courses/EnrollmentsView'
Courses = require 'collections/Courses'
Prepaids = require 'collections/Prepaids'
Users = require 'collections/Users'
Classrooms = require 'collections/Classrooms'
factories = require 'test/app/factories'
TeachersContactModal = require 'views/teachers/TeachersCo... |
[
{
"context": "### Copyright (c) 2015 Magnus Leo. All rights reserved. ###\n\ncore = require('../mod",
"end": 33,
"score": 0.9998688697814941,
"start": 23,
"tag": "NAME",
"value": "Magnus Leo"
}
] | src/classes/Shape.coffee | magnusleo/Leo-Engine | 1 | ### Copyright (c) 2015 Magnus Leo. All rights reserved. ###
core = require('../modules/core')
background = require('../modules/background')
util = require('../modules/util')
view = require('../modules/view')
module.exports =
class Shape
constructor: (data) -> # Shape::constructor
defaultData =
... | 34115 | ### Copyright (c) 2015 <NAME>. All rights reserved. ###
core = require('../modules/core')
background = require('../modules/background')
util = require('../modules/util')
view = require('../modules/view')
module.exports =
class Shape
constructor: (data) -> # Shape::constructor
defaultData =
fi... | true | ### Copyright (c) 2015 PI:NAME:<NAME>END_PI. All rights reserved. ###
core = require('../modules/core')
background = require('../modules/background')
util = require('../modules/util')
view = require('../modules/view')
module.exports =
class Shape
constructor: (data) -> # Shape::constructor
defaultData =
... |
[
{
"context": "base64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\"\n\n",
"end": 27,
"score": 0.750749409198761,
"start": 16,
"tag": "KEY",
"value": "GHIJKLMNOPQ"
},
{
"context": "base64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\"\n\... | js/convert.coffee | bernikr/L64 | 0 | base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
locationToL64 = (lat, lon, length) ->
# normalize the coordinates to be in the range 0..1
x = (lon / 360 + 0.5)
y = (lat / 180 + 0.5)
# transform the coordinates to a binary tree per coordinate
[x,y] = (pad(c.toString(2).substr(2), ... | 186901 | base64 = "ABCDEF<KEY>RSTUV<KEY>
locationToL64 = (lat, lon, length) ->
# normalize the coordinates to be in the range 0..1
x = (lon / 360 + 0.5)
y = (lat / 180 + 0.5)
# transform the coordinates to a binary tree per coordinate
[x,y] = (pad(c.toString(2).substr(2), length*3) for c in [x,y])
# combine the b... | true | base64 = "ABCDEFPI:KEY:<KEY>END_PIRSTUVPI:KEY:<KEY>END_PI
locationToL64 = (lat, lon, length) ->
# normalize the coordinates to be in the range 0..1
x = (lon / 360 + 0.5)
y = (lat / 180 + 0.5)
# transform the coordinates to a binary tree per coordinate
[x,y] = (pad(c.toString(2).substr(2), length*3) for c in... |
[
{
"context": "52960\n# Type: 'A'\n# Name: 'abbyy-0'\n# Target: '176.58.107.125'\n# TTL_sec: 3600\n# , ->\n\n#client.call 'avail.Lin",
"end": 351,
"score": 0.999734103679657,
"start": 337,
"tag": "IP_ADDRESS",
"value": "176.58.107.125"
},
{
"context": " 'Label': 'system'\n# 'Size... | test_util/linodinator.coffee | scraperwiki/lithium | 0 | #!/usr/bin/env coffee
nock = require 'nock'
nock.recorder.rec()
LinodeClient = (require 'linode-api').LinodeClient
client = new LinodeClient process.env['LINODE_API_KEY']
#client.call 'linode.ip.list',
# LinodeID: 206102
# , ->
#client.call 'domain.resource.create',
# DomainID: 352960
# Type: 'A'
# Name: 'abby... | 151225 | #!/usr/bin/env coffee
nock = require 'nock'
nock.recorder.rec()
LinodeClient = (require 'linode-api').LinodeClient
client = new LinodeClient process.env['LINODE_API_KEY']
#client.call 'linode.ip.list',
# LinodeID: 206102
# , ->
#client.call 'domain.resource.create',
# DomainID: 352960
# Type: 'A'
# Name: 'abby... | true | #!/usr/bin/env coffee
nock = require 'nock'
nock.recorder.rec()
LinodeClient = (require 'linode-api').LinodeClient
client = new LinodeClient process.env['LINODE_API_KEY']
#client.call 'linode.ip.list',
# LinodeID: 206102
# , ->
#client.call 'domain.resource.create',
# DomainID: 352960
# Type: 'A'
# Name: 'abby... |
[
{
"context": "y('standard', 'cookie', {\n\t password: 'hardToGuessCookieSecret',\n\t cookie: 'app-cookie',\n\t ",
"end": 330,
"score": 0.9992437362670898,
"start": 307,
"tag": "PASSWORD",
"value": "hardToGuessCookieSecret"
}
] | modules/auth/index.coffee | scotthathaway/hapifw | 4 | Promise = require('bluebird')
exports.register = (server, options, next) ->
server.register([{register: require('hapi-auth-cookie')}], (err) ->
if err
throw err
# server authentication strategy
server.auth.strategy('standard', 'cookie', {
password: 'hardToGuessCo... | 158517 | Promise = require('bluebird')
exports.register = (server, options, next) ->
server.register([{register: require('hapi-auth-cookie')}], (err) ->
if err
throw err
# server authentication strategy
server.auth.strategy('standard', 'cookie', {
password: '<PASSWORD>',
... | true | Promise = require('bluebird')
exports.register = (server, options, next) ->
server.register([{register: require('hapi-auth-cookie')}], (err) ->
if err
throw err
# server authentication strategy
server.auth.strategy('standard', 'cookie', {
password: 'PI:PASSWORD:<... |
[
{
"context": " Code from [`groc/lib/utils`][1]\n\n @copyright Ian MacLeod and groc contributors\n\n [1]: https://github.",
"end": 3877,
"score": 0.9998866319656372,
"start": 3866,
"tag": "NAME",
"value": "Ian MacLeod"
},
{
"context": " groc contributors\n\n [1]: https:... | test/utils/processDocTags_spec.coffee | vitkarpov/grock | 1 | expect = require('chai').expect
Buffer = require('buffer').Buffer
marked = require('marked')
process = require '../../lib/utils/processDocTags'
# ## Fake data
#
# Parsing starts with one empty description tag, so add that one to `tagCount`.
docTagsValid = code: """
# @method Parse Doc Tags
# @description Parses com... | 213682 | expect = require('chai').expect
Buffer = require('buffer').Buffer
marked = require('marked')
process = require '../../lib/utils/processDocTags'
# ## Fake data
#
# Parsing starts with one empty description tag, so add that one to `tagCount`.
docTagsValid = code: """
# @method Parse Doc Tags
# @description Parses com... | true | expect = require('chai').expect
Buffer = require('buffer').Buffer
marked = require('marked')
process = require '../../lib/utils/processDocTags'
# ## Fake data
#
# Parsing starts with one empty description tag, so add that one to `tagCount`.
docTagsValid = code: """
# @method Parse Doc Tags
# @description Parses com... |
[
{
"context": "ame='row'>\n <span className='col-md-6'>by Anonymous:</span>\n \n <span c",
"end": 183,
"score": 0.648270308971405,
"start": 181,
"tag": "NAME",
"value": "An"
},
{
"context": "='row'>\n <span className='col-md-6'>by Anonymous:</... | app/assets/javascripts/components/description.jsx.coffee | gaiax-asia/describe_me | 0 | jQuery ->
Component.Description = React.createClass
render: ->
return `<div className='container'>
<div className='row'>
<span className='col-md-6'>by Anonymous:</span>
<span className='col-md-6'>{this.props.description}</span>
</div>
</div>`
| 115320 | jQuery ->
Component.Description = React.createClass
render: ->
return `<div className='container'>
<div className='row'>
<span className='col-md-6'>by <NAME> <NAME>:</span>
<span className='col-md-6'>{this.props.description}</span>
</div>
</div>`
| true | jQuery ->
Component.Description = React.createClass
render: ->
return `<div className='container'>
<div className='row'>
<span className='col-md-6'>by PI:NAME:<NAME>END_PI PI:NAME:<NAME>END_PI:</span>
<span className='col-md-6'>{this.props.description}</span>
... |
[
{
"context": "---------------------------------\n# Copyright 2013 I.B.M.\n# \n# Licensed under the Apache License, Version 2",
"end": 547,
"score": 0.9946846961975098,
"start": 542,
"tag": "NAME",
"value": "I.B.M"
}
] | samples/time-waster.coffee | pmuellr/nodprof | 6 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
exports.run = (times) ->
console.log "running #{__filename}"
for i in [0..times]
setTimeout (-> runOuter times), 100 * i
runOuter = (times) ->
runInner (times)
runInner = (times) ->
for i i... | 71 | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
exports.run = (times) ->
console.log "running #{__filename}"
for i in [0..times]
setTimeout (-> runOuter times), 100 * i
runOuter = (times) ->
runInner (times)
runInner = (times) ->
for i i... | true | # Licensed under the Apache License. See footer for details.
fs = require "fs"
path = require "path"
exports.run = (times) ->
console.log "running #{__filename}"
for i in [0..times]
setTimeout (-> runOuter times), 100 * i
runOuter = (times) ->
runInner (times)
runInner = (times) ->
for i i... |
[
{
"context": "###\njbfilereader.coffee\n\nCopyright (c) 2015 Jeongbin Park\n\nPermission is hereby granted, free of charge, to",
"end": 57,
"score": 0.9997449517250061,
"start": 44,
"tag": "NAME",
"value": "Jeongbin Park"
}
] | jbfilereader.coffee | pjb7687/jbfilereader | 0 | ###
jbfilereader.coffee
Copyright (c) 2015 Jeongbin Park
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | 94491 | ###
jbfilereader.coffee
Copyright (c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | true | ###
jbfilereader.coffee
Copyright (c) 2015 PI:NAME:<NAME>END_PI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... |
[
{
"context": "view Enforce html element has lang prop.\n# @author Ethan Cohen\n###\n\n# ------------------------------------------",
"end": 102,
"score": 0.9998745918273926,
"start": 91,
"tag": "NAME",
"value": "Ethan Cohen"
}
] | src/tests/rules/html-has-lang.coffee | danielbayley/eslint-plugin-coffee | 21 | ### eslint-env jest ###
###*
# @fileoverview Enforce html element has lang prop.
# @author Ethan Cohen
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{RuleTester} =... | 157506 | ### eslint-env jest ###
###*
# @fileoverview Enforce html element has lang prop.
# @author <NAME>
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{RuleTester} = requ... | true | ### eslint-env jest ###
###*
# @fileoverview Enforce html element has lang prop.
# @author PI:NAME:<NAME>END_PI
###
# -----------------------------------------------------------------------------
# Requirements
# -----------------------------------------------------------------------------
path = require 'path'
{Rule... |
[
{
"context": "just showing the html description.\n#\n# Author:\n# brianmichel\n\nexec = require('child_process').exec\n\nuser = pro",
"end": 541,
"score": 0.9994847774505615,
"start": 530,
"tag": "USERNAME",
"value": "brianmichel"
},
{
"context": "ec\n\nuser = process.env.HUBOT_RAL... | src/scripts/rally.coffee | contolini/hubot-scripts | 1,450 | # Description:
# Rally information for artifacts
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_RALLY_USERNAME
# HUBOT_RALLY_PASSWORD
#
# Commands:
# hubot rally me <formattedID> - Lookup a task, story, defect, etc. from Rally
#
# Notes:
# Since Rally supports rich text for description fields, it will ... | 168741 | # Description:
# Rally information for artifacts
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_RALLY_USERNAME
# HUBOT_RALLY_PASSWORD
#
# Commands:
# hubot rally me <formattedID> - Lookup a task, story, defect, etc. from Rally
#
# Notes:
# Since Rally supports rich text for description fields, it will ... | true | # Description:
# Rally information for artifacts
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_RALLY_USERNAME
# HUBOT_RALLY_PASSWORD
#
# Commands:
# hubot rally me <formattedID> - Lookup a task, story, defect, etc. from Rally
#
# Notes:
# Since Rally supports rich text for description fields, it will ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.