text
stringlengths
3.07k
22.1k
# Apache License # Version 2.0, January 2004 # http://www.apache.org/licenses/ # TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION # Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache Li...
""" Copyright 2021 Max-Planck-Gesellschaft Code author: <NAME>, <EMAIL> Embodied Vision Group, Max Planck Institute for Intelligent Systems, Tübingen This source code is licensed under the MIT license found in the LICENSE.md file in the root directory of this source tree or at https://opensource.org/licenses/MIT. """ ...
# Copyright 2021 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, ...
import concurrent.futures import logging import sys from datetime import timedelta from enum import Enum from functools import partial from urllib.parse import urlunparse from geopy.distance import great_circle from rekt_googlecore.client import paginate_responses from rekt_googlecore.errors import InvalidRequestError...
""" Base classes for documents that back dataset contents. | Copyright 2017-2021, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ from copy import deepcopy import json import re from bson import json_util, ObjectId import mongoengine import pymongo import fiftyone.core.utils as fou import eta.core.seria...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
# -*- coding: utf-8 -*- # # Copyright (c), 2016-2019, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author ...
# # 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...
# ---------------------------------------------------- # # Analizy FDTD potrzebne dla symulatora dyfuzorów # autor: <NAME> # data: 27.01.2021 # e-mail: <EMAIL> # ---------------------------------------------------- # import numpy as np import matplotlib.pyplot as plt from scipy import signal from _imports.sim_co...
# coding: utf-8 from __future__ import division import os import glob import unittest from monty.json import MontyDecoder from monty.tempfile import ScratchDir from monty.serialization import loadfn from pymatgen.io.vasp.inputs import Incar, Kpoints, Poscar, Potcar from pymatgen.core.structure import Structure from ...
import asyncio import base64 import hashlib import ipaddress import logging import os import signal import sys import aiodns import aiohttp from aioftps3.server import ( on_client_connect, ) from aioftps3.server_route53 import ( Route53Context, route_53_upsert_task_private_ip, ) from aioftps3.server_acme_...
# hearts.py from collections import Counter import random import sys from typing import Any, Dict, List, Optional, Sequence, Tuple, Union from typing import overload class Card: SUITS = "♠ ♡ ♢ ♣".split() RANKS = "2 3 4 5 6 7 8 9 10 J Q K A".split() def __init__(self, suit: str, rank: str) -...
# -*- coding:utf-8 -*- """ cron: 10 11 * * * new Env('萌虎摇摇乐匀卡'); """ import requests import json import time import os import re import sys import random import string import urllib ### 1,2,3卡互相匀一下 #以下部分参考Curtin的脚本:https://github.com/curtinlv/JD-Script def randomuserAgent(): global uuid,addressid,iosVer,iosV...
#!/usr/bin/python # Copyright (c) 2017, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
#!/usr/bin/env python # # plotband.py # # Simple script to visualize phonon dispersion relations # # Copyright (c) 2014 <NAME> # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for info...
# -*- coding: utf-8 -*- """ These utilities are designed for incorporation into tests """ # stdlib import os import codecs import json import operator # package import ashes # ============================================================================== # we'll store a global value in here ChertDefaults = None S...
# -*- coding: utf-8 -*- """ Created on Mon Nov 23 16:23:54 2020 @author: huangyuyao """ import torch from torch.utils.data import Dataset from sklearn.preprocessing import MaxAbsScaler from torch.utils.data import DataLoader import os import numpy as np import pandas as pd import scipy from glo...
import traceback from distutils.util import strtobool from http import HTTPStatus from typing import List from fastapi import APIRouter, Depends, Request, Query, Response, BackgroundTasks from fastapi.concurrency import run_in_threadpool from sqlalchemy.orm import Session import mlrun.api.db.session import mlrun.api....
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import numpy as np import sys import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = o...
import os import copy import torch import torch.nn as nn from sklearn import metrics from torch.utils.data import DataLoader from torch.nn.utils import clip_grad_norm_ from config import logger, Config from data_utils import SentenceDataset, build_tokenizer, build_embedding_matrix def accuracy(scores, targets, k=1): ...
from .Team_def import * import time import random def commentary(team, otherteam): teamplayers = [team.player2.name, team.player3.name, team.player4.name, team.player5.name] otherteamplayers = [otherteam.player2.name, otherteam.player3.name, otherteam.player4.name, otherteam.player5.name] ...
from .astf_general_test import CASTFGeneral_Test, CTRexScenario import os, sys from trex.astf.api import * import time import pprint from nose.tools import assert_raises, nottest from scapy.all import * import copy def sortKey(val): return min(val) class ASTFVLAN_Test(CASTFGeneral_Test): ''' Checks for VLAN in...
## examine the effect of acquire_time and variation of dark current # fix total exposure time and changing acquire time to observe the # quality of PDF. import os import numpy as np import matplotlib.pyplot as plt import tifffile as tif round_num = input('Which round is this test? ') acq_time_list = [0.1, 0.5, ...
""" Deploy code snips into swig interface files (c) Hex-Rays """ from __future__ import print_function import sys, re, os, glob major, minor, micro, _, _ = sys.version_info try: from argparse import ArgumentParser except: print("Failed to import module 'argparse'. Upgrade to Python 2.7, copy argparse.py to ...
from __future__ import print_function import argparse import shutil import torch import torchvision import random import os import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR from torch.utils.tensorbo...
# Copyright 2022 Xanadu Quantum Technologies 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...
# Licensed under a 3-clause BSD style license - see LICENSES import os from os.path import dirname, join from tempfile import mkdtemp, NamedTemporaryFile import numpy as np from numpy.testing import assert_allclose, assert_almost_equal from astropy.table import Table from astropy.extern import six from astropy import...
"""Script for single-gpu/multi-gpu demo.""" import argparse import os import platform import sys import time import numpy as np import torch from tqdm import tqdm import natsort import cv2 from detector.apis import get_detector from trackers.tracker_api import Tracker from trackers.tracker_cfg import cfg as tcfg from...
# -*- coding: utf-8 -*- """ Test set for BioSim class interface for INF200 June 2021. This set of tests checks the interface of the BioSim class to be provided by the simulation module of the biosim package. Notes: - The BioSim class should pass all tests in this set. - The tests check only that the class ...
# # 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...
# -*- coding: utf-8 -*- """ Created on Sun Dec 28 15:33:33 2014 @author: <NAME> """ # This is a wrapper that makes it possible to create motion charts from a pandas dataframe # # Acknowledgements and more information # See https://github.com/RamyElkest/SocrMotionChartsHTML5 for more information about the javascript # ...
""" DynamoDB types and type logic """ from decimal import Clamped, Context, Decimal, Overflow, Underflow from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union from typing_extensions import Literal, TypedDict from .constants import ( BINARY, BINARY_SET, BOOL, LIST, MA...
# 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...
from fnmatch import fnmatch from guillotina import logger from guillotina import profile from guillotina._settings import app_settings from guillotina.factory import make_app from guillotina.utils import get_dotted_name from guillotina.utils import resolve_dotted_name import argparse import asyncio import cProfile imp...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Utility methods for conversations format. """ import datetime import json import os import random from parlai.utils....
import json import logging import re from pathlib import Path import ruamel.yaml import sqlfluff from .superset_api import Superset logging.basicConfig(level=logging.INFO) logging.getLogger('sqlfluff').setLevel(level=logging.WARNING) def get_tables_from_sql_simple(sql): sql = re.sub(r'(--.*)|(#.*)', '', sql) ...
from datetime import datetime, timedelta, timezone import logging import pickle from unittest.mock import Mock import pytest import trio from . import AsyncMock, asyncio_loop, fail_after from starbelly.frontier import FrontierExhaustionError from starbelly.job import ( PipelineTerminator, RunState, StatsT...
""" 工具函数 """ import ctypes import inspect import os import pkgutil import random import sys import time import types import warnings from copy import deepcopy from datetime import datetime, time from functools import wraps from io import TextIOWrapper from threading import RLock from time import sleep from typing impor...
import time import os import getopt import sys import datetime import numpy as np from milvus import * import config import logging import random milvus = Milvus() def is_normalized(): filenames = os.listdir(NL_FOLDER_NAME) filenames.sort() vetors = load_vec_list(NL_FOLDER_NAME+'/'+filenames[0]) for ...
from hpp.corbaserver.manipulation import Robot, loadServerPlugin, createContext, newProblem, ProblemSolver, ConstraintGraph, Rule, Constraints, CorbaClient from hpp.gepetto.manipulation import ViewerFactory import sys, argparse # parse arguments defaultContext = "corbaserver" p = argparse.ArgumentParser (description= ...
import datetime import json import re import sys from dataclasses import dataclass as vanilla_dataclass from decimal import Decimal from enum import Enum from ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network from pathlib import Path from typing import List from uuid impo...
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # 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/LICEN...
""" This file contains various helpers and basic variables for the test suite. Defining them here rather than in conftest.py avoids issues with circular imports between test/conftest.py and test/backend/<backend>/conftest.py files. """ import functools import logging import multiprocessing import os import subprocess...
from __future__ import annotations import os import sys from contextlib import contextmanager from typing import TYPE_CHECKING from warnings import warn from qtpy.QtCore import Qt from qtpy.QtGui import QIcon from qtpy.QtWidgets import QApplication from .. import __version__ from ..settings import get_settings from ...
import random import csv import os from pathlib import Path from tabulate import tabulate from abc import abstractmethod import keras.layers as Kl import keras.models as Km import numpy as np import matplotlib.pyplot as plt class TicTacToe(): def __init__(self, player1, player2, exp1=1, exp2=1): self.sta...
# Copyright 2004-present Facebook. All rights reserved. # pyre-unsafe import functools import glob import json import logging import os import subprocess import sys import tempfile import threading from collections import namedtuple from json.decoder import JSONDecodeError from logging import Logger from typing impo...
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import itertools import logging from abc import ABC, ABCMeta from dataclasses import dataclass from enum import Enum from pathlib import PurePath from typing import Any, Dict, Iterable, Li...
#!/usr/bin/env python3 # -*- CoDing: utf-8 -*- """ Created on May 22 2019 Last Update May 22 2019 @author: simonvanvliet Department of Zoology University of Britisch Columbia <EMAIL> This recreates the data and figure for figure 3 By default data is loaded unless parameters have changes, to rerun model set override_...
from keras.preprocessing import image import numpy as np from glob import glob import pickle import random import cv2 from model.extract_bottleneck_features import extract_InceptionV3 from keras.applications.resnet50 import preprocess_input from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True from keras.lay...
import copy import os import zipfile from ipaddress import ip_network import dateutil.parser from django.http import FileResponse from django.db import transaction from account.decorators import check_contest_permission, ensure_created_by from account.models import User from submission.models import Submission, Judge...
import math from typing import Dict, Optional import torch import torch.nn as nn import torch.nn.functional as F from kornia.constants import pi from kornia.feature import ( extract_patches_from_pyramid, get_laf_orientation, raise_error_if_laf_is_not_valid, set_laf_orientation, ) from kornia.filters i...
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib.offsetbox import AnchoredOffsetbox #from matplotlib.transforms import IdentityTransform import matplotlib.transforms as mtrans #from matplotlib.axes import Axes from .mpl_axes imp...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Astropy is a package intended to contain core functionality and some common tools needed for performing astronomy and astrophysics research with Python. It also provides an index for other astronomy packages and tools for managing them. """ import sy...
# Copyright (c) 2021 Graphcore Ltd. All rights reserved. import argparse import os import time import numpy as np import tensorflow.compat.v1 as tf from tensorflow.keras.datasets import mnist from tensorflow.keras import layers from tensorflow.python import ipu tf.disable_eager_execution() tf.disable_v2_behavior() ...
from flask import (abort, flash, redirect, render_template, request, session, url_for) from sqlalchemy.exc import IntegrityError from app import db from mod_blog.forms import PostForm, CategoryForm from mod_blog.models import Post, Category from mod_users.forms import LoginForm, RegisterForm from m...
# Keras import keras from keras import regularizers from keras.preprocessing import sequence from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.models import Sequential, Model, model_from_json from keras.layers import Dense, Embedding, LSTM from keras.layers...
#!/usr/bin/python # -*- coding: utf-8 -*- # # FIXME: required to pass ansible-test # GNU General Public License v3.0+ # # Copyright 2019 Arista Networks AS-EMEA # # 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 ...
import argparse import contextlib import pathlib import sys from datetime import datetime from typing import Mapping, TextIO, Tuple, Iterable, Optional import semver import toml from poetry2conda import __version__ def convert( file: TextIO, include_dev: bool = False, extras: Optional[Iterable[str]] = None ) ->...
# -*- coding: utf-8 -*- """Script to generate the content about community evnts from meetup api.""" # Standard library imports from collections import OrderedDict import io import json import os import shutil # Third party imports from jinja2 import Undefined from lektor.project import Project from lektor.utils impor...
#coding=utf-8 ''' Created on 2016年9月5日 @author: 10256603 ''' from dataset import * from configparser import ConfigParser import codecs import time from os.path import join,isdir, isfile import subprocess import shutil import datetime #import glob #import timeit from multiprocessing.dummy import Pool ...
"""Defines how to render the current project and project_config using the included documentation generation utilities. """ import os import shutil import sys import tempfile from contextlib import contextmanager from glob import glob from typing import Dict, Iterator, Tuple import mkdocs.config as mkdocs_config import...
import math as m import matplotlib.pyplot as plt def not_a_num(number): '''Will check to see if the value passed to the functions is a float or and int''' if type(number)!=int and type(number)!=float: return True else: return False def check_given(R,c,v,n): '''Will check to ...
import ply.lex as lex import types import re # Token class, has all the necessary data for error reporting # and reconstruction of the program class PQLexerToken: def __init__(self, type, value, line_no, column): self.type = type self.value = value self.line_no = line_no self.column = column def ...
import os import platform import re import shutil import subprocess import sys from distutils.command.build import build # type: ignore from distutils.command.install import install from distutils.version import LooseVersion from setuptools import Command, Extension, setup, setuptools from setuptools.command.build_ex...
"""LinearSolver that uses PetSC KSP to solve for a system's derivatives.""" from __future__ import division, print_function import numpy as np try: import petsc4py from petsc4py import PETSc except ImportError: PETSc = None from openmdao.solvers.solver import LinearSolver from openmdao.utils.general_util...
# -*- coding: utf-8 -*- # 版权所有 2020 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”), # 您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时...
import os import time import shutil import tempfile from unittest import TestCase from boto3 import Session from botocore.exceptions import ClientError from click.testing import CliRunner from samcli.commands.init import cli as init_cmd AWS_CONFIG_FILE = "AWS_CONFIG_FILE" AWS_SHARED_CREDENTIALS_FILE = "AWS_SHARED_CRE...
# # The Python Imaging Library. # $Id$ # # a Tk display interface # # History: # 96-04-08 fl Created # 96-09-06 fl Added getimage method # 96-11-01 fl Rewritten, removed image attribute and crop method # 97-05-09 fl Use PyImagingPaste method instead of image type # 97-05-12 fl Minor tweaks to match...
""" builtin_bracket.py """ from __future__ import print_function from _devbuild.gen.id_kind_asdl import Id from _devbuild.gen.runtime_asdl import value, quote_e, quote_t from _devbuild.gen.syntax_asdl import ( word, word_e, word_t, word__String, bool_expr, ) from _devbuild.gen.types_asdl import lex_mode_e fro...
"""f90nml.parser ============= Fortran namelist parser and tokenizer to convert contents into a hierarchy of dicts containing intrinsic Python data types. :copyright: Copyright 2014 <NAME>, see AUTHORS for details. :license: Apache License, Version 2.0, see LICENSE for details. """ import copy import i...
# main.py import os import time import yaml import numpy as np # import test framework import openhtf as htf from openhtf.plugs.user_input import UserInput from spintop_openhtf import TestPlan from openhtf.util import conf from openhtf.core import measurements import SpiceInterface import TestUtilities from criteria...
# (C) 2019 <NAME> <<EMAIL>> import numpy as np from imgaug import augmenters as iaa def normalize(X): return (X / 255.0).copy() def denormalize(X): X_dn = (X * 255).copy() return X_dn def transform(aug_type, magnitude, X): if aug_type == "crop": X_aug = iaa.Crop(px=(0, int(magnitude * 32)...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
import functools import math from math import sqrt import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange from torch import einsum from models.diffusion.unet_diffusion import AttentionBlock from models.gpt_voice.lucidrains_dvae import DiscreteVAE from models.stylegan.stylegan2...
# We need to set this variable to shut-up TensorFlow's C++ logging messages import csv import os import faulthandler import signal import sys from typing import Dict faulthandler.enable() faulthandler.register(signal.SIGUSR1) import numpy as np import tensorflow as tf import gorilla import tqdm from fslks.experimen...
import networkx as nx from nft_nodes import * t1 = TableDataSource(config_file="actor_table.yaml") t2 = TableDataSource(config_file="store_table.yaml") t3 = TableDataSource(config_file="film_table.yaml") t4 = TableDataSource(config_file="film_actor_table.yaml") t5 = TableDataSource(config_file="film_category_table.ya...
"""Reports""" from django.db import connection import pandas as pd import numpy as np from ..common.models import Category, Channel from ..incidents.models import Incident from .functions import get_detailed_report, get_general_report, encode_column_names, get_subcategory_report, \ incident_type_query, incident_l...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ SA - Multi MDO - Assignment 4b. MIT - Spring 2021 @author: cristianjunge """ import pandas as pd import math import random import numpy as np def ConstraintsCalculation (x,manure_limit): r1 = 1000000 Manure_total = x.Demand0.sum() ...
# -*- coding: utf-8 -*- """ Copyright (c) 2015-2016 <NAME> THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ...
"""Denon HEOS Media Player.""" from __future__ import annotations from collections.abc import Sequence from functools import reduce, wraps import logging from operator import ior from pyheos import HeosError, const as heos_const from homeassistant.components.media_player import MediaPlayerEntity from homeassistant.c...
# data.py -- Calculated/Discovered Data Values # Copyright 1998-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 import os, pwd, grp, platform, sys import portage portage.proxy.lazyimport.lazyimport(globals(), 'portage.output:colorize', 'portage.util:writemsg', 'subprocess'...
""" Font Bakery callable is the wrapper for your custom check code. Separation of Concerns Disclaimer: While created specifically for running checks on fonts and font-families this module has no domain knowledge about fonts. It can be used for any kind of (document) checking. Please keep it so. It will be valuable fo...
# Open BSV License version 3 # Copyright (c) 2021 Bitcoin Association # # 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, ...
"""Shelly entity helper.""" from dataclasses import dataclass from typing import Any, Callable, Optional, Union import aioshelly from homeassistant.core import callback from homeassistant.helpers import device_registry, entity, update_coordinator from . import ShellyDeviceRestWrapper, ShellyDeviceWrapper from .const...
"""Controller program to manage the benchmark.""" import os import random import socket import sys from controller import Supervisor try: from shapely.geometry import Point from shapely.geometry import LineString except ImportError: sys.stderr.write("Error: 'shapely' module not found.\n") sys.exit(0) ...
from __future__ import print_function, absolute_import, division import math import os from KratosMultiphysics import * from KratosMultiphysics.DEMApplication import * def VectSum(v, w): return [x + y for x, y in zip(v, w)] def VectTimes(v, c): return [c * x for x in v] def InnerProd(v, w): res = 0.0 ...
from operator import attrgetter from jira import JIRA from roadmap.logging import Logger class Lanes: TODO = "To Do" DOING = "In Progress" REVIEW = "Needs Review" DONE = "Done" class IssueTypes: TASK = "Task" SUBTASK = "Sub-Task" BUG = "Bug" STORY = "Story" EPIC = "Epic" clas...
#!/usr/bin/env python # encoding: utf-8 # # maskbit.py # # @Author: <NAME> <andrews> # @Date: 2017-10-06 10:10:00 # @Last modified by: <NAME> (<EMAIL>) # @Last modified time: 2018-11-26 11:51:50 from __future__ import absolute_import, division, print_function import os import numpy as np import pandas as pd impor...
#!/usr/bin/python # coding:utf-8 from __future__ import print_function, unicode_literals import json import threading from queue import Queue import cfscrape from bs4 import BeautifulSoup from requests.adapters import HTTPAdapter from config import * from logger_router import LoggerRouter from proxy import get_ip_fr...
import discord, time, asyncio, os, random, json, requests from discord.ext import commands, tasks from discord.ext.commands import has_permissions, cooldown, MissingPermissions, check, has_role from discord.utils import get from termcolor import colored class App(commands.Cog): def __init__(self, client): ...
r""" Miscellaneous """ #***************************************************************************** # Copyright (C) 2007 <NAME> <<EMAIL>>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; w...
__docformat__ = "numpy" # pylint: disable=R1710 import argparse from typing import List, Union, Set import difflib from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.helper_funcs import get_flair, system_clear from gamestonk_terminal.me...
import abc import inspect from pathlib import Path from typing import Any, Callable, Mapping, Optional import numpy as np import pandas as pd import pandas.testing as tm import pytest import ibis import ibis.backends.base_sqlalchemy.compiler as comp import ibis.expr.types as ir # TODO: Merge into BackendTest, #2564...
import sys from rpython.rlib.rarithmetic import intmask, r_uint, LONG_BIT from rpython.rlib.objectmodel import we_are_translated from rpython.rlib import rmmap from rpython.rlib.debug import debug_start, debug_print, debug_stop from rpython.rlib.debug import have_debug_prints from rpython.rtyper.lltypesystem import llt...
# 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...
#!/usr/bin/python # -*- coding: utf-8 -*- """ The obfs3 module implements the obfs3 protocol. """ import random import obfsproxy.common.aes as aes import obfsproxy.transports.base as base import obfsproxy.transports.obfs3_dh as obfs3_dh import obfsproxy.common.log as logging import obfsproxy.common.hmac_sha256 as hm...
""" Copyright 2021 Comcast Cable Communications Management, 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 agre...
#!/usr/bin/env python # -*- coding: utf-8 -*- import time class constants(object): MAX7219_REG_NOOP = 0x0 MAX7219_REG_DIGIT0 = 0x1 MAX7219_REG_DIGIT1 = 0x2 MAX7219_REG_DIGIT2 = 0x3 MAX7219_REG_DIGIT3 = 0x4 MAX7219_REG_DIGIT4 = 0x5 MAX7219_REG_DIGIT5 = 0x6 MAX7219_REG_DIGIT6 = 0x7 M...
from functools import lru_cache import cv2 import numpy as np from . import resources import zipfile from . import common from util.richlog import get_logger import config idx2id = ['-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', '...
import base64 import binascii import json import logging import re from arq import Retry from buildpg import MultipleValues, Values from chevron import ChevronError from concurrent.futures import TimeoutError from datetime import datetime, timezone from foxglove import glove from httpx import ConnectError from itertool...