text
stringlengths
3
1.05M
# # This is the central event hub for blockchain and smart contract events, # which makes it easy for external developers to receive notifications. # # Currently (pre-alpha) it works like this: # # from neo.EventHub import events # # @events.on("myevent") # def handler1(*args): # print("handler1 called with...
const crypto = require('crypto'); const Request = require('../Request'); const SourceError = require('../SourceError'); const {Track, TrackImage, TrackResults, TrackPlaylist, TrackStream, TrackStreams} = require('../Track'); const {gen_playlist_continuation, gen_search_options} = require('../../proto/youtube'); ...
import yaml import os import git import subprocess YAML_FILE = "compressed.md" FOLDERS = { "img/bg/":[], "img/posts/":[960,768,640,480,320], "img/":[] #Do not make any additional sizes } #Link git with python repo = git.Repo() #Get the staged files diffs = repo.index.diff('HEAD') staged_files = [x.a_b...
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{gJiX:function(l,n,u){"use strict";u.r(n);var e=u("CcnG"),t=function(){return function(){}}(),o=u("pMnS"),i=u("Ip0R"),r=u("gIcY"),a=u("oveR"),s=u("hNGQ"),d=u("+dxm"),c=u("jIY6"),p=u("bl9C"),m=function(){function l(l,n){this.formBuilder=l,this.http=n,this.showModul...
import { useState, useEffect } from "react"; import copyToClipboard from "copy-to-clipboard"; const COPIED_DURATION = 3000; function useCopyToClipboard(getTextToCopy) { const [isCopied, setIsCopied] = useState(false); useEffect(() => { if (isCopied) { const timeoutId = setTimeout(() => { setIsC...
class Members: def __init__(self, client): self.client = client def list(self, groupId): url = self.client.api_url + '/groups/' + groupId + '/members' method = 'get' return self.client.api_handler(url=url, method=method) def add(self, groupId, member, role='member'): ...
/* * This file runs in a Node context (it's NOT transpiled by Babel), so use only * the ES6 features that are supported by your Node version. https://node.green/ */ // Configuration for your app // https://quasar.dev/quasar-cli/quasar-conf-js /* eslint-env node */ const { configure } = require('quasar/wrappers') c...
import logging import os from curation_utils.file_helper import clear_bad_chars from doc_curation import tei from doc_curation.md import library from doc_curation.md.file import MdFile from doc_curation.md.library import metadata_helper def dump_cu_sarit_markdown(tei_path, md_path, overwrite=False, dry_run=False): ...
# Copyright 2019 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from copy import deepcopy import numpy as np import pytest from astropy import units as u from astropy.tests.helper import (catch_warnings, assert_quantity_allclose as assert_allclose) from astrop...
var canvas; var backgroundImage, car1_img, car2_img, track; var fuelImage, powerCoinImage, lifeImage; var obstacle1Image, obstacle2Image; var database, gameState; var form, player, playerCount; var allPlayers, car1, car2, fuels, powerCoins, obstacles, blastImage; var cars = []; function preload() { backgroundImage =...
/***** License -------------- Copyright © 2017 Bill & Melinda Gates Foundation The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the Licens...
#!/usr/bin/env python3 import itertools from collections import defaultdict import logging from operator import mul import networkx as nx import numpy as np import pandas as pd from pgmpy.base import DirectedGraph from pgmpy.factors import TabularCPD, JointProbabilityDistribution, Factor from pgmpy.independencies im...
"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 Subscriber_1 = require('../Subscriber'); /**...
import coreService from '../../_services/CoreService' export function getOverview ({ commit }) { commit('getOverviewRequest') return coreService.getOverview() .then(body => { commit('getOverviewSuccess', body) return body }) .catch(error => { commit('getOverviewFailure', error) ...
from kivy.app import App from kivy.lang import Builder import frontur_gui.model.ScreenManagement class MainApp(App): def build(self): return Builder.load_file("frontur_gui/view/MainScreen.kv")
// // TRExtTorrent.h // iTMRemote // // Created by Igor Dvoeglazov on 31.07.14. // Copyright (c) 2014 Binoklev Studio. All rights reserved. // #import "TRBaseTorrent.h" /* #define TR_JSON_KEY_TORRENT_NAME @"name" #define TR_JSON_KEY_TORRENT_TOTAL_SIZE @"totalSize" @interface TRBaseTorrent : NSObject @pr...
# -*- coding: utf-8 -*- """ pygments.style ~~~~~~~~~~~~~~ Basic style object. :copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.token import Token, STANDARD_TYPES from pygments.util import add_metaclass class StyleMeta(t...
import copy common = dict( type='SingleStageDetector', pretrained='zoo/mobilenet_v2.pth.tar', backbone=dict( type='SSDMobileNetV2', input_size=-1, frozen_stages=3, out_layers=('layer4', 'layer7', 'layer14', 'layer19'), with_extra=False, norm_eval=True, ...
// miniprogram/pages/login/login.js const app = getApp(); wx.cloud.init(); const db = wx.cloud.database(); Page({ /** * 页面的初始数据 */ data: { }, userLogin: function () { const that = this function _getUserInfo() { wx.getUserInfo({ success(res) { that.setData({ ...
from js9 import j import numpy import struct import math JSBASE = j.application.jsbase_get_class() class NumTools(JSBASE): def __init__(self): self.__jslocation__ = "j.tools.numtools" JSBASE.__init__(self) self.__imports__ = "numpy" self._currencies = {} @property def curr...
import ListCharacters from './ListCharacters'; export default ListCharacters;
// Copyright (C) 2016 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 13.12.11 description: > Completion value when execution continues through multiple cases and ends with an empty abrupt completion in the default case info: | ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React, {PureComponent} from 'react'; import {intlShape} from 'react-intl'; import {Platform, StatusBar} from 'react-native'; import {mergeNavigationOptions, popTop...
""" File: examples/distribution/jumping_distribution_set_triangle_plot.py Author: Keith Tauscher Date: 22 Nov 2018 Description: Example script showing how to quickly create a triangle plot from a JumpingDistributionSet object. """ import time import numpy as np import matplotlib.pyplot as pl from distpy i...
#!/usr/local/bin/python # Copyright (c) 2014 Wladmir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Script to generate list of seed nodes for chainparams.cpp. This script expects two text files in the director...
var dir_3614396b576ff74d8aa5c597d0e8d5e0 = [ [ "5b0ee89f1aae33f4.php", "5b0ee89f1aae33f4_8php.html", "5b0ee89f1aae33f4_8php" ] ];
/// Perception model for terrain following /// Zhiang Chen, 7/2019 /*The MIT License (MIT) Copyright (c) 2019 Zhiang Chen 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, inclu...
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
# coding: utf-8 """ Ory Kratos Welcome to the ORY Kratos HTTP API documentation! # noqa: E501 The version of the OpenAPI document: latest Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import ory_kratos_client from ory_kratos_client.models...
import * as PlotTypes from './core/PlotTypes' import PlotDraw from './core/PlotDraw' export { PlotDraw, PlotTypes }
var fs = require('fs'); var utils = require("./cell_utils.js"); //var py = require("../lib/python-program-analysis/dist/es5"); var py = require("modified-python-program-analysis"); module.exports = { calculateCells: function(name){ const programSrc = fs.readFileSync(name).toString(); const programJ...
def get_user(line): separate = line.split(":", 2) user = separate[1].split("!", 1)[0] return user def get_message(line): separate = line.split(":", 2) try: message = separate[2] return message except: print("Unable to read line: %s" % line) return def get_user...
from pathlib import Path import grpc from csi import csi_pb2, csi_pb2_grpc from csi.csi_pb2 import ( NodeStageVolumeRequest, NodePublishVolumeRequest, NodeUnpublishVolumeRequest, NodeUnstageVolumeRequest, NodeExpandVolumeRequest, CreateVolumeRequest, ) from declarative import ( be_mounted,...
export const ADD_INGREDIENT = 'ADD_INGREDIENT' export const REMOVE_INGREDIENT = 'REMOVE_INGREDIENT' export const SET_INGREDIENT = 'SET_INGREDIENT' export const FETCH_INGREDIENT_FAILD = 'FETCH_INGREDIENT_FAILD' export const PURCHASE_BURGER_START = 'PURCHASE_BURGER_START' export const PURCHASE_BURGER_SUCCESS = 'PURCHAS...
from pytest import raises, skip import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy_continuum import ( versioning_manager, ImproperlyConfigured, AuditFactory ) from tests import TestCase class TestVersionedModelWithoutVersioning(TestCase): def create_models(self): ...
import subprocess from pathlib import Path from typing import NamedTuple, Optional, Sequence, Type from scaraplate.gitremotes import GitRemote, make_git_remote class TemplateMeta(NamedTuple): """Metadata of the template's git repo status.""" git_project_url: str commit_hash: str commit_url: str ...
# Copyright 1999-2021 Alibaba Group Holding 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 a...
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy #...
from __future__ import print_function, unicode_literals from PyInquirer import prompt from train_nn import evaluate_stuff, train_nn_model from webcam import open_computer_vision def menu_prompt(): questions = [ { 'type': 'list', 'name': 'choice', 'message': 'What do you ...
goog.provide('gmf.test.data.themes'); var themes = {"themes": [{"name": "Enseignement", "functionalities": {}, "id": 38, "icon": "https://geomapfish-demo.camptocamp.net/2.0/wsgi/project/ff12098f80144fe69ca9d5d630436748/img/enseignement.jpeg", "children": [{"mixed": false, "metadata": {}, "children": [{"layers": "bus_s...
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:34:20 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/Frameworks/CoreImage.framewor...
""" Auto-encoder network model definition. Only defined if kwcnn is available. """ from .kwcnndescriptor import kwcnn AutoEncoderModel = None if kwcnn is not None: class AutoEncoderModel(kwcnn.core.KWCNN_Auto_Model): # NOQA """FCNN Model.""" def __init__(self, *args, **kwargs): """FC...
from rllab.envs.base import Step from .mujoco_env import MujocoEnv from rllab.core.serializable import Serializable from rllab.misc.overrides import overrides import numpy as np import math from rllab.mujoco_py import glfw class PointEnv(MujocoEnv, Serializable): """ Use Left, Right, Up, Down, A (steer left)...
# coding=utf-8 import argparse import shutil import os __author__ = 'alex' class Builder(object): """build release pack""" def __init__(self, dirs, outdir, ftypes, curdir=os.path.dirname(__file__), dropout=False): self.dirs = dirs self.ftypes = ftypes ...
# -*- coding: utf-8 -*- """ Created on Fri May 30 16:22:29 2014 Author: Josef Perktold License: BSD-3 """ from io import StringIO import numpy as np from numpy.testing import assert_, assert_allclose, assert_equal import pandas as pd import patsy import pytest from statsmodels import datasets from statsmodels.base....
/* * Copyright (C) Igor Sysoev * Copyright (C) NGINX, Inc. */ #include <nxt_router.h> #include <nxt_http.h> static void nxt_http_request_send_error_body(nxt_task_t *task, void *r, void *data); static const nxt_http_request_state_t nxt_http_request_send_error_body_state; static const char error[] = ...
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
# Third party imports import torch from torchvision import transforms # Device configuration DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu') # Data preprocessing details data_transforms = { 'train': transforms.Compose([ transforms.ToPILImage(), transforms.Resize((224, 224)), # transforms....
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { shallowWithIntl } from 'test_utils/enzyme_helpers'; import React fr...
define('reading-list/initializers/store', ['exports'], function (exports) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { name: 'store', after: 'ember-data', initialize: function initialize() {} }; });
from manifesto_data import get_manifesto_texts import warnings,json,gzip,re import os, glob from scipy.sparse import hstack, vstack import scipy as sp import pandas as pd import numpy as np from sklearn.linear_model import SGDClassifier from sklearn.feature_extraction.text import HashingVectorizer, CountVectorizer from...
import { config } from 'dotenv'; config(); const databaseURL = process.env.NODE_ENV === 'test' ? process.env.TEST_DATABASE_URL : process.env.DATABASE_URL || process.env.DEV_DATABASE_URL; export default { databaseURL, };
import interactive_widgets.backend.executors.docker_executor class DockerEpilogue(interactive_widgets.backend.executors.docker_executor.DockerExecutor): async def tear_down(self): await self._run_once()
/** * Copyright 2020 Huawei Technologies 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...
/** * @name: 日期格式化 * @msg: 对 Date 的扩展,将 Date 转化为指定格式的 String * 月(M)、日(d)、12小时(h)、24小时(H)、分(m)、秒(s)、周(E)、季度(q) 可以用 1-2 个占位符 * 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) * eg: * dateFormat(new Date(), "yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423 * dateFormat(new Date(), "yyyy-MM-dd E HH:mm:ss") ==> 2009-...
import tempfile #python fn that allows us to generate temperory files i.e it allows us to call a fn which will then create a temp file and we can remove that file after using it import os from PIL import Image from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reve...
# Ian McLoughlin # A program that displays Fibonacci numbers. def fib(n): """This function returns the nth Fibonacci number.""" i = 0 j = 1 n = n - 1 while n >= 0: i, j = j, i + j n = n - 1 return i # Test the function with the following value. x = 8 ans = fib(x) print("Fibonacci number", x, "...
from application import db from models.Pet import Pet def get_all_pets_in_db( offset: int = 0, limit: int = 10 ): query = Pet.select().offset(offset).limit(limit) pets = db.engine.execute(query).fetchall() return pets def get_all_pets_count_in_db(): query = Pet.count() count = db.session...
# 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) AutoRest Code Generator. # Changes may ...
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relat...
""" An interface between skarucotracker and a raspberry pi Christmas tree """ from arucochristmas.aruco import init_camera_and_tracker, get_marker_pos from arucochristmas.christmas import initialise_tree, light_led, delight_led tree=initialise_tree() artracker, camera = init_camera_and_tracker() while True: ok, x_...
from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, redirect, render from django.contrib.auth import authenticate, login, logout from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.template import RequestContext from django.contr...
#pragma once #include "ElectricObject.h" static float M = 100000*140; class MagneticObject : public ElectricObject { public: MagneticObject(ID3D11ShaderResourceView *m_Texture, XMFLOAT2 size, XMFLOAT2 position, Windows::Foundation::Rect* movementBounds, XMFLOAT2 boardSize, float current, float scale); void isTouc...
# -*- coding: utf-8 -*- """ pip_services3_components.auth.CredentialResolver ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Credential resolver implementation :copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. :license: MIT, see LICENSE for more details...
"use strict"; module.exports = function (builder) { var program = builder.program; var functionDeclaration = builder.functionDeclaration; var functionCall = builder.functionCall; var text = builder.text; var htmlElement = builder.htmlElement; return program([htmlElement("ul", [], [functionCall...
import React from 'react' import PropTypes from 'prop-types' import { library } from '@fortawesome/fontawesome-svg-core' import { fab } from '@fortawesome/free-brands-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' library.add(fab) const Footer = (props) => ( <footer id="footer"> ...
# Copyright 2021 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 l...
/* 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( 'blockquote', 'bg', { toolbar: 'Блок за цитат' } );
"""Test Link functionality.""" # # (C) Pywikibot team, 2014-2021 # # Distributed under the terms of the MIT license. # import re from contextlib import suppress import pywikibot from pywikibot import Site, config from pywikibot.exceptions import InvalidTitleError, SiteDefinitionError from pywikibot.page import Link, P...
/* MIT License Copyright (c) 2018-2020, Alexey Dynda 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, c...
from argparse import ArgumentParser, Namespace from multiprocessing import Pool import os import pickle import shutil import sys sys.path.append('../') from typing import List, Tuple import numpy as np from scipy import sparse from tqdm import tqdm from chemprop.data.utils import get_data from chemprop.features impor...
from sdg.open_sdg import open_sdg_check # Validate the indicators. validation_successful = open_sdg_check(config='config_data.yml') # If everything was valid, perform the build. if not validation_successful: raise Exception('There were validation errors. See output above.')
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ /** * @module engine/conversion/upcastdispatcher */ import ViewConsumable from './viewconsumable'; import ModelRange from '../model/rang...
/* * regex.h * * Created on: 3 juil. 2013 * Author: fsulima */ #ifndef REGEX_H_ #define REGEX_H_ #endif /* REGEX_H_ */
from django.contrib import admin from .models import Contact, Newsletter, Profile # Change Django Administration default name admin.site.site_header = "Coding Easy Administration" admin.site.site_title = "Coding Easy Administration site" admin.site.index_title = "Dashboard" # Register the model admin.site.register(Con...
import maya.cmds as cmds import pymel.core as pm from mgear.core import pyqt from mgear.core import attribute from mgear.core import utils from mgear.vendor.Qt import QtWidgets from mgear.vendor.Qt import QtCore from mgear.vendor.Qt import QtGui from mgear.core import callbackManager import timeit from functools import...
# Copyright 2020 ROS-Industrial Consortium Asia Pacific # # 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...
import { NativeModules } from 'react-native'; const { RNAndroidSmsRetriever } = NativeModules; export const startSmsRetriever = (successCallback, failureCallback) => RNAndroidSmsRetriever.startSmsRetriever(successCallback, failureCallback) export const startSmsRetrieverForOtp = (successCallback, failureCallback) =>...
# Copyright 2018-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 writ...
process.env.NODE_ENV = 'test'; var should = require('should'); var actionheroPrototype = require('actionhero').actionheroPrototype; var actionhero = new actionheroPrototype(); var api; describe('actionhero Tests', function(){ before(function(done){ actionhero.start(function(err, a){ api = a; done()...
const mongoose = require("mongoose"); const userSchema = new mongoose.Schema({ first_name: { type: String, default: null}, last_name: { type: String, default: null }, username: {type: String, unique: true}, email: { type: String, unique: true }, password: { type: String }, token: {type: String}, hasAccou...
// COPYRIGHT © 201 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute ...
function imprimir(){ if(allgood()){ var valor=document.getElementById("txthAccion").value; var permitidos=(valor==0)?31:33; fechaIn=valoresI[2]+"-"+valoresI[1]+"-"+valoresI[0]; fechaFin=valoresF[2]+"-"+valoresF[1]+"-"+valoresF[0]; var url="scripts/usoFunciones.php?opc=1&fechaI="+fechaIn+"&fechaF="+fechaFin;...
import pytest from .common import random_str import time @pytest.fixture def ns_default_quota(): return {"limit": {"pods": "4"}} @pytest.fixture def ns_quota(): return {"limit": {"pods": "4"}} @pytest.fixture def ns_small_quota(): return {"limit": {"pods": "1"}} @pytest.fixture def ns_large_quota():...
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ sphinxcontrib ~~~~~~~~~~~~~ This package is a namespace package that contains all extensions distributed in the ``sphinx-contrib`` distribution. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for det...
/** * dat-gui JavaScript Controller Library * http://code.google.com/p/dat-gui * * Copyright 2011 Data Arts Team, Google Creative Lab * * 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 ...
CKEDITOR.plugins.setLang("image2","no",{alt:"Alternativ tekst",btnUpload:"Send det til serveren",captioned:"Bilde med bildetekst",captionPlaceholder:"Caption",infoTab:"Bildeinformasjon",lockRatio:"Lås forhold",menu:"Bildeegenskaper",pathName:"bilde",pathNameCaption:"bildetekst",resetSize:"Tilbakestill størrelse",resiz...
import cloudpickle import pytest import prefect from prefect import Flow from prefect.engine.cloud import CloudFlowRunner from prefect.engine.flow_runner import FlowRunner from prefect.environments.storage import Bytes from prefect.utilities.configuration import set_temporary_config def test_create_bytes_storage(): ...
"""Tests for the GogoGate2 component.""" from datetime import timedelta from unittest.mock import MagicMock, patch from gogogate2_api import GogoGate2Api, ISmartGateApi from gogogate2_api.common import ( DoorMode, DoorStatus, GogoGate2ActivateResponse, GogoGate2Door, GogoGate2InfoResponse, ISma...
import argparse from dataclasses import dataclass from pathlib import Path from typing import Dict, List, Optional from zhaostephen.vdts._internal.exceptions import CliInvalidArgumentError from zhaostephen.vdts.fuzzytimedelta import TIME_INTERVAL_CODES @dataclass class CliMainArgs: in_dir_path: Path interval_...
#!/usr/bin/env python import os from setuptools import setup, Extension import setuptools.command.install __base__ = { 'name':'midi', 'version':'v0.2.3', 'description':'Python MIDI API', 'author':'giles hall', 'author_email':'ghall@csh.rit.edu', 'package_dir':{'midi':'src'}, 'py_modules':...
function clone(src) { function mixin(dest, source, copyFunc) { var name, s, i, empty = {}; for(name in source){ // the (!(name in empty) || empty[name] !== s) condition avoids copying properties in "source" // inherited from Object.prototype. For example, if dest has a custom toString() method, ...
import React, {useState} from "react"; import Button from '@mui/material/Button'; import { BookSharp } from "@material-ui/icons"; // import DeleteIcon from '@mui/icons-material/Delete'; import List from '../BookShelf/BookShelf'; export default function ItemDelete({deletedBook}) { const [updateList, setUpdateList] = u...
/* eslint-env jest */ /* global browserName */ import cheerio from 'cheerio' import fs, { existsSync } from 'fs-extra' import globOriginal from 'glob' import { renderViaHTTP, waitFor, getPageFileFromPagesManifest, check, nextBuild, nextStart, findPort, killApp, fetchViaHTTP, } from 'next-test-utils' i...
import Header from "./Header" import Footer from "./Footer" import MobileMenu from "./MobileMenu" import links from "./links" export { Header, Footer, MobileMenu, links }
#!/usr/bin/env python3 import argparse import os import sys from typing import Any from selfdrive.car.car_helpers import interface_names from selfdrive.test.process_replay.compare_logs import compare_logs from selfdrive.test.process_replay.process_replay import CONFIGS, replay_process from tools.lib.logreader import L...
let pos = 0; const pacArray = [ ['./images/pacman1.png', './images/pacman2.png'], ['./images/pacman3.png', './images/pacman4.png'], ]; let direction = 0; const pacMen = []; // This array holds all the pacmen // This function returns an object with random values function setToRandom(scale) { return { x: Math....
from typing import Any, Dict, Set from p4p import Value from p4p.client.cothread import Context, Subscription from p4p.client.raw import Disconnected, RemoteError from p4p.nt import NTURI from malcolm.core import DEFAULT_TIMEOUT, Alarm, BlockMeta, BlockModel, Model, Queue from malcolm.modules import builtin from .pv...