text
stringlengths
3
1.05M
"""Test the parser and generator are inverses. Note that this is only strictly true if we are parsing RFC valid messages and producing RFC valid messages. """ import io import unittest from email import policy, message_from_bytes from email.message import EmailMessage from email.generator import BytesGenera...
import App, { Container } from 'next/app'; import React from 'react'; import withReduxStore from '../lib/with-redux-store'; import { Provider } from 'react-redux'; import '../static/style.scss'; class MyApp extends App { render () { const { Component, pageProps, reduxStore } = this.props; return ( <Co...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Straks Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import StraksTestFramework from t...
/*! * sweet-scroll * Modern and the sweet smooth scroll library. * @author tsuyoshiwada * @license MIT * @version 1.0.0 */ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.SweetScroll=n()}(this,function(){"use strict";function...
import argparse import torch import torch.nn.functional as F from src.util import Classifier def parse_arguments(): parser = argparse.ArgumentParser(description="Prediction arguments") parser.add_argument("--model_path", default="models/checkpoint.pth") parser.add_argument("--image_folder", default=None...
#https://programmers.co.kr/learn/courses/30/lessons/12934 def solution(n): answer = 0 if int(n**0.5)**2 == n: answer = (int(n**0.5)+1)**2 else: answer = -1 return answer
import unittest import uuid import json from bitmovin import Bitmovin, Response, Stream, StreamInput, EncodingOutput, ACLEntry, Encoding, \ ProgressiveWebMMuxing, MuxingStream, ACLPermission, SelectionMode from bitmovin.errors import BitmovinApiError from tests.bitmovin import BitmovinTestCase class ProgressiveWe...
# Copyright 2015 Rackspace # # 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 agree...
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.polar.radialaxis" _path_str = "layout.polar.radialaxis.tickfont" _valid_props = ...
// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
/* rsa.c The RSA publickey algorithm. Copyright (C) 2001 Niels Möller This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; ei...
var mongoose = require('mongoose'); var Subscription = new mongoose.Schema({ email: {type: String, required: true, index: {unique: true}, min: 6}, createdAt: {type: Date, default: Date.now}, updatedAt: {type: Date, default: Date.now}, canonical: {type: String, required: true}, isActive: {type: Bool...
import nose.tools as nt from django.test import TestCase from django.test.client import RequestFactory from django.test import Client from tests.contexts import StaffAreaContext from tests.factories.gbe_factories import ( ActFactory, ConferenceFactory, GenericEventFactory, PersonaFactory, ProfileFac...
import axios from "axios"; import Bytes from 'bytes' export async function system(base_url){ const url = `${base_url}/system` return await axios.get(url); } export function driveSettings(settings){ const getMajorTicks = (max) => { const divisor = (max < 100) ? (max < 10) ? 1 : 10 : 100; le...
var fs = require('fs'); var path = require('path'); var utils = require('../util/utils'); var Loader = require('pomelo-loader'); var pathUtil = require('../util/pathUtil'); var crypto = require('crypto'); module.exports = function (app, opts) { return new Component(app, opts); }; var Component = function (app, op...
import mkpy.dpath as dpath def test_search_paths_with_separator(): dict = {"a": {"b": {"c": {"d": 0, "e": 1, "f": 2}}}} paths = ["a", "a;b", "a;b;c", "a;b;c;d", "a;b;c;e", "a;b;c;f"] for (path, value) in dpath.util.search(dict, "/**", yielded=True, separator=";"): assert path in paths for (pat...
import React, { Component } from "react"; class Home extends Component{ constructor(props){ super(); } render(){ return( <p> This is Home</p> ); } } export default Home;
import logging import gzip import json import re import numpy as np from scipy.spatial import cKDTree import strax export, __all__ = strax.exporter() @export class InterpolateAndExtrapolate: """Linearly interpolate- and extrapolate using inverse-distance weighted averaging between nearby points. """ ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # daemoniker documentation build configuration file, created by # sphinx-quickstart on Sun Aug 28 13:14:48 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this #...
(function (window) { 'use strict'; var document = window.document; var body = document.body; var rootElement = document.documentElement; var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame...
########################################### # Suppress matplotlib user warnings # Necessary for newer version of matplotlib import warnings warnings.filterwarnings("ignore", category = UserWarning, module = "matplotlib") # # Display inline matplotlib plots with IPython from IPython import get_ipython get_ipython().run_...
(function(e){const r=e["da"]=e["da"]||{};r.dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 af %1","Align center":"Justér center","Align left":"Justér venstre","Align right":"Justér højre",Aquamarine:"Marineblå",Big:"Stor",Black:"Sort","Block quote":"Blot citat",Blue:"Blå","Blue marker":"Blå markør",Bold:"Fed"...
# -*- coding:utf-8 -*- # classの基本 # class クラス名: # 内部からアクセスする場合、self.メンバ変数 # メソッドはクラスで定義された関数 # 座標クラス class Coordinate: # コンストラクタ def __init__(self): self.x = 0 self.y = 0 # 平行移動メソッド def move(self, x, y): self.x += x self.y += y # 座標表示メソッド ...
//! \file //! \brief Page definitions //! \author Terry Mahaffey //! //! A page is 512 bytes of metadata contained in a PST file. Pages come in //! two general flavors: //! - BTree Pages (immutable) //! - Allocation Related Pages (mutable) //! //! The former are pages which collectively form the BBT and NBT. T...
# Generated by Django 3.1 on 2022-04-12 07:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('garpix_page', '0006_auto_20220412_0751'), ] operations = [ migrations.AlterField( model_name='pag...
import Asset from '../systems/AssetSystem/Asset'; import AssetSystem from '../systems/AssetSystem'; /** * Pack asset loader. * It serves also as fetch engine (it's subassets container). */ export default class PackAsset extends Asset { /** * Asset factory. * * @param {*} args - Factory parameters. * ...
import unittest from parameterized import parameterized from integration_tests.dataproc_test_case import DataprocTestCase class HBaseTestCase(DataprocTestCase): COMPONENT = 'hbase' INIT_ACTIONS = ['hbase/hbase.sh'] INIT_ACTIONS_FOR_NOT_HA = ['zookeeper/zookeeper.sh'] GCS_BUCKET = None @classmet...
#!/usr/bin/env python3 # Copyright (c) 2018 The Gthpcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test gthpcoind shutdown.""" from test_framework.test_framework import GthpcoinTestFramework from test_fram...
import DashboardLayout from "@/layout/dashboard/DashboardLayout.vue"; // GeneralViews import NotFound from "@/pages/NotFoundPage.vue"; // Admin pages import Dashboard from "@/pages/Dashboard.vue"; import CategoryPage from "@/pages/CategoryPage"; import TeamPage from "@/pages/TeamPage"; import ParticipantPage from "@/p...
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'codesnippet', 'fi', { button: 'Lisää koodileike', codeContents: 'Koodisisältö', emptySnippetError: 'Koodileik...
import React from 'react'; import './App.css'; import Bookcontainer from './component/Home/Bookcontainer'; const App = () => ( <Bookcontainer /> ); export default App;
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.svgFallback=t()}(this,function(){"use strict";function e(e,n){if(!t){var r=Array.from(document.getElementsByTagName("img"));if(0===r.length)return;r.forEach(function(t){if(!e||!t.clas...
var Db = require('../../lib/mongodb').Db, Server = require('../../lib/mongodb').Server; var _db = new Db('mydb', new Server('localhost', 27017, { auto_reconnect: true, poolSize: 2, socketOptions: { timeout: 30 * 1000 } })); _db.open(function(err, db) { if(err) throw err; // Insert a document ever...
import React, { Component } from 'react' import axios from 'axios' import AddTaskStatus from './edit/AddTaskStatus' import { Alert, Card, CardBody, Row } from 'reactstrap' import DataTable from '../common/DataTable' import TaskStatusFilters from './TaskStatusFilters' import TaskStatusItem from './TaskStatusItem' import...
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-01-23 14:28 from __future__ import unicode_literals from django.db import migrations, models def fill_is_shipping_required(apps, schema_editor): OrderLine = apps.get_model("order", "OrderLine") for line in OrderLine.objects.all(): if line.p...
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" const IndexPage = () => ( <Layout> <SEO title="Home" /> <h1>Hi people</h1> <p>Welcome to your new Gatsby site.</p> ...
/** * @license * Copyright Google LLC 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 */ (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = fact...
const insertYellow = require("./insertYellow"); const MAX_SECOND = 86400; const getAttributes = ({ _attributes }) => _attributes; const formatter = { trafficSignal: (json, children) => { const { id: nodeID, version, crossNo, crossName, date, signalGroup } = json; return { _attributes: { nodeI...
# Copyright 2020 MONAI Consortium # 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...
from __future__ import unicode_literals from django.urls import include, path, re_path from rest_framework import routers from ldb import viewsets, export from ldb.views import ( PersonDetailView, PersonDeleteView, OrganizationDetailView, OrganizationDeleteView, PersonEditView, OrganizationEdi...
#pragma once #include "CoreMinimal.h" #include "GameFramework/NavMovementComponent.h" #include "TankMovementComponent.generated.h" class UTankTrack; /** * Responsible for driving the tank tracks */ UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent)) class BATTLETANK_API UTankMovementComponent : pub...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 4.17 4.42 9.92 6.24 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-...
# -*- coding: utf-8 -*- # Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "Licens...
import NextAuth from 'next-auth'; import Providers from 'next-auth/providers'; import { verifyPassword } from 'helpers/passwordHelpers'; import { connectDatabase } from 'helpers/databaseHelpers'; export default NextAuth({ session: { jwt: true, }, providers: [ Providers.Credentials({ async authorize...
import sys if len(sys.argv) > 1: str = sys.argv[1] else: sys.exit() rev_str = str[::-1] sys.stdout.write(rev_str + '\n')
from PyQt5 import QtCore, QtGui, QtWidgets class Ui_anaekran(QtWidgets.QWidget): def setupUi(self): super().__init__() self.setObjectName("self") self.resize(451, 341) self.lbl_ust = QtWidgets.QLabel(self) self.lbl_ust.setGeometry(QtCore.QRect(0, 0, 451, 51)) self.l...
// Copyright 2009 The Closure Library 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 requ...
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-lobby-server (staging) # pylint: disable=duplicate-code ...
<<<<<<< HEAD module.exports={A:{A:{"2":"P F D E A B rB"},B:{"1":"v s Q VB GB","2":"C I J","4097":"L M N","4290":"K"},C:{"1":"8 9 WB AB BB CB DB EB H FB MB NB OB PB QB RB IB TB UB v s Q kB","2":"0 1 2 uB LB G T P F D E A B C I J K L M N U V W X Y Z a b c d e f g h i j k l m n o p q r R t u O w x y z jB iB","322":"3 4 5 ...
"""Test suite for tap-peloton."""
"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 FutureAction_1 = require('./FutureAction'); ...
# -*- coding: utf-8 -*- """ decorators.py ~~~~~~~~~~~~~ This module holds decorators either used by this package or for use when creating ``sqlalchemy`` database models. """ from functools import wraps from .base_mixin_abc import BaseMixinABC def event_func(*event_names): """Declare a function to listen/regist...
#q1 filenames = ["program.c", "stdio.hpp", "sample.hpp", "a.out", "math.hpp", "hpp.out"] # Generate newfilenames as a list containing the new filenames # using as many lines of code as your chosen method requires. newfilenames=[] for files in range (len(filenames)): if "hpp" in filenames[files][3:]: newfilenames....
#-*- coding: UTF-8 database = { 'master_url': 'postgresql+psycopg2://friend:friend@localhost/master', 'frontend_url': 'postgresql+psycopg2://friend:friend@localhost/frontend', }
import pandas import numpy def select(*args): file_path = args[0] return pandas.DataFrame.from_csv(file_path)
#!/usr/bin/python # -*- coding: utf-8 -*- ### # Copyright (2016-2017) Hewlett Packard Enterprise Development LP # # 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/licen...
/////////////////////////////////////////////////////////////////////////////// // // 3DimViewer // Lightweight 3D DICOM viewer. // // Copyright 2008-2016 3Dim Laboratory s.r.o. // // Based on storescp.cc from dcmtk // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
import React from 'react'; import PropTypes from 'prop-types'; import { Card } from 'antd'; const Offerings = ({ gridItems }) => ( <> {gridItems.map((item) => ( <Card key={item.image} title={item.title}> <img className='thumb' ...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2018 Jérémie Dumas <jeremie.dumas@ens-lyon.org> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at htt...
import zipfile import os import json import re version = "9.9.9" print('Scanning changelog.txt for version...') file1 = open('changelog.txt', 'r') Lines = file1.readlines() for line in Lines: match = re.match(r'Version: (.+)', line) if match: version = match.group(1).strip() break print(f'Ve...
module.exports = { PROJECT_DIR : __dirname };
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licens...
export const MI = 'MI'; export const MCI = 'MCI'; export const I = 'I'; export const FA = 'FA'; export const SLI = 'SLI';
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details...
// Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved. #pragma once #include "DetailCustomizations/EnumStruct/ECsEnumStructCustomization.h" /** * Customizes a FECsBlockchainContractFunction property to use a dropdown */ class CSBLOCKCHAINEDITOR_API FECsBlockchainContractFunctionCustomization : public FECsE...
import re # Complete this list if you need more operator binaryOperator = ["mul", "add", "sub", "protected_div"] unaryOperator = ["protected_log", "neg", "cos", "sin"] # If you add an operator add the associated token that you want in your result expression here def value_to_token(value): if value == "mul": ...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices */ @interface GEORPFeatureHandle : PBCodable <NSCopying> { unsigned int _featureIndex; unsigned int _featureTileX; unsigned int _featureTileY; unsigned int _featureTileZ; struct { ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-09-13 13:21 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0023_auto_20180912_0758'), ] operations =...
# encoding: utf-8 from __future__ import print_function __docformat__ = "restructuredtext en" #------------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file CO...
var annotated_dup = [ [ "segdisp", "structsegdisp.html", "structsegdisp" ], [ "segdisp_pin_def", "structsegdisp__pin__def.html", "structsegdisp__pin__def" ], [ "segdisp_pins", "structsegdisp__pins.html", "structsegdisp__pins" ], [ "segdisp_scroll_conf", "structsegdisp__scroll__conf.html", "structsegdisp...
module.exports = { plugins: [ { resolve: `gatsby-theme-gine-blog`, options: { configTable: "https://www.notion.so/lstheart/55790580a6c44449bd16d23ff26ca54c?v=5e5349acb8944ad2bc94f829dd432c0b" //主要修改此 } }, { resolve: `gatsby-so...
var Eos = require('eosjs'); var {} = Eos.modules; var path3 = require('./include/path3.js'); // set the values var code = process.argv[2]; var accountName = process.argv[3]; var token = process.argv[4]; var blockchainurl = process.argv[5]; var finalBalance = 0; // set the output message var outputMessage ...
/*! ======================================================================== * calendar.js * Page/renders: page-calendar.html * Plugins used: parsley, fullcalendar, jQuery UI * ======================================================================== */ $(function () { // Instantiate fullCalendar // ========...
from django.core.management.base import BaseCommand from django.utils import timezone from parkstay.models import Booking from datetime import timedelta class Command(BaseCommand): help = 'Clear out any expired temporary bookings that have been abandoned by the user' def handle(self, *args, **options): ...
import React from 'react'; const EuiIconPlay = ({ title, titleId, ...props }) => ( <svg width={16} height={16} viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" aria-labelledby={titleId} {...props}> {title ? <title id={titleId}>{title}</title> : null} <path d="M4.608 3.063C4.345 ...
const xlsx = require("xlsx"); const fs = require("fs"); const path = require("path"); const nodeGlob = require("glob"); const console = require("../utils/console"); const Validator = require("../../baseClass/Validator"); const config = require("../../config"); class ExcelJsonValidator extends Validator { construct...
# 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 u...
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2021 gatecat <gatecat@ds0.me> * * 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 permission notice appear in all c...
"""Chatbot with Algolia Answers sample application in Python""" import os import requests from dotenv import load_dotenv, find_dotenv from flask import Flask, render_template, jsonify, request load_dotenv(find_dotenv()) # Setup Flask STATIC_DIR = str( os.path.abspath(os.path.join( __file__, '..',...
# Copyright 2017 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 applicable law or ag...
# -*- encoding: utf-8 -*- ''' @Time : 2021-07-17 @Author : _evilRecluse @_contact : https://github.com/RecluseXU @Desc : 緩動函數 Python 版本 參考:https://easings.net/cn# ''' # here put the import lib from math import sin, cos, pi, sqrt from typing import Callable, List, Tuple from random import random, sam...
import responder api = responder.API() @api.route("/") async def greet_world(req, resp, *args): resp.text = "Hello, world!" @api.route("/healthz") async def health_check(req, resp, *args): resp.text = "OK" if __name__ == '__main__': api.run( port=8000, log_level="warning", lo...
import math import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' from typing import Dict, Tuple, List, Optional, Any, Union import urllib3 # Disable insecure warnings urllib3.disable_warnings() """GLOBALS/PARAMS Attributes: INTEGRATION_NAME: ...
import traceback from huey import crontab from app.db.session import db_session from app.db.models.port_forward import MethodEnum from app.db.crud.server import ( get_server, get_server_with_ports_usage, ) from app.db.crud.port import get_port from app.db.crud.port_forward import get_all_ddns_rules from app.co...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
import re import logging from unittest import TestCase from testfixtures import LogCapture from scrapy.http import Response, Request from scrapy.spiders import Spider from scrapy.utils.test import get_crawler from scrapy.exceptions import NotConfigured from scrapy.downloadermiddlewares.cookies import CookiesMiddleware...
"""Auto-generated file, do not edit by hand. CZ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_CZ = PhoneMetadata(id='CZ', country_code=420, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[2-8]\\d{8}|9\\d{8,11}', possible_length...
#!/usr/bin/env python """DB faker file is responsible for db data faking.""" import sys import threading from data_types import Data from lib.pg_database import Pg_handler from utils.help import get_json_config, print_err, print_warn class Db_faker(threading.Thread): """Shuffles database data based on configs.""...
# Generated by Django 3.0.3 on 2020-05-21 03:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('login', '0002_auto_20200423_1619'), ] operations = [ migrations.CreateModel( ...
/* * Copyright (c) 2017 Intel Corporation * * 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...
""" The ``modelchain`` module contains functions and classes that combine many of the PV power modeling steps. These tools make it easy to get started with pvlib and demonstrate standard ways to use the library. With great power comes great responsibility: users should take the time to read the source code for the modu...
/* */ "format cjs"; (function(global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment); }(this, function(moment) { 'use strict'; var nb = moment.defineLocale(...
import React, { useEffect, useState } from "react"; import { Navbar, Form, Button, Nav, Container, Spinner } from "react-bootstrap"; import { useDispatch, useSelector } from "react-redux"; import { useHistory } from "react-router"; import { setUser } from "../redux/actions"; import {LinkContainer} from 'rea...
# Copyright 2021 SpinQ Technology Co., Ltd. # # 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 ...
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
/** 💾 @file save @summary save/load your game @license MIT @version 2.0.0 @requires 5.4 @author Sean S. LeBlanc @description Introduces save/load functionality. Includes: - data that may be saved/loaded: - current room/position within room - inventory/items in rooms - dialog variables - dialog position - b...
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Union from dataclasses import dataclass import cv2 as cv import numpy as np from util import cvimage as Image def enhance_contrast(img, lower=90, upper=None): img = np.asarray(img, dtype=np.uint8) if...
# -*- coding: utf-8 -*- import os import logging import json from flask import Flask, request import requests from ciscosparkapi import CiscoSparkAPI from mindmeld.components import NaturalLanguageProcessor from mindmeld.components.dialogue import Conversation from mindmeld import configure_logs app = Flask(__name__...
import { point, latLng, LatLngBounds, LatLng, GeoJSON } from 'leaflet'; import { Task } from './Task'; import { warn, responseToFeatureCollection, isArcgisOnline, extentToBounds, boundsToExtent, geojsonToArcGIS, geojsonTypeToArcGIS } from '../Util'; export var Query = Task.extend({ setters: { 'offs...
#!/usr/bin/env python # # Copyright 2018 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 require...