text
stringlengths
3
1.05M
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[function(e,t,n){"use strict";e.exports=n(192)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createGlobalStyle",(function(){return at})),n.d(t,"css",(function(){return we})),n.d(t,"isStyledComponent",(function(){return _})),n.d(t,"keyframes",(function(){...
(function ($) { ns.init = function () { ns.$ = H5P.jQuery; if (H5PIntegration !== undefined && H5PIntegration.editor !== undefined) { ns.basePath = H5PIntegration.editor.libraryPath; ns.fileIcon = H5PIntegration.editor.fileIcon; ns.ajaxPath = H5PIntegration.edito...
import React from 'react'; import './App.css'; import { BrowserRouter as Router, Switch, Route, } from 'react-router-dom'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Teams from '../components/Teams/Teams'; import Header from '../components/Header/Header'; import Home from '....
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test genesisd with different proxy configuration. Test plan: - Start genesisd's with different proxy c...
//chech first exercise
(self.webpackChunksymfony=self.webpackChunksymfony||[]).push([[107],{30107:function(n,t,e){(function(){function n(n,t){var e,l=n.split("."),r=H;l[0]in r||!r.execScript||r.execScript("var "+l[0]);for(;l.length&&(e=l.shift());)l.length||void 0===t?r=r[e]?r[e]:r[e]={}:r[e]=t}function t(n,t){function e(){}e.prototype=t.pro...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
#ifndef RBDL_HUMAN36_FIXTURE #define RBDL_HUMAN36_FIXTURE #include "rbdl/rbdl.h" struct Human36 { RigidBodyDynamics::Model *model; RigidBodyDynamics::Model *model_emulated; RigidBodyDynamics::Model *model_3dof; RigidBodyDynamics::Math::VectorNd q; RigidBodyDynamics::Math::VectorNd qdot; RigidBodyDynamics...
""" 实现获取 下一个排列 的函数,算法需要将给定数字序列重新排列成字典序中下一个更大的排列。 如果不存在下一个更大的排列,则将数字重新排列成最小的排列(即升序排列)。 必须 原地 修改,只允许使用额外常数空间。 """ class Solution(object): # 中间 有个 冒泡排序 。。。从小到大 排序 def nextPermutation(self, nums): """ :type nums: List[int] :rtype: None Do not return anything, modify nums in-place inst...
var test = require('tape'); var getSeanceTopic = require('../get-seance-topic'); var callNextTick = require('call-next-tick'); var _ = require('lodash'); function createMockWordnok(frequencies) { // return createWordnok({ // apiKey: config.wordnikAPIKey // }); return { getWordFrequencies: function mockg...
import disnake as discord import requests import json from disnake.ext import commands from api.check import utils, block from api.server import base, main class Panda(commands.Cog): def __init__(self, client): self.client = client @commands.command() @block.block() async def panda(self, ctx...
/*! For license information please see main.55a362bcfdee7f5a4171.hot-update.js.LICENSE.txt */ self.webpackHotUpdatefrontend("main",{"./src/components/correlation.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ _...
/** * @author: Est <codeest.dev@gmail.com> * @date: 2017/5/7 * @description: */ import { Dimensions, } from 'react-native' const {height, width} = Dimensions.get('window'); module.exports = { window_height: height, window_width: width, text_dark_primary: '#000000DE', text_dark_second: '#00000...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
# Implementation of HALGAN by OffWorld, Inc. Paper: arxiv.org/pdf/1901.11529.pdf # # Licensed under the MIT License (the "License") # You may not use this file except in compliance with the License. # You may obtain a copy of the License at https://opensource.org/licenses/MIT # # Unless required by applicable law, any ...
"""test_encoding.py - tests for deserializing parquet data.""" import array import io import numpy as np import struct import fastparquet.encoding from fastparquet import parquet_thrift def test_int32(): """Test reading bytes containing int32 data.""" assert 999 == fastparquet.encoding.read_plain( ...
import Dev from '../models/Dev'; import parseStringAsArray from '../utils/parseStringAsArray'; module.exports = { async index(req, res) { const { latitude, longitude, techs } = req.query; const techsArray = parseStringAsArray(techs); const devs = await Dev.find({ techs: { $in: techsArray, ...
from __future__ import division from __future__ import print_function import numpy as np import pandas as pd import pickle as pkl from numpy import random import json from collections import Counter from simulator.nlg import UserNlg from simulator.agent.core import Action, SystemAct, UserAct from simulator.agent.Gener...
const express = require('express') const router = express.Router() router.get(':id', (req, res, next) => { res.send('get drawing by id') }); router.post('/', (req, res, next) => { res.send('create drawing') }); module.exports = router;
#!/usr/bin/env python #coding:utf8 import mongoengine from .base import BaseMongoStorage from config import DB_HOST, DB_PORT, DB_NAME mongoengine.connect(DB_NAME, host=DB_HOST, port=DB_PORT) class UserStorage(BaseMongoStorage, mongoengine.Document): """store music info key str name ...
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2021 bitrate16 __title__ = 'Peripage A6/A6+ buetooth printing utility' __version__ = '0.4' __author__ = 'bitrate16' __license__ = 'MIT' __copyright__ = 'Copyright (c) 2021 bitrate16' import time import math import qrcode import socket import bluetooth from PIL...
import React from "react"; import { Link, graphql } from "gatsby"; import Masonry from "react-masonry-component"; import Page from "../components/Page"; import { Grid } from "react-flexbox-grid"; import { Helmet } from "react-helmet"; const ProjectsPage = ({ data }) => { return ( <div className="sheet"> <H...
# Python - 2.7.6 Test.describe('Basic tests') Test.assert_equals(triple_trouble('aaa', 'bbb', 'ccc'), 'abcabcabc') Test.assert_equals(triple_trouble('aaaaaa', 'bbbbbb', 'cccccc'), 'abcabcabcabcabcabc') Test.assert_equals(triple_trouble('burn', 'reds', 'roll'), 'brrueordlnsl') Test.assert_equals(triple_trouble('Bm', 'a...
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "MultiFirstPerson/MultiFirstPersonCore.h" #include "GameFramework/PlayerController.h" #include "MultiFirstPersonPlayerController.generated.h" class AMultiFirstPersonCharacter; /** * */ UCLASS() class MULTIFIRSTPE...
"use strict"; (function() { var data = [ { dataFilter: 'knots', href: '/blog/ropework-gallery/', image: 'assets/landing/images/portfolio/knots-gallery.jpg', isLink: true, title: 'Knots Gallery', subtitle: 'blog gallery', description: 'A gallery of Kiril\'s decorative rope...
class CanvasUtil { /** * Lets a developer know if the canvas element is supported. * @return A boolean indicating canvas support. * @use {@code CanvasUtil.hasCanvas();} */ static hasCanvas() { return (!document.createElement('canvas').getContext) ? false : true; } static hasWebGL() { ...
from __future__ import print_function """ From Thavamanikumar et al. 2015: FileS1 is data for 1975 SNPS from CxH FileS2 is data for 1483 SNPs from SxA FileS3 is for polymorphics markers common to both populations. FileS4 is just Chromosome 5A FileS5 is everything except 5A """ import numpy as np import os import glo...
DEFAULT_CONFIG = { 'BATCH_SIZE': 128, 'DATASET': 'wd50k_100_new', 'DEVICE': 'cpu', 'EMBEDDING_DIM': 200, 'ENT_POS_FILTERED': True, 'EPOCHS': 100, 'EVAL_EVERY': 5, 'LEARNING_RATE': 0.0001, 'MAX_QPAIRS': 15, # control how many 0s in an item 'MODEL_NAME': 'stare_transformer', ...
/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id: irtkCrossCorrelationSimilarityMetric.h 665 2012-08-29 21:45:17Z ws207 $ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP...
# Imports from django.urls import path from . import views urlpatterns = [ path('login', views.login, name='login'), path('register', views.register, name='register'), path('logout', views.logout, name='logout'), path('dashboard', views.dashboard, name='dashboard'), ]
import { Network_124 } from '..'; export default Network_124;
# MIT License # # Copyright (c) 2018 Yuxin Wang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
/* * ES2015 TypedArray and Node.js Buffer built-ins */ #include "duk_internal.h" /* * Helpers for buffer handling, enabled with DUK_USE_BUFFEROBJECT_SUPPORT. */ #if defined(DUK_USE_BUFFEROBJECT_SUPPORT) /* Map class number (minus DUK_HOBJECT_CLASS_BUFOBJ_MIN) to a bidx for the * default internal prototype. *...
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); <% if (props.jsPreprocessor.srcExtension === 'es6' || props.jsPreprocessor.key === 'typescript') { -%> var webpack = require('webpack-stream'); <% } -%> var tasks = require('...
#!/usr/bin/env python #-*- coding: utf-8 -*- ##--------------------------------------------------------------------------------------- # # Markdown-LaTex # complete: includes all blocks except ephemeral # yml: uses a yaml Front Matter from config.txt # pdf: is ready to convert to pdf (or latex) via pandoc ...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __markAsModule = (target) => __defProp(target...
#!/usr/bin/python import traceback import hashlib from valarie.controller.messaging import add_message from valarie.controller.flags import touch_flag from valarie.dao.document import Collection from valarie.dao.utils import sucky_uuid from valarie.model.datastore import File, create_binary_file from valarie.model....
import unittest from lexref.model import Value class TestCompatible(unittest.TestCase): def test(self): self.assertTrue(Value.compatible('AMBRA', 'AMBRA')) self.assertFalse(Value.compatible('AMBRA_B', 'AMBRA_BB')) self.assertTrue(Value.compatible('AMBRA_B', 'AL_B')) self.assertTr...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || fu...
!function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e||(e=window),t&&t.fn.dataTable||(t=require("datatables.net")(e,t).$),n(t,e,e.document)}:n(jQuery,window,document)}(function(f,p,o,...
from os import path from setuptools import setup, find_packages import versioneer this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup(name='pysagereader', version=versioneer.get_version(), cm...
# Copyright (c) Microsoft Corporation. # Licensed under the Apache License 2.0. from azext_aro._client_factory import cf_aro from azext_aro._params import load_arguments from azext_aro.commands import load_command_table from azure.cli.core import AzCommandsLoader, ModExtensionSuppress from azure.cli.core.commands impo...
from vk_bot.core.modules.basicplug import BasicPlug class Online(BasicPlug): doc = "Список онлайн участников беседы" command = ("онлайн", "online",) def main(self): onlinenumber = 0 onlinelist = [] onlineid = self.vk.messages.getConversationMembers(peer_id=self.event.object.peer_id)[...
__author__ = 'yuxiang, davidmichelman' import os import datasets import datasets.linemod_ape import datasets.imdb import cPickle import numpy as np import cv2 class linemod_ape(datasets.imdb): def __init__(self, image_set, linemod_path=None): datasets.imdb.__init__(self, 'linemod_ape_' + image_set) ...
# -*- coding: utf-8 -*- # auxilium # -------- # Python project for an automated test and deploy toolkit. # # Author: sonntagsgesicht # Version: 0.1.8, copyright Saturday, 02 October 2021 # Website: https://github.com/sonntagsgesicht/auxilium # License: Apache License 2.0 (see LICENSE file) from logging import l...
import uvicorn from fastapi import FastAPI from app.api.api_v1.api import api_v1_router from app.celery_worker import send_verification_email from app.core.config import settings app = FastAPI() app.include_router(api_v1_router, prefix=settings.API_V1_STR) @app.get("/") def im_alive(): send_verification_email....
with open("newfile.txt", "r", encoding="UTF-8") as file: a = 0 while a < 20: file.write("\nHello World!") a += 1 for i in file: print(i, end="") content = file.read() print(content)
# coding: utf-8 # # Leave-One-Patient-Out classification of individual volumes # # Here, we train a classifier for each patient, based on the data of all the other patients except the current one (Leave One Out Cross-Validation). To this end, we treat each volume as an independent observation, so we have a very larg...
//******************************************************************* // // DESCRIPTION: Modulo gestione i2c bus // AUTHOR: // // HISTORY: // //******************************************************************* #include "LPC23XX.h" #include "config.h" #include "i2c.h" static int page_size; static int eeprom_c...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); var _asyncToGenerator3 = _interopRequireDefau...
'use strict'; angular.module('apitestbase').factory('DataTable', ['$resource', function($resource) { return $resource('api/testcases/:testcaseId/datatable/:verb', { }, { addColumn: { method: 'POST', params: { verb: 'addColumn' } }, deleteColumn: { m...
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 2 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ClusterConfigTimezone(obje...
import logging import sys import clipboard import requests from selenium.common.exceptions import NoSuchWindowException, TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver....
import React from 'react' import {connect} from 'react-redux' /** * COMPONENT */ export const Home = props => { const {username} = props return ( <div> <h3>Your inventory</h3> </div> ) } /** * CONTAINER */ const mapState = state => { return { username: state.auth.username } } export ...
import React, { useEffect, useRef, useCallback } from 'react'; import { Controller, useForm } from 'react-hook-form'; import { connect, useDispatch } from 'react-redux'; import { getCurrentPath, getSelectedPointsData } from '../../selectors'; import { Button, TextArea, TextInput } from '@wfp/ui'; import { FontAwesomeIc...
#!/usr/bin/env python3 # # linearize-data.py: Construct a linear, no-fork version of the chain. # # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import struct import re impo...
#pragma once #include <string> #include "Printer.h" class LocalPrinter : public Printer { static LocalPrinter m_Instance ; LocalPrinter() = default ; public: static LocalPrinter & GetInstance() ; void Print(const std::string & data) ; };
import asyncio from datetime import datetime import math # import logging from alttprbot.alttprgen import preset, spoilers, generator from alttprbot.database import spoiler_races, tournament_results # TODO switch to ORM from racetime_bot import monitor_cmd from .core import SahasrahBotCoreHandler class GameHandler...
/* * File: carouselButton.js * * Desc: Carousel Button widget that implements ARIA Authoring Practices */ /* * @constructor CarouselButton * * */ var CarouselButton = function (domNode, carouselObj) { this.domNode = domNode; this.carousel = carouselObj; this.direction = 'previous'; if (this.domNod...
// static/scripts/page.js class Page{ toKhDate(date){ var dt = new Date(date); var d = dt.getDate(); var m = dt.getMonth()+1; var y = dt.getFullYear(); var khDate = d+'/'+m+'/'+y; return khDate; } }//end class const page = new Page();
import os import numpy as np import torch from PIL import Image import imageio import argparse from options.test_options import TestOptions import util.functions as functions from util import keypoint_functions def draw_keypoints(kps, img, kp_color=(250, 30, 30), size_in_px=2): for kp in kps.keys(): kp_x...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import NavBar from './navBar'; export default class App extends Component { render() { return ( <div> <NavBar/> <div className='home-page-content-container'> <div className="content-container"> ...
// Config for standard-version // https://github.com/conventional-changelog/standard-version module.exports = { types: [ { type: 'feat', section: 'Features', }, { type: 'fix', section: 'Bug Fixes', }, { type: 'perf', section: 'Performance', }, { ty...
import unittest from test import client, OPEN_ID class FormTemplatesTestCase(unittest.TestCase): def test_get_form_temp_success(self): response = client.get('/api/launched_forms?open_id={}'.format(OPEN_ID)) data = response.get_json() self.assertEqual(data['err_msg'], 'ok') def test_ge...
# model settings model = dict( type="FasterRCNN", pretrained="torchvision://resnet50", backbone=dict( type="ResNet", depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, # TODO syncbn norm_cfg=dict(type="SyncBN", requires_grad=True), ...
import unittest from rdflib import Graph, RDF, Literal, XSD from pyshex.shapemap_structure_and_language.p1_notation_and_terminology import RDFGraph, RDFTriple from pyshex.utils.partitions import algorithm_u, partition_t, partition_2, filtered_integer_partition, integer_partition from tests.utils.setup_test import gen...
import os from glob import glob import textwrap import geopandas as gpd try: import kalasiris as isis except Exception as exception: from autocnet.utils.utils import FailedImport isis = FailedImport(exception) from subprocess import CalledProcessError from plio.io.io_gdal import GeoDataset from shap...
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 Jeff Epler for Adafruit Industries # # SPDX-License-Identifier: Unlicense """Capture an image from the camera and display it as ASCII art. This demo is designed to run on the Kaluga, but you ca...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright The PyTorch Lightning team. # # 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 i...
/** @flow * StratoDem Analytics : concat * Principal Author(s) : Michael Clawar * Secondary Author(s) : * Description : * * (c) 2016- StratoDem Analytics, LLC * All Rights Reserved */ import Immutable from 'immutable'; import DataFrame from '../../../core/frame'; import Series from '../../../core/series'; i...
from __future__ import print_function import DLFCN, sys, os sys.setdlopenflags(DLFCN.RTLD_GLOBAL+DLFCN.RTLD_LAZY) import pluginCondDBPyInterface as condDB a = condDB.FWIncantation() rdbms = condDB.RDBMS() conn = "frontier://FrontierPrep/CMS_COND_STRIP" # for develoment DB conn = "frontier://FrontierInt/CMS_COND_STRIP" ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const OptionsApply = require("./OptionsApply"); const AssetModulesPlugin = require("./asset/AssetModulesPlugin"); const JavascriptModulesPlugin = require("./javascript/JavascriptModulesPlugin"); const Js...
//===- AMDGPUMemoryUtils.h - Memory related helper functions -*- C++ -*----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
from nltk.corpus import stopwords from re import IGNORECASE, DOTALL, sub, compile from nltk.stem import WordNetLemmatizer from nltk import pos_tag from nltk.corpus import wordnet from src.utils.contractions import get_contractions def letters_only(text): letters = sub("[^a-zA-Z]", " ", text) return letters ...
""" CUDA driver bridge implementation NOTE: The new driver implementation uses a *_PendingDeallocs* that help prevents a crashing the system (particularly OSX) when the CUDA context is corrupted at resource deallocation. The old approach ties resource management directly into the object destructor; thus, at corruptio...
from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env("DJANGO_SECRET_KEY") # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts ALLOWED...
/******/ (() => { // webpackBootstrap /******/ "use strict"; var __webpack_exports__ = {}; /*!************************************************************!*\ !*** ../demo7/src/js/pages/crud/ktdatatable/api/events.js ***! \************************************************************/ // Class definition var KTDef...
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
#import <Foundation/Foundation.h> #import "EZObject.h" /** * eZmax API Definition (Full) * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.7 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI Generator (https://...
var app = angular.module('app', ['onsen', 'pascalprecht.translate', 'ngCordova', 'ngSanitize', 'angular-themer',]); app.init = function() { angular.bootstrap(document, ['app']); }; // Configuration app.config(['$translateProvider', 'themerProvider', function($translateProvider, themerProvider) { $transla...
from tests.context import ApiHttpServer from tornado.testing import AsyncHTTPTestCase import unittest import json import logging logging.disable(logging.CRITICAL) def test_function_no_params(): return { "result" : True } def test_function_no_return(): pass def test_function_two_params(paramon...
import { incompleteFallbackMessage } from '../reporters/helpers'; const dataRegex = /\$\{\s?data\s?\}/g; /** * Replace a placeholder with the value of a data string or object * @param {String} str * @param {String|Object} data */ function substitute(str, data) { // replace all instances of ${ data } with the val...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import <objc/NSObject.h> @class CKKSCondition, CKKSResultOperation, NSDate, NSOperationQueue, NSString; @protocol OS_dispatch_queue, OS_dispatch_...
"""Color and spectral data.""" import csv from functools import lru_cache from pathlib import Path import numpy as np from numpy import exp from scipy.interpolate import interp1d from scipy.constants import c, h, k # c - speed of light # h - planck constant # k - boltzman constant # standard illuminant information C...
# -*- coding: utf-8 -*- # ===============LICENSE_START======================================================= # Acumos Apache-2.0 # =================================================================================== # Copyright (C) 2017-2018 AT&T Intellectual Property & Tech Mahindra. All rights reserved. # ===========...
const SmashLogger = require('../../../../lib/util/smashLogger'); SmashLogger.verbose({ level: "disable" }); const Response = require('../../../../lib/middleware/apiGatewayProxyRest/lib/response'); const ApiGatewayProxyRest = require('../../../../lib/middleware/apiGatewayProxyRest/apiGatewayProxyRest'); const defaultHea...
var searchData= [ ['warn',['WARN',['../catch_8hpp.html#a108d6c5c51dd46e82a62b262394f0242',1,'catch.hpp']]], ['when',['WHEN',['../catch_8hpp.html#ab09e9b8186233f676ce6a23aebe89d6e',1,'catch.hpp']]] ];
from abmacd.abmacd_v3_vnpys import ABMACDStrategyByVN name = "abmacd" vnpy_backtesting_current_strategy = ABMACDStrategyByVN vnpy_backtesting_current_strategy_setting = { 'size': 10, 'sm_debug': False, 'macd_lvl': '1h15min', 'mswap_enable': True, 'stoploss_enable': True, 'cancel_enable': True...
from flask import Flask from config import config_options from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_uploads import UploadSet,configure_uploads,IMAGES # from flask_mail import Mail bootstrap =Bootstrap() db = SQLAlchemy() # mail =Mail(...
const utils = require('../utils/utils'); class BaseGenerator { constructor(grid) { this.grid = grid; this.dr = [2, 0, -2, 0]; this.dc = [0, 2, 0, -2]; } async connect(node1, node2) { await utils.sleep(utils.MEDIUM); node1.setAsEmptyNode(); node2.setAsEmptyNo...
import React from 'react'; import OrganisationRequestCreateForm from './components/RequestForm'; import { useDispatch } from 'react-redux'; import { addOrganisationRequest } from '../../../actions/organisationRequests'; import { useHistory } from 'react-router-dom'; function CreateOrganisationRequest() { const histo...
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import SystemRulesTable from './SystemRulesTable'; import { SortByDirection } from '@patternfly/react-table'; import { TITLE_COLUMN } from '../Constants'; import { remediationsResponse, system, profileRules } from '../Fixt...
import os from flask import Flask, render_template, session, redirect, url_for from flask.ext.bootstrap import Bootstrap from flask.ext.moment import Moment from flask.ext.wtf import Form from wtforms import StringField, SubmitField from wtforms.validators import Required app = Flask(__name__) app.config['SECRET_KEY'...
# -*- coding: utf-8 -*- """Deep Learning Models for news article summary classification This file contains the definition of three slightly different models for news article summary classification. """ from keras.layers import Input, Dense, GRU, TimeDistributed from keras.layers import Bidirectional, Dropout, LSTM f...
import template from './md-live.html'; const mdLiveController = class MdLiveController { constructor(StoreService, XmlConverterService) { 'ngInject'; this.StoreService = StoreService; this.XmlConverterService = XmlConverterService; this.mdjs = this.StoreService.getData().mdjs; }...
#!/usr/bin/python import os import sys import pylab from perf import run_benchmark fignum = 0 def plot_to_file(report, filename): global fignum fignum += 1 pylab.figure(fignum) run_to_label = { "stl" : "C++ STL", "thrust" : "Thrust", "compute" : "Boost.Compute", "bol...
// (c) ammap.com | SVG (in JSON format) map of Nigeria - High // areas: {id:"NG-AB"},{id:"NG-AD"},{id:"NG-AK"},{id:"NG-AN"},{id:"NG-BA"},{id:"NG-BE"},{id:"NG-BO"},{id:"NG-BY"},{id:"NG-CR"},{id:"NG-DE"},{id:"NG-EB"},{id:"NG-ED"},{id:"NG-EK"},{id:"NG-EN"},{id:"NG-FC"},{id:"NG-GO"},{id:"NG-IM"},{id:"NG-JI"},{id:"NG-KD"},...
import numpy as np import pytest import pandas as pd from pandas import DataFrame, Index, Series, concat, date_range import pandas._testing as tm class TestEmptyConcat: def test_handle_empty_objects(self, sort): df = DataFrame(np.random.randn(10, 4), columns=list("abcd")) baz = df[:5].copy() ...