code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
'use strict';
exports.BattleAliases = {
// formats
"randombattle": "[Gen 7] Random Battle",
"randbats": "[Gen 7] Random Battle",
"ag": "[Gen 7] Anything Goes",
"randomdoublesbattle": "[Gen 7] Random Doubles Battle",
"randdubs": "[Gen 7] Random Doubles Battle",
"doubles": "[Gen 7] Doubles OU",
"dou": "[Gen 7] D... | AnaRitaTorres/Pokemon-Showdown | data/aliases.js | JavaScript | mit | 14,804 |
+function ($) {
'use strict';
// CAROUSEL CLASS DEFINITION
// =========================
var Carousel = function (element, options) {
this.$element = $(element)
this.$indicators = this.$element.find('.carousel-indicators')
this.options = options
this.paused ... | jbouhier/2SN | web/bundles/front/js/gallery.js | JavaScript | mit | 6,323 |
'use strict';
require('./prism');
/**
* Global `fabricator` object
* @namespace
*/
var fabricator = window.fabricator = {};
/**
* Default options
* @type {Object}
*/
fabricator.options = {
toggles: {
labels: true,
notes: true,
code: false
},
menu: false,
mq: '(min-width: 60em)'
};
// open menu by d... | DevGroup-ru/frontend-monster | src/assets/fabricator/scripts/fabricator.js | JavaScript | mit | 7,946 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... | bengimbel/Solstice-React-Contacts-Project | node_modules/react-icons/lib/md/sentiment-satisfied.js | JavaScript | mit | 1,502 |
// petrel.js - A Javascript client for the Petrel networking library.
// Copyright (c) 2016 Shawn Boyette <shawn@firepear.net>. All rights
// reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Petrel is the constructor for new clients. It takes three arg... | firepear/petreljs | petrel-dev.js | JavaScript | mit | 9,030 |
import Rule from "../rule.js";
module.exports = Rule.makeRule({
name: "link-click-here",
severity: Rule.Severity.WARNING,
selector: "link",
pattern: /click here/i,
message: `Inappropriate link text:
Do not use the words "click here" in links.`,
});
| learningequality/perseus | src/gorgon/rules/link-click-here.js | JavaScript | mit | 270 |
// Copyright (c) 2012 Mark Cavage. All rights reserved.
// Copyright (c) 2014 Pedro Vieira.
var util = require('util');
var assert = require('assert-plus');
var restify = require('restify');
var exports = module.exports;
///--- Errors
/*
function MissingContentError () {
restify.RestError.call(this, {
s... | vegapi/vegapi | lib/errors.js | JavaScript | mit | 1,451 |
/**
* Created by LinYong on 2015/7/24.
* 11366846@qq.com
*/
//unserialize example
var unser = require('./unserialize.js')
var str = 'i:0;';
console.log(unser(str));
//---------------------------------------------------
var crypto = require('crypto');//需要NPM
var sprintf = require("sprintf-js").sprintf;//需要npm
var ke... | fflskh/yddapi | src/lib/authcode.js | JavaScript | mit | 6,669 |
var AmpersandModel = require('ampersand-model')
var ansiHtml = require('ansi-html')
var moment = require('moment')
module.exports = AmpersandModel.extend({
idAttribute: 'date',
props: {
type: ['info', 'warn', 'error', 'debug'],
date: 'number',
message: 'string'
},
session: {
visible: ['boolean'... | codydaig/guvnor | web/client/models/log.js | JavaScript | mit | 827 |
import React from 'react';
import profileImage from '../../Assets/profile-image.gif';
export default class TripCard extends React.Component { //eslint-disable-line
render() {
const { detailedInfo, customerName, orderStatus, orderAddress, orderPilot, orderTime, orderId, id } = this.props;
return (
<a on... | theterra/newsb | app/components/TripCard/index.js | JavaScript | mit | 2,465 |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var Review = new Schema({
title: String,
body: String,
user: { type: Schema.Types.ObjectId, ref: 'Review' },
// rating 1-5 or 1-10. it will depend on logic
rating: { type: Number },
created_at: { type: Date, default: Date.now },
updated_at... | itemsapi/itemsapi-starter | src/models/review.js | JavaScript | mit | 412 |
'use strict';
const TaskClass = require('./-base');
class ConfigTask extends TaskClass {
run(key, value) {
if (value === undefined) {
return this.ui.writeLine(this.app.config.get(key));
}
return this.app.config.set(key, value);
}
}
module.exports = ConfigTask;
| cwarden/nest-cli | lib/tasks/config.js | JavaScript | mit | 287 |
import React from 'react'
import Icon from 'react-icon-base'
const MdFullscreenExit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 13.4h5v3.2h-8.2v-8.2h3.2v5z m-3.2 18.2v-8.2h8.2v3.2h-5v5h-3.2z m-10-18.2v-5h3.2v8.2h-8.2v-3.2h5z m-5 13.2v-3.2h8.2v8.2h-3.2v-5h-5z"/></g>
</Icon>
)
... | bengimbel/Solstice-React-Contacts-Project | node_modules/react-icons/md/fullscreen-exit.js | JavaScript | mit | 352 |
'use strict';
/**
* @ngdoc function
* @name tbsApp.controller:ExploreBuddyListCtrl
* @description
* # ExploreBuddyListCtrl
* Controller of the tbsApp
*/
angular.module('tbsApp').controller('ExploreBuddyListCtrl', function ($scope, $filter, RBuddy) {
$scope.characters = [];
$scope.nb_col = 3;
RBuddy.a... | m-atthieu/tbs.desile.fr | front/scripts/controllers/explore-buddy-list.js | JavaScript | mit | 930 |
/**
* This file includes all of the configuration variables used by the Node.js
* module. If there's a configurable element of the module and it's not
* described in here, there's been a terrible mistake.
*/
exports.config = {
/**
* Array of application names.
*
* @env NEW_RELIC_APP_NAME
*/
app_name... | SpencerLawrenceBrown/FantasticAlphaV2 | node_modules/newrelic/lib/config.default.js | JavaScript | mit | 13,236 |
import { initialDatepickerState } from './bs-datepicker.state';
import { BsDatepickerActions } from './bs-datepicker.actions';
import { calcDaysCalendar } from '../engine/calc-days-calendar';
import { formatDaysCalendar } from '../engine/format-days-calendar';
import { flagDaysCalendar } from '../engine/flag-days-calen... | CatsPoo/ShiftOnline | angular.src/node_modules/ngx-bootstrap/datepicker/reducer/bs-datepicker.reducer.js | JavaScript | mit | 9,828 |
import JsonApiSerializer from 'ember-json-api/json-api-serializer';
import DS from 'ember-data';
/**
* Serializer for the JSON API
*/
export default JsonApiSerializer.extend(DS.EmbeddedRecordsMixin, {
attrs: {
// tell the serializer that these attribute
// names are always expected to be embedded... | tylergibson/OxideFleet | app/serializers/application.js | JavaScript | mit | 487 |
// Uses citeproc-js to generate example citaitons
define([ 'src/options',
'src/exampleCitations',
'src/diff',
'src/debug',
'src/citeprocLoadSys',
'external/citeproc/citeproc',
'jquery'
],
function (
CSLEDIT_options,
CSLEDIT_exampleCitations,
CSLEDIT_diff,
debug,
citeprocSys,
C... | citation-style-editor/csl-editor-demo-site | docs/cslEditorLib/src/citationEngine.js | JavaScript | mit | 9,065 |
#!/usr/bin/env node
var _ = require('underscore')._;
var winston = require('winston');
var filesizereport = require('./report');
var optimist = require('optimist')
.options('output', {
alias: 'o'
, 'default': './report.json'
, describe: 'Output JSON file name.'
})
.options('path',... | adireddy/file-size-report | main.js | JavaScript | mit | 1,058 |
/**
Perform ONE_CLASS evaluation as describe on
http://scikit-learn.org/stable/auto_examples/svm/plot_oneclass.html#example-svm-plot-oneclass-py
Training set is composed of 200 inliers examples (see `one-class.train.json`)
Test set is composed of :
- 100 inliers (labelled 1)
- 20 outliers (labelled -... | vasopikof/node-svm | examples/one-class-example.js | JavaScript | mit | 1,929 |
'use strict';
describe('Controllers Tests ', function () {
beforeEach(module('<%= angularAppName %>'));
describe('SessionsController', function () {
var $scope, SessionsService;
beforeEach(inject(function ($rootScope, $controller, Sessions) {
$scope = $rootScope.$new();
... | sunilp/spring-angular-way | node_modules/generator-jhipster/app/templates/src/test/javascript/spec/app/account/sessions/_sessions.controller.spec.js | JavaScript | mit | 1,162 |
import Ember from 'ember';
import {
module,
test
} from 'qunit';
import startApp from 'my-app/tests/helpers/start-app';
var application;
module('Acceptance: Foo', {
beforeEach: function() {
application = startApp();
},
afterEach: function() {
Ember.run(application, 'destroy');
}
});
test('visiti... | searls/ember-cli | tests/fixtures/generate/acceptance-test-expected.js | JavaScript | mit | 440 |
import hammerhead from '../../deps/hammerhead';
import testCafeCore from '../../deps/testcafe-core';
import { ClickOptions } from '../../../../test-run/commands/options';
import ClickAutomation from '../click';
import typeText from './type-text';
import getKeyCode from '../../utils/get-key-code';
import getKeyIdentifie... | AlexanderMoskovkin/testcafe | src/client/automation/playback/type/index.js | JavaScript | mit | 10,323 |
// Generated by CoffeeScript 1.6.3
/*
jQuery Lighter
Copyright 2013 Kevin Sylvestre
1.0.6
*/
(function() {
"use strict";
var $, Animation, Lighter,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
$ = jQuery;
Animation = (function() {
function Animation() {}
A... | boylee1111/boylee1111.github.io | javascripts/jquery.lighter.js | JavaScript | mit | 8,194 |
import Ember from 'ember';
const { Route } = Ember;
export default Route.extend({
/**
* Preload the school configurations
* to avoid a popin later
*/
async afterModel(session){
const course = await session.get('course');
const school = await course.get('school');
await school.get('configuratio... | gboushey/frontend | app/routes/session/index.js | JavaScript | mit | 334 |
'use strict'
// Add/Remove Snake Message
// https://github.com/ClitherProject/Slither.io-Protocol/blob/master/Protocol.md#type_s_detail
// deflate the message
export function deflate(packet) {
const id = packet.readInt16()
// Remove snake
if(packet.size() === 6) {
const reason = packet.read()
return... | dahquan/rattlesnake | src/messages/snake.js | JavaScript | mit | 877 |
function signInWithGoogle(){
var googleAuthProvider = new firebase.auth.GoogleAuthProvider;
firebase.auth().signInWithPopup(googleAuthProvider)
.then(function(data){
console.log(data);
})
.catch(function(error){
console.log(error);
... | gfazenda/MultiplatformPRJ | views/js/js_functions.js | JavaScript | mit | 2,714 |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @m... | friendsofagape/mt2414ui | node_modules/@angular/router/esm2015/testing/src/testing.js | JavaScript | mit | 1,332 |
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 90310031, "Date": "01\/31\/2009", "Time": "09:17 AM", "Police District": 4.0, "Offense 1": "THEFT OF MOTOR VEHICLE PARTS\/ACCESSORIES", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense ... | marquettecomputationalsocialscience/clusteredcrimemaps | individual_work/marielle/KMeans/datamound/data_2009-theft_jan.js | JavaScript | mit | 792,199 |
/**
* Usage:
*
* export ASANA_API_KEY=...
* node events.js PROJECT_ID
*/
var asana = require('asana');
// Arguments / constants
var apiKey = process.env.ASANA_API_KEY;
var projectId = process.env.ASANA_PROJECT_ID;
// Set up a client using basic authentication
var client = asana.Client.create().useBasicAuth(a... | gitumarkk/node-asana | examples/events/events.js | JavaScript | mit | 1,043 |
/* */
'use strict';
module.exports.definition = {
set: function (v) {
this._setProperty('-webkit-flex-flow', v);
},
get: function () {
return this.getPropertyValue('-webkit-flex-flow');
},
enumerable: true,
configurable: true
};
| TelerikFrenchConnection/JS-Applications-Teamwork | lib/npm/cssstyle@0.2.29/lib/properties/webkitFlexFlow.js | JavaScript | mit | 271 |
/* */
var parse = require("../index");
var test = require("tape");
test('-', function(t) {
t.plan(5);
t.deepEqual(parse(['-n', '-']), {
n: '-',
_: []
});
t.deepEqual(parse(['-']), {_: ['-']});
t.deepEqual(parse(['-f-']), {
f: '-',
_: []
});
t.deepEqual(parse(['-b', '-'], {boolean: 'b'}), ... | thomjoy/turftest | src/jspm_packages/npm/minimist@1.1.1/test/dash.js | JavaScript | mit | 946 |
let concatenate = require('concatenate');
let babel = require('babel-core');
let glob = require('glob');
class FileCollection {
/**
* Create a new FileCollection instance.
*
* @param {Array|string} files
*/
constructor(files = []) {
this.files = [].concat(files);
}
/**
... | Qinjianbo/blog | node_modules/laravel-mix/src/FileCollection.js | JavaScript | mit | 2,554 |
if (! this.sh_languages) {
this.sh_languages = {};
}
sh_languages['gherkin_sk'] = [
[
[
/#/g,
'sh_comment',
1
],
[
/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
'sh_number',
-1
],
[
/^(?:[\s]*(... | riaan53/gherkin-syntax-highlighters | shjs/sh_gherkin_sk.js | JavaScript | mit | 1,447 |
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
PixelRatio,
TouchableOpacity,
Image,
} from 'react-native';
import ImagePicker from '../componets/RCTImagePicker';
export default class App extends React.Component {
state = {
avatarSource: null,
... | littlethree/DemoProject | app/counter/containers/image.js | JavaScript | mit | 3,688 |
(function(ab){
"use strict";
ab.sketch = function(three){
var scene = three.scene(),
camera = three.camera(),
renderer = three.renderer(),
//controls = new THREE.OrbitControls( camera ),
shells = [],
init = function(){
var geometry,
material,
mesh,
sphereBSP,
sphereBSP2,
... | doathousandmore/atm_0004 | dist/6-3-2015_10-1-46/scripts/sketch.js | JavaScript | mit | 2,550 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/serviceBusManagement2/lib/models/sBSubscription.js | JavaScript | mit | 8,099 |
/** @jsx h */
import h from '../../../helpers/h'
export default function (change) {
change.insertInline({
type: 'emoji',
isVoid: true
})
}
export const input = (
<state>
<document>
<image>
<cursor />
</image>
</document>
</state>
)
export const output = (
<state>
<d... | AlbertHilb/slate | packages/slate/test/changes/at-current-range/insert-inline/is-void.js | JavaScript | mit | 406 |
'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('files');
| syed-mohsin/next-gen | modules/files/client/files.client.module.js | JavaScript | mit | 129 |
/* @flow */
import React from "react";
import { toJS } from "mobx";
import { observer } from "mobx-react";
import { Output } from "@nteract/display-area";
import { richestMimetype } from "@nteract/transforms";
import Slider from "react-rangeslider";
import { transforms, displayOrder } from "./transforms";
import typ... | rgbkrk/hydrogen | lib/components/result-view/history.js | JavaScript | mit | 1,814 |
/**
* Copyright 2015 Telerik AD
*
* 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 ... | joosti/dbShare | public/lib/kendo-ui-core/src/js/cultures/kendo.culture.nqo.js | JavaScript | mit | 3,233 |
import React from 'react';
const PaginationPage = ({ page }) => (
<a href="#page">{page}</a>
);
PaginationPage.propTypes = {
page: React.PropTypes.number.isRequired,
};
export default PaginationPage;
| muhammadsasmito/meteor-solr | imports/ui/components/Pagination/PaginationPage.js | JavaScript | mit | 207 |
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import ICInputField from '../components/ICInputField';
const SpaceMaillistField = props => {
const validate = event => {
props.setError('maillist', '');
const maillist = event.target.value.trim().replace('@sfu.ca', '');
if (!m... | sfu/canvas-spaces | app/jsx/shared/SpaceMaillistField.js | JavaScript | mit | 1,117 |
(function () {
'use strict';
angular
.module('client')
.controller('DashboardController', DashboardController);
DashboardController.$inject = ['userService'];
function DashboardController(userService) {
var vm = this;
vm.username = null;
userService.getProfile().then(function (resp) {
... | nepaul/learn-web-development-by-codes | jwt-authenticate-angular/client/app/dashboard/dashboard.js | JavaScript | mit | 407 |
/**
* Dependencies
*/
var Waterline = require('waterline');
module.exports = Waterline.Collection.extend({
tableName: 'paymentTable',
identity: 'payment',
connection: 'associations',
attributes: {
amount: 'integer',
type: 'string',
apartment: {
model: 'apartment',
columnName: 'apar... | devinivy/waterline-adapter-tests | interfaces/associations/support/fixtures/hasMany.child.fixture.js | JavaScript | mit | 534 |
// warning: This file is auto generated by `npm run build:tests`
// Do not edit by hand!
process.env.TZ = 'UTC'
var expect = require('chai').expect
var ini_set = require('../../../../src/php/info/ini_set') // eslint-disable-line no-unused-vars,camelcase
var ini_get = require('../../../../src/php/info/ini_get') // eslin... | kvz/phpjs | test/languages/php/strings/test-stristr.js | JavaScript | mit | 977 |
/* eslint no-console: 'off' */
'use strict';
const fs = require('fs');
const path = require('path');
const yaml = require('js-yaml');
const filePath = path.resolve(__dirname, './default.yml');
let config;
try {
config = yaml.safeLoad(fs.readFileSync(filePath, 'utf8')) || {};
} catch (e) {
console.error(`Error re... | singpath/example-app | packages/eslint-config-singpath/index.js | JavaScript | mit | 467 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 16c0 .55.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1H8c-.55 0-1 .45-1 1zm-3 5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-8h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1... | lgollut/material-ui | packages/material-ui-icons/src/FormatAlignCenterRounded.js | JavaScript | mit | 496 |
'use strict';
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
console.log('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
var customLaunchers = {
sauceLabsInternetExplorer9: {
base: 'SauceLabs',
browserName: 'inte... | jcodling/node-OPC-UA-server | node_modules/r-pi-usonic/node_modules/expressive-assertion/karma.conf.js | JavaScript | mit | 2,145 |
'use strict'
module.exports = function (dep) {
const start = function (argv, binary, platform, device) {
const { glob, shell, log, configProvider, bridge, portProvider, process, join, utils, cucumberHtmlReporter } = dep
const patata = dep.patata.get()
// Implementation files
let includeFiles = glob
... | appersonlabs/patata | lib/modules/run-generic.js | JavaScript | mit | 4,007 |
require('./custom/jquery-jvectormap-de-merc-en');
require('./custom/jquery-jvectormap-es-merc-en');
require('./custom/jquery-jvectormap-fr-merc-en');
require('./custom/jquery-jvectormap-us-aea-en');
require('./custom/jquery-jvectormap-us-lcc-en');
require('./custom/jquery-jvectormap-world-mill-en');
require('./custom/m... | pdev-mooc/mooc | mooc-web/src/main/webapp/views/learning-1.1.0/lib/maps/js/vector/main.js | JavaScript | mit | 18,036 |
// Underscore.js 1.7.0
// http://underscorejs.org
// (c) 2009-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the ... | baiyanghese/underscore | underscore.js | JavaScript | mit | 48,557 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {SchedulingEvent, TimelineData} from '../types';
import type {
Interaction,
MouseMoveInteraction,
Re... | facebook/react | packages/react-devtools-timeline/src/content-views/SchedulingEventsView.js | JavaScript | mit | 6,567 |
'use strict';
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
root: true,
plugins: ['ava'],
extends: 'plugin:ava/recommended',
parserOptions: {
'ecmaVersion': 8,
},
rules: {
'ava/no-cb-test': ERROR,
'no-restricted-syntax': OFF,
'max-nested-... | vimeo/player.js | test/.eslintrc.js | JavaScript | mit | 355 |
/*! jQuery UI - v1.9.2 - 2013-02-01
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete.... | georgeunix/dato1 | web/plugins/datatable/media/js/jquery-ui-1.9.2.custom.js | JavaScript | mit | 450,133 |
/**
* Module dependencies.
*/
var fs = require('fs');
var url = require('url');
var net = require('net');
var tls = require('tls');
var http = require('http');
var https = require('https');
var WebSocket = require('ws');
var assert = require('assert');
var events = require('events');
var inherits = require('util').... | VinhNT23/Angular2Demo1 | node_modules/agent-base/test/test.js | JavaScript | mit | 12,641 |
(function () {
'use strict';
angular.module('hutmap.services').
factory('forms', ['$location', function($location) {
var forms = {};
forms.getFormUrl = function() {
return '/forms' + $location.path();
}
return forms;
}]);
})();
| dylanfprice/hutmap | hutmap/static/js/services/forms.js | JavaScript | mit | 263 |
hljs.LANGUAGES.gherkin_de = function() {
return {
defaultMode: {
contains: [
{
className: 'keyword',
begin: '^\\s*(Aber |Und |Dann |Wenn |Gegeben sei |Angenommen |\\* |Beispiele|Szenariogrundriss|Szenario|Grundlage|Funktionalität)',
relevance: 0
},
{
... | cucumber/gherkin-syntax-highlighters | highlight.js/gherkin_de.js | JavaScript | mit | 745 |
/**
* Client tests
*/
import React from "react";
import {
renderIntoDocument,
findRenderedDOMComponentWithClass
} from "react-dom/test-utils";
import ShallowRenderer from "react-test-renderer/shallow";
import Component from "../../../src/components/playground";
describe("components/playground", () => {
it("ha... | FormidableLabs/component-playground | test/client/specs/playground.spec.js | JavaScript | mit | 1,261 |
'use strict';
/**
* Getter/setter for the current working directory.
*
* ```js
* console.log(app.cwd);
* //=> /dev/foo/bar/
* ```
* Or set:
*
* ```js
* app.cwd = 'foo';
* ```
*/
module.exports = function(app) {
var cwd = app.option('cwd') || process.cwd();
Object.defineProperty(app, 'cwd', {
get:... | jonschlinkert/app-boilerplate | lib/transforms/cwd.js | JavaScript | mit | 418 |
/*globals Handlebars */
/*jshint newcap:false*/
require("metamorph");
/**
@module ember
@submodule ember-handlebars
*/
var get = Ember.get, set = Ember.set, handlebarsGet = Ember.Handlebars.get;
var Metamorph = requireModule('metamorph');
require('ember-views/views/view');
require('ember-handlebars/views/metamorph_... | michaelBenin/ember.js | packages/ember-handlebars/lib/views/handlebars_bound_view.js | JavaScript | mit | 9,360 |
var searchData=
[
['w',['W',['../structAbstractCacheState.html#a0341b578a4a02a543bc4ec958c74572c',1,'AbstractCacheState::W()'],['../structMachineAST.html#a7be75092347b31f6909ca9acfcff93e0',1,'MachineAST::W()']]]
];
| vandersonmr/GEOS | docs/html/search/variables_13.js | JavaScript | mit | 217 |
/**
* Copyright 2014 Google Inc. All Rights Reserved.
*
* 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 appli... | MonoHearted/Flowerbless | node_modules/youtube-api/node_modules/googleapis/apis/taskqueue/v1beta1.js | JavaScript | mit | 6,608 |
var structstd_1_1tr1_1_1gtest__internal_1_1_tuple_element_3_01true_00_012_00_01_g_t_e_s_t__10___t_u_p_l_e___07_t_08_01_4 =
[
[ "type", "structstd_1_1tr1_1_1gtest__internal_1_1_tuple_element_3_01true_00_012_00_01_g_t_e_s_t__10___t_u_p_l_e___07_t_08_01_4.html#a2162d0e4f4c93fb1fdedb1938b844fbe", null ],
[ "type", ... | larlf/mirror_client | doc/html/structstd_1_1tr1_1_1gtest__internal_1_1_tuple_element_3_01true_00_012_00_01_g_t_e_s_t__10___t_u_p_l_e___07_t_08_01_4.js | JavaScript | mit | 488 |
/**
* Module dependencies
*/
var util = require('./util');
var assert = require('assert');
/**
* Testing data
*/
var fixture = require('./fixture');
/**
* me
*/
describe('wpcom.me', function(){
// Global instances
var wpcom = util.wpcom();
var me = wpcom.me();
describe('wpcom.me.get', function(){
... | DNESS/wpcom.js | test/test.wpcom.me.js | JavaScript | mit | 2,206 |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', //... | nconrad/bulk-ui | systemjs.config.js | JavaScript | mit | 2,204 |
'use strict';
describe('Controller: SettingsCtrl', function () {
// load the controller's module
beforeEach(module('tbsApp'));
var SettingsCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
SettingsCtrl =... | m-atthieu/tbs.desile.fr | test/spec/controllers/settings.js | JavaScript | mit | 518 |
var _ = require('underscore'),
$ = require('../cheerio'),
updateDOM = $.parse.update,
slice = Array.prototype.slice;
var removeChild = function(parent, elem) {
$.each(parent.children, function(i, child) {
if (elem === child)
parent.children.splice(i, 1);
});
};
/*
Creates an array of cheer... | wheeyls/meetingVis | node_modules/facile/node_modules/cheerio/lib/api/manipulation.js | JavaScript | mit | 4,797 |
'use strict';
var assert = require('assert');
var async = require('async');
var fs = require('fs');
var path = require('path');
var merge = require("lodash/merge");
var statuses = require('./utils/constants').statuses;
var MongoConnection = require('./utils/mongo-connection');
var StepFileReader = require('./steps'... | awapps/mongration | src/migration.js | JavaScript | mit | 6,733 |
var expect = require('chai').expect;
// Subject
var Session = require('../lib/session.js'),
OpenTok = require('../lib/opentok.js');
// Fixtures
var apiKey = '123456',
apiSecret = '1234567890abcdef1234567890abcdef1234567890',
// This is specifically concocted for these tests (uses fake apiKey/apiSecret abo... | AntonioMA/opentok-node | test/session-test.js | JavaScript | mit | 3,470 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M18.32 5.68c-.36.36-.39.92-.07 1.32 1.45 1.82 2.21 4.31 1.53 6.92-.79 3.05-3.18 5.33-6.21 5.94C8.47 20.87 4 16.93 4 12c0-4.08 3.05-7.44 7-7.93v2.02c-3.13.53... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/TrackChangesRounded.js | JavaScript | mit | 836 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57... | Kagami/material-ui | packages/material-ui-icons/src/FitnessCenterTwoTone.js | JavaScript | mit | 491 |
var searchData=
[
['onstatuschangelistener_20_2dp',['OnStatusChangeListener -p',['../d9/d4e/protocol_on_status_change_listener_01-p.html',1,'']]]
];
| TakayukiHoshi1984/DeviceConnect-Docs | Specification/API_Reference/iOS_SDK/search/classes_1.js | JavaScript | mit | 151 |
module.exports={A:{A:{"2":"K D G E A B hB"},B:{"1":"J M H I","2":"2 C d"},C:{"1":"0 1 3 4 7 8 9 e f g h i j k l m n o L q r s t u v w x y z HB GB BB CB FB","2":"2 6 eB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c YB XB"},D:{"1":"0 1 3 4 7 8 9 k l m n o L q r s t u v w x y z HB GB BB CB FB RB MB LB kB JB... | pcclarke/civ-techs | node_modules/caniuse-lite/data/features/element-closest.js | JavaScript | mit | 924 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../utils/Class');
var Clamp = require('../math/Clamp');
var Extend = require('../utils/object/Extend');
/**
* @classdesc
... | photonstorm/phaser | src/textures/Frame.js | JavaScript | mit | 21,802 |
var registerComponent = require('../core/component').registerComponent;
var bind = require('../utils/bind');
var trackedControlsUtils = require('../utils/tracked-controls');
var checkControllerPresentAndSetup = trackedControlsUtils.checkControllerPresentAndSetup;
var emitIfAxesChanged = trackedControlsUtils.emitIfAxesC... | dmarcos/aframe | src/components/gearvr-controls.js | JavaScript | mit | 6,349 |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var NotificationPower = React.createClass({
displayName: 'NotificationPower',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M16.01 7L16 3h-2v... | checkraiser/material-ui2 | lib/svg-icons/notification/power.js | JavaScript | mit | 465 |
'use strict';
const fs = require('fs');
const path = require('path');
// Prevent caching of this module so module.parent is always accurate
delete require.cache[__filename];
const parentFile = module.parent.filename;
const parentDir = path.dirname(parentFile);
module.exports = (dir, opts) => {
dir = path.resolve(par... | instapapas/instapapas | node_modules/req-all/index.js | JavaScript | mit | 1,166 |
/**
* jQuery plugin for Sortable
* @author RubaXa <trash@rubaxa.org>
* @license MIT
*/
(function (factory) {
"use strict";
if (typeof define === "function" && define.amd) {
define(["jquery"], factory);
}
else {
/* jshint sub:true */
factory(jQuery);
}
})(function (jQuery) {
"use stric... | cdnjs/cdnjs | ajax/libs/jquery-sortablejs/1.6.1/jquery-sortable.js | JavaScript | mit | 36,075 |
import type NodePath from "../../../traversal/path";
import type File from "../../file";
import memoiseDecorators from "../../helpers/memoise-decorators";
import ReplaceSupers from "../../helpers/replace-supers";
import * as nameMethod from "../../helpers/name-method";
import * as defineMap from "../../helpers/define-m... | casser/babel | src/babel/transformation/transformers/es6/classes.js | JavaScript | mit | 15,280 |
'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('boardroom'); | dpxxdp/stdio | public/modules/boardroom/boardroom.client.module.js | JavaScript | mit | 132 |
'use strict';
var dbConfig = require('../config/db-config');
var knex = require('knex')(dbConfig);
module.exports = require('bookshelf')(knex);
| marcusnielsen/bh-tournament | server/bookshelf/index.js | JavaScript | mit | 146 |
import app from '../../../src/app'
describe('user service', () => {
it('registered the users service', () => {
expect(app.service('users')).toBeDefined()
})
})
| do-ws-2016/do-ws-2016 | test/services/user/index.test.js | JavaScript | mit | 169 |
import React from "react";
import PropTypes from "prop-types";
import injectSheet from "react-jss";
import { forceCheck } from "react-lazyload";
import ListHeader from "./ListHeader";
import SpringScrollbars from "../SpringScrollbars";
import ListItem from "./ListItem";
const styles = theme => ({
posts: {
posit... | takakoshimizu/halcyondays | src/components/Navigator/List.js | JavaScript | mit | 2,771 |
function ajax(url,callback){
var ajaxRequest;
try{ajaxRequest = new XMLHttpRequest();} catch (e){try{ajaxRequest=new ActiveXObject('Msxml2.XMLHTTP');} catch (e) {try{ajaxRequest=new ActiveXObject('Microsoft.XMLHTTP');} catch (e){alert("Something broke!");return false;}}}
if (callback){ajaxRequest.onreadystatechange=... | gunyarakun/cookie-clicker-generator | public/cookie-clicker/ajax.js | JavaScript | mit | 494 |
// Generated by CoffeeScript 1.6.2
var copy, end, middle, numbers, start;
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
start = numbers.slice(0, 3);
middle = numbers.slice(3, 6);
end = numbers.slice(6);
copy = numbers.slice(0);
| isaacs/coffee-script | documentation/js/slices.js | JavaScript | mit | 226 |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from '@material-ui/utils';
import { unstable_composeClasses as composeCla... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.36/modern/OutlinedInput/OutlinedInput.js | JavaScript | mit | 9,799 |
// This library is distributed in the hope that it will be useful but without
// any warranty; without even the implied warranty of merchantability or
// fitness for a particular purpose.
// The use and distribution terms for this software are covered by the Eclipse
// Public License 1.0 (http://opensource.org/... | llnek/cocos2d | src/web/tetris/src/s/resolve.js | JavaScript | epl-1.0 | 3,140 |
/*
* jQuery UI Selectmenu version 1.5.0pre
*
* Copyright (c) 2009-2010 filament group, http://filamentgroup.com
* Copyright (c) 2010-2013 Felix Nagel, http://www.felixnagel.com
* Licensed under the MIT (MIT-LICENSE.txt)
*
* https://github.com/fnagel/jquery-ui/wiki/Selectmenu
*/
(function( $ ) {
$.widget("ui.... | P2Pvalue/cbpp-directory-code | sites/all/themes/CSS2948Directory/scripts/jquery.ui.selectmenu.js | JavaScript | gpl-2.0 | 25,880 |
/*! jQuery UI - v1.9.0-rc.1 - 2012-08-24
* http://jqueryui.com
* Includes: jquery.ui.datepicker-et.js
* Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(a){a.datepicker.regional.et={closeText:"Sulge",prevText:"Eelnev",nextText:"Järgnev",currentText:"Täna",monthNames:["Jaanuar","V... | eauxnguyen/civicrm-starterkit-drops-7 | profiles/civicrm_starterkit/modules/civicrm/packages/jquery/jquery-ui-1.9.0/development-bundle/ui/minified/i18n/jquery.ui.datepicker-et.min.js | JavaScript | gpl-2.0 | 892 |
jQuery(function($){
$(document).ready(function(){
// back to top
$('a[href=#toplink]').click(function(){
$('html, body').animate({scrollTop:0}, 200);
return false;
});
// PrettyPhoto Without gallery
$(".prettyphoto-link").prettyPhoto({
theme: 'pp_default', // light_rounded / dark_rounded / l... | Dominic--/CCPT | wp-content/themes/sublime-press/js/custom.js | JavaScript | gpl-2.0 | 2,859 |
/***************************************************************************
* (C) Copyright 2003-2021 - Stendhal *
***************************************************************************
* *
* This pr... | AntumDeluge/arianne-stendhal | srcjs/stendhal/main.js | JavaScript | gpl-2.0 | 11,113 |
self.onmessage = function ( event )
{
var data = event.data;
if( data.action == "extract" )
extract( data.imageData, data.tileWidth, data.tileHeight, data.tolerance );
};
function sendStart()
{
self.postMessage( {action: "extract-start"} );
}
function sendProgress( progress )
{
self.postMessage( {
action: "e... | andremichelle/platforms | tools/html/tileset-extractor/tileset-extractor-worker.js | JavaScript | gpl-2.0 | 2,516 |
/*
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dojox.gfx.canvas"],
["require", "dojox.... | fedora-infra/packagedb | pkgdb/static/js/dojox/gfx/canvas.xd.js | JavaScript | gpl-2.0 | 20,849 |
/*
* Copyright (C) Vulcan Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is dis... | jheizmann/AutomaticSemanticForms | scripts/datapicker.js | JavaScript | gpl-2.0 | 5,570 |
var plot__core9_8cpp =
[
[ "drawStippleLine", "plot__core9_8cpp.html#ad731fbb865476d91fab1ab9288a16f83", null ],
[ "add_a_symbol_to_plot", "plot__core9_8cpp.html#a6f933b83f292138e49fc9057684a1b4b", null ],
[ "add_channel_selection_to_layers_plot", "plot__core9_8cpp.html#a63d5e7a094f416fd40690d465ffacdd0", n... | AntonLanghoff/whitecat_crossplateform | docAPIwhitecat/html/plot__core9_8cpp.js | JavaScript | gpl-2.0 | 7,899 |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | xstory61/server | scripts/portal/guild1F01.js | JavaScript | gpl-2.0 | 1,267 |
var i = 0;
var t = 0;
var nlclass = "rogue";
var nlclassFolder = "rogue";
nltree[i] = "Assassination"; i++;
nltree[i] = "Combat"; i++;
nltree[i] = "Subtlety"; i++;
i = 0;
nltalent[i] = ["Improved Eviscerate"]; i++;
nltalent[i] = ["Remorseless Attacks"]; i++;
nltalent[i] = ["Malice"]; i++;
nltalent[i] = ["Ruthlessnes... | borgotech/Infinity_MaNGOS | sql/Tools & Optional/Websites/I_CSwowd/pvpmini/shared/wow-com/includes-client/talents/rogue/donotlocalize.js | JavaScript | gpl-2.0 | 2,864 |
dojo._xdResourceLoaded(function(dojo, dijit, dojox){
return {depends: [["provide", "dijit.form.nls.pt-pt.Textarea"]],
defineResource: function(dojo, dijit, dojox){dojo.provide("dijit.form.nls.pt-pt.Textarea");dojo._xdLoadFlattenedBundle("dijit.form", "Textarea", "pt-pt", {"iframeEditTitle":"área de edição","iframeFocus... | fedora-infra/packagedb | pkgdb/static/js/dijit/form/nls/pt-pt/Textarea.xd.js | JavaScript | gpl-2.0 | 369 |
/** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { groupBy, map } from 'lodash';
import classNames from 'classnames';
/**
* Internal dependencies
*/
import ShippingServiceGroup from './group';
import FormLegend from 'components/forms/form-legend';... | Automattic/woocommerce-services | client/extensions/woocommerce/woocommerce-services/views/service-settings/shipping-services/index.js | JavaScript | gpl-2.0 | 2,651 |