content
stringlengths
5
1.05M
import unittest from unittest.mock import Mock, patch import s3 class TestS3(unittest.TestCase): @patch("s3.boto3") def test_upload_document_succeeded(self, m_boto3): aws_response = {"ResponseMetadata": {"HTTPStatusCode": 200}} m_boto3.client.return_value.put_object.return_value = aws_respons...
#!/usr/bin/env python """ Driver script for testing polytope package. Try calling it with "-h" flag. This script was originally copied from one by the same name in TuLiP (http://tulip-control.org). """ from __future__ import absolute_import from __future__ import print_function import imp import sys import os.path i...
import KratosMultiphysics import test_WindEngineeringApplication if __name__ == "__main__": if not KratosMultiphysics.IsDistributedRun(): raise Exception("This test script can only be executed in MPI!") test_WindEngineeringApplication.Run(enable_mpi=True)
import logging import os import requests import argparse from pathlib import Path import numpy as np import cv2 import torch import torch.backends.cudnn as cudnn import os from datetime import datetime from time import time import imutils from models.common import DetectMultiBackend from utils.general import ( check_im...
import random array=input("Enter array elements seperated by space") array=array.split(" ") for i in random.sample(range(len(array)),len(array)): print(array[i],end=" ")
import horovod.tensorflow as hvd import tensorflow as tf import numpy as np from load_data import load_data_with_split_only_index, decode_img from sklearn import metrics import argparse import os parser = argparse.ArgumentParser(description='Tensorflow2.0 ResNet Classification ImageNet') parser.add_argument('...
"""Private tools to normalize functions parameters""" import collections import logging import functools import numbers import six import numpy as np from .helper_classes import Singleton from . import conv Footprint, AAsyncRaster = None, None # Lazy import CHANNELS_SCHEMA_PARAMS = frozenset({ 'nodata', 'inter...
#!/usr/bin/env python MY_TEXT = "Hello" def test(): MY_TEXT = "Changed" print "Inside test" + " " + MY_TEXT return MY_TEXT if __name__ == '__main__': print MY_TEXT new_text = test() print "MY_TEXT is " + " " + MY_TEXT print "new_text is " + " " + new_text
from fastapi import Depends from sqlalchemy.ext.asyncio import AsyncEngine from sqlalchemy.orm import sessionmaker from typing import AsyncGenerator from fastapi_crud.session import Session from fastapi_crud.router import ModelRouter from fastapi_crud.types import Model class FastapiCRUD: def __init__(self, engi...
# set the path-to-files # TRAIN_FILE = "../../dataset/log_preprocess/20181128/train_ph.libsvm" # TEST_FILE = "../../dataset/log_preprocess/20181128/test_ph.libsvm" TRAIN_FILE = "../../dataset/log_preprocess/20181128/train_ph.fm" # TRAIN_FILE = "../../dataset/log_preprocess/20181128/test_ph.fm" TEST_FILE = "../../datas...
# -*- coding: utf-8 -*- ''' Return salt data via email The following fields can be set in the minion conf file:: smtp.from (required) smtp.to (required) smtp.host (required) smtp.port (optional, defaults to 25) smtp.username (optional) smtp.password (optional) smtp.tls (optional, defaults ...
# Generated from Expr.g by ANTLR 4.7.1 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2\t") buf.write("(\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\...
""" Home-Monitor: AI system for the detection of anomalous and possibly harmful events for people. Written by Gabriel Rojas - 2019 (Change) Copyright (c) 2019 G0 S.A.S. (Change) See LICENSE file for details Class information: Template to get data from a device type NewController. """ import sys ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests the localplaso processor.""" import unittest import re import mock import docker from dftimewolf.lib import state from dftimewolf.lib import errors from dftimewolf.lib.processors import localplaso from dftimewolf.lib.containers import containers from dftimewolf ...
import sys from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine from PyQt5.QtCore import QUrl, QByteArray from ViewStuff.binding_experiments.controller import MyPersonalViewController from ViewStuff.binding_experiments.dogModel import Dog, DogList # Start of the application itself d...
from django.conf.urls import url from django.contrib.sitemaps.views import sitemap from django.contrib.sitemaps import GenericSitemap from .views import ( EventCommentCreateView, EventUpdateView, EventDetailView, EventRSVPView, ) from . import feeds from communities.models import Community from .models...
import os import subprocess import sys class Installer: def __init__(self): reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze']) self._installed_packages = [r.decode().split('==')[0] for r in reqs.split()] @property def installed_packages(self): return self._installed_packages.copy() def...
""" WAP to print Fibonacci series of n terms where n is input by user : 1 1 2 3 5 8 13 24 ..... """ n = int(input()) previous = 0 current = 1 for i in range(n): print(current, end=' ') current, previous = current + previous, current
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 from dataclasses import dataclass from typing import List from vdk.api.plugin.plugin_registry import IPluginRegistry from vdk.internal.core.config import Configuration from vdk.internal.core.statestore import ImmutableStoreKey from vdk.internal.core.s...
# -*- coding: utf-8 -*- """ Created on Wed Jul 29 13:51:24 2020 @author: SZC """ import PCANBasic from PCANBasic import * class DriveCAN(PCANBasic): def can_init(self,chanel=PCAN_USBBUS1,bautrate=PCAN_BAUD_500K): #默认参数:通道、波特率 # The Plug & Play Channel (PCAN-PCI) is initialized result...
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
from django.conf.urls import url from .views import ProfileUpdateView, UserDetailView urlpatterns = [ # Profile url('^profile/edit/$', ProfileUpdateView.as_view(), name='profile_update'), url('^users/(?P<username>[^/]+)/$', UserDetailView.as_view(), name='user_detail'), ]
import torch import numpy as np import torch.nn as nn import torch.nn.functional as F class LDAMLoss(nn.Module): def __init__(self, cls_num_list, max_m=0.5, weight=None, s=30, device=None): super(LDAMLoss, self).__init__() self.device = device m_list = 1.0 / np.sqrt(np.sqrt(cls_num_list))...
import unittest from scapy.layers.l2 import Ether from scapy_helper.chexdump import chexdump class TestcHexdump(unittest.TestCase): def setUp(self): self.packet = Ether(dst="ff:ff:ff:ff:ff:ff", src="00:00:00:00:00:00") def test_chexdump(self): # TODO Add a verification of the output ...
import typing from abc import ABC if typing.TYPE_CHECKING: from .manager import DefaultsManager class DefaultsConverter(ABC): """Converter for a certain class that returns an openapi_builder.specification.Schema.""" converts_class = None """Specification of the class that it converts.""" def __...
__author__ = "Christian Kongsgaard" __license__ = 'MIT' # -------------------------------------------------------------------------------------------------------------------- # # IMPORTS # Modules # RiBuild Modules from delphin_6_automation.database_interactions import mongo_setup from delphin_6_automation.database_...
import sqlite3 import pandas as pd def main(): """Runs and prints the results of the queries required in the first lesson of the SQL Zoo, Select basics. """ try: conn = sqlite3.connect('databases/world.db') cur = conn.cursor() # Problem 1 print(f"Problem 1:\n{prob1(cur)...
# -*- coding: utf-8 -*- """ Created on Sat May 09 17:02:55 2015 @author: Wasit """ #rectangle class rectangle: def __init__(self,pos=(0,0),shape=(0,0)): self.pos=pos self.shape=shape def __del__(self): del self.pos del self.shape def show(self): print "pos=%s, shape...
from .model import SANet, load_state_dict
import torch from torch import nn class OperationAndCat(nn.Module): """ Performs concatenation of the decoder path, after having reshaped the data into 5d Tensors; This helps in stabilizing the network.""" def __init__(self, logger): super(OperationAndCat, self).__init__() self...
a = int(input("Enter a value : ")) b = int(input("Enter b value : ")) print("Modulus value : " + str(a%b)) print("Quotient value : " + str(a//b)) print(str(a) + " = (" + str(a//b) + ") x " +str(b)+ " + "+str(a%b))
import unittest from adyen.signers import HMACSha256 class TestHMACSha256(unittest.TestCase): def test_sign(self): """Make sure the sign method works as expected. The test data are taken from the Adyen documentation. See https://docs.adyen.com/manuals/hpp-manual#pythonhmacsignature ...
import math from typing import List, Tuple, Optional from rgtk.constraint_solver import ConstraintSolver, Evaluator, Move from rgtk.BitSet import BitSet class RasterPixelsToSpritesEvaluator(Evaluator): class Source: def __init__(self, pixel_to_potential_sprites_bitset: BitSet, sprite_pixel_coverages: List[...
from typing import List class PoseProvider: def __init__(): pass def get_pose(self) -> List[float]: pass
import webapp2 import cgi from webapp2_extras import json from google.appengine.api import urlfetch import aws_utils class StatusHandler(webapp2.RequestHandler): def get(self): #command = cgi.escape(self.request.get('command')) #command.replace(' ', '') #if len(command) == 0: # ...
# -*- coding: utf-8 -*- """ optimization ~~~~~~~~~~~~ Optimization module for the Correlated Count. """ import numpy as np import scipy.optimize as sopt from . import utils import logging LOG = logging.getLogger(__name__) class OptimizationInterface: """Optimization interface for correlated model. ...
import csv, logging, requests, re, numpy as np from locust import HttpUser, TaskSet, task, constant_pacing ##ADD THIS import pdb USER_CREDENTIALS = None sentences = None np.random.seed(17700) with open('./data/training/news-commentary-v9.fr-en.en') as file: sentences = file.readlines() logging.info("Reading senten...
import paddlehub as hub import cv2 import numpy as np import time import random import os import math import copy import glob from ffpyplayer.player import MediaPlayer from PIL import Image, ImageDraw, ImageFont import argparse import _thread import asyncio from playsound import playsound os.environ['CUDA_VISIBLE_DEVI...
#!/usr/bin/env python3 """ Author : bschlottman <bschlottman@email.arizona.edu> Date : 2021-11-07 Purpose: Find the conserved bases in two or more aligned sequences """ import argparse # -------------------------------------------------- def get_args(): """Get command-line arguments""" parser = argparse.A...
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
""" kube_helpers.py provides infra to deploy, manage and install cluster using CRDs instead of restful API calls. Simplest use of this infra is performed by calling cluster_deployment_context fixture. With this context manager you will be able to manage a cluster without need to handle registration and deregistration....
""" Fourth algorithm function for application. Fill in your own algorithmic code here. """ def calculate4(self): 'Calculate ROI and other params given historical stock data using ?? algorithm.' return False
""" This script is used to print out information about the main results comparing the different dynamics studying the effect of incrasing the number of shooting points. It requires the dataframe of all results to run the script. """ import pandas as pd from pandas import DataFrame df_results = pd.read_pickle("Datafram...
# Python 3.7.6 # -*- coding: utf-8 -*- # Author: Ines Pisetta import os import random import cv2 import fnmatch import numpy as np from tqdm import tqdm char_list = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' len_char_list = len(char_list) path = str(os.getcwd()) while True: ...
from .user import USER_BLUEPRINT from .movie import MOVIE_BLUEPRINT from .notation import NOTATION_BLUEPRINT from .authenticate import AUTH_BLUEPRINT
from netxlib.paramiko import send_cmd def show_version(remote_connection): cmd = "show version\n" return send_cmd(remote_connection, cmd) def show_ip_route(remote_connection): cmd = "show ip route\n" return send_cmd(remote_connection, cmd)
"""Problem 19: Counting Sundays. Directly count.""" months = { 1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31 } def count_sundays(): """Count Sundays on first of the month in the 20th century.""" y = 1 m = 1 d = 1 ...
''' Automate Whatsapp | Facebook | Instagram (any)Chat-Messenger with Python Author: Ayushi Rawat ''' #import the necessary module! import pyautogui import time #Use sleep to introduce some time margin for user to place the cursor at the right place. time.sleep(5) #Store the text you wish to use for Automation text ...
# Script to copy the latest EAD files and parse, validate them against schema, and evaluate them with XSLT audit stylesheet. Output is piped to a google sheet report using sheetFeeder. import os import re import datetime from sheetFeeder import dataSheet import dcps_utils as util import digester # for generating com...
# coding=utf-8 import logging # import gym # import matplotlib.lines as mlines import numpy as np # import rvo2 # from matplotlib import patches from numpy.linalg import norm from envs.utils.human import Human from envs.utils.info import * from envs.utils.utils import point_to_segment_dist, dist class CrowdRL(): ...
import pystache import sys sys.path.append("..") from resource_params_tree import generate_resource_properties from common.utils import read_yaml def run(api_path, cloud_name, tags, output): if api_path[-1] != "/": api_path += "/" product = read_yaml(api_path + "product.yaml") if not product: ...
""" Superscript using ^ """ import markdown from markdown.inlinepatterns import SimpleTagPattern from markdown.util import etree import re SUPERSCRIPT_RE = r"(\^)([^\^]+)\2" class SuperscriptExtension(markdown.Extension): def extendMarkdown(self, md): md.registerExtension(self) md.inlinePatterns...
import os import subprocess import hashlib import tempfile from ..utils import network from ..models.link import Link class Item: def __init__(self, api=None, json={}): self._api = api self._json = json @property def hashed_id(self): return hashlib.sha256( f'{self.api....
from collections import OrderedDict, Counter from typing import Union import numpy as np import torch from torch.nn import functional as F from autobias.modules.classifier_ensembles import ClassifierOutput, ClassifierEnsembleOutput from autobias.utils import ops from autobias.utils.configured import Configured clas...
import nbformat import sys import os import pickle import numpy as np import pandas as pd import torch import random import collections from nbconvert import PythonExporter, HTMLExporter import json, copy import itertools import queue import warnings from model import DataFrame, dispatch_gen pd.set_op...
import sys sys.path.append('../../src/') from p4rrot.generator_tools import * from p4rrot.known_types import * from p4rrot.core.commands import * UID.reset() fp = FlowProcessor( istruct=[('a',uint32_t),('b',uint32_t),('op',uint8_t)], mstruct=[('l',bool_t),('c',uint8_t)], ostruct=[('r',...
# coding=utf-8 # *** WARNING: this file was generated by pulumigen. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables from ... i...
"""Customized operators using NDArray GPU API""" import numpy as np import mxnet as mx import pickle as pkl class LogSumExpOp(mx.operator.CustomOp): """Implementation of log sum exp for numerical stability """ def __init__(self, axis): self.axis = axis def forward(self, is_train, req, in_data...
#!/usr/bin/env python # # A Python language binding for the OpsRamp REST API. # # integrations.py # Classes related to Integrations. # # (c) Copyright 2019-2020 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
from cloud import GCEAdapter import os import unittest from unittest import TestCase from unittest import mock class GCEAdapterTests(TestCase): def setUp(self): self.CLOUDCUBE_URL = 'https://cloud-cube.s3.amazonaws.com/abcd' self.CLOUDCUBE_ACCESS_KEY_ID = 'LKKASDP9F8AAA3HQ2P9S' self.CLOUD...
#!/usr/bin/env python3 """ wrapper on logging to use JSON for log to file output Sssee https://pypi.org/project/python-json-logger/ for JSON formatting logs to stdout will be as simple as possible to avoid long gibberish from the screen reader. Could not get the python logging module to format the timestamp in the ...
# Generated by Django 3.0.5 on 2021-07-14 10:28 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
default_app_config = 'genui.models.apps.ModelsConfig'
import setuptools setuptools.setup( name="miniabm", version="0.0.1", author="David Naves Sousa", author_email="davidnsousa@gmail.com", description="Minimalist tool for agent-based modeling in python", long_description=open('README.md').read(), long_description_content_type="text/markdown", ...
"""URL 라우팅 정의 """ from django.conf.urls import url, include from rest_framework import routers from film import views router = routers.DefaultRouter() # /films의 URL에 views.FilmViewSet 연결하기 router.register(r'films', views.FilmViewSet) urlpatterns = [ url(r'^', include(router.urls)...
# Copyright (c) 2013, sheerland and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): columns, data = [], [] columns = get_columns() data = get_fields(filters) return columns, data def get_columns(): return [ "...
# -*-coding:utf-8-*- import torch if __name__ == '__main__': A = torch.arange(20).reshape(5,-1) # print(A) # print(A.T) #对称矩阵 B = torch.tensor([[1,2,3],[2,0,4],[3,4,5]]) # print(B) # print(B == B.T) X = torch.arange(24).reshape(2,3,4) # print(X) #注意结果输出,3和4代表最里层3*4矩阵,2代表最外层 ...
"""Tests for the Air Touch 3 integration."""
import numpy as np """Default values of thermal response and radiative forcing parameters. q : slow and fast coefficients of contribution to temperature tcr : transient climate response (K) ecs : equilibrium climate sensitivity (K) d : slow and fast contributions to global mean temperature ...
import os import vdomr as vd import spikeforest as sf from kbucket import client as kb import spikeforestwidgets as SFW from sortingresultexplorer import SortingResultExplorer os.environ['SIMPLOT_SRC_DIR'] = '../../simplot' class SortingResultSelectWidget(vd.Component): def __init__(self): vd.Component.__...
from pbc import PBC, protectmethod class ProtectedExample(PBC): @protectmethod def __init__(self, value): self.value = value class Inherit(ProtectedExample): def __init__(self, txt): print(txt)
from .custom_permissions import CustomPermissionsUser from .is_active import IsActiveTestUser1 from .invalid_models import ( CustomUserNonUniqueUsername, CustomUserNonListRequiredFields, CustomUserBadRequiredFields, ) from .with_foreign_key import CustomUserWithFK, Email from .uuid_pk import UUIDUser __all__ =...
#!/usr/bin/env python import math import numpy import os import sys from appionlib import apParam from appionlib import apTomo from appionlib import apImod from appionlib import apDisplay from appionlib import appiondata from appionlib import apProTomo try: noProtomo2 = False import protomo except ImportError: noP...
import os from ..lib import utils from ..lib.gravity import Module class ProjectDirectory(Module): @staticmethod def define_arguments(argument_parser): parser = argument_parser.get_or_create_group("Source files", "Parameters determining the process...
from udapter.udify_models.udify_model import UdifyModel from udapter.udify_models.dependency_decoder import DependencyDecoder from udapter.udify_models.tag_decoder import TagDecoder
from flask import render_template, redirect, url_for, flash, request, abort from blogDescomplicandoDados import app, database, bcrypt from blogDescomplicandoDados.forms import FormLogin, FormCriarConta, FormEditarPerfil, FormCriarPost from blogDescomplicandoDados.models import Post, Usuario from flask_login import ...
from flask_login import ( LoginManager as _LoginManager, logout_user as _logout_user, login_user as _login_user ) from .models import User from navycut.utils.security import check_password_hash from navycut.errors.misc import DataTypeMismatchError from .decorators import ( login_required as login_...
import subprocess from nums.core.version import __version__ def runproc(*args): print(" ".join(args)) return subprocess.Popen( args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE ) def communicate(*args): p = runproc(*args) return tuple(map(lambda x...
# -*- coding: utf-8 -*- """Inception V3 model for Keras. Note that the input image format for this model is different than for the VGG16 and ResNet models (299x299 instead of 224x224), and that the input preprocessing function is also different (same as Xception). # Reference - [Rethinking the Inception Architecture...
# -*- coding: utf-8 -*- """ ytelapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import jsonpickle import dateutil.parser from .controller_test_base import ControllerTestBase from ..test_helper import TestHelper from ytelapi.api_helper import APIHelper ...
from emdrp.dpWatershedTypes import * def test_imports(): pass
import discord from discord.ext import commands from __main__ import send_cmd_help class battleship: """Play battleship with one other person""" def __init__(self, bot): self.bot = bot @commands.group(pass_context=True, no_pm=True) async def battleship(self, a): if a.invoked_subcommand is None: await send_...
class PropertyTabChangedEventArgs(EventArgs): """ Provides data for the System.Windows.Forms.PropertyGrid.PropertyTabChanged event of a System.Windows.Forms.PropertyGrid. PropertyTabChangedEventArgs(oldTab: PropertyTab,newTab: PropertyTab) """ @staticmethod def __new__(self, oldTab, newTab...
from dataclasses import dataclass from typing import Optional MAX_NICK_LENGTH = 9 @dataclass class Modes: away: bool = False invisible: bool = False operator: bool = False class User: password: Optional[str] nick: str username: Optional[str] realname: Optional[str] modes: Modes ...
import numpy as np from vsbrnn.utils import tokenise_cat, get_sub_to_cat_dict class DataCreator(): def __init__(self, di, data_type, model, **kwargs): self.data_type = data_type self.properties = kwargs self.model = model if data_type == "glance": self.df = di.get_vsb_se...
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import Dict, List # noqa: F401 from pcluster.api import util from pcluster.api.models.base_model_ import Model from pcluster.api.models.log_stream import LogStream # noqa: E501 class ListImageLogS...
from ajax_select.admin import AjaxSelectAdmin from django.contrib import admin from django.contrib.auth.models import Group from user_group.models import GroupEmail class GroupEmailInline(admin.StackedInline): model = GroupEmail can_delete = False class GroupAdmin(admin.ModelAdmin): inlines = (GroupEmai...
# Copyright 2014-2016 Samsung Research America, Inc. # # 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...
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
#!/usr/bin/env python """ simple script to visualize the trace output of smv / NuSMV via Graphviz's dot-format. first, the trace is parsed and then coded as dot-graph with states as nodes and input (transitions) as arcs between them. even if the counterexample's loop start- and end-state are the same, they are represe...
from importlib import import_module def import_callable(path_or_callable): if hasattr(path_or_callable, '__call__'): return path_or_callable else: assert isinstance(path_or_callable, str) package, attr = path_or_callable.rsplit('.', 1) return getattr(import_module(package), att...
# 200. Number of Islands import collections class Solution: def numIslands(self, grid: List[List[str]]) -> int: ans = 0 dirs = ((0,1), (0,-1), (1,0), (-1,0)) for r in range(len(grid)): for c in range(len(grid[0])): if grid[r][c] == '1': ...
from jetconf.data import BaseDatastore def register_conf_handlers(ds: BaseDatastore) -> None: pass
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `EmptyCitationAttributeUpdator` class.""" import os import tempfile import shutil import unittest import mock from mock import MagicMock from ndexncipidloader.ndexloadncipid import EmptyCitationAttributeUpdator from ndex2.nice_cx_network import NiceCXNetwor...
# -*- coding: utf-8 -*- from plonetraining.testing.testing import ( PLONETRAINING_TESTING_FUNCTIONAL_TESTING, ) from plonetraining.testing.testing import ( PLONETRAINING_TESTING_INTEGRATION_TESTING, ) from plone import api from plone.app.testing import setRoles from plone.app.testing import TEST_USER_ID from zo...
import csv, sys, os, json, traceback import logger from pprint import pprint from veracode_api_py import Users def update_user(row): r = Users().get_by_name(row.pop('username')) if len(r) != 1: raise Exception( '{} user(s) found when 1 was expected; skipping...'.format( len(r) ) ) guid = r[0].get(...
from qiskit import QuantumCircuit as __Quantum_Circuit__ from qiskit import QuantumRegister as __Quantum_Register__ from qiskit import ClassicalRegister as __Classical_Register__ from qbitkit.io.frame import Frame as __fr__ from qbitkit.qasm import translate as __qasm_t__ class Circuit: def new(nqreg=int(2), ...
# # PICO TC-08 # module for windows machines # based on # * https://www.picotech.com/support/topic10247.html # * https://github.com/picotech/picosdk-c-sharp-examples/blob/master/usbtc08/USBTC08Imports.cs # * https://github.com/picotech/picosdk-c-sharp-examples/blob/master/usbtc08/USBTC08CSConsole/USBTC08CSConso...
#!/usr/bin/env python3 # Bütün her şeyi birleştirmekten sorumlu from reader import Reader from lexer import Lexer from parser import Parser from compiler import Compiler from writer import Writer from shell import Shell from classes.Line import Line from classes.Pair import Pair import timeit import sys import os V...
#!/usr/bin/env python from setuptools import setup with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setup( name='world_rowing', version='0.1.15', description='Library for loading and presenting data from the worldrowing.com', author='Matthew Grifiths', author_...