code stringlengths 2 1.05M |
|---|
'use strict'
const constants = require('../constants')
const recursorUtils = require('../recursorUtils')
const object = require('./object')
const SHALLOW_EQUAL = constants.SHALLOW_EQUAL
const UNEQUAL = constants.UNEQUAL
function describe (props) {
return new DescribedSetValue(Object.assign({
size: props.value.... |
var fs = require('fs')
var path = require('path')
var spawn = require('child_process').spawn
var exe = process.argv[0]
var cwd = process.cwd()
for (var dep in process.versions) {
console.log(' %s@%s', dep, process.versions[dep])
}
console.log('')
runScripts(fs.readdirSync(__dirname))
function runScripts (fileNa... |
'use strict'
const constants = require('./constants')
const describe = require('./describe')
const lineBuilder = require('./lineBuilder')
const recursorUtils = require('./recursorUtils')
const shouldCompareDeep = require('./shouldCompareDeep')
const symbolProperties = require('./symbolProperties')
const themeUtils = r... |
var helper = require('../lib');
var request = helper.getRequest();
describe('static-versus-parametrized-API', function(){
before(function (done) {
helper.drakov.run({sourceFiles: 'test/example/md/static-versus-parametrized-api.md'}, done);
});
after(function (done) {
helper.drakov.stop(don... |
'use strict';
module.exports = {
succeed: (res) => {},
fail: (e) => {}
};
|
import { getAbsolutePath } from '../helpers';
import initContext from './initContext';
import validateAndUpdateSettings from './helpers/validateAndUpdateSettings';
/**
* Builds the Roc configuration object without running the cli.
*/
export default function buildContext(dirPath, projectConfigPath, validate = true) ... |
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Should=e()}}(function(){var define,module,exports;return (function e(t,n,r){function... |
function p2kwiet428023489545_btnSubmitProfile_onClick_seq0(eventobject) {
return updatePushSubscription.call(this);
} |
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.Control.MousePosition
* The MousePosition control displays geo... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { build } from 'ember-data-factory-guy';
import { inlineSetup } from '../../helpers/utility-methods';
module('FixtureConverter', function(hooks) {
setupTest(hooks);
inlineSetup(hooks, '-rest');
test("#getTransformKeyFunction w... |
(function() {
var CommandUpsideDown, Icommand,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; ... |
import React from 'react';
import SparklinesLine from './SparklinesLine';
import SparklinesBars from './SparklinesBars';
import SparklinesSpots from './SparklinesSpots';
import SparklinesReferenceLine from './SparklinesReferenceLine';
import SparklinesNormalBand from './SparklinesNormalBand';
import DataProcessor from ... |
/**
* 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
*/
export * from './src/dom/Hover';
|
const hyperquest = require('hyperzip')(require('hyperdirect'))
, bl = require('bl')
const maxConcurrent = 25
var queue = []
, inFlight = 0
function go () {
if (inFlight > maxConcurrent || !queue.length)
return
var req = queue.shift()
inFlight++
hyperquest(req.url, req.options).pip... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
/**
* @ngdoc service
* @name umbraco.services.umbRequestHelper
* @description A helper object used for sending requests to the server
**/
function umbRequestHelper($http, $q, notificationsService, eventsService, formHelper, overlayService) {
return {
/**
* @ngdoc method
* @name umbraco.... |
/**
* LocalStorage.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class will simulate LocalStorage on IE 7 and return the native version on modern browse... |
/*! @license Firebase v4.3.0
Build: rev-bd8265e
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WebSocketConnection = undefined;
exports.setWebSocketImpl = setWebSocketImpl;
var _app = require('../../app');
var _app2 = _interopReq... |
var prettyURLs = require('../middleware/pretty-urls'),
cors = require('../middleware/api/cors'),
auth = require('../auth');
/**
* Auth Middleware Packages
*
* IMPORTANT
* - cors middleware MUST happen before pretty urls, because otherwise cors header can get lost
* - cors middleware MUST happen after auth... |
'use strict';
describe('groupByFilter', function() {
var filter;
beforeEach(module('a8m.group-by'));
beforeEach(inject(function ($filter) {
filter = $filter('groupBy');
}));
it('should get array as collection, property(nested to) as identifier and ' +
'returns the composed aggregate object.', funct... |
$(function () {
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'spline',
type: 'spline'
},
title: {
text: 'Monthly Average Temperature'
},
s... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate... |
/*!
* froala_editor v3.0.6 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var turnOrder = require('./turn-order-8e019db0.js');
require('immer');
require('./plugin-random-7425844d.js');
require('lodash.isplainobject');
/*
* Copyright 2018 The boardgame.io Authors
*
* Use of this source code is governed by a ... |
var fse = require( "fs-extra" ),
fs = require( "fs" ),
phpjs = require( "phpjs" ),
isFunc = function ( fn ) {
return (typeof fn === "function");
},
packStr = function ( str ) {
str = str.split( /\n|\r|\t|\v/ );
for ( var i = str.length; i--; ) {
str[ i ] = str[ i ].replace( /^\s+|\s+$/,... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _objectWithoutPr... |
var gulp = require("gulp");
var istanbul = require("gulp-istanbul");
var react = require("gulp-react");
var mocha = require("gulp-mocha");
var plumber = require("gulp-plumber");
var jshint = require("gulp-jshint");
var browserify... |
OC.L10N.register(
"comments",
{
"Cancel" : "Zrušiť",
"Save" : "Uložiť",
"Comment" : "Komentár"
},
"nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);");
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33V9h4.93l.13-.24c.24-.45.94-.28.94.24h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h1.17... |
export default (theme) => ({
root: {
...theme.flexRowCenter,
alignItems: 'center',
cursor: 'pointer',
height: '200px',
width: '300px',
margin: theme.spacing(0.5),
padding: theme.spacing(1.3),
overflow: 'hidden'
},
newIcon: {
width: '6rem',
height: '6rem',
transition: 'a... |
'use strict';
var xml2js = require('xml2js');
var ejs = require('ejs');
var Session = require('./session');
var List = require('./list');
var WXBizMsgCrypt = require('wechat-crypto');
/*!
* 响应模版
*/
var tpl = ['<xml>',
'<ToUserName><![CDATA[<%-toUsername%>]]></ToUserName>',
'<FromUserName><![CDATA[<%-fromUse... |
'use strict';
var rimraf = require('rimraf');
var expect = require('expect');
function cleanup(glob) {
return function(cb) {
this.timeout(20000);
expect.restoreSpies();
if (!glob) {
return cb();
}
// Async del to get sort-of-fix for https://github.com/isaacs/rimraf/issues/72
rimraf(... |
(function (tree) {
tree.Quoted = function (str, content, escaped, i) {
this.escaped = escaped;
this.value = content || '';
this.quote = str.charAt(0);
this.index = i;
};
tree.Quoted.prototype = {
toCSS: function () {
if (this.escaped) {
return this.value;
} else {
... |
//---------------------------------------------------------------------
// QRCode for JavaScript
//
// Copyright (c) 2009 Kazuhiko Arase
//
// URL: http://www.d-project.com/
//
// Licensed under the MIT license:
// http://www.opensource.org/licenses/mit-license.php
//
// The word "QR Code" is registered trademark of ... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'af', {
toolbarCollapse: 'Verklein werkbalk',
toolbarExpand: 'Vergroot werkbalk',
toolbarGroups: {
document: 'Document',
cl... |
import React from 'react'
import styled from 'styled-components'
import {Flex, Image, Box} from 'rebass'
import cliLogo from '../images/cli-logo.svg'
import {Link} from 'gatsby'
import {NavLink, BasicNavLink} from './links'
import MobileSidebar from '../components/MobileSidebar'
import hamburger from '../images/hamburg... |
import Ember from 'ember';
export default Ember.Route.extend({
model: function() {
return Ember.A([
{ userName: 'jane', role: 'admin', disabledGender: false, admin: true },
{ userName: 'john', role: 'guest', disabledGender: true, admin: false }
]);
}
});
|
var util = require('util'),
extendWithGettersAndSetters = require('../util/extendWithGettersAndSetters'),
errors = require('../errors'),
Text = require('./Text');
function Json(config) { // Avoid clobbering the global JSON object
Text.call(this, config);
}
util.inherits(Json, Text);
extendWithGetters... |
$(document).ready(function () {
var canvas = document.getElementById('canvas'),
ctx = canvas.getContext('2d'),
w = canvas.width,
h = canvas.height,
level = 1;
var Food = function () {
this.x = Math.floor(Math.random() * (w - snake.size) / snake.size);
this.y = Math.floor(Math.random() * (h - snake.size) ... |
'use strict';
/**
* Sets up a ProjectManager
*
* @module aws/projectInit
*/
const awsProjectManager = require('./projectManager');
const makePromiseApi = require('../util').makePromiseApi;
const https = require('https');
/**
* @returns {Q.Promise}
*/
function initAwsProject(config) {
const a = require('aws-sd... |
YUI.add('shape-setfillandstroke-tests', function(Y) {
var suite = new Y.Test.Suite("Graphics: Set Shape Fill And Stroke"),
ShapeTestTemplate,
parentDiv = Y.DOM.create('<div id="testdiv" style="width: 400px; height: 400px;">'),
DOC = Y.config.doc;
DOC.body.appendChild(parentDiv);
ShapeTestTemplate = functi... |
//Target
/*
<label>
<input type="checkbox"><span class="ripple"></span><span class="check"></span> Checkbox
</label>
*/
var builder = require('focus').component.builder;
var React = require('react');
var type = require('focus').component.types;
var fieldGridBehaviourMixin = require('../../mixin/field-grid-behaviour'... |
/**
* @author alteredq / http://alteredqualia.com/
* @author mrdoob / http://mrdoob.com/
*/
import { FrontSide, BackSide, DoubleSide, RGBAFormat, NearestFilter, PCFShadowMap, RGBADepthPacking, NoBlending } from '../../constants.js';
import { WebGLRenderTarget } from '../WebGLRenderTarget.js';
import { MeshDepthMate... |
import app from '../../../js/app';
import { expect } from 'chai';
import { describe, it, before } from 'mocha';
import Service from '../../../js/models/listing/Service';
describe('the Service model', () => {
before(function () {
// creating a dummy polyglot t function, so our
// model doesn't bomb. It's not ... |
define(['backbone'], function (Backbone) {
var channel = _.extend({}, Backbone.Events);
return channel;
}); |
import React, { PropTypes, Component } from 'react';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { getFragment, getFragmentName } from 'meteor/vulcan:core';
export default function withDocument (options) {
const { collection, pollInterval = 20000 } = options,
queryName = ... |
/*!
* ignore
*/
'use strict';
const assert = require('assert');
const mquery = require('mquery');
/**
* Helper for multiplexing promise implementations
*
* @api private
*/
const store = {
_promise: null
};
/**
* Get the current promise constructor
*
* @api private
*/
store.get = function() {
return ... |
'use strict'
var helper = require("../../../helper");
var DailyOperationManager = require('../../../../src/managers/production/finishing-printing/daily-operation-manager');
var codeGenerator = require('../../../../src/utils/code-generator');
var kanbanDataUtil = require('./kanban-data-util');
var machineDataUtil = requ... |
/* globals fireGlobalEvent, readMessage, RoomManager, Favico, favico, menu */
Meteor.startup(function() {
Tracker.autorun(function() {
let unreadCount = 0;
let unreadAlert = false;
const subscriptions = ChatSubscription.find({open: true}, { fields: { unread: 1, alert: 1, rid: 1, t: 1, name: 1, ls: 1, unreadAle... |
// @flow
// Spaced out comments /* non-comments
// BEFORE FUNCTION
export //too many comments
function /*Random*/ test /*weird*/ (x: number) /*Comments*/ {
// ONE
/* Two */ const a = 4 + x; // END OF a = 4...
// Three
return /* BETWEEEN */ `${a}` // END OF return ...
} // END */
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
// Croatian
function numpf(n, f, s, t) {
var n10;
n10 = n % 10;
if (n10 === 1 && (n === 1 || n > 20)) {
return f;
} else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
return s;
} else {
... |
!function(t,o){"function"==typeof define&&define.amd?define(o):"object"==typeof module?module.exports=o():t.augment=o()}(this,function(){"use strict";var f=function(){},i=Array.prototype.slice,n=function(t,o){var n=f.prototype="function"==typeof t?t.prototype:t,r=new f,e=o.apply(r,i.call(arguments,2).concat(n));if("obj... |
/*
Copyright (c) 2004-2009, 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
*/
if(!dojo._hasResource["dojox.drawing"]){
dojo._hasResource["dojox.drawing"]=true;
dojo.provide("dojox.drawing");
dojo.requi... |
const REQUEST_STATUSES = [
{
value: 'Unassigned',
label: 'Unassigned'
},
{
value: 'Assigned',
label: 'Assigned'
},
{
value: 'Contacted',
label: 'Contacted'
},
{
value: 'Awaiting Response',
label: 'Awaiting Response'
},
{
value: 'Scheduled',
label: 'Scheduled'
... |
'use strict';
var RangeIterator = function (startIndex, count) {
var self = this;
self._working = startIndex-1;
self._startIndex = startIndex;
self._count = count;
};
module.exports = RangeIterator;
RangeIterator.prototype.moveNext = function () {
var self = this;
if (self._working < self._startIndex+self._... |
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_hk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&... |
// PORTAL DETAILS MAIN ///////////////////////////////////////////////
// main code block that renders the portal details in the sidebar and
// methods that highlight the portal in the map view.
window.renderPortalDetails = function(guid) {
selectPortal(window.portals[guid] ? guid : null);
if (guid && !portalDeta... |
/*! `latex` grammar compiled for Highlight.js 11.3.1 */
(()=>{var e=(()=>{"use strict";return e=>{const n=[{begin:/\^{6}[0-9a-f]{6}/},{
begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/
},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a=[{
className:"keyword",begin:/\\/,relevanc... |
var getColors = require('../getColors');
var randomBetween = require('../randomBetween');
module.exports = function(canvas, opt) {
var ctx = canvas.getContext('2d');
var colors = getColors(randomBetween(1, 4));
colors.forEach(function(color) {
ctx.beginPath();
ctx.moveTo(randomBetween(0, opt.width), ran... |
/**
* curl i18n plugin
*
* (c) copyright 2011, unscriptable.com
*
*/
define(/*=='i18n',==*/ function () {
});
|
var assert = require('assert');
describe('integral test', function() {
it('Process result must be equal to expected.css', function() {
var config = this.Comb.getConfig('csscomb');
this.comb.configure(config);
this.shouldBeEqual('integral.css', 'integral.expected.css');
});
it('Issu... |
import test from '../../';
test(t => {
t.pass();
});
|
// fix arrow end issues:
// https://github.com/DmitryBaranovskiy/raphael/issues/471
var chart_config = {
chart: {
container: "#OrganiseChart-big-commpany",
levelSeparation: 45,
rootOrientation: "WEST",
nodeAlign: "BOTTOM",
connectors: {
type: "step",
style: {
"stroke-width": 2
... |
function sample() {
alert('Hello from sample.js!')
}
|
//>>built
define("dojox/editor/plugins/nls/mk/PageBreak",{"pageBreak":"Прелом на страница"});
|
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
import React from "react"
import { TypographyStyle, GoogleFont } from "react-typography"
import typography from "./.cache/typography"
exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
setHeadComponents([
<TypographyStyle key={`TypographyStyle`} typography={typography} />,
<GoogleFont key={`G... |
/* jshint node: true */
'use strict';
var Promise = require('ember-cli/lib/ext/promise');
var path = require('path');
var fs = require('fs');
var denodeify = require('rsvp').denodeify;
var readFile = denodeify(fs.readFile);
var DeployPluginBase = require('ember-cli-deploy-plugin');
module.exports = {... |
/*!
* froala_editor v1.2.4 (http://editor.froala.com)
* Copyright 2014-2014 Froala
*/
/**
* Traditional Chinese spoken in Taiwan.
*/
$.Editable.LANGS['zh_tw'] = {
translation: {
"Bold": "\u7c97\u9ad4",
"Italic": "\u659c\u9ad4",
"Underline": "\u5e95\u7dda",
"Strikethrough": "\u522a\u9664\u7dda",... |
exports.formatCoverage = function (n) {
var str = Math.floor(n * 10000)/100 + '%';
return str;
};
var symbols = {
ok: '✓',
warn: '⁍',
err: '✱'
};
// With node.js on Windows: use symbols available in terminal default fonts
if ('win32' === process.platform) {
symbols.ok = '\u221A';
symbols.warn = '\u204D';... |
$(document).ready(function(){$(".dropdown-toggle").dropdown()}); |
const isIntersecting = (a, b) =>
!(a.x >= (b.x + b.width) ||
(a.x + a.width) <= b.x ||
a.y >= (b.y + b.height) ||
(a.y + a.height) <= b.y);
export default (a, b) => {
if (isIntersecting(a, b)) {
const left = Math.max(a.x, b.x);
const right = Math.min(a.x + a.width, b.x + b.... |
/**
* Verifier process
* Pokemon Showdown - http://pokemonshowdown.com/
*
* This is just an asynchronous implementation of a verifier for a
* signed key, because Node.js's crypto functions are synchronous,
* strangely, considering how everything else is asynchronous.
*
* I wrote this one day hoping it would hel... |
/*global defineSuite*/
defineSuite([
'DataSources/SampledPositionProperty',
'Core/Cartesian3',
'Core/ExtrapolationType',
'Core/JulianDate',
'Core/LagrangePolynomialApproximation',
'Core/LinearApproximation',
'Core/ReferenceFrame',
'DataSources/Pos... |
import { test } from '../qunit';
import { localeModule } from '../qunit-locale';
import moment from '../../moment';
localeModule('af');
test('parse', function (assert) {
var tests = 'Januarie Jan_Februarie Feb_Maart Mrt_April Apr_Mei Mei_Junie Jun_Julie Jul_Augustus Aug_September Sep_Oktober Okt_November Nov_Desem... |
var util = require('util');
var events = require('events');
var Q = require('q');
var Nightwatch = require('../../index.js');
function ClientManager() {
events.EventEmitter.call(this);
this.setMaxListeners(0);
}
util.inherits(ClientManager, events.EventEmitter);
ClientManager.prototype.init = function(opts) {
... |
/*globals define, angular, alert*/
define([
'angular',
'text!./templates/propertyValue.html',
'css!./styles/propertyValue.css',
'./valueWidgets'
], function (ng, defaultTemplate) {
'use strict';
angular.module(
'isis.ui.propertyValue', [
'isis.ui.valueWidgets'
]... |
import{useRegisteredDropTarget}from"./useRegisteredDropTarget";import{useOptionalFactory}from"../useOptionalFactory";import{useDropTargetMonitor}from"./useDropTargetMonitor";import{useDropTargetConnector}from"./useDropTargetConnector";import{useCollectedProps}from"../useCollectedProps";import{useConnectDropTarget}from"... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.6.4.3_A1_T2;
* @section: 15.6.4.3;
* @assertion: Boolean.prototype.valueOf() returns this boolean value;
* @description: calling with argument;
*/
//CHECK#1
if(Boole... |
/* onDelay: THIS FILE IS STILL A WORK IN PROGRESS.
See: http://github.com/bgrins/bindWithDelay for current version
*/
(function($) {
$.fn.onDelay = function(events, selector, data, handler, timeout, throttle) {
// (evt, handler, timeout)
if ($.isFunction(selector)) {
throttle = handler;
timeo... |
//
constructor() {
super(abc);
//
|
(function() {
"use strict";
FastClick.attach(document.body);
function isMobile() {
return $(window).width() <= 700;
}
// TODO: Don't do this in JS. Ugh.
if (isMobile()) {
$("body").addClass("no-toc");
}
// Build the TOC
var toc = $("#toc-padding");
$(".chapter").each(function(chapterNumber) {
$(this... |
var test = require('tap').test;
var corpus = require('../fixtures/corpus');
var sentiment = require('../../lib/index');
var dataset = corpus;
var result = sentiment(dataset);
test('synchronous corpus', function (t) {
t.type(result, 'object');
t.equal(result.score, -3);
t.equal(result.tokens.length, 1416);... |
import Serializer from 'ember-cli-mirage/serializer';
import SerializerRegistry from 'ember-cli-mirage/serializer-registry';
import schemaHelper from '../schema-helper';
import { module, test } from 'qunit';
module('mirage:serializer:associations sideloading - collection', {
beforeEach: function() {
this.schema ... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/optable/MathOperators.js
*
* Copyright (c) 2010-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
exports.listeners = {
wield: function (l10n)
{
return function (location, player, players)
{
player.sayL10n(l10n, 'WIELD');
player.equip(location, this);
}
},
remove: function (l10n)
{
return function (player)
{
player.sayL10n(l10n, 'REMOVE');
}
},
};
|
/**
* Лента
*/
;var ls = ls || {};
ls.userfeed = (function ($) {
var $that = this;
this.isBusy = false;
this.options = {
selectors: {
userList: '.js-userfeed-userlist',
friendList: '.js-userfeed-friendlist',
blogList: '.js-userfeed-bloglist',
... |
module.exports={title:"XDA Developers",slug:"xdadevelopers",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>XDA Developers</title><path d="'+this.path+'"/></svg>'},path:"M13.84 3.052V0h7.843v17.583H13.84v-3.024h4.591V3.052zM5.569 14.53V3.024h4.592V0H2.318v17.583H6.98L10.16... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: "ExponentPart :: ExponentIndicator ( /+/-) 0 DecimalDigits is allowed"
es5id: 7.8.3_A4.2_T3
description: "ExponentIndicator :: e"
---*/
//CHECK#0
if (0e-01 !== 0) {
$ERROR(... |
/*! Raven.js 3.26.4 (7d7202b) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof expor... |
/*! jQuery UI - v1.10.2 - 2013-03-20
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.hr={closeText:"Zatvori",prevText:"<",nextText:">",currentText:"Danas",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Li... |
// grunt-exec
// ==========
// * GitHub: https://github.com/jharding/grunt-exec
// * Original Copyright (c) 2012 Jake Harding
// * Copyright (c) 2016 grunt-exec
// * Licensed under the MIT license.
module.exports = function(grunt) {
var cp = require('child_process')
, f = require('util').format
, _ = grunt.u... |
version https://git-lfs.github.com/spec/v1
oid sha256:4e77344150c55f4be4e5641342294ca226a39b4fd6e17a80436ff1a2c456b461
size 2521
|
/**
@license
* @pnp/pnpjs v1.1.2-2 - pnp - rollup library of core functionality (mimics sp-pnp-js)
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2018 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https:github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
(func... |
/**
* @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
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
'use strict';
exports.BattleAbilities = {
"frisk": {
inherit: true,
desc: "When this Pokemon enters the field, it identifies the opponent's held item; in double battles, the held item of an unrevealed, randomly selected opponent is identified.",
shortDesc: "On switch-in, this Pokemon identifies a random foe's h... |
module.exports = {
'named routes': function (browser) {
browser
.url('http://localhost:8080/named-routes/')
.waitForElementVisible('#app', 1000)
.assert.count('li a', 3)
// assert correct href with base
.assert.attributeContains('li:nth-child(1) a', 'href', '/named-routes/')
.ass... |
THREE.Ocean = function ( renderer, camera, scene, options ) {
// flag used to trigger parameter changes
this.changed = true;
this.initial = true;
// Assign required parameters as object properties
this.oceanCamera = new THREE.OrthographicCamera(); //camera.clone();
this.oceanCamera.position.z = 1;
this.render... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: "EscapeSequence :: 0"
es5id: 7.8.4_A5.1_T1
description: String.fromCharCode(0x0000)
---*/
//CHECK#1
if (String.fromCharCode(0x0000) !== "\0") {
$ERROR('#1: String.fromCharC... |
/**
* @fileoverview Rule to validate spacing before function paren.
* @author Mathias Schreck <https://github.com/lo1tuma>
* @copyright 2015 Mathias Schreck
* See LICENSE in root directory for full license.
*/
"use strict";
//------------------------------------------------------------------------------
// Rule D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.