text
stringlengths
8.04k
46.5k
import rdkit from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import PandasTools from rdkit.Chem import Descriptors import pandas as pd import numpy as np import molvs import sys import os import subprocess import tempfile import fnmatch import xlrd import sqlite3 from molvs.tautomer import Tautome...
from django.shortcuts import render, redirect from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate from django.contrib.auth.models import User from django.http import Http404, HttpResponse, JsonResponse from django.template.res...
import numpy as np def unique(sorted_array): """ More efficient implementation of np.unique for sorted arrays :param sorted_array: (np.ndarray) :return:(np.ndarray) sorted_array without duplicate elements """ if len(sorted_array) == 1: return sorted_array left = sorted_array[:-1] ...
import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader, random_split import numpy as np from time import time import argparse class GloveTokenizer: def __init__(self, filename, unk='<unk>', pad='<pad>'): self.file...
""" Running BASTA from XML files. Main wrapper! """ import os import gc import sys import copy import traceback from xml.etree import ElementTree from distutils.util import strtobool import numpy as np from basta.bastamain import BASTA, LibraryError from basta.constants import sydsun as sydc from basta.constants impo...
import numpy as np import random import os, os.path import numpy as np from math import pow import pandas as pd import csv from math import pow ,sqrt import random from sklearn.ensemble import RandomForestRegressor class Tiling: def __init__(self, xStart, xEnd, yStart, yEnd, zStart, zEnd, binNumber, ex...
# -*- coding: utf-8 -*- """ Created on Sun Mar 1 18:24:35 2020 @author: <NAME> """ from __future__ import print_function import pygame import numpy as np import os import tensorflow as tf from tensorflow import keras import pickle import time import matplotlib.pyplot as plt import glob import gc os.environ['TF_CPP...
import copy import multiprocessing import os import signal from abc import ABC, abstractmethod from ludwig.constants import MAXIMIZE, VALIDATION, TRAINING, TEST from ludwig.data.postprocessing import postprocess from ludwig.hyperopt.sampling import HyperoptSampler, \ logger from ludwig.predict import predict, prin...
from __future__ import absolute_import, division, print_function from cctbx import crystal, sgtbx, xray from cctbx.eltbx import covalent_radii from cctbx.array_family import flex from libtbx.test_utils import show_diff from iotbx.cif import geometry from scitbx import matrix from six.moves import cStringIO as StringIO ...
from django.shortcuts import render, redirect from django.shortcuts import HttpResponseRedirect,Http404,render_to_response from django.http import HttpResponse from django.views.decorators import csrf from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from d...
import itertools import pickle import scipy import sys import pandas as pd from pandas import DataFrame as df import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm from sklearn import preprocessing from laplotter import LossAccPlotter ds_loc="../dataset/cifar-10-batches-py/" plot_loc="./plots/" s...
# -*- coding: utf-8 -*- """ This module contains methods related to reading input files, such as targets.csv, probes.csv etc. """ import re import sys import os, hashlib import pandas as pd import Bio.Seq import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) sh = logging.StreamHandler() sh.setF...
"""functions to reconstruct the object 3D trajectory""" import numpy as np from scipy.optimize import least_squares, differential_evolution from scipy.interpolate import interp1d from data_treat.objectExtract import compute_2d_traj import matplotlib.pyplot as plt from gui.gui_utils import plot_fig import matplotlib mat...
import numpy as np import matplotlib.pyplot as plt import networkx as nx from mbtr.losses import LinRegLoss, QuantileLoss, QuadraticQuantileLoss # package required for plotting the tree; installation issues under windows # from networkx.drawing.nx_agraph import graphviz_layout from time import time from numba import ji...
import glob import multiprocessing as multi import pathlib import shutil import femio import matplotlib.pyplot as plt import numpy as np import scipy.sparse as sp import siml.prepost as prepost import siml.setting as setting PLOT = False def conversion_function(fem_data, data_directory): adj = fem_data.calcula...
#!/usr/bin/env python """ MIT License Copyright (c) 2021 <NAME> <<EMAIL>> 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, cop...
#!/usr/bin/python3.8 # -*- coding: utf-8 -*- # please adjust these two lines if necessary # menu_multizaehlen.py # (C) <NAME> 2017-2021 # 1.0.0: 2017-02-19: Anfang, aus menu_zaehlen.py entwickelt # 1.1.0: 2017-02-19: erstmals funktionsfähig # 1.2.0: 2017-07-18: Erweiterung und neues Konzept # 1.2.8: 2020-08-19: Ausg...
__author__ = 'Elahe' import ephem import numpy as np import json from numpy import * import sqlite3 as lite from calculations import * import pandas as pd class DataFeed(object): def __init__(self, date, site, custom_episode = False): self.Site = site self.night_id = int(date - ephem.Date('20...
"""Miscellaneous utilities """ import sys import os import stat import subprocess import collections from collections import namedtuple import zipfile import math import re import hashlib import time import mimetypes import binascii import codecs from base64 import b64decode from urllib.parse import unquote_to_bytes fr...
#!/usr/bin/python3 ################################################################################ # Demo - Creating Bird Eye View of an Intersection # # Version: 14 Nov 2021 # Author : <NAME> - <EMAIL> # # License: MIT # Copyright (c) 2021 <NAME> # # Permission is hereby granted, free of charge, to any person obtain...
#!/usr/bin/env python3 # -*- coding: cp1252 -*- ''' Created on ? GUI_navigation.py Navigation area and related code for TypeLoader @author: <NAME> ''' import sys, os from PyQt5 import QtSql from PyQt5.QtWidgets import (QGridLayout, QWidget, QMessageBox, QLabel, QApplication, QMenu) from ...
# -*- coding: utf-8 -*- import wx import zipfile import csv import dbfread import os import sys import io import tempfile import datetime class Player: def __init__(self, x): x = x.rstrip() self.last_name = x[0:25] self.first_name = x[25:50] self.school_code = x[50:54].str...
import argparse import json import logging import os import random import sys import time import warnings import glob from functools import partial import pandas as pd import time, datetime import gc import warnings warnings.filterwarnings('ignore') from sklearn.metrics import recall_score import logging.handlers ...
import json import pickle import numpy as np import random # from fairseq.data import Dictionary import sys import torch import argparse import os from fairseq.models.roberta import RobertaModel from utils_sample import NewsIterator from utils_sample import cal_metric import utils_sample as utils # import dgl # import ...
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import logging import os import time from azureml._base_sdk_common.common import create_role_assignment from azureml._base_sdk_comm...
#!/usr/bin/python3 import argparse import os import sys import re from collections import defaultdict import random import pickle import traceback import itertools import colorsys try: import p_tqdm from tqdm import tqdm except: sys.exit("Requires p_tqdm pip package to be installed. Run:\npip install p_tqd...
""" utils.py Various & sundry utility methods, mostly related to dataset conversion and loading, signal processing, etc. The rationale for providing these functions here rather than as part of the Net class is to facilitate the convenient manipulation of data in the interactive shell, particularly when using NN models...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2015-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is avail...
#%load_ext autoreload #%autoreload 2 import dataclasses import glob import logging import os import shutil import warnings from dataclasses import dataclass from datetime import datetime, timedelta from typing import Dict, List, Optional, Tuple import numpy as np import pandas as pd from scipy.sparse.csr import csr_m...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Implémentation du jeu Tetris Usage: >>> from tetris_game import TetrisGame >>> TetrisGame() """ from tkinter import * from tkinter import messagebox from PIL import Image, ImageTk import random import time import csv import os.path from tetris_game...
# Copyright 2018 <NAME> # # This file is an extension to Mycroft Core. # # Mycroft Core is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
# -*- coding: utf-8 -*- """ Created on Thu Mar 10 04:50:37 2016 Inherits galaxymodule.galaxy.Galaxy class A galaxy is built with stars, DMs, and cell data bu default. The three components are assuemd to present, but an additional functionality is desired in case one or more components are missing. Unlike cells, ther...
# Author: <NAME>, <<EMAIL>>, Institute of Physics, Chinese Academy of Sciences """ Defines functions to decompose the kp model into symmetric basis according to MSG linear coirreps """ import numpy as np import sympy as sp from sympy.core.numbers import I from functools import reduce from scipy.linalg import null_spac...
""" Skeletonizer: Python Cell Morphology Analysis and Construction Toolkit KAUST, BESE, Neuro-Inspired Computing Project © 2014-2015. All rights reserved. """ """ This Blender script that generates cross-sectional data from a skeletonization representation in an Amiramesh text file, and a Blender project c...
import atexit import logging import os import signal import sys import core.services from core.coreobj import PyCoreNet from core.coreobj import PyCoreNode from core.data import NodeData from core.emulator.emudata import LinkOptions from core.emulator.emudata import NodeOptions from core.enumerations import EventTypes...
from collections import defaultdict, namedtuple, deque import datetime import heapq import random import re import sys import os import numpy as np import matplotlib.pyplot as plt from scipy.sparse import csc_matrix from scipy.sparse.linalg import spsolve, lsqr from shortest import voting, short_paths Point = namedt...
# network_gen.py # Code for generating files needed to synthesize entire networks. import os import layer_gen import utils import hls import copy import math # Creates and returns layer objects for the AXI-in and AXI-out layers # of a network. def create_axi_layers(network_spec): axi_in_spec = {'layer_type': 'axi_...
#!/usr/bin/env python3 import argparse import yaml import glob import numpy as np import matplotlib.pyplot as plt from astropy import constants from matplotlib.colors import LogNorm from os import mkdir from matplotlib import ticker import athena_read from math import floor,ceil # import athenaplotlib as ath class St...
from tensorflow.python.keras.layers import Input, Dense, Convolution2D, MaxPooling2D, Dropout, Flatten, SpatialDropout2D, \ ZeroPadding2D, Activation, AveragePooling2D, UpSampling2D, BatchNormalization, ConvLSTM2D, \ TimeDistributed, Concatenate, Lambda, Reshape, UpSampling3D, Convolution3D, MaxPooling3D, Spati...
import numpy as np import gym import matplotlib.pyplot as plt import os, json, time import path_utils import Agent gym.logger.set_level(40) ''' Evolve class -------------------- Used to run an agent in a gym env over a number (N_gen) of generations. Each generation, the same agent is run for N_trials, because for m...
""" Basic trainer class that encapsolates training """ import tensorflow as tf import os import math import copy import framework.subgraph.core as core import framework.utils.common as common_utils import logging import framework.evaluator import framework.utils.common as utils from time import time import collections...
import sys, os sys.path.append(os.path.join(sys.path[0], 'paper_version', 'psi')) import numpy as np import helper from joblib import Parallel, delayed import time import matplotlib.pyplot as plt import matplotlib class Inference_Result: """Collection of the results of the post-selection inference procedure on on...
import sys import pandas as pd import itertools import tqdm import os import qnn_gate_types_and_depth as vqc from gaussian_decoding import create_gaussian_distributions, gen_rand_gaussian # Plotting import matplotlib.pyplot as plt # PyTorch import torch import torch.nn as nn import torch.optim as opti...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
import os import re from collections import OrderedDict, defaultdict import bs4 from bs4 import BeautifulSoup, Tag from quantlaw.utils.files import ensure_exists, list_dir from quantlaw.utils.pipeline import PipelineStep from statics import US_ORIGINAL_PATH, US_XML_PATH class UsToXmlStep(PipelineStep): def get_...
import collections import logging from abc import ABCMeta from copy import deepcopy from itertools import accumulate from random import random, sample from typing import Any, Dict, List, Optional, Sequence, Tuple import numpy as np from transformers import PreTrainedTokenizer from transformers.tokenization_utils_fast ...
import os import sys import pprint import tempfile import itertools import subprocess import multiprocessing from collections import defaultdict from contextlib import contextmanager import luigi import ujson import numpy as np from numpy.random import RandomState import pandas as pd import tensorflow as tf from keras...
# 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 os import re import unittest import pkgutil import io from datetime import timedelta from unittest import TestCase import numpy as np im...
from __future__ import print_function import argparse import numpy as np import os, csv from dataset import CIFAR10IndexPseudoLabelEnsemble import pickle import torch import torch.nn as nn import torch.nn.functional as F import torchvision.transforms as transforms import torch.utils.data as Data import torch.backends....
# Copyright 2020-2021 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 or agre...
# Django settings import os import django.conf.global_settings _DEFAULT_ARG = object() def non_zipcode_countries(): return { "AE": "United Arab Emirates", "AG": "Antigua and Barbuda", "AN": "Netherlands Antilles", "AO": "Angola", "AW": "Aruba", "BF": "Burkina Fas...
""" Pytorch Lightning Module for training prototype segmentation model on Cityscapes and SUN datasets """ import os from typing import Dict, Optional import gin import numpy as np import torch from torch import nn from pytorch_lightning import LightningModule from sklearn.metrics import roc_auc_score from torch.optim....
import numpy as np from Bio import Seq, SeqRecord alphabet_synonyms = {'nuc':'nuc', 'nucleotide':'nuc', 'aa':'aa', 'aminoacid':'aa', 'nuc_nogap':'nuc_nogap', 'nucleotide_nogap':'nuc_nogap', 'aa_nogap':'aa_nogap', 'aminoacid_nogap':'aa_nogap', 'DNA':'nuc',...
""" Data preparation. Download: https://catalog.ldc.upenn.edu/LDC93S1 Authors * <NAME> 2020 * <NAME> 2020 """ import os import csv import logging from speechbrain.utils.data_utils import get_all_files from speechbrain.dataio.dataio import ( load_pkl, save_pkl, read_kaldi_lab, read_audio, ) logger =...
import unittest import warnings import numpy import pytest import cupy from cupy import testing def _dec_shape(shape, dec): # Test smaller shape return tuple(1 if s == 1 else max(0, s - dec) for s in shape) def _rand1_shape(shape, prob): # Test broadcast # If diagonals are "broadcasted" we can sim...
# Copyright (c) 2018-2019 <NAME> # SPDX-License-Identifier: BSD-3-Clause from _libyang import ffi from _libyang import lib from .util import c2str from .util import str2c #------------------------------------------------------------------------------ def schema_in_format(fmt_string): if fmt_string == 'yang': ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F from .lib.utils import * from .lib.functions import * class YO...
import numpy as np import pickle from SmallParser import SmallDatasetParser, get_doubling_xy, get_x, read_data from Processing import correct_slopes, decorrect_slopes, normalize_features, normalize_with_norms, \ denormalize_with_norms, normalize_total, split_train_test import AutoEncoders import GeneLists import C...
# -*- coding: utf-8 -*- # Copyright (c) 2009 <NAME> <<EMAIL>> # Copyright (c) 2010-2014 LOGILAB S.A. (Paris, FRANCE) <<EMAIL>> # Copyright (c) 2010 <NAME> <<EMAIL>> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2013-2018 <NAME> <<EMAIL>> # Copyright (c) 2014 <NAME> <<EMAIL>> # Copyright (c) 2014 <NAME> <<EMAIL...
from datetime import datetime from datetime import timedelta import hashlib import sqlite3 import os import math # from typing import Dict, Any """ TABLES Every table is represent as one class with getter and setter methods. """ class Sleep: start = [] end = [] wakeup_day = [] de...
# -*- coding: utf-8 -*- # Spearmint # # Academic and Non-Commercial Research Use Software License and Terms # of Use # # Spearmint is a software package to perform Bayesian optimization # according to specific algorithms (the “Software”). The Software is # designed to automatically run experiments (thus the code name ...
# -*- coding: utf-8 -*- from collections import Counter from functools import reduce import itertools import pandas as pd import numpy as np from tqdm import tqdm import app.config.env as env from app.entity.Entity import Entity from app.tools.Logger import logger_simulation as logger from app.graph.Node import Comb...
import pandas as pd import numpy as np from matplotlib import pyplot as plt import os import time import datetime import glob import random import cv2 import math from sklearn.model_selection import StratifiedKFold import albumentations as A from albumentations.pytorch.transforms import ToTensorV2 import torch from tor...
# -*- coding: utf-8 -*- # imageio is distributed under the terms of the (new) BSD License. """ Plugin that wraps the the Pillow library. """ from __future__ import absolute_import, print_function, division from warnings import warn import numpy as np import threading from .. import formats from ..core import Format...
import csv import json import tarfile import zipfile from collections import defaultdict from dataclasses import dataclass from functools import cache from typing import AbstractSet, Any, List, Mapping, MutableMapping, MutableSet, TypeVar import commentjson import jaconv import requests from datapackage import Package...
import argparse import datetime import os import numpy as np np.random.seed(1234) # Set random seed for reproducibility import warnings import rasterio import time from pathlib import Path from tqdm import tqdm from collections import OrderedDict from utils.CreateDataset import create_files_and_datasets from utils.u...
#!/usr/bin/env python3 # # Copyright 2019 The Bazel 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 ...
"""Support for Dark Sky weather service.""" from __future__ import annotations from dataclasses import dataclass, field from datetime import timedelta import logging from typing import Literal, NamedTuple import forecastio from requests.exceptions import ConnectionError as ConnectError, HTTPError, Timeout import volu...
# -*- coding: utf-8 -*- """ itsdangerous ~~~~~~~~~~~~ A module that implements various functions to deal with untrusted sources. Mainly useful for web applications. :copyright: (c) 2011 by <NAME> and the Django Software Foundation. :license: BSD, see LICENSE for more details. """ import sys ...
#!/usr/bin/env python """GRR specific AFF4 objects.""" import re import time import logging from grr.client.components.rekall_support import rekall_types as rdf_rekall_types from grr.lib import access_control from grr.lib import aff4 from grr.lib import data_store from grr.lib import flow from grr.lib import grr_co...
from random import randint import sys import json import requests from requests.exceptions import ConnectTimeout, SSLError, ReadTimeout, ConnectionError import numpy as np import pandas as pd import QUANTAXIS as QA from QUANTAXIS.QAUtil import ( DATABASE, QA_util_code_tolist, QA_util_date_stamp, QA_util...
"""Facilities to build mypy programs and modules they depend on. Parse, analyze and translate the source files of a program in the correct order (based on file dependencies), and collect the results. This module only directs a build, which is performed in multiple passes per file. The individual passes are implement...
from random import randint, shuffle, choices from random import random as rand import pickle import math import json from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F from vlp.loader_utils import get_random_word, batch_list_to_batch_tensors, Pipeline import torchvis...
#!/usr/bin/env python3 # coding: utf-8 """ 核心模块,包含所有基本类 ~~~~~~~~~~~~~~~~~~~~~ 包括: * Career: 单个职业 * Careers: 职业合集,附带一些实用的方法 * Card: 单张卡牌 * Cards: 卡牌合集,附带一些实用的方法 * Deck: 单个卡组 * Decks: 卡组合集,附带一些实用的方法 """ import json import logging import os import re import webbrowser from collections import Counter from copy import ...
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 3, or (at your option) any # later version. # # This program is distributed in the...
# # Copyright (c) 2020, NVIDIA 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 agreed ...
""" Contain all the code needed to interact with the outside world, e.g., through system commands, env vars, ... Import as: import helpers.hsystem as hsysinte """ import getpass import logging import os import re import signal import subprocess import sys import time from typing import Any, Callable, List, Match, Op...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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...
# Copyright 2015 SAP SE. # # 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, # softw...
""" Module for wrapping many Op parameters into one object available in both Python and C code. The module provides the main public class :class:`ParamsType` that allows to bundle many Aesara types into one parameter type, and an internal convenient class :class:`Params` which will be automatically used to create a Pa...
import joblib import sys import pandas as pd import numpy as np from sklearn.preprocessing import normalize from pathlib import Path import h5py import sys #import ogr, os #import gdal, osr import math from math import pi import random import string import warnings #import arguments #from the tile path, get the inf...
from logging import DEBUG from logging import INFO from logging import WARNING from numbers import Integral from numbers import Number from time import time from typing import Any from typing import Callable from typing import Dict from typing import Iterable from typing import List from typing import Mapping from typi...
import os from os.path import join import subprocess import networkx as nx import pytest import tempfile import spiceypy as spice import pvl from unittest import mock from unittest.mock import MagicMock, patch from collections import OrderedDict import ale from ale import util @pytest.fixture def cube_kernels(): ...
import re from collections import namedtuple from copy import copy from warnings import warn import numpy as np import pandas as pd def estimation_table( models, return_type, render_options=None, custom_param_names=None, show_col_names=True, custom_col_names=None, custom_model_names=None,...
import platform import signal import time import subprocess import os from os.path import dirname from pathlib import Path import numpy as np import json import copy import sys sys.path.insert(0, dirname(dirname(dirname(os.path.realpath(__file__))))) import Heron.general_utils as gu from Heron.gui import...
""" SHT1x library """ import time import math class SHT1xError(Exception): pass try: import RPi.GPIO as GPIO except ImportError: raise SHT1xError('Could not import the RPi.GPIO package (http://pypi.python.org/pypi/RPi.GPIO). Exiting.') GPIO_FUNCS = {-1: 'GPIO.UNKNOWN', 0: 'GPIO.OUT', 1: 'GPIO.IN', 10: ...
# Typing imports from __future__ import annotations from typing import Union, List, Dict, TYPE_CHECKING if TYPE_CHECKING: from .bbObjects.items import bbShip from discord import PartialEmoji, Guild, User from datetime import timedelta from .bbObjects import bbUser from .bbObjects.bounties import bbSyst...
from direct.interval.IntervalGlobal import * from toontown.battle.BattleBase import * from toontown.battle.BattleProps import * from toontown.battle.BattleSounds import * from toontown.battle import MovieUtil from toontown.battle import MovieCamera from direct.directnotify import DirectNotifyGlobal from toontown.toonba...
from functools import partial, wraps from itertools import chain import os import threading import sublime from sublime_plugin import WindowCommand, TextCommand from ..git_mixins.status import FileStatus from ..commands import GsNavigate from ...common import ui from ..git_command import GitCommand from ...common imp...
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the AiiDA-FLEUR package. ...
# Copyright 2020 ByteDance 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 agreed to in writin...
#! /usr/bin/python3 # -*- coding: utf-8 -*- """ *** Sky *** """ __author__ = "<NAME>" __copyright__ = "Copyright 2021, nenupy" __credits__ = ["<NAME>"] __maintainer__ = "Alan" __email__ = "<EMAIL>" __status__ = "Production" __all__ = [ "SkySliceBase", "SkySlice", "HpxSkySlice", "Sky", ...
#!/usr/bin/python """ Two Column Virtual Terminal. """ # Copyright 2011 <NAME> <<EMAIL>>. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the abo...
""" Columbia river plume simulation =============================== Simulates the Columbia river plume with realistic tides and wind, atmospheric pressure and river discharge forcings. Initial and boundary conditions for salinity and temperature are obtained from NCOM hindcast simulation. Tides are computed from the ...
import sys # Insert our dependencies: from os.path import abspath, dirname, join parentdir = dirname(dirname(dirname(abspath(__file__)))) sys.path.insert(0, join(parentdir, 'lib', 'python2.7', 'site-packages')) import pygeoip import re from metashare.settings import ROOT_PATH # Info about of the known countries count...
import numpy as np import scipy import scipy.stats import scipy.sparse from sklearn.decomposition import PCA,TruncatedSVD from sklearn.neighbors import NearestNeighbors import time ########## PREPROCESSING PIPELINE def print_optional(string, verbose=True): if verbose: print(string) return def pipeli...
# -*- coding: utf-8 -*- # Copyright (C) 2003-2015 Mag. <NAME>. All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. <EMAIL> # **************************************************************************** # # This module is licensed under the terms of the BSD 3-Clause License # <http://www.c-tanzer.at/license/b...
#! /usr/bin/env python3 # Requires gitpython # pip3 install gitpython from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import configparser import os import pprint as pretty import re import shutil im...
import hashlib from datetime import datetime, timedelta from tfchain.encoders import encoder_rivine_get, encoder_sia_get, sia_encode, rivine_encode from tfchain.crypto import MerkleTree from tfchain.internal.jsutils import blake2_string from tfchain.types.PrimitiveTypes import BinaryData, Hash from tfchain.internal.jsu...